function _mergeNamespaces(ea,na){for(var ra=0;ra<na.length;ra++){const oa=na[ra];if(typeof oa!="string"&&!Array.isArray(oa)){for(const aa in oa)if(aa!=="default"&&!(aa in ea)){const sa=Object.getOwnPropertyDescriptor(oa,aa);sa&&Object.defineProperty(ea,aa,sa.get?sa:{enumerable:!0,get:()=>oa[aa]})}}}return Object.freeze(Object.defineProperty(ea,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ea){return ea&&ea.__esModule&&Object.prototype.hasOwnProperty.call(ea,"default")?ea.default:ea}function getAugmentedNamespace(ea){if(ea.__esModule)return ea;var na=ea.default;if(typeof na=="function"){var ra=function oa(){return this instanceof oa?Reflect.construct(na,arguments,this.constructor):na.apply(this,arguments)};ra.prototype=na.prototype}else ra={};return Object.defineProperty(ra,"__esModule",{value:!0}),Object.keys(ea).forEach(function(oa){var aa=Object.getOwnPropertyDescriptor(ea,oa);Object.defineProperty(ra,oa,aa.get?aa:{enumerable:!0,get:function(){return ea[oa]}})}),ra}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var ea=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable;function oa(sa){if(sa==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(sa)}function aa(){try{if(!Object.assign)return!1;var sa=new String("abc");if(sa[5]="de",Object.getOwnPropertyNames(sa)[0]==="5")return!1;for(var la={},ca=0;ca<10;ca++)la["_"+String.fromCharCode(ca)]=ca;var ua=Object.getOwnPropertyNames(la).map(function(pa){return la[pa]});if(ua.join("")!=="0123456789")return!1;var da={};return"abcdefghijklmnopqrst".split("").forEach(function(pa){da[pa]=pa}),Object.keys(Object.assign({},da)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=aa()?Object.assign:function(sa,la){for(var ca,ua=oa(sa),da,pa=1;pa<arguments.length;pa++){ca=Object(arguments[pa]);for(var ha in ca)na.call(ca,ha)&&(ua[ha]=ca[ha]);if(ea){da=ea(ca);for(var ga=0;ga<da.length;ga++)ra.call(ca,da[ga])&&(ua[da[ga]]=ca[da[ga]])}}return ua},objectAssign}var react={exports:{}},react_production_min={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var ea=requireObjectAssign(),na=60103,ra=60106;react_production_min.Fragment=60107,react_production_min.StrictMode=60108,react_production_min.Profiler=60114;var oa=60109,aa=60110,sa=60112;react_production_min.Suspense=60113;var la=60115,ca=60116;if(typeof Symbol=="function"&&Symbol.for){var ua=Symbol.for;na=ua("react.element"),ra=ua("react.portal"),react_production_min.Fragment=ua("react.fragment"),react_production_min.StrictMode=ua("react.strict_mode"),react_production_min.Profiler=ua("react.profiler"),oa=ua("react.provider"),aa=ua("react.context"),sa=ua("react.forward_ref"),react_production_min.Suspense=ua("react.suspense"),la=ua("react.memo"),ca=ua("react.lazy")}var da=typeof Symbol=="function"&&Symbol.iterator;function pa(za){return za===null||typeof za!="object"?null:(za=da&&za[da]||za["@@iterator"],typeof za=="function"?za:null)}function ha(za){for(var Fa="https://reactjs.org/docs/error-decoder.html?invariant="+za,Ha=1;Ha<arguments.length;Ha++)Fa+="&args[]="+encodeURIComponent(arguments[Ha]);return"Minified React error #"+za+"; visit "+Fa+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ga={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fa={};function ma(za,Fa,Ha){this.props=za,this.context=Fa,this.refs=fa,this.updater=Ha||ga}ma.prototype.isReactComponent={},ma.prototype.setState=function(za,Fa){if(typeof za!="object"&&typeof za!="function"&&za!=null)throw Error(ha(85));this.updater.enqueueSetState(this,za,Fa,"setState")},ma.prototype.forceUpdate=function(za){this.updater.enqueueForceUpdate(this,za,"forceUpdate")};function va(){}va.prototype=ma.prototype;function xa(za,Fa,Ha){this.props=za,this.context=Fa,this.refs=fa,this.updater=Ha||ga}var ya=xa.prototype=new va;ya.constructor=xa,ea(ya,ma.prototype),ya.isPureReactComponent=!0;var Aa={current:null},Ca=Object.prototype.hasOwnProperty,Sa={key:!0,ref:!0,__self:!0,__source:!0};function wa(za,Fa,Ha){var Va,Ua={},Qa=null,Wa=null;if(Fa!=null)for(Va in Fa.ref!==void 0&&(Wa=Fa.ref),Fa.key!==void 0&&(Qa=""+Fa.key),Fa)Ca.call(Fa,Va)&&!Sa.hasOwnProperty(Va)&&(Ua[Va]=Fa[Va]);var Za=arguments.length-2;if(Za===1)Ua.children=Ha;else if(1<Za){for(var Xa=Array(Za),tl=0;tl<Za;tl++)Xa[tl]=arguments[tl+2];Ua.children=Xa}if(za&&za.defaultProps)for(Va in Za=za.defaultProps,Za)Ua[Va]===void 0&&(Ua[Va]=Za[Va]);return{$$typeof:na,type:za,key:Qa,ref:Wa,props:Ua,_owner:Aa.current}}function ba(za,Fa){return{$$typeof:na,type:za.type,key:Fa,ref:za.ref,props:za.props,_owner:za._owner}}function Ea(za){return typeof za=="object"&&za!==null&&za.$$typeof===na}function $a(za){var Fa={"=":"=0",":":"=2"};return"$"+za.replace(/[=:]/g,function(Ha){return Fa[Ha]})}var Ma=/\/+/g;function Ia(za,Fa){return typeof za=="object"&&za!==null&&za.key!=null?$a(""+za.key):Fa.toString(36)}function Oa(za,Fa,Ha,Va,Ua){var Qa=typeof za;(Qa==="undefined"||Qa==="boolean")&&(za=null);var Wa=!1;if(za===null)Wa=!0;else switch(Qa){case"string":case"number":Wa=!0;break;case"object":switch(za.$$typeof){case na:case ra:Wa=!0}}if(Wa)return Wa=za,Ua=Ua(Wa),za=Va===""?"."+Ia(Wa,0):Va,Array.isArray(Ua)?(Ha="",za!=null&&(Ha=za.replace(Ma,"$&/")+"/"),Oa(Ua,Fa,Ha,"",function(tl){return tl})):Ua!=null&&(Ea(Ua)&&(Ua=ba(Ua,Ha+(!Ua.key||Wa&&Wa.key===Ua.key?"":(""+Ua.key).replace(Ma,"$&/")+"/")+za)),Fa.push(Ua)),1;if(Wa=0,Va=Va===""?".":Va+":",Array.isArray(za))for(var Za=0;Za<za.length;Za++){Qa=za[Za];var Xa=Va+Ia(Qa,Za);Wa+=Oa(Qa,Fa,Ha,Xa,Ua)}else if(Xa=pa(za),typeof Xa=="function")for(za=Xa.call(za),Za=0;!(Qa=za.next()).done;)Qa=Qa.value,Xa=Va+Ia(Qa,Za++),Wa+=Oa(Qa,Fa,Ha,Xa,Ua);else if(Qa==="object")throw Fa=""+za,Error(ha(31,Fa==="[object Object]"?"object with keys {"+Object.keys(za).join(", ")+"}":Fa));return Wa}function Da(za,Fa,Ha){if(za==null)return za;var Va=[],Ua=0;return Oa(za,Va,"","",function(Qa){return Fa.call(Ha,Qa,Ua++)}),Va}function Ta(za){if(za._status===-1){var Fa=za._result;Fa=Fa(),za._status=0,za._result=Fa,Fa.then(function(Ha){za._status===0&&(Ha=Ha.default,za._status=1,za._result=Ha)},function(Ha){za._status===0&&(za._status=2,za._result=Ha)})}if(za._status===1)return za._result;throw za._result}var _a={current:null};function La(){var za=_a.current;if(za===null)throw Error(ha(321));return za}var Na={ReactCurrentDispatcher:_a,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Aa,IsSomeRendererActing:{current:!1},assign:ea};return react_production_min.Children={map:Da,forEach:function(za,Fa,Ha){Da(za,function(){Fa.apply(this,arguments)},Ha)},count:function(za){var Fa=0;return Da(za,function(){Fa++}),Fa},toArray:function(za){return Da(za,function(Fa){return Fa})||[]},only:function(za){if(!Ea(za))throw Error(ha(143));return za}},react_production_min.Component=ma,react_production_min.PureComponent=xa,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Na,react_production_min.cloneElement=function(za,Fa,Ha){if(za==null)throw Error(ha(267,za));var Va=ea({},za.props),Ua=za.key,Qa=za.ref,Wa=za._owner;if(Fa!=null){if(Fa.ref!==void 0&&(Qa=Fa.ref,Wa=Aa.current),Fa.key!==void 0&&(Ua=""+Fa.key),za.type&&za.type.defaultProps)var Za=za.type.defaultProps;for(Xa in Fa)Ca.call(Fa,Xa)&&!Sa.hasOwnProperty(Xa)&&(Va[Xa]=Fa[Xa]===void 0&&Za!==void 0?Za[Xa]:Fa[Xa])}var Xa=arguments.length-2;if(Xa===1)Va.children=Ha;else if(1<Xa){Za=Array(Xa);for(var tl=0;tl<Xa;tl++)Za[tl]=arguments[tl+2];Va.children=Za}return{$$typeof:na,type:za.type,key:Ua,ref:Qa,props:Va,_owner:Wa}},react_production_min.createContext=function(za,Fa){return Fa===void 0&&(Fa=null),za={$$typeof:aa,_calculateChangedBits:Fa,_currentValue:za,_currentValue2:za,_threadCount:0,Provider:null,Consumer:null},za.Provider={$$typeof:oa,_context:za},za.Consumer=za},react_production_min.createElement=wa,react_production_min.createFactory=function(za){var Fa=wa.bind(null,za);return Fa.type=za,Fa},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(za){return{$$typeof:sa,render:za}},react_production_min.isValidElement=Ea,react_production_min.lazy=function(za){return{$$typeof:ca,_payload:{_status:-1,_result:za},_init:Ta}},react_production_min.memo=function(za,Fa){return{$$typeof:la,type:za,compare:Fa===void 0?null:Fa}},react_production_min.useCallback=function(za,Fa){return La().useCallback(za,Fa)},react_production_min.useContext=function(za,Fa){return La().useContext(za,Fa)},react_production_min.useDebugValue=function(){},react_production_min.useEffect=function(za,Fa){return La().useEffect(za,Fa)},react_production_min.useImperativeHandle=function(za,Fa,Ha){return La().useImperativeHandle(za,Fa,Ha)},react_production_min.useLayoutEffect=function(za,Fa){return La().useLayoutEffect(za,Fa)},react_production_min.useMemo=function(za,Fa){return La().useMemo(za,Fa)},react_production_min.useReducer=function(za,Fa,Ha){return La().useReducer(za,Fa,Ha)},react_production_min.useRef=function(za){return La().useRef(za)},react_production_min.useState=function(za){return La().useState(za)},react_production_min.version="17.0.2",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1,requireObjectAssign();var ea=requireReact(),na=60103;if(reactJsxRuntime_production_min.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var ra=Symbol.for;na=ra("react.element"),reactJsxRuntime_production_min.Fragment=ra("react.fragment")}var oa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aa=Object.prototype.hasOwnProperty,sa={key:!0,ref:!0,__self:!0,__source:!0};function la(ca,ua,da){var pa,ha={},ga=null,fa=null;da!==void 0&&(ga=""+da),ua.key!==void 0&&(ga=""+ua.key),ua.ref!==void 0&&(fa=ua.ref);for(pa in ua)aa.call(ua,pa)&&!sa.hasOwnProperty(pa)&&(ha[pa]=ua[pa]);if(ca&&ca.defaultProps)for(pa in ua=ca.defaultProps,ua)ha[pa]===void 0&&(ha[pa]=ua[pa]);return{$$typeof:na,type:ca,key:ga,ref:fa,props:ha,_owner:oa.current}}return reactJsxRuntime_production_min.jsx=la,reactJsxRuntime_production_min.jsxs=la,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();function _typeof$3(ea){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na},_typeof$3(ea)}function toPrimitive$2(ea,na){if(_typeof$3(ea)!="object"||!ea)return ea;var ra=ea[Symbol.toPrimitive];if(ra!==void 0){var oa=ra.call(ea,na);if(_typeof$3(oa)!="object")return oa;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ea)}function toPropertyKey$3(ea){var na=toPrimitive$2(ea,"string");return _typeof$3(na)=="symbol"?na:na+""}function _defineProperty$8(ea,na,ra){return(na=toPropertyKey$3(na))in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread$8(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?Object(arguments[na]):{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&oa.push.apply(oa,Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable})),oa.forEach(function(aa){_defineProperty$8(ea,aa,ra[aa])})}return ea}function _classCallCheck$2(ea,na){if(!(ea instanceof na))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(ea,na){for(var ra=0;ra<na.length;ra++){var oa=na[ra];oa.enumerable=oa.enumerable||!1,oa.configurable=!0,"value"in oa&&(oa.writable=!0),Object.defineProperty(ea,toPropertyKey$3(oa.key),oa)}}function _createClass$2(ea,na,ra){return na&&_defineProperties$2(ea.prototype,na),ra&&_defineProperties$2(ea,ra),Object.defineProperty(ea,"prototype",{writable:!1}),ea}function _assertThisInitialized$1(ea){if(ea===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ea}function _possibleConstructorReturn$1(ea,na){if(na&&(_typeof$3(na)=="object"||typeof na=="function"))return na;if(na!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(ea)}function _getPrototypeOf$1(ea){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(na){return na.__proto__||Object.getPrototypeOf(na)},_getPrototypeOf$1(ea)}function _setPrototypeOf$1(ea,na){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ra,oa){return ra.__proto__=oa,ra},_setPrototypeOf$1(ea,na)}function _inherits$1(ea,na){if(typeof na!="function"&&na!==null)throw new TypeError("Super expression must either be null or a function");ea.prototype=Object.create(na&&na.prototype,{constructor:{value:ea,writable:!0,configurable:!0}}),Object.defineProperty(ea,"prototype",{writable:!1}),na&&_setPrototypeOf$1(ea,na)}var consoleLogger={type:"logger",log:function(na){this.output("log",na)},warn:function(na){this.output("warn",na)},error:function(na){this.output("error",na)},output:function(na,ra){console&&console[na]&&console[na].apply(console,ra)}},Logger=function(){function ea(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2(this,ea),this.init(na,ra)}return _createClass$2(ea,[{key:"init",value:function(ra){var oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=oa.prefix||"i18next:",this.logger=ra||consoleLogger,this.options=oa,this.debug=oa.debug}},{key:"setDebug",value:function(ra){this.debug=ra}},{key:"log",value:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];return this.forward(oa,"log","",!0)}},{key:"warn",value:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];return this.forward(oa,"warn","",!0)}},{key:"error",value:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];return this.forward(oa,"error","")}},{key:"deprecate",value:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];return this.forward(oa,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(ra,oa,aa,sa){return sa&&!this.debug?null:(typeof ra[0]=="string"&&(ra[0]="".concat(aa).concat(this.prefix," ").concat(ra[0])),this.logger[oa](ra))}},{key:"create",value:function(ra){return new ea(this.logger,_objectSpread$8({},{prefix:"".concat(this.prefix,":").concat(ra,":")},this.options))}}]),ea}(),baseLogger=new Logger,EventEmitter$1=function(){function ea(){_classCallCheck$2(this,ea),this.observers={}}return _createClass$2(ea,[{key:"on",value:function(ra,oa){var aa=this;return ra.split(" ").forEach(function(sa){aa.observers[sa]=aa.observers[sa]||[],aa.observers[sa].push(oa)}),this}},{key:"off",value:function(ra,oa){if(this.observers[ra]){if(!oa){delete this.observers[ra];return}this.observers[ra]=this.observers[ra].filter(function(aa){return aa!==oa})}}},{key:"emit",value:function(ra){for(var oa=arguments.length,aa=new Array(oa>1?oa-1:0),sa=1;sa<oa;sa++)aa[sa-1]=arguments[sa];if(this.observers[ra]){var la=[].concat(this.observers[ra]);la.forEach(function(ua){ua.apply(void 0,aa)})}if(this.observers["*"]){var ca=[].concat(this.observers["*"]);ca.forEach(function(ua){ua.apply(ua,[ra].concat(aa))})}}}]),ea}();function defer(){var ea,na,ra=new Promise(function(oa,aa){ea=oa,na=aa});return ra.resolve=ea,ra.reject=na,ra}function makeString(ea){return ea==null?"":""+ea}function copy$2(ea,na,ra){ea.forEach(function(oa){na[oa]&&(ra[oa]=na[oa])})}function getLastOfPath(ea,na,ra){function oa(ca){return ca&&ca.indexOf("###")>-1?ca.replace(/###/g,"."):ca}function aa(){return!ea||typeof ea=="string"}for(var sa=typeof na!="string"?[].concat(na):na.split(".");sa.length>1;){if(aa())return{};var la=oa(sa.shift());!ea[la]&&ra&&(ea[la]=new ra),Object.prototype.hasOwnProperty.call(ea,la)?ea=ea[la]:ea={}}return aa()?{}:{obj:ea,k:oa(sa.shift())}}function setPath(ea,na,ra){var oa=getLastOfPath(ea,na,Object),aa=oa.obj,sa=oa.k;aa[sa]=ra}function pushPath(ea,na,ra,oa){var aa=getLastOfPath(ea,na,Object),sa=aa.obj,la=aa.k;sa[la]=sa[la]||[],sa[la].push(ra)}function getPath$1(ea,na){var ra=getLastOfPath(ea,na),oa=ra.obj,aa=ra.k;if(oa)return oa[aa]}function getPathWithDefaults(ea,na,ra){var oa=getPath$1(ea,ra);return oa!==void 0?oa:getPath$1(na,ra)}function deepExtend(ea,na,ra){for(var oa in na)oa!=="__proto__"&&oa!=="constructor"&&(oa in ea?typeof ea[oa]=="string"||ea[oa]instanceof String||typeof na[oa]=="string"||na[oa]instanceof String?ra&&(ea[oa]=na[oa]):deepExtend(ea[oa],na[oa],ra):ea[oa]=na[oa]);return ea}function regexEscape(ea){return ea.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$1(ea){return typeof ea=="string"?ea.replace(/[&<>"'\/]/g,function(na){return _entityMap[na]}):ea}var isIE10=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ResourceStore=function(ea){_inherits$1(na,ea);function na(ra){var oa,aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _classCallCheck$2(this,na),oa=_possibleConstructorReturn$1(this,_getPrototypeOf$1(na).call(this)),isIE10&&EventEmitter$1.call(_assertThisInitialized$1(oa)),oa.data=ra||{},oa.options=aa,oa.options.keySeparator===void 0&&(oa.options.keySeparator="."),oa}return _createClass$2(na,[{key:"addNamespaces",value:function(oa){this.options.ns.indexOf(oa)<0&&this.options.ns.push(oa)}},{key:"removeNamespaces",value:function(oa){var aa=this.options.ns.indexOf(oa);aa>-1&&this.options.ns.splice(aa,1)}},{key:"getResource",value:function(oa,aa,sa){var la=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ca=la.keySeparator!==void 0?la.keySeparator:this.options.keySeparator,ua=[oa,aa];return sa&&typeof sa!="string"&&(ua=ua.concat(sa)),sa&&typeof sa=="string"&&(ua=ua.concat(ca?sa.split(ca):sa)),oa.indexOf(".")>-1&&(ua=oa.split(".")),getPath$1(this.data,ua)}},{key:"addResource",value:function(oa,aa,sa,la){var ca=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},ua=this.options.keySeparator;ua===void 0&&(ua=".");var da=[oa,aa];sa&&(da=da.concat(ua?sa.split(ua):sa)),oa.indexOf(".")>-1&&(da=oa.split("."),la=aa,aa=da[1]),this.addNamespaces(aa),setPath(this.data,da,la),ca.silent||this.emit("added",oa,aa,sa,la)}},{key:"addResources",value:function(oa,aa,sa){var la=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var ca in sa)(typeof sa[ca]=="string"||Object.prototype.toString.apply(sa[ca])==="[object Array]")&&this.addResource(oa,aa,ca,sa[ca],{silent:!0});la.silent||this.emit("added",oa,aa,sa)}},{key:"addResourceBundle",value:function(oa,aa,sa,la,ca){var ua=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},da=[oa,aa];oa.indexOf(".")>-1&&(da=oa.split("."),la=sa,sa=aa,aa=da[1]),this.addNamespaces(aa);var pa=getPath$1(this.data,da)||{};la?deepExtend(pa,sa,ca):pa=_objectSpread$8({},pa,sa),setPath(this.data,da,pa),ua.silent||this.emit("added",oa,aa,sa)}},{key:"removeResourceBundle",value:function(oa,aa){this.hasResourceBundle(oa,aa)&&delete this.data[oa][aa],this.removeNamespaces(aa),this.emit("removed",oa,aa)}},{key:"hasResourceBundle",value:function(oa,aa){return this.getResource(oa,aa)!==void 0}},{key:"getResourceBundle",value:function(oa,aa){return aa||(aa=this.options.defaultNS),this.options.compatibilityAPI==="v1"?_objectSpread$8({},{},this.getResource(oa,aa)):this.getResource(oa,aa)}},{key:"getDataByLanguage",value:function(oa){return this.data[oa]}},{key:"toJSON",value:function(){return this.data}}]),na}(EventEmitter$1),postProcessor={processors:{},addPostProcessor:function(na){this.processors[na.name]=na},handle:function(na,ra,oa,aa,sa){var la=this;return na.forEach(function(ca){la.processors[ca]&&(ra=la.processors[ca].process(ra,oa,aa,sa))}),ra}},checkedLoadedFor={},Translator=function(ea){_inherits$1(na,ea);function na(ra){var oa,aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _classCallCheck$2(this,na),oa=_possibleConstructorReturn$1(this,_getPrototypeOf$1(na).call(this)),isIE10&&EventEmitter$1.call(_assertThisInitialized$1(oa)),copy$2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],ra,_assertThisInitialized$1(oa)),oa.options=aa,oa.options.keySeparator===void 0&&(oa.options.keySeparator="."),oa.logger=baseLogger.create("translator"),oa}return _createClass$2(na,[{key:"changeLanguage",value:function(oa){oa&&(this.language=oa)}},{key:"exists",value:function(oa){var aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},sa=this.resolve(oa,aa);return sa&&sa.res!==void 0}},{key:"extractFromKey",value:function(oa,aa){var sa=aa.nsSeparator!==void 0?aa.nsSeparator:this.options.nsSeparator;sa===void 0&&(sa=":");var la=aa.keySeparator!==void 0?aa.keySeparator:this.options.keySeparator,ca=aa.ns||this.options.defaultNS;if(sa&&oa.indexOf(sa)>-1){var ua=oa.match(this.interpolator.nestingRegexp);if(ua&&ua.length>0)return{key:oa,namespaces:ca};var da=oa.split(sa);(sa!==la||sa===la&&this.options.ns.indexOf(da[0])>-1)&&(ca=da.shift()),oa=da.join(la)}return typeof ca=="string"&&(ca=[ca]),{key:oa,namespaces:ca}}},{key:"translate",value:function(oa,aa,sa){var la=this;if(_typeof$3(aa)!=="object"&&this.options.overloadTranslationOptionHandler&&(aa=this.options.overloadTranslationOptionHandler(arguments)),aa||(aa={}),oa==null)return"";Array.isArray(oa)||(oa=[String(oa)]);var ca=aa.keySeparator!==void 0?aa.keySeparator:this.options.keySeparator,ua=this.extractFromKey(oa[oa.length-1],aa),da=ua.key,pa=ua.namespaces,ha=pa[pa.length-1],ga=aa.lng||this.language,fa=aa.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(ga&&ga.toLowerCase()==="cimode"){if(fa){var ma=aa.nsSeparator||this.options.nsSeparator;return ha+ma+da}return da}var va=this.resolve(oa,aa),xa=va&&va.res,ya=va&&va.usedKey||da,Aa=va&&va.exactUsedKey||da,Ca=Object.prototype.toString.apply(xa),Sa=["[object Number]","[object Function]","[object RegExp]"],wa=aa.joinArrays!==void 0?aa.joinArrays:this.options.joinArrays,ba=!this.i18nFormat||this.i18nFormat.handleAsObject,Ea=typeof xa!="string"&&typeof xa!="boolean"&&typeof xa!="number";if(ba&&xa&&Ea&&Sa.indexOf(Ca)<0&&!(typeof wa=="string"&&Ca==="[object Array]")){if(!aa.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(ya,xa,aa):"key '".concat(da," (").concat(this.language,")' returned an object instead of string.");if(ca){var $a=Ca==="[object Array]",Ma=$a?[]:{},Ia=$a?Aa:ya;for(var Oa in xa)if(Object.prototype.hasOwnProperty.call(xa,Oa)){var Da="".concat(Ia).concat(ca).concat(Oa);Ma[Oa]=this.translate(Da,_objectSpread$8({},aa,{joinArrays:!1,ns:pa})),Ma[Oa]===Da&&(Ma[Oa]=xa[Oa])}xa=Ma}}else if(ba&&typeof wa=="string"&&Ca==="[object Array]")xa=xa.join(wa),xa&&(xa=this.extendTranslation(xa,oa,aa,sa));else{var Ta=!1,_a=!1,La=aa.count!==void 0&&typeof aa.count!="string",Na=na.hasDefaultValue(aa),za=La?this.pluralResolver.getSuffix(ga,aa.count):"",Fa=aa["defaultValue".concat(za)]||aa.defaultValue;!this.isValidLookup(xa)&&Na&&(Ta=!0,xa=Fa),this.isValidLookup(xa)||(_a=!0,xa=da);var Ha=Na&&Fa!==xa&&this.options.updateMissing;if(_a||Ta||Ha){if(this.logger.log(Ha?"updateKey":"missingKey",ga,ha,da,Ha?Fa:xa),ca){var Va=this.resolve(da,_objectSpread$8({},aa,{keySeparator:!1}));Va&&Va.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ua=[],Qa=this.languageUtils.getFallbackCodes(this.options.fallbackLng,aa.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Qa&&Qa[0])for(var Wa=0;Wa<Qa.length;Wa++)Ua.push(Qa[Wa]);else this.options.saveMissingTo==="all"?Ua=this.languageUtils.toResolveHierarchy(aa.lng||this.language):Ua.push(aa.lng||this.language);var Za=function(tl,il,Ja){la.options.missingKeyHandler?la.options.missingKeyHandler(tl,ha,il,Ha?Ja:xa,Ha,aa):la.backendConnector&&la.backendConnector.saveMissing&&la.backendConnector.saveMissing(tl,ha,il,Ha?Ja:xa,Ha,aa),la.emit("missingKey",tl,ha,il,xa)};this.options.saveMissing&&(this.options.saveMissingPlurals&&La?Ua.forEach(function(Xa){la.pluralResolver.getSuffixes(Xa).forEach(function(tl){Za([Xa],da+tl,aa["defaultValue".concat(tl)]||Fa)})}):Za(Ua,da,Fa))}xa=this.extendTranslation(xa,oa,aa,va,sa),_a&&xa===da&&this.options.appendNamespaceToMissingKey&&(xa="".concat(ha,":").concat(da)),_a&&this.options.parseMissingKeyHandler&&(xa=this.options.parseMissingKeyHandler(xa))}return xa}},{key:"extendTranslation",value:function(oa,aa,sa,la,ca){var ua=this;if(this.i18nFormat&&this.i18nFormat.parse)oa=this.i18nFormat.parse(oa,sa,la.usedLng,la.usedNS,la.usedKey,{resolved:la});else if(!sa.skipInterpolation){sa.interpolation&&this.interpolator.init(_objectSpread$8({},sa,{interpolation:_objectSpread$8({},this.options.interpolation,sa.interpolation)}));var da=sa.interpolation&&sa.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,pa;if(da){var ha=oa.match(this.interpolator.nestingRegexp);pa=ha&&ha.length}var ga=sa.replace&&typeof sa.replace!="string"?sa.replace:sa;if(this.options.interpolation.defaultVariables&&(ga=_objectSpread$8({},this.options.interpolation.defaultVariables,ga)),oa=this.interpolator.interpolate(oa,ga,sa.lng||this.language,sa),da){var fa=oa.match(this.interpolator.nestingRegexp),ma=fa&&fa.length;pa<ma&&(sa.nest=!1)}sa.nest!==!1&&(oa=this.interpolator.nest(oa,function(){for(var ya=arguments.length,Aa=new Array(ya),Ca=0;Ca<ya;Ca++)Aa[Ca]=arguments[Ca];return ca&&ca[0]===Aa[0]&&!sa.context?(ua.logger.warn("It seems you are nesting recursively key: ".concat(Aa[0]," in key: ").concat(aa[0])),null):ua.translate.apply(ua,Aa.concat([aa]))},sa)),sa.interpolation&&this.interpolator.reset()}var va=sa.postProcess||this.options.postProcess,xa=typeof va=="string"?[va]:va;return oa!=null&&xa&&xa.length&&sa.applyPostProcessor!==!1&&(oa=postProcessor.handle(xa,oa,aa,this.options&&this.options.postProcessPassResolved?_objectSpread$8({i18nResolved:la},sa):sa,this)),oa}},{key:"resolve",value:function(oa){var aa=this,sa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},la,ca,ua,da,pa;return typeof oa=="string"&&(oa=[oa]),oa.forEach(function(ha){if(!aa.isValidLookup(la)){var ga=aa.extractFromKey(ha,sa),fa=ga.key;ca=fa;var ma=ga.namespaces;aa.options.fallbackNS&&(ma=ma.concat(aa.options.fallbackNS));var va=sa.count!==void 0&&typeof sa.count!="string",xa=sa.context!==void 0&&typeof sa.context=="string"&&sa.context!=="",ya=sa.lngs?sa.lngs:aa.languageUtils.toResolveHierarchy(sa.lng||aa.language,sa.fallbackLng);ma.forEach(function(Aa){aa.isValidLookup(la)||(pa=Aa,!checkedLoadedFor["".concat(ya[0],"-").concat(Aa)]&&aa.utils&&aa.utils.hasLoadedNamespace&&!aa.utils.hasLoadedNamespace(pa)&&(checkedLoadedFor["".concat(ya[0],"-").concat(Aa)]=!0,aa.logger.warn('key "'.concat(ca,'" for languages "').concat(ya.join(", "),`" won't get resolved as namespace "`).concat(pa,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ya.forEach(function(Ca){if(!aa.isValidLookup(la)){da=Ca;var Sa=fa,wa=[Sa];if(aa.i18nFormat&&aa.i18nFormat.addLookupKeys)aa.i18nFormat.addLookupKeys(wa,fa,Ca,Aa,sa);else{var ba;va&&(ba=aa.pluralResolver.getSuffix(Ca,sa.count)),va&&xa&&wa.push(Sa+ba),xa&&wa.push(Sa+="".concat(aa.options.contextSeparator).concat(sa.context)),va&&wa.push(Sa+=ba)}for(var Ea;Ea=wa.pop();)aa.isValidLookup(la)||(ua=Ea,la=aa.getResource(Ca,Aa,Ea,sa))}}))})}}),{res:la,usedKey:ca,exactUsedKey:ua,usedLng:da,usedNS:pa}}},{key:"isValidLookup",value:function(oa){return oa!==void 0&&!(!this.options.returnNull&&oa===null)&&!(!this.options.returnEmptyString&&oa==="")}},{key:"getResource",value:function(oa,aa,sa){var la=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(oa,aa,sa,la):this.resourceStore.getResource(oa,aa,sa,la)}}],[{key:"hasDefaultValue",value:function(oa){var aa="defaultValue";for(var sa in oa)if(Object.prototype.hasOwnProperty.call(oa,sa)&&aa===sa.substring(0,aa.length)&&oa[sa]!==void 0)return!0;return!1}}]),na}(EventEmitter$1);function capitalize$1(ea){return ea.charAt(0).toUpperCase()+ea.slice(1)}var LanguageUtil=function(){function ea(na){_classCallCheck$2(this,ea),this.options=na,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}return _createClass$2(ea,[{key:"getScriptPartFromCode",value:function(ra){if(!ra||ra.indexOf("-")<0)return null;var oa=ra.split("-");return oa.length===2||(oa.pop(),oa[oa.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(oa.join("-"))}},{key:"getLanguagePartFromCode",value:function(ra){if(!ra||ra.indexOf("-")<0)return ra;var oa=ra.split("-");return this.formatLanguageCode(oa[0])}},{key:"formatLanguageCode",value:function(ra){if(typeof ra=="string"&&ra.indexOf("-")>-1){var oa=["hans","hant","latn","cyrl","cans","mong","arab"],aa=ra.split("-");return this.options.lowerCaseLng?aa=aa.map(function(sa){return sa.toLowerCase()}):aa.length===2?(aa[0]=aa[0].toLowerCase(),aa[1]=aa[1].toUpperCase(),oa.indexOf(aa[1].toLowerCase())>-1&&(aa[1]=capitalize$1(aa[1].toLowerCase()))):aa.length===3&&(aa[0]=aa[0].toLowerCase(),aa[1].length===2&&(aa[1]=aa[1].toUpperCase()),aa[0]!=="sgn"&&aa[2].length===2&&(aa[2]=aa[2].toUpperCase()),oa.indexOf(aa[1].toLowerCase())>-1&&(aa[1]=capitalize$1(aa[1].toLowerCase())),oa.indexOf(aa[2].toLowerCase())>-1&&(aa[2]=capitalize$1(aa[2].toLowerCase()))),aa.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?ra.toLowerCase():ra}},{key:"isWhitelisted",value:function(ra){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(ra)}},{key:"isSupportedCode",value:function(ra){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(ra=this.getLanguagePartFromCode(ra)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(ra)>-1}},{key:"getBestMatchFromCodes",value:function(ra){var oa=this;if(!ra)return null;var aa;return ra.forEach(function(sa){if(!aa){var la=oa.formatLanguageCode(sa);(!oa.options.supportedLngs||oa.isSupportedCode(la))&&(aa=la)}}),!aa&&this.options.supportedLngs&&ra.forEach(function(sa){if(!aa){var la=oa.getLanguagePartFromCode(sa);if(oa.isSupportedCode(la))return aa=la;aa=oa.options.supportedLngs.find(function(ca){if(ca.indexOf(la)===0)return ca})}}),aa||(aa=this.getFallbackCodes(this.options.fallbackLng)[0]),aa}},{key:"getFallbackCodes",value:function(ra,oa){if(!ra)return[];if(typeof ra=="function"&&(ra=ra(oa)),typeof ra=="string"&&(ra=[ra]),Object.prototype.toString.apply(ra)==="[object Array]")return ra;if(!oa)return ra.default||[];var aa=ra[oa];return aa||(aa=ra[this.getScriptPartFromCode(oa)]),aa||(aa=ra[this.formatLanguageCode(oa)]),aa||(aa=ra[this.getLanguagePartFromCode(oa)]),aa||(aa=ra.default),aa||[]}},{key:"toResolveHierarchy",value:function(ra,oa){var aa=this,sa=this.getFallbackCodes(oa||this.options.fallbackLng||[],ra),la=[],ca=function(da){da&&(aa.isSupportedCode(da)?la.push(da):aa.logger.warn("rejecting language code not found in supportedLngs: ".concat(da)))};return typeof ra=="string"&&ra.indexOf("-")>-1?(this.options.load!=="languageOnly"&&ca(this.formatLanguageCode(ra)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&ca(this.getScriptPartFromCode(ra)),this.options.load!=="currentOnly"&&ca(this.getLanguagePartFromCode(ra))):typeof ra=="string"&&ca(this.formatLanguageCode(ra)),sa.forEach(function(ua){la.indexOf(ua)<0&&ca(aa.formatLanguageCode(ua))}),la}}]),ea}(),sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(na){return+(na>1)},2:function(na){return+(na!=1)},3:function(na){return 0},4:function(na){return na%10==1&&na%100!=11?0:na%10>=2&&na%10<=4&&(na%100<10||na%100>=20)?1:2},5:function(na){return na==0?0:na==1?1:na==2?2:na%100>=3&&na%100<=10?3:na%100>=11?4:5},6:function(na){return na==1?0:na>=2&&na<=4?1:2},7:function(na){return na==1?0:na%10>=2&&na%10<=4&&(na%100<10||na%100>=20)?1:2},8:function(na){return na==1?0:na==2?1:na!=8&&na!=11?2:3},9:function(na){return+(na>=2)},10:function(na){return na==1?0:na==2?1:na<7?2:na<11?3:4},11:function(na){return na==1||na==11?0:na==2||na==12?1:na>2&&na<20?2:3},12:function(na){return+(na%10!=1||na%100==11)},13:function(na){return+(na!==0)},14:function(na){return na==1?0:na==2?1:na==3?2:3},15:function(na){return na%10==1&&na%100!=11?0:na%10>=2&&(na%100<10||na%100>=20)?1:2},16:function(na){return na%10==1&&na%100!=11?0:na!==0?1:2},17:function(na){return na==1||na%10==1&&na%100!=11?0:1},18:function(na){return na==0?0:na==1?1:2},19:function(na){return na==1?0:na==0||na%100>1&&na%100<11?1:na%100>10&&na%100<20?2:3},20:function(na){return na==1?0:na==0||na%100>0&&na%100<20?1:2},21:function(na){return na%100==1?1:na%100==2?2:na%100==3||na%100==4?3:0},22:function(na){return na==1?0:na==2?1:(na<0||na>10)&&na%10==0?2:3}};function createRules(){var ea={};return sets.forEach(function(na){na.lngs.forEach(function(ra){ea[ra]={numbers:na.nr,plurals:_rulesPluralsTypes[na.fc]}})}),ea}var PluralResolver=function(){function ea(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2(this,ea),this.languageUtils=na,this.options=ra,this.logger=baseLogger.create("pluralResolver"),this.rules=createRules()}return _createClass$2(ea,[{key:"addRule",value:function(ra,oa){this.rules[ra]=oa}},{key:"getRule",value:function(ra){return this.rules[ra]||this.rules[this.languageUtils.getLanguagePartFromCode(ra)]}},{key:"needsPlural",value:function(ra){var oa=this.getRule(ra);return oa&&oa.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(ra,oa){return this.getSuffixes(ra).map(function(aa){return oa+aa})}},{key:"getSuffixes",value:function(ra){var oa=this,aa=this.getRule(ra);return aa?aa.numbers.map(function(sa){return oa.getSuffix(ra,sa)}):[]}},{key:"getSuffix",value:function(ra,oa){var aa=this,sa=this.getRule(ra);if(sa){var la=sa.noAbs?sa.plurals(oa):sa.plurals(Math.abs(oa)),ca=sa.numbers[la];this.options.simplifyPluralSuffix&&sa.numbers.length===2&&sa.numbers[0]===1&&(ca===2?ca="plural":ca===1&&(ca=""));var ua=function(){return aa.options.prepend&&ca.toString()?aa.options.prepend+ca.toString():ca.toString()};return this.options.compatibilityJSON==="v1"?ca===1?"":typeof ca=="number"?"_plural_".concat(ca.toString()):ua():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&sa.numbers.length===2&&sa.numbers[0]===1?ua():this.options.prepend&&la.toString()?this.options.prepend+la.toString():la.toString()}return this.logger.warn("no plural rule found for: ".concat(ra)),""}}]),ea}(),Interpolator=function(){function ea(){var na=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$2(this,ea),this.logger=baseLogger.create("interpolator"),this.options=na,this.format=na.interpolation&&na.interpolation.format||function(ra){return ra},this.init(na)}return _createClass$2(ea,[{key:"init",value:function(){var ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ra.interpolation||(ra.interpolation={escapeValue:!0});var oa=ra.interpolation;this.escape=oa.escape!==void 0?oa.escape:escape$1,this.escapeValue=oa.escapeValue!==void 0?oa.escapeValue:!0,this.useRawValueToEscape=oa.useRawValueToEscape!==void 0?oa.useRawValueToEscape:!1,this.prefix=oa.prefix?regexEscape(oa.prefix):oa.prefixEscaped||"{{",this.suffix=oa.suffix?regexEscape(oa.suffix):oa.suffixEscaped||"}}",this.formatSeparator=oa.formatSeparator?oa.formatSeparator:oa.formatSeparator||",",this.unescapePrefix=oa.unescapeSuffix?"":oa.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":oa.unescapeSuffix||"",this.nestingPrefix=oa.nestingPrefix?regexEscape(oa.nestingPrefix):oa.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=oa.nestingSuffix?regexEscape(oa.nestingSuffix):oa.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=oa.nestingOptionsSeparator?oa.nestingOptionsSeparator:oa.nestingOptionsSeparator||",",this.maxReplaces=oa.maxReplaces?oa.maxReplaces:1e3,this.alwaysFormat=oa.alwaysFormat!==void 0?oa.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var ra="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(ra,"g");var oa="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(oa,"g");var aa="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(aa,"g")}},{key:"interpolate",value:function(ra,oa,aa,sa){var la=this,ca,ua,da,pa=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function ha(xa){return xa.replace(/\$/g,"$$$$")}var ga=function(ya){if(ya.indexOf(la.formatSeparator)<0){var Aa=getPathWithDefaults(oa,pa,ya);return la.alwaysFormat?la.format(Aa,void 0,aa):Aa}var Ca=ya.split(la.formatSeparator),Sa=Ca.shift().trim(),wa=Ca.join(la.formatSeparator).trim();return la.format(getPathWithDefaults(oa,pa,Sa),wa,aa,sa)};this.resetRegExp();var fa=sa&&sa.missingInterpolationHandler||this.options.missingInterpolationHandler,ma=sa&&sa.interpolation&&sa.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,va=[{regex:this.regexpUnescape,safeValue:function(ya){return ha(ya)}},{regex:this.regexp,safeValue:function(ya){return la.escapeValue?ha(la.escape(ya)):ha(ya)}}];return va.forEach(function(xa){for(da=0;ca=xa.regex.exec(ra);){if(ua=ga(ca[1].trim()),ua===void 0)if(typeof fa=="function"){var ya=fa(ra,ca,sa);ua=typeof ya=="string"?ya:""}else if(ma){ua=ca[0];continue}else la.logger.warn("missed to pass in variable ".concat(ca[1]," for interpolating ").concat(ra)),ua="";else typeof ua!="string"&&!la.useRawValueToEscape&&(ua=makeString(ua));if(ra=ra.replace(ca[0],xa.safeValue(ua)),xa.regex.lastIndex=0,da++,da>=la.maxReplaces)break}}),ra}},{key:"nest",value:function(ra,oa){var aa=this,sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},la,ca,ua=_objectSpread$8({},sa);ua.applyPostProcessor=!1,delete ua.defaultValue;function da(fa,ma){var va=this.nestingOptionsSeparator;if(fa.indexOf(va)<0)return fa;var xa=fa.split(new RegExp("".concat(va,"[ ]*{"))),ya="{".concat(xa[1]);fa=xa[0],ya=this.interpolate(ya,ua),ya=ya.replace(/'/g,'"');try{ua=JSON.parse(ya),ma&&(ua=_objectSpread$8({},ma,ua))}catch(Aa){return this.logger.warn("failed parsing options string in nesting for key ".concat(fa),Aa),"".concat(fa).concat(va).concat(ya)}return delete ua.defaultValue,fa}for(;la=this.nestingRegexp.exec(ra);){var pa=[],ha=!1;if(la[0].includes(this.formatSeparator)&&!/{.*}/.test(la[1])){var ga=la[1].split(this.formatSeparator).map(function(fa){return fa.trim()});la[1]=ga.shift(),pa=ga,ha=!0}if(ca=oa(da.call(this,la[1].trim(),ua),ua),ca&&la[0]===ra&&typeof ca!="string")return ca;typeof ca!="string"&&(ca=makeString(ca)),ca||(this.logger.warn("missed to resolve ".concat(la[1]," for nesting ").concat(ra)),ca=""),ha&&(ca=pa.reduce(function(fa,ma){return aa.format(fa,ma,sa.lng,sa)},ca.trim())),ra=ra.replace(la[0],ca),this.regexp.lastIndex=0}return ra}}]),ea}();function remove$4(ea,na){for(var ra=ea.indexOf(na);ra!==-1;)ea.splice(ra,1),ra=ea.indexOf(na)}var Connector=function(ea){_inherits$1(na,ea);function na(ra,oa,aa){var sa,la=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return _classCallCheck$2(this,na),sa=_possibleConstructorReturn$1(this,_getPrototypeOf$1(na).call(this)),isIE10&&EventEmitter$1.call(_assertThisInitialized$1(sa)),sa.backend=ra,sa.store=oa,sa.services=aa,sa.languageUtils=aa.languageUtils,sa.options=la,sa.logger=baseLogger.create("backendConnector"),sa.state={},sa.queue=[],sa.backend&&sa.backend.init&&sa.backend.init(aa,la.backend,la),sa}return _createClass$2(na,[{key:"queueLoad",value:function(oa,aa,sa,la){var ca=this,ua=[],da=[],pa=[],ha=[];return oa.forEach(function(ga){var fa=!0;aa.forEach(function(ma){var va="".concat(ga,"|").concat(ma);!sa.reload&&ca.store.hasResourceBundle(ga,ma)?ca.state[va]=2:ca.state[va]<0||(ca.state[va]===1?da.indexOf(va)<0&&da.push(va):(ca.state[va]=1,fa=!1,da.indexOf(va)<0&&da.push(va),ua.indexOf(va)<0&&ua.push(va),ha.indexOf(ma)<0&&ha.push(ma)))}),fa||pa.push(ga)}),(ua.length||da.length)&&this.queue.push({pending:da,loaded:{},errors:[],callback:la}),{toLoad:ua,pending:da,toLoadLanguages:pa,toLoadNamespaces:ha}}},{key:"loaded",value:function(oa,aa,sa){var la=oa.split("|"),ca=la[0],ua=la[1];aa&&this.emit("failedLoading",ca,ua,aa),sa&&this.store.addResourceBundle(ca,ua,sa),this.state[oa]=aa?-1:2;var da={};this.queue.forEach(function(pa){pushPath(pa.loaded,[ca],ua),remove$4(pa.pending,oa),aa&&pa.errors.push(aa),pa.pending.length===0&&!pa.done&&(Object.keys(pa.loaded).forEach(function(ha){da[ha]||(da[ha]=[]),pa.loaded[ha].length&&pa.loaded[ha].forEach(function(ga){da[ha].indexOf(ga)<0&&da[ha].push(ga)})}),pa.done=!0,pa.errors.length?pa.callback(pa.errors):pa.callback())}),this.emit("loaded",da),this.queue=this.queue.filter(function(pa){return!pa.done})}},{key:"read",value:function(oa,aa,sa){var la=this,ca=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ua=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,da=arguments.length>5?arguments[5]:void 0;return oa.length?this.backend[sa](oa,aa,function(pa,ha){if(pa&&ha&&ca<5){setTimeout(function(){la.read.call(la,oa,aa,sa,ca+1,ua*2,da)},ua);return}da(pa,ha)}):da(null,{})}},{key:"prepareLoading",value:function(oa,aa){var sa=this,la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ca=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),ca&&ca();typeof oa=="string"&&(oa=this.languageUtils.toResolveHierarchy(oa)),typeof aa=="string"&&(aa=[aa]);var ua=this.queueLoad(oa,aa,la,ca);if(!ua.toLoad.length)return ua.pending.length||ca(),null;ua.toLoad.forEach(function(da){sa.loadOne(da)})}},{key:"load",value:function(oa,aa,sa){this.prepareLoading(oa,aa,{},sa)}},{key:"reload",value:function(oa,aa,sa){this.prepareLoading(oa,aa,{reload:!0},sa)}},{key:"loadOne",value:function(oa){var aa=this,sa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",la=oa.split("|"),ca=la[0],ua=la[1];this.read(ca,ua,"read",void 0,void 0,function(da,pa){da&&aa.logger.warn("".concat(sa,"loading namespace ").concat(ua," for language ").concat(ca," failed"),da),!da&&pa&&aa.logger.log("".concat(sa,"loaded namespace ").concat(ua," for language ").concat(ca),pa),aa.loaded(oa,da,pa)})}},{key:"saveMissing",value:function(oa,aa,sa,la,ca){var ua=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(aa)){this.logger.warn('did not save key "'.concat(sa,'" as the namespace "').concat(aa,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}sa==null||sa===""||(this.backend&&this.backend.create&&this.backend.create(oa,aa,sa,la,null,_objectSpread$8({},ua,{isUpdate:ca})),!(!oa||!oa[0])&&this.store.addResource(oa[0],aa,sa,la))}}]),na}(EventEmitter$1);function get$6(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(na){var ra={};if(_typeof$3(na[1])==="object"&&(ra=na[1]),typeof na[1]=="string"&&(ra.defaultValue=na[1]),typeof na[2]=="string"&&(ra.tDescription=na[2]),_typeof$3(na[2])==="object"||_typeof$3(na[3])==="object"){var oa=na[3]||na[2];Object.keys(oa).forEach(function(aa){ra[aa]=oa[aa]})}return ra},interpolation:{escapeValue:!0,format:function(na,ra,oa,aa){return na},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function transformOptions(ea){return typeof ea.ns=="string"&&(ea.ns=[ea.ns]),typeof ea.fallbackLng=="string"&&(ea.fallbackLng=[ea.fallbackLng]),typeof ea.fallbackNS=="string"&&(ea.fallbackNS=[ea.fallbackNS]),ea.whitelist&&(ea.whitelist&&ea.whitelist.indexOf("cimode")<0&&(ea.whitelist=ea.whitelist.concat(["cimode"])),ea.supportedLngs=ea.whitelist),ea.nonExplicitWhitelist&&(ea.nonExplicitSupportedLngs=ea.nonExplicitWhitelist),ea.supportedLngs&&ea.supportedLngs.indexOf("cimode")<0&&(ea.supportedLngs=ea.supportedLngs.concat(["cimode"])),ea}function noop$4(){}var I18n=function(ea){_inherits$1(na,ea);function na(){var ra,oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},aa=arguments.length>1?arguments[1]:void 0;if(_classCallCheck$2(this,na),ra=_possibleConstructorReturn$1(this,_getPrototypeOf$1(na).call(this)),isIE10&&EventEmitter$1.call(_assertThisInitialized$1(ra)),ra.options=transformOptions(oa),ra.services={},ra.logger=baseLogger,ra.modules={external:[]},aa&&!ra.isInitialized&&!oa.isClone){if(!ra.options.initImmediate)return ra.init(oa,aa),_possibleConstructorReturn$1(ra,_assertThisInitialized$1(ra));setTimeout(function(){ra.init(oa,aa)},0)}return ra}return _createClass$2(na,[{key:"init",value:function(){var oa=this,aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sa=arguments.length>1?arguments[1]:void 0;typeof aa=="function"&&(sa=aa,aa={}),aa.whitelist&&!aa.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),aa.nonExplicitWhitelist&&!aa.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=_objectSpread$8({},get$6(),this.options,transformOptions(aa)),this.format=this.options.interpolation.format,sa||(sa=noop$4);function la(ma){return ma?typeof ma=="function"?new ma:ma:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(la(this.modules.logger),this.options):baseLogger.init(null,this.options);var ca=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var ua=this.services;ua.logger=baseLogger,ua.resourceStore=this.store,ua.languageUtils=ca,ua.pluralResolver=new PluralResolver(ca,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ua.interpolator=new Interpolator(this.options),ua.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},ua.backendConnector=new Connector(la(this.modules.backend),ua.resourceStore,ua,this.options),ua.backendConnector.on("*",function(ma){for(var va=arguments.length,xa=new Array(va>1?va-1:0),ya=1;ya<va;ya++)xa[ya-1]=arguments[ya];oa.emit.apply(oa,[ma].concat(xa))}),this.modules.languageDetector&&(ua.languageDetector=la(this.modules.languageDetector),ua.languageDetector.init(ua,this.options.detection,this.options)),this.modules.i18nFormat&&(ua.i18nFormat=la(this.modules.i18nFormat),ua.i18nFormat.init&&ua.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(ma){for(var va=arguments.length,xa=new Array(va>1?va-1:0),ya=1;ya<va;ya++)xa[ya-1]=arguments[ya];oa.emit.apply(oa,[ma].concat(xa))}),this.modules.external.forEach(function(ma){ma.init&&ma.init(oa)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var da=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);da.length>0&&da[0]!=="dev"&&(this.options.lng=da[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var pa=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];pa.forEach(function(ma){oa[ma]=function(){var va;return(va=oa.store)[ma].apply(va,arguments)}});var ha=["addResource","addResources","addResourceBundle","removeResourceBundle"];ha.forEach(function(ma){oa[ma]=function(){var va;return(va=oa.store)[ma].apply(va,arguments),oa}});var ga=defer(),fa=function(){var va=function(ya,Aa){oa.isInitialized&&oa.logger.warn("init: i18next is already initialized. You should call init just once!"),oa.isInitialized=!0,oa.options.isClone||oa.logger.log("initialized",oa.options),oa.emit("initialized",oa.options),ga.resolve(Aa),sa(ya,Aa)};if(oa.languages&&oa.options.compatibilityAPI!=="v1"&&!oa.isInitialized)return va(null,oa.t.bind(oa));oa.changeLanguage(oa.options.lng,va)};return this.options.resources||!this.options.initImmediate?fa():setTimeout(fa,0),ga}},{key:"loadResources",value:function(oa){var aa=this,sa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4,la=sa,ca=typeof oa=="string"?oa:this.language;if(typeof oa=="function"&&(la=oa),!this.options.resources||this.options.partialBundledLanguages){if(ca&&ca.toLowerCase()==="cimode")return la();var ua=[],da=function(ga){if(ga){var fa=aa.services.languageUtils.toResolveHierarchy(ga);fa.forEach(function(ma){ua.indexOf(ma)<0&&ua.push(ma)})}};if(ca)da(ca);else{var pa=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);pa.forEach(function(ha){return da(ha)})}this.options.preload&&this.options.preload.forEach(function(ha){return da(ha)}),this.services.backendConnector.load(ua,this.options.ns,la)}else la(null)}},{key:"reloadResources",value:function(oa,aa,sa){var la=defer();return oa||(oa=this.languages),aa||(aa=this.options.ns),sa||(sa=noop$4),this.services.backendConnector.reload(oa,aa,function(ca){la.resolve(),sa(ca)}),la}},{key:"use",value:function(oa){if(!oa)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!oa.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return oa.type==="backend"&&(this.modules.backend=oa),(oa.type==="logger"||oa.log&&oa.warn&&oa.error)&&(this.modules.logger=oa),oa.type==="languageDetector"&&(this.modules.languageDetector=oa),oa.type==="i18nFormat"&&(this.modules.i18nFormat=oa),oa.type==="postProcessor"&&postProcessor.addPostProcessor(oa),oa.type==="3rdParty"&&this.modules.external.push(oa),this}},{key:"changeLanguage",value:function(oa,aa){var sa=this;this.isLanguageChangingTo=oa;var la=defer();this.emit("languageChanging",oa);var ca=function(pa,ha){ha?(sa.language=ha,sa.languages=sa.services.languageUtils.toResolveHierarchy(ha),sa.translator.changeLanguage(ha),sa.isLanguageChangingTo=void 0,sa.emit("languageChanged",ha),sa.logger.log("languageChanged",ha)):sa.isLanguageChangingTo=void 0,la.resolve(function(){return sa.t.apply(sa,arguments)}),aa&&aa(pa,function(){return sa.t.apply(sa,arguments)})},ua=function(pa){var ha=typeof pa=="string"?pa:sa.services.languageUtils.getBestMatchFromCodes(pa);ha&&(sa.language||(sa.language=ha,sa.languages=sa.services.languageUtils.toResolveHierarchy(ha)),sa.translator.language||sa.translator.changeLanguage(ha),sa.services.languageDetector&&sa.services.languageDetector.cacheUserLanguage(ha)),sa.loadResources(ha,function(ga){ca(ga,ha)})};return!oa&&this.services.languageDetector&&!this.services.languageDetector.async?ua(this.services.languageDetector.detect()):!oa&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(ua):ua(oa),la}},{key:"getFixedT",value:function(oa,aa){var sa=this,la=function ca(ua,da){var pa;if(_typeof$3(da)!=="object"){for(var ha=arguments.length,ga=new Array(ha>2?ha-2:0),fa=2;fa<ha;fa++)ga[fa-2]=arguments[fa];pa=sa.options.overloadTranslationOptionHandler([ua,da].concat(ga))}else pa=_objectSpread$8({},da);return pa.lng=pa.lng||ca.lng,pa.lngs=pa.lngs||ca.lngs,pa.ns=pa.ns||ca.ns,sa.t(ua,pa)};return typeof oa=="string"?la.lng=oa:la.lngs=oa,la.ns=aa,la}},{key:"t",value:function(){var oa;return this.translator&&(oa=this.translator).translate.apply(oa,arguments)}},{key:"exists",value:function(){var oa;return this.translator&&(oa=this.translator).exists.apply(oa,arguments)}},{key:"setDefaultNamespace",value:function(oa){this.options.defaultNS=oa}},{key:"hasLoadedNamespace",value:function(oa){var aa=this,sa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var la=this.languages[0],ca=this.options?this.options.fallbackLng:!1,ua=this.languages[this.languages.length-1];if(la.toLowerCase()==="cimode")return!0;var da=function(ga,fa){var ma=aa.services.backendConnector.state["".concat(ga,"|").concat(fa)];return ma===-1||ma===2};if(sa.precheck){var pa=sa.precheck(this,da);if(pa!==void 0)return pa}return!!(this.hasResourceBundle(la,oa)||!this.services.backendConnector.backend||da(la,oa)&&(!ca||da(ua,oa)))}},{key:"loadNamespaces",value:function(oa,aa){var sa=this,la=defer();return this.options.ns?(typeof oa=="string"&&(oa=[oa]),oa.forEach(function(ca){sa.options.ns.indexOf(ca)<0&&sa.options.ns.push(ca)}),this.loadResources(function(ca){la.resolve(),aa&&aa(ca)}),la):(aa&&aa(),Promise.resolve())}},{key:"loadLanguages",value:function(oa,aa){var sa=defer();typeof oa=="string"&&(oa=[oa]);var la=this.options.preload||[],ca=oa.filter(function(ua){return la.indexOf(ua)<0});return ca.length?(this.options.preload=la.concat(ca),this.loadResources(function(ua){sa.resolve(),aa&&aa(ua)}),sa):(aa&&aa(),Promise.resolve())}},{key:"dir",value:function(oa){if(oa||(oa=this.languages&&this.languages.length>0?this.languages[0]:this.language),!oa)return"rtl";var aa=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return aa.indexOf(this.services.languageUtils.getLanguagePartFromCode(oa))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},aa=arguments.length>1?arguments[1]:void 0;return new na(oa,aa)}},{key:"cloneInstance",value:function(){var oa=this,aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4,la=_objectSpread$8({},this.options,aa,{isClone:!0}),ca=new na(la),ua=["store","services","language"];return ua.forEach(function(da){ca[da]=oa[da]}),ca.services=_objectSpread$8({},this.services),ca.services.utils={hasLoadedNamespace:ca.hasLoadedNamespace.bind(ca)},ca.translator=new Translator(ca.services,ca.options),ca.translator.on("*",function(da){for(var pa=arguments.length,ha=new Array(pa>1?pa-1:0),ga=1;ga<pa;ga++)ha[ga-1]=arguments[ga];ca.emit.apply(ca,[da].concat(ha))}),ca.init(la,sa),ca.translator.options=ca.options,ca.translator.backendConnector.services.utils={hasLoadedNamespace:ca.hasLoadedNamespace.bind(ca)},ca}}]),na}(EventEmitter$1),i18next=new I18n;function _objectWithoutPropertiesLoose$3(ea,na){if(ea==null)return{};var ra={};for(var oa in ea)if({}.hasOwnProperty.call(ea,oa)){if(na.indexOf(oa)!==-1)continue;ra[oa]=ea[oa]}return ra}function _objectWithoutProperties$1(ea,na){if(ea==null)return{};var ra,oa,aa=_objectWithoutPropertiesLoose$3(ea,na);if(Object.getOwnPropertySymbols){var sa=Object.getOwnPropertySymbols(ea);for(oa=0;oa<sa.length;oa++)ra=sa[oa],na.indexOf(ra)===-1&&{}.propertyIsEnumerable.call(ea,ra)&&(aa[ra]=ea[ra])}return aa}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);var voidElements,hasRequiredVoidElements;function requireVoidElements(){return hasRequiredVoidElements||(hasRequiredVoidElements=1,voidElements={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),voidElements}var voidElementsExports=requireVoidElements();const e$2=getDefaultExportFromCjs(voidElementsExports);var t$3=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$3(ea){var na={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},ra=ea.match(/<\/?([^\s]+?)[/\s>]/);if(ra&&(na.name=ra[1],(e$2[ra[1]]||ea.charAt(ea.length-2)==="/")&&(na.voidElement=!0),na.name.startsWith("!--"))){var oa=ea.indexOf("-->");return{type:"comment",comment:oa!==-1?ea.slice(4,oa):""}}for(var aa=new RegExp(t$3),sa=null;(sa=aa.exec(ea))!==null;)if(sa[0].trim())if(sa[1]){var la=sa[1].trim(),ca=[la,""];la.indexOf("=")>-1&&(ca=la.split("=")),na.attrs[ca[0]]=ca[1],aa.lastIndex--}else sa[2]&&(na.attrs[sa[2]]=sa[3].trim().substring(1,sa[3].length-1));return na}var r$4=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$4=/^\s*$/,s$3=Object.create(null);function a$3(ea,na){switch(na.type){case"text":return ea+na.content;case"tag":return ea+="<"+na.name+(na.attrs?function(ra){var oa=[];for(var aa in ra)oa.push(aa+'="'+ra[aa]+'"');return oa.length?" "+oa.join(" "):""}(na.attrs):"")+(na.voidElement?"/>":">"),na.voidElement?ea:ea+na.children.reduce(a$3,"")+"</"+na.name+">";case"comment":return ea+"<!--"+na.comment+"-->"}}var c$3={parse:function(ea,na){na||(na={}),na.components||(na.components=s$3);var ra,oa=[],aa=[],sa=-1,la=!1;if(ea.indexOf("<")!==0){var ca=ea.indexOf("<");oa.push({type:"text",content:ca===-1?ea:ea.substring(0,ca)})}return ea.replace(r$4,function(ua,da){if(la){if(ua!=="</"+ra.name+">")return;la=!1}var pa,ha=ua.charAt(1)!=="/",ga=ua.startsWith("<!--"),fa=da+ua.length,ma=ea.charAt(fa);if(ga){var va=n$3(ua);return sa<0?(oa.push(va),oa):((pa=aa[sa]).children.push(va),oa)}if(ha&&(sa++,(ra=n$3(ua)).type==="tag"&&na.components[ra.name]&&(ra.type="component",la=!0),ra.voidElement||la||!ma||ma==="<"||ra.children.push({type:"text",content:ea.slice(fa,ea.indexOf("<",fa))}),sa===0&&oa.push(ra),(pa=aa[sa-1])&&pa.children.push(ra),aa[sa]=ra),(!ha||ra.voidElement)&&(sa>-1&&(ra.voidElement||ra.name===ua.slice(2,-1))&&(sa--,ra=sa===-1?oa:aa[sa]),!la&&ma!=="<"&&ma)){pa=sa===-1?oa:aa[sa].children;var xa=ea.indexOf("<",fa),ya=ea.slice(fa,xa===-1?void 0:xa);i$4.test(ya)&&(ya=" "),(xa>-1&&sa+pa.length>=0||ya!==" ")&&pa.push({type:"text",content:ya})}}),oa},stringify:function(ea){return ea.reduce(function(na,ra){return na+a$3("",ra)},"")}},matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescapeHtmlEntity=function(na){return htmlEntities[na]},unescape$1=function(na){return na.replace(matchHtmlEntity,unescapeHtmlEntity)};function ownKeys$6(ea,na){var ra=Object.keys(ea);if(Object.getOwnPropertySymbols){var oa=Object.getOwnPropertySymbols(ea);na&&(oa=oa.filter(function(aa){return Object.getOwnPropertyDescriptor(ea,aa).enumerable})),ra.push.apply(ra,oa)}return ra}function _objectSpread$7(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{};na%2?ownKeys$6(Object(ra),!0).forEach(function(oa){_defineProperty$8(ea,oa,ra[oa])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ea,Object.getOwnPropertyDescriptors(ra)):ownKeys$6(Object(ra)).forEach(function(oa){Object.defineProperty(ea,oa,Object.getOwnPropertyDescriptor(ra,oa))})}return ea}var defaultOptions$5={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1},i18nInstance,I18nContext=reactExports.createContext();function setDefaults(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$5=_objectSpread$7(_objectSpread$7({},defaultOptions$5),ea)}function getDefaults$1(){return defaultOptions$5}var ReportNamespaces=function(){function ea(){_classCallCheck$2(this,ea),this.usedNamespaces={}}return _createClass$2(ea,[{key:"addUsedNamespaces",value:function(ra){var oa=this;ra.forEach(function(aa){oa.usedNamespaces[aa]||(oa.usedNamespaces[aa]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),ea}();function setI18n(ea){i18nInstance=ea}function getI18n(){return i18nInstance}var initReactI18next={type:"3rdParty",init:function(na){setDefaults(na.options.react),setI18n(na)}};function warn(){if(console&&console.warn){for(var ea,na=arguments.length,ra=new Array(na),oa=0;oa<na;oa++)ra[oa]=arguments[oa];typeof ra[0]=="string"&&(ra[0]="react-i18next:: ".concat(ra[0])),(ea=console).warn.apply(ea,ra)}}var alreadyWarned={};function warnOnce(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];typeof na[0]=="string"&&alreadyWarned[na[0]]||(typeof na[0]=="string"&&(alreadyWarned[na[0]]=new Date),warn.apply(void 0,na))}function loadNamespaces(ea,na,ra){ea.loadNamespaces(na,function(){if(ea.isInitialized)ra();else{var oa=function aa(){setTimeout(function(){ea.off("initialized",aa)},0),ra()};ea.on("initialized",oa)}})}function oldI18nextHasLoadedNamespace(ea,na){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=na.languages[0],aa=na.options?na.options.fallbackLng:!1,sa=na.languages[na.languages.length-1];if(oa.toLowerCase()==="cimode")return!0;var la=function(ua,da){var pa=na.services.backendConnector.state["".concat(ua,"|").concat(da)];return pa===-1||pa===2};return ra.bindI18n&&ra.bindI18n.indexOf("languageChanging")>-1&&na.services.backendConnector.backend&&na.isLanguageChangingTo&&!la(na.isLanguageChangingTo,ea)?!1:!!(na.hasResourceBundle(oa,ea)||!na.services.backendConnector.backend||na.options.resources&&!na.options.partialBundledLanguages||la(oa,ea)&&(!aa||la(sa,ea)))}function hasLoadedNamespace(ea,na){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!na.languages||!na.languages.length)return warnOnce("i18n.languages were undefined or empty",na.languages),!0;var oa=na.options.ignoreJSONStructure!==void 0;return oa?na.hasLoadedNamespace(ea,{precheck:function(sa,la){if(ra.bindI18n&&ra.bindI18n.indexOf("languageChanging")>-1&&sa.services.backendConnector.backend&&sa.isLanguageChangingTo&&!la(sa.isLanguageChangingTo,ea))return!1}}):oldI18nextHasLoadedNamespace(ea,na,ra)}var _excluded$c=["format"],_excluded2$3=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function ownKeys$5(ea,na){var ra=Object.keys(ea);if(Object.getOwnPropertySymbols){var oa=Object.getOwnPropertySymbols(ea);na&&(oa=oa.filter(function(aa){return Object.getOwnPropertyDescriptor(ea,aa).enumerable})),ra.push.apply(ra,oa)}return ra}function _objectSpread$6(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{};na%2?ownKeys$5(Object(ra),!0).forEach(function(oa){_defineProperty$8(ea,oa,ra[oa])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ea,Object.getOwnPropertyDescriptors(ra)):ownKeys$5(Object(ra)).forEach(function(oa){Object.defineProperty(ea,oa,Object.getOwnPropertyDescriptor(ra,oa))})}return ea}function hasChildren(ea,na){if(!ea)return!1;var ra=ea.props?ea.props.children:ea.children;return na?ra.length>0:!!ra}function getChildren$1(ea){return ea?ea.props?ea.props.children:ea.children:[]}function hasValidReactChildren(ea){return Object.prototype.toString.call(ea)!=="[object Array]"?!1:ea.every(function(na){return reactExports.isValidElement(na)})}function getAsArray(ea){return Array.isArray(ea)?ea:[ea]}function mergeProps$1(ea,na){var ra=_objectSpread$6({},na);return ra.props=Object.assign(ea.props,na.props),ra}function nodesToString(ea,na){if(!ea)return"";var ra="",oa=getAsArray(ea),aa=na.transSupportBasicHtmlNodes&&na.transKeepBasicHtmlNodesFor?na.transKeepBasicHtmlNodesFor:[];return oa.forEach(function(sa,la){if(typeof sa=="string")ra+="".concat(sa);else if(reactExports.isValidElement(sa)){var ca=Object.keys(sa.props).length,ua=aa.indexOf(sa.type)>-1,da=sa.props.children;if(!da&&ua&&ca===0)ra+="<".concat(sa.type,"/>");else if(!da&&(!ua||ca!==0))ra+="<".concat(la,"></").concat(la,">");else if(sa.props.i18nIsDynamicList)ra+="<".concat(la,"></").concat(la,">");else if(ua&&ca===1&&typeof da=="string")ra+="<".concat(sa.type,">").concat(da,"</").concat(sa.type,">");else{var pa=nodesToString(da,na);ra+="<".concat(la,">").concat(pa,"</").concat(la,">")}}else if(sa===null)warn("Trans: the passed in value is invalid - seems you passed in a null child.");else if(_typeof$3(sa)==="object"){var ha=sa.format,ga=_objectWithoutProperties$1(sa,_excluded$c),fa=Object.keys(ga);if(fa.length===1){var ma=ha?"".concat(fa[0],", ").concat(ha):fa[0];ra+="{{".concat(ma,"}}")}else warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",sa)}else warn("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",sa)}),ra}function renderNodes(ea,na,ra,oa,aa,sa){if(na==="")return[];var la=oa.transKeepBasicHtmlNodesFor||[],ca=na&&new RegExp(la.join("|")).test(na);if(!ea&&!ca)return[na];var ua={};function da(xa){var ya=getAsArray(xa);ya.forEach(function(Aa){typeof Aa!="string"&&(hasChildren(Aa)?da(getChildren$1(Aa)):_typeof$3(Aa)==="object"&&!reactExports.isValidElement(Aa)&&Object.assign(ua,Aa))})}da(ea);var pa=c$3.parse("<0>".concat(na,"</0>")),ha=_objectSpread$6(_objectSpread$6({},ua),aa);function ga(xa,ya,Aa){var Ca=getChildren$1(xa),Sa=ma(Ca,ya.children,Aa);return hasValidReactChildren(Ca)&&Sa.length===0?Ca:Sa}function fa(xa,ya,Aa,Ca,Sa){xa.dummy&&(xa.children=ya),Aa.push(reactExports.cloneElement(xa,_objectSpread$6(_objectSpread$6({},xa.props),{},{key:Ca}),Sa?void 0:ya))}function ma(xa,ya,Aa){var Ca=getAsArray(xa),Sa=getAsArray(ya);return Sa.reduce(function(wa,ba,Ea){var $a=ba.children&&ba.children[0]&&ba.children[0].content&&ra.services.interpolator.interpolate(ba.children[0].content,ha,ra.language);if(ba.type==="tag"){var Ma=Ca[parseInt(ba.name,10)];!Ma&&Aa.length===1&&Aa[0][ba.name]&&(Ma=Aa[0][ba.name]),Ma||(Ma={});var Ia=Object.keys(ba.attrs).length!==0?mergeProps$1({props:ba.attrs},Ma):Ma,Oa=reactExports.isValidElement(Ia),Da=Oa&&hasChildren(ba,!0)&&!ba.voidElement,Ta=ca&&_typeof$3(Ia)==="object"&&Ia.dummy&&!Oa,_a=_typeof$3(ea)==="object"&&ea!==null&&Object.hasOwnProperty.call(ea,ba.name);if(typeof Ia=="string"){var La=ra.services.interpolator.interpolate(Ia,ha,ra.language);wa.push(La)}else if(hasChildren(Ia)||Da){var Na=ga(Ia,ba,Aa);fa(Ia,Na,wa,Ea)}else if(Ta){var za=ma(Ca,ba.children,Aa);wa.push(reactExports.cloneElement(Ia,_objectSpread$6(_objectSpread$6({},Ia.props),{},{key:Ea}),za))}else if(Number.isNaN(parseFloat(ba.name)))if(_a){var Fa=ga(Ia,ba,Aa);fa(Ia,Fa,wa,Ea,ba.voidElement)}else if(oa.transSupportBasicHtmlNodes&&la.indexOf(ba.name)>-1)if(ba.voidElement)wa.push(reactExports.createElement(ba.name,{key:"".concat(ba.name,"-").concat(Ea)}));else{var Ha=ma(Ca,ba.children,Aa);wa.push(reactExports.createElement(ba.name,{key:"".concat(ba.name,"-").concat(Ea)},Ha))}else if(ba.voidElement)wa.push("<".concat(ba.name," />"));else{var Va=ma(Ca,ba.children,Aa);wa.push("<".concat(ba.name,">").concat(Va,"</").concat(ba.name,">"))}else if(_typeof$3(Ia)==="object"&&!Oa){var Ua=ba.children[0]?$a:null;Ua&&wa.push(Ua)}else ba.children.length===1&&$a?wa.push(reactExports.cloneElement(Ia,_objectSpread$6(_objectSpread$6({},Ia.props),{},{key:Ea}),$a)):wa.push(reactExports.cloneElement(Ia,_objectSpread$6(_objectSpread$6({},Ia.props),{},{key:Ea})))}else if(ba.type==="text"){var Qa=oa.transWrapTextNodes,Wa=sa?oa.unescape(ra.services.interpolator.interpolate(ba.content,ha,ra.language)):ra.services.interpolator.interpolate(ba.content,ha,ra.language);Qa?wa.push(reactExports.createElement(Qa,{key:"".concat(ba.name,"-").concat(Ea)},Wa)):wa.push(Wa)}return wa},[])}var va=ma([{dummy:!0,children:ea||[]}],pa,getAsArray(ea||[]));return getChildren$1(va[0])}function Trans(ea){var na=ea.children,ra=ea.count,oa=ea.parent,aa=ea.i18nKey,sa=ea.context,la=ea.tOptions,ca=la===void 0?{}:la,ua=ea.values,da=ea.defaults,pa=ea.components,ha=ea.ns,ga=ea.i18n,fa=ea.t,ma=ea.shouldUnescape,va=_objectWithoutProperties$1(ea,_excluded2$3),xa=reactExports.useContext(I18nContext)||{},ya=xa.i18n,Aa=xa.defaultNS,Ca=ga||ya||getI18n();if(!Ca)return warnOnce("You will need to pass in an i18next instance by using i18nextReactModule"),na;var Sa=fa||Ca.t.bind(Ca)||function(La){return La};sa&&(ca.context=sa);var wa=_objectSpread$6(_objectSpread$6({},getDefaults$1()),Ca.options&&Ca.options.react),ba=ha||Sa.ns||Aa||Ca.options&&Ca.options.defaultNS;ba=typeof ba=="string"?[ba]:ba||["translation"];var Ea=da||nodesToString(na,wa)||wa.transEmptyNodeValue||aa,$a=wa.hashTransKey,Ma=aa||($a?$a(Ea):Ea),Ia=ua?ca.interpolation:{interpolation:_objectSpread$6(_objectSpread$6({},ca.interpolation),{},{prefix:"#$?",suffix:"?$#"})},Oa=_objectSpread$6(_objectSpread$6(_objectSpread$6(_objectSpread$6({},ca),{},{count:ra},ua),Ia),{},{defaultValue:Ea,ns:ba}),Da=Ma?Sa(Ma,Oa):Ea,Ta=renderNodes(pa||na,Da,Ca,wa,Oa,ma),_a=oa!==void 0?oa:wa.defaultTransParent;return _a?reactExports.createElement(_a,va,Ta):Ta}function _arrayWithHoles(ea){if(Array.isArray(ea))return ea}function _iterableToArrayLimit(ea,na){var ra=ea==null?null:typeof Symbol<"u"&&ea[Symbol.iterator]||ea["@@iterator"];if(ra!=null){var oa,aa,sa,la,ca=[],ua=!0,da=!1;try{if(sa=(ra=ra.call(ea)).next,na===0){if(Object(ra)!==ra)return;ua=!1}else for(;!(ua=(oa=sa.call(ra)).done)&&(ca.push(oa.value),ca.length!==na);ua=!0);}catch(pa){da=!0,aa=pa}finally{try{if(!ua&&ra.return!=null&&(la=ra.return(),Object(la)!==la))return}finally{if(da)throw aa}}return ca}}function _arrayLikeToArray$1(ea,na){(na==null||na>ea.length)&&(na=ea.length);for(var ra=0,oa=Array(na);ra<na;ra++)oa[ra]=ea[ra];return oa}function _unsupportedIterableToArray$1(ea,na){if(ea){if(typeof ea=="string")return _arrayLikeToArray$1(ea,na);var ra={}.toString.call(ea).slice(8,-1);return ra==="Object"&&ea.constructor&&(ra=ea.constructor.name),ra==="Map"||ra==="Set"?Array.from(ea):ra==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ra)?_arrayLikeToArray$1(ea,na):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(ea,na){return _arrayWithHoles(ea)||_iterableToArrayLimit(ea,na)||_unsupportedIterableToArray$1(ea,na)||_nonIterableRest()}function ownKeys$4(ea,na){var ra=Object.keys(ea);if(Object.getOwnPropertySymbols){var oa=Object.getOwnPropertySymbols(ea);na&&(oa=oa.filter(function(aa){return Object.getOwnPropertyDescriptor(ea,aa).enumerable})),ra.push.apply(ra,oa)}return ra}function _objectSpread$5(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{};na%2?ownKeys$4(Object(ra),!0).forEach(function(oa){_defineProperty$8(ea,oa,ra[oa])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ea,Object.getOwnPropertyDescriptors(ra)):ownKeys$4(Object(ra)).forEach(function(oa){Object.defineProperty(ea,oa,Object.getOwnPropertyDescriptor(ra,oa))})}return ea}var usePrevious$2=function(na,ra){var oa=reactExports.useRef();return reactExports.useEffect(function(){oa.current=na},[na,ra]),oa.current};function useTranslation(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=na.i18n,oa=reactExports.useContext(I18nContext)||{},aa=oa.i18n,sa=oa.defaultNS,la=ra||aa||getI18n();if(la&&!la.reportNamespaces&&(la.reportNamespaces=new ReportNamespaces),!la){warnOnce("You will need to pass in an i18next instance by using initReactI18next");var ca=function(Ma){return Array.isArray(Ma)?Ma[Ma.length-1]:Ma},ua=[ca,{},!1];return ua.t=ca,ua.i18n={},ua.ready=!1,ua}la.options.react&&la.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var da=_objectSpread$5(_objectSpread$5(_objectSpread$5({},getDefaults$1()),la.options.react),na),pa=da.useSuspense,ha=da.keyPrefix,ga=sa||la.options&&la.options.defaultNS;ga=typeof ga=="string"?[ga]:ga||["translation"],la.reportNamespaces.addUsedNamespaces&&la.reportNamespaces.addUsedNamespaces(ga);var fa=(la.isInitialized||la.initializedStoreOnce)&&ga.every(function($a){return hasLoadedNamespace($a,la,da)});function ma(){return la.getFixedT(null,da.nsMode==="fallback"?ga:ga[0],ha)}var va=reactExports.useState(ma),xa=_slicedToArray(va,2),ya=xa[0],Aa=xa[1],Ca=ga.join(),Sa=usePrevious$2(Ca),wa=reactExports.useRef(!0);reactExports.useEffect(function(){var $a=da.bindI18n,Ma=da.bindI18nStore;wa.current=!0,!fa&&!pa&&loadNamespaces(la,ga,function(){wa.current&&Aa(ma)}),fa&&Sa&&Sa!==Ca&&wa.current&&Aa(ma);function Ia(){wa.current&&Aa(ma)}return $a&&la&&la.on($a,Ia),Ma&&la&&la.store.on(Ma,Ia),function(){wa.current=!1,$a&&la&&$a.split(" ").forEach(function(Oa){return la.off(Oa,Ia)}),Ma&&la&&Ma.split(" ").forEach(function(Oa){return la.store.off(Oa,Ia)})}},[la,Ca]);var ba=reactExports.useRef(!0);reactExports.useEffect(function(){wa.current&&!ba.current&&Aa(ma),ba.current=!1},[la,ha]);var Ea=[ya,la,fa];if(Ea.t=ya,Ea.i18n=la,Ea.ready=fa,fa||!fa&&!pa)return Ea;throw new Promise(function($a){loadNamespaces(la,ga,function(){$a()})})}function _typeof$2(ea){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na},_typeof$2(ea)}var arr=[],each$1=arr.forEach,slice$1=arr.slice;function defaults(ea){return each$1.call(slice$1.call(arguments,1),function(na){if(na)for(var ra in na)ea[ra]===void 0&&(ea[ra]=na[ra])}),ea}function hasXMLHttpRequest(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_typeof$2(XMLHttpRequest))==="object"}function isPromise(ea){return!!ea&&typeof ea.then=="function"}function makePromise(ea){return isPromise(ea)?ea:Promise.resolve(ea)}function commonjsRequire(ea){throw new Error('Could not dynamically require "'+ea+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var getFetch$1={exports:{}},browserPonyfill$1={exports:{}},browserPonyfill=browserPonyfill$1.exports,hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(ea,na){var ra=typeof self<"u"?self:browserPonyfill,oa=function(){function sa(){this.fetch=!1,this.DOMException=ra.DOMException}return sa.prototype=ra,new sa}();(function(sa){(function(la){var ca={searchParams:"URLSearchParams"in sa,iterable:"Symbol"in sa&&"iterator"in Symbol,blob:"FileReader"in sa&&"Blob"in sa&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in sa,arrayBuffer:"ArrayBuffer"in sa};function ua(_a){return _a&&DataView.prototype.isPrototypeOf(_a)}if(ca.arrayBuffer)var da=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],pa=ArrayBuffer.isView||function(_a){return _a&&da.indexOf(Object.prototype.toString.call(_a))>-1};function ha(_a){if(typeof _a!="string"&&(_a=String(_a)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(_a))throw new TypeError("Invalid character in header field name");return _a.toLowerCase()}function ga(_a){return typeof _a!="string"&&(_a=String(_a)),_a}function fa(_a){var La={next:function(){var Na=_a.shift();return{done:Na===void 0,value:Na}}};return ca.iterable&&(La[Symbol.iterator]=function(){return La}),La}function ma(_a){this.map={},_a instanceof ma?_a.forEach(function(La,Na){this.append(Na,La)},this):Array.isArray(_a)?_a.forEach(function(La){this.append(La[0],La[1])},this):_a&&Object.getOwnPropertyNames(_a).forEach(function(La){this.append(La,_a[La])},this)}ma.prototype.append=function(_a,La){_a=ha(_a),La=ga(La);var Na=this.map[_a];this.map[_a]=Na?Na+", "+La:La},ma.prototype.delete=function(_a){delete this.map[ha(_a)]},ma.prototype.get=function(_a){return _a=ha(_a),this.has(_a)?this.map[_a]:null},ma.prototype.has=function(_a){return this.map.hasOwnProperty(ha(_a))},ma.prototype.set=function(_a,La){this.map[ha(_a)]=ga(La)},ma.prototype.forEach=function(_a,La){for(var Na in this.map)this.map.hasOwnProperty(Na)&&_a.call(La,this.map[Na],Na,this)},ma.prototype.keys=function(){var _a=[];return this.forEach(function(La,Na){_a.push(Na)}),fa(_a)},ma.prototype.values=function(){var _a=[];return this.forEach(function(La){_a.push(La)}),fa(_a)},ma.prototype.entries=function(){var _a=[];return this.forEach(function(La,Na){_a.push([Na,La])}),fa(_a)},ca.iterable&&(ma.prototype[Symbol.iterator]=ma.prototype.entries);function va(_a){if(_a.bodyUsed)return Promise.reject(new TypeError("Already read"));_a.bodyUsed=!0}function xa(_a){return new Promise(function(La,Na){_a.onload=function(){La(_a.result)},_a.onerror=function(){Na(_a.error)}})}function ya(_a){var La=new FileReader,Na=xa(La);return La.readAsArrayBuffer(_a),Na}function Aa(_a){var La=new FileReader,Na=xa(La);return La.readAsText(_a),Na}function Ca(_a){for(var La=new Uint8Array(_a),Na=new Array(La.length),za=0;za<La.length;za++)Na[za]=String.fromCharCode(La[za]);return Na.join("")}function Sa(_a){if(_a.slice)return _a.slice(0);var La=new Uint8Array(_a.byteLength);return La.set(new Uint8Array(_a)),La.buffer}function wa(){return this.bodyUsed=!1,this._initBody=function(_a){this._bodyInit=_a,_a?typeof _a=="string"?this._bodyText=_a:ca.blob&&Blob.prototype.isPrototypeOf(_a)?this._bodyBlob=_a:ca.formData&&FormData.prototype.isPrototypeOf(_a)?this._bodyFormData=_a:ca.searchParams&&URLSearchParams.prototype.isPrototypeOf(_a)?this._bodyText=_a.toString():ca.arrayBuffer&&ca.blob&&ua(_a)?(this._bodyArrayBuffer=Sa(_a.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ca.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(_a)||pa(_a))?this._bodyArrayBuffer=Sa(_a):this._bodyText=_a=Object.prototype.toString.call(_a):this._bodyText="",this.headers.get("content-type")||(typeof _a=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ca.searchParams&&URLSearchParams.prototype.isPrototypeOf(_a)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ca.blob&&(this.blob=function(){var _a=va(this);if(_a)return _a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?va(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ya)}),this.text=function(){var _a=va(this);if(_a)return _a;if(this._bodyBlob)return Aa(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ca(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ca.formData&&(this.formData=function(){return this.text().then(Ma)}),this.json=function(){return this.text().then(JSON.parse)},this}var ba=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ea(_a){var La=_a.toUpperCase();return ba.indexOf(La)>-1?La:_a}function $a(_a,La){La=La||{};var Na=La.body;if(_a instanceof $a){if(_a.bodyUsed)throw new TypeError("Already read");this.url=_a.url,this.credentials=_a.credentials,La.headers||(this.headers=new ma(_a.headers)),this.method=_a.method,this.mode=_a.mode,this.signal=_a.signal,!Na&&_a._bodyInit!=null&&(Na=_a._bodyInit,_a.bodyUsed=!0)}else this.url=String(_a);if(this.credentials=La.credentials||this.credentials||"same-origin",(La.headers||!this.headers)&&(this.headers=new ma(La.headers)),this.method=Ea(La.method||this.method||"GET"),this.mode=La.mode||this.mode||null,this.signal=La.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Na)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Na)}$a.prototype.clone=function(){return new $a(this,{body:this._bodyInit})};function Ma(_a){var La=new FormData;return _a.trim().split("&").forEach(function(Na){if(Na){var za=Na.split("="),Fa=za.shift().replace(/\+/g," "),Ha=za.join("=").replace(/\+/g," ");La.append(decodeURIComponent(Fa),decodeURIComponent(Ha))}}),La}function Ia(_a){var La=new ma,Na=_a.replace(/\r?\n[\t ]+/g," ");return Na.split(/\r?\n/).forEach(function(za){var Fa=za.split(":"),Ha=Fa.shift().trim();if(Ha){var Va=Fa.join(":").trim();La.append(Ha,Va)}}),La}wa.call($a.prototype);function Oa(_a,La){La||(La={}),this.type="default",this.status=La.status===void 0?200:La.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in La?La.statusText:"OK",this.headers=new ma(La.headers),this.url=La.url||"",this._initBody(_a)}wa.call(Oa.prototype),Oa.prototype.clone=function(){return new Oa(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ma(this.headers),url:this.url})},Oa.error=function(){var _a=new Oa(null,{status:0,statusText:""});return _a.type="error",_a};var Da=[301,302,303,307,308];Oa.redirect=function(_a,La){if(Da.indexOf(La)===-1)throw new RangeError("Invalid status code");return new Oa(null,{status:La,headers:{location:_a}})},la.DOMException=sa.DOMException;try{new la.DOMException}catch{la.DOMException=function(La,Na){this.message=La,this.name=Na;var za=Error(La);this.stack=za.stack},la.DOMException.prototype=Object.create(Error.prototype),la.DOMException.prototype.constructor=la.DOMException}function Ta(_a,La){return new Promise(function(Na,za){var Fa=new $a(_a,La);if(Fa.signal&&Fa.signal.aborted)return za(new la.DOMException("Aborted","AbortError"));var Ha=new XMLHttpRequest;function Va(){Ha.abort()}Ha.onload=function(){var Ua={status:Ha.status,statusText:Ha.statusText,headers:Ia(Ha.getAllResponseHeaders()||"")};Ua.url="responseURL"in Ha?Ha.responseURL:Ua.headers.get("X-Request-URL");var Qa="response"in Ha?Ha.response:Ha.responseText;Na(new Oa(Qa,Ua))},Ha.onerror=function(){za(new TypeError("Network request failed"))},Ha.ontimeout=function(){za(new TypeError("Network request failed"))},Ha.onabort=function(){za(new la.DOMException("Aborted","AbortError"))},Ha.open(Fa.method,Fa.url,!0),Fa.credentials==="include"?Ha.withCredentials=!0:Fa.credentials==="omit"&&(Ha.withCredentials=!1),"responseType"in Ha&&ca.blob&&(Ha.responseType="blob"),Fa.headers.forEach(function(Ua,Qa){Ha.setRequestHeader(Qa,Ua)}),Fa.signal&&(Fa.signal.addEventListener("abort",Va),Ha.onreadystatechange=function(){Ha.readyState===4&&Fa.signal.removeEventListener("abort",Va)}),Ha.send(typeof Fa._bodyInit>"u"?null:Fa._bodyInit)})}return Ta.polyfill=!0,sa.fetch||(sa.fetch=Ta,sa.Headers=ma,sa.Request=$a,sa.Response=Oa),la.Headers=ma,la.Request=$a,la.Response=Oa,la.fetch=Ta,Object.defineProperty(la,"__esModule",{value:!0}),la})({})})(oa),oa.fetch.ponyfill=!0,delete oa.fetch.polyfill;var aa=oa;na=aa.fetch,na.default=aa.fetch,na.fetch=aa.fetch,na.Headers=aa.Headers,na.Request=aa.Request,na.Response=aa.Response,ea.exports=na}(browserPonyfill$1,browserPonyfill$1.exports)),browserPonyfill$1.exports}var hasRequiredGetFetch;function requireGetFetch(){return hasRequiredGetFetch||(hasRequiredGetFetch=1,function(ea,na){var ra;if(typeof fetch=="function"&&(typeof commonjsGlobal$1<"u"&&commonjsGlobal$1.fetch?ra=commonjsGlobal$1.fetch:typeof window<"u"&&window.fetch?ra=window.fetch:ra=fetch),typeof commonjsRequire<"u"&&(typeof window>"u"||typeof window.document>"u")){var oa=ra||requireBrowserPonyfill();oa.default&&(oa=oa.default),na.default=oa,ea.exports=na.default}}(getFetch$1,getFetch$1.exports)),getFetch$1.exports}var getFetchExports=requireGetFetch();const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$1(ea){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na},_typeof$1(ea)}var fetchApi;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?fetchApi=global.fetch:typeof window<"u"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global<"u"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(na,ra){if(ra&&_typeof$1(ra)==="object"){var oa="";for(var aa in ra)oa+="&"+encodeURIComponent(aa)+"="+encodeURIComponent(ra[aa]);if(!oa)return na;na=na+(na.indexOf("?")!==-1?"&":"?")+oa.slice(1)}return na},fetchIt=function(na,ra,oa){fetchApi(na,ra).then(function(aa){if(!aa.ok)return oa(aa.statusText||"Error",{status:aa.status});aa.text().then(function(sa){oa(null,{status:aa.status,data:sa})}).catch(oa)}).catch(oa)},omitFetchOptions=!1,requestWithFetch=function(na,ra,oa,aa){na.queryStringParams&&(ra=addQueryString(ra,na.queryStringParams));var sa=defaults({},typeof na.customHeaders=="function"?na.customHeaders():na.customHeaders);oa&&(sa["Content-Type"]="application/json");var la=typeof na.requestOptions=="function"?na.requestOptions(oa):na.requestOptions,ca=defaults({method:oa?"POST":"GET",body:oa?na.stringify(oa):void 0,headers:sa},omitFetchOptions?{}:la);try{fetchIt(ra,ca,aa)}catch(ua){if(!la||Object.keys(la).length===0||!ua.message||ua.message.indexOf("not implemented")<0)return aa(ua);try{Object.keys(la).forEach(function(da){delete ca[da]}),fetchIt(ra,ca,aa),omitFetchOptions=!0}catch(da){aa(da)}}},requestWithXmlHttpRequest=function(na,ra,oa,aa){oa&&_typeof$1(oa)==="object"&&(oa=addQueryString("",oa).slice(1)),na.queryStringParams&&(ra=addQueryString(ra,na.queryStringParams));try{var sa;XmlHttpRequestApi?sa=new XmlHttpRequestApi:sa=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),sa.open(oa?"POST":"GET",ra,1),na.crossDomain||sa.setRequestHeader("X-Requested-With","XMLHttpRequest"),sa.withCredentials=!!na.withCredentials,oa&&sa.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),sa.overrideMimeType&&sa.overrideMimeType("application/json");var la=na.customHeaders;if(la=typeof la=="function"?la():la,la)for(var ca in la)sa.setRequestHeader(ca,la[ca]);sa.onreadystatechange=function(){sa.readyState>3&&aa(sa.status>=400?sa.statusText:null,{status:sa.status,data:sa.responseText})},sa.send(oa)}catch(ua){console&&console.log(ua)}},request=function(na,ra,oa,aa){if(typeof oa=="function"&&(aa=oa,oa=void 0),aa=aa||function(){},fetchApi)return requestWithFetch(na,ra,oa,aa);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(na,ra,oa,aa);aa(new Error("No fetch and no xhr implementation found!"))};function _classCallCheck$1(ea,na){if(!(ea instanceof na))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(ea,na){for(var ra=0;ra<na.length;ra++){var oa=na[ra];oa.enumerable=oa.enumerable||!1,oa.configurable=!0,"value"in oa&&(oa.writable=!0),Object.defineProperty(ea,oa.key,oa)}}function _createClass$1(ea,na,ra){return na&&_defineProperties$1(ea.prototype,na),Object.defineProperty(ea,"prototype",{writable:!1}),ea}function _defineProperty$7(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}var getDefaults=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(ra){return JSON.parse(ra)},stringify:JSON.stringify,parsePayload:function(ra,oa,aa){return _defineProperty$7({},oa,aa||"")},request,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Backend=function(){function ea(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck$1(this,ea),this.services=na,this.options=ra,this.allOptions=oa,this.type="backend",this.init(na,ra,oa)}return _createClass$1(ea,[{key:"init",value:function(ra){var oa=this,aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=ra,this.options=defaults(aa,this.options||{},getDefaults()),this.allOptions=sa,this.services&&this.options.reloadInterval&&setInterval(function(){return oa.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(ra,oa,aa){this._readAny(ra,ra,oa,oa,aa)}},{key:"read",value:function(ra,oa,aa){this._readAny([ra],ra,[oa],oa,aa)}},{key:"_readAny",value:function(ra,oa,aa,sa,la){var ca=this,ua=this.options.loadPath;typeof this.options.loadPath=="function"&&(ua=this.options.loadPath(ra,aa)),ua=makePromise(ua),ua.then(function(da){if(!da)return la(null,{});var pa=ca.services.interpolator.interpolate(da,{lng:ra.join("+"),ns:aa.join("+")});ca.loadUrl(pa,la,oa,sa)})}},{key:"loadUrl",value:function(ra,oa,aa,sa){var la=this;this.options.request(this.options,ra,void 0,function(ca,ua){if(ua&&(ua.status>=500&&ua.status<600||!ua.status))return oa("failed loading "+ra+"; status code: "+ua.status,!0);if(ua&&ua.status>=400&&ua.status<500)return oa("failed loading "+ra+"; status code: "+ua.status,!1);if(!ua&&ca&&ca.message&&ca.message.indexOf("Failed to fetch")>-1)return oa("failed loading "+ra+": "+ca.message,!0);if(ca)return oa(ca,!1);var da,pa;try{typeof ua.data=="string"?da=la.options.parse(ua.data,aa,sa):da=ua.data}catch{pa="failed parsing "+ra+" to json"}if(pa)return oa(pa,!1);oa(null,da)})}},{key:"create",value:function(ra,oa,aa,sa,la){var ca=this;if(this.options.addPath){typeof ra=="string"&&(ra=[ra]);var ua=this.options.parsePayload(oa,aa,sa),da=0,pa=[],ha=[];ra.forEach(function(ga){var fa=ca.options.addPath;typeof ca.options.addPath=="function"&&(fa=ca.options.addPath(ga,oa));var ma=ca.services.interpolator.interpolate(fa,{lng:ga,ns:oa});ca.options.request(ca.options,ma,ua,function(va,xa){da+=1,pa.push(va),ha.push(xa),da===ra.length&&la&&la(pa,ha)})})}}},{key:"reload",value:function(){var ra=this,oa=this.services,aa=oa.backendConnector,sa=oa.languageUtils,la=oa.logger,ca=aa.language;if(!(ca&&ca.toLowerCase()==="cimode")){var ua=[],da=function(ha){var ga=sa.toResolveHierarchy(ha);ga.forEach(function(fa){ua.indexOf(fa)<0&&ua.push(fa)})};da(ca),this.allOptions.preload&&this.allOptions.preload.forEach(function(pa){return da(pa)}),ua.forEach(function(pa){ra.allOptions.ns.forEach(function(ha){aa.read(pa,ha,"read",null,null,function(ga,fa){ga&&la.warn("loading namespace ".concat(ha," for language ").concat(pa," failed"),ga),!ga&&fa&&la.log("loaded namespace ".concat(ha," for language ").concat(pa),fa),aa.loaded("".concat(pa,"|").concat(ha),ga,fa)})})})}}}]),ea}();Backend.type="backend";var define_process_env_default$6={PLATFORM:"wordpress"};const defaultDepicterEnv={platform:define_process_env_default$6.PLATFORM,activationLink:"https://my.depicter.com/activation",purchaseLink:"https://depicter.com/pricing",membersAreaLink:"https://my.depicter.com/",integrations:{unfilteredUploadAllowed:!0}},commonEnv={...defaultDepicterEnv,...window?.depicterEnv,posthogKey:"phc_7ntrHrGRmupJK3WgGK5gkVwE41HviCeytuOVPnuEcjB",posthogHost:"https://us.i.posthog.com"};var Tiers=(ea=>(ea.LEGACY_FREE="free-user-",ea.FREE="free-user",ea.EARLY="free-user+",ea.PRO="pro-user",ea.CREATOR="content-creator",ea))(Tiers||{});const defaultDashboardEnv={...commonEnv,postReviewUrl:"https://wordpress.org/support/plugin/depicter/reviews/#new-post"},dashboardEnv={...defaultDashboardEnv,...window?.depicterDashboardEnv,...window?.depicterEnv},defaultEditorEnv={...commonEnv},editorEnv={...defaultEditorEnv,...window?.depicterEditorEnv,...window?.depicterEnv},defaultKitEnv={...commonEnv},browserEnv={...defaultKitEnv,...window?.depicterKitEnv},version$2="3.7.7",VERSION=version$2,_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(ea=>{let na={};return ea.forEach((ra,oa)=>na[ra]=oa),na})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):ea=>new Uint8Array(Array.prototype.slice.call(ea,0)),_mkUriSafe=ea=>ea.replace(/=/g,"").replace(/[+\/]/g,na=>na=="+"?"-":"_"),_tidyB64=ea=>ea.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=ea=>{let na,ra,oa,aa,sa="";const la=ea.length%3;for(let ca=0;ca<ea.length;){if((ra=ea.charCodeAt(ca++))>255||(oa=ea.charCodeAt(ca++))>255||(aa=ea.charCodeAt(ca++))>255)throw new TypeError("invalid character found");na=ra<<16|oa<<8|aa,sa+=b64chs[na>>18&63]+b64chs[na>>12&63]+b64chs[na>>6&63]+b64chs[na&63]}return la?sa.slice(0,la-3)+"===".substring(la):sa},_btoa=typeof btoa=="function"?ea=>btoa(ea):_hasBuffer?ea=>Buffer.from(ea,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?ea=>Buffer.from(ea).toString("base64"):ea=>{let ra=[];for(let oa=0,aa=ea.length;oa<aa;oa+=4096)ra.push(_fromCC.apply(null,ea.subarray(oa,oa+4096)));return _btoa(ra.join(""))},fromUint8Array=(ea,na=!1)=>na?_mkUriSafe(_fromUint8Array(ea)):_fromUint8Array(ea),cb_utob=ea=>{if(ea.length<2){var na=ea.charCodeAt(0);return na<128?ea:na<2048?_fromCC(192|na>>>6)+_fromCC(128|na&63):_fromCC(224|na>>>12&15)+_fromCC(128|na>>>6&63)+_fromCC(128|na&63)}else{var na=65536+(ea.charCodeAt(0)-55296)*1024+(ea.charCodeAt(1)-56320);return _fromCC(240|na>>>18&7)+_fromCC(128|na>>>12&63)+_fromCC(128|na>>>6&63)+_fromCC(128|na&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=ea=>ea.replace(re_utob,cb_utob),_encode=_hasBuffer?ea=>Buffer.from(ea,"utf8").toString("base64"):_TE?ea=>_fromUint8Array(_TE.encode(ea)):ea=>_btoa(utob(ea)),encode=(ea,na=!1)=>na?_mkUriSafe(_encode(ea)):_encode(ea),encodeURI$1=ea=>encode(ea,!0),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=ea=>{switch(ea.length){case 4:var na=(7&ea.charCodeAt(0))<<18|(63&ea.charCodeAt(1))<<12|(63&ea.charCodeAt(2))<<6|63&ea.charCodeAt(3),ra=na-65536;return _fromCC((ra>>>10)+55296)+_fromCC((ra&1023)+56320);case 3:return _fromCC((15&ea.charCodeAt(0))<<12|(63&ea.charCodeAt(1))<<6|63&ea.charCodeAt(2));default:return _fromCC((31&ea.charCodeAt(0))<<6|63&ea.charCodeAt(1))}},btou=ea=>ea.replace(re_btou,cb_btou),atobPolyfill=ea=>{if(ea=ea.replace(/\s+/g,""),!b64re.test(ea))throw new TypeError("malformed base64.");ea+="==".slice(2-(ea.length&3));let na,ra="",oa,aa;for(let sa=0;sa<ea.length;)na=b64tab[ea.charAt(sa++)]<<18|b64tab[ea.charAt(sa++)]<<12|(oa=b64tab[ea.charAt(sa++)])<<6|(aa=b64tab[ea.charAt(sa++)]),ra+=oa===64?_fromCC(na>>16&255):aa===64?_fromCC(na>>16&255,na>>8&255):_fromCC(na>>16&255,na>>8&255,na&255);return ra},_atob=typeof atob=="function"?ea=>atob(_tidyB64(ea)):_hasBuffer?ea=>Buffer.from(ea,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?ea=>_U8Afrom(Buffer.from(ea,"base64")):ea=>_U8Afrom(_atob(ea).split("").map(na=>na.charCodeAt(0))),toUint8Array=ea=>_toUint8Array(_unURI(ea)),_decode=_hasBuffer?ea=>Buffer.from(ea,"base64").toString("utf8"):_TD?ea=>_TD.decode(_toUint8Array(ea)):ea=>btou(_atob(ea)),_unURI=ea=>_tidyB64(ea.replace(/[-_]/g,na=>na=="-"?"+":"/")),decode$1=ea=>_decode(_unURI(ea)),isValid$1=ea=>{if(typeof ea!="string")return!1;const na=ea.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(na)||!/[^\s0-9a-zA-Z\-_]/.test(na)},_noEnum=ea=>({value:ea,enumerable:!1,writable:!0,configurable:!0}),extendString=function(){const ea=(na,ra)=>Object.defineProperty(String.prototype,na,_noEnum(ra));ea("fromBase64",function(){return decode$1(this)}),ea("toBase64",function(na){return encode(this,na)}),ea("toBase64URI",function(){return encode(this,!0)}),ea("toBase64URL",function(){return encode(this,!0)}),ea("toUint8Array",function(){return toUint8Array(this)})},extendUint8Array=function(){const ea=(na,ra)=>Object.defineProperty(Uint8Array.prototype,na,_noEnum(ra));ea("toBase64",function(na){return fromUint8Array(this,na)}),ea("toBase64URI",function(){return fromUint8Array(this,!0)}),ea("toBase64URL",function(){return fromUint8Array(this,!0)})},extendBuiltins=()=>{extendString(),extendUint8Array()},gBase64={version:version$2,VERSION,atob:_atob,atobPolyfill,btoa:_btoa,btoaPolyfill,fromBase64:decode$1,toBase64:encode,encode,encodeURI:encodeURI$1,encodeURL:encodeURI$1,utob,btou,decode:decode$1,isValid:isValid$1,fromUint8Array,toUint8Array,extendString,extendUint8Array,extendBuiltins},noOps=()=>{},limitFloatRange$2=(ea,na=1)=>na===-1?Math.round(ea):na===0?ea:na===-2?Math.floor(ea):Math.round(ea*10**na)/10**na,isNumeric=ea=>!Number.isNaN(ea)&&!Number.isNaN(parseFloat(ea)),assignRef$1=(ea,na)=>{typeof na=="function"?na(ea):na&&(na.current=ea)},getMapKeyByValue=(ea,na)=>{const ra=ea.entries(),aa=Array.from(ra).find(([,sa])=>sa===na);return aa?aa[0]:void 0},calRelativeTime=(ea,na="en",ra={})=>{if(!ea)return"";const oa=Date.now()/1e3,[aa,sa]=ea.trim().split(" "),la=[...aa.split("-").map((pa,ha)=>parseInt(pa,10)+(ha===1?-1:0)),...sa.split(":").map(pa=>parseInt(pa,10))],ca=Date.UTC(...la)/1e3,ua=new Intl.RelativeTimeFormat(na,{numeric:"auto",...ra}),da=Math.round(ca-oa);switch(!0){case Math.abs(da)<60:return ua.format(Math.round(da),"seconds");case(Math.abs(da)>60&&Math.abs(da)<3600):return ua.format(Math.round(da/60),"minute");case(Math.abs(da)>3600&&Math.abs(da)<86400):return ua.format(Math.round(da/3600),"hour");case(Math.abs(da)>86400&&Math.abs(da)<2592e3):return ua.format(Math.round(da/86400),"day");default:return ua.format(Math.round(da/2592e3),"month")}},formatDateAndTime=(ea,na={dateStyle:"medium"})=>ea?/(\d{1,4})-(\d{1,2})-(\d{1,2})\s(\d{1,2}):(\d{1,2}):(\d{1,2})/g.test(ea)?new Date(ea).toLocaleDateString(navigator.language,na):ea:"",fitToBox$1=(ea,na,ra,oa,aa,sa=0)=>{const la=na/oa,ca=ra/aa,ua=ea==="cover"?Math.max(la,ca):Math.min(la,ca);return sa!==void 0?{width:limitFloatRange$2(oa*ua,sa),height:limitFloatRange$2(aa*ua,sa)}:{width:oa*ua,height:aa*ua}},htmlDecode=ea=>new DOMParser().parseFromString(ea,"text/html").documentElement.textContent,getFormData=ea=>{const na=new FormData;return Object.entries(ea).forEach(([ra,oa])=>{typeof oa!="object"?na.append(ra,oa):na.append(ra,JSON.stringify(oa))}),na},withUnit$2=ea=>typeof ea=="string"?ea:`${ea.value}${ea.unit}`,cropCanvas=(ea,na,ra={})=>{const{y:oa,x:aa,width:sa,height:la}=na,{width:ca=sa,height:ua=la}=ra,da=document.createElement("canvas");return da.width=ca,da.height=ua,da.getContext("2d")?.drawImage(ea,aa,oa,sa,la,0,0,ca,ua),da},generateCommonFormatDateAndTimeOptions=(ea,na=!1)=>{let ra={};return ea==="auto"?ra={year:"numeric",month:"long",day:"numeric",...na?{hour12:!1,minute:"numeric",hour:"numeric"}:{}}:ra={dateStyle:ea,...na?{timeStyle:ea}:{}},ra},formatDate$1=(ea,na={})=>{const{locale:ra="en-US",useRelative:oa=!1,formatOptions:aa}=na;if(!ea)return null;const sa=new Date(ea);if(oa){const la=(ua,da=2,pa="0")=>`${ua}`.padStart(da,pa),ca=`${sa.getFullYear()}-${la(sa.getDate())}-${la(sa.getMonth()+1)} ${la(sa.getHours())}:${la(sa.getMinutes())}:${la(sa.getSeconds())}`;return calRelativeTime(ca)}return new Intl.DateTimeFormat(ra,aa).format(sa)},formatAsSpaceSeparated=ea=>{const ra=(sa=>sa.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase())(ea),oa=/[-/ _.,|:;]+/;return ra.split(oa).map(sa=>sa.trim()).filter(sa=>sa.length>0).join(" ")},toReadable=(ea,na)=>{const ra=new Set(["IP","URL","HTTP","HTTPS","ID","UTC"].map(ca=>ca.toUpperCase())),oa=new Set(["at","of","in","on","to","for"].map(ca=>ca.toLowerCase()));return ea?ea.replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(/\s+/).map((ca,ua)=>{const da=ca.toUpperCase(),pa=ca.toLowerCase();return ra.has(da)?da:oa.has(pa)&&ua!==0?pa:/^[A-Z]{2,}$/.test(ca)?ca:ua===0?ca.charAt(0).toUpperCase()+ca.slice(1).toLowerCase():pa}).join(" "):""};function encodeSvg(ea){return`data:image/svg+xml;base64,${gBase64.encode(ea)}`}const getPostTypes$1=ea=>na=>({baseURL:ea,method:"get",params:{action:"depicter-wp-v1-posts-types",...na}}),getPosts$1=ea=>na=>{const ra=getFormData({action:"depicter-wp-v1-posts",...na});return{baseURL:ea,data:ra,method:"POST"}},searchInPostType$1=ea=>na=>{const ra=getFormData({action:"depicter-wp-v1-posts-search",...na});return{baseURL:ea,data:ra,method:"POST"}},getProducts$1=ea=>na=>{const ra=getFormData({action:"depicter-wp-v1-products",...na});return{baseURL:ea,data:ra,method:"POST"}},getCustomProducts$1=ea=>na=>{const ra=getFormData({action:"depicter-wp-v1-products-custom",...na});return{baseURL:ea,data:ra,method:"POST"}},getGoogleReviews$2=ea=>na=>{const{place:ra,...oa}=na;return{baseURL:ea,method:"get",params:{id:ra?.id,...oa,action:"depicter-google-places-reviews"}}},getGooglePlaces$1=ea=>na=>({baseURL:ea,method:"get",params:{...na,action:"depicter-google-places-search"}}),getWPDataSourceRequestConfigs=ea=>({getPostTypes:getPostTypes$1(ea),getPosts:getPosts$1(ea),searchInPostType:searchInPostType$1(ea),getProducts:getProducts$1(ea),getCustomProducts:getCustomProducts$1(ea),getGoogleReviews:getGoogleReviews$2(ea),getGooglePlaces:getGooglePlaces$1(ea)}),{pluginAPI:baseURL$7}=dashboardEnv,requestConfigs$8={...getWPDataSourceRequestConfigs(baseURL$7)},dataSourceInterface=requestConfigs$8,getEditorPathByID$1=ea=>na=>ea.replace(/__id__/g,na),getEditorPreviewByID=(ea,na)=>(ra,oa="publish")=>`${ea}?action=depicter-document-preview&depicter-csrf=${na}&ID=${ra}&status=${oa==="draft"?"draft|publish":"publish|draft"}`,getL12n$1=ea=>()=>`${ea}?action=depicter-document-localization`,createDocument=ea=>na=>({baseURL:ea,method:"POST",data:getFormData({action:"depicter-document-create",...na})}),getDocuments$1=ea=>na=>({baseURL:ea,method:"get",params:{...na,action:"depicter-document-index"}}),deleteDocuments=ea=>({ids:na=[]}={})=>{const ra=new FormData;return ra.append("ID",na.join(",")),{baseURL:ea,method:"POST",params:{action:"depicter-document-destroy"},data:ra}},duplicateDocument$1=ea=>na=>{const ra=new FormData;return ra.append("ID",na||""),{baseURL:ea,method:"POST",params:{action:"depicter-document-duplicate"},data:ra}},publishDocument=ea=>na=>{const{id:ra="",status:oa=""}=na||{},aa=new FormData;return aa.append("ID",ra),aa.append("status",oa),{baseURL:ea,method:"POST",params:{action:"depicter-document-store"},data:aa}},loadDocument$1=ea=>na=>({method:"GET",params:{...na,action:"depicter-document-show"},baseURL:ea}),saveDocument$2=ea=>(na,ra)=>{const oa=new FormData;return Object.entries({...na,action:"depicter-document-store"}).forEach(([aa,sa])=>sa!==void 0&&oa.append(aa,sa)),ra&&ra.forEach((aa,sa)=>{oa.append("previewImage[]",aa,`${na.ID}${sa===0?"":`-${sa}`}.png`)}),{method:"POST",data:oa,baseURL:ea}},renameDocument$2=ea=>na=>{const ra=new FormData;return Object.entries({action:"depicter-document-name-change",...na}).forEach(([oa,aa])=>ra.append(oa,aa)),{method:"POST",data:ra,baseURL:ea}},changeDocumentSlug$2=ea=>na=>{const ra=new FormData;return Object.entries({action:"depicter-document-slug-change",...na}).forEach(([oa,aa])=>ra.append(oa,aa)),{method:"POST",data:ra,baseURL:ea}},checkDocumentSlug$1=ea=>na=>{const ra=new FormData;return Object.entries({action:"depicter-document-slug-check",...na}).forEach(([oa,aa])=>ra.append(oa,aa)),{method:"POST",data:ra,baseURL:ea}},revertDocument$1=ea=>na=>{const ra=new FormData;return Object.entries({action:"depicter-document-revert",...na}).forEach(([oa,aa])=>ra.append(oa,aa)),{method:"POST",data:ra,baseURL:ea}},getPreviewSrc$2=(ea,na)=>(ra,oa)=>`${ea}?action=depicter-document-preview&depicter-csrf=${na}&ID=${ra}&status=${oa==="draft"?"draft|publish":"publish|draft"}`,loadDisplayRules$1=ea=>na=>({method:"GET",baseURL:ea,params:{action:"depicter-document-rules-show",...na}}),saveDisplayRules$1=ea=>na=>({method:"POST",baseURL:ea,data:getFormData({action:"depicter-document-rules-store",...na})}),getConditionOptions$1=ea=>na=>({method:"GET",baseURL:ea,params:{action:"depicter-document-condition-options",...na}}),getRevisions$1=ea=>(na={ID:""})=>({method:"GET",baseURL:ea,params:{action:"depicter-document-history",...na}}),getSettings$1=ea=>()=>({method:"GET",baseURL:ea,params:{action:"depicter-settings-index"}}),saveSettings$1=ea=>na=>({method:"POST",baseURL:ea,data:getFormData({action:"depicter-settings-store",...na})}),flushCache$1=ea=>()=>({method:"POST",baseURL:ea,data:getFormData({action:"depicter-settings-flush-cache"})}),getWPDocumentRequestConfigs=(ea,na,ra)=>({getL12n:getL12n$1(ea),getEditorPathByID:getEditorPathByID$1(na),getEditorPreviewByID:getEditorPreviewByID(ea,ra),createDocument:createDocument(ea),getDocuments:getDocuments$1(ea),deleteDocuments:deleteDocuments(ea),duplicateDocument:duplicateDocument$1(ea),renameDocument:renameDocument$2(ea),publishDocument:publishDocument(ea),loadDocument:loadDocument$1(ea),saveDocument:saveDocument$2(ea),changeDocumentSlug:changeDocumentSlug$2(ea),checkDocumentSlug:checkDocumentSlug$1(ea),revertDocument:revertDocument$1(ea),getPreviewSrc:getPreviewSrc$2(ea,ra),loadDisplayRules:loadDisplayRules$1(ea),saveDisplayRules:saveDisplayRules$1(ea),getConditionOptions:getConditionOptions$1(ea),getRevisions:getRevisions$1(ea),getSettings:getSettings$1(ea),saveSettings:saveSettings$1(ea),flushCache:flushCache$1(ea)}),{pluginAPI:baseURL$6,editorPath,csrfToken:csrfToken$2}=dashboardEnv,requestConfigs$7={...getWPDocumentRequestConfigs(baseURL$6,editorPath,csrfToken$2)},documentInterface$2=requestConfigs$7,getNotifications$1=ea=>na=>({method:"get",baseURL:ea,params:{action:"depicter-info-notification",...na}}),updateNotificationsStatus$1=ea=>na=>{const ra=new FormData;return ra.append("lastSeenID",na?.lastSeenID||""),ra.append("lastSeenDate",na?.lastSeenDate||""),{method:"post",baseURL:ea,params:{action:"depicter-info-notification-status"},data:ra}},getPromotionBanner=ea=>()=>({baseURL:ea,method:"get",params:{action:"depicter-info-promotion"}}),getChangelogs$1=ea=>na=>({baseURL:ea,method:"get",params:{action:"depicter-info-changelog",...na}}),getWPInfoRequestConfigs=ea=>({getNotifications:getNotifications$1(ea),updateNotificationsStatus:updateNotificationsStatus$1(ea),getPromotionBanner:getPromotionBanner(ea),getChangelogs:getChangelogs$1(ea)}),{pluginAPI:baseURL$5}=dashboardEnv,requestConfigs$6={...getWPInfoRequestConfigs(baseURL$5)},infoInterface=requestConfigs$6,actionsMap$1={"wp-photos":"depicter-library-search-images","wp-videos":"depicter-library-search-videos","wp-vectors":"depicter-library-search-vectors",photos:"depicter-assets-search-images",icons:"depicter-assets-search-icons",videos:"depicter-assets-search-videos",vectors:"depicter-assets-search-vectors",elements:"depicter-assets-elements"},getImageSrc$1=(ea,na)=>(ra,oa="screen",aa)=>/^(http|https):/.test(ra)?ra:`${ea}?action=depicter-media-get&id=${ra}&size=${oa}&depicter-csrf=${na}${aa?Object.entries(aa).map(([sa,la])=>`&${sa}=${la}`).join(""):""}`,getVideoSrc$1=(ea,na)=>(ra,oa)=>`${ea}?action=depicter-media-get&id=${ra}&size=${oa}&depicter-csrf=${na}`,getMediaContent=(ea,na)=>(ra,oa)=>`${ea}?action=depicter-media-content&id=${ra}&depicter-csrf=${na}${oa?Object.entries(oa).map(([aa,sa])=>`&${aa}=${sa}`).join(""):""}`,getVideoStaticPreviewSrc$1=(ea,na)=>(ra,oa="medium")=>/^(http|https):/.test(ra)?ra:ra.includes("@")?`${ea}?action=depicter-media-get&id=${ra}&size=${oa}&forcePreview=true&depicter-csrf=${na}`:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",getWPPluginAssets$1=ea=>({type:na,...ra})=>({baseURL:ea,params:{...ra,action:actionsMap$1[na||"wp-photos"]},method:"get"}),getRemoteAssets=ea=>({type:na,...ra})=>({url:`${ea}search/${na}`,params:ra,method:"get"}),getDynamicSourceAssets$1=ea=>na=>({url:ea,params:{...na,action:"depicter-dataSources-v1-assets"},method:"get"}),uploadDocumentMedia$1=ea=>na=>{const{file:ra,onUploadProgress:oa}=na,aa=new FormData;return aa.append("file1",ra),{baseURL:ea,method:"POST",params:{action:"depicter-media-upload"},data:aa,onUploadProgress:sa=>{oa?.(limitFloatRange$2(sa.loaded/sa.total,2))}}},getImageFinalSrc=ea=>na=>({baseURL:ea,params:{...na,action:"depicter-media-url"},method:"GET"}),removeBackground$1=ea=>na=>({baseURL:ea,params:{action:"depicter-background-removal-upload"},data:getFormData({id:na}),method:"POST"}),getRemoveBackgroundStatus$1=ea=>(na,ra)=>({baseURL:ea,params:{id:na,action:"depicter-background-removal-check",process:ra},method:"GET"}),getWPMediaRequestConfigs=(ea,na)=>({getImageSrc:getImageSrc$1(ea,na),getVideoSrc:getVideoSrc$1(ea,na),getVideoStaticPreviewSrc:getVideoStaticPreviewSrc$1(ea,na),getWPPluginAssets:getWPPluginAssets$1(ea),getRemoteAssets:getRemoteAssets(ea),getMediaContent:getMediaContent(ea,na),getDynamicSourceAssets:getDynamicSourceAssets$1(ea),uploadDocumentMedia:uploadDocumentMedia$1(ea),getImageFinalSrc:getImageFinalSrc(ea),removeBackground:removeBackground$1(ea),getRemoveBackgroundStatus:getRemoveBackgroundStatus$1(ea)}),{pluginAPI:baseURL$4,csrfToken:csrfToken$1}=dashboardEnv,requestConfigs$5={...getWPMediaRequestConfigs(baseURL$4,csrfToken$1)},mediaInterface=requestConfigs$5,getTemplatePreviewByID$1=(ea,na)=>ra=>`${ea}?action=depicter-assets-document-templates-preview&ID=${ra}&depicter-csrf=${na}`,getTemplateGroups=ea=>(na={})=>({baseURL:ea,method:"get",params:{...na,action:"depicter-assets-document-templates-groups"}}),getTemplates=ea=>na=>({baseURL:ea,method:"get",params:{...na,v:"2",from:"wp-dash",action:"depicter-assets-document-v2-templates"}}),importTemplate=ea=>na=>({baseURL:ea,method:"get",params:{...na,v:"2",action:"depicter-assets-document-templates-import"}}),getAnimationCategories$1=ea=>na=>({baseURL:ea,method:"get",params:{...na,action:"depicter-assets-animations-categories"}}),getAnimationPresets$1=ea=>na=>({baseURL:ea,params:{...na,action:"depicter-assets-animations"},method:"get"}),getAIWizardTemplates=ea=>na=>({baseURL:ea,method:"get",params:{...na,directory:"4",action:"depicter-assets-document-v2-templates"}}),importAITemplate=ea=>na=>({baseURL:ea,method:"post",data:getFormData({action:"depicter-assets-document-templates-ai-import",...na})}),getWPPresetsRequestConfigs=(ea,na)=>({getTemplateGroups:getTemplateGroups(ea),importTemplate:importTemplate(ea),getTemplates:getTemplates(ea),getAnimationCategories:getAnimationCategories$1(ea),getAnimationPresets:getAnimationPresets$1(ea),getAIWizardTemplates:getAIWizardTemplates(ea),importAITemplate:importAITemplate(ea),getTemplatePreviewByID:getTemplatePreviewByID$1(ea,na)}),{csrfToken,pluginAPI}=commonEnv,requestConfigs$4={...getWPPresetsRequestConfigs(pluginAPI,csrfToken)},presetsInterface=requestConfigs$4,sendCrashReport$1=ea=>na=>{const{crashReport:ra,envInfo:oa,userComment:aa,userEmail:sa,userDocumentData:la}=na,ca=new FormData;return ca.append("crashReport",ra),ca.append("envInfo",oa),ca.append("userComment",aa),ca.append("userEmail",sa),ca.append("userDocumentData",JSON.stringify(la)),{baseURL:ea,method:"POST",params:{action:"depicter-report-error"},data:ca}},addSubscribe$1=ea=>na=>{const{name:ra,email:oa}=na,aa=new FormData;return aa.append("name",ra),aa.append("email",oa),aa.append("group","wp-free"),{baseURL:ea,method:"POST",params:{action:"depicter-subscriber-store"},data:aa}},sendFeedback$1=ea=>({issueType:na,issueRelatesTo:ra,userDescription:oa,userEmail:aa})=>{const sa=new FormData;return sa.append("issueType",na),sa.append("issueRelatesTo",ra),sa.append("userDescription",oa),sa.append("userEmail",aa),{baseURL:ea,method:"POST",params:{action:"depicter-report-issue"},data:sa}},getWPReportsRequestConfigs=ea=>({sendCrashReport:sendCrashReport$1(ea),addSubscribe:addSubscribe$1(ea),sendFeedback:sendFeedback$1(ea)}),{pluginAPI:baseURL$3}=dashboardEnv,requestConfigs$3={...getWPReportsRequestConfigs(baseURL$3)},reportsAdapter=requestConfigs$3,loginByGoogleUrl$1="https://api.my.depicter.com/mx/v2/auth/google/login",loginByGoogle$1=ea=>na=>({method:"POST",baseURL:ea,data:getFormData({accessToken:na,action:"depicter-auth-google-login"})}),loginByRemote$1=ea=>na=>(na.append("action","depicter-member-login"),{method:"POST",baseURL:ea,data:na}),registerByRemote$1=ea=>na=>(na.append("action","depicter-member-register"),{method:"POST",baseURL:ea,data:na}),logoutByRemote$1=ea=>()=>({method:"POST",baseURL:ea,data:getFormData({action:"depicter-member-logout"})}),getWPSecurityRequestConfigs=ea=>({loginByGoogleUrl:loginByGoogleUrl$1,loginByGoogle:loginByGoogle$1(ea),loginByRemote:loginByRemote$1(ea),registerByRemote:registerByRemote$1(ea),logoutByRemote:logoutByRemote$1(ea)}),{pluginAPI:baseURL$2}=dashboardEnv,requestConfigs$2={...getWPSecurityRequestConfigs(baseURL$2)},securityInterface=requestConfigs$2,getLeads$1=ea=>({s:na,page:ra,perpage:oa,orderBy:aa,order:sa,dateEnd:la,dateStart:ca,sources:ua=[],includeFields:da})=>{const pa=ua?.length===1&&ua[0]==="all"?"":ua.join(",");return{baseURL:ea,method:"get",params:{s:na,perpage:oa,page:ra,orderBy:aa,dateEnd:la,dateStart:ca,order:sa,sources:pa,action:"depicter-lead-index",includeFields:da}}},deleteLeads$2=ea=>({ids:na}={ids:[]})=>{const ra=new FormData;return ra.append("ID",na.join(",")),{baseURL:ea,method:"POST",params:{action:"depicter-lead-delete"},data:ra}},exportLeads$1=ea=>na=>{const{s:ra,page:oa,perpage:aa,orderBy:sa,order:la,dateEnd:ca,dateStart:ua,sources:da=[]}=na||{},pa=da?.length===1&&da[0]==="all"?"":da.join(",");return{baseURL:ea,method:"get",params:{s:ra,perpage:aa,page:oa,orderBy:sa,dateEnd:ca,dateStart:ua,order:la,sources:pa,action:"depicter-lead-export"}}},getWPLeadsRequestConfigs=ea=>({getLeads:getLeads$1(ea),deleteLeads:deleteLeads$2(ea),exportLeads:exportLeads$1(ea)}),{pluginAPI:baseURL$1}=dashboardEnv,requestConfigs$1={...getWPLeadsRequestConfigs(baseURL$1)},documentInterface$1=requestConfigs$1,getMailchimpApiKeys$1=ea=>()=>({baseURL:ea,method:"get",params:{action:"depicter-integration-mailchimp-api-keys"}}),addMailchimpApiKey$1=ea=>na=>{const ra=new FormData;return ra.append("api_key",na||""),{baseURL:ea,method:"post",params:{action:"depicter-integration-mailchimp-api-keys"},data:ra}},getMailchimpAudienceList$1=ea=>na=>({baseURL:ea,method:"get",params:{action:"depicter-integration-mailchimp-audience-list",api_key:na||""}}),getMailchimpAudienceFields$1=ea=>(na,ra)=>({baseURL:ea,method:"get",params:{action:"depicter-integration-mailchimp-audience-fields",api_key:na||"",audience_id:ra||""}}),removeMailchimpApiKey$1=ea=>na=>{const ra=new FormData;return ra.append("api_key",na||""),{baseURL:ea,method:"post",params:{action:"depicter-integration-mailchimp-delete-api-key"},data:ra}},getIntegrationsRequestConfigs=ea=>({getMailchimpApiKeys:getMailchimpApiKeys$1(ea),addMailchimpApiKey:addMailchimpApiKey$1(ea),getMailchimpAudienceList:getMailchimpAudienceList$1(ea),getMailchimpAudienceFields:getMailchimpAudienceFields$1(ea),removeMailchimpApiKey:removeMailchimpApiKey$1(ea)}),{pluginAPI:baseURL}=dashboardEnv,requestConfigs={...getIntegrationsRequestConfigs(baseURL)},documentInterface=requestConfigs,{getPostTypes,getPosts,getCustomProducts,getProducts,searchInPostType,getGooglePlaces,getGoogleReviews:getGoogleReviews$1}=dataSourceInterface,{sendCrashReport,addSubscribe,sendFeedback}=reportsAdapter,{loginByGoogleUrl,loginByGoogle,loginByRemote,logoutByRemote,registerByRemote}=securityInterface,{getChangelogs,getNotifications,updateNotificationsStatus}=infoInterface,{getEditorPathByID,getDocuments,duplicateDocument,loadDocument,saveDocument:saveDocument$1,renameDocument:renameDocument$1,changeDocumentSlug:changeDocumentSlug$1,checkDocumentSlug,getPreviewSrc:getPreviewSrc$1,revertDocument,loadDisplayRules,saveDisplayRules,getConditionOptions,getRevisions,getL12n,getSettings,saveSettings,flushCache}=documentInterface$2,{getImageSrc,getVideoSrc,getVideoStaticPreviewSrc,getWPPluginAssets,getDynamicSourceAssets,uploadDocumentMedia,removeBackground,getRemoveBackgroundStatus}=mediaInterface,{getAnimationCategories,getAnimationPresets,getTemplatePreviewByID}=presetsInterface,{getLeads,deleteLeads:deleteLeads$1,exportLeads}=documentInterface$1,{getMailchimpApiKeys,addMailchimpApiKey,getMailchimpAudienceList,getMailchimpAudienceFields,removeMailchimpApiKey}=documentInterface,i18nInit=i18next.use(Backend).use(initReactI18next).init({debug:!1,fallbackLng:"en",lng:"en",keySeparator:!1,nsSeparator:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1},backend:{loadPath:getL12n(),customHeaders:{"X-DEPICTER-CSRF":editorEnv.csrfToken,"X-DEPICTER-CKEY":editorEnv.clientKey}}}),emptyGif="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",withUnit$1=(ea,na)=>na&&isNumeric(ea)?`${ea}${na}`:typeof ea=="object"?`${ea.value}${ea.unit}`:ea?.toString(),isEmptyObject=ea=>Object.keys(ea).length===0&&ea.constructor===Object,removeArrayIndex=(ea,na)=>ea.includes(na)?(ea.splice(ea.indexOf(na),1),!0):!1,equalArray=(ea,na)=>{const{length:ra}=ea;if(ea===na)return!0;if(ra!==na.length)return!1;for(let oa=0;oa<ra;oa+=1)if(ea[oa]!==na[oa])return!1;return!0},assignRef=(ea,na)=>{typeof na=="function"?na(ea):na&&(na.current=ea)},intersectArrays=(ea,na)=>ea.filter(ra=>na.includes(ra)),moveBoundaries=(ea,na)=>({...ea,...na,top:na.y,left:na.x,right:ea.right-na.x-ea.x,bottom:ea.bottom-na.y-ea.y}),createBoundariesObject=(ea,na)=>({...ea,...na,top:ea.y,left:ea.x,bottom:ea.y+na.height,right:ea.x+na.width}),unionBoundaries=ea=>ea.length?ea.reduce((na,ra)=>{const oa={x:Math.min(na.x,ra.x),y:Math.min(na.y,ra.y),left:Math.min(na.x,ra.x),top:Math.min(na.y,ra.y),right:Math.max(na.right,ra.right),bottom:Math.max(na.bottom,ra.bottom)};return{...oa,width:oa.x-oa.right,height:oa.y-oa.bottom}}):ea[0],limitFloatRange$1=(ea,na=1)=>Math.round(ea*10**na)/10**na,objectMap=(ea,na,ra=!1)=>{const oa={};return Object.keys(ea).forEach(aa=>{const sa=na(ea[aa],aa);ra&&sa===void 0||(oa[aa]=sa)}),oa},capitalizeWords=ea=>ea.split(" ").map(na=>na.charAt(0).toUpperCase()+na.slice(1)).join(" "),arrayMove$1=(ea,na,ra)=>{ea=[...ea];const oa=na<0?ea.length+na:na;if(oa>=0&&oa<ea.length){const aa=ra<0?ea.length+ra:ra,[sa]=ea.splice(na,1);ea.splice(aa,0,sa)}return ea},moveArrayItem=(ea,na,ra,oa="after")=>{const aa=ea.indexOf(na),sa=ea.indexOf(ra);if(aa===-1||sa===-1)throw new Error("Item to move or target item not found in the array.");if(oa==="before"&&aa===sa-1||oa==="after"&&aa===sa+1)return ea;ea.splice(aa,1);let la;return aa<sa?la=oa==="before"?sa-1:sa:la=oa==="before"?sa:sa+1,ea.splice(la,0,na),ea},BannerIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%200.75H17C17.6904%200.75%2018.25%201.30964%2018.25%202V17C18.25%2017.6904%2017.6904%2018.25%2017%2018.25H2C1.30964%2018.25%200.75%2017.6904%200.75%2017V2C0.75%201.30964%201.30964%200.75%202%200.75Z'%20stroke='%239C5FFF'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3%204C3%203.44772%203.44772%203%204%203H15C15.5523%203%2016%203.44772%2016%204V7C16%207.55228%2015.5523%208%2015%208H4C3.44772%208%203%207.55228%203%207V4Z'%20fill='%239C5FFF'/%3e%3c/svg%3e",LadingPageIcon="data:image/svg+xml,%3csvg%20width='19'%20height='20'%20viewBox='0%200%2019%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.002%2019.002H10H1.99805C0.89649%2019.002%200%2018.1016%200%2016.9981V2C0%200.898443%200.89648%200.00195312%201.99805%200.00195312H17.002C18.1035%200.00195312%2019%200.898433%2019%202V10.002H17.5V2C17.5%201.72461%2017.2774%201.50195%2017.002%201.50195H1.99805C1.72266%201.50195%201.5%201.72461%201.5%202V16.9981C1.5%2017.2774%201.72266%2017.502%201.99805%2017.502H10.002V19L10.002%2019.002Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3%203.5C3%203.22386%203.22386%203%203.5%203H4.5C4.77614%203%205%203.22386%205%203.5V3.5C5%203.77614%204.77614%204%204.5%204H3.5C3.22386%204%203%203.77614%203%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%203.5C6%203.22386%206.22386%203%206.5%203H7.5C7.77614%203%208%203.22386%208%203.5V3.5C8%203.77614%207.77614%204%207.5%204H6.5C6.22386%204%206%203.77614%206%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%203.5C9%203.22386%209.22386%203%209.5%203H10.5C10.7761%203%2011%203.22386%2011%203.5V3.5C11%203.77614%2010.7761%204%2010.5%204H9.5C9.22386%204%209%203.77614%209%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.2461%2012.2461L14.366%2018L14.9872%2016.1364C15.168%2015.5938%2015.5938%2015.168%2016.1363%2014.9872L18%2014.366L12.2461%2012.2461Z'%20stroke='%23E66A6A'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",PopupIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%203C0%201.34315%201.34315%200%203%200H12C13.6569%200%2015%201.34315%2015%203V9C15%2010.6569%2013.6569%2012%2012%2012H3C1.34315%2012%200%2010.6569%200%209V3Z'%20fill='%2352CF9B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.99951%2018.9995C5.34253%2018.9995%204%2017.6567%204%2016V13.9981H5.50049V16C5.50049%2016.8276%206.17188%2017.4985%206.99951%2017.4985H15.9993C16.8267%2017.4985%2017.4998%2016.8276%2017.4998%2016V9.00049L17.3418%208.3291L16.9985%208.1167V6.16992C18.1643%206.58154%2019.0002%207.69385%2019.0002%209.00049V13.9981V16C19.0002%2017.6567%2017.656%2018.9995%2015.9993%2018.9995H6.99951Z'%20fill='%2352CF9A'/%3e%3c/svg%3e",SliderIcon="data:image/svg+xml,%3csvg%20id='slider'%20xmlns='http://www.w3.org/2000/svg'%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%3e%3cg%20id='Path_1762'%20data-name='Path%201762'%20fill='none'%3e%3cpath%20d='M3,0H16a3,3,0,0,1,3,3v9a3,3,0,0,1-3,3H3a3,3,0,0,1-3-3V3A3,3,0,0,1,3,0Z'%20stroke='none'/%3e%3cpath%20d='M%203%201.5%20C%202.17289924621582%201.5%201.5%202.172900199890137%201.5%203%20L%201.5%2012%20C%201.5%2012.82709980010986%202.17289924621582%2013.5%203%2013.5%20L%2016%2013.5%20C%2016.82710075378418%2013.5%2017.5%2012.82709980010986%2017.5%2012%20L%2017.5%203%20C%2017.5%202.172900199890137%2016.82710075378418%201.5%2016%201.5%20L%203%201.5%20M%203%200%20L%2016%200%20C%2017.65685081481934%200%2019%201.34315013885498%2019%203%20L%2019%2012%20C%2019%2013.65684986114502%2017.65685081481934%2015%2016%2015%20L%203%2015%20C%201.343149185180664%2015%200%2013.65684986114502%200%2012%20L%200%203%20C%200%201.34315013885498%201.343149185180664%200%203%200%20Z'%20stroke='none'%20fill='%23ff8748'/%3e%3c/g%3e%3cg%20id='Rectangle_6244'%20data-name='Rectangle%206244'%20transform='translate(5%2017)'%20fill='none'%20stroke='%23ff8748'%20stroke-width='1.5'%3e%3crect%20width='2'%20height='2'%20rx='1'%20stroke='none'/%3e%3crect%20x='0.75'%20y='0.75'%20width='0.5'%20height='0.5'%20rx='0.25'%20fill='none'/%3e%3c/g%3e%3cg%20id='Rectangle_6245'%20data-name='Rectangle%206245'%20transform='translate(8%2017)'%20fill='none'%20stroke='%23ff8748'%20stroke-width='1.5'%3e%3crect%20width='3'%20height='2'%20rx='1'%20stroke='none'/%3e%3crect%20x='0.75'%20y='0.75'%20width='1.5'%20height='0.5'%20rx='0.25'%20fill='none'/%3e%3c/g%3e%3cg%20id='Rectangle_6246'%20data-name='Rectangle%206246'%20transform='translate(12%2017)'%20fill='none'%20stroke='%23ff8748'%20stroke-width='1.5'%3e%3crect%20width='2'%20height='2'%20rx='1'%20stroke='none'/%3e%3crect%20x='0.75'%20y='0.75'%20width='0.5'%20height='0.5'%20rx='0.25'%20fill='none'/%3e%3c/g%3e%3cpath%20id='Polygon_89'%20data-name='Polygon%2089'%20d='M1.5,0,3,2H0Z'%20transform='translate(17%206)%20rotate(90)'%20fill='%23ff8748'/%3e%3cpath%20id='Polygon_90'%20data-name='Polygon%2090'%20d='M1.5,0,3,2H0Z'%20transform='translate(2%209)%20rotate(-90)'%20fill='%23ff8748'/%3e%3c/svg%3e",SectionIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%208.75H17C17.6904%208.75%2018.25%209.30964%2018.25%2010V17C18.25%2017.6904%2017.6904%2018.25%2017%2018.25H2C1.30964%2018.25%200.75%2017.6904%200.75%2017V10C0.75%209.30964%201.30964%208.75%202%208.75Z'%20stroke='%23319DEE'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%202C0%200.89543%200.895431%200%202%200H17C18.1046%200%2019%200.895431%2019%202V4C19%205.10457%2018.1046%206%2017%206H2C0.895431%206%200%205.10457%200%204V2Z'%20fill='%23319DED'/%3e%3c/svg%3e",WooIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.8408%207.5H2.16027C1.86902%207.5%201.63941%207.74795%201.66175%208.03835L2.35406%2017.0383C2.37409%2017.2988%202.59131%2017.5%202.85258%2017.5H16.1485C16.4097%2017.5%2016.6269%2017.2988%2016.647%2017.0383L17.3393%208.03835C17.3616%207.74795%2017.132%207.5%2016.8408%207.5ZM2.16027%206C0.995255%206%200.076813%206.99181%200.166166%208.15339L0.858473%2017.1534C0.938627%2018.1954%201.80751%2019%202.85258%2019H16.1485C17.1935%2019%2018.0624%2018.1954%2018.1426%2017.1534L18.8349%208.15339C18.9242%206.9918%2018.0058%206%2016.8408%206H2.16027Z'%20fill='%23AD5A8A'/%3e%3cpath%20d='M9.50052%200C7.01524%200%205.00052%202.01472%205.00052%204.5V9H6.50052V4.5C6.50052%202.84315%207.84367%201.5%209.50052%201.5C11.1574%201.5%2012.5005%202.84315%2012.5005%204.5V9H14.0005V4.5C14.0005%202.01472%2011.9858%200%209.50052%200Z'%20fill='%23AD5A8A'/%3e%3c/svg%3e",WordPressIcon="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.59383%200C4.30376%200%200%204.30366%200%209.59362C0%2014.8838%204.30376%2019.1879%209.59383%2019.1879C14.8838%2019.1879%2019.1877%2014.8838%2019.1877%209.59362C19.1877%204.30366%2014.8838%200%209.59383%200ZM0.96822%209.59362C0.96822%208.34306%201.23655%207.15585%201.71513%206.08316L5.82975%2017.3565C2.95218%2015.9586%200.96822%2013.0077%200.96822%209.59362ZM9.59383%2018.2198C8.74712%2018.2198%207.92997%2018.0958%207.15697%2017.8684L9.7453%2010.3481L12.3965%2017.612C12.4139%2017.6546%2012.4353%2017.6939%2012.4582%2017.7309C11.5616%2018.0464%2010.5983%2018.2198%209.59384%2018.2198L9.59383%2018.2198ZM10.7826%205.54945C11.3018%205.52214%2011.7698%205.46742%2011.7698%205.46742C12.2345%205.4125%2012.1797%204.72935%2011.7147%204.75655C11.7147%204.75655%2010.3176%204.8663%209.41565%204.8663C8.56813%204.8663%207.14397%204.75655%207.14397%204.75655C6.67879%204.72934%206.62427%205.44001%207.08925%205.46742C7.08925%205.46742%207.52925%205.52214%207.99402%205.54945L9.33778%209.23159L7.44986%2014.8928L4.30894%205.54946C4.82864%205.52215%205.29605%205.46743%205.29605%205.46743C5.76062%205.41251%205.70569%204.72936%205.24092%204.75656C5.24092%204.75656%203.84407%204.86631%202.94203%204.86631C2.7802%204.86631%202.58944%204.86225%202.38691%204.85586C3.92925%202.51433%206.58021%200.96803%209.59383%200.96803C11.8393%200.96803%2013.884%201.82661%2015.4185%203.23271C15.3813%203.23038%2015.3451%203.22571%2015.3068%203.22571C14.4595%203.22571%2013.8583%203.96388%2013.8583%204.75657C13.8583%205.46744%2014.2684%206.06886%2014.7056%206.77972C15.0336%207.35414%2015.4168%208.09221%2015.4168%209.15861C15.4168%209.89678%2015.1328%2010.7534%2014.7604%2011.947L13.8998%2014.8217L10.7826%205.54945ZM17.1629%205.45554C17.8362%206.68407%2018.2193%208.09392%2018.2193%209.59362C18.2193%2012.7759%2016.4947%2015.554%2013.9304%2017.0493L16.5649%209.432C17.057%208.20144%2017.2208%207.21748%2017.2208%206.34255C17.2208%206.02499%2017.1999%205.73027%2017.1629%205.45555L17.1629%205.45554Z'%20fill='%23378CC3'/%3e%3c/svg%3e",CarouselIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%200.75H13C13.6904%200.75%2014.25%201.30964%2014.25%202V12C14.25%2012.6904%2013.6904%2013.25%2013%2013.25H6C5.30964%2013.25%204.75%2012.6904%204.75%2012V2C4.75%201.30964%205.30964%200.75%206%200.75Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3cmask%20id='mask0_0_8987'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='3'%20height='14'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%200H3V14H0V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_0_8987)'%3e%3cpath%20d='M-2%200.75H1C1.69036%200.75%202.25%201.30964%202.25%202V12C2.25%2012.6904%201.69036%2013.25%201%2013.25H-2C-2.69036%2013.25%20-3.25%2012.6904%20-3.25%2012V2C-3.25%201.30964%20-2.69036%200.75%20-2%200.75Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3c/g%3e%3cmask%20id='mask1_0_8987'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='16'%20y='0'%20width='3'%20height='14'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%200H19V14H16V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_0_8987)'%3e%3cpath%20d='M18%200.75H21C21.6904%200.75%2022.25%201.30964%2022.25%202V12C22.25%2012.6904%2021.6904%2013.25%2021%2013.25H18C17.3096%2013.25%2016.75%2012.6904%2016.75%2012V2C16.75%201.30964%2017.3096%200.75%2018%200.75Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3c/g%3e%3cpath%20d='M6%2018.25C5.86193%2018.25%205.75%2018.1381%205.75%2018C5.75%2017.8619%205.86193%2017.75%206%2017.75C6.13807%2017.75%206.25%2017.8619%206.25%2018C6.25%2018.1381%206.13807%2018.25%206%2018.25Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3cpath%20d='M9%2017.75H10C10.1381%2017.75%2010.25%2017.8619%2010.25%2018C10.25%2018.1381%2010.1381%2018.25%2010%2018.25H9C8.86193%2018.25%208.75%2018.1381%208.75%2018C8.75%2017.8619%208.86193%2017.75%209%2017.75Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3cpath%20d='M13%2018.25C12.8619%2018.25%2012.75%2018.1381%2012.75%2018C12.75%2017.8619%2012.8619%2017.75%2013%2017.75C13.1381%2017.75%2013.25%2017.8619%2013.25%2018C13.25%2018.1381%2013.1381%2018.25%2013%2018.25Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3c/svg%3e",SurveyIcon="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%2016C0.75%2014.7574%201.75736%2013.75%203%2013.75C4.24264%2013.75%205.25%2014.7574%205.25%2016C5.25%2017.2426%204.24264%2018.25%203%2018.25C1.75736%2018.25%200.75%2017.2426%200.75%2016Z'%20stroke='%23FBFB67'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2016C10%2015.4477%2010.4477%2015%2011%2015H18C18.5523%2015%2019%2015.4477%2019%2016C19%2016.5523%2018.5523%2017%2018%2017H11C10.4477%2017%2010%2016.5523%2010%2016Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2010C10%209.44772%2010.4477%209%2011%209H18C18.5523%209%2019%209.44772%2019%2010C19%2010.5523%2018.5523%2011%2018%2011H11C10.4477%2011%2010%2010.5523%2010%2010Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%204C10%203.44772%2010.4477%203%2011%203H18C18.5523%203%2019%203.44772%2019%204C19%204.55228%2018.5523%205%2018%205H11C10.4477%205%2010%204.55228%2010%204Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.16211%208.26172L3.42218%2010.5218L2.29117%2011.6528L0.031099%209.39273L1.16211%208.26172Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.40625%206.28516L6.53531%207.41421L2.29267%2011.6569L1.16361%2010.5278L5.40625%206.28516Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.16211%202.26172L3.42218%204.52179L2.29117%205.6528L0.031099%203.39273L1.16211%202.26172Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.40625%200.285156L6.53531%201.41421L2.29267%205.65685L1.16361%204.5278L5.40625%200.285156Z'%20fill='%23FBFB67'/%3e%3c/svg%3e",BannerSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%200.5H12C12.8284%200.5%2013.5%201.17157%2013.5%202V12C13.5%2012.8284%2012.8284%2013.5%2012%2013.5H2C1.17157%2013.5%200.5%2012.8284%200.5%2012V2C0.5%201.17157%201.17157%200.5%202%200.5Z'%20stroke='%239C5FFF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%203C2%202.44772%202.44772%202%203%202H11C11.5523%202%2012%202.44772%2012%203V6C12%206.55228%2011.5523%207%2011%207H3C2.44772%207%202%206.55228%202%206V3Z'%20fill='%239C5FFF'/%3e%3c/svg%3e",LadingPageSmallIcon="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.00195%2015H6H2.00391C0.902346%2015%200.00390625%2014.1016%200.00390625%2013V2.9961C0.00390625%201.89454%200.902346%200.998047%202.00391%200.998047H12.0059C13.1074%200.998047%2014.0059%201.89453%2014.0059%202.9961V13C14.0059%2013.0508%2014.0059%2013.0996%2014%2013.1504V7.99806H13.0039V2.99611C13.0039%202.44728%2012.5566%202.00002%2012.0059%202.00002H2.00391C1.45313%202.00002%201.00586%202.44729%201.00586%202.99611V13C1.00586%2013.5508%201.45313%2013.9981%202.00391%2013.9981H6.00196V14.9981L6.00195%2015Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%203.5C2%203.22386%202.22386%203%202.5%203H3C3.27614%203%203.5%203.22386%203.5%203.5V3.5C3.5%203.77614%203.27614%204%203%204H2.5C2.22386%204%202%203.77614%202%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%203.5C4%203.22386%204.22386%203%204.5%203H5C5.27614%203%205.5%203.22386%205.5%203.5V3.5C5.5%203.77614%205.27614%204%205%204H4.5C4.22386%204%204%203.77614%204%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%203.5C6%203.22386%206.22386%203%206.5%203H7C7.27614%203%207.5%203.22386%207.5%203.5V3.5C7.5%203.77614%207.27614%204%207%204H6.5C6.22386%204%206%203.77614%206%203.5V3.5Z'%20fill='%23E66A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%209L9.6507%2013.4805L10.1344%2012.0293C10.2753%2011.6068%2010.6068%2011.2752%2011.0293%2011.1344L12.4805%2010.6507L8%209Z'%20stroke='%23E66A6A'%20stroke-width='2'%20stroke-linejoin='round'/%3e%3c/svg%3e",PopupSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%200.5H9C9.82843%200.5%2010.5%201.17157%2010.5%202V7C10.5%207.82843%209.82843%208.5%209%208.5H2C1.17157%208.5%200.5%207.82843%200.5%207V2C0.5%201.17157%201.17157%200.5%202%200.5Z'%20fill='%2352CF9B'%20stroke='%2352CF9A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.30957%2014C4.03394%2014%203.00195%2012.9683%203.00195%2011.6924V10.9234H4.15576V11.6924C4.15576%2012.3296%204.67261%2012.8462%205.30957%2012.8462H11.6929C12.3298%2012.8462%2012.8467%2012.3296%2012.8467%2011.6924V6.30811C12.8467%205.98633%2012.7144%205.69483%2012.5015%205.48584V4.14648C13.3528%204.46484%2013.9658%205.2705%2014.0003%206.22363V10.9233V11.7773C13.9556%2013.0137%2012.94%2014%2011.6929%2014L5.30957%2014Z'%20fill='%2352CF9A'/%3e%3c/svg%3e",SliderSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%205L10%206.5V3.5L12%205Z'%20fill='%23FF8748'/%3e%3cpath%20d='M4%203.5L2%205L4%206.5V3.5Z'%20fill='%23FF8748'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.21053%200H11.7895C13.0103%200%2014%200.895433%2014%202V8C14%209.10457%2013.0103%2010%2011.7895%2010H2.21053C0.98969%2010%200%209.10457%200%208V2C0%200.895433%200.98969%200%202.21053%200ZM2.21053%201H11.7895C12.5546%201%2013%201.53953%2013%202V8C13%208.46047%2012.5546%209%2011.7895%209H2.21053C1.44546%209%201%208.46047%201%208V2C1%201.53953%201.44546%201%202.21053%201Z'%20fill='%23FF8748'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3%2013C3%2012.4477%203.44772%2012%204%2012C4.55228%2012%205%2012.4477%205%2013C5%2013.5523%204.55228%2014%204%2014C3.44772%2014%203%2013.5523%203%2013ZM4%2012.5C4.27614%2012.5%204.5%2012.7239%204.5%2013C4.5%2013.2761%204.27614%2013.5%204%2013.5C3.72386%2013.5%203.5%2013.2761%203.5%2013C3.5%2012.7239%203.72386%2012.5%204%2012.5Z'%20fill='%23FF8748'/%3e%3cpath%20d='M6%2013C6%2012.4477%206.44772%2012%207%2012C7.55228%2012%208%2012.4477%208%2013C8%2013.5523%207.55228%2014%207%2014C6.44772%2014%206%2013.5523%206%2013Z'%20fill='%23FF8748'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%2013C9%2012.4477%209.44772%2012%2010%2012C10.5523%2012%2011%2012.4477%2011%2013C11%2013.5523%2010.5523%2014%2010%2014C9.44772%2014%209%2013.5523%209%2013ZM10%2012.5C10.2761%2012.5%2010.5%2012.7239%2010.5%2013C10.5%2013.2761%2010.2761%2013.5%2010%2013.5C9.72386%2013.5%209.5%2013.2761%209.5%2013C9.5%2012.7239%209.72386%2012.5%2010%2012.5Z'%20fill='%23FF8748'/%3e%3c/svg%3e",SectionSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%206.5H13C13.2761%206.5%2013.5%206.72386%2013.5%207V13C13.5%2013.2761%2013.2761%2013.5%2013%2013.5H1C0.723858%2013.5%200.5%2013.2761%200.5%2013V7C0.5%206.72386%200.723858%206.5%201%206.5Z'%20stroke='%23319DED'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%201C0%200.447715%200.447715%200%201%200H13C13.5523%200%2014%200.447715%2014%201V3C14%203.55228%2013.5523%204%2013%204H1C0.447716%204%200%203.55228%200%203V1Z'%20fill='%23319DED'/%3e%3c/svg%3e",WooSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8292%206.49907H2.17006C1.87782%206.49907%201.64788%206.74862%201.67172%207.03987L2.08108%2012.0399C2.10232%2012.2993%202.31909%2012.4991%202.57941%2012.4991H11.4198C11.6802%2012.4991%2011.8969%2012.2993%2011.9182%2012.0399L12.3275%207.03987C12.3514%206.74862%2012.1214%206.49907%2011.8292%206.49907ZM2.17006%204.99907C1.00113%204.99907%200.0813425%205.99724%200.176725%207.16227L0.586082%2012.1623C0.671049%2013.2001%201.53812%2013.9991%202.57941%2013.9991H11.4198C12.4611%2013.9991%2013.3282%2013.2001%2013.4132%2012.1623L13.8225%207.16227C13.9179%205.99724%2012.9981%204.99907%2011.8292%204.99907H2.17006Z'%20fill='%23AD5A8A'/%3e%3cpath%20d='M3.31396%202.44302C3.11155%202.92157%202.99962%203.44772%202.99962%204V8H4.49962V4C4.49962%202.61929%205.61891%201.5%206.99962%201.5C8.38033%201.5%209.49962%202.61929%209.49962%204V8H10.9996V4C10.9996%201.79086%209.20876%200%206.99962%200C5.93527%200%204.96802%200.415701%204.25136%201.0936C3.85241%201.47098%203.53111%201.92961%203.31396%202.44302Z'%20fill='%23AD5A8A'/%3e%3c/svg%3e",WordPressSmallIcon="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.0006%200C3.14045%200%200%203.14037%200%207.00044C0%2010.8607%203.14045%2014.0013%207.0006%2014.0013C10.8607%2014.0013%2014.0013%2010.8607%2014.0013%207.00044C14.0013%203.14037%2010.8607%200%207.0006%200ZM0.70652%207.00044C0.70652%206.08791%200.90232%205.2216%201.25154%204.43886L4.25397%2012.665C2.15422%2011.645%200.70652%209.49172%200.70652%207.00044ZM7.0006%2013.295C6.38276%2013.295%205.78648%2013.2044%205.22243%2013.0385L7.11113%207.55101L9.04568%2012.8514C9.05842%2012.8826%209.07405%2012.9112%209.09072%2012.9382C8.43651%2013.1684%207.73355%2013.295%207.0006%2013.295V13.295ZM7.86801%204.04942C8.24694%204.02949%208.58838%203.98956%208.58838%203.98956C8.92752%203.94948%208.88752%203.45099%208.54823%203.47084C8.54823%203.47084%207.52873%203.55092%206.87059%203.55092C6.25216%203.55092%205.21295%203.47084%205.21295%203.47084C4.87351%203.45099%204.83373%203.96955%205.17302%203.98956C5.17302%203.98956%205.49409%204.02948%205.83323%204.04942L6.81377%206.73627L5.43616%2010.8673L3.14424%204.04943C3.52346%204.0295%203.86453%203.98957%203.86453%203.98957C4.20353%203.94949%204.16345%203.451%203.82431%203.47085C3.82431%203.47085%202.80503%203.55093%202.14681%203.55093C2.02873%203.55093%201.88953%203.54796%201.74174%203.5433C2.86717%201.83469%204.80158%200.70636%207.00061%200.70636C8.63913%200.70636%2010.1311%201.33286%2011.2509%202.35889C11.2237%202.35719%2011.1973%202.35378%2011.1694%202.35378C10.5511%202.35378%2010.1124%202.89242%2010.1124%203.47085C10.1124%203.98957%2010.4117%204.42842%2010.7307%204.94714C10.97%205.36629%2011.2496%205.90486%2011.2496%206.68301C11.2496%207.22165%2011.0424%207.84674%2010.7707%208.71772L10.1427%2010.8153L7.86801%204.04942ZM12.5237%203.98089C13.015%204.87735%2013.2946%205.90611%2013.2946%207.00044C13.2946%209.32251%2012.0362%2011.3497%2010.165%2012.4408L12.0874%206.8825C12.4465%205.98457%2012.566%205.26657%2012.566%204.62814C12.566%204.39642%2012.5508%204.18136%2012.5237%203.9809V3.98089Z'%20fill='%23378CC3'/%3e%3c/svg%3e",CarouselSmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%200.5H9C9.82843%200.5%2010.5%201.17157%2010.5%202V8C10.5%208.82843%209.82843%209.5%209%209.5H5C4.17157%209.5%203.5%208.82843%203.5%208V2C3.5%201.17157%204.17157%200.5%205%200.5Z'%20stroke='%23CC8D37'/%3e%3cmask%20id='mask0_0_9102'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='2'%20height='10'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%200H2V10H0V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_0_9102)'%3e%3cpath%20d='M-1%200.5H0C0.828427%200.5%201.5%201.17157%201.5%202V8C1.5%208.82843%200.828427%209.5%200%209.5H-1C-1.82843%209.5%20-2.5%208.82843%20-2.5%208V2C-2.5%201.17157%20-1.82843%200.5%20-1%200.5Z'%20stroke='%23CC8D37'/%3e%3c/g%3e%3cmask%20id='mask1_0_9102'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='12'%20y='0'%20width='2'%20height='10'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%200H14V10H12V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_0_9102)'%3e%3cpath%20d='M14%200.5H15C15.8284%200.5%2016.5%201.17157%2016.5%202V8C16.5%208.82843%2015.8284%209.5%2015%209.5H14C13.1716%209.5%2012.5%208.82843%2012.5%208V2C12.5%201.17157%2013.1716%200.5%2014%200.5Z'%20stroke='%23CC8D37'/%3e%3c/g%3e%3cpath%20d='M4%2013.25C3.86193%2013.25%203.75%2013.1381%203.75%2013C3.75%2012.8619%203.86193%2012.75%204%2012.75C4.13807%2012.75%204.25%2012.8619%204.25%2013C4.25%2013.1381%204.13807%2013.25%204%2013.25Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3cpath%20d='M7%2013.25C6.86193%2013.25%206.75%2013.1381%206.75%2013C6.75%2012.8619%206.86193%2012.75%207%2012.75C7.13807%2012.75%207.25%2012.8619%207.25%2013C7.25%2013.1381%207.13807%2013.25%207%2013.25Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2013.25C9.86193%2013.25%209.75%2013.1381%209.75%2013C9.75%2012.8619%209.86193%2012.75%2010%2012.75C10.1381%2012.75%2010.25%2012.8619%2010.25%2013C10.25%2013.1381%2010.1381%2013.25%2010%2013.25Z'%20stroke='%23CC8D37'%20stroke-width='1.5'/%3e%3c/svg%3e",SurveySmallIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.552632%2011.7887C0.552632%2010.873%201.2949%2010.1308%202.21053%2010.1308C3.12616%2010.1308%203.86842%2010.873%203.86842%2011.7887C3.86842%2012.7043%203.12616%2013.4465%202.21053%2013.4465C1.2949%2013.4465%200.552632%2012.7043%200.552632%2011.7887Z'%20stroke='%23FBFB67'%20stroke-width='1.10526'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.63086%2011.7896C7.63086%2011.3826%207.96075%2011.0527%208.3677%2011.0527H13.2624C13.6694%2011.0527%2013.9993%2011.3826%2013.9993%2011.7896C13.9993%2012.1965%2013.6694%2012.5264%2013.2624%2012.5264H8.3677C7.96075%2012.5264%207.63086%2012.1965%207.63086%2011.7896Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.63086%207.3677C7.63086%206.96075%207.96075%206.63086%208.3677%206.63086H13.2624C13.6694%206.63086%2013.9993%206.96075%2013.9993%207.3677C13.9993%207.77465%2013.6694%208.10454%2013.2624%208.10454H8.3677C7.96075%208.10454%207.63086%207.77465%207.63086%207.3677Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.63086%202.94778C7.63086%202.54083%207.96075%202.21094%208.3677%202.21094H13.2624C13.6694%202.21094%2013.9993%202.54083%2013.9993%202.94778C13.9993%203.35473%2013.6694%203.68462%2013.2624%203.68462H8.3677C7.96075%203.68462%207.63086%203.35473%207.63086%202.94778Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.857422%206.08789L2.52273%207.7532L1.68936%208.58658L0.0240458%206.92127L0.857422%206.08789Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.98438%204.63086L4.81631%205.4628L1.69016%208.58895L0.858219%207.75702L3.98438%204.63086Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.857422%201.66602L2.52273%203.33133L1.68936%204.1647L0.0240458%202.49939L0.857422%201.66602Z'%20fill='%23FBFB67'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.98438%200.208984L4.81631%201.04092L1.69016%204.16708L0.858219%203.33514L3.98438%200.208984Z'%20fill='%23FBFB67'/%3e%3c/svg%3e",documentsMetaMap=new Map;documentsMetaMap.set("custom",{name:"Slider",largeIcon:SliderIcon,icon:SliderSmallIcon,detachedDataSourceDocumentType:"slider"});documentsMetaMap.set("slider",{name:"Slider",largeIcon:SliderIcon,icon:SliderSmallIcon,hasAIWizard:!0});documentsMetaMap.set("popup",{name:"Popup",largeIcon:PopupIcon,icon:PopupSmallIcon,previewBackgroundSrc:`${commonEnv.wpHomepage}?dp-wp-admin-bar=0&dp-disable-popups=1`});documentsMetaMap.set("carousel",{name:"Carousel",tier:Tiers.PRO,largeIcon:CarouselIcon,icon:CarouselSmallIcon});documentsMetaMap.set("banner-bar",{name:"Notification Bar",largeIcon:BannerIcon,icon:BannerSmallIcon,previewBackgroundSrc:`${commonEnv.wpHomepage}?dp-wp-admin-bar=0&dp-disable-popups=1`});documentsMetaMap.set("hero-section",{name:"Hero Section",largeIcon:SectionIcon,icon:SectionSmallIcon});documentsMetaMap.set("post-slider",{name:"Post Slider",largeIcon:WordPressIcon,icon:WordPressSmallIcon,detachedDataSourceDocumentType:"slider"});documentsMetaMap.set("woo-slider",{name:"Product Slider",largeIcon:WooIcon,icon:WooSmallIcon,tier:Tiers.PRO,requiredIntegrations:["woocommerce"],detachedDataSourceDocumentType:"slider"});documentsMetaMap.set("landing-page",{name:"Landing Page",largeIcon:LadingPageIcon,icon:LadingPageSmallIcon});documentsMetaMap.set("survey",{name:"Survey",largeIcon:SurveyIcon,icon:SurveySmallIcon});const getDocumentTypeMeta=ea=>(documentsMetaMap.has(ea)||console.error(`This document is not registered: "${ea}"`),documentsMetaMap.get(ea));class DocTypeClass{ocsMap=new Map;configsMap=new Map;type=editorEnv.documentType;registerOptionControls(na,ra){this.ocsMap.set(na,ra)}registerConfigs(na,ra){this.configsMap.set(na,{...ra,...getDocumentTypeMeta(na)})}set(na){this.type=na}is(na){return typeof na=="string"?na===this.type:na.includes(this.type)}isNot(na){return!this.is(na)}getLabel(na,ra=!1){let oa=this.configsMap.get(this.type)?.labels?.[na]||na;return ra&&(oa=capitalizeWords(oa)),oa}get configs(){if(!this.configsMap.has(this.type))throw new Error(`This document type is not registered in the editor: ${this.type}`);return this.configsMap.get(this.type)}get options(){if(!this.ocsMap.has(this.type))throw new Error(`This document type is not registered in the editor: ${this.type}`);return this.ocsMap.get(this.type)}}const DocType=new DocTypeClass,emptySectionState={elements:[],background:{color:{default:"#FFF"}},options:{}};var define_process_env_default$5={EDITOR_VERSION:"4.7.1"};const wrapperSize={default:{width:{value:1200,unit:"px"},height:{value:700,unit:"px"}},tablet:{width:{value:1024,unit:"px"},height:{value:700,unit:"px"}},mobile:{width:{value:360,unit:"px"},height:{value:740,unit:"px"}}},commonDocumentInitialState={lastId:1,elements:{},sections:{"section-1":{...emptySectionState,id:"section-1",name:`${DocType.getLabel("section",!0)} 1`}},sectionsList:["section-1"],foregroundElements:[],meta:{createdBy:define_process_env_default$5.EDITOR_VERSION,modifiedBy:define_process_env_default$5.EDITOR_VERSION,modifiedByTier:Tiers.FREE,documentType:DocType.type},options:{sectionTransition:{type:"basic",options:{}},navigation:{swipe:{enable:!0,mouseSwipe:!0,touchSwipe:!0}},general:{keepAspect:!0},navigator:{},sectionLayout:"fullwidth",wrapperSize,wrapperSideSpace:0,integrations:{}},env:{activeSection:"section-1",activeBreakpoint:"default",selectedElements:[],additionalFonts:{},showHiddenItems:!0}},labels$6={section:i18next.t("slide"),sections:i18next.t("slides"),document:i18next.t("slider")},configs$1={labels:labels$6,websitePreview:!1,initialState:commonDocumentInitialState};DocType.registerConfigs("slider",configs$1);DocType.registerConfigs("custom",configs$1);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),Symbol$2=root$1.Symbol,objectProto$g=Object.prototype,hasOwnProperty$h=objectProto$g.hasOwnProperty,nativeObjectToString$1=objectProto$g.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(ea){var na=hasOwnProperty$h.call(ea,symToStringTag$1),ra=ea[symToStringTag$1];try{ea[symToStringTag$1]=void 0;var oa=!0}catch{}var aa=nativeObjectToString$1.call(ea);return oa&&(na?ea[symToStringTag$1]=ra:delete ea[symToStringTag$1]),aa}var objectProto$f=Object.prototype,nativeObjectToString=objectProto$f.toString;function objectToString(ea){return nativeObjectToString.call(ea)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(ea){return ea==null?ea===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(ea)?getRawTag(ea):objectToString(ea)}function isObjectLike(ea){return ea!=null&&typeof ea=="object"}var symbolTag$3="[object Symbol]";function isSymbol$3(ea){return typeof ea=="symbol"||isObjectLike(ea)&&baseGetTag(ea)==symbolTag$3}function arrayMap(ea,na){for(var ra=-1,oa=ea==null?0:ea.length,aa=Array(oa);++ra<oa;)aa[ra]=na(ea[ra],ra,ea);return aa}var isArray$3=Array.isArray,symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(ea){if(typeof ea=="string")return ea;if(isArray$3(ea))return arrayMap(ea,baseToString)+"";if(isSymbol$3(ea))return symbolToString?symbolToString.call(ea):"";var na=ea+"";return na=="0"&&1/ea==-1/0?"-0":na}var reWhitespace=/\s/;function trimmedEndIndex(ea){for(var na=ea.length;na--&&reWhitespace.test(ea.charAt(na)););return na}var reTrimStart=/^\s+/;function baseTrim(ea){return ea&&ea.slice(0,trimmedEndIndex(ea)+1).replace(reTrimStart,"")}function isObject$8(ea){var na=typeof ea;return ea!=null&&(na=="object"||na=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(ea){if(typeof ea=="number")return ea;if(isSymbol$3(ea))return NAN;if(isObject$8(ea)){var na=typeof ea.valueOf=="function"?ea.valueOf():ea;ea=isObject$8(na)?na+"":na}if(typeof ea!="string")return ea===0?ea:+ea;ea=baseTrim(ea);var ra=reIsBinary.test(ea);return ra||reIsOctal.test(ea)?freeParseInt(ea.slice(2),ra?2:8):reIsBadHex.test(ea)?NAN:+ea}var INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(ea){if(!ea)return ea===0?ea:0;if(ea=toNumber(ea),ea===INFINITY$1||ea===-1/0){var na=ea<0?-1:1;return na*MAX_INTEGER}return ea===ea?ea:0}function toInteger$1(ea){var na=toFinite(ea),ra=na%1;return na===na?ra?na-ra:na:0}function identity(ea){return ea}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(ea){if(!isObject$8(ea))return!1;var na=baseGetTag(ea);return na==funcTag$2||na==genTag$1||na==asyncTag||na==proxyTag}var coreJsData=root$1["__core-js_shared__"],maskSrcKey=function(){var ea=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return ea?"Symbol(src)_1."+ea:""}();function isMasked(ea){return!!maskSrcKey&&maskSrcKey in ea}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(ea){if(ea!=null){try{return funcToString$2.call(ea)}catch{}try{return ea+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$e=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$g=objectProto$e.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$g).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(ea){if(!isObject$8(ea)||isMasked(ea))return!1;var na=isFunction$2(ea)?reIsNative:reIsHostCtor;return na.test(toSource(ea))}function getValue(ea,na){return ea?.[na]}function getNative(ea,na){var ra=getValue(ea,na);return baseIsNative(ra)?ra:void 0}var WeakMap$3=getNative(root$1,"WeakMap"),objectCreate$1=Object.create,baseCreate=function(){function ea(){}return function(na){if(!isObject$8(na))return{};if(objectCreate$1)return objectCreate$1(na);ea.prototype=na;var ra=new ea;return ea.prototype=void 0,ra}}();function apply(ea,na,ra){switch(ra.length){case 0:return ea.call(na);case 1:return ea.call(na,ra[0]);case 2:return ea.call(na,ra[0],ra[1]);case 3:return ea.call(na,ra[0],ra[1],ra[2])}return ea.apply(na,ra)}function noop$3(){}function copyArray(ea,na){var ra=-1,oa=ea.length;for(na||(na=Array(oa));++ra<oa;)na[ra]=ea[ra];return na}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(ea){var na=0,ra=0;return function(){var oa=nativeNow(),aa=HOT_SPAN-(oa-ra);if(ra=oa,aa>0){if(++na>=HOT_COUNT)return arguments[0]}else na=0;return ea.apply(void 0,arguments)}}function constant(ea){return function(){return ea}}var defineProperty$3=function(){try{var ea=getNative(Object,"defineProperty");return ea({},"",{}),ea}catch{}}(),baseSetToString=defineProperty$3?function(ea,na){return defineProperty$3(ea,"toString",{configurable:!0,enumerable:!1,value:constant(na),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(ea,na){for(var ra=-1,oa=ea==null?0:ea.length;++ra<oa&&na(ea[ra],ra,ea)!==!1;);return ea}function baseFindIndex(ea,na,ra,oa){for(var aa=ea.length,sa=ra+-1;++sa<aa;)if(na(ea[sa],sa,ea))return sa;return-1}function baseIsNaN(ea){return ea!==ea}function strictIndexOf(ea,na,ra){for(var oa=ra-1,aa=ea.length;++oa<aa;)if(ea[oa]===na)return oa;return-1}function baseIndexOf(ea,na,ra){return na===na?strictIndexOf(ea,na,ra):baseFindIndex(ea,baseIsNaN,ra)}function arrayIncludes$1(ea,na){var ra=ea==null?0:ea.length;return!!ra&&baseIndexOf(ea,na,0)>-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(ea,na){var ra=typeof ea;return na=na??MAX_SAFE_INTEGER$1,!!na&&(ra=="number"||ra!="symbol"&&reIsUint.test(ea))&&ea>-1&&ea%1==0&&ea<na}function baseAssignValue(ea,na,ra){na=="__proto__"&&defineProperty$3?defineProperty$3(ea,na,{configurable:!0,enumerable:!0,value:ra,writable:!0}):ea[na]=ra}function eq(ea,na){return ea===na||ea!==ea&&na!==na}var objectProto$d=Object.prototype,hasOwnProperty$f=objectProto$d.hasOwnProperty;function assignValue(ea,na,ra){var oa=ea[na];(!(hasOwnProperty$f.call(ea,na)&&eq(oa,ra))||ra===void 0&&!(na in ea))&&baseAssignValue(ea,na,ra)}function copyObject(ea,na,ra,oa){var aa=!ra;ra||(ra={});for(var sa=-1,la=na.length;++sa<la;){var ca=na[sa],ua=void 0;ua===void 0&&(ua=ea[ca]),aa?baseAssignValue(ra,ca,ua):assignValue(ra,ca,ua)}return ra}var nativeMax$2=Math.max;function overRest(ea,na,ra){return na=nativeMax$2(na===void 0?ea.length-1:na,0),function(){for(var oa=arguments,aa=-1,sa=nativeMax$2(oa.length-na,0),la=Array(sa);++aa<sa;)la[aa]=oa[na+aa];aa=-1;for(var ca=Array(na+1);++aa<na;)ca[aa]=oa[aa];return ca[na]=ra(la),apply(ea,this,ca)}}function baseRest(ea,na){return setToString(overRest(ea,na,identity),ea+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(ea){return typeof ea=="number"&&ea>-1&&ea%1==0&&ea<=MAX_SAFE_INTEGER}function isArrayLike(ea){return ea!=null&&isLength(ea.length)&&!isFunction$2(ea)}function isIterateeCall(ea,na,ra){if(!isObject$8(ra))return!1;var oa=typeof na;return(oa=="number"?isArrayLike(ra)&&isIndex(na,ra.length):oa=="string"&&na in ra)?eq(ra[na],ea):!1}function createAssigner(ea){return baseRest(function(na,ra){var oa=-1,aa=ra.length,sa=aa>1?ra[aa-1]:void 0,la=aa>2?ra[2]:void 0;for(sa=ea.length>3&&typeof sa=="function"?(aa--,sa):void 0,la&&isIterateeCall(ra[0],ra[1],la)&&(sa=aa<3?void 0:sa,aa=1),na=Object(na);++oa<aa;){var ca=ra[oa];ca&&ea(na,ca,oa,sa)}return na})}var objectProto$c=Object.prototype;function isPrototype(ea){var na=ea&&ea.constructor,ra=typeof na=="function"&&na.prototype||objectProto$c;return ea===ra}function baseTimes(ea,na){for(var ra=-1,oa=Array(ea);++ra<ea;)oa[ra]=na(ra);return oa}var argsTag$3="[object Arguments]";function baseIsArguments(ea){return isObjectLike(ea)&&baseGetTag(ea)==argsTag$3}var objectProto$b=Object.prototype,hasOwnProperty$e=objectProto$b.hasOwnProperty,propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(ea){return isObjectLike(ea)&&hasOwnProperty$e.call(ea,"callee")&&!propertyIsEnumerable$1.call(ea,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$4=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$6="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(ea){return isObjectLike(ea)&&isLength(ea.length)&&!!typedArrayTags[baseGetTag(ea)]}function baseUnary(ea){return function(na){return ea(na)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=function(){try{var ea=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return ea||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$a=Object.prototype,hasOwnProperty$d=objectProto$a.hasOwnProperty;function arrayLikeKeys(ea,na){var ra=isArray$3(ea),oa=!ra&&isArguments(ea),aa=!ra&&!oa&&isBuffer$4(ea),sa=!ra&&!oa&&!aa&&isTypedArray(ea),la=ra||oa||aa||sa,ca=la?baseTimes(ea.length,String):[],ua=ca.length;for(var da in ea)(na||hasOwnProperty$d.call(ea,da))&&!(la&&(da=="length"||aa&&(da=="offset"||da=="parent")||sa&&(da=="buffer"||da=="byteLength"||da=="byteOffset")||isIndex(da,ua)))&&ca.push(da);return ca}function overArg(ea,na){return function(ra){return ea(na(ra))}}var nativeKeys=overArg(Object.keys,Object),objectProto$9=Object.prototype,hasOwnProperty$c=objectProto$9.hasOwnProperty;function baseKeys(ea){if(!isPrototype(ea))return nativeKeys(ea);var na=[];for(var ra in Object(ea))hasOwnProperty$c.call(ea,ra)&&ra!="constructor"&&na.push(ra);return na}function keys$2(ea){return isArrayLike(ea)?arrayLikeKeys(ea):baseKeys(ea)}function nativeKeysIn(ea){var na=[];if(ea!=null)for(var ra in Object(ea))na.push(ra);return na}var objectProto$8=Object.prototype,hasOwnProperty$b=objectProto$8.hasOwnProperty;function baseKeysIn(ea){if(!isObject$8(ea))return nativeKeysIn(ea);var na=isPrototype(ea),ra=[];for(var oa in ea)oa=="constructor"&&(na||!hasOwnProperty$b.call(ea,oa))||ra.push(oa);return ra}function keysIn(ea){return isArrayLike(ea)?arrayLikeKeys(ea,!0):baseKeysIn(ea)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(ea,na){if(isArray$3(ea))return!1;var ra=typeof ea;return ra=="number"||ra=="symbol"||ra=="boolean"||ea==null||isSymbol$3(ea)?!0:reIsPlainProp.test(ea)||!reIsDeepProp.test(ea)||na!=null&&ea in Object(na)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(ea){var na=this.has(ea)&&delete this.__data__[ea];return this.size-=na?1:0,na}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$7=Object.prototype,hasOwnProperty$a=objectProto$7.hasOwnProperty;function hashGet(ea){var na=this.__data__;if(nativeCreate){var ra=na[ea];return ra===HASH_UNDEFINED$2?void 0:ra}return hasOwnProperty$a.call(na,ea)?na[ea]:void 0}var objectProto$6=Object.prototype,hasOwnProperty$9=objectProto$6.hasOwnProperty;function hashHas(ea){var na=this.__data__;return nativeCreate?na[ea]!==void 0:hasOwnProperty$9.call(na,ea)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(ea,na){var ra=this.__data__;return this.size+=this.has(ea)?0:1,ra[ea]=nativeCreate&&na===void 0?HASH_UNDEFINED$1:na,this}function Hash(ea){var na=-1,ra=ea==null?0:ea.length;for(this.clear();++na<ra;){var oa=ea[na];this.set(oa[0],oa[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(ea,na){for(var ra=ea.length;ra--;)if(eq(ea[ra][0],na))return ra;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(ea){var na=this.__data__,ra=assocIndexOf(na,ea);if(ra<0)return!1;var oa=na.length-1;return ra==oa?na.pop():splice$1.call(na,ra,1),--this.size,!0}function listCacheGet(ea){var na=this.__data__,ra=assocIndexOf(na,ea);return ra<0?void 0:na[ra][1]}function listCacheHas(ea){return assocIndexOf(this.__data__,ea)>-1}function listCacheSet(ea,na){var ra=this.__data__,oa=assocIndexOf(ra,ea);return oa<0?(++this.size,ra.push([ea,na])):ra[oa][1]=na,this}function ListCache(ea){var na=-1,ra=ea==null?0:ea.length;for(this.clear();++na<ra;){var oa=ea[na];this.set(oa[0],oa[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(ea){var na=typeof ea;return na=="string"||na=="number"||na=="symbol"||na=="boolean"?ea!=="__proto__":ea===null}function getMapData(ea,na){var ra=ea.__data__;return isKeyable(na)?ra[typeof na=="string"?"string":"hash"]:ra.map}function mapCacheDelete(ea){var na=getMapData(this,ea).delete(ea);return this.size-=na?1:0,na}function mapCacheGet(ea){return getMapData(this,ea).get(ea)}function mapCacheHas(ea){return getMapData(this,ea).has(ea)}function mapCacheSet(ea,na){var ra=getMapData(this,ea),oa=ra.size;return ra.set(ea,na),this.size+=ra.size==oa?0:1,this}function MapCache(ea){var na=-1,ra=ea==null?0:ea.length;for(this.clear();++na<ra;){var oa=ea[na];this.set(oa[0],oa[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize$1(ea,na){if(typeof ea!="function"||na!=null&&typeof na!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var ra=function(){var oa=arguments,aa=na?na.apply(this,oa):oa[0],sa=ra.cache;if(sa.has(aa))return sa.get(aa);var la=ea.apply(this,oa);return ra.cache=sa.set(aa,la)||sa,la};return ra.cache=new(memoize$1.Cache||MapCache),ra}memoize$1.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(ea){var na=memoize$1(ea,function(oa){return ra.size===MAX_MEMOIZE_SIZE&&ra.clear(),oa}),ra=na.cache;return na}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(ea){var na=[];return ea.charCodeAt(0)===46&&na.push(""),ea.replace(rePropName,function(ra,oa,aa,sa){na.push(aa?sa.replace(reEscapeChar,"$1"):oa||ra)}),na});function toString$3(ea){return ea==null?"":baseToString(ea)}function castPath(ea,na){return isArray$3(ea)?ea:isKey(ea,na)?[ea]:stringToPath(toString$3(ea))}function toKey(ea){if(typeof ea=="string"||isSymbol$3(ea))return ea;var na=ea+"";return na=="0"&&1/ea==-1/0?"-0":na}function baseGet(ea,na){na=castPath(na,ea);for(var ra=0,oa=na.length;ea!=null&&ra<oa;)ea=ea[toKey(na[ra++])];return ra&&ra==oa?ea:void 0}function get$5(ea,na,ra){var oa=ea==null?void 0:baseGet(ea,na);return oa===void 0?ra:oa}function arrayPush(ea,na){for(var ra=-1,oa=na.length,aa=ea.length;++ra<oa;)ea[aa+ra]=na[ra];return ea}var spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable(ea){return isArray$3(ea)||isArguments(ea)||!!(spreadableSymbol&&ea&&ea[spreadableSymbol])}function baseFlatten(ea,na,ra,oa,aa){var sa=-1,la=ea.length;for(ra||(ra=isFlattenable),aa||(aa=[]);++sa<la;){var ca=ea[sa];ra(ca)?arrayPush(aa,ca):oa||(aa[aa.length]=ca)}return aa}function flatten(ea){var na=ea==null?0:ea.length;return na?baseFlatten(ea):[]}function flatRest(ea){return setToString(overRest(ea,void 0,flatten),ea+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$5=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$5.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$5(ea){if(!isObjectLike(ea)||baseGetTag(ea)!=objectTag$3)return!1;var na=getPrototype(ea);if(na===null)return!0;var ra=hasOwnProperty$8.call(na,"constructor")&&na.constructor;return typeof ra=="function"&&ra instanceof ra&&funcToString.call(ra)==objectCtorString}function baseSlice(ea,na,ra){var oa=-1,aa=ea.length;na<0&&(na=-na>aa?0:aa+na),ra=ra>aa?aa:ra,ra<0&&(ra+=aa),aa=na>ra?0:ra-na>>>0,na>>>=0;for(var sa=Array(aa);++oa<aa;)sa[oa]=ea[oa+na];return sa}function castSlice(ea,na,ra){var oa=ea.length;return ra=ra===void 0?oa:ra,baseSlice(ea,na,ra)}var rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode(ea){return reHasUnicode.test(ea)}function asciiToArray(ea){return ea.split("")}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray(ea){return ea.match(reUnicode)||[]}function stringToArray(ea){return hasUnicode(ea)?unicodeToArray(ea):asciiToArray(ea)}function createCaseFirst(ea){return function(na){na=toString$3(na);var ra=hasUnicode(na)?stringToArray(na):void 0,oa=ra?ra[0]:na.charAt(0),aa=ra?castSlice(ra,1).join(""):na.slice(1);return oa[ea]()+aa}}var upperFirst=createCaseFirst("toUpperCase");function capitalize(ea){return upperFirst(toString$3(ea).toLowerCase())}function arrayReduce(ea,na,ra,oa){for(var aa=-1,sa=ea==null?0:ea.length;++aa<sa;)ra=na(ra,ea[aa],aa,ea);return ra}function basePropertyOf(ea){return function(na){return ea?.[na]}}var deburredLetters={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},deburrLetter=basePropertyOf(deburredLetters),reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr(ea){return ea=toString$3(ea),ea&&ea.replace(reLatin,deburrLetter).replace(reComboMark,"")}var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords(ea){return ea.match(reAsciiWord)||[]}var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord(ea){return reHasUnicodeWord.test(ea)}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\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",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords(ea){return ea.match(reUnicodeWord)||[]}function words(ea,na,ra){return ea=toString$3(ea),na=na,na===void 0?hasUnicodeWord(ea)?unicodeWords(ea):asciiWords(ea):ea.match(na)||[]}var rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder(ea){return function(na){return arrayReduce(words(deburr(na).replace(reApos,"")),ea,"")}}var camelCase=createCompounder(function(ea,na,ra){return na=na.toLowerCase(),ea+(ra?capitalize(na):na)});function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(ea){var na=this.__data__,ra=na.delete(ea);return this.size=na.size,ra}function stackGet(ea){return this.__data__.get(ea)}function stackHas(ea){return this.__data__.has(ea)}var LARGE_ARRAY_SIZE$2=200;function stackSet(ea,na){var ra=this.__data__;if(ra instanceof ListCache){var oa=ra.__data__;if(!Map$1||oa.length<LARGE_ARRAY_SIZE$2-1)return oa.push([ea,na]),this.size=++ra.size,this;ra=this.__data__=new MapCache(oa)}return ra.set(ea,na),this.size=ra.size,this}function Stack(ea){var na=this.__data__=new ListCache(ea);this.size=na.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(ea,na){return ea&&copyObject(na,keys$2(na),ea)}function baseAssignIn(ea,na){return ea&&copyObject(na,keysIn(na),ea)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(ea,na){if(na)return ea.slice();var ra=ea.length,oa=allocUnsafe?allocUnsafe(ra):new ea.constructor(ra);return ea.copy(oa),oa}function arrayFilter(ea,na){for(var ra=-1,oa=ea==null?0:ea.length,aa=0,sa=[];++ra<oa;){var la=ea[ra];na(la,ra,ea)&&(sa[aa++]=la)}return sa}function stubArray(){return[]}var objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(ea){return ea==null?[]:(ea=Object(ea),arrayFilter(nativeGetSymbols$1(ea),function(na){return propertyIsEnumerable.call(ea,na)}))}:stubArray;function copySymbols(ea,na){return copyObject(ea,getSymbols(ea),na)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(ea){for(var na=[];ea;)arrayPush(na,getSymbols(ea)),ea=getPrototype(ea);return na}:stubArray;function copySymbolsIn(ea,na){return copyObject(ea,getSymbolsIn(ea),na)}function baseGetAllKeys(ea,na,ra){var oa=na(ea);return isArray$3(ea)?oa:arrayPush(oa,ra(ea))}function getAllKeys(ea){return baseGetAllKeys(ea,keys$2,getSymbols)}function getAllKeysIn(ea){return baseGetAllKeys(ea,keysIn,getSymbolsIn)}var DataView$1=getNative(root$1,"DataView"),Promise$1=getNative(root$1,"Promise"),Set$1=getNative(root$1,"Set"),mapTag$5="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$3),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$1)!=mapTag$5||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$5||WeakMap$3&&getTag(new WeakMap$3)!=weakMapTag$1)&&(getTag=function(ea){var na=baseGetTag(ea),ra=na==objectTag$2?ea.constructor:void 0,oa=ra?toSource(ra):"";if(oa)switch(oa){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1}return na});var objectProto$3=Object.prototype,hasOwnProperty$7=objectProto$3.hasOwnProperty;function initCloneArray(ea){var na=ea.length,ra=new ea.constructor(na);return na&&typeof ea[0]=="string"&&hasOwnProperty$7.call(ea,"index")&&(ra.index=ea.index,ra.input=ea.input),ra}var Uint8Array$1=root$1.Uint8Array;function cloneArrayBuffer(ea){var na=new ea.constructor(ea.byteLength);return new Uint8Array$1(na).set(new Uint8Array$1(ea)),na}function cloneDataView(ea,na){var ra=na?cloneArrayBuffer(ea.buffer):ea.buffer;return new ea.constructor(ra,ea.byteOffset,ea.byteLength)}var reFlags=/\w*$/;function cloneRegExp(ea){var na=new ea.constructor(ea.source,reFlags.exec(ea));return na.lastIndex=ea.lastIndex,na}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(ea){return symbolValueOf$1?Object(symbolValueOf$1.call(ea)):{}}function cloneTypedArray(ea,na){var ra=na?cloneArrayBuffer(ea.buffer):ea.buffer;return new ea.constructor(ra,ea.byteOffset,ea.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$4="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(ea,na,ra){var oa=ea.constructor;switch(na){case arrayBufferTag$2:return cloneArrayBuffer(ea);case boolTag$2:case dateTag$2:return new oa(+ea);case dataViewTag$2:return cloneDataView(ea,ra);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(ea,ra);case mapTag$4:return new oa;case numberTag$2:case stringTag$2:return new oa(ea);case regexpTag$2:return cloneRegExp(ea);case setTag$4:return new oa;case symbolTag$2:return cloneSymbol(ea)}}function initCloneObject(ea){return typeof ea.constructor=="function"&&!isPrototype(ea)?baseCreate(getPrototype(ea)):{}}var mapTag$3="[object Map]";function baseIsMap(ea){return isObjectLike(ea)&&getTag(ea)==mapTag$3}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$3="[object Set]";function baseIsSet(ea){return isObjectLike(ea)&&getTag(ea)==setTag$3}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$2]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$2]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(ea,na,ra,oa,aa,sa){var la,ca=na&CLONE_DEEP_FLAG$2,ua=na&CLONE_FLAT_FLAG$1,da=na&CLONE_SYMBOLS_FLAG$2;if(ra&&(la=aa?ra(ea,oa,aa,sa):ra(ea)),la!==void 0)return la;if(!isObject$8(ea))return ea;var pa=isArray$3(ea);if(pa){if(la=initCloneArray(ea),!ca)return copyArray(ea,la)}else{var ha=getTag(ea),ga=ha==funcTag||ha==genTag;if(isBuffer$4(ea))return cloneBuffer(ea,ca);if(ha==objectTag$1||ha==argsTag$1||ga&&!aa){if(la=ua||ga?{}:initCloneObject(ea),!ca)return ua?copySymbolsIn(ea,baseAssignIn(la,ea)):copySymbols(ea,baseAssign(la,ea))}else{if(!cloneableTags[ha])return aa?ea:{};la=initCloneByTag(ea,ha,ca)}}sa||(sa=new Stack);var fa=sa.get(ea);if(fa)return fa;sa.set(ea,la),isSet(ea)?ea.forEach(function(xa){la.add(baseClone(xa,na,ra,xa,ea,sa))}):isMap(ea)&&ea.forEach(function(xa,ya){la.set(ya,baseClone(xa,na,ra,ya,ea,sa))});var ma=da?ua?getAllKeysIn:getAllKeys:ua?keysIn:keys$2,va=pa?void 0:ma(ea);return arrayEach(va||ea,function(xa,ya){va&&(ya=xa,xa=ea[ya]),assignValue(la,ya,baseClone(xa,na,ra,ya,ea,sa))}),la}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep$1(ea){return baseClone(ea,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(ea){return this.__data__.set(ea,HASH_UNDEFINED),this}function setCacheHas(ea){return this.__data__.has(ea)}function SetCache(ea){var na=-1,ra=ea==null?0:ea.length;for(this.__data__=new MapCache;++na<ra;)this.add(ea[na])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(ea,na){for(var ra=-1,oa=ea==null?0:ea.length;++ra<oa;)if(na(ea[ra],ra,ea))return!0;return!1}function cacheHas(ea,na){return ea.has(na)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(ea,na,ra,oa,aa,sa){var la=ra&COMPARE_PARTIAL_FLAG$5,ca=ea.length,ua=na.length;if(ca!=ua&&!(la&&ua>ca))return!1;var da=sa.get(ea),pa=sa.get(na);if(da&&pa)return da==na&&pa==ea;var ha=-1,ga=!0,fa=ra&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(sa.set(ea,na),sa.set(na,ea);++ha<ca;){var ma=ea[ha],va=na[ha];if(oa)var xa=la?oa(va,ma,ha,na,ea,sa):oa(ma,va,ha,ea,na,sa);if(xa!==void 0){if(xa)continue;ga=!1;break}if(fa){if(!arraySome(na,function(ya,Aa){if(!cacheHas(fa,Aa)&&(ma===ya||aa(ma,ya,ra,oa,sa)))return fa.push(Aa)})){ga=!1;break}}else if(!(ma===va||aa(ma,va,ra,oa,sa))){ga=!1;break}}return sa.delete(ea),sa.delete(na),ga}function mapToArray(ea){var na=-1,ra=Array(ea.size);return ea.forEach(function(oa,aa){ra[++na]=[aa,oa]}),ra}function setToArray(ea){var na=-1,ra=Array(ea.size);return ea.forEach(function(oa){ra[++na]=oa}),ra}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$1="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(ea,na,ra,oa,aa,sa,la){switch(ra){case dataViewTag:if(ea.byteLength!=na.byteLength||ea.byteOffset!=na.byteOffset)return!1;ea=ea.buffer,na=na.buffer;case arrayBufferTag:return!(ea.byteLength!=na.byteLength||!sa(new Uint8Array$1(ea),new Uint8Array$1(na)));case boolTag:case dateTag:case numberTag:return eq(+ea,+na);case errorTag:return ea.name==na.name&&ea.message==na.message;case regexpTag:case stringTag:return ea==na+"";case mapTag$1:var ca=mapToArray;case setTag$1:var ua=oa&COMPARE_PARTIAL_FLAG$4;if(ca||(ca=setToArray),ea.size!=na.size&&!ua)return!1;var da=la.get(ea);if(da)return da==na;oa|=COMPARE_UNORDERED_FLAG$2,la.set(ea,na);var pa=equalArrays(ca(ea),ca(na),oa,aa,sa,la);return la.delete(ea),pa;case symbolTag:if(symbolValueOf)return symbolValueOf.call(ea)==symbolValueOf.call(na)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$6=objectProto$2.hasOwnProperty;function equalObjects(ea,na,ra,oa,aa,sa){var la=ra&COMPARE_PARTIAL_FLAG$3,ca=getAllKeys(ea),ua=ca.length,da=getAllKeys(na),pa=da.length;if(ua!=pa&&!la)return!1;for(var ha=ua;ha--;){var ga=ca[ha];if(!(la?ga in na:hasOwnProperty$6.call(na,ga)))return!1}var fa=sa.get(ea),ma=sa.get(na);if(fa&&ma)return fa==na&&ma==ea;var va=!0;sa.set(ea,na),sa.set(na,ea);for(var xa=la;++ha<ua;){ga=ca[ha];var ya=ea[ga],Aa=na[ga];if(oa)var Ca=la?oa(Aa,ya,ga,na,ea,sa):oa(ya,Aa,ga,ea,na,sa);if(!(Ca===void 0?ya===Aa||aa(ya,Aa,ra,oa,sa):Ca)){va=!1;break}xa||(xa=ga=="constructor")}if(va&&!xa){var Sa=ea.constructor,wa=na.constructor;Sa!=wa&&"constructor"in ea&&"constructor"in na&&!(typeof Sa=="function"&&Sa instanceof Sa&&typeof wa=="function"&&wa instanceof wa)&&(va=!1)}return sa.delete(ea),sa.delete(na),va}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$5=objectProto$1.hasOwnProperty;function baseIsEqualDeep(ea,na,ra,oa,aa,sa){var la=isArray$3(ea),ca=isArray$3(na),ua=la?arrayTag:getTag(ea),da=ca?arrayTag:getTag(na);ua=ua==argsTag?objectTag:ua,da=da==argsTag?objectTag:da;var pa=ua==objectTag,ha=da==objectTag,ga=ua==da;if(ga&&isBuffer$4(ea)){if(!isBuffer$4(na))return!1;la=!0,pa=!1}if(ga&&!pa)return sa||(sa=new Stack),la||isTypedArray(ea)?equalArrays(ea,na,ra,oa,aa,sa):equalByTag(ea,na,ua,ra,oa,aa,sa);if(!(ra&COMPARE_PARTIAL_FLAG$2)){var fa=pa&&hasOwnProperty$5.call(ea,"__wrapped__"),ma=ha&&hasOwnProperty$5.call(na,"__wrapped__");if(fa||ma){var va=fa?ea.value():ea,xa=ma?na.value():na;return sa||(sa=new Stack),aa(va,xa,ra,oa,sa)}}return ga?(sa||(sa=new Stack),equalObjects(ea,na,ra,oa,aa,sa)):!1}function baseIsEqual(ea,na,ra,oa,aa){return ea===na?!0:ea==null||na==null||!isObjectLike(ea)&&!isObjectLike(na)?ea!==ea&&na!==na:baseIsEqualDeep(ea,na,ra,oa,baseIsEqual,aa)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(ea,na,ra,oa){var aa=ra.length,sa=aa;if(ea==null)return!sa;for(ea=Object(ea);aa--;){var la=ra[aa];if(la[2]?la[1]!==ea[la[0]]:!(la[0]in ea))return!1}for(;++aa<sa;){la=ra[aa];var ca=la[0],ua=ea[ca],da=la[1];if(la[2]){if(ua===void 0&&!(ca in ea))return!1}else{var pa=new Stack,ha;if(!(ha===void 0?baseIsEqual(da,ua,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,oa,pa):ha))return!1}}return!0}function isStrictComparable(ea){return ea===ea&&!isObject$8(ea)}function getMatchData(ea){for(var na=keys$2(ea),ra=na.length;ra--;){var oa=na[ra],aa=ea[oa];na[ra]=[oa,aa,isStrictComparable(aa)]}return na}function matchesStrictComparable(ea,na){return function(ra){return ra==null?!1:ra[ea]===na&&(na!==void 0||ea in Object(ra))}}function baseMatches(ea){var na=getMatchData(ea);return na.length==1&&na[0][2]?matchesStrictComparable(na[0][0],na[0][1]):function(ra){return ra===ea||baseIsMatch(ra,ea,na)}}function baseHasIn(ea,na){return ea!=null&&na in Object(ea)}function hasPath(ea,na,ra){na=castPath(na,ea);for(var oa=-1,aa=na.length,sa=!1;++oa<aa;){var la=toKey(na[oa]);if(!(sa=ea!=null&&ra(ea,la)))break;ea=ea[la]}return sa||++oa!=aa?sa:(aa=ea==null?0:ea.length,!!aa&&isLength(aa)&&isIndex(la,aa)&&(isArray$3(ea)||isArguments(ea)))}function hasIn(ea,na){return ea!=null&&hasPath(ea,na,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(ea,na){return isKey(ea)&&isStrictComparable(na)?matchesStrictComparable(toKey(ea),na):function(ra){var oa=get$5(ra,ea);return oa===void 0&&oa===na?hasIn(ra,ea):baseIsEqual(na,oa,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(ea){return function(na){return na?.[ea]}}function basePropertyDeep(ea){return function(na){return baseGet(na,ea)}}function property(ea){return isKey(ea)?baseProperty(toKey(ea)):basePropertyDeep(ea)}function baseIteratee(ea){return typeof ea=="function"?ea:ea==null?identity:typeof ea=="object"?isArray$3(ea)?baseMatchesProperty(ea[0],ea[1]):baseMatches(ea):property(ea)}function createBaseFor(ea){return function(na,ra,oa){for(var aa=-1,sa=Object(na),la=oa(na),ca=la.length;ca--;){var ua=la[++aa];if(ra(sa[ua],ua,sa)===!1)break}return na}}var baseFor=createBaseFor();function baseForOwn(ea,na){return ea&&baseFor(ea,na,keys$2)}function createBaseEach(ea,na){return function(ra,oa){if(ra==null)return ra;if(!isArrayLike(ra))return ea(ra,oa);for(var aa=ra.length,sa=-1,la=Object(ra);++sa<aa&&oa(la[sa],sa,la)!==!1;);return ra}}var baseEach=createBaseEach(baseForOwn),now$1=function(){return root$1.Date.now()},FUNC_ERROR_TEXT$1="Expected a function",nativeMax$1=Math.max,nativeMin$1=Math.min;function debounce(ea,na,ra){var oa,aa,sa,la,ca,ua,da=0,pa=!1,ha=!1,ga=!0;if(typeof ea!="function")throw new TypeError(FUNC_ERROR_TEXT$1);na=toNumber(na)||0,isObject$8(ra)&&(pa=!!ra.leading,ha="maxWait"in ra,sa=ha?nativeMax$1(toNumber(ra.maxWait)||0,na):sa,ga="trailing"in ra?!!ra.trailing:ga);function fa(ba){var Ea=oa,$a=aa;return oa=aa=void 0,da=ba,la=ea.apply($a,Ea),la}function ma(ba){return da=ba,ca=setTimeout(ya,na),pa?fa(ba):la}function va(ba){var Ea=ba-ua,$a=ba-da,Ma=na-Ea;return ha?nativeMin$1(Ma,sa-$a):Ma}function xa(ba){var Ea=ba-ua,$a=ba-da;return ua===void 0||Ea>=na||Ea<0||ha&&$a>=sa}function ya(){var ba=now$1();if(xa(ba))return Aa(ba);ca=setTimeout(ya,va(ba))}function Aa(ba){return ca=void 0,ga&&oa?fa(ba):(oa=aa=void 0,la)}function Ca(){ca!==void 0&&clearTimeout(ca),da=0,oa=ua=aa=ca=void 0}function Sa(){return ca===void 0?la:Aa(now$1())}function wa(){var ba=now$1(),Ea=xa(ba);if(oa=arguments,aa=this,ua=ba,Ea){if(ca===void 0)return ma(ua);if(ha)return clearTimeout(ca),ca=setTimeout(ya,na),fa(ua)}return ca===void 0&&(ca=setTimeout(ya,na)),la}return wa.cancel=Ca,wa.flush=Sa,wa}function assignMergeValue(ea,na,ra){(ra!==void 0&&!eq(ea[na],ra)||ra===void 0&&!(na in ea))&&baseAssignValue(ea,na,ra)}function isArrayLikeObject(ea){return isObjectLike(ea)&&isArrayLike(ea)}function safeGet(ea,na){if(!(na==="constructor"&&typeof ea[na]=="function")&&na!="__proto__")return ea[na]}function toPlainObject(ea){return copyObject(ea,keysIn(ea))}function baseMergeDeep(ea,na,ra,oa,aa,sa,la){var ca=safeGet(ea,ra),ua=safeGet(na,ra),da=la.get(ua);if(da){assignMergeValue(ea,ra,da);return}var pa=sa?sa(ca,ua,ra+"",ea,na,la):void 0,ha=pa===void 0;if(ha){var ga=isArray$3(ua),fa=!ga&&isBuffer$4(ua),ma=!ga&&!fa&&isTypedArray(ua);pa=ua,ga||fa||ma?isArray$3(ca)?pa=ca:isArrayLikeObject(ca)?pa=copyArray(ca):fa?(ha=!1,pa=cloneBuffer(ua,!0)):ma?(ha=!1,pa=cloneTypedArray(ua,!0)):pa=[]:isPlainObject$5(ua)||isArguments(ua)?(pa=ca,isArguments(ca)?pa=toPlainObject(ca):(!isObject$8(ca)||isFunction$2(ca))&&(pa=initCloneObject(ua))):ha=!1}ha&&(la.set(ua,pa),aa(pa,ua,oa,sa,la),la.delete(ua)),assignMergeValue(ea,ra,pa)}function baseMerge(ea,na,ra,oa,aa){ea!==na&&baseFor(na,function(sa,la){if(aa||(aa=new Stack),isObject$8(sa))baseMergeDeep(ea,na,la,ra,baseMerge,oa,aa);else{var ca=oa?oa(safeGet(ea,la),sa,la+"",ea,na,aa):void 0;ca===void 0&&(ca=sa),assignMergeValue(ea,la,ca)}},keysIn)}function arrayIncludesWith(ea,na,ra){for(var oa=-1,aa=ea==null?0:ea.length;++oa<aa;)if(ra(na,ea[oa]))return!0;return!1}var LARGE_ARRAY_SIZE$1=200;function baseDifference(ea,na,ra,oa){var aa=-1,sa=arrayIncludes$1,la=!0,ca=ea.length,ua=[],da=na.length;if(!ca)return ua;na.length>=LARGE_ARRAY_SIZE$1&&(sa=cacheHas,la=!1,na=new SetCache(na));e:for(;++aa<ca;){var pa=ea[aa],ha=pa;if(pa=pa!==0?pa:0,la&&ha===ha){for(var ga=da;ga--;)if(na[ga]===ha)continue e;ua.push(pa)}else sa(na,ha,oa)||ua.push(pa)}return ua}var difference=baseRest(function(ea,na){return isArrayLikeObject(ea)?baseDifference(ea,baseFlatten(na,1,isArrayLikeObject,!0)):[]});function last(ea){var na=ea==null?0:ea.length;return na?ea[na-1]:void 0}function createFind(ea){return function(na,ra,oa){var aa=Object(na);if(!isArrayLike(na)){var sa=baseIteratee(ra);na=keys$2(na),ra=function(ca){return sa(aa[ca],ca,aa)}}var la=ea(na,ra,oa);return la>-1?aa[sa?na[la]:la]:void 0}}var nativeMax=Math.max;function findIndex$2(ea,na,ra){var oa=ea==null?0:ea.length;if(!oa)return-1;var aa=ra==null?0:toInteger$1(ra);return aa<0&&(aa=nativeMax(oa+aa,0)),baseFindIndex(ea,baseIteratee(na),aa)}var find$3=createFind(findIndex$2);function baseFindKey(ea,na,ra){var oa;return ra(ea,function(aa,sa,la){if(na(aa,sa,la))return oa=sa,!1}),oa}function findKey$1(ea,na){return baseFindKey(ea,baseIteratee(na),baseForOwn)}function baseMap(ea,na){var ra=-1,oa=isArrayLike(ea)?Array(ea.length):[];return baseEach(ea,function(aa,sa,la){oa[++ra]=na(aa,sa,la)}),oa}var nativeMin=Math.min;function baseIntersection(ea,na,ra){for(var oa=ra?arrayIncludesWith:arrayIncludes$1,aa=ea[0].length,sa=ea.length,la=sa,ca=Array(sa),ua=1/0,da=[];la--;){var pa=ea[la];ua=nativeMin(pa.length,ua),ca[la]=!ra&&aa>=120&&pa.length>=120?new SetCache(la&&pa):void 0}pa=ea[0];var ha=-1,ga=ca[0];e:for(;++ha<aa&&da.length<ua;){var fa=pa[ha],ma=fa;if(fa=ra||fa!==0?fa:0,!(ga?cacheHas(ga,ma):oa(da,ma,ra))){for(la=sa;--la;){var va=ca[la];if(!(va?cacheHas(va,ma):oa(ea[la],ma,ra)))continue e}ga&&ga.push(ma),da.push(fa)}}return da}function castArrayLikeObject(ea){return isArrayLikeObject(ea)?ea:[]}var intersectionWith=baseRest(function(ea){var na=last(ea),ra=arrayMap(ea,castArrayLikeObject);return na=typeof na=="function"?na:void 0,na&&ra.pop(),ra.length&&ra[0]===ea[0]?baseIntersection(ra,void 0,na):[]});function parent(ea,na){return na.length<2?ea:baseGet(ea,baseSlice(na,0,-1))}var mapTag="[object Map]",setTag="[object Set]",objectProto=Object.prototype,hasOwnProperty$4=objectProto.hasOwnProperty;function isEmpty(ea){if(ea==null)return!0;if(isArrayLike(ea)&&(isArray$3(ea)||typeof ea=="string"||typeof ea.splice=="function"||isBuffer$4(ea)||isTypedArray(ea)||isArguments(ea)))return!ea.length;var na=getTag(ea);if(na==mapTag||na==setTag)return!ea.size;if(isPrototype(ea))return!baseKeys(ea).length;for(var ra in ea)if(hasOwnProperty$4.call(ea,ra))return!1;return!0}function isEqual$1(ea,na){return baseIsEqual(ea,na)}var merge$1=createAssigner(function(ea,na,ra){baseMerge(ea,na,ra)});function baseUnset(ea,na){return na=castPath(na,ea),ea=parent(ea,na),ea==null||delete ea[toKey(last(na))]}function customOmitClone(ea){return isPlainObject$5(ea)?void 0:ea}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit$2=flatRest(function(ea,na){var ra={};if(ea==null)return ra;var oa=!1;na=arrayMap(na,function(sa){return sa=castPath(sa,ea),oa||(oa=sa.length>1),sa}),copyObject(ea,getAllKeysIn(ea),ra),oa&&(ra=baseClone(ra,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var aa=na.length;aa--;)baseUnset(ra,na[aa]);return ra});function baseSet(ea,na,ra,oa){if(!isObject$8(ea))return ea;na=castPath(na,ea);for(var aa=-1,sa=na.length,la=sa-1,ca=ea;ca!=null&&++aa<sa;){var ua=toKey(na[aa]),da=ra;if(ua==="__proto__"||ua==="constructor"||ua==="prototype")return ea;if(aa!=la){var pa=ca[ua];da=oa?oa(pa,ua,ca):void 0,da===void 0&&(da=isObject$8(pa)?pa:isIndex(na[aa+1])?[]:{})}assignValue(ca,ua,da),ca=ca[ua]}return ea}function basePickBy(ea,na,ra){for(var oa=-1,aa=na.length,sa={};++oa<aa;){var la=na[oa],ca=baseGet(ea,la);ra(ca,la)&&baseSet(sa,castPath(la,ea),ca)}return sa}function baseSortBy(ea,na){var ra=ea.length;for(ea.sort(na);ra--;)ea[ra]=ea[ra].value;return ea}function compareAscending(ea,na){if(ea!==na){var ra=ea!==void 0,oa=ea===null,aa=ea===ea,sa=isSymbol$3(ea),la=na!==void 0,ca=na===null,ua=na===na,da=isSymbol$3(na);if(!ca&&!da&&!sa&&ea>na||sa&&la&&ua&&!ca&&!da||oa&&la&&ua||!ra&&ua||!aa)return 1;if(!oa&&!sa&&!da&&ea<na||da&&ra&&aa&&!oa&&!sa||ca&&ra&&aa||!la&&aa||!ua)return-1}return 0}function compareMultiple(ea,na,ra){for(var oa=-1,aa=ea.criteria,sa=na.criteria,la=aa.length,ca=ra.length;++oa<la;){var ua=compareAscending(aa[oa],sa[oa]);if(ua){if(oa>=ca)return ua;var da=ra[oa];return ua*(da=="desc"?-1:1)}}return ea.index-na.index}function baseOrderBy(ea,na,ra){na.length?na=arrayMap(na,function(sa){return isArray$3(sa)?function(la){return baseGet(la,sa.length===1?sa[0]:sa)}:sa}):na=[identity];var oa=-1;na=arrayMap(na,baseUnary(baseIteratee));var aa=baseMap(ea,function(sa,la,ca){var ua=arrayMap(na,function(da){return da(sa)});return{criteria:ua,index:++oa,value:sa}});return baseSortBy(aa,function(sa,la){return compareMultiple(sa,la,ra)})}function basePick(ea,na){return basePickBy(ea,na,function(ra,oa){return hasIn(ea,oa)})}var pick=flatRest(function(ea,na){return ea==null?{}:basePick(ea,na)});function set$4(ea,na,ra){return ea==null?ea:baseSet(ea,na,ra)}function setWith(ea,na,ra,oa){return oa=typeof oa=="function"?oa:void 0,ea==null?ea:baseSet(ea,na,ra,oa)}var sortBy=baseRest(function(ea,na){if(ea==null)return[];var ra=na.length;return ra>1&&isIterateeCall(ea,na[0],na[1])?na=[]:ra>2&&isIterateeCall(na[0],na[1],na[2])&&(na=[na[0]]),baseOrderBy(ea,baseFlatten(na),[])}),FUNC_ERROR_TEXT="Expected a function";function throttle$3(ea,na,ra){var oa=!0,aa=!0;if(typeof ea!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$8(ra)&&(oa="leading"in ra?!!ra.leading:oa,aa="trailing"in ra?!!ra.trailing:aa),debounce(ea,na,{leading:oa,maxWait:na,trailing:aa})}var INFINITY=1/0,createSet=Set$1&&1/setToArray(new Set$1([,-0]))[1]==INFINITY?function(ea){return new Set$1(ea)}:noop$3,LARGE_ARRAY_SIZE=200;function baseUniq(ea,na,ra){var oa=-1,aa=arrayIncludes$1,sa=ea.length,la=!0,ca=[],ua=ca;if(sa>=LARGE_ARRAY_SIZE){var da=na?null:createSet(ea);if(da)return setToArray(da);la=!1,aa=cacheHas,ua=new SetCache}else ua=na?[]:ca;e:for(;++oa<sa;){var pa=ea[oa],ha=na?na(pa):pa;if(pa=pa!==0?pa:0,la&&ha===ha){for(var ga=ua.length;ga--;)if(ua[ga]===ha)continue e;na&&ua.push(ha),ca.push(pa)}else aa(ua,ha,ra)||(ua!==ca&&ua.push(ha),ca.push(pa))}return ca}function uniq(ea){return ea&&ea.length?baseUniq(ea):[]}function uniqBy(ea,na){return ea&&ea.length?baseUniq(ea,baseIteratee(na)):[]}var without$2=baseRest(function(ea,na){return isArrayLikeObject(ea)?baseDifference(ea,na):[]});const namePattern=/(([a-zA-z]+\s+)+)(\d)/i,nameCountByType={},getMaxGeneratedType=ea=>nameCountByType[ea]||0,increaseMaxTypeCount=ea=>(nameCountByType[ea]=getMaxGeneratedType(ea)+1,nameCountByType[ea]),generateName=(ea,na)=>`${na.charAt(0).toUpperCase()+na.slice(1)} ${getMaxGeneratedType(ea)}`,fillTypeCounts=ea=>{ea.forEach(({name:na,type:ra})=>{const oa=na.match(namePattern);if(oa?.length){const aa=parseInt(oa.slice(-1)[0],10);nameCountByType[ra]=nameCountByType[ra]||0,nameCountByType[ra]=aa>nameCountByType[ra]?aa:nameCountByType[ra]}})};let lastId;const setId=ea=>{lastId=ea},isElement=ea=>ea.includes("element"),isSection=ea=>ea.includes("section"),isForeground=ea=>ea==="foreground",getId=(ea,na)=>typeof ea=="string"?ea:`${na}-${ea}`,generateId=ea=>(lastId=(lastId||0)+1,ea==="number"?lastId:getId(lastId,ea)),getLastIdNumber=()=>lastId,createDefaultTeaserSection=ea=>{setId(ea);const na=generateId("section");increaseMaxTypeCount("section");const ra=generateId("element"),oa=generateId("element"),aa=generateId("element"),sa=parseInt(na.split("-")[1],10),la=parseInt(ra.split("-")[1],10),ca=parseInt(oa.split("-")[1],10),ua=parseInt(aa.split("-")[1],10),da=Math.max(ea,sa,la,ca,ua),pa={[ra]:{section:na,parent:na,wrap:!0,locked:!1,visible:{default:!0},children:[],type:"shape",size:{default:{width:{value:100,unit:"%"},height:{value:100,unit:"%"}}},styles:{backgroundColor:{default:"#191919"},border:{default:{enable:!0,color:"#444",link:!0,top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"}}},corner:{default:{link:!0,topRight:{value:7,unit:"px"},topLeft:{value:7,unit:"px"},bottomRight:{value:7,unit:"px"},bottomLeft:{value:7,unit:"px"}}}},options:{},position:{default:{x:{value:0,unit:"px"},y:{value:0,unit:"px"},origin:"tl",autoOrigin:!0}},depth:1,id:ra,name:"Shape 1"},[oa]:{section:na,parent:na,wrap:!0,locked:!1,visible:{default:!0},type:"icon",size:{default:{width:{value:28,unit:"px"},height:{value:28,unit:"px"}}},options:{content:'<svg width="26" height="25" viewBox="0 0 26 25" style="fill:inherit !important;"><path d="M3 14V23C3 23.2652 3.10536 23.5196 3.29289 23.7071C3.48043 23.8946 3.73478 24 4 24H22C22.2652 24 22.5196 23.8946 22.7071 23.7071C22.8946 23.5196 23 23.2652 23 23V14M13 8V24M13 8C13 8 8.7625 7.99998 7.3375 6.58748C6.77391 6.02389 6.4573 5.25951 6.4573 4.46248C6.4573 3.66545 6.77391 2.90106 7.3375 2.33748C7.90108 1.77389 8.66547 1.45728 9.4625 1.45728C10.2595 1.45728 11.0239 1.77389 11.5875 2.33748C13 3.76248 13 8 13 8ZM13 8C13 8 17.2375 7.99998 18.6625 6.58748C19.2261 6.02389 19.5427 5.25951 19.5427 4.46248C19.5427 3.66545 19.2261 2.90106 18.6625 2.33748C18.0989 1.77389 17.3345 1.45728 16.5375 1.45728C15.7405 1.45728 14.9761 1.77389 14.4125 2.33748C13 3.76248 13 8 13 8ZM24 8H2C1.44772 8 1 8.44772 1 9V13C1 13.5523 1.44772 14 2 14H24C24.5523 14 25 13.5523 25 13V9C25 8.44772 24.5523 8 24 8Z" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>'},position:{default:{origin:"tl",autoOrigin:!0,x:{unit:"px",value:20},y:{unit:"px",value:14}}},depth:1,id:oa,name:"Icon 2",styles:{typography:{default:{color:"#FFF"}},transform:{default:{}}}},[aa]:{section:na,parent:na,wrap:!0,locked:!1,visible:{default:!0},children:[],type:"text",size:{default:{width:"auto",height:"auto"}},styles:{backgroundColor:{default:"transparent"},typography:{default:{font:"Open Sans",lineHeight:120,color:"#FFF",fontSize:19,fontVariant:"600"}},transform:{default:{}}},options:{content:"Don't Miss Out!",tag:"h2"},position:{default:{origin:"tl",autoOrigin:!0,x:{unit:"px",value:58},y:{unit:"px",value:17}}},depth:1,id:aa,name:"Text 1"}};return{section:{...emptySectionState,elements:[ra,oa,aa],id:na,name:generateName("section",i18next.t("Teaser")),type:"teaser",wrapperSize:{default:{width:{value:218,unit:"px"},height:{value:56,unit:"px"}}},background:{color:{default:"transparent"}}},elements:pa,sectionId:na,elementIds:[ra,oa,aa],lastId:da}},initialState$j=cloneDeep$1(commonDocumentInitialState),{section:teaserSection,elements:teaserElements,sectionId:teaserSectionId,lastId:newLastId}=createDefaultTeaserSection(initialState$j.lastId);initialState$j.lastId=newLastId;initialState$j.elements=teaserElements;initialState$j.options.navigation={swipe:{enable:!1}};initialState$j.sections={...initialState$j.sections,[teaserSectionId]:teaserSection};initialState$j.sectionsList=[...initialState$j.sectionsList,teaserSectionId];initialState$j.options.wrapperSize={default:{width:{value:800,unit:"px"},height:{value:600,unit:"px"}},tablet:{width:{value:600,unit:"px"},height:{value:500,unit:"px"}},mobile:{width:{value:360,unit:"px"},height:{value:450,unit:"px"}}};initialState$j.options.sectionLayout="boxed";initialState$j.options.documentTypeOptions={displayOptions:{backdropColor:"rgba(0,0,0,0.3)",backdrop:!0,backdropBlur:0,placement:"mc",closeByEsc:!0,clickOutsideClose:!0,escClose:!0,vSpace:{value:10,unit:"px"},hSpace:{value:10,unit:"px"}},teaser:{enabled:!1,placement:"bl",vSpace:{value:15,unit:"px"},hSpace:{value:15,unit:"px"}}};DocType.registerConfigs("popup",{labels:{section:i18next.t("step"),sections:i18next.t("steps"),document:i18next.t("popup")},websitePreview:!0,initialState:initialState$j});const initialState$i=cloneDeep$1(commonDocumentInitialState);initialState$i.options.navigation={swipe:{enable:!1},loop:!0};initialState$i.options.wrapperSize={default:{width:{value:1200,unit:"px"},height:{value:70,unit:"px"}},tablet:{width:{value:600,unit:"px"},height:{value:70,unit:"px"}},mobile:{width:{value:360,unit:"px"},height:{value:70,unit:"px"}}};initialState$i.options.sectionLayout="fullwidth";initialState$i.options.documentTypeOptions={displayOptions:{backdropColor:"rgba(0,0,0,0.3)",backdrop:!0,backdropBlur:0,placement:"top",clickOutsideClose:!1,escClose:!1,space:{value:0,unit:"px"}}};DocType.registerConfigs("banner-bar",{labels:{section:i18next.t("frame"),sections:i18next.t("frames"),document:i18next.t("notification bar")},websitePreview:!0,initialState:initialState$i});const initialState$h=cloneDeep$1(commonDocumentInitialState);initialState$h.options.navigation={loop:!0,swipe:{enable:!1}};initialState$h.options.wrapperSize={default:{width:{value:1200,unit:"px"},height:{value:700,unit:"px"}},tablet:{width:{value:600,unit:"px"},height:{value:500,unit:"px"}},mobile:{width:{value:360,unit:"px"},height:{value:350,unit:"px"}}};initialState$h.options.sectionLayout="fullwidth";const labels$5={section:i18next.t("slide"),sections:i18next.t("slides"),document:i18next.t("slider")};DocType.registerConfigs("hero-section",{websitePreview:!1,initialState:initialState$h,labels:labels$5});const getPaddingValue=ea=>({default:{top:{value:ea,unit:"px"},right:{value:ea,unit:"px"},bottom:{value:ea,unit:"px"},left:{value:ea,unit:"px"},link:!0}}),defaultPadding=getPaddingValue(0),defaultMargin=defaultPadding,getCornerValue=ea=>({default:{topLeft:{value:ea,unit:"px"},topRight:{value:ea,unit:"px"},bottomRight:{value:ea,unit:"px"},bottomLeft:{value:ea,unit:"px"},link:!0}}),defaultCorner=getCornerValue(0),defaultBorder={default:{enable:!1,color:"#000",style:"solid",top:{value:1,unit:"px"},bottom:{value:1,unit:"px"},left:{value:1,unit:"px"},right:{value:1,unit:"px"},link:!0}},defaultBoxShadow={default:{enable:!1,color:"#000",inset:!1,offsetX:10,offsetY:10,blur:25,spread:0}},getBorderValue=(ea,na,ra=!0)=>({default:{enable:ra,color:na,style:"solid",top:{value:ea,unit:"px"},bottom:{value:ea,unit:"px"},left:{value:ea,unit:"px"},right:{value:ea,unit:"px"},link:!0}}),defaultDocumentOptions={sectionLayout:"boxed",stretch:!0,wrapperSize:{},wrapperSideSpace:0,general:{backgroundColor:"transparent",keepAspect:!0,minHeight:{value:0,unit:"px"},maxHeight:{value:0,unit:"px"},fullscreenMargin:"auto",margin:defaultMargin.default,borderRadius:defaultCorner.default,boxShadow:defaultBoxShadow.default,border:defaultBorder.default,visible:{default:!0,tablet:!0,mobile:!0}},navigation:{loop:!1,slideshow:{enable:!1,duration:5,pauseOnLastSlide:!1,pauseOnHover:!0},autoScroll:{enable:!1,speed:50,pauseOnHover:!0,direction:"normal"},swipe:{enable:!0,direction:"auto",mouseSwipe:!0,touchSwipe:!0},keyboardNavigation:!1,mouseWheel:!1,rtl:!1},navigator:{slickType:"slide",slickerSpeed:.2,easing:"easeOutExpo",duration:1},loading:{lazyLoad:{type:"sequential",nearbyNum:1},loadingSymbol:"spinner"},sectionTransition:{type:"basic",options:{}},callbacks:[]},defaultOptions$4=cloneDeep$1(defaultDocumentOptions);defaultOptions$4.documentTypeOptions??={};defaultOptions$4.documentTypeOptions.carousel={columns:{default:3,tablet:2,mobile:1},mode:"flex",alignItems:"center",itemsContentGrowth:"grow-space",styles:{section:{boxShadow:defaultBoxShadow,borderRadius:defaultCorner,border:defaultBorder}}};const initialState$g=cloneDeep$1(commonDocumentInitialState);initialState$g.options.navigation={...initialState$g.options.navigation,loop:!0};initialState$g.options.wrapperSize={default:{width:{value:400,unit:"px"},height:{value:450,unit:"px"}},tablet:{width:{value:400,unit:"px"},height:{value:450,unit:"px"}},mobile:{width:{value:360,unit:"px"},height:{value:450,unit:"px"}}};initialState$g.options.sectionLayout="fullwidth";initialState$g.options.documentTypeOptions??={};initialState$g.options.documentTypeOptions.carousel={columns:{default:3,tablet:2,mobile:1},mode:"flex",alignItems:"center",itemsContentGrowth:"grow-space"};const labels$4={section:i18next.t("item"),sections:i18next.t("items"),document:i18next.t("carousel")};DocType.registerConfigs("carousel",{websitePreview:!1,initialState:initialState$g,defaultDocumentOptions:defaultOptions$4,labels:labels$4});const initialState$f=cloneDeep$1(commonDocumentInitialState);initialState$f.sections["section-1"].dataSource={type:"wooProducts",params:{from:"all",taxonomies:{},inStockOnly:!0,regularProducts:!0,downloadableProducts:!0,virtualProducts:!0,filterByPrice:!1,endPrice:0,startPrice:0,endSalePrice:0,startSalePrice:0,excludeNonThumbnail:!0,perpage:5,excerptLength:255,excludedIds:[],includedIds:[],offset:0,orderBy:"date",order:"DESC"}};const labels$3={section:i18next.t("slide"),sections:i18next.t("slides"),document:i18next.t("slider")},configs={labels:labels$3,websitePreview:!1,initialState:initialState$f,configEditorState:ea=>({...ea,activeSectionOptionsTab:"dataSource"})};DocType.registerConfigs("woo-slider",configs);const initialState$e=cloneDeep$1(commonDocumentInitialState);initialState$e.sections["section-1"].dataSource={type:"wpPost",params:{excludedIds:[],includedIds:[],excludeNonThumbnail:!0,perpage:5,excerptLength:255,offset:0,linkSlides:!1,orderBy:"date",order:"DESC",imageSource:"featured",taxonomies:{}}};const labels$2={section:i18next.t("slide"),sections:i18next.t("slides"),document:i18next.t("slider")};DocType.registerConfigs("post-slider",{websitePreview:!1,initialState:initialState$e,labels:labels$2,configEditorState:ea=>({...ea,activeSectionOptionsTab:"dataSource"})});const initialState$d=cloneDeep$1(commonDocumentInitialState);initialState$d.options.navigation.swipe.enable=!1;const labels$1={section:i18next.t("step"),sections:i18next.t("steps"),document:i18next.t("survey")};DocType.registerConfigs("survey",{websitePreview:!1,initialState:initialState$d,labels:labels$1,configEditorState:ea=>({...ea,assetPanelActiveTab:"survey"})});var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(ea){var na,ra,oa,aa;if(typeof performance=="object"&&typeof performance.now=="function"){var sa=performance;ea.unstable_now=function(){return sa.now()}}else{var la=Date,ca=la.now();ea.unstable_now=function(){return la.now()-ca}}if(typeof window>"u"||typeof MessageChannel!="function"){var ua=null,da=null,pa=function(){if(ua!==null)try{var Ua=ea.unstable_now();ua(!0,Ua),ua=null}catch(Qa){throw setTimeout(pa,0),Qa}};na=function(Ua){ua!==null?setTimeout(na,0,Ua):(ua=Ua,setTimeout(pa,0))},ra=function(Ua,Qa){da=setTimeout(Ua,Qa)},oa=function(){clearTimeout(da)},ea.unstable_shouldYield=function(){return!1},aa=ea.unstable_forceFrameRate=function(){}}else{var ha=window.setTimeout,ga=window.clearTimeout;if(typeof console<"u"){var fa=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof fa!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var ma=!1,va=null,xa=-1,ya=5,Aa=0;ea.unstable_shouldYield=function(){return ea.unstable_now()>=Aa},aa=function(){},ea.unstable_forceFrameRate=function(Ua){0>Ua||125<Ua?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ya=0<Ua?Math.floor(1e3/Ua):5};var Ca=new MessageChannel,Sa=Ca.port2;Ca.port1.onmessage=function(){if(va!==null){var Ua=ea.unstable_now();Aa=Ua+ya;try{va(!0,Ua)?Sa.postMessage(null):(ma=!1,va=null)}catch(Qa){throw Sa.postMessage(null),Qa}}else ma=!1},na=function(Ua){va=Ua,ma||(ma=!0,Sa.postMessage(null))},ra=function(Ua,Qa){xa=ha(function(){Ua(ea.unstable_now())},Qa)},oa=function(){ga(xa),xa=-1}}function wa(Ua,Qa){var Wa=Ua.length;Ua.push(Qa);e:for(;;){var Za=Wa-1>>>1,Xa=Ua[Za];if(Xa!==void 0&&0<$a(Xa,Qa))Ua[Za]=Qa,Ua[Wa]=Xa,Wa=Za;else break e}}function ba(Ua){return Ua=Ua[0],Ua===void 0?null:Ua}function Ea(Ua){var Qa=Ua[0];if(Qa!==void 0){var Wa=Ua.pop();if(Wa!==Qa){Ua[0]=Wa;e:for(var Za=0,Xa=Ua.length;Za<Xa;){var tl=2*(Za+1)-1,il=Ua[tl],Ja=tl+1,nl=Ua[Ja];if(il!==void 0&&0>$a(il,Wa))nl!==void 0&&0>$a(nl,il)?(Ua[Za]=nl,Ua[Ja]=Wa,Za=Ja):(Ua[Za]=il,Ua[tl]=Wa,Za=tl);else if(nl!==void 0&&0>$a(nl,Wa))Ua[Za]=nl,Ua[Ja]=Wa,Za=Ja;else break e}}return Qa}return null}function $a(Ua,Qa){var Wa=Ua.sortIndex-Qa.sortIndex;return Wa!==0?Wa:Ua.id-Qa.id}var Ma=[],Ia=[],Oa=1,Da=null,Ta=3,_a=!1,La=!1,Na=!1;function za(Ua){for(var Qa=ba(Ia);Qa!==null;){if(Qa.callback===null)Ea(Ia);else if(Qa.startTime<=Ua)Ea(Ia),Qa.sortIndex=Qa.expirationTime,wa(Ma,Qa);else break;Qa=ba(Ia)}}function Fa(Ua){if(Na=!1,za(Ua),!La)if(ba(Ma)!==null)La=!0,na(Ha);else{var Qa=ba(Ia);Qa!==null&&ra(Fa,Qa.startTime-Ua)}}function Ha(Ua,Qa){La=!1,Na&&(Na=!1,oa()),_a=!0;var Wa=Ta;try{for(za(Qa),Da=ba(Ma);Da!==null&&(!(Da.expirationTime>Qa)||Ua&&!ea.unstable_shouldYield());){var Za=Da.callback;if(typeof Za=="function"){Da.callback=null,Ta=Da.priorityLevel;var Xa=Za(Da.expirationTime<=Qa);Qa=ea.unstable_now(),typeof Xa=="function"?Da.callback=Xa:Da===ba(Ma)&&Ea(Ma),za(Qa)}else Ea(Ma);Da=ba(Ma)}if(Da!==null)var tl=!0;else{var il=ba(Ia);il!==null&&ra(Fa,il.startTime-Qa),tl=!1}return tl}finally{Da=null,Ta=Wa,_a=!1}}var Va=aa;ea.unstable_IdlePriority=5,ea.unstable_ImmediatePriority=1,ea.unstable_LowPriority=4,ea.unstable_NormalPriority=3,ea.unstable_Profiling=null,ea.unstable_UserBlockingPriority=2,ea.unstable_cancelCallback=function(Ua){Ua.callback=null},ea.unstable_continueExecution=function(){La||_a||(La=!0,na(Ha))},ea.unstable_getCurrentPriorityLevel=function(){return Ta},ea.unstable_getFirstCallbackNode=function(){return ba(Ma)},ea.unstable_next=function(Ua){switch(Ta){case 1:case 2:case 3:var Qa=3;break;default:Qa=Ta}var Wa=Ta;Ta=Qa;try{return Ua()}finally{Ta=Wa}},ea.unstable_pauseExecution=function(){},ea.unstable_requestPaint=Va,ea.unstable_runWithPriority=function(Ua,Qa){switch(Ua){case 1:case 2:case 3:case 4:case 5:break;default:Ua=3}var Wa=Ta;Ta=Ua;try{return Qa()}finally{Ta=Wa}},ea.unstable_scheduleCallback=function(Ua,Qa,Wa){var Za=ea.unstable_now();switch(typeof Wa=="object"&&Wa!==null?(Wa=Wa.delay,Wa=typeof Wa=="number"&&0<Wa?Za+Wa:Za):Wa=Za,Ua){case 1:var Xa=-1;break;case 2:Xa=250;break;case 5:Xa=1073741823;break;case 4:Xa=1e4;break;default:Xa=5e3}return Xa=Wa+Xa,Ua={id:Oa++,callback:Qa,priorityLevel:Ua,startTime:Wa,expirationTime:Xa,sortIndex:-1},Wa>Za?(Ua.sortIndex=Wa,wa(Ia,Ua),ba(Ma)===null&&Ua===ba(Ia)&&(Na?oa():Na=!0,ra(Fa,Wa-Za))):(Ua.sortIndex=Xa,wa(Ma,Ua),La||_a||(La=!0,na(Ha))),Ua},ea.unstable_wrapCallback=function(Ua){var Qa=Ta;return function(){var Wa=Ta;Ta=Qa;try{return Ua.apply(this,arguments)}finally{Ta=Wa}}}}(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var ea=requireReact(),na=requireObjectAssign(),ra=requireScheduler();function oa(Ra){for(var ka="https://reactjs.org/docs/error-decoder.html?invariant="+Ra,Ba=1;Ba<arguments.length;Ba++)ka+="&args[]="+encodeURIComponent(arguments[Ba]);return"Minified React error #"+Ra+"; visit "+ka+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ea)throw Error(oa(227));var aa=new Set,sa={};function la(Ra,ka){ca(Ra,ka),ca(Ra+"Capture",ka)}function ca(Ra,ka){for(sa[Ra]=ka,Ra=0;Ra<ka.length;Ra++)aa.add(ka[Ra])}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),da=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pa=Object.prototype.hasOwnProperty,ha={},ga={};function fa(Ra){return pa.call(ga,Ra)?!0:pa.call(ha,Ra)?!1:da.test(Ra)?ga[Ra]=!0:(ha[Ra]=!0,!1)}function ma(Ra,ka,Ba,qa){if(Ba!==null&&Ba.type===0)return!1;switch(typeof ka){case"function":case"symbol":return!0;case"boolean":return qa?!1:Ba!==null?!Ba.acceptsBooleans:(Ra=Ra.toLowerCase().slice(0,5),Ra!=="data-"&&Ra!=="aria-");default:return!1}}function va(Ra,ka,Ba,qa){if(ka===null||typeof ka>"u"||ma(Ra,ka,Ba,qa))return!0;if(qa)return!1;if(Ba!==null)switch(Ba.type){case 3:return!ka;case 4:return ka===!1;case 5:return isNaN(ka);case 6:return isNaN(ka)||1>ka}return!1}function xa(Ra,ka,Ba,qa,Ka,ol,ll){this.acceptsBooleans=ka===2||ka===3||ka===4,this.attributeName=qa,this.attributeNamespace=Ka,this.mustUseProperty=Ba,this.propertyName=Ra,this.type=ka,this.sanitizeURL=ol,this.removeEmptyString=ll}var ya={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(Ra){ya[Ra]=new xa(Ra,0,!1,Ra,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(Ra){var ka=Ra[0];ya[ka]=new xa(ka,1,!1,Ra[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(Ra){ya[Ra]=new xa(Ra,2,!1,Ra.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(Ra){ya[Ra]=new xa(Ra,2,!1,Ra,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(Ra){ya[Ra]=new xa(Ra,3,!1,Ra.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(Ra){ya[Ra]=new xa(Ra,3,!0,Ra,null,!1,!1)}),["capture","download"].forEach(function(Ra){ya[Ra]=new xa(Ra,4,!1,Ra,null,!1,!1)}),["cols","rows","size","span"].forEach(function(Ra){ya[Ra]=new xa(Ra,6,!1,Ra,null,!1,!1)}),["rowSpan","start"].forEach(function(Ra){ya[Ra]=new xa(Ra,5,!1,Ra.toLowerCase(),null,!1,!1)});var Aa=/[\-:]([a-z])/g;function Ca(Ra){return Ra[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(Ra){var ka=Ra.replace(Aa,Ca);ya[ka]=new xa(ka,1,!1,Ra,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(Ra){var ka=Ra.replace(Aa,Ca);ya[ka]=new xa(ka,1,!1,Ra,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(Ra){var ka=Ra.replace(Aa,Ca);ya[ka]=new xa(ka,1,!1,Ra,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(Ra){ya[Ra]=new xa(Ra,1,!1,Ra.toLowerCase(),null,!1,!1)}),ya.xlinkHref=new xa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(Ra){ya[Ra]=new xa(Ra,1,!1,Ra.toLowerCase(),null,!0,!0)});function Sa(Ra,ka,Ba,qa){var Ka=ya.hasOwnProperty(ka)?ya[ka]:null,ol=Ka!==null?Ka.type===0:qa?!1:!(!(2<ka.length)||ka[0]!=="o"&&ka[0]!=="O"||ka[1]!=="n"&&ka[1]!=="N");ol||(va(ka,Ba,Ka,qa)&&(Ba=null),qa||Ka===null?fa(ka)&&(Ba===null?Ra.removeAttribute(ka):Ra.setAttribute(ka,""+Ba)):Ka.mustUseProperty?Ra[Ka.propertyName]=Ba===null?Ka.type===3?!1:"":Ba:(ka=Ka.attributeName,qa=Ka.attributeNamespace,Ba===null?Ra.removeAttribute(ka):(Ka=Ka.type,Ba=Ka===3||Ka===4&&Ba===!0?"":""+Ba,qa?Ra.setAttributeNS(qa,ka,Ba):Ra.setAttribute(ka,Ba))))}var wa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ba=60103,Ea=60106,$a=60107,Ma=60108,Ia=60114,Oa=60109,Da=60110,Ta=60112,_a=60113,La=60120,Na=60115,za=60116,Fa=60121,Ha=60128,Va=60129,Ua=60130,Qa=60131;if(typeof Symbol=="function"&&Symbol.for){var Wa=Symbol.for;ba=Wa("react.element"),Ea=Wa("react.portal"),$a=Wa("react.fragment"),Ma=Wa("react.strict_mode"),Ia=Wa("react.profiler"),Oa=Wa("react.provider"),Da=Wa("react.context"),Ta=Wa("react.forward_ref"),_a=Wa("react.suspense"),La=Wa("react.suspense_list"),Na=Wa("react.memo"),za=Wa("react.lazy"),Fa=Wa("react.block"),Wa("react.scope"),Ha=Wa("react.opaque.id"),Va=Wa("react.debug_trace_mode"),Ua=Wa("react.offscreen"),Qa=Wa("react.legacy_hidden")}var Za=typeof Symbol=="function"&&Symbol.iterator;function Xa(Ra){return Ra===null||typeof Ra!="object"?null:(Ra=Za&&Ra[Za]||Ra["@@iterator"],typeof Ra=="function"?Ra:null)}var tl;function il(Ra){if(tl===void 0)try{throw Error()}catch(Ba){var ka=Ba.stack.trim().match(/\n( *(at )?)/);tl=ka&&ka[1]||""}return`
`+tl+Ra}var Ja=!1;function nl(Ra,ka){if(!Ra||Ja)return"";Ja=!0;var Ba=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(ka)if(ka=function(){throw Error()},Object.defineProperty(ka.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ka,[])}catch(bl){var qa=bl}Reflect.construct(Ra,[],ka)}else{try{ka.call()}catch(bl){qa=bl}Ra.call(ka.prototype)}else{try{throw Error()}catch(bl){qa=bl}Ra()}}catch(bl){if(bl&&qa&&typeof bl.stack=="string"){for(var Ka=bl.stack.split(`
`),ol=qa.stack.split(`
`),ll=Ka.length-1,hl=ol.length-1;1<=ll&&0<=hl&&Ka[ll]!==ol[hl];)hl--;for(;1<=ll&&0<=hl;ll--,hl--)if(Ka[ll]!==ol[hl]){if(ll!==1||hl!==1)do if(ll--,hl--,0>hl||Ka[ll]!==ol[hl])return`
`+Ka[ll].replace(" at new "," at ");while(1<=ll&&0<=hl);break}}}finally{Ja=!1,Error.prepareStackTrace=Ba}return(Ra=Ra?Ra.displayName||Ra.name:"")?il(Ra):""}function Ya(Ra){switch(Ra.tag){case 5:return il(Ra.type);case 16:return il("Lazy");case 13:return il("Suspense");case 19:return il("SuspenseList");case 0:case 2:case 15:return Ra=nl(Ra.type,!1),Ra;case 11:return Ra=nl(Ra.type.render,!1),Ra;case 22:return Ra=nl(Ra.type._render,!1),Ra;case 1:return Ra=nl(Ra.type,!0),Ra;default:return""}}function rl(Ra){if(Ra==null)return null;if(typeof Ra=="function")return Ra.displayName||Ra.name||null;if(typeof Ra=="string")return Ra;switch(Ra){case $a:return"Fragment";case Ea:return"Portal";case Ia:return"Profiler";case Ma:return"StrictMode";case _a:return"Suspense";case La:return"SuspenseList"}if(typeof Ra=="object")switch(Ra.$$typeof){case Da:return(Ra.displayName||"Context")+".Consumer";case Oa:return(Ra._context.displayName||"Context")+".Provider";case Ta:var ka=Ra.render;return ka=ka.displayName||ka.name||"",Ra.displayName||(ka!==""?"ForwardRef("+ka+")":"ForwardRef");case Na:return rl(Ra.type);case Fa:return rl(Ra._render);case za:ka=Ra._payload,Ra=Ra._init;try{return rl(Ra(ka))}catch{}}return null}function sl(Ra){switch(typeof Ra){case"boolean":case"number":case"object":case"string":case"undefined":return Ra;default:return""}}function dl(Ra){var ka=Ra.type;return(Ra=Ra.nodeName)&&Ra.toLowerCase()==="input"&&(ka==="checkbox"||ka==="radio")}function pl(Ra){var ka=dl(Ra)?"checked":"value",Ba=Object.getOwnPropertyDescriptor(Ra.constructor.prototype,ka),qa=""+Ra[ka];if(!Ra.hasOwnProperty(ka)&&typeof Ba<"u"&&typeof Ba.get=="function"&&typeof Ba.set=="function"){var Ka=Ba.get,ol=Ba.set;return Object.defineProperty(Ra,ka,{configurable:!0,get:function(){return Ka.call(this)},set:function(ll){qa=""+ll,ol.call(this,ll)}}),Object.defineProperty(Ra,ka,{enumerable:Ba.enumerable}),{getValue:function(){return qa},setValue:function(ll){qa=""+ll},stopTracking:function(){Ra._valueTracker=null,delete Ra[ka]}}}}function ml(Ra){Ra._valueTracker||(Ra._valueTracker=pl(Ra))}function Rl(Ra){if(!Ra)return!1;var ka=Ra._valueTracker;if(!ka)return!0;var Ba=ka.getValue(),qa="";return Ra&&(qa=dl(Ra)?Ra.checked?"true":"false":Ra.value),Ra=qa,Ra!==Ba?(ka.setValue(Ra),!0):!1}function Tl(Ra){if(Ra=Ra||(typeof document<"u"?document:void 0),typeof Ra>"u")return null;try{return Ra.activeElement||Ra.body}catch{return Ra.body}}function Il(Ra,ka){var Ba=ka.checked;return na({},ka,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Ba??Ra._wrapperState.initialChecked})}function Ol(Ra,ka){var Ba=ka.defaultValue==null?"":ka.defaultValue,qa=ka.checked!=null?ka.checked:ka.defaultChecked;Ba=sl(ka.value!=null?ka.value:Ba),Ra._wrapperState={initialChecked:qa,initialValue:Ba,controlled:ka.type==="checkbox"||ka.type==="radio"?ka.checked!=null:ka.value!=null}}function Fl(Ra,ka){ka=ka.checked,ka!=null&&Sa(Ra,"checked",ka,!1)}function Vl(Ra,ka){Fl(Ra,ka);var Ba=sl(ka.value),qa=ka.type;if(Ba!=null)qa==="number"?(Ba===0&&Ra.value===""||Ra.value!=Ba)&&(Ra.value=""+Ba):Ra.value!==""+Ba&&(Ra.value=""+Ba);else if(qa==="submit"||qa==="reset"){Ra.removeAttribute("value");return}ka.hasOwnProperty("value")?vl(Ra,ka.type,Ba):ka.hasOwnProperty("defaultValue")&&vl(Ra,ka.type,sl(ka.defaultValue)),ka.checked==null&&ka.defaultChecked!=null&&(Ra.defaultChecked=!!ka.defaultChecked)}function Wl(Ra,ka,Ba){if(ka.hasOwnProperty("value")||ka.hasOwnProperty("defaultValue")){var qa=ka.type;if(!(qa!=="submit"&&qa!=="reset"||ka.value!==void 0&&ka.value!==null))return;ka=""+Ra._wrapperState.initialValue,Ba||ka===Ra.value||(Ra.value=ka),Ra.defaultValue=ka}Ba=Ra.name,Ba!==""&&(Ra.name=""),Ra.defaultChecked=!!Ra._wrapperState.initialChecked,Ba!==""&&(Ra.name=Ba)}function vl(Ra,ka,Ba){(ka!=="number"||Tl(Ra.ownerDocument)!==Ra)&&(Ba==null?Ra.defaultValue=""+Ra._wrapperState.initialValue:Ra.defaultValue!==""+Ba&&(Ra.defaultValue=""+Ba))}function kl(Ra){var ka="";return ea.Children.forEach(Ra,function(Ba){Ba!=null&&(ka+=Ba)}),ka}function zl(Ra,ka){return Ra=na({children:void 0},ka),(ka=kl(ka.children))&&(Ra.children=ka),Ra}function Al(Ra,ka,Ba,qa){if(Ra=Ra.options,ka){ka={};for(var Ka=0;Ka<Ba.length;Ka++)ka["$"+Ba[Ka]]=!0;for(Ba=0;Ba<Ra.length;Ba++)Ka=ka.hasOwnProperty("$"+Ra[Ba].value),Ra[Ba].selected!==Ka&&(Ra[Ba].selected=Ka),Ka&&qa&&(Ra[Ba].defaultSelected=!0)}else{for(Ba=""+sl(Ba),ka=null,Ka=0;Ka<Ra.length;Ka++){if(Ra[Ka].value===Ba){Ra[Ka].selected=!0,qa&&(Ra[Ka].defaultSelected=!0);return}ka!==null||Ra[Ka].disabled||(ka=Ra[Ka])}ka!==null&&(ka.selected=!0)}}function gl(Ra,ka){if(ka.dangerouslySetInnerHTML!=null)throw Error(oa(91));return na({},ka,{value:void 0,defaultValue:void 0,children:""+Ra._wrapperState.initialValue})}function xl(Ra,ka){var Ba=ka.value;if(Ba==null){if(Ba=ka.children,ka=ka.defaultValue,Ba!=null){if(ka!=null)throw Error(oa(92));if(Array.isArray(Ba)){if(!(1>=Ba.length))throw Error(oa(93));Ba=Ba[0]}ka=Ba}ka==null&&(ka=""),Ba=ka}Ra._wrapperState={initialValue:sl(Ba)}}function Sl(Ra,ka){var Ba=sl(ka.value),qa=sl(ka.defaultValue);Ba!=null&&(Ba=""+Ba,Ba!==Ra.value&&(Ra.value=Ba),ka.defaultValue==null&&Ra.defaultValue!==Ba&&(Ra.defaultValue=Ba)),qa!=null&&(Ra.defaultValue=""+qa)}function $l(Ra){var ka=Ra.textContent;ka===Ra._wrapperState.initialValue&&ka!==""&&ka!==null&&(Ra.value=ka)}var Bl={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ul(Ra){switch(Ra){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ec(Ra,ka){return Ra==null||Ra==="http://www.w3.org/1999/xhtml"?Ul(ka):Ra==="http://www.w3.org/2000/svg"&&ka==="foreignObject"?"http://www.w3.org/1999/xhtml":Ra}var Kl,rc=function(Ra){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(ka,Ba,qa,Ka){MSApp.execUnsafeLocalFunction(function(){return Ra(ka,Ba,qa,Ka)})}:Ra}(function(Ra,ka){if(Ra.namespaceURI!==Bl.svg||"innerHTML"in Ra)Ra.innerHTML=ka;else{for(Kl=Kl||document.createElement("div"),Kl.innerHTML="<svg>"+ka.valueOf().toString()+"</svg>",ka=Kl.firstChild;Ra.firstChild;)Ra.removeChild(Ra.firstChild);for(;ka.firstChild;)Ra.appendChild(ka.firstChild)}});function wl(Ra,ka){if(ka){var Ba=Ra.firstChild;if(Ba&&Ba===Ra.lastChild&&Ba.nodeType===3){Ba.nodeValue=ka;return}}Ra.textContent=ka}var Ll={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ic=["Webkit","ms","Moz","O"];Object.keys(Ll).forEach(function(Ra){ic.forEach(function(ka){ka=ka+Ra.charAt(0).toUpperCase()+Ra.substring(1),Ll[ka]=Ll[Ra]})});function Yl(Ra,ka,Ba){return ka==null||typeof ka=="boolean"||ka===""?"":Ba||typeof ka!="number"||ka===0||Ll.hasOwnProperty(Ra)&&Ll[Ra]?(""+ka).trim():ka+"px"}function gc(Ra,ka){Ra=Ra.style;for(var Ba in ka)if(ka.hasOwnProperty(Ba)){var qa=Ba.indexOf("--")===0,Ka=Yl(Ba,ka[Ba],qa);Ba==="float"&&(Ba="cssFloat"),qa?Ra.setProperty(Ba,Ka):Ra[Ba]=Ka}}var Rc=na({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ic(Ra,ka){if(ka){if(Rc[Ra]&&(ka.children!=null||ka.dangerouslySetInnerHTML!=null))throw Error(oa(137,Ra));if(ka.dangerouslySetInnerHTML!=null){if(ka.children!=null)throw Error(oa(60));if(!(typeof ka.dangerouslySetInnerHTML=="object"&&"__html"in ka.dangerouslySetInnerHTML))throw Error(oa(61))}if(ka.style!=null&&typeof ka.style!="object")throw Error(oa(62))}}function bc(Ra,ka){if(Ra.indexOf("-")===-1)return typeof ka.is=="string";switch(Ra){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function kc(Ra){return Ra=Ra.target||Ra.srcElement||window,Ra.correspondingUseElement&&(Ra=Ra.correspondingUseElement),Ra.nodeType===3?Ra.parentNode:Ra}var Kc=null,Tc=null,ac=null;function sc(Ra){if(Ra=zp(Ra)){if(typeof Kc!="function")throw Error(oa(280));var ka=Ra.stateNode;ka&&(ka=E0(ka),Kc(Ra.stateNode,Ra.type,ka))}}function dc(Ra){Tc?ac?ac.push(Ra):ac=[Ra]:Tc=Ra}function Pc(){if(Tc){var Ra=Tc,ka=ac;if(ac=Tc=null,sc(Ra),ka)for(Ra=0;Ra<ka.length;Ra++)sc(ka[Ra])}}function qc(Ra,ka){return Ra(ka)}function uc(Ra,ka,Ba,qa,Ka){return Ra(ka,Ba,qa,Ka)}function lc(){}var hc=qc,pc=!1,xc=!1;function Gc(){(Tc!==null||ac!==null)&&(lc(),Pc())}function Lu(Ra,ka,Ba){if(xc)return Ra(ka,Ba);xc=!0;try{return hc(Ra,ka,Ba)}finally{xc=!1,Gc()}}function vu(Ra,ka){var Ba=Ra.stateNode;if(Ba===null)return null;var qa=E0(Ba);if(qa===null)return null;Ba=qa[ka];e:switch(ka){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(qa=!qa.disabled)||(Ra=Ra.type,qa=!(Ra==="button"||Ra==="input"||Ra==="select"||Ra==="textarea")),Ra=!qa;break e;default:Ra=!1}if(Ra)return null;if(Ba&&typeof Ba!="function")throw Error(oa(231,ka,typeof Ba));return Ba}var ju=!1;if(ua)try{var su={};Object.defineProperty(su,"passive",{get:function(){ju=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{ju=!1}function uu(Ra,ka,Ba,qa,Ka,ol,ll,hl,bl){var Hl=Array.prototype.slice.call(arguments,3);try{ka.apply(Ba,Hl)}catch(vc){this.onError(vc)}}var Bu=!1,Qu=null,wd=!1,Tu=null,Ju={onError:function(Ra){Bu=!0,Qu=Ra}};function cc(Ra,ka,Ba,qa,Ka,ol,ll,hl,bl){Bu=!1,Qu=null,uu.apply(Ju,arguments)}function mc(Ra,ka,Ba,qa,Ka,ol,ll,hl,bl){if(cc.apply(this,arguments),Bu){if(Bu){var Hl=Qu;Bu=!1,Qu=null}else throw Error(oa(198));wd||(wd=!0,Tu=Hl)}}function Dc(Ra){var ka=Ra,Ba=Ra;if(Ra.alternate)for(;ka.return;)ka=ka.return;else{Ra=ka;do ka=Ra,(ka.flags&1026)!==0&&(Ba=ka.return),Ra=ka.return;while(Ra)}return ka.tag===3?Ba:null}function zc(Ra){if(Ra.tag===13){var ka=Ra.memoizedState;if(ka===null&&(Ra=Ra.alternate,Ra!==null&&(ka=Ra.memoizedState)),ka!==null)return ka.dehydrated}return null}function gu(Ra){if(Dc(Ra)!==Ra)throw Error(oa(188))}function qd(Ra){var ka=Ra.alternate;if(!ka){if(ka=Dc(Ra),ka===null)throw Error(oa(188));return ka!==Ra?null:Ra}for(var Ba=Ra,qa=ka;;){var Ka=Ba.return;if(Ka===null)break;var ol=Ka.alternate;if(ol===null){if(qa=Ka.return,qa!==null){Ba=qa;continue}break}if(Ka.child===ol.child){for(ol=Ka.child;ol;){if(ol===Ba)return gu(Ka),Ra;if(ol===qa)return gu(Ka),ka;ol=ol.sibling}throw Error(oa(188))}if(Ba.return!==qa.return)Ba=Ka,qa=ol;else{for(var ll=!1,hl=Ka.child;hl;){if(hl===Ba){ll=!0,Ba=Ka,qa=ol;break}if(hl===qa){ll=!0,qa=Ka,Ba=ol;break}hl=hl.sibling}if(!ll){for(hl=ol.child;hl;){if(hl===Ba){ll=!0,Ba=ol,qa=Ka;break}if(hl===qa){ll=!0,qa=ol,Ba=Ka;break}hl=hl.sibling}if(!ll)throw Error(oa(189))}}if(Ba.alternate!==qa)throw Error(oa(190))}if(Ba.tag!==3)throw Error(oa(188));return Ba.stateNode.current===Ba?Ra:ka}function rd(Ra){if(Ra=qd(Ra),!Ra)return null;for(var ka=Ra;;){if(ka.tag===5||ka.tag===6)return ka;if(ka.child)ka.child.return=ka,ka=ka.child;else{if(ka===Ra)break;for(;!ka.sibling;){if(!ka.return||ka.return===Ra)return null;ka=ka.return}ka.sibling.return=ka.return,ka=ka.sibling}}return null}function Zd(Ra,ka){for(var Ba=Ra.alternate;ka!==null;){if(ka===Ra||ka===Ba)return!0;ka=ka.return}return!1}var _d,Fu,Id,kd,tp=!1,ud=[],Pu=null,_u=null,Vu=null,Sd=new Map,Nu=new Map,Ld=[],Dd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Vc(Ra,ka,Ba,qa,Ka){return{blockedOn:Ra,domEventName:ka,eventSystemFlags:Ba|16,nativeEvent:Ka,targetContainers:[qa]}}function Mc(Ra,ka){switch(Ra){case"focusin":case"focusout":Pu=null;break;case"dragenter":case"dragleave":_u=null;break;case"mouseover":case"mouseout":Vu=null;break;case"pointerover":case"pointerout":Sd.delete(ka.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(ka.pointerId)}}function bu(Ra,ka,Ba,qa,Ka,ol){return Ra===null||Ra.nativeEvent!==ol?(Ra=Vc(ka,Ba,qa,Ka,ol),ka!==null&&(ka=zp(ka),ka!==null&&Fu(ka)),Ra):(Ra.eventSystemFlags|=qa,ka=Ra.targetContainers,Ka!==null&&ka.indexOf(Ka)===-1&&ka.push(Ka),Ra)}function Wu(Ra,ka,Ba,qa,Ka){switch(ka){case"focusin":return Pu=bu(Pu,Ra,ka,Ba,qa,Ka),!0;case"dragenter":return _u=bu(_u,Ra,ka,Ba,qa,Ka),!0;case"mouseover":return Vu=bu(Vu,Ra,ka,Ba,qa,Ka),!0;case"pointerover":var ol=Ka.pointerId;return Sd.set(ol,bu(Sd.get(ol)||null,Ra,ka,Ba,qa,Ka)),!0;case"gotpointercapture":return ol=Ka.pointerId,Nu.set(ol,bu(Nu.get(ol)||null,Ra,ka,Ba,qa,Ka)),!0}return!1}function hu(Ra){var ka=a0(Ra.target);if(ka!==null){var Ba=Dc(ka);if(Ba!==null){if(ka=Ba.tag,ka===13){if(ka=zc(Ba),ka!==null){Ra.blockedOn=ka,kd(Ra.lanePriority,function(){ra.unstable_runWithPriority(Ra.priority,function(){Id(Ba)})});return}}else if(ka===3&&Ba.stateNode.hydrate){Ra.blockedOn=Ba.tag===3?Ba.stateNode.containerInfo:null;return}}}Ra.blockedOn=null}function xu(Ra){if(Ra.blockedOn!==null)return!1;for(var ka=Ra.targetContainers;0<ka.length;){var Ba=jd(Ra.domEventName,Ra.eventSystemFlags,ka[0],Ra.nativeEvent);if(Ba!==null)return ka=zp(Ba),ka!==null&&Fu(ka),Ra.blockedOn=Ba,!1;ka.shift()}return!0}function dd(Ra,ka,Ba){xu(Ra)&&Ba.delete(ka)}function ed(){for(tp=!1;0<ud.length;){var Ra=ud[0];if(Ra.blockedOn!==null){Ra=zp(Ra.blockedOn),Ra!==null&&_d(Ra);break}for(var ka=Ra.targetContainers;0<ka.length;){var Ba=jd(Ra.domEventName,Ra.eventSystemFlags,ka[0],Ra.nativeEvent);if(Ba!==null){Ra.blockedOn=Ba;break}ka.shift()}Ra.blockedOn===null&&ud.shift()}Pu!==null&&xu(Pu)&&(Pu=null),_u!==null&&xu(_u)&&(_u=null),Vu!==null&&xu(Vu)&&(Vu=null),Sd.forEach(dd),Nu.forEach(dd)}function Iu(Ra,ka){Ra.blockedOn===ka&&(Ra.blockedOn=null,tp||(tp=!0,ra.unstable_scheduleCallback(ra.unstable_NormalPriority,ed)))}function ku(Ra){function ka(Ka){return Iu(Ka,Ra)}if(0<ud.length){Iu(ud[0],Ra);for(var Ba=1;Ba<ud.length;Ba++){var qa=ud[Ba];qa.blockedOn===Ra&&(qa.blockedOn=null)}}for(Pu!==null&&Iu(Pu,Ra),_u!==null&&Iu(_u,Ra),Vu!==null&&Iu(Vu,Ra),Sd.forEach(ka),Nu.forEach(ka),Ba=0;Ba<Ld.length;Ba++)qa=Ld[Ba],qa.blockedOn===Ra&&(qa.blockedOn=null);for(;0<Ld.length&&(Ba=Ld[0],Ba.blockedOn===null);)hu(Ba),Ba.blockedOn===null&&Ld.shift()}function pd(Ra,ka){var Ba={};return Ba[Ra.toLowerCase()]=ka.toLowerCase(),Ba["Webkit"+Ra]="webkit"+ka,Ba["Moz"+Ra]="moz"+ka,Ba}var od={animationend:pd("Animation","AnimationEnd"),animationiteration:pd("Animation","AnimationIteration"),animationstart:pd("Animation","AnimationStart"),transitionend:pd("Transition","TransitionEnd")},yu={},Xp={};ua&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete od.animationend.animation,delete od.animationiteration.animation,delete od.animationstart.animation),"TransitionEvent"in window||delete od.transitionend.transition);function ad(Ra){if(yu[Ra])return yu[Ra];if(!od[Ra])return Ra;var ka=od[Ra],Ba;for(Ba in ka)if(ka.hasOwnProperty(Ba)&&Ba in Xp)return yu[Ra]=ka[Ba];return Ra}var Mp=ad("animationend"),dp=ad("animationiteration"),np=ad("animationstart"),hd=ad("transitionend"),Sp=new Map,Ep=new Map,Op=["abort","abort",Mp,"animationEnd",dp,"animationIteration",np,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",hd,"transitionEnd","waiting","waiting"];function Jp(Ra,ka){for(var Ba=0;Ba<Ra.length;Ba+=2){var qa=Ra[Ba],Ka=Ra[Ba+1];Ka="on"+(Ka[0].toUpperCase()+Ka.slice(1)),Ep.set(qa,ka),Sp.set(qa,Ka),la(Ka,[qa])}}var e0=ra.unstable_now;e0();var oc=8;function Sc(Ra){if((1&Ra)!==0)return oc=15,1;if((2&Ra)!==0)return oc=14,2;if((4&Ra)!==0)return oc=13,4;var ka=24&Ra;return ka!==0?(oc=12,ka):(Ra&32)!==0?(oc=11,32):(ka=192&Ra,ka!==0?(oc=10,ka):(Ra&256)!==0?(oc=9,256):(ka=3584&Ra,ka!==0?(oc=8,ka):(Ra&4096)!==0?(oc=7,4096):(ka=4186112&Ra,ka!==0?(oc=6,ka):(ka=62914560&Ra,ka!==0?(oc=5,ka):Ra&67108864?(oc=4,67108864):(Ra&134217728)!==0?(oc=3,134217728):(ka=805306368&Ra,ka!==0?(oc=2,ka):(1073741824&Ra)!==0?(oc=1,1073741824):(oc=8,Ra))))))}function mu(Ra){switch(Ra){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function zu(Ra){switch(Ra){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(oa(358,Ra))}}function lu(Ra,ka){var Ba=Ra.pendingLanes;if(Ba===0)return oc=0;var qa=0,Ka=0,ol=Ra.expiredLanes,ll=Ra.suspendedLanes,hl=Ra.pingedLanes;if(ol!==0)qa=ol,Ka=oc=15;else if(ol=Ba&134217727,ol!==0){var bl=ol&~ll;bl!==0?(qa=Sc(bl),Ka=oc):(hl&=ol,hl!==0&&(qa=Sc(hl),Ka=oc))}else ol=Ba&~ll,ol!==0?(qa=Sc(ol),Ka=oc):hl!==0&&(qa=Sc(hl),Ka=oc);if(qa===0)return 0;if(qa=31-Pl(qa),qa=Ba&((0>qa?0:1<<qa)<<1)-1,ka!==0&&ka!==qa&&(ka&ll)===0){if(Sc(ka),Ka<=oc)return ka;oc=Ka}if(ka=Ra.entangledLanes,ka!==0)for(Ra=Ra.entanglements,ka&=qa;0<ka;)Ba=31-Pl(ka),Ka=1<<Ba,qa|=Ra[Ba],ka&=~Ka;return qa}function Lp(Ra){return Ra=Ra.pendingLanes&-1073741825,Ra!==0?Ra:Ra&1073741824?1073741824:0}function jp(Ra,ka){switch(Ra){case 15:return 1;case 14:return 2;case 12:return Ra=ru(24&~ka),Ra===0?jp(10,ka):Ra;case 10:return Ra=ru(192&~ka),Ra===0?jp(8,ka):Ra;case 8:return Ra=ru(3584&~ka),Ra===0&&(Ra=ru(4186112&~ka),Ra===0&&(Ra=512)),Ra;case 2:return ka=ru(805306368&~ka),ka===0&&(ka=268435456),ka}throw Error(oa(358,Ra))}function ru(Ra){return Ra&-Ra}function ou(Ra){for(var ka=[],Ba=0;31>Ba;Ba++)ka.push(Ra);return ka}function fl(Ra,ka,Ba){Ra.pendingLanes|=ka;var qa=ka-1;Ra.suspendedLanes&=qa,Ra.pingedLanes&=qa,Ra=Ra.eventTimes,ka=31-Pl(ka),Ra[ka]=Ba}var Pl=Math.clz32?Math.clz32:Cu,Xl=Math.log,yc=Math.LN2;function Cu(Ra){return Ra===0?32:31-(Xl(Ra)/yc|0)|0}var Zc=ra.unstable_UserBlockingPriority,Du=ra.unstable_runWithPriority,Gu=!0;function iu(Ra,ka,Ba,qa){pc||lc();var Ka=Uu,ol=pc;pc=!0;try{uc(Ka,Ra,ka,Ba,qa)}finally{(pc=ol)||Gc()}}function wu(Ra,ka,Ba,qa){Du(Zc,Uu.bind(null,Ra,ka,Ba,qa))}function Uu(Ra,ka,Ba,qa){if(Gu){var Ka;if((Ka=(ka&4)===0)&&0<ud.length&&-1<Dd.indexOf(Ra))Ra=Vc(null,Ra,ka,Ba,qa),ud.push(Ra);else{var ol=jd(Ra,ka,Ba,qa);if(ol===null)Ka&&Mc(Ra,qa);else{if(Ka){if(-1<Dd.indexOf(Ra)){Ra=Vc(ol,Ra,ka,Ba,qa),ud.push(Ra);return}if(Wu(ol,Ra,ka,Ba,qa))return;Mc(Ra,qa)}$1(Ra,ka,qa,null,Ba)}}}}function jd(Ra,ka,Ba,qa){var Ka=kc(qa);if(Ka=a0(Ka),Ka!==null){var ol=Dc(Ka);if(ol===null)Ka=null;else{var ll=ol.tag;if(ll===13){if(Ka=zc(ol),Ka!==null)return Ka;Ka=null}else if(ll===3){if(ol.stateNode.hydrate)return ol.tag===3?ol.stateNode.containerInfo:null;Ka=null}else ol!==Ka&&(Ka=null)}}return $1(Ra,ka,qa,Ka,Ba),null}var Su=null,Eu=null,Ed=null;function pp(){if(Ed)return Ed;var Ra,ka=Eu,Ba=ka.length,qa,Ka="value"in Su?Su.value:Su.textContent,ol=Ka.length;for(Ra=0;Ra<Ba&&ka[Ra]===Ka[Ra];Ra++);var ll=Ba-Ra;for(qa=1;qa<=ll&&ka[Ba-qa]===Ka[ol-qa];qa++);return Ed=Ka.slice(Ra,1<qa?1-qa:void 0)}function Vd(Ra){var ka=Ra.keyCode;return"charCode"in Ra?(Ra=Ra.charCode,Ra===0&&ka===13&&(Ra=13)):Ra=ka,Ra===10&&(Ra=13),32<=Ra||Ra===13?Ra:0}function rp(){return!0}function ch(){return!1}function fd(Ra){function ka(Ba,qa,Ka,ol,ll){this._reactName=Ba,this._targetInst=Ka,this.type=qa,this.nativeEvent=ol,this.target=ll,this.currentTarget=null;for(var hl in Ra)Ra.hasOwnProperty(hl)&&(Ba=Ra[hl],this[hl]=Ba?Ba(ol):ol[hl]);return this.isDefaultPrevented=(ol.defaultPrevented!=null?ol.defaultPrevented:ol.returnValue===!1)?rp:ch,this.isPropagationStopped=ch,this}return na(ka.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Ba=this.nativeEvent;Ba&&(Ba.preventDefault?Ba.preventDefault():typeof Ba.returnValue!="unknown"&&(Ba.returnValue=!1),this.isDefaultPrevented=rp)},stopPropagation:function(){var Ba=this.nativeEvent;Ba&&(Ba.stopPropagation?Ba.stopPropagation():typeof Ba.cancelBubble!="unknown"&&(Ba.cancelBubble=!0),this.isPropagationStopped=rp)},persist:function(){},isPersistent:rp}),ka}var qu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(Ra){return Ra.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},g1=fd(qu),Bd=na({},qu,{view:0,detail:0}),Ig=fd(Bd),Sf,Bp,y0,uh=na({},Bd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dh,button:0,buttons:0,relatedTarget:function(Ra){return Ra.relatedTarget===void 0?Ra.fromElement===Ra.srcElement?Ra.toElement:Ra.fromElement:Ra.relatedTarget},movementX:function(Ra){return"movementX"in Ra?Ra.movementX:(Ra!==y0&&(y0&&Ra.type==="mousemove"?(Sf=Ra.screenX-y0.screenX,Bp=Ra.screenY-y0.screenY):Bp=Sf=0,y0=Ra),Sf)},movementY:function(Ra){return"movementY"in Ra?Ra.movementY:Bp}}),Mu=fd(uh),A0=na({},uh,{dataTransfer:0}),m1=fd(A0),kg=na({},Bd,{relatedTarget:0}),kh=fd(kg),Dg=na({},qu,{animationName:0,elapsedTime:0,pseudoElement:0}),Mg=fd(Dg),Og=na({},qu,{clipboardData:function(Ra){return"clipboardData"in Ra?Ra.clipboardData:window.clipboardData}}),S2=fd(Og),Ef=na({},qu,{data:0}),F0=fd(Ef),Lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(Ra){var ka=this.nativeEvent;return ka.getModifierState?ka.getModifierState(Ra):(Ra=$2[Ra])?!!ka[Ra]:!1}function Dh(){return v1}var R2=na({},Bd,{key:function(Ra){if(Ra.key){var ka=Lg[Ra.key]||Ra.key;if(ka!=="Unidentified")return ka}return Ra.type==="keypress"?(Ra=Vd(Ra),Ra===13?"Enter":String.fromCharCode(Ra)):Ra.type==="keydown"||Ra.type==="keyup"?E2[Ra.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dh,charCode:function(Ra){return Ra.type==="keypress"?Vd(Ra):0},keyCode:function(Ra){return Ra.type==="keydown"||Ra.type==="keyup"?Ra.keyCode:0},which:function(Ra){return Ra.type==="keypress"?Vd(Ra):Ra.type==="keydown"||Ra.type==="keyup"?Ra.keyCode:0}}),jg=fd(R2),x1=na({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=fd(x1),Bg=na({},Bd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dh}),T2=fd(Bg),op=na({},qu,{propertyName:0,elapsedTime:0,pseudoElement:0}),y1=fd(op),Mh=na({},uh,{deltaX:function(Ra){return"deltaX"in Ra?Ra.deltaX:"wheelDeltaX"in Ra?-Ra.wheelDeltaX:0},deltaY:function(Ra){return"deltaY"in Ra?Ra.deltaY:"wheelDeltaY"in Ra?-Ra.wheelDeltaY:"wheelDelta"in Ra?-Ra.wheelDelta:0},deltaZ:0,deltaMode:0}),P2=fd(Mh),_2=[9,13,27,32],A1=ua&&"CompositionEvent"in window,Oh=null;ua&&"documentMode"in document&&(Oh=document.documentMode);var Fg=ua&&"TextEvent"in window&&!Oh,I2=ua&&(!A1||Oh&&8<Oh&&11>=Oh),k2=" ",N0=!1;function D2(Ra,ka){switch(Ra){case"keyup":return _2.indexOf(ka.keyCode)!==-1;case"keydown":return ka.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M2(Ra){return Ra=Ra.detail,typeof Ra=="object"&&"data"in Ra?Ra.data:null}var b0=!1;function O2(Ra,ka){switch(Ra){case"compositionend":return M2(ka);case"keypress":return ka.which!==32?null:(N0=!0,k2);case"textInput":return Ra=ka.data,Ra===k2&&N0?null:Ra;default:return null}}function C0(Ra,ka){if(b0)return Ra==="compositionend"||!A1&&D2(Ra,ka)?(Ra=pp(),Ed=Eu=Su=null,b0=!1,Ra):null;switch(Ra){case"paste":return null;case"keypress":if(!(ka.ctrlKey||ka.altKey||ka.metaKey)||ka.ctrlKey&&ka.altKey){if(ka.char&&1<ka.char.length)return ka.char;if(ka.which)return String.fromCharCode(ka.which)}return null;case"compositionend":return I2&&ka.locale!=="ko"?null:ka.data;default:return null}}var Rf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function L2(Ra){var ka=Ra&&Ra.nodeName&&Ra.nodeName.toLowerCase();return ka==="input"?!!Rf[Ra.type]:ka==="textarea"}function j2(Ra,ka,Ba,qa){dc(qa),ka=Np(ka,"onChange"),0<ka.length&&(Ba=new g1("onChange","change",null,Ba,qa),Ra.push({event:Ba,listeners:ka}))}var Lh=null,Fp=null;function $p(Ra){Hh(Ra,0)}function jh(Ra){var ka=Hp(Ra);if(Rl(ka))return Ra}function Ng(Ra,ka){if(Ra==="change")return ka}var B2=!1;if(ua){var b1;if(ua){var C1="oninput"in document;if(!C1){var F2=document.createElement("div");F2.setAttribute("oninput","return;"),C1=typeof F2.oninput=="function"}b1=C1}else b1=!1;B2=b1&&(!document.documentMode||9<document.documentMode)}function z0(){Lh&&(Lh.detachEvent("onpropertychange",_l),Fp=Lh=null)}function _l(Ra){if(Ra.propertyName==="value"&&jh(Fp)){var ka=[];if(j2(ka,Fp,Ra,kc(Ra)),Ra=$p,pc)Ra(ka);else{pc=!0;try{qc(Ra,ka)}finally{pc=!1,Gc()}}}}function Gl(Ra,ka,Ba){Ra==="focusin"?(z0(),Lh=ka,Fp=Ba,Lh.attachEvent("onpropertychange",_l)):Ra==="focusout"&&z0()}function Nl(Ra){if(Ra==="selectionchange"||Ra==="keyup"||Ra==="keydown")return jh(Fp)}function Ac(Ra,ka){if(Ra==="click")return jh(ka)}function Uc(Ra,ka){if(Ra==="input"||Ra==="change")return jh(ka)}function du(Ra,ka){return Ra===ka&&(Ra!==0||1/Ra===1/ka)||Ra!==Ra&&ka!==ka}var fu=typeof Object.is=="function"?Object.is:du,$u=Object.prototype.hasOwnProperty;function H0(Ra,ka){if(fu(Ra,ka))return!0;if(typeof Ra!="object"||Ra===null||typeof ka!="object"||ka===null)return!1;var Ba=Object.keys(Ra),qa=Object.keys(ka);if(Ba.length!==qa.length)return!1;for(qa=0;qa<Ba.length;qa++)if(!$u.call(ka,Ba[qa])||!fu(Ra[Ba[qa]],ka[Ba[qa]]))return!1;return!0}function N2(Ra){for(;Ra&&Ra.firstChild;)Ra=Ra.firstChild;return Ra}function ip(Ra,ka){var Ba=N2(Ra);Ra=0;for(var qa;Ba;){if(Ba.nodeType===3){if(qa=Ra+Ba.textContent.length,Ra<=ka&&qa>=ka)return{node:Ba,offset:ka-Ra};Ra=qa}e:{for(;Ba;){if(Ba.nextSibling){Ba=Ba.nextSibling;break e}Ba=Ba.parentNode}Ba=void 0}Ba=N2(Ba)}}function Bh(Ra,ka){return Ra&&ka?Ra===ka?!0:Ra&&Ra.nodeType===3?!1:ka&&ka.nodeType===3?Bh(Ra,ka.parentNode):"contains"in Ra?Ra.contains(ka):Ra.compareDocumentPosition?!!(Ra.compareDocumentPosition(ka)&16):!1:!1}function z2(){for(var Ra=window,ka=Tl();ka instanceof Ra.HTMLIFrameElement;){try{var Ba=typeof ka.contentWindow.location.href=="string"}catch{Ba=!1}if(Ba)Ra=ka.contentWindow;else break;ka=Tl(Ra.document)}return ka}function w0(Ra){var ka=Ra&&Ra.nodeName&&Ra.nodeName.toLowerCase();return ka&&(ka==="input"&&(Ra.type==="text"||Ra.type==="search"||Ra.type==="tel"||Ra.type==="url"||Ra.type==="password")||ka==="textarea"||Ra.contentEditable==="true")}var Tf=ua&&"documentMode"in document&&11>=document.documentMode,t0=null,pu=null,Fh=null,Pf=!1;function Nh(Ra,ka,Ba){var qa=Ba.window===Ba?Ba.document:Ba.nodeType===9?Ba:Ba.ownerDocument;Pf||t0==null||t0!==Tl(qa)||(qa=t0,"selectionStart"in qa&&w0(qa)?qa={start:qa.selectionStart,end:qa.selectionEnd}:(qa=(qa.ownerDocument&&qa.ownerDocument.defaultView||window).getSelection(),qa={anchorNode:qa.anchorNode,anchorOffset:qa.anchorOffset,focusNode:qa.focusNode,focusOffset:qa.focusOffset}),Fh&&H0(Fh,qa)||(Fh=qa,qa=Np(pu,"onSelect"),0<qa.length&&(ka=new g1("onSelect","select",null,ka,Ba),Ra.push({event:ka,listeners:qa}),ka.target=t0)))}Jp("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Jp("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Jp(Op,2);for(var H2="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),w1=0;w1<H2.length;w1++)Ep.set(H2[w1],0);ca("onMouseEnter",["mouseout","mouseover"]),ca("onMouseLeave",["mouseout","mouseover"]),ca("onPointerEnter",["pointerout","pointerover"]),ca("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_f=new Set("cancel close invalid load scroll toggle".split(" ").concat(zh));function n0(Ra,ka,Ba){var qa=Ra.type||"unknown-event";Ra.currentTarget=Ba,mc(qa,ka,void 0,Ra),Ra.currentTarget=null}function Hh(Ra,ka){ka=(ka&4)!==0;for(var Ba=0;Ba<Ra.length;Ba++){var qa=Ra[Ba],Ka=qa.event;qa=qa.listeners;e:{var ol=void 0;if(ka)for(var ll=qa.length-1;0<=ll;ll--){var hl=qa[ll],bl=hl.instance,Hl=hl.currentTarget;if(hl=hl.listener,bl!==ol&&Ka.isPropagationStopped())break e;n0(Ka,hl,Hl),ol=bl}else for(ll=0;ll<qa.length;ll++){if(hl=qa[ll],bl=hl.instance,Hl=hl.currentTarget,hl=hl.listener,bl!==ol&&Ka.isPropagationStopped())break e;n0(Ka,hl,Hl),ol=bl}}}if(wd)throw Ra=Tu,wd=!1,Tu=null,Ra}function Ru(Ra,ka){var Ba=qh(ka),qa=Ra+"__bubble";Ba.has(qa)||(Wh(ka,Ra,2,!1),Ba.add(qa))}var Vh="_reactListening"+Math.random().toString(36).slice(2);function S1(Ra){Ra[Vh]||(Ra[Vh]=!0,aa.forEach(function(ka){_f.has(ka)||E1(ka,!1,Ra,null),E1(ka,!0,Ra,null)}))}function E1(Ra,ka,Ba,qa){var Ka=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,ol=Ba;Ra==="selectionchange"&&Ba.nodeType!==9&&(ol=Ba.ownerDocument);var ll=qh(ol),hl=Ra+"__"+(ka?"capture":"bubble");ll.has(hl)||(ka&&(Ka|=4),Wh(ol,Ra,Ka,ka),ll.add(hl))}function Wh(Ra,ka,Ba,qa){var Ka=Ep.get(ka);switch(Ka===void 0?2:Ka){case 0:Ka=iu;break;case 1:Ka=wu;break;default:Ka=Uu}Ba=Ka.bind(null,ka,Ba,Ra),Ka=void 0,!ju||ka!=="touchstart"&&ka!=="touchmove"&&ka!=="wheel"||(Ka=!0),qa?Ka!==void 0?Ra.addEventListener(ka,Ba,{capture:!0,passive:Ka}):Ra.addEventListener(ka,Ba,!0):Ka!==void 0?Ra.addEventListener(ka,Ba,{passive:Ka}):Ra.addEventListener(ka,Ba,!1)}function $1(Ra,ka,Ba,qa,Ka){var ol=qa;if((ka&1)===0&&(ka&2)===0&&qa!==null)e:for(;;){if(qa===null)return;var ll=qa.tag;if(ll===3||ll===4){var hl=qa.stateNode.containerInfo;if(hl===Ka||hl.nodeType===8&&hl.parentNode===Ka)break;if(ll===4)for(ll=qa.return;ll!==null;){var bl=ll.tag;if((bl===3||bl===4)&&(bl=ll.stateNode.containerInfo,bl===Ka||bl.nodeType===8&&bl.parentNode===Ka))return;ll=ll.return}for(;hl!==null;){if(ll=a0(hl),ll===null)return;if(bl=ll.tag,bl===5||bl===6){qa=ol=ll;continue e}hl=hl.parentNode}}qa=qa.return}Lu(function(){var Hl=ol,vc=kc(Ba),Fc=[];e:{var tc=Sp.get(Ra);if(tc!==void 0){var Ec=g1,Hc=Ra;switch(Ra){case"keypress":if(Vd(Ba)===0)break e;case"keydown":case"keyup":Ec=jg;break;case"focusin":Hc="focus",Ec=kh;break;case"focusout":Hc="blur",Ec=kh;break;case"beforeblur":case"afterblur":Ec=kh;break;case"click":if(Ba.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ec=Mu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ec=m1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ec=T2;break;case Mp:case dp:case np:Ec=Mg;break;case hd:Ec=y1;break;case"scroll":Ec=Ig;break;case"wheel":Ec=P2;break;case"copy":case"cut":case"paste":Ec=S2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ec=$f}var Oc=(ka&4)!==0,jl=!Oc&&Ra==="scroll",El=Oc?tc!==null?tc+"Capture":null:tc;Oc=[];for(var Ml=Hl,ql;Ml!==null;){ql=Ml;var Jl=ql.stateNode;if(ql.tag===5&&Jl!==null&&(ql=Jl,El!==null&&(Jl=vu(Ml,El),Jl!=null&&Oc.push(r0(Ml,Jl,ql)))),jl)break;Ml=Ml.return}0<Oc.length&&(tc=new Ec(tc,Hc,null,Ba,vc),Fc.push({event:tc,listeners:Oc}))}}if((ka&7)===0){e:{if(tc=Ra==="mouseover"||Ra==="pointerover",Ec=Ra==="mouseout"||Ra==="pointerout",tc&&(ka&16)===0&&(Hc=Ba.relatedTarget||Ba.fromElement)&&(a0(Hc)||Hc[S0]))break e;if((Ec||tc)&&(tc=vc.window===vc?vc:(tc=vc.ownerDocument)?tc.defaultView||tc.parentWindow:window,Ec?(Hc=Ba.relatedTarget||Ba.toElement,Ec=Hl,Hc=Hc?a0(Hc):null,Hc!==null&&(jl=Dc(Hc),Hc!==jl||Hc.tag!==5&&Hc.tag!==6)&&(Hc=null)):(Ec=null,Hc=Hl),Ec!==Hc)){if(Oc=Mu,Jl="onMouseLeave",El="onMouseEnter",Ml="mouse",(Ra==="pointerout"||Ra==="pointerover")&&(Oc=$f,Jl="onPointerLeave",El="onPointerEnter",Ml="pointer"),jl=Ec==null?tc:Hp(Ec),ql=Hc==null?tc:Hp(Hc),tc=new Oc(Jl,Ml+"leave",Ec,Ba,vc),tc.target=jl,tc.relatedTarget=ql,Jl=null,a0(vc)===Hl&&(Oc=new Oc(El,Ml+"enter",Hc,Ba,vc),Oc.target=ql,Oc.relatedTarget=jl,Jl=Oc),jl=Jl,Ec&&Hc)t:{for(Oc=Ec,El=Hc,Ml=0,ql=Oc;ql;ql=o0(ql))Ml++;for(ql=0,Jl=El;Jl;Jl=o0(Jl))ql++;for(;0<Ml-ql;)Oc=o0(Oc),Ml--;for(;0<ql-Ml;)El=o0(El),ql--;for(;Ml--;){if(Oc===El||El!==null&&Oc===El.alternate)break t;Oc=o0(Oc),El=o0(El)}Oc=null}else Oc=null;Ec!==null&&V2(Fc,tc,Ec,Oc,!1),Hc!==null&&jl!==null&&V2(Fc,jl,Hc,Oc,!0)}}e:{if(tc=Hl?Hp(Hl):window,Ec=tc.nodeName&&tc.nodeName.toLowerCase(),Ec==="select"||Ec==="input"&&tc.type==="file")var Wc=Ng;else if(L2(tc))if(B2)Wc=Uc;else{Wc=Nl;var wc=Gl}else(Ec=tc.nodeName)&&Ec.toLowerCase()==="input"&&(tc.type==="checkbox"||tc.type==="radio")&&(Wc=Ac);if(Wc&&(Wc=Wc(Ra,Hl))){j2(Fc,Wc,Ba,vc);break e}wc&&wc(Ra,tc,Hl),Ra==="focusout"&&(wc=tc._wrapperState)&&wc.controlled&&tc.type==="number"&&vl(tc,"number",tc.value)}switch(wc=Hl?Hp(Hl):window,Ra){case"focusin":(L2(wc)||wc.contentEditable==="true")&&(t0=wc,pu=Hl,Fh=null);break;case"focusout":Fh=pu=t0=null;break;case"mousedown":Pf=!0;break;case"contextmenu":case"mouseup":case"dragend":Pf=!1,Nh(Fc,Ba,vc);break;case"selectionchange":if(Tf)break;case"keydown":case"keyup":Nh(Fc,Ba,vc)}var Nc;if(A1)e:{switch(Ra){case"compositionstart":var eu="onCompositionStart";break e;case"compositionend":eu="onCompositionEnd";break e;case"compositionupdate":eu="onCompositionUpdate";break e}eu=void 0}else b0?D2(Ra,Ba)&&(eu="onCompositionEnd"):Ra==="keydown"&&Ba.keyCode===229&&(eu="onCompositionStart");eu&&(I2&&Ba.locale!=="ko"&&(b0||eu!=="onCompositionStart"?eu==="onCompositionEnd"&&b0&&(Nc=pp()):(Su=vc,Eu="value"in Su?Su.value:Su.textContent,b0=!0)),wc=Np(Hl,eu),0<wc.length&&(eu=new F0(eu,Ra,null,Ba,vc),Fc.push({event:eu,listeners:wc}),Nc?eu.data=Nc:(Nc=M2(Ba),Nc!==null&&(eu.data=Nc)))),(Nc=Fg?O2(Ra,Ba):C0(Ra,Ba))&&(Hl=Np(Hl,"onBeforeInput"),0<Hl.length&&(vc=new F0("onBeforeInput","beforeinput",null,Ba,vc),Fc.push({event:vc,listeners:Hl}),vc.data=Nc))}Hh(Fc,ka)})}function r0(Ra,ka,Ba){return{instance:Ra,listener:ka,currentTarget:Ba}}function Np(Ra,ka){for(var Ba=ka+"Capture",qa=[];Ra!==null;){var Ka=Ra,ol=Ka.stateNode;Ka.tag===5&&ol!==null&&(Ka=ol,ol=vu(Ra,Ba),ol!=null&&qa.unshift(r0(Ra,ol,Ka)),ol=vu(Ra,ka),ol!=null&&qa.push(r0(Ra,ol,Ka))),Ra=Ra.return}return qa}function o0(Ra){if(Ra===null)return null;do Ra=Ra.return;while(Ra&&Ra.tag!==5);return Ra||null}function V2(Ra,ka,Ba,qa,Ka){for(var ol=ka._reactName,ll=[];Ba!==null&&Ba!==qa;){var hl=Ba,bl=hl.alternate,Hl=hl.stateNode;if(bl!==null&&bl===qa)break;hl.tag===5&&Hl!==null&&(hl=Hl,Ka?(bl=vu(Ba,ol),bl!=null&&ll.unshift(r0(Ba,bl,hl))):Ka||(bl=vu(Ba,ol),bl!=null&&ll.push(r0(Ba,bl,hl)))),Ba=Ba.return}ll.length!==0&&Ra.push({event:ka,listeners:ll})}function If(){}var R1=null,dh=null;function Gh(Ra,ka){switch(Ra){case"button":case"input":case"select":case"textarea":return!!ka.autoFocus}return!1}function Uh(Ra,ka){return Ra==="textarea"||Ra==="option"||Ra==="noscript"||typeof ka.children=="string"||typeof ka.children=="number"||typeof ka.dangerouslySetInnerHTML=="object"&&ka.dangerouslySetInnerHTML!==null&&ka.dangerouslySetInnerHTML.__html!=null}var W2=typeof setTimeout=="function"?setTimeout:void 0,G2=typeof clearTimeout=="function"?clearTimeout:void 0;function T1(Ra){Ra.nodeType===1?Ra.textContent="":Ra.nodeType===9&&(Ra=Ra.body,Ra!=null&&(Ra.textContent=""))}function ph(Ra){for(;Ra!=null;Ra=Ra.nextSibling){var ka=Ra.nodeType;if(ka===1||ka===3)break}return Ra}function sd(Ra){Ra=Ra.previousSibling;for(var ka=0;Ra;){if(Ra.nodeType===8){var Ba=Ra.data;if(Ba==="$"||Ba==="$!"||Ba==="$?"){if(ka===0)return Ra;ka--}else Ba==="/$"&&ka++}Ra=Ra.previousSibling}return null}var $d=0;function zg(Ra){return{$$typeof:Ha,toString:Ra,valueOf:Ra}}var kf=Math.random().toString(36).slice(2),i0="__reactFiber$"+kf,Df="__reactProps$"+kf,S0="__reactContainer$"+kf,hh="__reactEvents$"+kf;function a0(Ra){var ka=Ra[i0];if(ka)return ka;for(var Ba=Ra.parentNode;Ba;){if(ka=Ba[S0]||Ba[i0]){if(Ba=ka.alternate,ka.child!==null||Ba!==null&&Ba.child!==null)for(Ra=sd(Ra);Ra!==null;){if(Ba=Ra[i0])return Ba;Ra=sd(Ra)}return ka}Ra=Ba,Ba=Ra.parentNode}return null}function zp(Ra){return Ra=Ra[i0]||Ra[S0],!Ra||Ra.tag!==5&&Ra.tag!==6&&Ra.tag!==13&&Ra.tag!==3?null:Ra}function Hp(Ra){if(Ra.tag===5||Ra.tag===6)return Ra.stateNode;throw Error(oa(33))}function E0(Ra){return Ra[Df]||null}function qh(Ra){var ka=Ra[hh];return ka===void 0&&(ka=Ra[hh]=new Set),ka}var $0=[],fh=-1;function R0(Ra){return{current:Ra}}function Ou(Ra){0>fh||(Ra.current=$0[fh],$0[fh]=null,fh--)}function Yu(Ra,ka){fh++,$0[fh]=Ra.current,Ra.current=ka}var T0={},gd=R0(T0),Rd=R0(!1),P0=T0;function cl(Ra,ka){var Ba=Ra.type.contextTypes;if(!Ba)return T0;var qa=Ra.stateNode;if(qa&&qa.__reactInternalMemoizedUnmaskedChildContext===ka)return qa.__reactInternalMemoizedMaskedChildContext;var Ka={},ol;for(ol in Ba)Ka[ol]=ka[ol];return qa&&(Ra=Ra.stateNode,Ra.__reactInternalMemoizedUnmaskedChildContext=ka,Ra.__reactInternalMemoizedMaskedChildContext=Ka),Ka}function md(Ra){return Ra=Ra.childContextTypes,Ra!=null}function V0(){Ou(Rd),Ou(gd)}function ap(Ra,ka,Ba){if(gd.current!==T0)throw Error(oa(168));Yu(gd,ka),Yu(Rd,Ba)}function nu(Ra,ka,Ba){var qa=Ra.stateNode;if(Ra=ka.childContextTypes,typeof qa.getChildContext!="function")return Ba;qa=qa.getChildContext();for(var Ka in qa)if(!(Ka in Ra))throw Error(oa(108,rl(ka)||"Unknown",Ka));return na({},Ba,qa)}function Mf(Ra){return Ra=(Ra=Ra.stateNode)&&Ra.__reactInternalMemoizedMergedChildContext||T0,P0=gd.current,Yu(gd,Ra),Yu(Rd,Rd.current),!0}function U2(Ra,ka,Ba){var qa=Ra.stateNode;if(!qa)throw Error(oa(169));Ba?(Ra=nu(Ra,ka,P0),qa.__reactInternalMemoizedMergedChildContext=Ra,Ou(Rd),Ou(gd),Yu(gd,Ra)):Ou(Rd),Yu(Rd,Ba)}var P1=null,sp=null,Hg=ra.unstable_runWithPriority,_1=ra.unstable_scheduleCallback,I1=ra.unstable_cancelCallback,Vg=ra.unstable_shouldYield,q2=ra.unstable_requestPaint,Rp=ra.unstable_now,Wg=ra.unstable_getCurrentPriorityLevel,Of=ra.unstable_ImmediatePriority,Z2=ra.unstable_UserBlockingPriority,Q2=ra.unstable_NormalPriority,Y2=ra.unstable_LowPriority,Vp=ra.unstable_IdlePriority,k1={},Gg=q2!==void 0?q2:function(){},s0=null,Lf=null,D1=!1,_0=Rp(),Fd=1e4>_0?Rp:function(){return Rp()-_0};function gh(){switch(Wg()){case Of:return 99;case Z2:return 98;case Q2:return 97;case Y2:return 96;case Vp:return 95;default:throw Error(oa(332))}}function hp(Ra){switch(Ra){case 99:return Of;case 98:return Z2;case 97:return Q2;case 96:return Y2;case 95:return Vp;default:throw Error(oa(332))}}function W0(Ra,ka){return Ra=hp(Ra),Hg(Ra,ka)}function Zh(Ra,ka,Ba){return Ra=hp(Ra),_1(Ra,ka,Ba)}function Wp(){if(Lf!==null){var Ra=Lf;Lf=null,I1(Ra)}K2()}function K2(){if(!D1&&s0!==null){D1=!0;var Ra=0;try{var ka=s0;W0(99,function(){for(;Ra<ka.length;Ra++){var Ba=ka[Ra];do Ba=Ba(!0);while(Ba!==null)}}),s0=null}catch(Ba){throw s0!==null&&(s0=s0.slice(Ra+1)),_1(Of,Wp),Ba}finally{D1=!1}}}var Ug=wa.ReactCurrentBatchConfig;function fp(Ra,ka){if(Ra&&Ra.defaultProps){ka=na({},ka),Ra=Ra.defaultProps;for(var Ba in Ra)ka[Ba]===void 0&&(ka[Ba]=Ra[Ba]);return ka}return ka}var Qh=R0(null),jf=null,mh=null,vh=null;function G0(){vh=mh=jf=null}function xh(Ra){var ka=Qh.current;Ou(Qh),Ra.type._context._currentValue=ka}function X2(Ra,ka){for(;Ra!==null;){var Ba=Ra.alternate;if((Ra.childLanes&ka)===ka){if(Ba===null||(Ba.childLanes&ka)===ka)break;Ba.childLanes|=ka}else Ra.childLanes|=ka,Ba!==null&&(Ba.childLanes|=ka);Ra=Ra.return}}function U0(Ra,ka){jf=Ra,vh=mh=null,Ra=Ra.dependencies,Ra!==null&&Ra.firstContext!==null&&((Ra.lanes&ka)!==0&&(Td=!0),Ra.firstContext=null)}function gp(Ra,ka){if(vh!==Ra&&ka!==!1&&ka!==0)if((typeof ka!="number"||ka===1073741823)&&(vh=Ra,ka=1073741823),ka={context:Ra,observedBits:ka,next:null},mh===null){if(jf===null)throw Error(oa(308));mh=ka,jf.dependencies={lanes:0,firstContext:ka,responders:null}}else mh=mh.next=ka;return Ra._currentValue}var Nd=!1;function Yh(Ra){Ra.updateQueue={baseState:Ra.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function I0(Ra,ka){Ra=Ra.updateQueue,ka.updateQueue===Ra&&(ka.updateQueue={baseState:Ra.baseState,firstBaseUpdate:Ra.firstBaseUpdate,lastBaseUpdate:Ra.lastBaseUpdate,shared:Ra.shared,effects:Ra.effects})}function vd(Ra,ka){return{eventTime:Ra,lane:ka,tag:0,payload:null,callback:null,next:null}}function k0(Ra,ka){if(Ra=Ra.updateQueue,Ra!==null){Ra=Ra.shared;var Ba=Ra.pending;Ba===null?ka.next=ka:(ka.next=Ba.next,Ba.next=ka),Ra.pending=ka}}function M1(Ra,ka){var Ba=Ra.updateQueue,qa=Ra.alternate;if(qa!==null&&(qa=qa.updateQueue,Ba===qa)){var Ka=null,ol=null;if(Ba=Ba.firstBaseUpdate,Ba!==null){do{var ll={eventTime:Ba.eventTime,lane:Ba.lane,tag:Ba.tag,payload:Ba.payload,callback:Ba.callback,next:null};ol===null?Ka=ol=ll:ol=ol.next=ll,Ba=Ba.next}while(Ba!==null);ol===null?Ka=ol=ka:ol=ol.next=ka}else Ka=ol=ka;Ba={baseState:qa.baseState,firstBaseUpdate:Ka,lastBaseUpdate:ol,shared:qa.shared,effects:qa.effects},Ra.updateQueue=Ba;return}Ra=Ba.lastBaseUpdate,Ra===null?Ba.firstBaseUpdate=ka:Ra.next=ka,Ba.lastBaseUpdate=ka}function yh(Ra,ka,Ba,qa){var Ka=Ra.updateQueue;Nd=!1;var ol=Ka.firstBaseUpdate,ll=Ka.lastBaseUpdate,hl=Ka.shared.pending;if(hl!==null){Ka.shared.pending=null;var bl=hl,Hl=bl.next;bl.next=null,ll===null?ol=Hl:ll.next=Hl,ll=bl;var vc=Ra.alternate;if(vc!==null){vc=vc.updateQueue;var Fc=vc.lastBaseUpdate;Fc!==ll&&(Fc===null?vc.firstBaseUpdate=Hl:Fc.next=Hl,vc.lastBaseUpdate=bl)}}if(ol!==null){Fc=Ka.baseState,ll=0,vc=Hl=bl=null;do{hl=ol.lane;var tc=ol.eventTime;if((qa&hl)===hl){vc!==null&&(vc=vc.next={eventTime:tc,lane:0,tag:ol.tag,payload:ol.payload,callback:ol.callback,next:null});e:{var Ec=Ra,Hc=ol;switch(hl=ka,tc=Ba,Hc.tag){case 1:if(Ec=Hc.payload,typeof Ec=="function"){Fc=Ec.call(tc,Fc,hl);break e}Fc=Ec;break e;case 3:Ec.flags=Ec.flags&-4097|64;case 0:if(Ec=Hc.payload,hl=typeof Ec=="function"?Ec.call(tc,Fc,hl):Ec,hl==null)break e;Fc=na({},Fc,hl);break e;case 2:Nd=!0}}ol.callback!==null&&(Ra.flags|=32,hl=Ka.effects,hl===null?Ka.effects=[ol]:hl.push(ol))}else tc={eventTime:tc,lane:hl,tag:ol.tag,payload:ol.payload,callback:ol.callback,next:null},vc===null?(Hl=vc=tc,bl=Fc):vc=vc.next=tc,ll|=hl;if(ol=ol.next,ol===null){if(hl=Ka.shared.pending,hl===null)break;ol=hl.next,hl.next=null,Ka.lastBaseUpdate=hl,Ka.shared.pending=null}}while(!0);vc===null&&(bl=Fc),Ka.baseState=bl,Ka.firstBaseUpdate=Hl,Ka.lastBaseUpdate=vc,th|=ll,Ra.lanes=ll,Ra.memoizedState=Fc}}function Ah(Ra,ka,Ba){if(Ra=ka.effects,ka.effects=null,Ra!==null)for(ka=0;ka<Ra.length;ka++){var qa=Ra[ka],Ka=qa.callback;if(Ka!==null){if(qa.callback=null,qa=Ba,typeof Ka!="function")throw Error(oa(191,Ka));Ka.call(qa)}}}var l0=new ea.Component().refs;function Kh(Ra,ka,Ba,qa){ka=Ra.memoizedState,Ba=Ba(qa,ka),Ba=Ba==null?ka:na({},ka,Ba),Ra.memoizedState=Ba,Ra.lanes===0&&(Ra.updateQueue.baseState=Ba)}var Bf={isMounted:function(Ra){return(Ra=Ra._reactInternals)?Dc(Ra)===Ra:!1},enqueueSetState:function(Ra,ka,Ba){Ra=Ra._reactInternals;var qa=cp(),Ka=f0(Ra),ol=vd(qa,Ka);ol.payload=ka,Ba!=null&&(ol.callback=Ba),k0(Ra,ol),g0(Ra,Ka,qa)},enqueueReplaceState:function(Ra,ka,Ba){Ra=Ra._reactInternals;var qa=cp(),Ka=f0(Ra),ol=vd(qa,Ka);ol.tag=1,ol.payload=ka,Ba!=null&&(ol.callback=Ba),k0(Ra,ol),g0(Ra,Ka,qa)},enqueueForceUpdate:function(Ra,ka){Ra=Ra._reactInternals;var Ba=cp(),qa=f0(Ra),Ka=vd(Ba,qa);Ka.tag=2,ka!=null&&(Ka.callback=ka),k0(Ra,Ka),g0(Ra,qa,Ba)}};function Xh(Ra,ka,Ba,qa,Ka,ol,ll){return Ra=Ra.stateNode,typeof Ra.shouldComponentUpdate=="function"?Ra.shouldComponentUpdate(qa,ol,ll):ka.prototype&&ka.prototype.isPureReactComponent?!H0(Ba,qa)||!H0(Ka,ol):!0}function J2(Ra,ka,Ba){var qa=!1,Ka=T0,ol=ka.contextType;return typeof ol=="object"&&ol!==null?ol=gp(ol):(Ka=md(ka)?P0:gd.current,qa=ka.contextTypes,ol=(qa=qa!=null)?cl(Ra,Ka):T0),ka=new ka(Ba,ol),Ra.memoizedState=ka.state!==null&&ka.state!==void 0?ka.state:null,ka.updater=Bf,Ra.stateNode=ka,ka._reactInternals=Ra,qa&&(Ra=Ra.stateNode,Ra.__reactInternalMemoizedUnmaskedChildContext=Ka,Ra.__reactInternalMemoizedMaskedChildContext=ol),ka}function O1(Ra,ka,Ba,qa){Ra=ka.state,typeof ka.componentWillReceiveProps=="function"&&ka.componentWillReceiveProps(Ba,qa),typeof ka.UNSAFE_componentWillReceiveProps=="function"&&ka.UNSAFE_componentWillReceiveProps(Ba,qa),ka.state!==Ra&&Bf.enqueueReplaceState(ka,ka.state,null)}function xd(Ra,ka,Ba,qa){var Ka=Ra.stateNode;Ka.props=Ba,Ka.state=Ra.memoizedState,Ka.refs=l0,Yh(Ra);var ol=ka.contextType;typeof ol=="object"&&ol!==null?Ka.context=gp(ol):(ol=md(ka)?P0:gd.current,Ka.context=cl(Ra,ol)),yh(Ra,Ba,Ka,qa),Ka.state=Ra.memoizedState,ol=ka.getDerivedStateFromProps,typeof ol=="function"&&(Kh(Ra,ka,ol,Ba),Ka.state=Ra.memoizedState),typeof ka.getDerivedStateFromProps=="function"||typeof Ka.getSnapshotBeforeUpdate=="function"||typeof Ka.UNSAFE_componentWillMount!="function"&&typeof Ka.componentWillMount!="function"||(ka=Ka.state,typeof Ka.componentWillMount=="function"&&Ka.componentWillMount(),typeof Ka.UNSAFE_componentWillMount=="function"&&Ka.UNSAFE_componentWillMount(),ka!==Ka.state&&Bf.enqueueReplaceState(Ka,Ka.state,null),yh(Ra,Ba,Ka,qa),Ka.state=Ra.memoizedState),typeof Ka.componentDidMount=="function"&&(Ra.flags|=4)}var bh=Array.isArray;function Ch(Ra,ka,Ba){if(Ra=Ba.ref,Ra!==null&&typeof Ra!="function"&&typeof Ra!="object"){if(Ba._owner){if(Ba=Ba._owner,Ba){if(Ba.tag!==1)throw Error(oa(309));var qa=Ba.stateNode}if(!qa)throw Error(oa(147,Ra));var Ka=""+Ra;return ka!==null&&ka.ref!==null&&typeof ka.ref=="function"&&ka.ref._stringRef===Ka?ka.ref:(ka=function(ol){var ll=qa.refs;ll===l0&&(ll=qa.refs={}),ol===null?delete ll[Ka]:ll[Ka]=ol},ka._stringRef=Ka,ka)}if(typeof Ra!="string")throw Error(oa(284));if(!Ba._owner)throw Error(oa(290,Ra))}return Ra}function lp(Ra,ka){if(Ra.type!=="textarea")throw Error(oa(31,Object.prototype.toString.call(ka)==="[object Object]"?"object with keys {"+Object.keys(ka).join(", ")+"}":ka))}function Ff(Ra){function ka(jl,El){if(Ra){var Ml=jl.lastEffect;Ml!==null?(Ml.nextEffect=El,jl.lastEffect=El):jl.firstEffect=jl.lastEffect=El,El.nextEffect=null,El.flags=8}}function Ba(jl,El){if(!Ra)return null;for(;El!==null;)ka(jl,El),El=El.sibling;return null}function qa(jl,El){for(jl=new Map;El!==null;)El.key!==null?jl.set(El.key,El):jl.set(El.index,El),El=El.sibling;return jl}function Ka(jl,El){return jl=j0(jl,El),jl.index=0,jl.sibling=null,jl}function ol(jl,El,Ml){return jl.index=Ml,Ra?(Ml=jl.alternate,Ml!==null?(Ml=Ml.index,Ml<El?(jl.flags=2,El):Ml):(jl.flags=2,El)):El}function ll(jl){return Ra&&jl.alternate===null&&(jl.flags=2),jl}function hl(jl,El,Ml,ql){return El===null||El.tag!==6?(El=v2(Ml,jl.mode,ql),El.return=jl,El):(El=Ka(El,Ml),El.return=jl,El)}function bl(jl,El,Ml,ql){return El!==null&&El.elementType===Ml.type?(ql=Ka(El,Ml.props),ql.ref=Ch(jl,El,Ml),ql.return=jl,ql):(ql=c1(Ml.type,Ml.key,Ml.props,null,jl.mode,ql),ql.ref=Ch(jl,El,Ml),ql.return=jl,ql)}function Hl(jl,El,Ml,ql){return El===null||El.tag!==4||El.stateNode.containerInfo!==Ml.containerInfo||El.stateNode.implementation!==Ml.implementation?(El=x2(Ml,jl.mode,ql),El.return=jl,El):(El=Ka(El,Ml.children||[]),El.return=jl,El)}function vc(jl,El,Ml,ql,Jl){return El===null||El.tag!==7?(El=_h(Ml,jl.mode,ql,Jl),El.return=jl,El):(El=Ka(El,Ml),El.return=jl,El)}function Fc(jl,El,Ml){if(typeof El=="string"||typeof El=="number")return El=v2(""+El,jl.mode,Ml),El.return=jl,El;if(typeof El=="object"&&El!==null){switch(El.$$typeof){case ba:return Ml=c1(El.type,El.key,El.props,null,jl.mode,Ml),Ml.ref=Ch(jl,null,El),Ml.return=jl,Ml;case Ea:return El=x2(El,jl.mode,Ml),El.return=jl,El}if(bh(El)||Xa(El))return El=_h(El,jl.mode,Ml,null),El.return=jl,El;lp(jl,El)}return null}function tc(jl,El,Ml,ql){var Jl=El!==null?El.key:null;if(typeof Ml=="string"||typeof Ml=="number")return Jl!==null?null:hl(jl,El,""+Ml,ql);if(typeof Ml=="object"&&Ml!==null){switch(Ml.$$typeof){case ba:return Ml.key===Jl?Ml.type===$a?vc(jl,El,Ml.props.children,ql,Jl):bl(jl,El,Ml,ql):null;case Ea:return Ml.key===Jl?Hl(jl,El,Ml,ql):null}if(bh(Ml)||Xa(Ml))return Jl!==null?null:vc(jl,El,Ml,ql,null);lp(jl,Ml)}return null}function Ec(jl,El,Ml,ql,Jl){if(typeof ql=="string"||typeof ql=="number")return jl=jl.get(Ml)||null,hl(El,jl,""+ql,Jl);if(typeof ql=="object"&&ql!==null){switch(ql.$$typeof){case ba:return jl=jl.get(ql.key===null?Ml:ql.key)||null,ql.type===$a?vc(El,jl,ql.props.children,Jl,ql.key):bl(El,jl,ql,Jl);case Ea:return jl=jl.get(ql.key===null?Ml:ql.key)||null,Hl(El,jl,ql,Jl)}if(bh(ql)||Xa(ql))return jl=jl.get(Ml)||null,vc(El,jl,ql,Jl,null);lp(El,ql)}return null}function Hc(jl,El,Ml,ql){for(var Jl=null,Wc=null,wc=El,Nc=El=0,eu=null;wc!==null&&Nc<Ml.length;Nc++){wc.index>Nc?(eu=wc,wc=null):eu=wc.sibling;var Qc=tc(jl,wc,Ml[Nc],ql);if(Qc===null){wc===null&&(wc=eu);break}Ra&&wc&&Qc.alternate===null&&ka(jl,wc),El=ol(Qc,El,Nc),Wc===null?Jl=Qc:Wc.sibling=Qc,Wc=Qc,wc=eu}if(Nc===Ml.length)return Ba(jl,wc),Jl;if(wc===null){for(;Nc<Ml.length;Nc++)wc=Fc(jl,Ml[Nc],ql),wc!==null&&(El=ol(wc,El,Nc),Wc===null?Jl=wc:Wc.sibling=wc,Wc=wc);return Jl}for(wc=qa(jl,wc);Nc<Ml.length;Nc++)eu=Ec(wc,jl,Nc,Ml[Nc],ql),eu!==null&&(Ra&&eu.alternate!==null&&wc.delete(eu.key===null?Nc:eu.key),El=ol(eu,El,Nc),Wc===null?Jl=eu:Wc.sibling=eu,Wc=eu);return Ra&&wc.forEach(function(B0){return ka(jl,B0)}),Jl}function Oc(jl,El,Ml,ql){var Jl=Xa(Ml);if(typeof Jl!="function")throw Error(oa(150));if(Ml=Jl.call(Ml),Ml==null)throw Error(oa(151));for(var Wc=Jl=null,wc=El,Nc=El=0,eu=null,Qc=Ml.next();wc!==null&&!Qc.done;Nc++,Qc=Ml.next()){wc.index>Nc?(eu=wc,wc=null):eu=wc.sibling;var B0=tc(jl,wc,Qc.value,ql);if(B0===null){wc===null&&(wc=eu);break}Ra&&wc&&B0.alternate===null&&ka(jl,wc),El=ol(B0,El,Nc),Wc===null?Jl=B0:Wc.sibling=B0,Wc=B0,wc=eu}if(Qc.done)return Ba(jl,wc),Jl;if(wc===null){for(;!Qc.done;Nc++,Qc=Ml.next())Qc=Fc(jl,Qc.value,ql),Qc!==null&&(El=ol(Qc,El,Nc),Wc===null?Jl=Qc:Wc.sibling=Qc,Wc=Qc);return Jl}for(wc=qa(jl,wc);!Qc.done;Nc++,Qc=Ml.next())Qc=Ec(wc,jl,Nc,Qc.value,ql),Qc!==null&&(Ra&&Qc.alternate!==null&&wc.delete(Qc.key===null?Nc:Qc.key),El=ol(Qc,El,Nc),Wc===null?Jl=Qc:Wc.sibling=Qc,Wc=Qc);return Ra&&wc.forEach(function(cm){return ka(jl,cm)}),Jl}return function(jl,El,Ml,ql){var Jl=typeof Ml=="object"&&Ml!==null&&Ml.type===$a&&Ml.key===null;Jl&&(Ml=Ml.props.children);var Wc=typeof Ml=="object"&&Ml!==null;if(Wc)switch(Ml.$$typeof){case ba:e:{for(Wc=Ml.key,Jl=El;Jl!==null;){if(Jl.key===Wc){switch(Jl.tag){case 7:if(Ml.type===$a){Ba(jl,Jl.sibling),El=Ka(Jl,Ml.props.children),El.return=jl,jl=El;break e}break;default:if(Jl.elementType===Ml.type){Ba(jl,Jl.sibling),El=Ka(Jl,Ml.props),El.ref=Ch(jl,Jl,Ml),El.return=jl,jl=El;break e}}Ba(jl,Jl);break}else ka(jl,Jl);Jl=Jl.sibling}Ml.type===$a?(El=_h(Ml.props.children,jl.mode,ql,Ml.key),El.return=jl,jl=El):(ql=c1(Ml.type,Ml.key,Ml.props,null,jl.mode,ql),ql.ref=Ch(jl,El,Ml),ql.return=jl,jl=ql)}return ll(jl);case Ea:e:{for(Jl=Ml.key;El!==null;){if(El.key===Jl)if(El.tag===4&&El.stateNode.containerInfo===Ml.containerInfo&&El.stateNode.implementation===Ml.implementation){Ba(jl,El.sibling),El=Ka(El,Ml.children||[]),El.return=jl,jl=El;break e}else{Ba(jl,El);break}else ka(jl,El);El=El.sibling}El=x2(Ml,jl.mode,ql),El.return=jl,jl=El}return ll(jl)}if(typeof Ml=="string"||typeof Ml=="number")return Ml=""+Ml,El!==null&&El.tag===6?(Ba(jl,El.sibling),El=Ka(El,Ml),El.return=jl,jl=El):(Ba(jl,El),El=v2(Ml,jl.mode,ql),El.return=jl,jl=El),ll(jl);if(bh(Ml))return Hc(jl,El,Ml,ql);if(Xa(Ml))return Oc(jl,El,Ml,ql);if(Wc&&lp(jl,Ml),typeof Ml>"u"&&!Jl)switch(jl.tag){case 1:case 22:case 0:case 11:case 15:throw Error(oa(152,rl(jl.type)||"Component"))}return Ba(jl,El)}}var q0=Ff(!0),D0=Ff(!1),wh={},Hu=R0(wh),Z0=R0(wh),Jh=R0(wh);function Q0(Ra){if(Ra===wh)throw Error(oa(174));return Ra}function L1(Ra,ka){switch(Yu(Jh,ka),Yu(Z0,Ra),Yu(Hu,wh),Ra=ka.nodeType,Ra){case 9:case 11:ka=(ka=ka.documentElement)?ka.namespaceURI:ec(null,"");break;default:Ra=Ra===8?ka.parentNode:ka,ka=Ra.namespaceURI||null,Ra=Ra.tagName,ka=ec(ka,Ra)}Ou(Hu),Yu(Hu,ka)}function M0(){Ou(Hu),Ou(Z0),Ou(Jh)}function eg(Ra){Q0(Jh.current);var ka=Q0(Hu.current),Ba=ec(ka,Ra.type);ka!==Ba&&(Yu(Z0,Ra),Yu(Hu,Ba))}function Y0(Ra){Z0.current===Ra&&(Ou(Hu),Ou(Z0))}var Zu=R0(0);function Nf(Ra){for(var ka=Ra;ka!==null;){if(ka.tag===13){var Ba=ka.memoizedState;if(Ba!==null&&(Ba=Ba.dehydrated,Ba===null||Ba.data==="$?"||Ba.data==="$!"))return ka}else if(ka.tag===19&&ka.memoizedProps.revealOrder!==void 0){if((ka.flags&64)!==0)return ka}else if(ka.child!==null){ka.child.return=ka,ka=ka.child;continue}if(ka===Ra)break;for(;ka.sibling===null;){if(ka.return===null||ka.return===Ra)return null;ka=ka.return}ka.sibling.return=ka.return,ka=ka.sibling}return null}var c0=null,mp=null,Gp=!1;function tg(Ra,ka){var Ba=Ap(5,null,null,0);Ba.elementType="DELETED",Ba.type="DELETED",Ba.stateNode=ka,Ba.return=Ra,Ba.flags=8,Ra.lastEffect!==null?(Ra.lastEffect.nextEffect=Ba,Ra.lastEffect=Ba):Ra.firstEffect=Ra.lastEffect=Ba}function zf(Ra,ka){switch(Ra.tag){case 5:var Ba=Ra.type;return ka=ka.nodeType!==1||Ba.toLowerCase()!==ka.nodeName.toLowerCase()?null:ka,ka!==null?(Ra.stateNode=ka,!0):!1;case 6:return ka=Ra.pendingProps===""||ka.nodeType!==3?null:ka,ka!==null?(Ra.stateNode=ka,!0):!1;case 13:return!1;default:return!1}}function Hf(Ra){if(Gp){var ka=mp;if(ka){var Ba=ka;if(!zf(Ra,ka)){if(ka=ph(Ba.nextSibling),!ka||!zf(Ra,ka)){Ra.flags=Ra.flags&-1025|2,Gp=!1,c0=Ra;return}tg(c0,Ba)}c0=Ra,mp=ph(ka.firstChild)}else Ra.flags=Ra.flags&-1025|2,Gp=!1,c0=Ra}}function ng(Ra){for(Ra=Ra.return;Ra!==null&&Ra.tag!==5&&Ra.tag!==3&&Ra.tag!==13;)Ra=Ra.return;c0=Ra}function Vf(Ra){if(Ra!==c0)return!1;if(!Gp)return ng(Ra),Gp=!0,!1;var ka=Ra.type;if(Ra.tag!==5||ka!=="head"&&ka!=="body"&&!Uh(ka,Ra.memoizedProps))for(ka=mp;ka;)tg(Ra,ka),ka=ph(ka.nextSibling);if(ng(Ra),Ra.tag===13){if(Ra=Ra.memoizedState,Ra=Ra!==null?Ra.dehydrated:null,!Ra)throw Error(oa(317));e:{for(Ra=Ra.nextSibling,ka=0;Ra;){if(Ra.nodeType===8){var Ba=Ra.data;if(Ba==="/$"){if(ka===0){mp=ph(Ra.nextSibling);break e}ka--}else Ba!=="$"&&Ba!=="$!"&&Ba!=="$?"||ka++}Ra=Ra.nextSibling}mp=null}}else mp=c0?ph(Ra.stateNode.nextSibling):null;return!0}function j1(){mp=c0=null,Gp=!1}var K0=[];function ef(){for(var Ra=0;Ra<K0.length;Ra++)K0[Ra]._workInProgressVersionPrimary=null;K0.length=0}var tf=wa.ReactCurrentDispatcher,Qd=wa.ReactCurrentBatchConfig,Sh=0,Ku=null,Md=null,ld=null,Wf=!1,Eh=!1;function Wd(){throw Error(oa(321))}function B1(Ra,ka){if(ka===null)return!1;for(var Ba=0;Ba<ka.length&&Ba<Ra.length;Ba++)if(!fu(Ra[Ba],ka[Ba]))return!1;return!0}function Gf(Ra,ka,Ba,qa,Ka,ol){if(Sh=ol,Ku=ka,ka.memoizedState=null,ka.updateQueue=null,ka.lanes=0,tf.current=Ra===null||Ra.memoizedState===null?V1:ag,Ra=Ba(qa,Ka),Eh){ol=0;do{if(Eh=!1,!(25>ol))throw Error(oa(301));ol+=1,ld=Md=null,ka.updateQueue=null,tf.current=W1,Ra=Ba(qa,Ka)}while(Eh)}if(tf.current=of,ka=Md!==null&&Md.next!==null,Sh=0,ld=Md=Ku=null,Wf=!1,ka)throw Error(oa(300));return Ra}function X0(){var Ra={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ld===null?Ku.memoizedState=ld=Ra:ld=ld.next=Ra,ld}function u0(){if(Md===null){var Ra=Ku.alternate;Ra=Ra!==null?Ra.memoizedState:null}else Ra=Md.next;var ka=ld===null?Ku.memoizedState:ld.next;if(ka!==null)ld=ka,Md=Ra;else{if(Ra===null)throw Error(oa(310));Md=Ra,Ra={memoizedState:Md.memoizedState,baseState:Md.baseState,baseQueue:Md.baseQueue,queue:Md.queue,next:null},ld===null?Ku.memoizedState=ld=Ra:ld=ld.next=Ra}return ld}function Tp(Ra,ka){return typeof ka=="function"?ka(Ra):ka}function J0(Ra){var ka=u0(),Ba=ka.queue;if(Ba===null)throw Error(oa(311));Ba.lastRenderedReducer=Ra;var qa=Md,Ka=qa.baseQueue,ol=Ba.pending;if(ol!==null){if(Ka!==null){var ll=Ka.next;Ka.next=ol.next,ol.next=ll}qa.baseQueue=Ka=ol,Ba.pending=null}if(Ka!==null){Ka=Ka.next,qa=qa.baseState;var hl=ll=ol=null,bl=Ka;do{var Hl=bl.lane;if((Sh&Hl)===Hl)hl!==null&&(hl=hl.next={lane:0,action:bl.action,eagerReducer:bl.eagerReducer,eagerState:bl.eagerState,next:null}),qa=bl.eagerReducer===Ra?bl.eagerState:Ra(qa,bl.action);else{var vc={lane:Hl,action:bl.action,eagerReducer:bl.eagerReducer,eagerState:bl.eagerState,next:null};hl===null?(ll=hl=vc,ol=qa):hl=hl.next=vc,Ku.lanes|=Hl,th|=Hl}bl=bl.next}while(bl!==null&&bl!==Ka);hl===null?ol=qa:hl.next=ll,fu(qa,ka.memoizedState)||(Td=!0),ka.memoizedState=qa,ka.baseState=ol,ka.baseQueue=hl,Ba.lastRenderedState=qa}return[ka.memoizedState,Ba.dispatch]}function nf(Ra){var ka=u0(),Ba=ka.queue;if(Ba===null)throw Error(oa(311));Ba.lastRenderedReducer=Ra;var qa=Ba.dispatch,Ka=Ba.pending,ol=ka.memoizedState;if(Ka!==null){Ba.pending=null;var ll=Ka=Ka.next;do ol=Ra(ol,ll.action),ll=ll.next;while(ll!==Ka);fu(ol,ka.memoizedState)||(Td=!0),ka.memoizedState=ol,ka.baseQueue===null&&(ka.baseState=ol),Ba.lastRenderedState=ol}return[ol,qa]}function Uf(Ra,ka,Ba){var qa=ka._getVersion;qa=qa(ka._source);var Ka=ka._workInProgressVersionPrimary;if(Ka!==null?Ra=Ka===qa:(Ra=Ra.mutableReadLanes,(Ra=(Sh&Ra)===Ra)&&(ka._workInProgressVersionPrimary=qa,K0.push(ka))),Ra)return Ba(ka._source);throw K0.push(ka),Error(oa(350))}function Xc(Ra,ka,Ba,qa){var Ka=Od;if(Ka===null)throw Error(oa(349));var ol=ka._getVersion,ll=ol(ka._source),hl=tf.current,bl=hl.useState(function(){return Uf(Ka,ka,Ba)}),Hl=bl[1],vc=bl[0];bl=ld;var Fc=Ra.memoizedState,tc=Fc.refs,Ec=tc.getSnapshot,Hc=Fc.source;Fc=Fc.subscribe;var Oc=Ku;return Ra.memoizedState={refs:tc,source:ka,subscribe:qa},hl.useEffect(function(){tc.getSnapshot=Ba,tc.setSnapshot=Hl;var jl=ol(ka._source);if(!fu(ll,jl)){jl=Ba(ka._source),fu(vc,jl)||(Hl(jl),jl=f0(Oc),Ka.mutableReadLanes|=jl&Ka.pendingLanes),jl=Ka.mutableReadLanes,Ka.entangledLanes|=jl;for(var El=Ka.entanglements,Ml=jl;0<Ml;){var ql=31-Pl(Ml),Jl=1<<ql;El[ql]|=jl,Ml&=~Jl}}},[Ba,ka,qa]),hl.useEffect(function(){return qa(ka._source,function(){var jl=tc.getSnapshot,El=tc.setSnapshot;try{El(jl(ka._source));var Ml=f0(Oc);Ka.mutableReadLanes|=Ml&Ka.pendingLanes}catch(ql){El(function(){throw ql})}})},[ka,qa]),fu(Ec,Ba)&&fu(Hc,ka)&&fu(Fc,qa)||(Ra={pending:null,dispatch:null,lastRenderedReducer:Tp,lastRenderedState:vc},Ra.dispatch=Hl=$h.bind(null,Ku,Ra),bl.queue=Ra,bl.baseQueue=null,vc=Uf(Ka,ka,Ba),bl.memoizedState=bl.baseState=vc),vc}function rg(Ra,ka,Ba){var qa=u0();return Xc(qa,Ra,ka,Ba)}function rf(Ra){var ka=X0();return typeof Ra=="function"&&(Ra=Ra()),ka.memoizedState=ka.baseState=Ra,Ra=ka.queue={pending:null,dispatch:null,lastRenderedReducer:Tp,lastRenderedState:Ra},Ra=Ra.dispatch=$h.bind(null,Ku,Ra),[ka.memoizedState,Ra]}function O0(Ra,ka,Ba,qa){return Ra={tag:Ra,create:ka,destroy:Ba,deps:qa,next:null},ka=Ku.updateQueue,ka===null?(ka={lastEffect:null},Ku.updateQueue=ka,ka.lastEffect=Ra.next=Ra):(Ba=ka.lastEffect,Ba===null?ka.lastEffect=Ra.next=Ra:(qa=Ba.next,Ba.next=Ra,Ra.next=qa,ka.lastEffect=Ra)),Ra}function F1(Ra){var ka=X0();return Ra={current:Ra},ka.memoizedState=Ra}function qf(){return u0().memoizedState}function N1(Ra,ka,Ba,qa){var Ka=X0();Ku.flags|=Ra,Ka.memoizedState=O0(1|ka,Ba,void 0,qa===void 0?null:qa)}function Yd(Ra,ka,Ba,qa){var Ka=u0();qa=qa===void 0?null:qa;var ol=void 0;if(Md!==null){var ll=Md.memoizedState;if(ol=ll.destroy,qa!==null&&B1(qa,ll.deps)){O0(ka,Ba,ol,qa);return}}Ku.flags|=Ra,Ka.memoizedState=O0(1|ka,Ba,ol,qa)}function og(Ra,ka){return N1(516,4,Ra,ka)}function eh(Ra,ka){return Yd(516,4,Ra,ka)}function Zf(Ra,ka){return Yd(4,2,Ra,ka)}function z1(Ra,ka){if(typeof ka=="function")return Ra=Ra(),ka(Ra),function(){ka(null)};if(ka!=null)return Ra=Ra(),ka.current=Ra,function(){ka.current=null}}function H1(Ra,ka,Ba){return Ba=Ba!=null?Ba.concat([Ra]):null,Yd(4,2,z1.bind(null,ka,Ra),Ba)}function Gd(){}function d0(Ra,ka){var Ba=u0();ka=ka===void 0?null:ka;var qa=Ba.memoizedState;return qa!==null&&ka!==null&&B1(ka,qa[1])?qa[0]:(Ba.memoizedState=[Ra,ka],Ra)}function Qf(Ra,ka){var Ba=u0();ka=ka===void 0?null:ka;var qa=Ba.memoizedState;return qa!==null&&ka!==null&&B1(ka,qa[1])?qa[0]:(Ra=Ra(),Ba.memoizedState=[Ra,ka],Ra)}function ig(Ra,ka){var Ba=gh();W0(98>Ba?98:Ba,function(){Ra(!0)}),W0(97<Ba?97:Ba,function(){var qa=Qd.transition;Qd.transition=1;try{Ra(!1),ka()}finally{Qd.transition=qa}})}function $h(Ra,ka,Ba){var qa=cp(),Ka=f0(Ra),ol={lane:Ka,action:Ba,eagerReducer:null,eagerState:null,next:null},ll=ka.pending;if(ll===null?ol.next=ol:(ol.next=ll.next,ll.next=ol),ka.pending=ol,ll=Ra.alternate,Ra===Ku||ll!==null&&ll===Ku)Eh=Wf=!0;else{if(Ra.lanes===0&&(ll===null||ll.lanes===0)&&(ll=ka.lastRenderedReducer,ll!==null))try{var hl=ka.lastRenderedState,bl=ll(hl,Ba);if(ol.eagerReducer=ll,ol.eagerState=bl,fu(bl,hl))return}catch{}finally{}g0(Ra,Ka,qa)}}var of={readContext:gp,useCallback:Wd,useContext:Wd,useEffect:Wd,useImperativeHandle:Wd,useLayoutEffect:Wd,useMemo:Wd,useReducer:Wd,useRef:Wd,useState:Wd,useDebugValue:Wd,useDeferredValue:Wd,useTransition:Wd,useMutableSource:Wd,useOpaqueIdentifier:Wd,unstable_isNewReconciler:!1},V1={readContext:gp,useCallback:function(Ra,ka){return X0().memoizedState=[Ra,ka===void 0?null:ka],Ra},useContext:gp,useEffect:og,useImperativeHandle:function(Ra,ka,Ba){return Ba=Ba!=null?Ba.concat([Ra]):null,N1(4,2,z1.bind(null,ka,Ra),Ba)},useLayoutEffect:function(Ra,ka){return N1(4,2,Ra,ka)},useMemo:function(Ra,ka){var Ba=X0();return ka=ka===void 0?null:ka,Ra=Ra(),Ba.memoizedState=[Ra,ka],Ra},useReducer:function(Ra,ka,Ba){var qa=X0();return ka=Ba!==void 0?Ba(ka):ka,qa.memoizedState=qa.baseState=ka,Ra=qa.queue={pending:null,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:ka},Ra=Ra.dispatch=$h.bind(null,Ku,Ra),[qa.memoizedState,Ra]},useRef:F1,useState:rf,useDebugValue:Gd,useDeferredValue:function(Ra){var ka=rf(Ra),Ba=ka[0],qa=ka[1];return og(function(){var Ka=Qd.transition;Qd.transition=1;try{qa(Ra)}finally{Qd.transition=Ka}},[Ra]),Ba},useTransition:function(){var Ra=rf(!1),ka=Ra[0];return Ra=ig.bind(null,Ra[1]),F1(Ra),[Ra,ka]},useMutableSource:function(Ra,ka,Ba){var qa=X0();return qa.memoizedState={refs:{getSnapshot:ka,setSnapshot:null},source:Ra,subscribe:Ba},Xc(qa,Ra,ka,Ba)},useOpaqueIdentifier:function(){if(Gp){var Ra=!1,ka=zg(function(){throw Ra||(Ra=!0,Ba("r:"+($d++).toString(36))),Error(oa(355))}),Ba=rf(ka)[1];return(Ku.mode&2)===0&&(Ku.flags|=516,O0(5,function(){Ba("r:"+($d++).toString(36))},void 0,null)),ka}return ka="r:"+($d++).toString(36),rf(ka),ka},unstable_isNewReconciler:!1},ag={readContext:gp,useCallback:d0,useContext:gp,useEffect:eh,useImperativeHandle:H1,useLayoutEffect:Zf,useMemo:Qf,useReducer:J0,useRef:qf,useState:function(){return J0(Tp)},useDebugValue:Gd,useDeferredValue:function(Ra){var ka=J0(Tp),Ba=ka[0],qa=ka[1];return eh(function(){var Ka=Qd.transition;Qd.transition=1;try{qa(Ra)}finally{Qd.transition=Ka}},[Ra]),Ba},useTransition:function(){var Ra=J0(Tp)[0];return[qf().current,Ra]},useMutableSource:rg,useOpaqueIdentifier:function(){return J0(Tp)[0]},unstable_isNewReconciler:!1},W1={readContext:gp,useCallback:d0,useContext:gp,useEffect:eh,useImperativeHandle:H1,useLayoutEffect:Zf,useMemo:Qf,useReducer:nf,useRef:qf,useState:function(){return nf(Tp)},useDebugValue:Gd,useDeferredValue:function(Ra){var ka=nf(Tp),Ba=ka[0],qa=ka[1];return eh(function(){var Ka=Qd.transition;Qd.transition=1;try{qa(Ra)}finally{Qd.transition=Ka}},[Ra]),Ba},useTransition:function(){var Ra=nf(Tp)[0];return[qf().current,Ra]},useMutableSource:rg,useOpaqueIdentifier:function(){return nf(Tp)[0]},unstable_isNewReconciler:!1},G1=wa.ReactCurrentOwner,Td=!1;function Kd(Ra,ka,Ba,qa){ka.child=Ra===null?D0(ka,null,Ba,qa):q0(ka,Ra.child,Ba,qa)}function p0(Ra,ka,Ba,qa,Ka){Ba=Ba.render;var ol=ka.ref;return U0(ka,Ka),qa=Gf(Ra,ka,Ba,qa,ol,Ka),Ra!==null&&!Td?(ka.updateQueue=Ra.updateQueue,ka.flags&=-517,Ra.lanes&=~Ka,Xd(Ra,ka,Ka)):(ka.flags|=1,Kd(Ra,ka,qa,Ka),ka.child)}function U1(Ra,ka,Ba,qa,Ka,ol){if(Ra===null){var ll=Ba.type;return typeof ll=="function"&&!m2(ll)&&ll.defaultProps===void 0&&Ba.compare===null&&Ba.defaultProps===void 0?(ka.tag=15,ka.type=ll,q1(Ra,ka,ll,qa,Ka,ol)):(Ra=c1(Ba.type,null,qa,ka,ka.mode,ol),Ra.ref=ka.ref,Ra.return=ka,ka.child=Ra)}return ll=Ra.child,(Ka&ol)===0&&(Ka=ll.memoizedProps,Ba=Ba.compare,Ba=Ba!==null?Ba:H0,Ba(Ka,qa)&&Ra.ref===ka.ref)?Xd(Ra,ka,ol):(ka.flags|=1,Ra=j0(ll,qa),Ra.ref=ka.ref,Ra.return=ka,ka.child=Ra)}function q1(Ra,ka,Ba,qa,Ka,ol){if(Ra!==null&&H0(Ra.memoizedProps,qa)&&Ra.ref===ka.ref)if(Td=!1,(ol&Ka)!==0)(Ra.flags&16384)!==0&&(Td=!0);else return ka.lanes=Ra.lanes,Xd(Ra,ka,ol);return Z1(Ra,ka,Ba,qa,ol)}function af(Ra,ka,Ba){var qa=ka.pendingProps,Ka=qa.children,ol=Ra!==null?Ra.memoizedState:null;if(qa.mode==="hidden"||qa.mode==="unstable-defer-without-hiding")if((ka.mode&4)===0)ka.memoizedState={baseLanes:0},yf(ka,Ba);else if((Ba&1073741824)!==0)ka.memoizedState={baseLanes:0},yf(ka,ol!==null?ol.baseLanes:Ba);else return Ra=ol!==null?ol.baseLanes|Ba:Ba,ka.lanes=ka.childLanes=1073741824,ka.memoizedState={baseLanes:Ra},yf(ka,Ra),null;else ol!==null?(qa=ol.baseLanes|Ba,ka.memoizedState=null):qa=Ba,yf(ka,qa);return Kd(Ra,ka,Ka,Ba),ka.child}function sg(Ra,ka){var Ba=ka.ref;(Ra===null&&Ba!==null||Ra!==null&&Ra.ref!==Ba)&&(ka.flags|=128)}function Z1(Ra,ka,Ba,qa,Ka){var ol=md(Ba)?P0:gd.current;return ol=cl(ka,ol),U0(ka,Ka),Ba=Gf(Ra,ka,Ba,qa,ol,Ka),Ra!==null&&!Td?(ka.updateQueue=Ra.updateQueue,ka.flags&=-517,Ra.lanes&=~Ka,Xd(Ra,ka,Ka)):(ka.flags|=1,Kd(Ra,ka,Ba,Ka),ka.child)}function lg(Ra,ka,Ba,qa,Ka){if(md(Ba)){var ol=!0;Mf(ka)}else ol=!1;if(U0(ka,Ka),ka.stateNode===null)Ra!==null&&(Ra.alternate=null,ka.alternate=null,ka.flags|=2),J2(ka,Ba,qa),xd(ka,Ba,qa,Ka),qa=!0;else if(Ra===null){var ll=ka.stateNode,hl=ka.memoizedProps;ll.props=hl;var bl=ll.context,Hl=Ba.contextType;typeof Hl=="object"&&Hl!==null?Hl=gp(Hl):(Hl=md(Ba)?P0:gd.current,Hl=cl(ka,Hl));var vc=Ba.getDerivedStateFromProps,Fc=typeof vc=="function"||typeof ll.getSnapshotBeforeUpdate=="function";Fc||typeof ll.UNSAFE_componentWillReceiveProps!="function"&&typeof ll.componentWillReceiveProps!="function"||(hl!==qa||bl!==Hl)&&O1(ka,ll,qa,Hl),Nd=!1;var tc=ka.memoizedState;ll.state=tc,yh(ka,qa,ll,Ka),bl=ka.memoizedState,hl!==qa||tc!==bl||Rd.current||Nd?(typeof vc=="function"&&(Kh(ka,Ba,vc,qa),bl=ka.memoizedState),(hl=Nd||Xh(ka,Ba,hl,qa,tc,bl,Hl))?(Fc||typeof ll.UNSAFE_componentWillMount!="function"&&typeof ll.componentWillMount!="function"||(typeof ll.componentWillMount=="function"&&ll.componentWillMount(),typeof ll.UNSAFE_componentWillMount=="function"&&ll.UNSAFE_componentWillMount()),typeof ll.componentDidMount=="function"&&(ka.flags|=4)):(typeof ll.componentDidMount=="function"&&(ka.flags|=4),ka.memoizedProps=qa,ka.memoizedState=bl),ll.props=qa,ll.state=bl,ll.context=Hl,qa=hl):(typeof ll.componentDidMount=="function"&&(ka.flags|=4),qa=!1)}else{ll=ka.stateNode,I0(Ra,ka),hl=ka.memoizedProps,Hl=ka.type===ka.elementType?hl:fp(ka.type,hl),ll.props=Hl,Fc=ka.pendingProps,tc=ll.context,bl=Ba.contextType,typeof bl=="object"&&bl!==null?bl=gp(bl):(bl=md(Ba)?P0:gd.current,bl=cl(ka,bl));var Ec=Ba.getDerivedStateFromProps;(vc=typeof Ec=="function"||typeof ll.getSnapshotBeforeUpdate=="function")||typeof ll.UNSAFE_componentWillReceiveProps!="function"&&typeof ll.componentWillReceiveProps!="function"||(hl!==Fc||tc!==bl)&&O1(ka,ll,qa,bl),Nd=!1,tc=ka.memoizedState,ll.state=tc,yh(ka,qa,ll,Ka);var Hc=ka.memoizedState;hl!==Fc||tc!==Hc||Rd.current||Nd?(typeof Ec=="function"&&(Kh(ka,Ba,Ec,qa),Hc=ka.memoizedState),(Hl=Nd||Xh(ka,Ba,Hl,qa,tc,Hc,bl))?(vc||typeof ll.UNSAFE_componentWillUpdate!="function"&&typeof ll.componentWillUpdate!="function"||(typeof ll.componentWillUpdate=="function"&&ll.componentWillUpdate(qa,Hc,bl),typeof ll.UNSAFE_componentWillUpdate=="function"&&ll.UNSAFE_componentWillUpdate(qa,Hc,bl)),typeof ll.componentDidUpdate=="function"&&(ka.flags|=4),typeof ll.getSnapshotBeforeUpdate=="function"&&(ka.flags|=256)):(typeof ll.componentDidUpdate!="function"||hl===Ra.memoizedProps&&tc===Ra.memoizedState||(ka.flags|=4),typeof ll.getSnapshotBeforeUpdate!="function"||hl===Ra.memoizedProps&&tc===Ra.memoizedState||(ka.flags|=256),ka.memoizedProps=qa,ka.memoizedState=Hc),ll.props=qa,ll.state=Hc,ll.context=bl,qa=Hl):(typeof ll.componentDidUpdate!="function"||hl===Ra.memoizedProps&&tc===Ra.memoizedState||(ka.flags|=4),typeof ll.getSnapshotBeforeUpdate!="function"||hl===Ra.memoizedProps&&tc===Ra.memoizedState||(ka.flags|=256),qa=!1)}return Yf(Ra,ka,Ba,qa,ol,Ka)}function Yf(Ra,ka,Ba,qa,Ka,ol){sg(Ra,ka);var ll=(ka.flags&64)!==0;if(!qa&&!ll)return Ka&&U2(ka,Ba,!1),Xd(Ra,ka,ol);qa=ka.stateNode,G1.current=ka;var hl=ll&&typeof Ba.getDerivedStateFromError!="function"?null:qa.render();return ka.flags|=1,Ra!==null&&ll?(ka.child=q0(ka,Ra.child,null,ol),ka.child=q0(ka,null,hl,ol)):Kd(Ra,ka,hl,ol),ka.memoizedState=qa.state,Ka&&U2(ka,Ba,!0),ka.child}function Q1(Ra){var ka=Ra.stateNode;ka.pendingContext?ap(Ra,ka.pendingContext,ka.pendingContext!==ka.context):ka.context&&ap(Ra,ka.context,!1),L1(Ra,ka.containerInfo)}var Kf={dehydrated:null,retryLane:0};function Y1(Ra,ka,Ba){var qa=ka.pendingProps,Ka=Zu.current,ol=!1,ll;return(ll=(ka.flags&64)!==0)||(ll=Ra!==null&&Ra.memoizedState===null?!1:(Ka&2)!==0),ll?(ol=!0,ka.flags&=-65):Ra!==null&&Ra.memoizedState===null||qa.fallback===void 0||qa.unstable_avoidThisFallback===!0||(Ka|=1),Yu(Zu,Ka&1),Ra===null?(qa.fallback!==void 0&&Hf(ka),Ra=qa.children,Ka=qa.fallback,ol?(Ra=K1(ka,Ra,Ka,Ba),ka.child.memoizedState={baseLanes:Ba},ka.memoizedState=Kf,Ra):typeof qa.unstable_expectedLoadTime=="number"?(Ra=K1(ka,Ra,Ka,Ba),ka.child.memoizedState={baseLanes:Ba},ka.memoizedState=Kf,ka.lanes=33554432,Ra):(Ba=ep({mode:"visible",children:Ra},ka.mode,Ba,null),Ba.return=ka,ka.child=Ba)):Ra.memoizedState!==null?ol?(qa=Pp(Ra,ka,qa.children,qa.fallback,Ba),ol=ka.child,Ka=Ra.child.memoizedState,ol.memoizedState=Ka===null?{baseLanes:Ba}:{baseLanes:Ka.baseLanes|Ba},ol.childLanes=Ra.childLanes&~Ba,ka.memoizedState=Kf,qa):(Ba=Ud(Ra,ka,qa.children,Ba),ka.memoizedState=null,Ba):ol?(qa=Pp(Ra,ka,qa.children,qa.fallback,Ba),ol=ka.child,Ka=Ra.child.memoizedState,ol.memoizedState=Ka===null?{baseLanes:Ba}:{baseLanes:Ka.baseLanes|Ba},ol.childLanes=Ra.childLanes&~Ba,ka.memoizedState=Kf,qa):(Ba=Ud(Ra,ka,qa.children,Ba),ka.memoizedState=null,Ba)}function K1(Ra,ka,Ba,qa){var Ka=Ra.mode,ol=Ra.child;return ka={mode:"hidden",children:ka},(Ka&2)===0&&ol!==null?(ol.childLanes=0,ol.pendingProps=ka):ol=ep(ka,Ka,0,null),Ba=_h(Ba,Ka,qa,null),ol.return=Ra,Ba.return=Ra,ol.sibling=Ba,Ra.child=ol,Ba}function Ud(Ra,ka,Ba,qa){var Ka=Ra.child;return Ra=Ka.sibling,Ba=j0(Ka,{mode:"visible",children:Ba}),(ka.mode&2)===0&&(Ba.lanes=qa),Ba.return=ka,Ba.sibling=null,Ra!==null&&(Ra.nextEffect=null,Ra.flags=8,ka.firstEffect=ka.lastEffect=Ra),ka.child=Ba}function Pp(Ra,ka,Ba,qa,Ka){var ol=ka.mode,ll=Ra.child;Ra=ll.sibling;var hl={mode:"hidden",children:Ba};return(ol&2)===0&&ka.child!==ll?(Ba=ka.child,Ba.childLanes=0,Ba.pendingProps=hl,ll=Ba.lastEffect,ll!==null?(ka.firstEffect=Ba.firstEffect,ka.lastEffect=ll,ll.nextEffect=null):ka.firstEffect=ka.lastEffect=null):Ba=j0(ll,hl),Ra!==null?qa=j0(Ra,qa):(qa=_h(qa,ol,Ka,null),qa.flags|=2),qa.return=ka,Ba.return=ka,Ba.sibling=qa,ka.child=Ba,qa}function cg(Ra,ka){Ra.lanes|=ka;var Ba=Ra.alternate;Ba!==null&&(Ba.lanes|=ka),X2(Ra.return,ka)}function X1(Ra,ka,Ba,qa,Ka,ol){var ll=Ra.memoizedState;ll===null?Ra.memoizedState={isBackwards:ka,rendering:null,renderingStartTime:0,last:qa,tail:Ba,tailMode:Ka,lastEffect:ol}:(ll.isBackwards=ka,ll.rendering=null,ll.renderingStartTime=0,ll.last=qa,ll.tail=Ba,ll.tailMode=Ka,ll.lastEffect=ol)}function sf(Ra,ka,Ba){var qa=ka.pendingProps,Ka=qa.revealOrder,ol=qa.tail;if(Kd(Ra,ka,qa.children,Ba),qa=Zu.current,(qa&2)!==0)qa=qa&1|2,ka.flags|=64;else{if(Ra!==null&&(Ra.flags&64)!==0)e:for(Ra=ka.child;Ra!==null;){if(Ra.tag===13)Ra.memoizedState!==null&&cg(Ra,Ba);else if(Ra.tag===19)cg(Ra,Ba);else if(Ra.child!==null){Ra.child.return=Ra,Ra=Ra.child;continue}if(Ra===ka)break e;for(;Ra.sibling===null;){if(Ra.return===null||Ra.return===ka)break e;Ra=Ra.return}Ra.sibling.return=Ra.return,Ra=Ra.sibling}qa&=1}if(Yu(Zu,qa),(ka.mode&2)===0)ka.memoizedState=null;else switch(Ka){case"forwards":for(Ba=ka.child,Ka=null;Ba!==null;)Ra=Ba.alternate,Ra!==null&&Nf(Ra)===null&&(Ka=Ba),Ba=Ba.sibling;Ba=Ka,Ba===null?(Ka=ka.child,ka.child=null):(Ka=Ba.sibling,Ba.sibling=null),X1(ka,!1,Ka,Ba,ol,ka.lastEffect);break;case"backwards":for(Ba=null,Ka=ka.child,ka.child=null;Ka!==null;){if(Ra=Ka.alternate,Ra!==null&&Nf(Ra)===null){ka.child=Ka;break}Ra=Ka.sibling,Ka.sibling=Ba,Ba=Ka,Ka=Ra}X1(ka,!0,Ba,null,ol,ka.lastEffect);break;case"together":X1(ka,!1,null,null,void 0,ka.lastEffect);break;default:ka.memoizedState=null}return ka.child}function Xd(Ra,ka,Ba){if(Ra!==null&&(ka.dependencies=Ra.dependencies),th|=ka.lanes,(Ba&ka.childLanes)!==0){if(Ra!==null&&ka.child!==Ra.child)throw Error(oa(153));if(ka.child!==null){for(Ra=ka.child,Ba=j0(Ra,Ra.pendingProps),ka.child=Ba,Ba.return=ka;Ra.sibling!==null;)Ra=Ra.sibling,Ba=Ba.sibling=j0(Ra,Ra.pendingProps),Ba.return=ka;Ba.sibling=null}return ka.child}return null}var J1,Xf,ug,e2;J1=function(Ra,ka){for(var Ba=ka.child;Ba!==null;){if(Ba.tag===5||Ba.tag===6)Ra.appendChild(Ba.stateNode);else if(Ba.tag!==4&&Ba.child!==null){Ba.child.return=Ba,Ba=Ba.child;continue}if(Ba===ka)break;for(;Ba.sibling===null;){if(Ba.return===null||Ba.return===ka)return;Ba=Ba.return}Ba.sibling.return=Ba.return,Ba=Ba.sibling}},Xf=function(){},ug=function(Ra,ka,Ba,qa){var Ka=Ra.memoizedProps;if(Ka!==qa){Ra=ka.stateNode,Q0(Hu.current);var ol=null;switch(Ba){case"input":Ka=Il(Ra,Ka),qa=Il(Ra,qa),ol=[];break;case"option":Ka=zl(Ra,Ka),qa=zl(Ra,qa),ol=[];break;case"select":Ka=na({},Ka,{value:void 0}),qa=na({},qa,{value:void 0}),ol=[];break;case"textarea":Ka=gl(Ra,Ka),qa=gl(Ra,qa),ol=[];break;default:typeof Ka.onClick!="function"&&typeof qa.onClick=="function"&&(Ra.onclick=If)}Ic(Ba,qa);var ll;Ba=null;for(Hl in Ka)if(!qa.hasOwnProperty(Hl)&&Ka.hasOwnProperty(Hl)&&Ka[Hl]!=null)if(Hl==="style"){var hl=Ka[Hl];for(ll in hl)hl.hasOwnProperty(ll)&&(Ba||(Ba={}),Ba[ll]="")}else Hl!=="dangerouslySetInnerHTML"&&Hl!=="children"&&Hl!=="suppressContentEditableWarning"&&Hl!=="suppressHydrationWarning"&&Hl!=="autoFocus"&&(sa.hasOwnProperty(Hl)?ol||(ol=[]):(ol=ol||[]).push(Hl,null));for(Hl in qa){var bl=qa[Hl];if(hl=Ka?.[Hl],qa.hasOwnProperty(Hl)&&bl!==hl&&(bl!=null||hl!=null))if(Hl==="style")if(hl){for(ll in hl)!hl.hasOwnProperty(ll)||bl&&bl.hasOwnProperty(ll)||(Ba||(Ba={}),Ba[ll]="");for(ll in bl)bl.hasOwnProperty(ll)&&hl[ll]!==bl[ll]&&(Ba||(Ba={}),Ba[ll]=bl[ll])}else Ba||(ol||(ol=[]),ol.push(Hl,Ba)),Ba=bl;else Hl==="dangerouslySetInnerHTML"?(bl=bl?bl.__html:void 0,hl=hl?hl.__html:void 0,bl!=null&&hl!==bl&&(ol=ol||[]).push(Hl,bl)):Hl==="children"?typeof bl!="string"&&typeof bl!="number"||(ol=ol||[]).push(Hl,""+bl):Hl!=="suppressContentEditableWarning"&&Hl!=="suppressHydrationWarning"&&(sa.hasOwnProperty(Hl)?(bl!=null&&Hl==="onScroll"&&Ru("scroll",Ra),ol||hl===bl||(ol=[])):typeof bl=="object"&&bl!==null&&bl.$$typeof===Ha?bl.toString():(ol=ol||[]).push(Hl,bl))}Ba&&(ol=ol||[]).push("style",Ba);var Hl=ol;(ka.updateQueue=Hl)&&(ka.flags|=4)}},e2=function(Ra,ka,Ba,qa){Ba!==qa&&(ka.flags|=4)};function Up(Ra,ka){if(!Gp)switch(Ra.tailMode){case"hidden":ka=Ra.tail;for(var Ba=null;ka!==null;)ka.alternate!==null&&(Ba=ka),ka=ka.sibling;Ba===null?Ra.tail=null:Ba.sibling=null;break;case"collapsed":Ba=Ra.tail;for(var qa=null;Ba!==null;)Ba.alternate!==null&&(qa=Ba),Ba=Ba.sibling;qa===null?ka||Ra.tail===null?Ra.tail=null:Ra.tail.sibling=null:qa.sibling=null}}function lf(Ra,ka,Ba){var qa=ka.pendingProps;switch(ka.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return md(ka.type)&&V0(),null;case 3:return M0(),Ou(Rd),Ou(gd),ef(),qa=ka.stateNode,qa.pendingContext&&(qa.context=qa.pendingContext,qa.pendingContext=null),(Ra===null||Ra.child===null)&&(Vf(ka)?ka.flags|=4:qa.hydrate||(ka.flags|=256)),Xf(ka),null;case 5:Y0(ka);var Ka=Q0(Jh.current);if(Ba=ka.type,Ra!==null&&ka.stateNode!=null)ug(Ra,ka,Ba,qa,Ka),Ra.ref!==ka.ref&&(ka.flags|=128);else{if(!qa){if(ka.stateNode===null)throw Error(oa(166));return null}if(Ra=Q0(Hu.current),Vf(ka)){qa=ka.stateNode,Ba=ka.type;var ol=ka.memoizedProps;switch(qa[i0]=ka,qa[Df]=ol,Ba){case"dialog":Ru("cancel",qa),Ru("close",qa);break;case"iframe":case"object":case"embed":Ru("load",qa);break;case"video":case"audio":for(Ra=0;Ra<zh.length;Ra++)Ru(zh[Ra],qa);break;case"source":Ru("error",qa);break;case"img":case"image":case"link":Ru("error",qa),Ru("load",qa);break;case"details":Ru("toggle",qa);break;case"input":Ol(qa,ol),Ru("invalid",qa);break;case"select":qa._wrapperState={wasMultiple:!!ol.multiple},Ru("invalid",qa);break;case"textarea":xl(qa,ol),Ru("invalid",qa)}Ic(Ba,ol),Ra=null;for(var ll in ol)ol.hasOwnProperty(ll)&&(Ka=ol[ll],ll==="children"?typeof Ka=="string"?qa.textContent!==Ka&&(Ra=["children",Ka]):typeof Ka=="number"&&qa.textContent!==""+Ka&&(Ra=["children",""+Ka]):sa.hasOwnProperty(ll)&&Ka!=null&&ll==="onScroll"&&Ru("scroll",qa));switch(Ba){case"input":ml(qa),Wl(qa,ol,!0);break;case"textarea":ml(qa),$l(qa);break;case"select":case"option":break;default:typeof ol.onClick=="function"&&(qa.onclick=If)}qa=Ra,ka.updateQueue=qa,qa!==null&&(ka.flags|=4)}else{switch(ll=Ka.nodeType===9?Ka:Ka.ownerDocument,Ra===Bl.html&&(Ra=Ul(Ba)),Ra===Bl.html?Ba==="script"?(Ra=ll.createElement("div"),Ra.innerHTML="<script><\/script>",Ra=Ra.removeChild(Ra.firstChild)):typeof qa.is=="string"?Ra=ll.createElement(Ba,{is:qa.is}):(Ra=ll.createElement(Ba),Ba==="select"&&(ll=Ra,qa.multiple?ll.multiple=!0:qa.size&&(ll.size=qa.size))):Ra=ll.createElementNS(Ra,Ba),Ra[i0]=ka,Ra[Df]=qa,J1(Ra,ka,!1,!1),ka.stateNode=Ra,ll=bc(Ba,qa),Ba){case"dialog":Ru("cancel",Ra),Ru("close",Ra),Ka=qa;break;case"iframe":case"object":case"embed":Ru("load",Ra),Ka=qa;break;case"video":case"audio":for(Ka=0;Ka<zh.length;Ka++)Ru(zh[Ka],Ra);Ka=qa;break;case"source":Ru("error",Ra),Ka=qa;break;case"img":case"image":case"link":Ru("error",Ra),Ru("load",Ra),Ka=qa;break;case"details":Ru("toggle",Ra),Ka=qa;break;case"input":Ol(Ra,qa),Ka=Il(Ra,qa),Ru("invalid",Ra);break;case"option":Ka=zl(Ra,qa);break;case"select":Ra._wrapperState={wasMultiple:!!qa.multiple},Ka=na({},qa,{value:void 0}),Ru("invalid",Ra);break;case"textarea":xl(Ra,qa),Ka=gl(Ra,qa),Ru("invalid",Ra);break;default:Ka=qa}Ic(Ba,Ka);var hl=Ka;for(ol in hl)if(hl.hasOwnProperty(ol)){var bl=hl[ol];ol==="style"?gc(Ra,bl):ol==="dangerouslySetInnerHTML"?(bl=bl?bl.__html:void 0,bl!=null&&rc(Ra,bl)):ol==="children"?typeof bl=="string"?(Ba!=="textarea"||bl!=="")&&wl(Ra,bl):typeof bl=="number"&&wl(Ra,""+bl):ol!=="suppressContentEditableWarning"&&ol!=="suppressHydrationWarning"&&ol!=="autoFocus"&&(sa.hasOwnProperty(ol)?bl!=null&&ol==="onScroll"&&Ru("scroll",Ra):bl!=null&&Sa(Ra,ol,bl,ll))}switch(Ba){case"input":ml(Ra),Wl(Ra,qa,!1);break;case"textarea":ml(Ra),$l(Ra);break;case"option":qa.value!=null&&Ra.setAttribute("value",""+sl(qa.value));break;case"select":Ra.multiple=!!qa.multiple,ol=qa.value,ol!=null?Al(Ra,!!qa.multiple,ol,!1):qa.defaultValue!=null&&Al(Ra,!!qa.multiple,qa.defaultValue,!0);break;default:typeof Ka.onClick=="function"&&(Ra.onclick=If)}Gh(Ba,qa)&&(ka.flags|=4)}ka.ref!==null&&(ka.flags|=128)}return null;case 6:if(Ra&&ka.stateNode!=null)e2(Ra,ka,Ra.memoizedProps,qa);else{if(typeof qa!="string"&&ka.stateNode===null)throw Error(oa(166));Ba=Q0(Jh.current),Q0(Hu.current),Vf(ka)?(qa=ka.stateNode,Ba=ka.memoizedProps,qa[i0]=ka,qa.nodeValue!==Ba&&(ka.flags|=4)):(qa=(Ba.nodeType===9?Ba:Ba.ownerDocument).createTextNode(qa),qa[i0]=ka,ka.stateNode=qa)}return null;case 13:return Ou(Zu),qa=ka.memoizedState,(ka.flags&64)!==0?(ka.lanes=Ba,ka):(qa=qa!==null,Ba=!1,Ra===null?ka.memoizedProps.fallback!==void 0&&Vf(ka):Ba=Ra.memoizedState!==null,qa&&!Ba&&(ka.mode&2)!==0&&(Ra===null&&ka.memoizedProps.unstable_avoidThisFallback!==!0||(Zu.current&1)!==0?yd===0&&(yd=3):((yd===0||yd===3)&&(yd=4),Od===null||(th&134217727)===0&&(nh&134217727)===0||Yp(Od,td))),(qa||Ba)&&(ka.flags|=4),null);case 4:return M0(),Xf(ka),Ra===null&&S1(ka.stateNode.containerInfo),null;case 10:return xh(ka),null;case 17:return md(ka.type)&&V0(),null;case 19:if(Ou(Zu),qa=ka.memoizedState,qa===null)return null;if(ol=(ka.flags&64)!==0,ll=qa.rendering,ll===null)if(ol)Up(qa,!1);else{if(yd!==0||Ra!==null&&(Ra.flags&64)!==0)for(Ra=ka.child;Ra!==null;){if(ll=Nf(Ra),ll!==null){for(ka.flags|=64,Up(qa,!1),ol=ll.updateQueue,ol!==null&&(ka.updateQueue=ol,ka.flags|=4),qa.lastEffect===null&&(ka.firstEffect=null),ka.lastEffect=qa.lastEffect,qa=Ba,Ba=ka.child;Ba!==null;)ol=Ba,Ra=qa,ol.flags&=2,ol.nextEffect=null,ol.firstEffect=null,ol.lastEffect=null,ll=ol.alternate,ll===null?(ol.childLanes=0,ol.lanes=Ra,ol.child=null,ol.memoizedProps=null,ol.memoizedState=null,ol.updateQueue=null,ol.dependencies=null,ol.stateNode=null):(ol.childLanes=ll.childLanes,ol.lanes=ll.lanes,ol.child=ll.child,ol.memoizedProps=ll.memoizedProps,ol.memoizedState=ll.memoizedState,ol.updateQueue=ll.updateQueue,ol.type=ll.type,Ra=ll.dependencies,ol.dependencies=Ra===null?null:{lanes:Ra.lanes,firstContext:Ra.firstContext}),Ba=Ba.sibling;return Yu(Zu,Zu.current&1|2),ka.child}Ra=Ra.sibling}qa.tail!==null&&Fd()>o1&&(ka.flags|=64,ol=!0,Up(qa,!1),ka.lanes=33554432)}else{if(!ol)if(Ra=Nf(ll),Ra!==null){if(ka.flags|=64,ol=!0,Ba=Ra.updateQueue,Ba!==null&&(ka.updateQueue=Ba,ka.flags|=4),Up(qa,!0),qa.tail===null&&qa.tailMode==="hidden"&&!ll.alternate&&!Gp)return ka=ka.lastEffect=qa.lastEffect,ka!==null&&(ka.nextEffect=null),null}else 2*Fd()-qa.renderingStartTime>o1&&Ba!==1073741824&&(ka.flags|=64,ol=!0,Up(qa,!1),ka.lanes=33554432);qa.isBackwards?(ll.sibling=ka.child,ka.child=ll):(Ba=qa.last,Ba!==null?Ba.sibling=ll:ka.child=ll,qa.last=ll)}return qa.tail!==null?(Ba=qa.tail,qa.rendering=Ba,qa.tail=Ba.sibling,qa.lastEffect=ka.lastEffect,qa.renderingStartTime=Fd(),Ba.sibling=null,ka=Zu.current,Yu(Zu,ol?ka&1|2:ka&1),Ba):null;case 23:case 24:return xp(),Ra!==null&&Ra.memoizedState!==null!=(ka.memoizedState!==null)&&qa.mode!=="unstable-defer-without-hiding"&&(ka.flags|=4),null}throw Error(oa(156,ka.tag))}function qg(Ra){switch(Ra.tag){case 1:md(Ra.type)&&V0();var ka=Ra.flags;return ka&4096?(Ra.flags=ka&-4097|64,Ra):null;case 3:if(M0(),Ou(Rd),Ou(gd),ef(),ka=Ra.flags,(ka&64)!==0)throw Error(oa(285));return Ra.flags=ka&-4097|64,Ra;case 5:return Y0(Ra),null;case 13:return Ou(Zu),ka=Ra.flags,ka&4096?(Ra.flags=ka&-4097|64,Ra):null;case 19:return Ou(Zu),null;case 4:return M0(),null;case 10:return xh(Ra),null;case 23:case 24:return xp(),null;default:return null}}function Jf(Ra,ka){try{var Ba="",qa=ka;do Ba+=Ya(qa),qa=qa.return;while(qa);var Ka=Ba}catch(ol){Ka=`
Error generating stack: `+ol.message+`
`+ol.stack}return{value:Ra,source:ka,stack:Ka}}function e1(Ra,ka){try{console.error(ka.value)}catch(Ba){setTimeout(function(){throw Ba})}}var t1=typeof WeakMap=="function"?WeakMap:Map;function t2(Ra,ka,Ba){Ba=vd(-1,Ba),Ba.tag=3,Ba.payload={element:null};var qa=ka.value;return Ba.callback=function(){i1||(i1=!0,u2=qa),e1(Ra,ka)},Ba}function cf(Ra,ka,Ba){Ba=vd(-1,Ba),Ba.tag=3;var qa=Ra.type.getDerivedStateFromError;if(typeof qa=="function"){var Ka=ka.value;Ba.payload=function(){return e1(Ra,ka),qa(Ka)}}var ol=Ra.stateNode;return ol!==null&&typeof ol.componentDidCatch=="function"&&(Ba.callback=function(){typeof qa!="function"&&(Zp===null?Zp=new Set([this]):Zp.add(this),e1(Ra,ka));var ll=ka.stack;this.componentDidCatch(ka.value,{componentStack:ll!==null?ll:""})}),Ba}var n2=typeof WeakSet=="function"?WeakSet:Set;function uf(Ra){var ka=Ra.ref;if(ka!==null)if(typeof ka=="function")try{ka(null)}catch(Ba){m0(Ra,Ba)}else ka.current=null}function Zg(Ra,ka){switch(ka.tag){case 0:case 11:case 15:case 22:return;case 1:if(ka.flags&256&&Ra!==null){var Ba=Ra.memoizedProps,qa=Ra.memoizedState;Ra=ka.stateNode,ka=Ra.getSnapshotBeforeUpdate(ka.elementType===ka.type?Ba:fp(ka.type,Ba),qa),Ra.__reactInternalSnapshotBeforeUpdate=ka}return;case 3:ka.flags&256&&T1(ka.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(oa(163))}function dg(Ra,ka,Ba){switch(Ba.tag){case 0:case 11:case 15:case 22:if(ka=Ba.updateQueue,ka=ka!==null?ka.lastEffect:null,ka!==null){Ra=ka=ka.next;do{if((Ra.tag&3)===3){var qa=Ra.create;Ra.destroy=qa()}Ra=Ra.next}while(Ra!==ka)}if(ka=Ba.updateQueue,ka=ka!==null?ka.lastEffect:null,ka!==null){Ra=ka=ka.next;do{var Ka=Ra;qa=Ka.next,Ka=Ka.tag,(Ka&4)!==0&&(Ka&1)!==0&&(vg(Ba,Ra),tm(Ba,Ra)),Ra=qa}while(Ra!==ka)}return;case 1:Ra=Ba.stateNode,Ba.flags&4&&(ka===null?Ra.componentDidMount():(qa=Ba.elementType===Ba.type?ka.memoizedProps:fp(Ba.type,ka.memoizedProps),Ra.componentDidUpdate(qa,ka.memoizedState,Ra.__reactInternalSnapshotBeforeUpdate))),ka=Ba.updateQueue,ka!==null&&Ah(Ba,ka,Ra);return;case 3:if(ka=Ba.updateQueue,ka!==null){if(Ra=null,Ba.child!==null)switch(Ba.child.tag){case 5:Ra=Ba.child.stateNode;break;case 1:Ra=Ba.child.stateNode}Ah(Ba,ka,Ra)}return;case 5:Ra=Ba.stateNode,ka===null&&Ba.flags&4&&Gh(Ba.type,Ba.memoizedProps)&&Ra.focus();return;case 6:return;case 4:return;case 12:return;case 13:Ba.memoizedState===null&&(Ba=Ba.alternate,Ba!==null&&(Ba=Ba.memoizedState,Ba!==null&&(Ba=Ba.dehydrated,Ba!==null&&ku(Ba))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(oa(163))}function df(Ra,ka){for(var Ba=Ra;;){if(Ba.tag===5){var qa=Ba.stateNode;if(ka)qa=qa.style,typeof qa.setProperty=="function"?qa.setProperty("display","none","important"):qa.display="none";else{qa=Ba.stateNode;var Ka=Ba.memoizedProps.style;Ka=Ka!=null&&Ka.hasOwnProperty("display")?Ka.display:null,qa.style.display=Yl("display",Ka)}}else if(Ba.tag===6)Ba.stateNode.nodeValue=ka?"":Ba.memoizedProps;else if((Ba.tag!==23&&Ba.tag!==24||Ba.memoizedState===null||Ba===Ra)&&Ba.child!==null){Ba.child.return=Ba,Ba=Ba.child;continue}if(Ba===Ra)break;for(;Ba.sibling===null;){if(Ba.return===null||Ba.return===Ra)return;Ba=Ba.return}Ba.sibling.return=Ba.return,Ba=Ba.sibling}}function r2(Ra,ka){if(sp&&typeof sp.onCommitFiberUnmount=="function")try{sp.onCommitFiberUnmount(P1,ka)}catch{}switch(ka.tag){case 0:case 11:case 14:case 15:case 22:if(Ra=ka.updateQueue,Ra!==null&&(Ra=Ra.lastEffect,Ra!==null)){var Ba=Ra=Ra.next;do{var qa=Ba,Ka=qa.destroy;if(qa=qa.tag,Ka!==void 0)if((qa&4)!==0)vg(ka,Ba);else{qa=ka;try{Ka()}catch(ol){m0(qa,ol)}}Ba=Ba.next}while(Ba!==Ra)}break;case 1:if(uf(ka),Ra=ka.stateNode,typeof Ra.componentWillUnmount=="function")try{Ra.props=ka.memoizedProps,Ra.state=ka.memoizedState,Ra.componentWillUnmount()}catch(ol){m0(ka,ol)}break;case 5:uf(ka);break;case 4:i2(Ra,ka)}}function n1(Ra){Ra.alternate=null,Ra.child=null,Ra.dependencies=null,Ra.firstEffect=null,Ra.lastEffect=null,Ra.memoizedProps=null,Ra.memoizedState=null,Ra.pendingProps=null,Ra.return=null,Ra.updateQueue=null}function pg(Ra){return Ra.tag===5||Ra.tag===3||Ra.tag===4}function o2(Ra){e:{for(var ka=Ra.return;ka!==null;){if(pg(ka))break e;ka=ka.return}throw Error(oa(160))}var Ba=ka;switch(ka=Ba.stateNode,Ba.tag){case 5:var qa=!1;break;case 3:ka=ka.containerInfo,qa=!0;break;case 4:ka=ka.containerInfo,qa=!0;break;default:throw Error(oa(161))}Ba.flags&16&&(wl(ka,""),Ba.flags&=-17);e:t:for(Ba=Ra;;){for(;Ba.sibling===null;){if(Ba.return===null||pg(Ba.return)){Ba=null;break e}Ba=Ba.return}for(Ba.sibling.return=Ba.return,Ba=Ba.sibling;Ba.tag!==5&&Ba.tag!==6&&Ba.tag!==18;){if(Ba.flags&2||Ba.child===null||Ba.tag===4)continue t;Ba.child.return=Ba,Ba=Ba.child}if(!(Ba.flags&2)){Ba=Ba.stateNode;break e}}qa?_p(Ra,Ba,ka):r1(Ra,Ba,ka)}function _p(Ra,ka,Ba){var qa=Ra.tag,Ka=qa===5||qa===6;if(Ka)Ra=Ka?Ra.stateNode:Ra.stateNode.instance,ka?Ba.nodeType===8?Ba.parentNode.insertBefore(Ra,ka):Ba.insertBefore(Ra,ka):(Ba.nodeType===8?(ka=Ba.parentNode,ka.insertBefore(Ra,Ba)):(ka=Ba,ka.appendChild(Ra)),Ba=Ba._reactRootContainer,Ba!=null||ka.onclick!==null||(ka.onclick=If));else if(qa!==4&&(Ra=Ra.child,Ra!==null))for(_p(Ra,ka,Ba),Ra=Ra.sibling;Ra!==null;)_p(Ra,ka,Ba),Ra=Ra.sibling}function r1(Ra,ka,Ba){var qa=Ra.tag,Ka=qa===5||qa===6;if(Ka)Ra=Ka?Ra.stateNode:Ra.stateNode.instance,ka?Ba.insertBefore(Ra,ka):Ba.appendChild(Ra);else if(qa!==4&&(Ra=Ra.child,Ra!==null))for(r1(Ra,ka,Ba),Ra=Ra.sibling;Ra!==null;)r1(Ra,ka,Ba),Ra=Ra.sibling}function i2(Ra,ka){for(var Ba=ka,qa=!1,Ka,ol;;){if(!qa){qa=Ba.return;e:for(;;){if(qa===null)throw Error(oa(160));switch(Ka=qa.stateNode,qa.tag){case 5:ol=!1;break e;case 3:Ka=Ka.containerInfo,ol=!0;break e;case 4:Ka=Ka.containerInfo,ol=!0;break e}qa=qa.return}qa=!0}if(Ba.tag===5||Ba.tag===6){e:for(var ll=Ra,hl=Ba,bl=hl;;)if(r2(ll,bl),bl.child!==null&&bl.tag!==4)bl.child.return=bl,bl=bl.child;else{if(bl===hl)break e;for(;bl.sibling===null;){if(bl.return===null||bl.return===hl)break e;bl=bl.return}bl.sibling.return=bl.return,bl=bl.sibling}ol?(ll=Ka,hl=Ba.stateNode,ll.nodeType===8?ll.parentNode.removeChild(hl):ll.removeChild(hl)):Ka.removeChild(Ba.stateNode)}else if(Ba.tag===4){if(Ba.child!==null){Ka=Ba.stateNode.containerInfo,ol=!0,Ba.child.return=Ba,Ba=Ba.child;continue}}else if(r2(Ra,Ba),Ba.child!==null){Ba.child.return=Ba,Ba=Ba.child;continue}if(Ba===ka)break;for(;Ba.sibling===null;){if(Ba.return===null||Ba.return===ka)return;Ba=Ba.return,Ba.tag===4&&(qa=!1)}Ba.sibling.return=Ba.return,Ba=Ba.sibling}}function a2(Ra,ka){switch(ka.tag){case 0:case 11:case 14:case 15:case 22:var Ba=ka.updateQueue;if(Ba=Ba!==null?Ba.lastEffect:null,Ba!==null){var qa=Ba=Ba.next;do(qa.tag&3)===3&&(Ra=qa.destroy,qa.destroy=void 0,Ra!==void 0&&Ra()),qa=qa.next;while(qa!==Ba)}return;case 1:return;case 5:if(Ba=ka.stateNode,Ba!=null){qa=ka.memoizedProps;var Ka=Ra!==null?Ra.memoizedProps:qa;Ra=ka.type;var ol=ka.updateQueue;if(ka.updateQueue=null,ol!==null){for(Ba[Df]=qa,Ra==="input"&&qa.type==="radio"&&qa.name!=null&&Fl(Ba,qa),bc(Ra,Ka),ka=bc(Ra,qa),Ka=0;Ka<ol.length;Ka+=2){var ll=ol[Ka],hl=ol[Ka+1];ll==="style"?gc(Ba,hl):ll==="dangerouslySetInnerHTML"?rc(Ba,hl):ll==="children"?wl(Ba,hl):Sa(Ba,ll,hl,ka)}switch(Ra){case"input":Vl(Ba,qa);break;case"textarea":Sl(Ba,qa);break;case"select":Ra=Ba._wrapperState.wasMultiple,Ba._wrapperState.wasMultiple=!!qa.multiple,ol=qa.value,ol!=null?Al(Ba,!!qa.multiple,ol,!1):Ra!==!!qa.multiple&&(qa.defaultValue!=null?Al(Ba,!!qa.multiple,qa.defaultValue,!0):Al(Ba,!!qa.multiple,qa.multiple?[]:"",!1))}}}return;case 6:if(ka.stateNode===null)throw Error(oa(162));ka.stateNode.nodeValue=ka.memoizedProps;return;case 3:Ba=ka.stateNode,Ba.hydrate&&(Ba.hydrate=!1,ku(Ba.containerInfo));return;case 12:return;case 13:ka.memoizedState!==null&&(c2=Fd(),df(ka.child,!0)),s2(ka);return;case 19:s2(ka);return;case 17:return;case 23:case 24:df(ka,ka.memoizedState!==null);return}throw Error(oa(163))}function s2(Ra){var ka=Ra.updateQueue;if(ka!==null){Ra.updateQueue=null;var Ba=Ra.stateNode;Ba===null&&(Ba=Ra.stateNode=new n2),ka.forEach(function(qa){var Ka=rm.bind(null,Ra,qa);Ba.has(qa)||(Ba.add(qa),qa.then(Ka,Ka))})}}function Qg(Ra,ka){return Ra!==null&&(Ra=Ra.memoizedState,Ra===null||Ra.dehydrated!==null)?(ka=ka.memoizedState,ka!==null&&ka.dehydrated===null):!1}var Yg=Math.ceil,vp=wa.ReactCurrentDispatcher,pf=wa.ReactCurrentOwner,Lc=0,Od=null,Xu=null,td=0,_c=0,Rh=R0(0),yd=0,qp=null,Th=0,th=0,nh=0,Pd=0,l2=null,c2=0,o1=1/0;function Ph(){o1=Fd()+500}var Cc=null,i1=!1,u2=null,Zp=null,zd=!1,Ad=null,rh=90,d2=[],hf=[],h0=null,ff=0,oh=null,gf=-1,Qp=0,a1=0,mf=null,s1=!1;function cp(){return(Lc&48)!==0?Fd():gf!==-1?gf:gf=Fd()}function f0(Ra){if(Ra=Ra.mode,(Ra&2)===0)return 1;if((Ra&4)===0)return gh()===99?1:2;if(Qp===0&&(Qp=Th),Ug.transition!==0){a1!==0&&(a1=l2!==null?l2.pendingLanes:0),Ra=Qp;var ka=4186112&~a1;return ka&=-ka,ka===0&&(Ra=4186112&~Ra,ka=Ra&-Ra,ka===0&&(ka=8192)),ka}return Ra=gh(),(Lc&4)!==0&&Ra===98?Ra=jp(12,Qp):(Ra=mu(Ra),Ra=jp(Ra,Qp)),Ra}function g0(Ra,ka,Ba){if(50<ff)throw ff=0,oh=null,Error(oa(185));if(Ra=l1(Ra,ka),Ra===null)return null;fl(Ra,ka,Ba),Ra===Od&&(nh|=ka,yd===4&&Yp(Ra,td));var qa=gh();ka===1?(Lc&8)!==0&&(Lc&48)===0?vf(Ra):(Jd(Ra,Ba),Lc===0&&(Ph(),Wp())):((Lc&4)===0||qa!==98&&qa!==99||(h0===null?h0=new Set([Ra]):h0.add(Ra)),Jd(Ra,Ba)),l2=Ra}function l1(Ra,ka){Ra.lanes|=ka;var Ba=Ra.alternate;for(Ba!==null&&(Ba.lanes|=ka),Ba=Ra,Ra=Ra.return;Ra!==null;)Ra.childLanes|=ka,Ba=Ra.alternate,Ba!==null&&(Ba.childLanes|=ka),Ba=Ra,Ra=Ra.return;return Ba.tag===3?Ba.stateNode:null}function Jd(Ra,ka){for(var Ba=Ra.callbackNode,qa=Ra.suspendedLanes,Ka=Ra.pingedLanes,ol=Ra.expirationTimes,ll=Ra.pendingLanes;0<ll;){var hl=31-Pl(ll),bl=1<<hl,Hl=ol[hl];if(Hl===-1){if((bl&qa)===0||(bl&Ka)!==0){Hl=ka,Sc(bl);var vc=oc;ol[hl]=10<=vc?Hl+250:6<=vc?Hl+5e3:-1}}else Hl<=ka&&(Ra.expiredLanes|=bl);ll&=~bl}if(qa=lu(Ra,Ra===Od?td:0),ka=oc,qa===0)Ba!==null&&(Ba!==k1&&I1(Ba),Ra.callbackNode=null,Ra.callbackPriority=0);else{if(Ba!==null){if(Ra.callbackPriority===ka)return;Ba!==k1&&I1(Ba)}ka===15?(Ba=vf.bind(null,Ra),s0===null?(s0=[Ba],Lf=_1(Of,K2)):s0.push(Ba),Ba=k1):ka===14?Ba=Zh(99,vf.bind(null,Ra)):(Ba=zu(ka),Ba=Zh(Ba,p2.bind(null,Ra))),Ra.callbackPriority=ka,Ra.callbackNode=Ba}}function p2(Ra){if(gf=-1,a1=Qp=0,(Lc&48)!==0)throw Error(oa(327));var ka=Ra.callbackNode;if(L0()&&Ra.callbackNode!==ka)return null;var Ba=lu(Ra,Ra===Od?td:0);if(Ba===0)return null;var qa=Ba,Ka=Lc;Lc|=16;var ol=f2();(Od!==Ra||td!==qa)&&(Ph(),yp(Ra,qa));do try{Xg();break}catch(hl){fg(Ra,hl)}while(!0);if(G0(),vp.current=ol,Lc=Ka,Xu!==null?qa=0:(Od=null,td=0,qa=yd),(Th&nh)!==0)yp(Ra,0);else if(qa!==0){if(qa===2&&(Lc|=64,Ra.hydrate&&(Ra.hydrate=!1,T1(Ra.containerInfo)),Ba=Lp(Ra),Ba!==0&&(qa=Af(Ra,Ba))),qa===1)throw ka=qp,yp(Ra,0),Yp(Ra,Ba),Jd(Ra,Fd()),ka;switch(Ra.finishedWork=Ra.current.alternate,Ra.finishedLanes=Ba,qa){case 0:case 1:throw Error(oa(345));case 2:ih(Ra);break;case 3:if(Yp(Ra,Ba),(Ba&62914560)===Ba&&(qa=c2+500-Fd(),10<qa)){if(lu(Ra,0)!==0)break;if(Ka=Ra.suspendedLanes,(Ka&Ba)!==Ba){cp(),Ra.pingedLanes|=Ra.suspendedLanes&Ka;break}Ra.timeoutHandle=W2(ih.bind(null,Ra),qa);break}ih(Ra);break;case 4:if(Yp(Ra,Ba),(Ba&4186112)===Ba)break;for(qa=Ra.eventTimes,Ka=-1;0<Ba;){var ll=31-Pl(Ba);ol=1<<ll,ll=qa[ll],ll>Ka&&(Ka=ll),Ba&=~ol}if(Ba=Ka,Ba=Fd()-Ba,Ba=(120>Ba?120:480>Ba?480:1080>Ba?1080:1920>Ba?1920:3e3>Ba?3e3:4320>Ba?4320:1960*Yg(Ba/1960))-Ba,10<Ba){Ra.timeoutHandle=W2(ih.bind(null,Ra),Ba);break}ih(Ra);break;case 5:ih(Ra);break;default:throw Error(oa(329))}}return Jd(Ra,Fd()),Ra.callbackNode===ka?p2.bind(null,Ra):null}function Yp(Ra,ka){for(ka&=~Pd,ka&=~nh,Ra.suspendedLanes|=ka,Ra.pingedLanes&=~ka,Ra=Ra.expirationTimes;0<ka;){var Ba=31-Pl(ka),qa=1<<Ba;Ra[Ba]=-1,ka&=~qa}}function vf(Ra){if((Lc&48)!==0)throw Error(oa(327));if(L0(),Ra===Od&&(Ra.expiredLanes&td)!==0){var ka=td,Ba=Af(Ra,ka);(Th&nh)!==0&&(ka=lu(Ra,ka),Ba=Af(Ra,ka))}else ka=lu(Ra,0),Ba=Af(Ra,ka);if(Ra.tag!==0&&Ba===2&&(Lc|=64,Ra.hydrate&&(Ra.hydrate=!1,T1(Ra.containerInfo)),ka=Lp(Ra),ka!==0&&(Ba=Af(Ra,ka))),Ba===1)throw Ba=qp,yp(Ra,0),Yp(Ra,ka),Jd(Ra,Fd()),Ba;return Ra.finishedWork=Ra.current.alternate,Ra.finishedLanes=ka,ih(Ra),Jd(Ra,Fd()),null}function hg(){if(h0!==null){var Ra=h0;h0=null,Ra.forEach(function(ka){ka.expiredLanes|=24&ka.pendingLanes,Jd(ka,Fd())})}Wp()}function h2(Ra,ka){var Ba=Lc;Lc|=1;try{return Ra(ka)}finally{Lc=Ba,Lc===0&&(Ph(),Wp())}}function xf(Ra,ka){var Ba=Lc;Lc&=-2,Lc|=8;try{return Ra(ka)}finally{Lc=Ba,Lc===0&&(Ph(),Wp())}}function yf(Ra,ka){Yu(Rh,_c),_c|=ka,Th|=ka}function xp(){_c=Rh.current,Ou(Rh)}function yp(Ra,ka){Ra.finishedWork=null,Ra.finishedLanes=0;var Ba=Ra.timeoutHandle;if(Ba!==-1&&(Ra.timeoutHandle=-1,G2(Ba)),Xu!==null)for(Ba=Xu.return;Ba!==null;){var qa=Ba;switch(qa.tag){case 1:qa=qa.type.childContextTypes,qa!=null&&V0();break;case 3:M0(),Ou(Rd),Ou(gd),ef();break;case 5:Y0(qa);break;case 4:M0();break;case 13:Ou(Zu);break;case 19:Ou(Zu);break;case 10:xh(qa);break;case 23:case 24:xp()}Ba=Ba.return}Od=Ra,Xu=j0(Ra.current,null),td=_c=Th=ka,yd=0,qp=null,Pd=nh=th=0}function fg(Ra,ka){do{var Ba=Xu;try{if(G0(),tf.current=of,Wf){for(var qa=Ku.memoizedState;qa!==null;){var Ka=qa.queue;Ka!==null&&(Ka.pending=null),qa=qa.next}Wf=!1}if(Sh=0,ld=Md=Ku=null,Eh=!1,pf.current=null,Ba===null||Ba.return===null){yd=1,qp=ka,Xu=null;break}e:{var ol=Ra,ll=Ba.return,hl=Ba,bl=ka;if(ka=td,hl.flags|=2048,hl.firstEffect=hl.lastEffect=null,bl!==null&&typeof bl=="object"&&typeof bl.then=="function"){var Hl=bl;if((hl.mode&2)===0){var vc=hl.alternate;vc?(hl.updateQueue=vc.updateQueue,hl.memoizedState=vc.memoizedState,hl.lanes=vc.lanes):(hl.updateQueue=null,hl.memoizedState=null)}var Fc=(Zu.current&1)!==0,tc=ll;do{var Ec;if(Ec=tc.tag===13){var Hc=tc.memoizedState;if(Hc!==null)Ec=Hc.dehydrated!==null;else{var Oc=tc.memoizedProps;Ec=Oc.fallback===void 0?!1:Oc.unstable_avoidThisFallback!==!0?!0:!Fc}}if(Ec){var jl=tc.updateQueue;if(jl===null){var El=new Set;El.add(Hl),tc.updateQueue=El}else jl.add(Hl);if((tc.mode&2)===0){if(tc.flags|=64,hl.flags|=16384,hl.flags&=-2981,hl.tag===1)if(hl.alternate===null)hl.tag=17;else{var Ml=vd(-1,1);Ml.tag=2,k0(hl,Ml)}hl.lanes|=1;break e}bl=void 0,hl=ka;var ql=ol.pingCache;if(ql===null?(ql=ol.pingCache=new t1,bl=new Set,ql.set(Hl,bl)):(bl=ql.get(Hl),bl===void 0&&(bl=new Set,ql.set(Hl,bl))),!bl.has(hl)){bl.add(hl);var Jl=nm.bind(null,ol,Hl,hl);Hl.then(Jl,Jl)}tc.flags|=4096,tc.lanes=ka;break e}tc=tc.return}while(tc!==null);bl=Error((rl(hl.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}yd!==5&&(yd=2),bl=Jf(bl,hl),tc=ll;do{switch(tc.tag){case 3:ol=bl,tc.flags|=4096,ka&=-ka,tc.lanes|=ka;var Wc=t2(tc,ol,ka);M1(tc,Wc);break e;case 1:ol=bl;var wc=tc.type,Nc=tc.stateNode;if((tc.flags&64)===0&&(typeof wc.getDerivedStateFromError=="function"||Nc!==null&&typeof Nc.componentDidCatch=="function"&&(Zp===null||!Zp.has(Nc)))){tc.flags|=4096,ka&=-ka,tc.lanes|=ka;var eu=cf(tc,ol,ka);M1(tc,eu);break e}}tc=tc.return}while(tc!==null)}mg(Ba)}catch(Qc){ka=Qc,Xu===Ba&&Ba!==null&&(Xu=Ba=Ba.return);continue}break}while(!0)}function f2(){var Ra=vp.current;return vp.current=of,Ra===null?of:Ra}function Af(Ra,ka){var Ba=Lc;Lc|=16;var qa=f2();Od===Ra&&td===ka||yp(Ra,ka);do try{Kg();break}catch(Ka){fg(Ra,Ka)}while(!0);if(G0(),Lc=Ba,vp.current=qa,Xu!==null)throw Error(oa(261));return Od=null,td=0,yd}function Kg(){for(;Xu!==null;)gg(Xu)}function Xg(){for(;Xu!==null&&!Vg();)gg(Xu)}function gg(Ra){var ka=yg(Ra.alternate,Ra,_c);Ra.memoizedProps=Ra.pendingProps,ka===null?mg(Ra):Xu=ka,pf.current=null}function mg(Ra){var ka=Ra;do{var Ba=ka.alternate;if(Ra=ka.return,(ka.flags&2048)===0){if(Ba=lf(Ba,ka,_c),Ba!==null){Xu=Ba;return}if(Ba=ka,Ba.tag!==24&&Ba.tag!==23||Ba.memoizedState===null||(_c&1073741824)!==0||(Ba.mode&4)===0){for(var qa=0,Ka=Ba.child;Ka!==null;)qa|=Ka.lanes|Ka.childLanes,Ka=Ka.sibling;Ba.childLanes=qa}Ra!==null&&(Ra.flags&2048)===0&&(Ra.firstEffect===null&&(Ra.firstEffect=ka.firstEffect),ka.lastEffect!==null&&(Ra.lastEffect!==null&&(Ra.lastEffect.nextEffect=ka.firstEffect),Ra.lastEffect=ka.lastEffect),1<ka.flags&&(Ra.lastEffect!==null?Ra.lastEffect.nextEffect=ka:Ra.firstEffect=ka,Ra.lastEffect=ka))}else{if(Ba=qg(ka),Ba!==null){Ba.flags&=2047,Xu=Ba;return}Ra!==null&&(Ra.firstEffect=Ra.lastEffect=null,Ra.flags|=2048)}if(ka=ka.sibling,ka!==null){Xu=ka;return}Xu=ka=Ra}while(ka!==null);yd===0&&(yd=5)}function ih(Ra){var ka=gh();return W0(99,Jg.bind(null,Ra,ka)),null}function Jg(Ra,ka){do L0();while(Ad!==null);if((Lc&48)!==0)throw Error(oa(327));var Ba=Ra.finishedWork;if(Ba===null)return null;if(Ra.finishedWork=null,Ra.finishedLanes=0,Ba===Ra.current)throw Error(oa(177));Ra.callbackNode=null;var qa=Ba.lanes|Ba.childLanes,Ka=qa,ol=Ra.pendingLanes&~Ka;Ra.pendingLanes=Ka,Ra.suspendedLanes=0,Ra.pingedLanes=0,Ra.expiredLanes&=Ka,Ra.mutableReadLanes&=Ka,Ra.entangledLanes&=Ka,Ka=Ra.entanglements;for(var ll=Ra.eventTimes,hl=Ra.expirationTimes;0<ol;){var bl=31-Pl(ol),Hl=1<<bl;Ka[bl]=0,ll[bl]=-1,hl[bl]=-1,ol&=~Hl}if(h0!==null&&(qa&24)===0&&h0.has(Ra)&&h0.delete(Ra),Ra===Od&&(Xu=Od=null,td=0),1<Ba.flags?Ba.lastEffect!==null?(Ba.lastEffect.nextEffect=Ba,qa=Ba.firstEffect):qa=Ba:qa=Ba.firstEffect,qa!==null){if(Ka=Lc,Lc|=32,pf.current=null,R1=Gu,ll=z2(),w0(ll)){if("selectionStart"in ll)hl={start:ll.selectionStart,end:ll.selectionEnd};else e:if(hl=(hl=ll.ownerDocument)&&hl.defaultView||window,(Hl=hl.getSelection&&hl.getSelection())&&Hl.rangeCount!==0){hl=Hl.anchorNode,ol=Hl.anchorOffset,bl=Hl.focusNode,Hl=Hl.focusOffset;try{hl.nodeType,bl.nodeType}catch{hl=null;break e}var vc=0,Fc=-1,tc=-1,Ec=0,Hc=0,Oc=ll,jl=null;t:for(;;){for(var El;Oc!==hl||ol!==0&&Oc.nodeType!==3||(Fc=vc+ol),Oc!==bl||Hl!==0&&Oc.nodeType!==3||(tc=vc+Hl),Oc.nodeType===3&&(vc+=Oc.nodeValue.length),(El=Oc.firstChild)!==null;)jl=Oc,Oc=El;for(;;){if(Oc===ll)break t;if(jl===hl&&++Ec===ol&&(Fc=vc),jl===bl&&++Hc===Hl&&(tc=vc),(El=Oc.nextSibling)!==null)break;Oc=jl,jl=Oc.parentNode}Oc=El}hl=Fc===-1||tc===-1?null:{start:Fc,end:tc}}else hl=null;hl=hl||{start:0,end:0}}else hl=null;dh={focusedElem:ll,selectionRange:hl},Gu=!1,mf=null,s1=!1,Cc=qa;do try{em()}catch(Qc){if(Cc===null)throw Error(oa(330));m0(Cc,Qc),Cc=Cc.nextEffect}while(Cc!==null);mf=null,Cc=qa;do try{for(ll=Ra;Cc!==null;){var Ml=Cc.flags;if(Ml&16&&wl(Cc.stateNode,""),Ml&128){var ql=Cc.alternate;if(ql!==null){var Jl=ql.ref;Jl!==null&&(typeof Jl=="function"?Jl(null):Jl.current=null)}}switch(Ml&1038){case 2:o2(Cc),Cc.flags&=-3;break;case 6:o2(Cc),Cc.flags&=-3,a2(Cc.alternate,Cc);break;case 1024:Cc.flags&=-1025;break;case 1028:Cc.flags&=-1025,a2(Cc.alternate,Cc);break;case 4:a2(Cc.alternate,Cc);break;case 8:hl=Cc,i2(ll,hl);var Wc=hl.alternate;n1(hl),Wc!==null&&n1(Wc)}Cc=Cc.nextEffect}}catch(Qc){if(Cc===null)throw Error(oa(330));m0(Cc,Qc),Cc=Cc.nextEffect}while(Cc!==null);if(Jl=dh,ql=z2(),Ml=Jl.focusedElem,ll=Jl.selectionRange,ql!==Ml&&Ml&&Ml.ownerDocument&&Bh(Ml.ownerDocument.documentElement,Ml)){for(ll!==null&&w0(Ml)&&(ql=ll.start,Jl=ll.end,Jl===void 0&&(Jl=ql),"selectionStart"in Ml?(Ml.selectionStart=ql,Ml.selectionEnd=Math.min(Jl,Ml.value.length)):(Jl=(ql=Ml.ownerDocument||document)&&ql.defaultView||window,Jl.getSelection&&(Jl=Jl.getSelection(),hl=Ml.textContent.length,Wc=Math.min(ll.start,hl),ll=ll.end===void 0?Wc:Math.min(ll.end,hl),!Jl.extend&&Wc>ll&&(hl=ll,ll=Wc,Wc=hl),hl=ip(Ml,Wc),ol=ip(Ml,ll),hl&&ol&&(Jl.rangeCount!==1||Jl.anchorNode!==hl.node||Jl.anchorOffset!==hl.offset||Jl.focusNode!==ol.node||Jl.focusOffset!==ol.offset)&&(ql=ql.createRange(),ql.setStart(hl.node,hl.offset),Jl.removeAllRanges(),Wc>ll?(Jl.addRange(ql),Jl.extend(ol.node,ol.offset)):(ql.setEnd(ol.node,ol.offset),Jl.addRange(ql)))))),ql=[],Jl=Ml;Jl=Jl.parentNode;)Jl.nodeType===1&&ql.push({element:Jl,left:Jl.scrollLeft,top:Jl.scrollTop});for(typeof Ml.focus=="function"&&Ml.focus(),Ml=0;Ml<ql.length;Ml++)Jl=ql[Ml],Jl.element.scrollLeft=Jl.left,Jl.element.scrollTop=Jl.top}Gu=!!R1,dh=R1=null,Ra.current=Ba,Cc=qa;do try{for(Ml=Ra;Cc!==null;){var wc=Cc.flags;if(wc&36&&dg(Ml,Cc.alternate,Cc),wc&128){ql=void 0;var Nc=Cc.ref;if(Nc!==null){var eu=Cc.stateNode;switch(Cc.tag){case 5:ql=eu;break;default:ql=eu}typeof Nc=="function"?Nc(ql):Nc.current=ql}}Cc=Cc.nextEffect}}catch(Qc){if(Cc===null)throw Error(oa(330));m0(Cc,Qc),Cc=Cc.nextEffect}while(Cc!==null);Cc=null,Gg(),Lc=Ka}else Ra.current=Ba;if(zd)zd=!1,Ad=Ra,rh=ka;else for(Cc=qa;Cc!==null;)ka=Cc.nextEffect,Cc.nextEffect=null,Cc.flags&8&&(wc=Cc,wc.sibling=null,wc.stateNode=null),Cc=ka;if(qa=Ra.pendingLanes,qa===0&&(Zp=null),qa===1?Ra===oh?ff++:(ff=0,oh=Ra):ff=0,Ba=Ba.stateNode,sp&&typeof sp.onCommitFiberRoot=="function")try{sp.onCommitFiberRoot(P1,Ba,void 0,(Ba.current.flags&64)===64)}catch{}if(Jd(Ra,Fd()),i1)throw i1=!1,Ra=u2,u2=null,Ra;return(Lc&8)!==0||Wp(),null}function em(){for(;Cc!==null;){var Ra=Cc.alternate;s1||mf===null||((Cc.flags&8)!==0?Zd(Cc,mf)&&(s1=!0):Cc.tag===13&&Qg(Ra,Cc)&&Zd(Cc,mf)&&(s1=!0));var ka=Cc.flags;(ka&256)!==0&&Zg(Ra,Cc),(ka&512)===0||zd||(zd=!0,Zh(97,function(){return L0(),null})),Cc=Cc.nextEffect}}function L0(){if(rh!==90){var Ra=97<rh?97:rh;return rh=90,W0(Ra,xg)}return!1}function tm(Ra,ka){d2.push(ka,Ra),zd||(zd=!0,Zh(97,function(){return L0(),null}))}function vg(Ra,ka){hf.push(ka,Ra),zd||(zd=!0,Zh(97,function(){return L0(),null}))}function xg(){if(Ad===null)return!1;var Ra=Ad;if(Ad=null,(Lc&48)!==0)throw Error(oa(331));var ka=Lc;Lc|=32;var Ba=hf;hf=[];for(var qa=0;qa<Ba.length;qa+=2){var Ka=Ba[qa],ol=Ba[qa+1],ll=Ka.destroy;if(Ka.destroy=void 0,typeof ll=="function")try{ll()}catch(bl){if(ol===null)throw Error(oa(330));m0(ol,bl)}}for(Ba=d2,d2=[],qa=0;qa<Ba.length;qa+=2){Ka=Ba[qa],ol=Ba[qa+1];try{var hl=Ka.create;Ka.destroy=hl()}catch(bl){if(ol===null)throw Error(oa(330));m0(ol,bl)}}for(hl=Ra.current.firstEffect;hl!==null;)Ra=hl.nextEffect,hl.nextEffect=null,hl.flags&8&&(hl.sibling=null,hl.stateNode=null),hl=Ra;return Lc=ka,Wp(),!0}function g2(Ra,ka,Ba){ka=Jf(Ba,ka),ka=t2(Ra,ka,1),k0(Ra,ka),ka=cp(),Ra=l1(Ra,1),Ra!==null&&(fl(Ra,1,ka),Jd(Ra,ka))}function m0(Ra,ka){if(Ra.tag===3)g2(Ra,Ra,ka);else for(var Ba=Ra.return;Ba!==null;){if(Ba.tag===3){g2(Ba,Ra,ka);break}else if(Ba.tag===1){var qa=Ba.stateNode;if(typeof Ba.type.getDerivedStateFromError=="function"||typeof qa.componentDidCatch=="function"&&(Zp===null||!Zp.has(qa))){Ra=Jf(ka,Ra);var Ka=cf(Ba,Ra,1);if(k0(Ba,Ka),Ka=cp(),Ba=l1(Ba,1),Ba!==null)fl(Ba,1,Ka),Jd(Ba,Ka);else if(typeof qa.componentDidCatch=="function"&&(Zp===null||!Zp.has(qa)))try{qa.componentDidCatch(ka,Ra)}catch{}break}}Ba=Ba.return}}function nm(Ra,ka,Ba){var qa=Ra.pingCache;qa!==null&&qa.delete(ka),ka=cp(),Ra.pingedLanes|=Ra.suspendedLanes&Ba,Od===Ra&&(td&Ba)===Ba&&(yd===4||yd===3&&(td&62914560)===td&&500>Fd()-c2?yp(Ra,0):Pd|=Ba),Jd(Ra,ka)}function rm(Ra,ka){var Ba=Ra.stateNode;Ba!==null&&Ba.delete(ka),ka=0,ka===0&&(ka=Ra.mode,(ka&2)===0?ka=1:(ka&4)===0?ka=gh()===99?1:2:(Qp===0&&(Qp=Th),ka=ru(62914560&~Qp),ka===0&&(ka=4194304))),Ba=cp(),Ra=l1(Ra,ka),Ra!==null&&(fl(Ra,ka,Ba),Jd(Ra,Ba))}var yg;yg=function(Ra,ka,Ba){var qa=ka.lanes;if(Ra!==null)if(Ra.memoizedProps!==ka.pendingProps||Rd.current)Td=!0;else if((Ba&qa)!==0)Td=(Ra.flags&16384)!==0;else{switch(Td=!1,ka.tag){case 3:Q1(ka),j1();break;case 5:eg(ka);break;case 1:md(ka.type)&&Mf(ka);break;case 4:L1(ka,ka.stateNode.containerInfo);break;case 10:qa=ka.memoizedProps.value;var Ka=ka.type._context;Yu(Qh,Ka._currentValue),Ka._currentValue=qa;break;case 13:if(ka.memoizedState!==null)return(Ba&ka.child.childLanes)!==0?Y1(Ra,ka,Ba):(Yu(Zu,Zu.current&1),ka=Xd(Ra,ka,Ba),ka!==null?ka.sibling:null);Yu(Zu,Zu.current&1);break;case 19:if(qa=(Ba&ka.childLanes)!==0,(Ra.flags&64)!==0){if(qa)return sf(Ra,ka,Ba);ka.flags|=64}if(Ka=ka.memoizedState,Ka!==null&&(Ka.rendering=null,Ka.tail=null,Ka.lastEffect=null),Yu(Zu,Zu.current),qa)break;return null;case 23:case 24:return ka.lanes=0,af(Ra,ka,Ba)}return Xd(Ra,ka,Ba)}else Td=!1;switch(ka.lanes=0,ka.tag){case 2:if(qa=ka.type,Ra!==null&&(Ra.alternate=null,ka.alternate=null,ka.flags|=2),Ra=ka.pendingProps,Ka=cl(ka,gd.current),U0(ka,Ba),Ka=Gf(null,ka,qa,Ra,Ka,Ba),ka.flags|=1,typeof Ka=="object"&&Ka!==null&&typeof Ka.render=="function"&&Ka.$$typeof===void 0){if(ka.tag=1,ka.memoizedState=null,ka.updateQueue=null,md(qa)){var ol=!0;Mf(ka)}else ol=!1;ka.memoizedState=Ka.state!==null&&Ka.state!==void 0?Ka.state:null,Yh(ka);var ll=qa.getDerivedStateFromProps;typeof ll=="function"&&Kh(ka,qa,ll,Ra),Ka.updater=Bf,ka.stateNode=Ka,Ka._reactInternals=ka,xd(ka,qa,Ra,Ba),ka=Yf(null,ka,qa,!0,ol,Ba)}else ka.tag=0,Kd(null,ka,Ka,Ba),ka=ka.child;return ka;case 16:Ka=ka.elementType;e:{switch(Ra!==null&&(Ra.alternate=null,ka.alternate=null,ka.flags|=2),Ra=ka.pendingProps,ol=Ka._init,Ka=ol(Ka._payload),ka.type=Ka,ol=ka.tag=om(Ka),Ra=fp(Ka,Ra),ol){case 0:ka=Z1(null,ka,Ka,Ra,Ba);break e;case 1:ka=lg(null,ka,Ka,Ra,Ba);break e;case 11:ka=p0(null,ka,Ka,Ra,Ba);break e;case 14:ka=U1(null,ka,Ka,fp(Ka.type,Ra),qa,Ba);break e}throw Error(oa(306,Ka,""))}return ka;case 0:return qa=ka.type,Ka=ka.pendingProps,Ka=ka.elementType===qa?Ka:fp(qa,Ka),Z1(Ra,ka,qa,Ka,Ba);case 1:return qa=ka.type,Ka=ka.pendingProps,Ka=ka.elementType===qa?Ka:fp(qa,Ka),lg(Ra,ka,qa,Ka,Ba);case 3:if(Q1(ka),qa=ka.updateQueue,Ra===null||qa===null)throw Error(oa(282));if(qa=ka.pendingProps,Ka=ka.memoizedState,Ka=Ka!==null?Ka.element:null,I0(Ra,ka),yh(ka,qa,null,Ba),qa=ka.memoizedState.element,qa===Ka)j1(),ka=Xd(Ra,ka,Ba);else{if(Ka=ka.stateNode,(ol=Ka.hydrate)&&(mp=ph(ka.stateNode.containerInfo.firstChild),c0=ka,ol=Gp=!0),ol){if(Ra=Ka.mutableSourceEagerHydrationData,Ra!=null)for(Ka=0;Ka<Ra.length;Ka+=2)ol=Ra[Ka],ol._workInProgressVersionPrimary=Ra[Ka+1],K0.push(ol);for(Ba=D0(ka,null,qa,Ba),ka.child=Ba;Ba;)Ba.flags=Ba.flags&-3|1024,Ba=Ba.sibling}else Kd(Ra,ka,qa,Ba),j1();ka=ka.child}return ka;case 5:return eg(ka),Ra===null&&Hf(ka),qa=ka.type,Ka=ka.pendingProps,ol=Ra!==null?Ra.memoizedProps:null,ll=Ka.children,Uh(qa,Ka)?ll=null:ol!==null&&Uh(qa,ol)&&(ka.flags|=16),sg(Ra,ka),Kd(Ra,ka,ll,Ba),ka.child;case 6:return Ra===null&&Hf(ka),null;case 13:return Y1(Ra,ka,Ba);case 4:return L1(ka,ka.stateNode.containerInfo),qa=ka.pendingProps,Ra===null?ka.child=q0(ka,null,qa,Ba):Kd(Ra,ka,qa,Ba),ka.child;case 11:return qa=ka.type,Ka=ka.pendingProps,Ka=ka.elementType===qa?Ka:fp(qa,Ka),p0(Ra,ka,qa,Ka,Ba);case 7:return Kd(Ra,ka,ka.pendingProps,Ba),ka.child;case 8:return Kd(Ra,ka,ka.pendingProps.children,Ba),ka.child;case 12:return Kd(Ra,ka,ka.pendingProps.children,Ba),ka.child;case 10:e:{qa=ka.type._context,Ka=ka.pendingProps,ll=ka.memoizedProps,ol=Ka.value;var hl=ka.type._context;if(Yu(Qh,hl._currentValue),hl._currentValue=ol,ll!==null)if(hl=ll.value,ol=fu(hl,ol)?0:(typeof qa._calculateChangedBits=="function"?qa._calculateChangedBits(hl,ol):1073741823)|0,ol===0){if(ll.children===Ka.children&&!Rd.current){ka=Xd(Ra,ka,Ba);break e}}else for(hl=ka.child,hl!==null&&(hl.return=ka);hl!==null;){var bl=hl.dependencies;if(bl!==null){ll=hl.child;for(var Hl=bl.firstContext;Hl!==null;){if(Hl.context===qa&&(Hl.observedBits&ol)!==0){hl.tag===1&&(Hl=vd(-1,Ba&-Ba),Hl.tag=2,k0(hl,Hl)),hl.lanes|=Ba,Hl=hl.alternate,Hl!==null&&(Hl.lanes|=Ba),X2(hl.return,Ba),bl.lanes|=Ba;break}Hl=Hl.next}}else ll=hl.tag===10&&hl.type===ka.type?null:hl.child;if(ll!==null)ll.return=hl;else for(ll=hl;ll!==null;){if(ll===ka){ll=null;break}if(hl=ll.sibling,hl!==null){hl.return=ll.return,ll=hl;break}ll=ll.return}hl=ll}Kd(Ra,ka,Ka.children,Ba),ka=ka.child}return ka;case 9:return Ka=ka.type,ol=ka.pendingProps,qa=ol.children,U0(ka,Ba),Ka=gp(Ka,ol.unstable_observedBits),qa=qa(Ka),ka.flags|=1,Kd(Ra,ka,qa,Ba),ka.child;case 14:return Ka=ka.type,ol=fp(Ka,ka.pendingProps),ol=fp(Ka.type,ol),U1(Ra,ka,Ka,ol,qa,Ba);case 15:return q1(Ra,ka,ka.type,ka.pendingProps,qa,Ba);case 17:return qa=ka.type,Ka=ka.pendingProps,Ka=ka.elementType===qa?Ka:fp(qa,Ka),Ra!==null&&(Ra.alternate=null,ka.alternate=null,ka.flags|=2),ka.tag=1,md(qa)?(Ra=!0,Mf(ka)):Ra=!1,U0(ka,Ba),J2(ka,qa,Ka),xd(ka,qa,Ka,Ba),Yf(null,ka,qa,!0,Ra,Ba);case 19:return sf(Ra,ka,Ba);case 23:return af(Ra,ka,Ba);case 24:return af(Ra,ka,Ba)}throw Error(oa(156,ka.tag))};function Ag(Ra,ka,Ba,qa){this.tag=Ra,this.key=Ba,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=ka,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=qa,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ap(Ra,ka,Ba,qa){return new Ag(Ra,ka,Ba,qa)}function m2(Ra){return Ra=Ra.prototype,!(!Ra||!Ra.isReactComponent)}function om(Ra){if(typeof Ra=="function")return m2(Ra)?1:0;if(Ra!=null){if(Ra=Ra.$$typeof,Ra===Ta)return 11;if(Ra===Na)return 14}return 2}function j0(Ra,ka){var Ba=Ra.alternate;return Ba===null?(Ba=Ap(Ra.tag,ka,Ra.key,Ra.mode),Ba.elementType=Ra.elementType,Ba.type=Ra.type,Ba.stateNode=Ra.stateNode,Ba.alternate=Ra,Ra.alternate=Ba):(Ba.pendingProps=ka,Ba.type=Ra.type,Ba.flags=0,Ba.nextEffect=null,Ba.firstEffect=null,Ba.lastEffect=null),Ba.childLanes=Ra.childLanes,Ba.lanes=Ra.lanes,Ba.child=Ra.child,Ba.memoizedProps=Ra.memoizedProps,Ba.memoizedState=Ra.memoizedState,Ba.updateQueue=Ra.updateQueue,ka=Ra.dependencies,Ba.dependencies=ka===null?null:{lanes:ka.lanes,firstContext:ka.firstContext},Ba.sibling=Ra.sibling,Ba.index=Ra.index,Ba.ref=Ra.ref,Ba}function c1(Ra,ka,Ba,qa,Ka,ol){var ll=2;if(qa=Ra,typeof Ra=="function")m2(Ra)&&(ll=1);else if(typeof Ra=="string")ll=5;else e:switch(Ra){case $a:return _h(Ba.children,Ka,ol,ka);case Va:ll=8,Ka|=16;break;case Ma:ll=8,Ka|=1;break;case Ia:return Ra=Ap(12,Ba,ka,Ka|8),Ra.elementType=Ia,Ra.type=Ia,Ra.lanes=ol,Ra;case _a:return Ra=Ap(13,Ba,ka,Ka),Ra.type=_a,Ra.elementType=_a,Ra.lanes=ol,Ra;case La:return Ra=Ap(19,Ba,ka,Ka),Ra.elementType=La,Ra.lanes=ol,Ra;case Ua:return ep(Ba,Ka,ol,ka);case Qa:return Ra=Ap(24,Ba,ka,Ka),Ra.elementType=Qa,Ra.lanes=ol,Ra;default:if(typeof Ra=="object"&&Ra!==null)switch(Ra.$$typeof){case Oa:ll=10;break e;case Da:ll=9;break e;case Ta:ll=11;break e;case Na:ll=14;break e;case za:ll=16,qa=null;break e;case Fa:ll=22;break e}throw Error(oa(130,Ra==null?Ra:typeof Ra,""))}return ka=Ap(ll,Ba,ka,Ka),ka.elementType=Ra,ka.type=qa,ka.lanes=ol,ka}function _h(Ra,ka,Ba,qa){return Ra=Ap(7,Ra,qa,ka),Ra.lanes=Ba,Ra}function ep(Ra,ka,Ba,qa){return Ra=Ap(23,Ra,qa,ka),Ra.elementType=Ua,Ra.lanes=Ba,Ra}function v2(Ra,ka,Ba){return Ra=Ap(6,Ra,null,ka),Ra.lanes=Ba,Ra}function x2(Ra,ka,Ba){return ka=Ap(4,Ra.children!==null?Ra.children:[],Ra.key,ka),ka.lanes=Ba,ka.stateNode={containerInfo:Ra.containerInfo,pendingChildren:null,implementation:Ra.implementation},ka}function im(Ra,ka,Ba){this.tag=ka,this.containerInfo=Ra,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=Ba,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ou(0),this.expirationTimes=ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ou(0),this.mutableSourceEagerHydrationData=null}function bg(Ra,ka,Ba){var qa=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ea,key:qa==null?null:""+qa,children:Ra,containerInfo:ka,implementation:Ba}}function u1(Ra,ka,Ba,qa){var Ka=ka.current,ol=cp(),ll=f0(Ka);e:if(Ba){Ba=Ba._reactInternals;t:{if(Dc(Ba)!==Ba||Ba.tag!==1)throw Error(oa(170));var hl=Ba;do{switch(hl.tag){case 3:hl=hl.stateNode.context;break t;case 1:if(md(hl.type)){hl=hl.stateNode.__reactInternalMemoizedMergedChildContext;break t}}hl=hl.return}while(hl!==null);throw Error(oa(171))}if(Ba.tag===1){var bl=Ba.type;if(md(bl)){Ba=nu(Ba,bl,hl);break e}}Ba=hl}else Ba=T0;return ka.context===null?ka.context=Ba:ka.pendingContext=Ba,ka=vd(ol,ll),ka.payload={element:Ra},qa=qa===void 0?null:qa,qa!==null&&(ka.callback=qa),k0(Ka,ka),g0(Ka,ll,ol),ll}function y2(Ra){if(Ra=Ra.current,!Ra.child)return null;switch(Ra.child.tag){case 5:return Ra.child.stateNode;default:return Ra.child.stateNode}}function Cg(Ra,ka){if(Ra=Ra.memoizedState,Ra!==null&&Ra.dehydrated!==null){var Ba=Ra.retryLane;Ra.retryLane=Ba!==0&&Ba<ka?Ba:ka}}function A2(Ra,ka){Cg(Ra,ka),(Ra=Ra.alternate)&&Cg(Ra,ka)}function b2(){return null}function C2(Ra,ka,Ba){var qa=Ba!=null&&Ba.hydrationOptions!=null&&Ba.hydrationOptions.mutableSources||null;if(Ba=new im(Ra,ka,Ba!=null&&Ba.hydrate===!0),ka=Ap(3,null,null,ka===2?7:ka===1?3:0),Ba.current=ka,ka.stateNode=Ba,Yh(ka),Ra[S0]=Ba.current,S1(Ra.nodeType===8?Ra.parentNode:Ra),qa)for(Ra=0;Ra<qa.length;Ra++){ka=qa[Ra];var Ka=ka._getVersion;Ka=Ka(ka._source),Ba.mutableSourceEagerHydrationData==null?Ba.mutableSourceEagerHydrationData=[ka,Ka]:Ba.mutableSourceEagerHydrationData.push(ka,Ka)}this._internalRoot=Ba}C2.prototype.render=function(Ra){u1(Ra,this._internalRoot,null,null)},C2.prototype.unmount=function(){var Ra=this._internalRoot,ka=Ra.containerInfo;u1(null,Ra,null,function(){ka[S0]=null})};function bf(Ra){return!(!Ra||Ra.nodeType!==1&&Ra.nodeType!==9&&Ra.nodeType!==11&&(Ra.nodeType!==8||Ra.nodeValue!==" react-mount-point-unstable "))}function am(Ra,ka){if(ka||(ka=Ra?Ra.nodeType===9?Ra.documentElement:Ra.firstChild:null,ka=!(!ka||ka.nodeType!==1||!ka.hasAttribute("data-reactroot"))),!ka)for(var Ba;Ba=Ra.lastChild;)Ra.removeChild(Ba);return new C2(Ra,0,ka?{hydrate:!0}:void 0)}function d1(Ra,ka,Ba,qa,Ka){var ol=Ba._reactRootContainer;if(ol){var ll=ol._internalRoot;if(typeof Ka=="function"){var hl=Ka;Ka=function(){var Hl=y2(ll);hl.call(Hl)}}u1(ka,ll,Ra,Ka)}else{if(ol=Ba._reactRootContainer=am(Ba,qa),ll=ol._internalRoot,typeof Ka=="function"){var bl=Ka;Ka=function(){var Hl=y2(ll);bl.call(Hl)}}xf(function(){u1(ka,ll,Ra,Ka)})}return y2(ll)}_d=function(Ra){if(Ra.tag===13){var ka=cp();g0(Ra,4,ka),A2(Ra,4)}},Fu=function(Ra){if(Ra.tag===13){var ka=cp();g0(Ra,67108864,ka),A2(Ra,67108864)}},Id=function(Ra){if(Ra.tag===13){var ka=cp(),Ba=f0(Ra);g0(Ra,Ba,ka),A2(Ra,Ba)}},kd=function(Ra,ka){return ka()},Kc=function(Ra,ka,Ba){switch(ka){case"input":if(Vl(Ra,Ba),ka=Ba.name,Ba.type==="radio"&&ka!=null){for(Ba=Ra;Ba.parentNode;)Ba=Ba.parentNode;for(Ba=Ba.querySelectorAll("input[name="+JSON.stringify(""+ka)+'][type="radio"]'),ka=0;ka<Ba.length;ka++){var qa=Ba[ka];if(qa!==Ra&&qa.form===Ra.form){var Ka=E0(qa);if(!Ka)throw Error(oa(90));Rl(qa),Vl(qa,Ka)}}}break;case"textarea":Sl(Ra,Ba);break;case"select":ka=Ba.value,ka!=null&&Al(Ra,!!Ba.multiple,ka,!1)}},qc=h2,uc=function(Ra,ka,Ba,qa,Ka){var ol=Lc;Lc|=4;try{return W0(98,Ra.bind(null,ka,Ba,qa,Ka))}finally{Lc=ol,Lc===0&&(Ph(),Wp())}},lc=function(){(Lc&49)===0&&(hg(),L0())},hc=function(Ra,ka){var Ba=Lc;Lc|=2;try{return Ra(ka)}finally{Lc=Ba,Lc===0&&(Ph(),Wp())}};function wg(Ra,ka){var Ba=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bf(ka))throw Error(oa(200));return bg(Ra,ka,null,Ba)}var sm={Events:[zp,Hp,E0,dc,Pc,L0,{current:!1}]},Cf={findFiberByHostInstance:a0,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lm={bundleType:Cf.bundleType,version:Cf.version,rendererPackageName:Cf.rendererPackageName,rendererConfig:Cf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(Ra){return Ra=rd(Ra),Ra===null?null:Ra.stateNode},findFiberByHostInstance:Cf.findFiberByHostInstance||b2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var p1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!p1.isDisabled&&p1.supportsFiber)try{P1=p1.inject(lm),sp=p1}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,reactDom_production_min.createPortal=wg,reactDom_production_min.findDOMNode=function(Ra){if(Ra==null)return null;if(Ra.nodeType===1)return Ra;var ka=Ra._reactInternals;if(ka===void 0)throw typeof Ra.render=="function"?Error(oa(188)):Error(oa(268,Object.keys(Ra)));return Ra=rd(ka),Ra=Ra===null?null:Ra.stateNode,Ra},reactDom_production_min.flushSync=function(Ra,ka){var Ba=Lc;if((Ba&48)!==0)return Ra(ka);Lc|=1;try{if(Ra)return W0(99,Ra.bind(null,ka))}finally{Lc=Ba,Wp()}},reactDom_production_min.hydrate=function(Ra,ka,Ba){if(!bf(ka))throw Error(oa(200));return d1(null,Ra,ka,!0,Ba)},reactDom_production_min.render=function(Ra,ka,Ba){if(!bf(ka))throw Error(oa(200));return d1(null,Ra,ka,!1,Ba)},reactDom_production_min.unmountComponentAtNode=function(Ra){if(!bf(Ra))throw Error(oa(40));return Ra._reactRootContainer?(xf(function(){d1(null,null,Ra,!1,function(){Ra._reactRootContainer=null,Ra[S0]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=h2,reactDom_production_min.unstable_createPortal=function(Ra,ka){return wg(Ra,ka,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},reactDom_production_min.unstable_renderSubtreeIntoContainer=function(Ra,ka,Ba,qa){if(!bf(Ba))throw Error(oa(200));if(Ra==null||Ra._reactInternals===void 0)throw Error(oa(38));return d1(Ra,ka,Ba,!1,qa)},reactDom_production_min.version="17.0.2",reactDom_production_min}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function ea(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ea)}catch(na){console.error(na)}}return ea(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports);var propTypes$2={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var ea="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=ea,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var ea=requireReactPropTypesSecret();function na(){}function ra(){}return ra.resetWarningCache=na,factoryWithThrowingShims=function(){function oa(la,ca,ua,da,pa,ha){if(ha!==ea){var ga=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ga.name="Invariant Violation",ga}}oa.isRequired=oa;function aa(){return oa}var sa={array:oa,bigint:oa,bool:oa,func:oa,number:oa,object:oa,string:oa,symbol:oa,any:oa,arrayOf:aa,element:oa,elementType:oa,instanceOf:aa,node:oa,objectOf:aa,oneOf:aa,oneOfType:aa,shape:aa,exact:aa,checkPropTypes:ra,resetWarningCache:na};return sa.PropTypes=sa,sa},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes$2.exports=requireFactoryWithThrowingShims()()),propTypes$2.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);var ReactReduxContext=React.createContext(null);function defaultNoopBatch(ea){ea()}var batch=defaultNoopBatch,setBatch=function(na){return batch=na},getBatch=function(){return batch};function createListenerCollection(){var ea=getBatch(),na=null,ra=null;return{clear:function(){na=null,ra=null},notify:function(){ea(function(){for(var aa=na;aa;)aa.callback(),aa=aa.next})},get:function(){for(var aa=[],sa=na;sa;)aa.push(sa),sa=sa.next;return aa},subscribe:function(aa){var sa=!0,la=ra={callback:aa,next:null,prev:ra};return la.prev?la.prev.next=la:na=la,function(){!sa||na===null||(sa=!1,la.next?la.next.prev=la.prev:ra=la.prev,la.prev?la.prev.next=la.next:na=la.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(ea,na){var ra,oa=nullListeners;function aa(ha){return ua(),oa.subscribe(ha)}function sa(){oa.notify()}function la(){pa.onStateChange&&pa.onStateChange()}function ca(){return!!ra}function ua(){ra||(ra=na?na.addNestedSub(la):ea.subscribe(la),oa=createListenerCollection())}function da(){ra&&(ra(),ra=void 0,oa.clear(),oa=nullListeners)}var pa={addNestedSub:aa,notifyNestedSubs:sa,handleChangeWrapper:la,isSubscribed:ca,trySubscribe:ua,tryUnsubscribe:da,getListeners:function(){return oa}};return pa}var useIsomorphicLayoutEffect$6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(ea){var na=ea.store,ra=ea.context,oa=ea.children,aa=reactExports.useMemo(function(){var ca=createSubscription(na);return{store:na,subscription:ca}},[na]),sa=reactExports.useMemo(function(){return na.getState()},[na]);useIsomorphicLayoutEffect$6(function(){var ca=aa.subscription;return ca.onStateChange=ca.notifyNestedSubs,ca.trySubscribe(),sa!==na.getState()&&ca.notifyNestedSubs(),function(){ca.tryUnsubscribe(),ca.onStateChange=null}},[aa,sa]);var la=ra||ReactReduxContext;return React.createElement(la.Provider,{value:aa},oa)}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)({}).hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends$5.apply(null,arguments)}var reactIs$3={exports:{}},reactIs_production_min$3={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactIs_production_min$3;function requireReactIs_production_min$3(){if(hasRequiredReactIs_production_min$3)return reactIs_production_min$3;hasRequiredReactIs_production_min$3=1;var ea=typeof Symbol=="function"&&Symbol.for,na=ea?Symbol.for("react.element"):60103,ra=ea?Symbol.for("react.portal"):60106,oa=ea?Symbol.for("react.fragment"):60107,aa=ea?Symbol.for("react.strict_mode"):60108,sa=ea?Symbol.for("react.profiler"):60114,la=ea?Symbol.for("react.provider"):60109,ca=ea?Symbol.for("react.context"):60110,ua=ea?Symbol.for("react.async_mode"):60111,da=ea?Symbol.for("react.concurrent_mode"):60111,pa=ea?Symbol.for("react.forward_ref"):60112,ha=ea?Symbol.for("react.suspense"):60113,ga=ea?Symbol.for("react.suspense_list"):60120,fa=ea?Symbol.for("react.memo"):60115,ma=ea?Symbol.for("react.lazy"):60116,va=ea?Symbol.for("react.block"):60121,xa=ea?Symbol.for("react.fundamental"):60117,ya=ea?Symbol.for("react.responder"):60118,Aa=ea?Symbol.for("react.scope"):60119;function Ca(wa){if(typeof wa=="object"&&wa!==null){var ba=wa.$$typeof;switch(ba){case na:switch(wa=wa.type,wa){case ua:case da:case oa:case sa:case aa:case ha:return wa;default:switch(wa=wa&&wa.$$typeof,wa){case ca:case pa:case ma:case fa:case la:return wa;default:return ba}}case ra:return ba}}}function Sa(wa){return Ca(wa)===da}return reactIs_production_min$3.AsyncMode=ua,reactIs_production_min$3.ConcurrentMode=da,reactIs_production_min$3.ContextConsumer=ca,reactIs_production_min$3.ContextProvider=la,reactIs_production_min$3.Element=na,reactIs_production_min$3.ForwardRef=pa,reactIs_production_min$3.Fragment=oa,reactIs_production_min$3.Lazy=ma,reactIs_production_min$3.Memo=fa,reactIs_production_min$3.Portal=ra,reactIs_production_min$3.Profiler=sa,reactIs_production_min$3.StrictMode=aa,reactIs_production_min$3.Suspense=ha,reactIs_production_min$3.isAsyncMode=function(wa){return Sa(wa)||Ca(wa)===ua},reactIs_production_min$3.isConcurrentMode=Sa,reactIs_production_min$3.isContextConsumer=function(wa){return Ca(wa)===ca},reactIs_production_min$3.isContextProvider=function(wa){return Ca(wa)===la},reactIs_production_min$3.isElement=function(wa){return typeof wa=="object"&&wa!==null&&wa.$$typeof===na},reactIs_production_min$3.isForwardRef=function(wa){return Ca(wa)===pa},reactIs_production_min$3.isFragment=function(wa){return Ca(wa)===oa},reactIs_production_min$3.isLazy=function(wa){return Ca(wa)===ma},reactIs_production_min$3.isMemo=function(wa){return Ca(wa)===fa},reactIs_production_min$3.isPortal=function(wa){return Ca(wa)===ra},reactIs_production_min$3.isProfiler=function(wa){return Ca(wa)===sa},reactIs_production_min$3.isStrictMode=function(wa){return Ca(wa)===aa},reactIs_production_min$3.isSuspense=function(wa){return Ca(wa)===ha},reactIs_production_min$3.isValidElementType=function(wa){return typeof wa=="string"||typeof wa=="function"||wa===oa||wa===da||wa===sa||wa===aa||wa===ha||wa===ga||typeof wa=="object"&&wa!==null&&(wa.$$typeof===ma||wa.$$typeof===fa||wa.$$typeof===la||wa.$$typeof===ca||wa.$$typeof===pa||wa.$$typeof===xa||wa.$$typeof===ya||wa.$$typeof===Aa||wa.$$typeof===va)},reactIs_production_min$3.typeOf=Ca,reactIs_production_min$3}var hasRequiredReactIs$3;function requireReactIs$3(){return hasRequiredReactIs$3||(hasRequiredReactIs$3=1,reactIs$3.exports=requireReactIs_production_min$3()),reactIs$3.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var ea=requireReactIs$3(),na={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ra={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sa={};sa[ea.ForwardRef]=oa,sa[ea.Memo]=aa;function la(ma){return ea.isMemo(ma)?aa:sa[ma.$$typeof]||na}var ca=Object.defineProperty,ua=Object.getOwnPropertyNames,da=Object.getOwnPropertySymbols,pa=Object.getOwnPropertyDescriptor,ha=Object.getPrototypeOf,ga=Object.prototype;function fa(ma,va,xa){if(typeof va!="string"){if(ga){var ya=ha(va);ya&&ya!==ga&&fa(ma,ya,xa)}var Aa=ua(va);da&&(Aa=Aa.concat(da(va)));for(var Ca=la(ma),Sa=la(va),wa=0;wa<Aa.length;++wa){var ba=Aa[wa];if(!ra[ba]&&!(xa&&xa[ba])&&!(Sa&&Sa[ba])&&!(Ca&&Ca[ba])){var Ea=pa(va,ba);try{ca(ma,ba,Ea)}catch{}}}}return ma}return hoistNonReactStatics_cjs=fa,hoistNonReactStatics_cjs}requireHoistNonReactStatics_cjs();var reactIs$2={exports:{}},reactIs_production_min$2={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactIs_production_min$2;function requireReactIs_production_min$2(){if(hasRequiredReactIs_production_min$2)return reactIs_production_min$2;hasRequiredReactIs_production_min$2=1;var ea=60103,na=60106,ra=60107,oa=60108,aa=60114,sa=60109,la=60110,ca=60112,ua=60113,da=60120,pa=60115,ha=60116,ga=60121,fa=60122,ma=60117,va=60129,xa=60131;if(typeof Symbol=="function"&&Symbol.for){var ya=Symbol.for;ea=ya("react.element"),na=ya("react.portal"),ra=ya("react.fragment"),oa=ya("react.strict_mode"),aa=ya("react.profiler"),sa=ya("react.provider"),la=ya("react.context"),ca=ya("react.forward_ref"),ua=ya("react.suspense"),da=ya("react.suspense_list"),pa=ya("react.memo"),ha=ya("react.lazy"),ga=ya("react.block"),fa=ya("react.server.block"),ma=ya("react.fundamental"),va=ya("react.debug_trace_mode"),xa=ya("react.legacy_hidden")}function Aa(Ta){if(typeof Ta=="object"&&Ta!==null){var _a=Ta.$$typeof;switch(_a){case ea:switch(Ta=Ta.type,Ta){case ra:case aa:case oa:case ua:case da:return Ta;default:switch(Ta=Ta&&Ta.$$typeof,Ta){case la:case ca:case ha:case pa:case sa:return Ta;default:return _a}}case na:return _a}}}var Ca=sa,Sa=ea,wa=ca,ba=ra,Ea=ha,$a=pa,Ma=na,Ia=aa,Oa=oa,Da=ua;return reactIs_production_min$2.ContextConsumer=la,reactIs_production_min$2.ContextProvider=Ca,reactIs_production_min$2.Element=Sa,reactIs_production_min$2.ForwardRef=wa,reactIs_production_min$2.Fragment=ba,reactIs_production_min$2.Lazy=Ea,reactIs_production_min$2.Memo=$a,reactIs_production_min$2.Portal=Ma,reactIs_production_min$2.Profiler=Ia,reactIs_production_min$2.StrictMode=Oa,reactIs_production_min$2.Suspense=Da,reactIs_production_min$2.isAsyncMode=function(){return!1},reactIs_production_min$2.isConcurrentMode=function(){return!1},reactIs_production_min$2.isContextConsumer=function(Ta){return Aa(Ta)===la},reactIs_production_min$2.isContextProvider=function(Ta){return Aa(Ta)===sa},reactIs_production_min$2.isElement=function(Ta){return typeof Ta=="object"&&Ta!==null&&Ta.$$typeof===ea},reactIs_production_min$2.isForwardRef=function(Ta){return Aa(Ta)===ca},reactIs_production_min$2.isFragment=function(Ta){return Aa(Ta)===ra},reactIs_production_min$2.isLazy=function(Ta){return Aa(Ta)===ha},reactIs_production_min$2.isMemo=function(Ta){return Aa(Ta)===pa},reactIs_production_min$2.isPortal=function(Ta){return Aa(Ta)===na},reactIs_production_min$2.isProfiler=function(Ta){return Aa(Ta)===aa},reactIs_production_min$2.isStrictMode=function(Ta){return Aa(Ta)===oa},reactIs_production_min$2.isSuspense=function(Ta){return Aa(Ta)===ua},reactIs_production_min$2.isValidElementType=function(Ta){return typeof Ta=="string"||typeof Ta=="function"||Ta===ra||Ta===aa||Ta===va||Ta===oa||Ta===ua||Ta===da||Ta===xa||typeof Ta=="object"&&Ta!==null&&(Ta.$$typeof===ha||Ta.$$typeof===pa||Ta.$$typeof===sa||Ta.$$typeof===la||Ta.$$typeof===ca||Ta.$$typeof===ma||Ta.$$typeof===ga||Ta[0]===fa)},reactIs_production_min$2.typeOf=Aa,reactIs_production_min$2}var hasRequiredReactIs$2;function requireReactIs$2(){return hasRequiredReactIs$2||(hasRequiredReactIs$2=1,reactIs$2.exports=requireReactIs_production_min$2()),reactIs$2.exports}requireReactIs$2();function is$3(ea,na){return ea===na?ea!==0||na!==0||1/ea===1/na:ea!==ea&&na!==na}function shallowEqual$2(ea,na){if(is$3(ea,na))return!0;if(typeof ea!="object"||ea===null||typeof na!="object"||na===null)return!1;var ra=Object.keys(ea),oa=Object.keys(na);if(ra.length!==oa.length)return!1;for(var aa=0;aa<ra.length;aa++)if(!Object.prototype.hasOwnProperty.call(na,ra[aa])||!is$3(ea[ra[aa]],na[ra[aa]]))return!1;return!0}function useReduxContext(){var ea=reactExports.useContext(ReactReduxContext);return ea}function createStoreHook(ea){ea===void 0&&(ea=ReactReduxContext);var na=ea===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(ea)};return function(){var oa=na(),aa=oa.store;return aa}}var useStore=createStoreHook();function createDispatchHook(ea){ea===void 0&&(ea=ReactReduxContext);var na=ea===ReactReduxContext?useStore:createStoreHook(ea);return function(){var oa=na();return oa.dispatch}}var useDispatch=createDispatchHook(),refEquality=function(na,ra){return na===ra};function useSelectorWithStoreAndSubscription(ea,na,ra,oa){var aa=reactExports.useReducer(function(ma){return ma+1},0),sa=aa[1],la=reactExports.useMemo(function(){return createSubscription(ra,oa)},[ra,oa]),ca=reactExports.useRef(),ua=reactExports.useRef(),da=reactExports.useRef(),pa=reactExports.useRef(),ha=ra.getState(),ga;try{if(ea!==ua.current||ha!==da.current||ca.current){var fa=ea(ha);pa.current===void 0||!na(fa,pa.current)?ga=fa:ga=pa.current}else ga=pa.current}catch(ma){throw ca.current&&(ma.message+=`
The error may be correlated with this previous error:
`+ca.current.stack+`

`),ma}return useIsomorphicLayoutEffect$6(function(){ua.current=ea,da.current=ha,pa.current=ga,ca.current=void 0}),useIsomorphicLayoutEffect$6(function(){function ma(){try{var va=ra.getState();if(va===da.current)return;var xa=ua.current(va);if(na(xa,pa.current))return;pa.current=xa,da.current=va}catch(ya){ca.current=ya}sa()}return la.onStateChange=ma,la.trySubscribe(),ma(),function(){return la.tryUnsubscribe()}},[ra,la]),ga}function createSelectorHook(ea){ea===void 0&&(ea=ReactReduxContext);var na=ea===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(ea)};return function(oa,aa){aa===void 0&&(aa=refEquality);var sa=na(),la=sa.store,ca=sa.subscription,ua=useSelectorWithStoreAndSubscription(oa,aa,la,ca);return reactExports.useDebugValue(ua),ua}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);var __assign$9=function(){return __assign$9=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$9.apply(this,arguments)};function __spreadArray$3(ea,na,ra){if(ra||arguments.length===2)for(var oa=0,aa=na.length,sa;oa<aa;oa++)(sa||!(oa in na))&&(sa||(sa=Array.prototype.slice.call(na,0,oa)),sa[oa]=na[oa]);return ea.concat(sa||Array.prototype.slice.call(na))}typeof SuppressedError=="function"&&SuppressedError;var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(na,ra,oa,aa){var sa=oa?oa.call(aa,na,ra):void 0;if(sa!==void 0)return!!sa;if(na===ra)return!0;if(typeof na!="object"||!na||typeof ra!="object"||!ra)return!1;var la=Object.keys(na),ca=Object.keys(ra);if(la.length!==ca.length)return!1;for(var ua=Object.prototype.hasOwnProperty.bind(ra),da=0;da<la.length;da++){var pa=la[da];if(!ua(pa))return!1;var ha=na[pa],ga=ra[pa];if(sa=oa?oa.call(aa,ha,ga,pa):void 0,sa===!1||sa===void 0&&ha!==ga)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const p$2=getDefaultExportFromCjs(shallowequalExports);var MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$1=Math.abs,from=String.fromCharCode,assign$1=Object.assign;function hash$1(ea,na){return charat(ea,0)^45?(((na<<2^charat(ea,0))<<2^charat(ea,1))<<2^charat(ea,2))<<2^charat(ea,3):0}function trim(ea){return ea.trim()}function match$3(ea,na){return(ea=na.exec(ea))?ea[0]:ea}function replace(ea,na,ra){return ea.replace(na,ra)}function indexof(ea,na,ra){return ea.indexOf(na,ra)}function charat(ea,na){return ea.charCodeAt(na)|0}function substr(ea,na,ra){return ea.slice(na,ra)}function strlen(ea){return ea.length}function sizeof(ea){return ea.length}function append(ea,na){return na.push(ea),ea}function combine(ea,na){return ea.map(na).join("")}function filter(ea,na){return ea.filter(function(ra){return!match$3(ra,na)})}var line=1,column=1,length=0,position$2=0,character=0,characters="";function node$2(ea,na,ra,oa,aa,sa,la,ca){return{value:ea,root:na,parent:ra,type:oa,props:aa,children:sa,line,column,length:la,return:"",siblings:ca}}function copy$1(ea,na){return assign$1(node$2("",null,null,"",null,null,0,ea.siblings),ea,{length:-ea.length},na)}function lift(ea){for(;ea.root;)ea=copy$1(ea.root,{children:[ea]});append(ea,ea.siblings)}function char(){return character}function prev(){return character=position$2>0?charat(characters,--position$2):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$2<length?charat(characters,position$2++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$2)}function caret(){return position$2}function slice(ea,na){return substr(characters,ea,na)}function token(ea){switch(ea){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(ea){return line=column=1,length=strlen(characters=ea),position$2=0,[]}function dealloc(ea){return characters="",ea}function delimit(ea){return trim(slice(position$2-1,delimiter(ea===91?ea+2:ea===40?ea+1:ea)))}function whitespace$1(ea){for(;(character=peek())&&character<33;)next();return token(ea)>2||token(character)>3?"":" "}function escaping(ea,na){for(;--na&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(ea,caret()+(na<6&&peek()==32&&next()==32))}function delimiter(ea){for(;next();)switch(character){case ea:return position$2;case 34:case 39:ea!==34&&ea!==39&&delimiter(character);break;case 40:ea===41&&delimiter(ea);break;case 92:next();break}return position$2}function commenter(ea,na){for(;next()&&ea+character!==57;)if(ea+character===84&&peek()===47)break;return"/*"+slice(na,position$2-1)+"*"+from(ea===47?ea:next())}function identifier(ea){for(;!token(peek());)next();return slice(ea,position$2)}function compile(ea){return dealloc(parse$2("",null,null,null,[""],ea=alloc(ea),0,[0],ea))}function parse$2(ea,na,ra,oa,aa,sa,la,ca,ua){for(var da=0,pa=0,ha=la,ga=0,fa=0,ma=0,va=1,xa=1,ya=1,Aa=0,Ca="",Sa=aa,wa=sa,ba=oa,Ea=Ca;xa;)switch(ma=Aa,Aa=next()){case 40:if(ma!=108&&charat(Ea,ha-1)==58){indexof(Ea+=replace(delimit(Aa),"&","&\f"),"&\f",abs$1(da?ca[da-1]:0))!=-1&&(ya=-1);break}case 34:case 39:case 91:Ea+=delimit(Aa);break;case 9:case 10:case 13:case 32:Ea+=whitespace$1(ma);break;case 92:Ea+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),na,ra,ua),ua);break;default:Ea+="/"}break;case 123*va:ca[da++]=strlen(Ea)*ya;case 125*va:case 59:case 0:switch(Aa){case 0:case 125:xa=0;case 59+pa:ya==-1&&(Ea=replace(Ea,/\f/g,"")),fa>0&&strlen(Ea)-ha&&append(fa>32?declaration(Ea+";",oa,ra,ha-1,ua):declaration(replace(Ea," ","")+";",oa,ra,ha-2,ua),ua);break;case 59:Ea+=";";default:if(append(ba=ruleset(Ea,na,ra,da,pa,aa,ca,Ca,Sa=[],wa=[],ha,sa),sa),Aa===123)if(pa===0)parse$2(Ea,na,ba,ba,Sa,sa,ha,ca,wa);else switch(ga===99&&charat(Ea,3)===110?100:ga){case 100:case 108:case 109:case 115:parse$2(ea,ba,ba,oa&&append(ruleset(ea,ba,ba,0,0,aa,ca,Ca,aa,Sa=[],ha,wa),wa),aa,wa,ha,ca,oa?Sa:wa);break;default:parse$2(Ea,ba,ba,ba,[""],wa,0,ca,wa)}}da=pa=fa=0,va=ya=1,Ca=Ea="",ha=la;break;case 58:ha=1+strlen(Ea),fa=ma;default:if(va<1){if(Aa==123)--va;else if(Aa==125&&va++==0&&prev()==125)continue}switch(Ea+=from(Aa),Aa*va){case 38:ya=pa>0?1:(Ea+="\f",-1);break;case 44:ca[da++]=(strlen(Ea)-1)*ya,ya=1;break;case 64:peek()===45&&(Ea+=delimit(next())),ga=peek(),pa=ha=strlen(Ca=Ea+=identifier(caret())),Aa++;break;case 45:ma===45&&strlen(Ea)==2&&(va=0)}}return sa}function ruleset(ea,na,ra,oa,aa,sa,la,ca,ua,da,pa,ha){for(var ga=aa-1,fa=aa===0?sa:[""],ma=sizeof(fa),va=0,xa=0,ya=0;va<oa;++va)for(var Aa=0,Ca=substr(ea,ga+1,ga=abs$1(xa=la[va])),Sa=ea;Aa<ma;++Aa)(Sa=trim(xa>0?fa[Aa]+" "+Ca:replace(Ca,/&\f/g,fa[Aa])))&&(ua[ya++]=Sa);return node$2(ea,na,ra,aa===0?RULESET:ca,ua,da,pa,ha)}function comment(ea,na,ra,oa){return node$2(ea,na,ra,COMMENT,from(char()),substr(ea,2,-2),0,oa)}function declaration(ea,na,ra,oa,aa){return node$2(ea,na,ra,DECLARATION,substr(ea,0,oa),substr(ea,oa+1,-1),oa,aa)}function prefix$1(ea,na,ra){switch(hash$1(ea,na)){case 5103:return WEBKIT+"print-"+ea+ea;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+ea+ea;case 4789:return MOZ+ea+ea;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+ea+MOZ+ea+MS+ea+ea;case 5936:switch(charat(ea,na+11)){case 114:return WEBKIT+ea+MS+replace(ea,/[svh]\w+-[tblr]{2}/,"tb")+ea;case 108:return WEBKIT+ea+MS+replace(ea,/[svh]\w+-[tblr]{2}/,"tb-rl")+ea;case 45:return WEBKIT+ea+MS+replace(ea,/[svh]\w+-[tblr]{2}/,"lr")+ea}case 6828:case 4268:case 2903:return WEBKIT+ea+MS+ea+ea;case 6165:return WEBKIT+ea+MS+"flex-"+ea+ea;case 5187:return WEBKIT+ea+replace(ea,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+ea;case 5443:return WEBKIT+ea+MS+"flex-item-"+replace(ea,/flex-|-self/g,"")+(match$3(ea,/flex-|baseline/)?"":MS+"grid-row-"+replace(ea,/flex-|-self/g,""))+ea;case 4675:return WEBKIT+ea+MS+"flex-line-pack"+replace(ea,/align-content|flex-|-self/g,"")+ea;case 5548:return WEBKIT+ea+MS+replace(ea,"shrink","negative")+ea;case 5292:return WEBKIT+ea+MS+replace(ea,"basis","preferred-size")+ea;case 6060:return WEBKIT+"box-"+replace(ea,"-grow","")+WEBKIT+ea+MS+replace(ea,"grow","positive")+ea;case 4554:return WEBKIT+replace(ea,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+ea;case 6187:return replace(replace(replace(ea,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),ea,"")+ea;case 5495:case 3959:return replace(ea,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(ea,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+ea+ea;case 4200:if(!match$3(ea,/flex-|baseline/))return MS+"grid-column-align"+substr(ea,na)+ea;break;case 2592:case 3360:return MS+replace(ea,"template-","")+ea;case 4384:case 3616:return ra&&ra.some(function(oa,aa){return na=aa,match$3(oa.props,/grid-\w+-end/)})?~indexof(ea+(ra=ra[na].value),"span",0)?ea:MS+replace(ea,"-start","")+ea+MS+"grid-row-span:"+(~indexof(ra,"span",0)?match$3(ra,/\d+/):+match$3(ra,/\d+/)-+match$3(ea,/\d+/))+";":MS+replace(ea,"-start","")+ea;case 4896:case 4128:return ra&&ra.some(function(oa){return match$3(oa.props,/grid-\w+-start/)})?ea:MS+replace(replace(ea,"-end","-span"),"span ","")+ea;case 4095:case 3583:case 4068:case 2532:return replace(ea,/(.+)-inline(.+)/,WEBKIT+"$1$2")+ea;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(ea)-1-na>6)switch(charat(ea,na+1)){case 109:if(charat(ea,na+4)!==45)break;case 102:return replace(ea,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(ea,na+3)==108?"$3":"$2-$3"))+ea;case 115:return~indexof(ea,"stretch",0)?prefix$1(replace(ea,"stretch","fill-available"),na,ra)+ea:ea}break;case 5152:case 5920:return replace(ea,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(oa,aa,sa,la,ca,ua,da){return MS+aa+":"+sa+da+(la?MS+aa+"-span:"+(ca?ua:+ua-+sa)+da:"")+ea});case 4949:if(charat(ea,na+6)===121)return replace(ea,":",":"+WEBKIT)+ea;break;case 6444:switch(charat(ea,charat(ea,14)===45?18:11)){case 120:return replace(ea,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT+(charat(ea,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+ea;case 100:return replace(ea,":",":"+MS)+ea}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(ea,"scroll-","scroll-snap-")+ea}return ea}function serialize(ea,na){for(var ra="",oa=0;oa<ea.length;oa++)ra+=na(ea[oa],oa,ea,na)||"";return ra}function stringify$2(ea,na,ra,oa){switch(ea.type){case LAYER:if(ea.children.length)break;case IMPORT:case DECLARATION:return ea.return=ea.return||ea.value;case COMMENT:return"";case KEYFRAMES:return ea.return=ea.value+"{"+serialize(ea.children,oa)+"}";case RULESET:if(!strlen(ea.value=ea.props.join(",")))return""}return strlen(ra=serialize(ea.children,oa))?ea.return=ea.value+"{"+ra+"}":""}function middleware(ea){var na=sizeof(ea);return function(ra,oa,aa,sa){for(var la="",ca=0;ca<na;ca++)la+=ea[ca](ra,oa,aa,sa)||"";return la}}function rulesheet(ea){return function(na){na.root||(na=na.return)&&ea(na)}}function prefixer(ea,na,ra,oa){if(ea.length>-1&&!ea.return)switch(ea.type){case DECLARATION:ea.return=prefix$1(ea.value,ea.length,ra);return;case KEYFRAMES:return serialize([copy$1(ea,{value:replace(ea.value,"@","@"+WEBKIT)})],oa);case RULESET:if(ea.length)return combine(ra=ea.props,function(aa){switch(match$3(aa,oa=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy$1(ea,{props:[replace(aa,/:(read-\w+)/,":"+MOZ+"$1")]})),lift(copy$1(ea,{props:[aa]})),assign$1(ea,{props:filter(ra,oa)});break;case"::placeholder":lift(copy$1(ea,{props:[replace(aa,/:(plac\w+)/,":"+WEBKIT+"input-$1")]})),lift(copy$1(ea,{props:[replace(aa,/:(plac\w+)/,":"+MOZ+"$1")]})),lift(copy$1(ea,{props:[replace(aa,/:(plac\w+)/,MS+"input-$1")]})),lift(copy$1(ea,{props:[aa]})),assign$1(ea,{props:filter(ra,oa)});break}return""})}}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},define_process_env_default$4={},f$2=typeof process<"u"&&define_process_env_default$4!==void 0&&(define_process_env_default$4.REACT_APP_SC_ATTR||define_process_env_default$4.SC_ATTR)||"data-styled",m$2="active",y$2="data-styled-version",v$2="6.1.15",g$2=`/*!sc*/
`,S$2=typeof window<"u"&&"HTMLElement"in window,w$2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&define_process_env_default$4!==void 0&&define_process_env_default$4.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&define_process_env_default$4.REACT_APP_SC_DISABLE_SPEEDY!==""?define_process_env_default$4.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&define_process_env_default$4.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&define_process_env_default$4!==void 0&&define_process_env_default$4.SC_DISABLE_SPEEDY!==void 0&&define_process_env_default$4.SC_DISABLE_SPEEDY!==""&&define_process_env_default$4.SC_DISABLE_SPEEDY!=="false"&&define_process_env_default$4.SC_DISABLE_SPEEDY),b$2={},_$2=Object.freeze([]),C$1=Object.freeze({});function I$2(ea,na,ra){return ra===void 0&&(ra=C$1),ea.theme!==ra.theme&&ea.theme||na||ra.theme}var A$2=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O$2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D$2=/(^-|-$)/g;function R$2(ea){return ea.replace(O$2,"-").replace(D$2,"")}var T$1=/(a)(d)/gi,k$2=52,j$2=function(ea){return String.fromCharCode(ea+(ea>25?39:97))};function x$2(ea){var na,ra="";for(na=Math.abs(ea);na>k$2;na=na/k$2|0)ra=j$2(na%k$2)+ra;return(j$2(na%k$2)+ra).replace(T$1,"$1-$2")}var V$1,F$2=5381,M$2=function(ea,na){for(var ra=na.length;ra;)ea=33*ea^na.charCodeAt(--ra);return ea},z$2=function(ea){return M$2(F$2,ea)};function $$2(ea){return x$2(z$2(ea)>>>0)}function B$2(ea){return ea.displayName||ea.name||"Component"}function L$2(ea){return typeof ea=="string"&&!0}var G$2=typeof Symbol=="function"&&Symbol.for,Y$1=G$2?Symbol.for("react.memo"):60115,W$2=G$2?Symbol.for("react.forward_ref"):60112,q$2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H$2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U$2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J$1=((V$1={})[W$2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V$1[Y$1]=U$2,V$1);function X$2(ea){return("type"in(na=ea)&&na.type.$$typeof)===Y$1?U$2:"$$typeof"in ea?J$1[ea.$$typeof]:q$2;var na}var Z$2=Object.defineProperty,K$1=Object.getOwnPropertyNames,Q$2=Object.getOwnPropertySymbols,ee$1=Object.getOwnPropertyDescriptor,te$1=Object.getPrototypeOf,ne$1=Object.prototype;function oe$1(ea,na,ra){if(typeof na!="string"){if(ne$1){var oa=te$1(na);oa&&oa!==ne$1&&oe$1(ea,oa,ra)}var aa=K$1(na);Q$2&&(aa=aa.concat(Q$2(na)));for(var sa=X$2(ea),la=X$2(na),ca=0;ca<aa.length;++ca){var ua=aa[ca];if(!(ua in H$2||ra&&ra[ua]||la&&ua in la||sa&&ua in sa)){var da=ee$1(na,ua);try{Z$2(ea,ua,da)}catch{}}}}return ea}function re$1(ea){return typeof ea=="function"}function se$1(ea){return typeof ea=="object"&&"styledComponentId"in ea}function ie$1(ea,na){return ea&&na?"".concat(ea," ").concat(na):ea||na||""}function ae$1(ea,na){if(ea.length===0)return"";for(var ra=ea[0],oa=1;oa<ea.length;oa++)ra+=ea[oa];return ra}function ce$1(ea){return ea!==null&&typeof ea=="object"&&ea.constructor.name===Object.name&&!("props"in ea&&ea.$$typeof)}function le$1(ea,na,ra){if(ra===void 0&&(ra=!1),!ra&&!ce$1(ea)&&!Array.isArray(ea))return na;if(Array.isArray(na))for(var oa=0;oa<na.length;oa++)ea[oa]=le$1(ea[oa],na[oa]);else if(ce$1(na))for(var oa in na)ea[oa]=le$1(ea[oa],na[oa]);return ea}function ue$1(ea,na){Object.defineProperty(ea,"toString",{value:na})}function he$1(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(ea," for more information.").concat(na.length>0?" Args: ".concat(na.join(", ")):""))}var fe$1=function(){function ea(na){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=na}return ea.prototype.indexOfGroup=function(na){for(var ra=0,oa=0;oa<na;oa++)ra+=this.groupSizes[oa];return ra},ea.prototype.insertRules=function(na,ra){if(na>=this.groupSizes.length){for(var oa=this.groupSizes,aa=oa.length,sa=aa;na>=sa;)if((sa<<=1)<0)throw he$1(16,"".concat(na));this.groupSizes=new Uint32Array(sa),this.groupSizes.set(oa),this.length=sa;for(var la=aa;la<sa;la++)this.groupSizes[la]=0}for(var ca=this.indexOfGroup(na+1),ua=(la=0,ra.length);la<ua;la++)this.tag.insertRule(ca,ra[la])&&(this.groupSizes[na]++,ca++)},ea.prototype.clearGroup=function(na){if(na<this.length){var ra=this.groupSizes[na],oa=this.indexOfGroup(na),aa=oa+ra;this.groupSizes[na]=0;for(var sa=oa;sa<aa;sa++)this.tag.deleteRule(oa)}},ea.prototype.getGroup=function(na){var ra="";if(na>=this.length||this.groupSizes[na]===0)return ra;for(var oa=this.groupSizes[na],aa=this.indexOfGroup(na),sa=aa+oa,la=aa;la<sa;la++)ra+="".concat(this.tag.getRule(la)).concat(g$2);return ra},ea}(),ye$1=new Map,ve$1=new Map,ge$1=1,Se$1=function(ea){if(ye$1.has(ea))return ye$1.get(ea);for(;ve$1.has(ge$1);)ge$1++;var na=ge$1++;return ye$1.set(ea,na),ve$1.set(na,ea),na},we$1=function(ea,na){ge$1=na+1,ye$1.set(ea,na),ve$1.set(na,ea)},be$1="style[".concat(f$2,"][").concat(y$2,'="').concat(v$2,'"]'),Ee$1=new RegExp("^".concat(f$2,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne$1=function(ea,na,ra){for(var oa,aa=ra.split(","),sa=0,la=aa.length;sa<la;sa++)(oa=aa[sa])&&ea.registerName(na,oa)},Pe$1=function(ea,na){for(var ra,oa=((ra=na.textContent)!==null&&ra!==void 0?ra:"").split(g$2),aa=[],sa=0,la=oa.length;sa<la;sa++){var ca=oa[sa].trim();if(ca){var ua=ca.match(Ee$1);if(ua){var da=0|parseInt(ua[1],10),pa=ua[2];da!==0&&(we$1(pa,da),Ne$1(ea,pa,ua[3]),ea.getTag().insertRules(da,aa)),aa.length=0}else aa.push(ca)}}},_e$1=function(ea){for(var na=document.querySelectorAll(be$1),ra=0,oa=na.length;ra<oa;ra++){var aa=na[ra];aa&&aa.getAttribute(f$2)!==m$2&&(Pe$1(ea,aa),aa.parentNode&&aa.parentNode.removeChild(aa))}};function Ce$1(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ie$1=function(ea){var na=document.head,ra=ea||na,oa=document.createElement("style"),aa=function(ca){var ua=Array.from(ca.querySelectorAll("style[".concat(f$2,"]")));return ua[ua.length-1]}(ra),sa=aa!==void 0?aa.nextSibling:null;oa.setAttribute(f$2,m$2),oa.setAttribute(y$2,v$2);var la=Ce$1();return la&&oa.setAttribute("nonce",la),ra.insertBefore(oa,sa),oa},Ae$1=function(){function ea(na){this.element=Ie$1(na),this.element.appendChild(document.createTextNode("")),this.sheet=function(ra){if(ra.sheet)return ra.sheet;for(var oa=document.styleSheets,aa=0,sa=oa.length;aa<sa;aa++){var la=oa[aa];if(la.ownerNode===ra)return la}throw he$1(17)}(this.element),this.length=0}return ea.prototype.insertRule=function(na,ra){try{return this.sheet.insertRule(ra,na),this.length++,!0}catch{return!1}},ea.prototype.deleteRule=function(na){this.sheet.deleteRule(na),this.length--},ea.prototype.getRule=function(na){var ra=this.sheet.cssRules[na];return ra&&ra.cssText?ra.cssText:""},ea}(),Oe$1=function(){function ea(na){this.element=Ie$1(na),this.nodes=this.element.childNodes,this.length=0}return ea.prototype.insertRule=function(na,ra){if(na<=this.length&&na>=0){var oa=document.createTextNode(ra);return this.element.insertBefore(oa,this.nodes[na]||null),this.length++,!0}return!1},ea.prototype.deleteRule=function(na){this.element.removeChild(this.nodes[na]),this.length--},ea.prototype.getRule=function(na){return na<this.length?this.nodes[na].textContent:""},ea}(),De$1=function(){function ea(na){this.rules=[],this.length=0}return ea.prototype.insertRule=function(na,ra){return na<=this.length&&(this.rules.splice(na,0,ra),this.length++,!0)},ea.prototype.deleteRule=function(na){this.rules.splice(na,1),this.length--},ea.prototype.getRule=function(na){return na<this.length?this.rules[na]:""},ea}(),Re$1=S$2,Te$1={isServer:!S$2,useCSSOMInjection:!w$2},ke$1=function(){function ea(na,ra,oa){na===void 0&&(na=C$1),ra===void 0&&(ra={});var aa=this;this.options=__assign$9(__assign$9({},Te$1),na),this.gs=ra,this.names=new Map(oa),this.server=!!na.isServer,!this.server&&S$2&&Re$1&&(Re$1=!1,_e$1(this)),ue$1(this,function(){return function(sa){for(var la=sa.getTag(),ca=la.length,ua="",da=function(ha){var ga=function(ya){return ve$1.get(ya)}(ha);if(ga===void 0)return"continue";var fa=sa.names.get(ga),ma=la.getGroup(ha);if(fa===void 0||!fa.size||ma.length===0)return"continue";var va="".concat(f$2,".g").concat(ha,'[id="').concat(ga,'"]'),xa="";fa!==void 0&&fa.forEach(function(ya){ya.length>0&&(xa+="".concat(ya,","))}),ua+="".concat(ma).concat(va,'{content:"').concat(xa,'"}').concat(g$2)},pa=0;pa<ca;pa++)da(pa);return ua}(aa)})}return ea.registerId=function(na){return Se$1(na)},ea.prototype.rehydrate=function(){!this.server&&S$2&&_e$1(this)},ea.prototype.reconstructWithOptions=function(na,ra){return ra===void 0&&(ra=!0),new ea(__assign$9(__assign$9({},this.options),na),this.gs,ra&&this.names||void 0)},ea.prototype.allocateGSInstance=function(na){return this.gs[na]=(this.gs[na]||0)+1},ea.prototype.getTag=function(){return this.tag||(this.tag=(na=function(ra){var oa=ra.useCSSOMInjection,aa=ra.target;return ra.isServer?new De$1(aa):oa?new Ae$1(aa):new Oe$1(aa)}(this.options),new fe$1(na)));var na},ea.prototype.hasNameForId=function(na,ra){return this.names.has(na)&&this.names.get(na).has(ra)},ea.prototype.registerName=function(na,ra){if(Se$1(na),this.names.has(na))this.names.get(na).add(ra);else{var oa=new Set;oa.add(ra),this.names.set(na,oa)}},ea.prototype.insertRules=function(na,ra,oa){this.registerName(na,ra),this.getTag().insertRules(Se$1(na),oa)},ea.prototype.clearNames=function(na){this.names.has(na)&&this.names.get(na).clear()},ea.prototype.clearRules=function(na){this.getTag().clearGroup(Se$1(na)),this.clearNames(na)},ea.prototype.clearTag=function(){this.tag=void 0},ea}(),je$1=/&/g,xe$1=/^\s*\/\/.*$/gm;function Ve$1(ea,na){return ea.map(function(ra){return ra.type==="rule"&&(ra.value="".concat(na," ").concat(ra.value),ra.value=ra.value.replaceAll(",",",".concat(na," ")),ra.props=ra.props.map(function(oa){return"".concat(na," ").concat(oa)})),Array.isArray(ra.children)&&ra.type!=="@keyframes"&&(ra.children=Ve$1(ra.children,na)),ra})}function Fe$1(ea){var na,ra,oa,aa=ea===void 0?C$1:ea,sa=aa.options,la=sa===void 0?C$1:sa,ca=aa.plugins,ua=ca===void 0?_$2:ca,da=function(ga,fa,ma){return ma.startsWith(ra)&&ma.endsWith(ra)&&ma.replaceAll(ra,"").length>0?".".concat(na):ga},pa=ua.slice();pa.push(function(ga){ga.type===RULESET&&ga.value.includes("&")&&(ga.props[0]=ga.props[0].replace(je$1,ra).replace(oa,da))}),la.prefix&&pa.push(prefixer),pa.push(stringify$2);var ha=function(ga,fa,ma,va){fa===void 0&&(fa=""),ma===void 0&&(ma=""),va===void 0&&(va="&"),na=va,ra=fa,oa=new RegExp("\\".concat(ra,"\\b"),"g");var xa=ga.replace(xe$1,""),ya=compile(ma||fa?"".concat(ma," ").concat(fa," { ").concat(xa," }"):xa);la.namespace&&(ya=Ve$1(ya,la.namespace));var Aa=[];return serialize(ya,middleware(pa.concat(rulesheet(function(Ca){return Aa.push(Ca)})))),Aa};return ha.hash=ua.length?ua.reduce(function(ga,fa){return fa.name||he$1(15),M$2(ga,fa.name)},F$2).toString():"",ha}var Me$1=new ke$1,ze$1=Fe$1(),$e$1=React.createContext({shouldForwardProp:void 0,styleSheet:Me$1,stylis:ze$1});$e$1.Consumer;var Le$1=React.createContext(void 0);function Ge$1(){return reactExports.useContext($e$1)}function Ye$1(ea){var na=reactExports.useState(ea.stylisPlugins),ra=na[0],oa=na[1],aa=Ge$1().styleSheet,sa=reactExports.useMemo(function(){var ua=aa;return ea.sheet?ua=ea.sheet:ea.target&&(ua=ua.reconstructWithOptions({target:ea.target},!1)),ea.disableCSSOMInjection&&(ua=ua.reconstructWithOptions({useCSSOMInjection:!1})),ua},[ea.disableCSSOMInjection,ea.sheet,ea.target,aa]),la=reactExports.useMemo(function(){return Fe$1({options:{namespace:ea.namespace,prefix:ea.enableVendorPrefixes},plugins:ra})},[ea.enableVendorPrefixes,ea.namespace,ra]);reactExports.useEffect(function(){p$2(ra,ea.stylisPlugins)||oa(ea.stylisPlugins)},[ea.stylisPlugins]);var ca=reactExports.useMemo(function(){return{shouldForwardProp:ea.shouldForwardProp,styleSheet:sa,stylis:la}},[ea.shouldForwardProp,sa,la]);return React.createElement($e$1.Provider,{value:ca},React.createElement(Le$1.Provider,{value:la},ea.children))}var We$1=function(){function ea(na,ra){var oa=this;this.inject=function(aa,sa){sa===void 0&&(sa=ze$1);var la=oa.name+sa.hash;aa.hasNameForId(oa.id,la)||aa.insertRules(oa.id,la,sa(oa.rules,la,"@keyframes"))},this.name=na,this.id="sc-keyframes-".concat(na),this.rules=ra,ue$1(this,function(){throw he$1(12,String(oa.name))})}return ea.prototype.getName=function(na){return na===void 0&&(na=ze$1),this.name+na.hash},ea}(),qe$1=function(ea){return ea>="A"&&ea<="Z"};function He$1(ea){for(var na="",ra=0;ra<ea.length;ra++){var oa=ea[ra];if(ra===1&&oa==="-"&&ea[0]==="-")return ea;qe$1(oa)?na+="-"+oa.toLowerCase():na+=oa}return na.startsWith("ms-")?"-"+na:na}var Ue$1=function(ea){return ea==null||ea===!1||ea===""},Je$1=function(ea){var na,ra,oa=[];for(var aa in ea){var sa=ea[aa];ea.hasOwnProperty(aa)&&!Ue$1(sa)&&(Array.isArray(sa)&&sa.isCss||re$1(sa)?oa.push("".concat(He$1(aa),":"),sa,";"):ce$1(sa)?oa.push.apply(oa,__spreadArray$3(__spreadArray$3(["".concat(aa," {")],Je$1(sa),!1),["}"],!1)):oa.push("".concat(He$1(aa),": ").concat((na=aa,(ra=sa)==null||typeof ra=="boolean"||ra===""?"":typeof ra!="number"||ra===0||na in unitlessKeys||na.startsWith("--")?String(ra).trim():"".concat(ra,"px")),";")))}return oa};function Xe$1(ea,na,ra,oa){if(Ue$1(ea))return[];if(se$1(ea))return[".".concat(ea.styledComponentId)];if(re$1(ea)){if(!re$1(sa=ea)||sa.prototype&&sa.prototype.isReactComponent||!na)return[ea];var aa=ea(na);return Xe$1(aa,na,ra,oa)}var sa;return ea instanceof We$1?ra?(ea.inject(ra,oa),[ea.getName(oa)]):[ea]:ce$1(ea)?Je$1(ea):Array.isArray(ea)?Array.prototype.concat.apply(_$2,ea.map(function(la){return Xe$1(la,na,ra,oa)})):[ea.toString()]}function Ze$1(ea){for(var na=0;na<ea.length;na+=1){var ra=ea[na];if(re$1(ra)&&!se$1(ra))return!1}return!0}var Ke$1=z$2(v$2),Qe$1=function(){function ea(na,ra,oa){this.rules=na,this.staticRulesId="",this.isStatic=(oa===void 0||oa.isStatic)&&Ze$1(na),this.componentId=ra,this.baseHash=M$2(Ke$1,ra),this.baseStyle=oa,ke$1.registerId(ra)}return ea.prototype.generateAndInjectStyles=function(na,ra,oa){var aa=this.baseStyle?this.baseStyle.generateAndInjectStyles(na,ra,oa):"";if(this.isStatic&&!oa.hash)if(this.staticRulesId&&ra.hasNameForId(this.componentId,this.staticRulesId))aa=ie$1(aa,this.staticRulesId);else{var sa=ae$1(Xe$1(this.rules,na,ra,oa)),la=x$2(M$2(this.baseHash,sa)>>>0);if(!ra.hasNameForId(this.componentId,la)){var ca=oa(sa,".".concat(la),void 0,this.componentId);ra.insertRules(this.componentId,la,ca)}aa=ie$1(aa,la),this.staticRulesId=la}else{for(var ua=M$2(this.baseHash,oa.hash),da="",pa=0;pa<this.rules.length;pa++){var ha=this.rules[pa];if(typeof ha=="string")da+=ha;else if(ha){var ga=ae$1(Xe$1(ha,na,ra,oa));ua=M$2(ua,ga+pa),da+=ga}}if(da){var fa=x$2(ua>>>0);ra.hasNameForId(this.componentId,fa)||ra.insertRules(this.componentId,fa,oa(da,".".concat(fa),void 0,this.componentId)),aa=ie$1(aa,fa)}}return aa},ea}(),et$1=React.createContext(void 0);et$1.Consumer;function ot$1(ea){var na=React.useContext(et$1),ra=reactExports.useMemo(function(){return function(oa,aa){if(!oa)throw he$1(14);if(re$1(oa)){var sa=oa(aa);return sa}if(Array.isArray(oa)||typeof oa!="object")throw he$1(8);return aa?__assign$9(__assign$9({},aa),oa):oa}(ea.theme,na)},[ea.theme,na]);return ea.children?React.createElement(et$1.Provider,{value:ra},ea.children):null}var rt$1={};function it$1(ea,na,ra){var oa=se$1(ea),aa=ea,sa=!L$2(ea),la=na.attrs,ca=la===void 0?_$2:la,ua=na.componentId,da=ua===void 0?function(Sa,wa){var ba=typeof Sa!="string"?"sc":R$2(Sa);rt$1[ba]=(rt$1[ba]||0)+1;var Ea="".concat(ba,"-").concat($$2(v$2+ba+rt$1[ba]));return wa?"".concat(wa,"-").concat(Ea):Ea}(na.displayName,na.parentComponentId):ua,pa=na.displayName,ha=pa===void 0?function(Sa){return L$2(Sa)?"styled.".concat(Sa):"Styled(".concat(B$2(Sa),")")}(ea):pa,ga=na.displayName&&na.componentId?"".concat(R$2(na.displayName),"-").concat(na.componentId):na.componentId||da,fa=oa&&aa.attrs?aa.attrs.concat(ca).filter(Boolean):ca,ma=na.shouldForwardProp;if(oa&&aa.shouldForwardProp){var va=aa.shouldForwardProp;if(na.shouldForwardProp){var xa=na.shouldForwardProp;ma=function(Sa,wa){return va(Sa,wa)&&xa(Sa,wa)}}else ma=va}var ya=new Qe$1(ra,ga,oa?aa.componentStyle:void 0);function Aa(Sa,wa){return function(ba,Ea,$a){var Ma=ba.attrs,Ia=ba.componentStyle,Oa=ba.defaultProps,Da=ba.foldedComponentIds,Ta=ba.styledComponentId,_a=ba.target,La=React.useContext(et$1),Na=Ge$1(),za=ba.shouldForwardProp||Na.shouldForwardProp,Fa=I$2(Ea,La,Oa)||C$1,Ha=function(Xa,tl,il){for(var Ja,nl=__assign$9(__assign$9({},tl),{className:void 0,theme:il}),Ya=0;Ya<Xa.length;Ya+=1){var rl=re$1(Ja=Xa[Ya])?Ja(nl):Ja;for(var sl in rl)nl[sl]=sl==="className"?ie$1(nl[sl],rl[sl]):sl==="style"?__assign$9(__assign$9({},nl[sl]),rl[sl]):rl[sl]}return tl.className&&(nl.className=ie$1(nl.className,tl.className)),nl}(Ma,Ea,Fa),Va=Ha.as||_a,Ua={};for(var Qa in Ha)Ha[Qa]===void 0||Qa[0]==="$"||Qa==="as"||Qa==="theme"&&Ha.theme===Fa||(Qa==="forwardedAs"?Ua.as=Ha.forwardedAs:za&&!za(Qa,Va)||(Ua[Qa]=Ha[Qa]));var Wa=function(Xa,tl){var il=Ge$1(),Ja=Xa.generateAndInjectStyles(tl,il.styleSheet,il.stylis);return Ja}(Ia,Ha),Za=ie$1(Da,Ta);return Wa&&(Za+=" "+Wa),Ha.className&&(Za+=" "+Ha.className),Ua[L$2(Va)&&!A$2.has(Va)?"class":"className"]=Za,$a&&(Ua.ref=$a),reactExports.createElement(Va,Ua)}(Ca,Sa,wa)}Aa.displayName=ha;var Ca=React.forwardRef(Aa);return Ca.attrs=fa,Ca.componentStyle=ya,Ca.displayName=ha,Ca.shouldForwardProp=ma,Ca.foldedComponentIds=oa?ie$1(aa.foldedComponentIds,aa.styledComponentId):"",Ca.styledComponentId=ga,Ca.target=oa?aa.target:ea,Object.defineProperty(Ca,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Sa){this._foldedDefaultProps=oa?function(wa){for(var ba=[],Ea=1;Ea<arguments.length;Ea++)ba[Ea-1]=arguments[Ea];for(var $a=0,Ma=ba;$a<Ma.length;$a++)le$1(wa,Ma[$a],!0);return wa}({},aa.defaultProps,Sa):Sa}}),ue$1(Ca,function(){return".".concat(Ca.styledComponentId)}),sa&&oe$1(Ca,ea,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),Ca}function at$1(ea,na){for(var ra=[ea[0]],oa=0,aa=na.length;oa<aa;oa+=1)ra.push(na[oa],ea[oa+1]);return ra}var ct$1=function(ea){return Object.assign(ea,{isCss:!0})};function lt$1(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];if(re$1(ea)||ce$1(ea))return ct$1(Xe$1(at$1(_$2,__spreadArray$3([ea],na,!0))));var oa=ea;return na.length===0&&oa.length===1&&typeof oa[0]=="string"?Xe$1(oa):ct$1(Xe$1(at$1(oa,na)))}function ut$1(ea,na,ra){if(ra===void 0&&(ra=C$1),!na)throw he$1(1,na);var oa=function(aa){for(var sa=[],la=1;la<arguments.length;la++)sa[la-1]=arguments[la];return ea(na,ra,lt$1.apply(void 0,__spreadArray$3([aa],sa,!1)))};return oa.attrs=function(aa){return ut$1(ea,na,__assign$9(__assign$9({},ra),{attrs:Array.prototype.concat(ra.attrs,aa).filter(Boolean)}))},oa.withConfig=function(aa){return ut$1(ea,na,__assign$9(__assign$9({},ra),aa))},oa}var pt$1=function(ea){return ut$1(it$1,ea)},dt$1=pt$1;A$2.forEach(function(ea){dt$1[ea]=pt$1(ea)});var ht$1=function(){function ea(na,ra){this.rules=na,this.componentId=ra,this.isStatic=Ze$1(na),ke$1.registerId(this.componentId+1)}return ea.prototype.createStyles=function(na,ra,oa,aa){var sa=aa(ae$1(Xe$1(this.rules,ra,oa,aa)),""),la=this.componentId+na;oa.insertRules(la,la,sa)},ea.prototype.removeStyles=function(na,ra){ra.clearRules(this.componentId+na)},ea.prototype.renderStyles=function(na,ra,oa,aa){na>2&&ke$1.registerId(this.componentId+na),this.removeStyles(na,oa),this.createStyles(na,ra,oa,aa)},ea}();function ft$1(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];var oa=lt$1.apply(void 0,__spreadArray$3([ea],na,!1)),aa="sc-global-".concat($$2(JSON.stringify(oa))),sa=new ht$1(oa,aa),la=function(ua){var da=Ge$1(),pa=React.useContext(et$1),ha=React.useRef(da.styleSheet.allocateGSInstance(aa)).current;return da.styleSheet.server&&ca(ha,ua,da.styleSheet,pa,da.stylis),React.useLayoutEffect(function(){if(!da.styleSheet.server)return ca(ha,ua,da.styleSheet,pa,da.stylis),function(){return sa.removeStyles(ha,da.styleSheet)}},[ha,ua,da.styleSheet,pa,da.stylis]),null};function ca(ua,da,pa,ha,ga){if(sa.isStatic)sa.renderStyles(ua,b$2,pa,ga);else{var fa=__assign$9(__assign$9({},da),{theme:I$2(da,ha,la.defaultProps)});sa.renderStyles(ua,fa,pa,ga)}}return React.memo(la)}function mt$1(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];var oa=ae$1(lt$1.apply(void 0,__spreadArray$3([ea],na,!1))),aa=$$2(oa);return new We$1(aa,oa)}(function(){const na=document.createElement("link").relList;if(na&&na.supports&&na.supports("modulepreload"))return;for(const aa of document.querySelectorAll('link[rel="modulepreload"]'))oa(aa);new MutationObserver(aa=>{for(const sa of aa)if(sa.type==="childList")for(const la of sa.addedNodes)la.tagName==="LINK"&&la.rel==="modulepreload"&&oa(la)}).observe(document,{childList:!0,subtree:!0});function ra(aa){const sa={};return aa.integrity&&(sa.integrity=aa.integrity),aa.referrerPolicy&&(sa.referrerPolicy=aa.referrerPolicy),aa.crossOrigin==="use-credentials"?sa.credentials="include":aa.crossOrigin==="anonymous"?sa.credentials="omit":sa.credentials="same-origin",sa}function oa(aa){if(aa.ep)return;aa.ep=!0;const sa=ra(aa);fetch(aa.href,sa)}})();function n$2(ea){for(var na=arguments.length,ra=Array(na>1?na-1:0),oa=1;oa<na;oa++)ra[oa-1]=arguments[oa];throw Error("[Immer] minified error nr: "+ea+(ra.length?" "+ra.map(function(aa){return"'"+aa+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r$3(ea){return!!ea&&!!ea[Q$1]}function t$2(ea){var na;return!!ea&&(function(ra){if(!ra||typeof ra!="object")return!1;var oa=Object.getPrototypeOf(ra);if(oa===null)return!0;var aa=Object.hasOwnProperty.call(oa,"constructor")&&oa.constructor;return aa===Object||typeof aa=="function"&&Function.toString.call(aa)===Z$1}(ea)||Array.isArray(ea)||!!ea[L$1]||!!(!((na=ea.constructor)===null||na===void 0)&&na[L$1])||s$2(ea)||v$1(ea))}function i$3(ea,na,ra){ra===void 0&&(ra=!1),o$2(ea)===0?(ra?Object.keys:nn$1)(ea).forEach(function(oa){ra&&typeof oa=="symbol"||na(oa,ea[oa],ea)}):ea.forEach(function(oa,aa){return na(aa,oa,ea)})}function o$2(ea){var na=ea[Q$1];return na?na.i>3?na.i-4:na.i:Array.isArray(ea)?1:s$2(ea)?2:v$1(ea)?3:0}function u$1(ea,na){return o$2(ea)===2?ea.has(na):Object.prototype.hasOwnProperty.call(ea,na)}function a$2(ea,na){return o$2(ea)===2?ea.get(na):ea[na]}function f$1(ea,na,ra){var oa=o$2(ea);oa===2?ea.set(na,ra):oa===3?ea.add(ra):ea[na]=ra}function c$2(ea,na){return ea===na?ea!==0||1/ea==1/na:ea!=ea&&na!=na}function s$2(ea){return X$1&&ea instanceof Map}function v$1(ea){return q$1&&ea instanceof Set}function p$1(ea){return ea.o||ea.t}function l$2(ea){if(Array.isArray(ea))return Array.prototype.slice.call(ea);var na=rn$1(ea);delete na[Q$1];for(var ra=nn$1(na),oa=0;oa<ra.length;oa++){var aa=ra[oa],sa=na[aa];sa.writable===!1&&(sa.writable=!0,sa.configurable=!0),(sa.get||sa.set)&&(na[aa]={configurable:!0,writable:!0,enumerable:sa.enumerable,value:ea[aa]})}return Object.create(Object.getPrototypeOf(ea),na)}function d$2(ea,na){return na===void 0&&(na=!1),y$1(ea)||r$3(ea)||!t$2(ea)||(o$2(ea)>1&&(ea.set=ea.add=ea.clear=ea.delete=h$1),Object.freeze(ea),na&&i$3(ea,function(ra,oa){return d$2(oa,!0)},!0)),ea}function h$1(){n$2(2)}function y$1(ea){return ea==null||typeof ea!="object"||Object.isFrozen(ea)}function b$1(ea){var na=tn$1[ea];return na||n$2(18,ea),na}function m$1(ea,na){tn$1[ea]||(tn$1[ea]=na)}function _$1(){return U$1}function j$1(ea,na){na&&(b$1("Patches"),ea.u=[],ea.s=[],ea.v=na)}function g$1(ea){O$1(ea),ea.p.forEach(S$1),ea.p=null}function O$1(ea){ea===U$1&&(U$1=ea.l)}function w$1(ea){return U$1={p:[],l:U$1,h:ea,m:!0,_:0}}function S$1(ea){var na=ea[Q$1];na.i===0||na.i===1?na.j():na.g=!0}function P$1(ea,na){na._=na.p.length;var ra=na.p[0],oa=ea!==void 0&&ea!==ra;return na.h.O||b$1("ES5").S(na,ea,oa),oa?(ra[Q$1].P&&(g$1(na),n$2(4)),t$2(ea)&&(ea=M$1(na,ea),na.l||x$1(na,ea)),na.u&&b$1("Patches").M(ra[Q$1].t,ea,na.u,na.s)):ea=M$1(na,ra,[]),g$1(na),na.u&&na.v(na.u,na.s),ea!==H$1?ea:void 0}function M$1(ea,na,ra){if(y$1(na))return na;var oa=na[Q$1];if(!oa)return i$3(na,function(ca,ua){return A$1(ea,oa,na,ca,ua,ra)},!0),na;if(oa.A!==ea)return na;if(!oa.P)return x$1(ea,oa.t,!0),oa.t;if(!oa.I){oa.I=!0,oa.A._--;var aa=oa.i===4||oa.i===5?oa.o=l$2(oa.k):oa.o,sa=aa,la=!1;oa.i===3&&(sa=new Set(aa),aa.clear(),la=!0),i$3(sa,function(ca,ua){return A$1(ea,oa,aa,ca,ua,ra,la)}),x$1(ea,aa,!1),ra&&ea.u&&b$1("Patches").N(oa,ra,ea.u,ea.s)}return oa.o}function A$1(ea,na,ra,oa,aa,sa,la){if(r$3(aa)){var ca=M$1(ea,aa,sa&&na&&na.i!==3&&!u$1(na.R,oa)?sa.concat(oa):void 0);if(f$1(ra,oa,ca),!r$3(ca))return;ea.m=!1}else la&&ra.add(aa);if(t$2(aa)&&!y$1(aa)){if(!ea.h.D&&ea._<1)return;M$1(ea,aa),na&&na.A.l||x$1(ea,aa)}}function x$1(ea,na,ra){ra===void 0&&(ra=!1),!ea.l&&ea.h.D&&ea.m&&d$2(na,ra)}function z$1(ea,na){var ra=ea[Q$1];return(ra?p$1(ra):ea)[na]}function I$1(ea,na){if(na in ea)for(var ra=Object.getPrototypeOf(ea);ra;){var oa=Object.getOwnPropertyDescriptor(ra,na);if(oa)return oa;ra=Object.getPrototypeOf(ra)}}function k$1(ea){ea.P||(ea.P=!0,ea.l&&k$1(ea.l))}function E$1(ea){ea.o||(ea.o=l$2(ea.t))}function N$1(ea,na,ra){var oa=s$2(na)?b$1("MapSet").F(na,ra):v$1(na)?b$1("MapSet").T(na,ra):ea.O?function(aa,sa){var la=Array.isArray(aa),ca={i:la?1:0,A:sa?sa.A:_$1(),P:!1,I:!1,R:{},l:sa,t:aa,k:null,o:null,j:null,C:!1},ua=ca,da=en$1;la&&(ua=[ca],da=on$1);var pa=Proxy.revocable(ua,da),ha=pa.revoke,ga=pa.proxy;return ca.k=ga,ca.j=ha,ga}(na,ra):b$1("ES5").J(na,ra);return(ra?ra.A:_$1()).p.push(oa),oa}function R$1(ea){return r$3(ea)||n$2(22,ea),function na(ra){if(!t$2(ra))return ra;var oa,aa=ra[Q$1],sa=o$2(ra);if(aa){if(!aa.P&&(aa.i<4||!b$1("ES5").K(aa)))return aa.t;aa.I=!0,oa=D$1(ra,sa),aa.I=!1}else oa=D$1(ra,sa);return i$3(oa,function(la,ca){aa&&a$2(aa.t,la)===ca||f$1(oa,la,na(ca))}),sa===3?new Set(oa):oa}(ea)}function D$1(ea,na){switch(na){case 2:return new Map(ea);case 3:return Array.from(ea)}return l$2(ea)}function F$1(){function ea(sa,la){var ca=aa[sa];return ca?ca.enumerable=la:aa[sa]=ca={configurable:!0,enumerable:la,get:function(){var ua=this[Q$1];return en$1.get(ua,sa)},set:function(ua){var da=this[Q$1];en$1.set(da,sa,ua)}},ca}function na(sa){for(var la=sa.length-1;la>=0;la--){var ca=sa[la][Q$1];if(!ca.P)switch(ca.i){case 5:oa(ca)&&k$1(ca);break;case 4:ra(ca)&&k$1(ca)}}}function ra(sa){for(var la=sa.t,ca=sa.k,ua=nn$1(ca),da=ua.length-1;da>=0;da--){var pa=ua[da];if(pa!==Q$1){var ha=la[pa];if(ha===void 0&&!u$1(la,pa))return!0;var ga=ca[pa],fa=ga&&ga[Q$1];if(fa?fa.t!==ha:!c$2(ga,ha))return!0}}var ma=!!la[Q$1];return ua.length!==nn$1(la).length+(ma?0:1)}function oa(sa){var la=sa.k;if(la.length!==sa.t.length)return!0;var ca=Object.getOwnPropertyDescriptor(la,la.length-1);if(ca&&!ca.get)return!0;for(var ua=0;ua<la.length;ua++)if(!la.hasOwnProperty(ua))return!0;return!1}var aa={};m$1("ES5",{J:function(sa,la){var ca=Array.isArray(sa),ua=function(pa,ha){if(pa){for(var ga=Array(ha.length),fa=0;fa<ha.length;fa++)Object.defineProperty(ga,""+fa,ea(fa,!0));return ga}var ma=rn$1(ha);delete ma[Q$1];for(var va=nn$1(ma),xa=0;xa<va.length;xa++){var ya=va[xa];ma[ya]=ea(ya,pa||!!ma[ya].enumerable)}return Object.create(Object.getPrototypeOf(ha),ma)}(ca,sa),da={i:ca?5:4,A:la?la.A:_$1(),P:!1,I:!1,R:{},l:la,t:sa,k:ua,o:null,g:!1,C:!1};return Object.defineProperty(ua,Q$1,{value:da,writable:!0}),ua},S:function(sa,la,ca){ca?r$3(la)&&la[Q$1].A===sa&&na(sa.p):(sa.u&&function ua(da){if(da&&typeof da=="object"){var pa=da[Q$1];if(pa){var ha=pa.t,ga=pa.k,fa=pa.R,ma=pa.i;if(ma===4)i$3(ga,function(Ca){Ca!==Q$1&&(ha[Ca]!==void 0||u$1(ha,Ca)?fa[Ca]||ua(ga[Ca]):(fa[Ca]=!0,k$1(pa)))}),i$3(ha,function(Ca){ga[Ca]!==void 0||u$1(ga,Ca)||(fa[Ca]=!1,k$1(pa))});else if(ma===5){if(oa(pa)&&(k$1(pa),fa.length=!0),ga.length<ha.length)for(var va=ga.length;va<ha.length;va++)fa[va]=!1;else for(var xa=ha.length;xa<ga.length;xa++)fa[xa]=!0;for(var ya=Math.min(ga.length,ha.length),Aa=0;Aa<ya;Aa++)ga.hasOwnProperty(Aa)||(fa[Aa]=!0),fa[Aa]===void 0&&ua(ga[Aa])}}}}(sa.p[0]),na(sa.p))},K:function(sa){return sa.i===4?ra(sa):oa(sa)}})}var G$1,U$1,W$1=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",X$1=typeof Map<"u",q$1=typeof Set<"u",B$1=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H$1=W$1?Symbol.for("immer-nothing"):((G$1={})["immer-nothing"]=!0,G$1),L$1=W$1?Symbol.for("immer-draftable"):"__$immer_draftable",Q$1=W$1?Symbol.for("immer-state"):"__$immer_state",Z$1=""+Object.prototype.constructor,nn$1=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(ea){return Object.getOwnPropertyNames(ea).concat(Object.getOwnPropertySymbols(ea))}:Object.getOwnPropertyNames,rn$1=Object.getOwnPropertyDescriptors||function(ea){var na={};return nn$1(ea).forEach(function(ra){na[ra]=Object.getOwnPropertyDescriptor(ea,ra)}),na},tn$1={},en$1={get:function(ea,na){if(na===Q$1)return ea;var ra=p$1(ea);if(!u$1(ra,na))return function(aa,sa,la){var ca,ua=I$1(sa,la);return ua?"value"in ua?ua.value:(ca=ua.get)===null||ca===void 0?void 0:ca.call(aa.k):void 0}(ea,ra,na);var oa=ra[na];return ea.I||!t$2(oa)?oa:oa===z$1(ea.t,na)?(E$1(ea),ea.o[na]=N$1(ea.A.h,oa,ea)):oa},has:function(ea,na){return na in p$1(ea)},ownKeys:function(ea){return Reflect.ownKeys(p$1(ea))},set:function(ea,na,ra){var oa=I$1(p$1(ea),na);if(oa?.set)return oa.set.call(ea.k,ra),!0;if(!ea.P){var aa=z$1(p$1(ea),na),sa=aa?.[Q$1];if(sa&&sa.t===ra)return ea.o[na]=ra,ea.R[na]=!1,!0;if(c$2(ra,aa)&&(ra!==void 0||u$1(ea.t,na)))return!0;E$1(ea),k$1(ea)}return ea.o[na]===ra&&(ra!==void 0||na in ea.o)||Number.isNaN(ra)&&Number.isNaN(ea.o[na])||(ea.o[na]=ra,ea.R[na]=!0),!0},deleteProperty:function(ea,na){return z$1(ea.t,na)!==void 0||na in ea.t?(ea.R[na]=!1,E$1(ea),k$1(ea)):delete ea.R[na],ea.o&&delete ea.o[na],!0},getOwnPropertyDescriptor:function(ea,na){var ra=p$1(ea),oa=Reflect.getOwnPropertyDescriptor(ra,na);return oa&&{writable:!0,configurable:ea.i!==1||na!=="length",enumerable:oa.enumerable,value:ra[na]}},defineProperty:function(){n$2(11)},getPrototypeOf:function(ea){return Object.getPrototypeOf(ea.t)},setPrototypeOf:function(){n$2(12)}},on$1={};i$3(en$1,function(ea,na){on$1[ea]=function(){return arguments[0]=arguments[0][0],na.apply(this,arguments)}}),on$1.deleteProperty=function(ea,na){return on$1.set.call(this,ea,na,void 0)},on$1.set=function(ea,na,ra){return en$1.set.call(this,ea[0],na,ra,ea[0])};var un$1=function(){function ea(ra){var oa=this;this.O=B$1,this.D=!0,this.produce=function(aa,sa,la){if(typeof aa=="function"&&typeof sa!="function"){var ca=sa;sa=aa;var ua=oa;return function(va){var xa=this;va===void 0&&(va=ca);for(var ya=arguments.length,Aa=Array(ya>1?ya-1:0),Ca=1;Ca<ya;Ca++)Aa[Ca-1]=arguments[Ca];return ua.produce(va,function(Sa){var wa;return(wa=sa).call.apply(wa,[xa,Sa].concat(Aa))})}}var da;if(typeof sa!="function"&&n$2(6),la!==void 0&&typeof la!="function"&&n$2(7),t$2(aa)){var pa=w$1(oa),ha=N$1(oa,aa,void 0),ga=!0;try{da=sa(ha),ga=!1}finally{ga?g$1(pa):O$1(pa)}return typeof Promise<"u"&&da instanceof Promise?da.then(function(va){return j$1(pa,la),P$1(va,pa)},function(va){throw g$1(pa),va}):(j$1(pa,la),P$1(da,pa))}if(!aa||typeof aa!="object"){if((da=sa(aa))===void 0&&(da=aa),da===H$1&&(da=void 0),oa.D&&d$2(da,!0),la){var fa=[],ma=[];b$1("Patches").M(aa,da,fa,ma),la(fa,ma)}return da}n$2(21,aa)},this.produceWithPatches=function(aa,sa){if(typeof aa=="function")return function(da){for(var pa=arguments.length,ha=Array(pa>1?pa-1:0),ga=1;ga<pa;ga++)ha[ga-1]=arguments[ga];return oa.produceWithPatches(da,function(fa){return aa.apply(void 0,[fa].concat(ha))})};var la,ca,ua=oa.produce(aa,sa,function(da,pa){la=da,ca=pa});return typeof Promise<"u"&&ua instanceof Promise?ua.then(function(da){return[da,la,ca]}):[ua,la,ca]},typeof ra?.useProxies=="boolean"&&this.setUseProxies(ra.useProxies),typeof ra?.autoFreeze=="boolean"&&this.setAutoFreeze(ra.autoFreeze)}var na=ea.prototype;return na.createDraft=function(ra){t$2(ra)||n$2(8),r$3(ra)&&(ra=R$1(ra));var oa=w$1(this),aa=N$1(this,ra,void 0);return aa[Q$1].C=!0,O$1(oa),aa},na.finishDraft=function(ra,oa){var aa=ra&&ra[Q$1],sa=aa.A;return j$1(sa,oa),P$1(void 0,sa)},na.setAutoFreeze=function(ra){this.D=ra},na.setUseProxies=function(ra){ra&&!B$1&&n$2(20),this.O=ra},na.applyPatches=function(ra,oa){var aa;for(aa=oa.length-1;aa>=0;aa--){var sa=oa[aa];if(sa.path.length===0&&sa.op==="replace"){ra=sa.value;break}}aa>-1&&(oa=oa.slice(aa+1));var la=b$1("Patches").$;return r$3(ra)?la(ra,oa):this.produce(ra,function(ca){return la(ca,oa)})},ea}(),an$1=new un$1,fn$1=an$1.produce;an$1.produceWithPatches.bind(an$1);an$1.setAutoFreeze.bind(an$1);an$1.setUseProxies.bind(an$1);an$1.applyPatches.bind(an$1);an$1.createDraft.bind(an$1);an$1.finishDraft.bind(an$1);function ownKeys$3(ea,na){var ra=Object.keys(ea);if(Object.getOwnPropertySymbols){var oa=Object.getOwnPropertySymbols(ea);na&&(oa=oa.filter(function(aa){return Object.getOwnPropertyDescriptor(ea,aa).enumerable})),ra.push.apply(ra,oa)}return ra}function _objectSpread2$1(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{};na%2?ownKeys$3(Object(ra),!0).forEach(function(oa){_defineProperty$8(ea,oa,ra[oa])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ea,Object.getOwnPropertyDescriptors(ra)):ownKeys$3(Object(ra)).forEach(function(oa){Object.defineProperty(ea,oa,Object.getOwnPropertyDescriptor(ra,oa))})}return ea}function formatProdErrorMessage(ea){return"Minified Redux error #"+ea+"; visit https://redux.js.org/Errors?code="+ea+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject$4(ea){if(typeof ea!="object"||ea===null)return!1;for(var na=ea;Object.getPrototypeOf(na)!==null;)na=Object.getPrototypeOf(na);return Object.getPrototypeOf(ea)===na}function createStore(ea,na,ra){var oa;if(typeof na=="function"&&typeof ra=="function"||typeof ra=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof na=="function"&&typeof ra>"u"&&(ra=na,na=void 0),typeof ra<"u"){if(typeof ra!="function")throw new Error(formatProdErrorMessage(1));return ra(createStore)(ea,na)}if(typeof ea!="function")throw new Error(formatProdErrorMessage(2));var aa=ea,sa=na,la=[],ca=la,ua=!1;function da(){ca===la&&(ca=la.slice())}function pa(){if(ua)throw new Error(formatProdErrorMessage(3));return sa}function ha(va){if(typeof va!="function")throw new Error(formatProdErrorMessage(4));if(ua)throw new Error(formatProdErrorMessage(5));var xa=!0;return da(),ca.push(va),function(){if(xa){if(ua)throw new Error(formatProdErrorMessage(6));xa=!1,da();var Aa=ca.indexOf(va);ca.splice(Aa,1),la=null}}}function ga(va){if(!isPlainObject$4(va))throw new Error(formatProdErrorMessage(7));if(typeof va.type>"u")throw new Error(formatProdErrorMessage(8));if(ua)throw new Error(formatProdErrorMessage(9));try{ua=!0,sa=aa(sa,va)}finally{ua=!1}for(var xa=la=ca,ya=0;ya<xa.length;ya++){var Aa=xa[ya];Aa()}return va}function fa(va){if(typeof va!="function")throw new Error(formatProdErrorMessage(10));aa=va,ga({type:ActionTypes.REPLACE})}function ma(){var va,xa=ha;return va={subscribe:function(Aa){if(typeof Aa!="object"||Aa===null)throw new Error(formatProdErrorMessage(11));function Ca(){Aa.next&&Aa.next(pa())}Ca();var Sa=xa(Ca);return{unsubscribe:Sa}}},va[$$observable]=function(){return this},va}return ga({type:ActionTypes.INIT}),oa={dispatch:ga,subscribe:ha,getState:pa,replaceReducer:fa},oa[$$observable]=ma,oa}function assertReducerShape(ea){Object.keys(ea).forEach(function(na){var ra=ea[na],oa=ra(void 0,{type:ActionTypes.INIT});if(typeof oa>"u")throw new Error(formatProdErrorMessage(12));if(typeof ra(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(ea){for(var na=Object.keys(ea),ra={},oa=0;oa<na.length;oa++){var aa=na[oa];typeof ea[aa]=="function"&&(ra[aa]=ea[aa])}var sa=Object.keys(ra),la;try{assertReducerShape(ra)}catch(ca){la=ca}return function(ua,da){if(ua===void 0&&(ua={}),la)throw la;for(var pa=!1,ha={},ga=0;ga<sa.length;ga++){var fa=sa[ga],ma=ra[fa],va=ua[fa],xa=ma(va,da);if(typeof xa>"u")throw da&&da.type,new Error(formatProdErrorMessage(14));ha[fa]=xa,pa=pa||xa!==va}return pa=pa||sa.length!==Object.keys(ua).length,pa?ha:ua}}function compose(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];return na.length===0?function(oa){return oa}:na.length===1?na[0]:na.reduce(function(oa,aa){return function(){return oa(aa.apply(void 0,arguments))}})}function applyMiddleware(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];return function(oa){return function(){var aa=oa.apply(void 0,arguments),sa=function(){throw new Error(formatProdErrorMessage(15))},la={getState:aa.getState,dispatch:function(){return sa.apply(void 0,arguments)}},ca=na.map(function(ua){return ua(la)});return sa=compose.apply(void 0,ca)(aa.dispatch),_objectSpread2$1(_objectSpread2$1({},aa),{},{dispatch:sa})}}}var NOT_FOUND="NOT_FOUND";function createSingletonCache(ea){var na;return{get:function(oa){return na&&ea(na.key,oa)?na.value:NOT_FOUND},put:function(oa,aa){na={key:oa,value:aa}},getEntries:function(){return na?[na]:[]},clear:function(){na=void 0}}}function createLruCache(ea,na){var ra=[];function oa(ca){var ua=ra.findIndex(function(pa){return na(ca,pa.key)});if(ua>-1){var da=ra[ua];return ua>0&&(ra.splice(ua,1),ra.unshift(da)),da.value}return NOT_FOUND}function aa(ca,ua){oa(ca)===NOT_FOUND&&(ra.unshift({key:ca,value:ua}),ra.length>ea&&ra.pop())}function sa(){return ra}function la(){ra=[]}return{get:oa,put:aa,getEntries:sa,clear:la}}var defaultEqualityCheck=function(na,ra){return na===ra};function createCacheKeyComparator(ea){return function(ra,oa){if(ra===null||oa===null||ra.length!==oa.length)return!1;for(var aa=ra.length,sa=0;sa<aa;sa++)if(!ea(ra[sa],oa[sa]))return!1;return!0}}function defaultMemoize(ea,na){var ra=typeof na=="object"?na:{equalityCheck:na},oa=ra.equalityCheck,aa=oa===void 0?defaultEqualityCheck:oa,sa=ra.maxSize,la=sa===void 0?1:sa,ca=ra.resultEqualityCheck,ua=createCacheKeyComparator(aa),da=la===1?createSingletonCache(ua):createLruCache(la,ua);function pa(){var ha=da.get(arguments);if(ha===NOT_FOUND){if(ha=ea.apply(null,arguments),ca){var ga=da.getEntries(),fa=ga.find(function(ma){return ca(ma.value,ha)});fa&&(ha=fa.value)}da.put(arguments,ha)}return ha}return pa.clearCache=function(){return da.clear()},pa}function getDependencies(ea){var na=Array.isArray(ea[0])?ea[0]:ea;if(!na.every(function(oa){return typeof oa=="function"})){var ra=na.map(function(oa){return typeof oa=="function"?"function "+(oa.name||"unnamed")+"()":typeof oa}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+ra+"]")}return na}function createSelectorCreator(ea){for(var na=arguments.length,ra=new Array(na>1?na-1:0),oa=1;oa<na;oa++)ra[oa-1]=arguments[oa];var aa=function(){for(var la=arguments.length,ca=new Array(la),ua=0;ua<la;ua++)ca[ua]=arguments[ua];var da=0,pa,ha={memoizeOptions:void 0},ga=ca.pop();if(typeof ga=="object"&&(ha=ga,ga=ca.pop()),typeof ga!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof ga+"]");var fa=ha,ma=fa.memoizeOptions,va=ma===void 0?ra:ma,xa=Array.isArray(va)?va:[va],ya=getDependencies(ca),Aa=ea.apply(void 0,[function(){return da++,ga.apply(null,arguments)}].concat(xa)),Ca=ea(function(){for(var wa=[],ba=ya.length,Ea=0;Ea<ba;Ea++)wa.push(ya[Ea].apply(null,arguments));return pa=Aa.apply(null,wa),pa});return Object.assign(Ca,{resultFunc:ga,memoizedResultFunc:Aa,dependencies:ya,lastResult:function(){return pa},recomputations:function(){return da},resetRecomputations:function(){return da=0}}),Ca};return aa}var createSelector=createSelectorCreator(defaultMemoize);function createThunkMiddleware(ea){var na=function(oa){var aa=oa.dispatch,sa=oa.getState;return function(la){return function(ca){return typeof ca=="function"?ca(aa,sa,ea):la(ca)}}};return na}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var __extends$7=function(){var ea=function(na,ra){return ea=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oa,aa){oa.__proto__=aa}||function(oa,aa){for(var sa in aa)Object.prototype.hasOwnProperty.call(aa,sa)&&(oa[sa]=aa[sa])},ea(na,ra)};return function(na,ra){if(typeof ra!="function"&&ra!==null)throw new TypeError("Class extends value "+String(ra)+" is not a constructor or null");ea(na,ra);function oa(){this.constructor=na}na.prototype=ra===null?Object.create(ra):(oa.prototype=ra.prototype,new oa)}}(),__generator$1=function(ea,na){var ra={label:0,sent:function(){if(sa[0]&1)throw sa[1];return sa[1]},trys:[],ops:[]},oa,aa,sa,la;return la={next:ca(0),throw:ca(1),return:ca(2)},typeof Symbol=="function"&&(la[Symbol.iterator]=function(){return this}),la;function ca(da){return function(pa){return ua([da,pa])}}function ua(da){if(oa)throw new TypeError("Generator is already executing.");for(;ra;)try{if(oa=1,aa&&(sa=da[0]&2?aa.return:da[0]?aa.throw||((sa=aa.return)&&sa.call(aa),0):aa.next)&&!(sa=sa.call(aa,da[1])).done)return sa;switch(aa=0,sa&&(da=[da[0]&2,sa.value]),da[0]){case 0:case 1:sa=da;break;case 4:return ra.label++,{value:da[1],done:!1};case 5:ra.label++,aa=da[1],da=[0];continue;case 7:da=ra.ops.pop(),ra.trys.pop();continue;default:if(sa=ra.trys,!(sa=sa.length>0&&sa[sa.length-1])&&(da[0]===6||da[0]===2)){ra=0;continue}if(da[0]===3&&(!sa||da[1]>sa[0]&&da[1]<sa[3])){ra.label=da[1];break}if(da[0]===6&&ra.label<sa[1]){ra.label=sa[1],sa=da;break}if(sa&&ra.label<sa[2]){ra.label=sa[2],ra.ops.push(da);break}sa[2]&&ra.ops.pop(),ra.trys.pop();continue}da=na.call(ea,ra)}catch(pa){da=[6,pa],aa=0}finally{oa=sa=0}if(da[0]&5)throw da[1];return{value:da[0]?da[1]:void 0,done:!0}}},__spreadArray$2=function(ea,na){for(var ra=0,oa=na.length,aa=ea.length;ra<oa;ra++,aa++)ea[aa]=na[ra];return ea},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(ea,na,ra){return na in ea?__defProp(ea,na,{enumerable:!0,configurable:!0,writable:!0,value:ra}):ea[na]=ra},__spreadValues=function(ea,na){for(var ra in na||(na={}))__hasOwnProp.call(na,ra)&&__defNormalProp(ea,ra,na[ra]);if(__getOwnPropSymbols)for(var oa=0,aa=__getOwnPropSymbols(na);oa<aa.length;oa++){var ra=aa[oa];__propIsEnum.call(na,ra)&&__defNormalProp(ea,ra,na[ra])}return ea},__spreadProps=function(ea,na){return __defProps(ea,__getOwnPropDescs(na))},__async=function(ea,na,ra){return new Promise(function(oa,aa){var sa=function(ua){try{ca(ra.next(ua))}catch(da){aa(da)}},la=function(ua){try{ca(ra.throw(ua))}catch(da){aa(da)}},ca=function(ua){return ua.done?oa(ua.value):Promise.resolve(ua.value).then(sa,la)};ca((ra=ra.apply(ea,na)).next())})},composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function isPlainObject$3(ea){if(typeof ea!="object"||ea===null)return!1;var na=Object.getPrototypeOf(ea);if(na===null)return!0;for(var ra=na;Object.getPrototypeOf(ra)!==null;)ra=Object.getPrototypeOf(ra);return na===ra}function createAction(ea,na){function ra(){for(var oa=[],aa=0;aa<arguments.length;aa++)oa[aa]=arguments[aa];if(na){var sa=na.apply(void 0,oa);if(!sa)throw new Error("prepareAction did not return an object");return __spreadValues(__spreadValues({type:ea,payload:sa.payload},"meta"in sa&&{meta:sa.meta}),"error"in sa&&{error:sa.error})}return{type:ea,payload:oa[0]}}return ra.toString=function(){return""+ea},ra.type=ea,ra.match=function(oa){return oa.type===ea},ra}var MiddlewareArray=function(ea){__extends$7(na,ea);function na(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];var aa=ea.apply(this,ra)||this;return Object.setPrototypeOf(aa,na.prototype),aa}return Object.defineProperty(na,Symbol.species,{get:function(){return na},enumerable:!1,configurable:!0}),na.prototype.concat=function(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];return ea.prototype.concat.apply(this,ra)},na.prototype.prepend=function(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];return ra.length===1&&Array.isArray(ra[0])?new(na.bind.apply(na,__spreadArray$2([void 0],ra[0].concat(this)))):new(na.bind.apply(na,__spreadArray$2([void 0],ra.concat(this))))},na}(Array),EnhancerArray=function(ea){__extends$7(na,ea);function na(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];var aa=ea.apply(this,ra)||this;return Object.setPrototypeOf(aa,na.prototype),aa}return Object.defineProperty(na,Symbol.species,{get:function(){return na},enumerable:!1,configurable:!0}),na.prototype.concat=function(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];return ea.prototype.concat.apply(this,ra)},na.prototype.prepend=function(){for(var ra=[],oa=0;oa<arguments.length;oa++)ra[oa]=arguments[oa];return ra.length===1&&Array.isArray(ra[0])?new(na.bind.apply(na,__spreadArray$2([void 0],ra[0].concat(this)))):new(na.bind.apply(na,__spreadArray$2([void 0],ra.concat(this))))},na}(Array);function freezeDraftable(ea){return t$2(ea)?fn$1(ea,function(){}):ea}function isBoolean(ea){return typeof ea=="boolean"}function curryGetDefaultMiddleware(){return function(na){return getDefaultMiddleware(na)}}function getDefaultMiddleware(ea){ea===void 0&&(ea={});var na=ea.thunk,ra=na===void 0?!0:na;ea.immutableCheck,ea.serializableCheck,ea.actionCreatorCheck;var oa=new MiddlewareArray;return ra&&(isBoolean(ra)?oa.push(thunk):oa.push(thunk.withExtraArgument(ra.extraArgument))),oa}function configureStore(ea){var na=curryGetDefaultMiddleware(),ra=ea||{},oa=ra.reducer,aa=oa===void 0?void 0:oa,sa=ra.middleware,la=sa===void 0?na():sa,ca=ra.devTools,ua=ca===void 0?!0:ca,da=ra.preloadedState,pa=da===void 0?void 0:da,ha=ra.enhancers,ga=ha===void 0?void 0:ha,fa;if(typeof aa=="function")fa=aa;else if(isPlainObject$3(aa))fa=combineReducers(aa);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var ma=la;typeof ma=="function"&&(ma=ma(na));var va=applyMiddleware.apply(void 0,ma),xa=compose;ua&&(xa=composeWithDevTools(__spreadValues({trace:!1},typeof ua=="object"&&ua)));var ya=new EnhancerArray(va),Aa=ya;Array.isArray(ga)?Aa=__spreadArray$2([va],ga):typeof ga=="function"&&(Aa=ga(ya));var Ca=xa.apply(void 0,Aa);return createStore(fa,pa,Ca)}function executeReducerBuilderCallback(ea){var na={},ra=[],oa,aa={addCase:function(sa,la){var ca=typeof sa=="string"?sa:sa.type;if(!ca)throw new Error("`builder.addCase` cannot be called with an empty action type");if(ca in na)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return na[ca]=la,aa},addMatcher:function(sa,la){return ra.push({matcher:sa,reducer:la}),aa},addDefaultCase:function(sa){return oa=sa,aa}};return ea(aa),[na,ra,oa]}function isStateFunction(ea){return typeof ea=="function"}function createReducer(ea,na,ra,oa){ra===void 0&&(ra=[]);var aa=typeof na=="function"?executeReducerBuilderCallback(na):[na,ra,oa],sa=aa[0],la=aa[1],ca=aa[2],ua;if(isStateFunction(ea))ua=function(){return freezeDraftable(ea())};else{var da=freezeDraftable(ea);ua=function(){return da}}function pa(ha,ga){ha===void 0&&(ha=ua());var fa=__spreadArray$2([sa[ga.type]],la.filter(function(ma){var va=ma.matcher;return va(ga)}).map(function(ma){var va=ma.reducer;return va}));return fa.filter(function(ma){return!!ma}).length===0&&(fa=[ca]),fa.reduce(function(ma,va){if(va)if(r$3(ma)){var xa=ma,ya=va(xa,ga);return ya===void 0?ma:ya}else{if(t$2(ma))return fn$1(ma,function(Aa){return va(Aa,ga)});var ya=va(ma,ga);if(ya===void 0){if(ma===null)return ma;throw Error("A case reducer on a non-draftable value must not return undefined")}return ya}return ma},ha)}return pa.getInitialState=ua,pa}function getType2(ea,na){return ea+"/"+na}function createSlice(ea){var na=ea.name;if(!na)throw new Error("`name` is a required option for createSlice");var ra=typeof ea.initialState=="function"?ea.initialState:freezeDraftable(ea.initialState),oa=ea.reducers||{},aa=Object.keys(oa),sa={},la={},ca={};aa.forEach(function(pa){var ha=oa[pa],ga=getType2(na,pa),fa,ma;"reducer"in ha?(fa=ha.reducer,ma=ha.prepare):fa=ha,sa[pa]=fa,la[ga]=fa,ca[pa]=ma?createAction(ga,ma):createAction(ga)});function ua(){var pa=typeof ea.extraReducers=="function"?executeReducerBuilderCallback(ea.extraReducers):[ea.extraReducers],ha=pa[0],ga=ha===void 0?{}:ha,fa=pa[1],ma=fa===void 0?[]:fa,va=pa[2],xa=va===void 0?void 0:va,ya=__spreadValues(__spreadValues({},ga),la);return createReducer(ra,function(Aa){for(var Ca in ya)Aa.addCase(Ca,ya[Ca]);for(var Sa=0,wa=ma;Sa<wa.length;Sa++){var ba=wa[Sa];Aa.addMatcher(ba.matcher,ba.reducer)}xa&&Aa.addDefaultCase(xa)})}var da;return{name:na,reducer:function(pa,ha){return da||(da=ua()),da(pa,ha)},actions:ca,caseReducers:sa,getInitialState:function(){return da||(da=ua()),da.getInitialState()}}}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid$1=function(ea){ea===void 0&&(ea=21);for(var na="",ra=ea;ra--;)na+=urlAlphabet[Math.random()*64|0];return na},commonProperties=["name","message","stack","code"],RejectWithValue=function(){function ea(na,ra){this.payload=na,this.meta=ra}return ea}(),FulfillWithMeta=function(){function ea(na,ra){this.payload=na,this.meta=ra}return ea}(),miniSerializeError=function(ea){if(typeof ea=="object"&&ea!==null){for(var na={},ra=0,oa=commonProperties;ra<oa.length;ra++){var aa=oa[ra];typeof ea[aa]=="string"&&(na[aa]=ea[aa])}return na}return{message:String(ea)}};(function(){function ea(na,ra,oa){var aa=createAction(na+"/fulfilled",function(da,pa,ha,ga){return{payload:da,meta:__spreadProps(__spreadValues({},ga||{}),{arg:ha,requestId:pa,requestStatus:"fulfilled"})}}),sa=createAction(na+"/pending",function(da,pa,ha){return{payload:void 0,meta:__spreadProps(__spreadValues({},ha||{}),{arg:pa,requestId:da,requestStatus:"pending"})}}),la=createAction(na+"/rejected",function(da,pa,ha,ga,fa){return{payload:ga,error:(oa&&oa.serializeError||miniSerializeError)(da||"Rejected"),meta:__spreadProps(__spreadValues({},fa||{}),{arg:ha,requestId:pa,rejectedWithValue:!!ga,requestStatus:"rejected",aborted:da?.name==="AbortError",condition:da?.name==="ConditionError"})}}),ca=typeof AbortController<"u"?AbortController:function(){function da(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return da.prototype.abort=function(){},da}();function ua(da){return function(pa,ha,ga){var fa=oa?.idGenerator?oa.idGenerator(da):nanoid$1(),ma=new ca,va;function xa(Aa){va=Aa,ma.abort()}var ya=function(){return __async(this,null,function(){var Aa,Ca,Sa,wa,ba,Ea,$a;return __generator$1(this,function(Ma){switch(Ma.label){case 0:return Ma.trys.push([0,4,,5]),wa=(Aa=oa?.condition)==null?void 0:Aa.call(oa,da,{getState:ha,extra:ga}),isThenable(wa)?[4,wa]:[3,2];case 1:wa=Ma.sent(),Ma.label=2;case 2:if(wa===!1||ma.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return ba=new Promise(function(Ia,Oa){return ma.signal.addEventListener("abort",function(){return Oa({name:"AbortError",message:va||"Aborted"})})}),pa(sa(fa,da,(Ca=oa?.getPendingMeta)==null?void 0:Ca.call(oa,{requestId:fa,arg:da},{getState:ha,extra:ga}))),[4,Promise.race([ba,Promise.resolve(ra(da,{dispatch:pa,getState:ha,extra:ga,requestId:fa,signal:ma.signal,abort:xa,rejectWithValue:function(Ia,Oa){return new RejectWithValue(Ia,Oa)},fulfillWithValue:function(Ia,Oa){return new FulfillWithMeta(Ia,Oa)}})).then(function(Ia){if(Ia instanceof RejectWithValue)throw Ia;return Ia instanceof FulfillWithMeta?aa(Ia.payload,fa,da,Ia.meta):aa(Ia,fa,da)})])];case 3:return Sa=Ma.sent(),[3,5];case 4:return Ea=Ma.sent(),Sa=Ea instanceof RejectWithValue?la(null,fa,da,Ea.payload,Ea.meta):la(Ea,fa,da),[3,5];case 5:return $a=oa&&!oa.dispatchConditionRejection&&la.match(Sa)&&Sa.meta.condition,$a||pa(Sa),[2,Sa]}})})}();return Object.assign(ya,{abort:xa,requestId:fa,arg:da,unwrap:function(){return ya.then(unwrapResult)}})}}return Object.assign(ua,{pending:sa,rejected:la,fulfilled:aa,typePrefix:na})}return ea.withTypes=function(){return ea},ea})();function unwrapResult(ea){if(ea.meta&&ea.meta.rejectedWithValue)throw ea.payload;if(ea.error)throw ea.error;return ea.payload}function isThenable(ea){return ea!==null&&typeof ea=="object"&&typeof ea.then=="function"}var alm="listenerMiddleware";createAction(alm+"/add");createAction(alm+"/removeAll");createAction(alm+"/remove");var promise;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);F$1();var fastDeepEqual,hasRequiredFastDeepEqual;function requireFastDeepEqual(){return hasRequiredFastDeepEqual||(hasRequiredFastDeepEqual=1,fastDeepEqual=function ea(na,ra){if(na===ra)return!0;if(na&&ra&&typeof na=="object"&&typeof ra=="object"){if(na.constructor!==ra.constructor)return!1;var oa,aa,sa;if(Array.isArray(na)){if(oa=na.length,oa!=ra.length)return!1;for(aa=oa;aa--!==0;)if(!ea(na[aa],ra[aa]))return!1;return!0}if(na.constructor===RegExp)return na.source===ra.source&&na.flags===ra.flags;if(na.valueOf!==Object.prototype.valueOf)return na.valueOf()===ra.valueOf();if(na.toString!==Object.prototype.toString)return na.toString()===ra.toString();if(sa=Object.keys(na),oa=sa.length,oa!==Object.keys(ra).length)return!1;for(aa=oa;aa--!==0;)if(!Object.prototype.hasOwnProperty.call(ra,sa[aa]))return!1;for(aa=oa;aa--!==0;){var la=sa[aa];if(!ea(na[la],ra[la]))return!1}return!0}return na!==na&&ra!==ra}),fastDeepEqual}var fastDeepEqualExports=requireFastDeepEqual();const equal=getDefaultExportFromCjs(fastDeepEqualExports),undo=createAction("editor/undo"),hardUndo=createAction("editor/hardUndo"),redo=createAction("editor/redo"),addToHistory=createAction("editor/saveHistory"),injectHistory=createAction("editor/injectHistory");function pushState(ea,na,ra){return{records:[ea,...na.records.slice(na.index,ra!==0?na.index+ra:void 0)],index:0}}function clearHistory(ea){return{records:[ea],index:0}}function go$1(ea,na,ra=!1){const oa=Math.max(0,Math.min(ea.index+na,ea.records.length-1));return{...ea.records[oa],history:{records:ra?ea.records.slice(oa,ea.records.length):ea.records,index:ra?0:oa}}}const reundo=(ea,na)=>{const{filter:ra=!0,limit:oa=0,skipUnchanged:aa=!1}=na,sa=ea(void 0,{type:null});if(sa===void 0)throw new Error("Initial state cannot be undefined");const la={...sa,history:{records:[sa],index:0}};return(ca=la,ua)=>{switch(ua.type){case undo.type:return go$1(ca.history,1);case hardUndo.type:return go$1(ca.history,1,!0);case redo.type:return go$1(ca.history,-1);case addToHistory.type:default:const{history:da,...pa}=ca,ha=ea(pa,ua);return ua.type===injectHistory.type?{...ha,history:ua.payload.history}:(ua.type===addToHistory.type||typeof ra=="function"&&ra(ua,da,ha)||ra===!0)&&(!aa||!equal(ha,da.records[0]))?{...ha,history:pushState(ha,da,oa)}:ua?.payload?.clearHistory?{...ha,history:clearHistory(ha)}:{...ha,history:da}}}},useDispatchAndToHistory=(ea=200,na=!0)=>{const ra=useDispatch(),oa=reactExports.useCallback(throttle$3(()=>{ra(addToHistory())},ea),[ra,ea]);return reactExports.useCallback(aa=>{reactDomExports.unstable_batchedUpdates(()=>{ra(aa),na&&(ea!==!1?oa():ra(addToHistory()))})},[oa,ra,na,ea])},addElement=createAction("element/addElement"),removeElement=createAction("element/removeElement"),removeElements=createAction("element/removeElements"),duplicateElement=createAction("element/duplicateElement"),duplicateElements=createAction("element/duplicateElements"),updateElement=createAction("element/updateElement"),moveElement=createAction("element/moveElement"),updateElements=createAction("element/updateElements"),toggleLockElements=createAction("element/toggleLockElements"),resetElements=createAction("element/resetElements"),innerGroupElements=createAction("element/innerGroupElements"),innerUngroupElements=createAction("element/innerUngroupElements"),removeElementAction=createAction("element/removeElementAction"),updateElementsByPath=createAction("element/updateElementsByPath"),addSection=createAction("sections/addSection"),removeSection=createAction("sections/removeSection"),duplicateSection=createAction("sections/duplicateSection"),updateSectionThumbnail=createAction("sections/updateSectionThumbnail"),removeSectionThumbnail=createAction("sections/removeSectionThumbnail"),renameSection=createAction("sections/rename"),updateSection=createAction("sections/updateSection"),updateSectionByPath=createAction("sections/updateSectionByPath"),removeSectionAction=createAction("sections/removeSectionAction"),removeDataSource=createAction("sections/removeDataSources"),clearSectionWrapperSize=createAction("sections/clearSectionWrapperSize");var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var ea=function(Aa){return na(Aa)&&!ra(Aa)};function na(ya){return!!ya&&typeof ya=="object"}function ra(ya){var Aa=Object.prototype.toString.call(ya);return Aa==="[object RegExp]"||Aa==="[object Date]"||sa(ya)}var oa=typeof Symbol=="function"&&Symbol.for,aa=oa?Symbol.for("react.element"):60103;function sa(ya){return ya.$$typeof===aa}function la(ya){return Array.isArray(ya)?[]:{}}function ca(ya,Aa){return Aa.clone!==!1&&Aa.isMergeableObject(ya)?va(la(ya),ya,Aa):ya}function ua(ya,Aa,Ca){return ya.concat(Aa).map(function(Sa){return ca(Sa,Ca)})}function da(ya,Aa){if(!Aa.customMerge)return va;var Ca=Aa.customMerge(ya);return typeof Ca=="function"?Ca:va}function pa(ya){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(ya).filter(function(Aa){return Object.propertyIsEnumerable.call(ya,Aa)}):[]}function ha(ya){return Object.keys(ya).concat(pa(ya))}function ga(ya,Aa){try{return Aa in ya}catch{return!1}}function fa(ya,Aa){return ga(ya,Aa)&&!(Object.hasOwnProperty.call(ya,Aa)&&Object.propertyIsEnumerable.call(ya,Aa))}function ma(ya,Aa,Ca){var Sa={};return Ca.isMergeableObject(ya)&&ha(ya).forEach(function(wa){Sa[wa]=ca(ya[wa],Ca)}),ha(Aa).forEach(function(wa){fa(ya,wa)||(ga(ya,wa)&&Ca.isMergeableObject(Aa[wa])?Sa[wa]=da(wa,Ca)(ya[wa],Aa[wa],Ca):Sa[wa]=ca(Aa[wa],Ca))}),Sa}function va(ya,Aa,Ca){Ca=Ca||{},Ca.arrayMerge=Ca.arrayMerge||ua,Ca.isMergeableObject=Ca.isMergeableObject||ea,Ca.cloneUnlessOtherwiseSpecified=ca;var Sa=Array.isArray(Aa),wa=Array.isArray(ya),ba=Sa===wa;return ba?Sa?Ca.arrayMerge(ya,Aa,Ca):ma(ya,Aa,Ca):ca(Aa,Ca)}va.all=function(Aa,Ca){if(!Array.isArray(Aa))throw new Error("first argument should be an array");return Aa.reduce(function(Sa,wa){return va(Sa,wa,Ca)},{})};var xa=va;return cjs=xa,cjs}var cjsExports=requireCjs();const deepmerge=getDefaultExportFromCjs(cjsExports),initialState$c={activeSection:"section-1",activeBreakpoint:"default",selectedElements:[],showHiddenItems:!0,additionalFonts:{}},envVars=createSlice({name:"envVariables",initialState:initialState$c,reducers:{setActiveSection(ea,na){ea.activeSection=na.payload},setActiveBreakpoint(ea,na){ea.activeBreakpoint=na.payload},selectElement(ea,na){const{clear:ra,id:oa}=na.payload,aa=Array.isArray(oa)?oa:[oa];ra?ea.selectedElements=aa:aa.forEach(sa=>{ea.selectedElements.includes(sa)||ea.selectedElements.push(sa)})},deselectElement(ea,na){removeArrayIndex(ea.selectedElements,na.payload)},clearSelectedElements(ea){ea.selectedElements=[]},setAdditionalFonts(ea,{payload:na}){ea.additionalFonts=na},setShowHiddenItems(ea,{payload:na}){ea.showHiddenItems=na}},extraReducers:ea=>{ea.addCase(removeElement,(na,{payload:ra})=>{removeArrayIndex(na.selectedElements,ra.id)}),ea.addCase(removeElements,(na,{payload:ra})=>{ra.forEach(({id:oa})=>{removeArrayIndex(na.selectedElements,oa)})})}}),{setActiveSection,setActiveBreakpoint,selectElement,deselectElement,setAdditionalFonts,clearSelectedElements,setShowHiddenItems}=envVars.actions,env=envVars.reducer,sections$1=createSlice({name:"sections",initialState:{},reducers:{updateSectionComputedValues(ea,{payload:na}){const{values:ra,id:oa}=na;ea[oa]=deepmerge(ea[oa],ra)}},extraReducers:ea=>{ea.addCase(removeSection,(na,{payload:ra})=>{delete na[ra.id]})}}),elements$1=createSlice({name:"elements",initialState:{},reducers:{updateElementComputedValues(ea,{payload:na}){const{values:ra,id:oa}=na;ea[oa]=deepmerge(ea[oa],ra)}},extraReducers:ea=>{ea.addCase(removeElement,(na,{payload:ra})=>{delete na[ra.id]}).addCase(removeElements,(na,{payload:ra})=>{ra.forEach(({id:oa})=>{delete na[oa]})}).addCase(setActiveBreakpoint,()=>({})).addCase(undo,()=>({})).addCase(redo,()=>({}))}}),computedValues=combineReducers({elements:elements$1.reducer,sections:sections$1.reducer}),{updateElementComputedValues}=elements$1.actions,{updateSectionComputedValues}=sections$1.actions,defaultStyles={typography:{default:{color:"#000000",font:"Open Sans",wordwrap:!0,align:"left",decoration:null,fontSize:16,fontVariant:"regular",lineHeight:120,letterSpacing:0,transform:"none",direction:"ltr"}},transform:{default:{rotate:0,x:{value:0,unit:"px"},y:{value:0,unit:"px"},z:{value:0,unit:"px"},perspective:{value:2e3,unit:"px"},scale:1,scaleX:1,scaleY:1,rotateX:0,rotateY:0,rotateZ:0,origin:"top left"}},boxShadow:{default:{enable:!1,inset:!1,color:"black",offsetX:2,offsetY:2,blur:5,spread:1}},textShadow:{default:{enable:!1,color:"black",offsetX:2,offsetY:2,blur:5}},border:{default:{link:!0,top:{value:1,unit:"px"},right:{value:1,unit:"px"},bottom:{value:1,unit:"px"},left:{value:1,unit:"px"},enable:!1,color:"black",style:"solid"}},padding:{default:{link:!0,top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"}}},margin:{default:{link:!0,top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"}}},corner:{default:{link:!0,topLeft:{value:0,unit:"px"},topRight:{value:0,unit:"px"},bottomLeft:{value:0,unit:"px"},bottomRight:{value:0,unit:"px"}}},opacity:{default:1},blendingMode:{default:{enable:!1,type:"normal"}},backgroundColor:{default:"transparent"},backgroundBlur:{default:{enable:!1,blur:5,opacity:1,brightness:1}},filter:{default:{enable:!1,preset:"none",brightness:100,contrast:100,saturation:100,hue:0,blur:0}},transition:{default:{enable:!1}},svg:{default:{fill:"#000",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}},flex:{default:{}}};defaultStyles.hover={enable:{default:!1},useInGroup:!1,opacity:{default:1},transform:defaultStyles.transform,typography:defaultStyles.typography,textShadow:defaultStyles.textShadow,backgroundColor:defaultStyles.backgroundColor,boxShadow:defaultStyles.boxShadow,transition:{default:{enable:!0,timingFunction:"ease",duration:1}},filter:defaultStyles.filter,border:defaultStyles.border,svg:defaultStyles.svg};const elementDefaultCommonState={size:{default:{width:"auto",height:"auto"}},position:{default:{x:{value:0,unit:"px"},y:{value:0,unit:"px"}}},responsiveScale:{default:!0},visible:{default:!0},depth:1,keepAspectRatio:!1,locked:!1,wrap:!0,styles:defaultStyles,parallax:{default:{enabled:!1,type:"2d"}},options:{url:{path:"",openInNewTab:!0}},actions:{}},isMenuOpen=ea=>!!ea&&ea[0]==="o",batchedUpdates=reactDomExports.unstable_batchedUpdates,getTransition=(ea,na)=>ea===!0||!!(ea&&ea[na]),safeCall=(ea,na)=>typeof ea=="function"?ea(na):ea,internalKey="_szhsinMenu",getName=ea=>ea[internalKey],mergeProps=(ea,na)=>(na&&Object.keys(na).forEach(ra=>{const oa=ea[ra],aa=na[ra];typeof aa=="function"&&oa?ea[ra]=(...sa)=>{aa(...sa),oa(...sa)}:ea[ra]=aa}),ea),parsePadding=ea=>{if(typeof ea!="string")return{top:0,right:0,bottom:0,left:0};const na=ea.trim().split(/\s+/,4).map(parseFloat),ra=isNaN(na[0])?0:na[0],oa=isNaN(na[1])?ra:na[1];return{top:ra,right:oa,bottom:isNaN(na[2])?ra:na[2],left:isNaN(na[3])?oa:na[3]}},getScrollAncestor=ea=>{for(;ea;){if(ea=ea.parentNode,!ea||ea===document.body||!ea.parentNode)return;const{overflow:na,overflowX:ra,overflowY:oa}=getComputedStyle(ea);if(/auto|scroll|overlay|hidden/.test(na+oa+ra))return ea}};function commonProps(ea,na){return{"aria-disabled":ea||void 0,tabIndex:na?0:-1}}function indexOfNode(ea,na){for(let ra=0;ra<ea.length;ra++)if(ea[ra]===na)return ra;return-1}const useBEM=({block:ea,element:na,modifiers:ra,className:oa})=>reactExports.useMemo(()=>{const aa=na?`${ea}__${na}`:ea;let sa=aa;ra&&Object.keys(ra).forEach(ca=>{const ua=ra[ca];ua&&(sa+=` ${aa}--${ua===!0?ca:`${ca}-${ua}`}`)});let la=typeof oa=="function"?oa(ra):oa;return typeof la=="string"&&(la=la.trim(),la&&(sa+=` ${la}`)),sa},[ea,na,ra,oa]),menuContainerClass="szh-menu-container",menuClass="szh-menu",menuArrowClass="arrow",menuItemClass="item",menuDividerClass="divider",menuHeaderClass="header",subMenuClass="submenu",HoverItemContext=reactExports.createContext(),MenuListItemContext=reactExports.createContext({}),MenuListContext=reactExports.createContext({}),EventHandlersContext=reactExports.createContext({}),RadioGroupContext=reactExports.createContext({}),SettingsContext$1=reactExports.createContext({}),Keys=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),HoverActionTypes=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),CloseReason=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),FocusPositions=Object.freeze({FIRST:"first",LAST:"last"}),MenuStateMap=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),positionAbsolute="absolute",roleNone="none",roleMenuitem="menuitem",noScrollFocus={preventScroll:!0},MenuContainer=({className:ea,containerRef:na,containerProps:ra,children:oa,isOpen:aa,theming:sa,transition:la,onClose:ca})=>{const ua=getTransition(la,"item"),da=({key:ha})=>{switch(ha){case Keys.ESC:safeCall(ca,{key:ha,reason:CloseReason.CANCEL});break}},pa=ha=>{aa&&!ha.currentTarget.contains(ha.relatedTarget)&&safeCall(ca,{reason:CloseReason.BLUR})};return jsxRuntimeExports.jsx("div",{...mergeProps({onKeyDown:da,onBlur:pa},ra),className:useBEM({block:menuContainerClass,modifiers:reactExports.useMemo(()=>({theme:sa,itemTransition:ua}),[sa,ua]),className:ea}),style:{position:"absolute",...ra?.style},ref:na,children:oa})},createSubmenuCtx=()=>{let ea,na=0;return{toggle:ra=>{ra?na++:na--,na=Math.max(na,0)},on:(ra,oa,aa)=>{na?ea||(ea=setTimeout(()=>{ea=0,oa()},ra)):aa?.()},off:()=>{ea&&(clearTimeout(ea),ea=0)}}},useItems=ea=>{const[na,ra]=reactExports.useState(),aa=reactExports.useRef({items:[],hoverIndex:-1,sorted:!1}).current,sa=reactExports.useCallback((ca,ua)=>{const{items:da}=aa;if(!ca)aa.items=[];else if(ua)da.push(ca);else{const pa=da.indexOf(ca);pa>-1&&(da.splice(pa,1),ca.contains(document.activeElement)&&(ea.current.focus(noScrollFocus),ra()))}aa.hoverIndex=-1,aa.sorted=!1},[aa,ea]),la=reactExports.useCallback((ca,ua,da)=>{const{items:pa,hoverIndex:ha}=aa,ga=()=>{if(aa.sorted)return;const va=ea.current.querySelectorAll(".szh-menu__item");pa.sort((xa,ya)=>indexOfNode(va,xa)-indexOfNode(va,ya)),aa.sorted=!0};let fa=-1,ma;switch(ca){case HoverActionTypes.RESET:break;case HoverActionTypes.SET:ma=ua;break;case HoverActionTypes.UNSET:ma=va=>va===ua?void 0:va;break;case HoverActionTypes.FIRST:ga(),fa=0,ma=pa[fa];break;case HoverActionTypes.LAST:ga(),fa=pa.length-1,ma=pa[fa];break;case HoverActionTypes.SET_INDEX:ga(),fa=da,ma=pa[fa];break;case HoverActionTypes.INCREASE:ga(),fa=ha,fa<0&&(fa=pa.indexOf(ua)),fa++,fa>=pa.length&&(fa=0),ma=pa[fa];break;case HoverActionTypes.DECREASE:ga(),fa=ha,fa<0&&(fa=pa.indexOf(ua)),fa--,fa<0&&(fa=pa.length-1),ma=pa[fa];break}ma||(fa=-1),ra(ma),aa.hoverIndex=fa},[ea,aa]);return{hoverItem:na,dispatch:la,updateItems:sa}},getNativeDimension=(ea,na)=>Math.round(ea)===na?ea:na,getNormalizedClientRect=ea=>{const na=ea.getBoundingClientRect();return na.width=getNativeDimension(na.width,ea.offsetWidth),na.height=getNativeDimension(na.height,ea.offsetHeight),na},getPositionHelpers=(ea,na,ra,oa)=>{const aa=getNormalizedClientRect(na),sa=ea.getBoundingClientRect(),la=ra===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:ra.getBoundingClientRect(),ca=parsePadding(oa),ua=ma=>ma+sa.left-la.left-ca.left,da=ma=>ma+sa.left+aa.width-la.right+ca.right,pa=ma=>ma+sa.top-la.top-ca.top,ha=ma=>ma+sa.top+aa.height-la.bottom+ca.bottom;return{menuRect:aa,containerRect:sa,getLeftOverflow:ua,getRightOverflow:da,getTopOverflow:pa,getBottomOverflow:ha,confineHorizontally:ma=>{let va=ua(ma);if(va<0)ma-=va;else{const xa=da(ma);xa>0&&(ma-=xa,va=ua(ma),va<0&&(ma-=va))}return ma},confineVertically:ma=>{let va=pa(ma);if(va<0)ma-=va;else{const xa=ha(ma);xa>0&&(ma-=xa,va=pa(ma),va<0&&(ma-=va))}return ma}}},placeArrowVertical=({arrowRef:ea,menuY:na,anchorRect:ra,containerRect:oa,menuRect:aa})=>{let sa=ra.top-oa.top-na+ra.height/2;const la=ea.current.offsetHeight*1.25;return sa=Math.max(la,sa),sa=Math.min(sa,aa.height-la),sa},placeLeftorRight=({anchorRect:ea,containerRect:na,menuRect:ra,placeLeftorRightY:oa,placeLeftX:aa,placeRightX:sa,getLeftOverflow:la,getRightOverflow:ca,confineHorizontally:ua,confineVertically:da,arrowRef:pa,arrow:ha,direction:ga,position:fa})=>{let ma=ga,va=oa;fa!=="initial"&&(va=da(va),fa==="anchor"&&(va=Math.min(va,ea.bottom-na.top),va=Math.max(va,ea.top-na.top-ra.height)));let xa,ya,Aa;return ma==="left"?(xa=aa,fa!=="initial"&&(ya=la(xa),ya<0&&(Aa=ca(sa),(Aa<=0||-ya>Aa)&&(xa=sa,ma="right")))):(xa=sa,fa!=="initial"&&(Aa=ca(xa),Aa>0&&(ya=la(aa),(ya>=0||-ya<Aa)&&(xa=aa,ma="left")))),fa==="auto"&&(xa=ua(xa)),{arrowY:ha?placeArrowVertical({menuY:va,arrowRef:pa,anchorRect:ea,containerRect:na,menuRect:ra}):void 0,x:xa,y:va,computedDirection:ma}},placeArrowHorizontal=({arrowRef:ea,menuX:na,anchorRect:ra,containerRect:oa,menuRect:aa})=>{let sa=ra.left-oa.left-na+ra.width/2;const la=ea.current.offsetWidth*1.25;return sa=Math.max(la,sa),sa=Math.min(sa,aa.width-la),sa},placeToporBottom=({anchorRect:ea,containerRect:na,menuRect:ra,placeToporBottomX:oa,placeTopY:aa,placeBottomY:sa,getTopOverflow:la,getBottomOverflow:ca,confineHorizontally:ua,confineVertically:da,arrowRef:pa,arrow:ha,direction:ga,position:fa})=>{let ma=ga==="top"?"top":"bottom",va=oa;fa!=="initial"&&(va=ua(va),fa==="anchor"&&(va=Math.min(va,ea.right-na.left),va=Math.max(va,ea.left-na.left-ra.width)));let xa,ya,Aa;return ma==="top"?(xa=aa,fa!=="initial"&&(ya=la(xa),ya<0&&(Aa=ca(sa),(Aa<=0||-ya>Aa)&&(xa=sa,ma="bottom")))):(xa=sa,fa!=="initial"&&(Aa=ca(xa),Aa>0&&(ya=la(aa),(ya>=0||-ya<Aa)&&(xa=aa,ma="top")))),fa==="auto"&&(xa=da(xa)),{arrowX:ha?placeArrowHorizontal({menuX:va,arrowRef:pa,anchorRect:ea,containerRect:na,menuRect:ra}):void 0,x:va,y:xa,computedDirection:ma}},positionMenu=({arrow:ea,align:na,direction:ra,gap:oa,shift:aa,position:sa,anchorRect:la,arrowRef:ca,positionHelpers:ua})=>{const{menuRect:da,containerRect:pa}=ua,ha=ra==="left"||ra==="right";let ga=ha?oa:aa,fa=ha?aa:oa;if(ea){const wa=ca.current;ha?ga+=wa.offsetWidth:fa+=wa.offsetHeight}const ma=la.left-pa.left-da.width-ga,va=la.right-pa.left+ga,xa=la.top-pa.top-da.height-fa,ya=la.bottom-pa.top+fa;let Aa,Ca;na==="end"?(Aa=la.right-pa.left-da.width,Ca=la.bottom-pa.top-da.height):na==="center"?(Aa=la.left-pa.left-(da.width-la.width)/2,Ca=la.top-pa.top-(da.height-la.height)/2):(Aa=la.left-pa.left,Ca=la.top-pa.top),Aa+=ga,Ca+=fa;const Sa={...ua,anchorRect:la,placeLeftX:ma,placeRightX:va,placeLeftorRightY:Ca,placeTopY:xa,placeBottomY:ya,placeToporBottomX:Aa,arrowRef:ca,arrow:ea,direction:ra,position:sa};switch(ra){case"left":case"right":return placeLeftorRight(Sa);case"top":case"bottom":default:return placeToporBottom(Sa)}},useIsomorphicLayoutEffect$5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function setRef$1(ea,na){typeof ea=="function"?ea(na):ea.current=na}const useCombinedRef=(ea,na)=>reactExports.useMemo(()=>ea?na?ra=>{setRef$1(ea,ra),setRef$1(na,ra)}:ea:na,[ea,na]),offScreen=-9999,MenuList=({ariaLabel:ea,menuClassName:na,menuStyle:ra,arrow:oa,arrowProps:aa={},anchorPoint:sa,anchorRef:la,containerRef:ca,containerProps:ua,externalRef:da,parentScrollingRef:pa,align:ha="start",direction:ga="bottom",position:fa="auto",overflow:ma="visible",setDownOverflow:va,repositionFlag:xa,captureFocus:ya=!0,state:Aa,endTransition:Ca,isDisabled:Sa,menuItemFocus:wa,gap:ba=0,shift:Ea=0,children:$a,onClose:Ma,focusProps:Ia,...Oa})=>{const[Da,Ta]=reactExports.useState({x:offScreen,y:offScreen}),[_a,La]=reactExports.useState({}),[Na,za]=reactExports.useState(),[Fa,Ha]=reactExports.useState(ga),[Va]=reactExports.useState(createSubmenuCtx),[Ua,Qa]=reactExports.useReducer(Yl=>Yl+1,1),{transition:Wa,boundingBoxRef:Za,boundingBoxPadding:Xa,rootMenuRef:tl,rootAnchorRef:il,scrollNodesRef:Ja,reposition:nl,viewScroll:Ya,submenuCloseDelay:rl}=reactExports.useContext(SettingsContext$1),{submenuCtx:sl,reposSubmenu:dl=xa}=reactExports.useContext(MenuListContext),pl=reactExports.useRef(),ml=reactExports.useRef(),Rl=reactExports.useRef(!1),{hoverItem:Tl,dispatch:Il,updateItems:Ol}=useItems(pl),Fl=isMenuOpen(Aa),Vl=getTransition(Wa,"open"),Wl=getTransition(Wa,"close"),vl=Ja.current,kl=Yl=>{switch(Yl.key){case Keys.HOME:Il(HoverActionTypes.FIRST);break;case Keys.END:Il(HoverActionTypes.LAST);break;case Keys.UP:Il(HoverActionTypes.DECREASE,Tl);break;case Keys.DOWN:Il(HoverActionTypes.INCREASE,Tl);break;case Keys.SPACE:Yl.target&&Yl.target.className.indexOf(menuClass)!==-1&&Yl.preventDefault();return;default:return}Yl.preventDefault(),Yl.stopPropagation()},zl=()=>{Aa==="closing"&&za(),safeCall(Ca)},Al=Yl=>{Yl.stopPropagation(),Va.on(rl,()=>{Il(HoverActionTypes.RESET),pl.current.focus(noScrollFocus)})},gl=Yl=>{Yl.target===Yl.currentTarget&&Va.off()},xl=reactExports.useCallback(Yl=>{const gc=pl.current,Rc=ca.current;if(!gc||!Rc)return;const Ic=la?la.current?.getBoundingClientRect():sa?{left:sa.x,right:sa.x,top:sa.y,bottom:sa.y,width:0,height:0}:null;if(!Ic)return;vl.menu||(vl.menu=(Za?Za.current:getScrollAncestor(tl.current))||window);const bc=getPositionHelpers(Rc,gc,vl.menu,Xa);let{arrowX:kc,arrowY:Kc,x:Tc,y:ac,computedDirection:sc}=positionMenu({arrow:oa,align:ha,direction:ga,gap:ba,shift:Ea,position:fa,anchorRect:Ic,arrowRef:ml,positionHelpers:bc});const{menuRect:dc}=bc,Pc=dc.height;if(!Yl&&ma!=="visible"){const{getTopOverflow:qc,getBottomOverflow:uc}=bc;let lc,hc;const pc=uc(ac);if(pc>0)lc=Pc-pc,hc=pc;else{const xc=qc(ac);xc<0&&(lc=Pc+xc,hc=0-xc,lc>=0&&(ac-=xc))}lc>=0&&za({height:lc,overflowAmt:hc})}oa&&La({x:kc,y:Kc}),Ta({x:Tc,y:ac}),Ha(sc)},[oa,ha,Xa,ga,ba,Ea,fa,ma,sa,la,ca,Za,tl,vl]);useIsomorphicLayoutEffect$5(()=>{Fl&&(xl(),Rl.current&&Qa()),Rl.current=Fl},[Fl,xl,dl]),useIsomorphicLayoutEffect$5(()=>{Na&&!va&&(pl.current.scrollTop=0)},[Na,va]),useIsomorphicLayoutEffect$5(()=>Ol,[Ol]),reactExports.useEffect(()=>{let{menu:Yl}=vl;if(!Fl||!Yl)return;if(Yl=Yl.addEventListener?Yl:window,!vl.anchors){vl.anchors=[];let bc=getScrollAncestor(il&&il.current);for(;bc&&bc!==Yl;)vl.anchors.push(bc),bc=getScrollAncestor(bc)}let gc=Ya;if(vl.anchors.length&&gc==="initial"&&(gc="auto"),gc==="initial")return;const Rc=()=>{gc==="auto"?batchedUpdates(()=>xl(!0)):safeCall(Ma,{reason:CloseReason.SCROLL})},Ic=vl.anchors.concat(Ya!=="initial"?Yl:[]);return Ic.forEach(bc=>bc.addEventListener("scroll",Rc)),()=>Ic.forEach(bc=>bc.removeEventListener("scroll",Rc))},[il,vl,Fl,Ma,Ya,xl]);const Sl=!!Na&&Na.overflowAmt>0;reactExports.useEffect(()=>{if(Sl||!Fl||!pa)return;const Yl=()=>batchedUpdates(xl),gc=pa.current;return gc.addEventListener("scroll",Yl),()=>gc.removeEventListener("scroll",Yl)},[Fl,Sl,pa,xl]),reactExports.useEffect(()=>{if(!Fl||typeof ResizeObserver!="function"||nl==="initial")return;const Yl=[],gc=new ResizeObserver(bc=>bc.forEach(({target:kc})=>{Yl.indexOf(kc)<0?Yl.push(kc):reactDomExports.flushSync(()=>{xl(),Qa()})})),Rc={box:"border-box"};gc.observe(pl.current,Rc);const Ic=la?.current;return Ic&&gc.observe(Ic,Rc),()=>gc.disconnect()},[Fl,nl,la,xl]),reactExports.useEffect(()=>{if(!Fl){Il(HoverActionTypes.RESET),Wl||za();return}const{position:Yl,alwaysUpdate:gc}=wa||{},Rc=()=>{Yl===FocusPositions.FIRST?Il(HoverActionTypes.FIRST):Yl===FocusPositions.LAST?Il(HoverActionTypes.LAST):Yl>=-1&&Il(HoverActionTypes.SET_INDEX,void 0,Yl)};if(gc)Rc();else if(ya){const Ic=setTimeout(()=>{const bc=pl.current;bc&&!bc.contains(document.activeElement)&&(bc.focus(noScrollFocus),Rc())},Vl?170:100);return()=>clearTimeout(Ic)}},[Fl,Vl,Wl,ya,wa,Il]);const $l=reactExports.useMemo(()=>({isParentOpen:Fl,submenuCtx:Va,dispatch:Il,updateItems:Ol}),[Fl,Va,Il,Ol]);let Bl,Ul;Na&&(va?Ul=Na.overflowAmt:Bl=Na.height);const ec=reactExports.useMemo(()=>({reposSubmenu:Ua,submenuCtx:Va,overflow:ma,overflowAmt:Ul,parentMenuRef:pl,parentDir:Fa}),[Ua,Va,ma,Ul,Fa]),Kl=Bl>=0?{maxHeight:Bl,overflow:ma}:void 0,rc=reactExports.useMemo(()=>({state:Aa,align:ha,dir:Fa}),[Aa,ha,Fa]),wl=reactExports.useMemo(()=>({dir:Fa}),[Fa]),Ll=useBEM({block:menuClass,element:menuArrowClass,modifiers:wl,className:aa.className}),ic=jsxRuntimeExports.jsxs("ul",{role:"menu","aria-label":ea,...commonProps(Sa),...mergeProps({onPointerEnter:sl?.off,onPointerMove:Al,onPointerLeave:gl,onKeyDown:kl,onAnimationEnd:zl},Oa),ref:useCombinedRef(da,pl),className:useBEM({block:menuClass,modifiers:rc,className:na}),style:{...ra,...Kl,margin:0,display:Aa==="closed"?"none":void 0,position:positionAbsolute,left:Da.x,top:Da.y},children:[oa&&jsxRuntimeExports.jsx("li",{"aria-hidden":!0,...aa,className:Ll,style:{display:"block",position:positionAbsolute,left:_a.x,top:_a.y,...aa.style},ref:ml}),jsxRuntimeExports.jsx(MenuListContext.Provider,{value:ec,children:jsxRuntimeExports.jsx(MenuListItemContext.Provider,{value:$l,children:jsxRuntimeExports.jsx(HoverItemContext.Provider,{value:Tl,children:safeCall($a,rc)})})})]});return ua?jsxRuntimeExports.jsx(MenuContainer,{...ua,isOpen:Fl,children:ic}):ic},ControlledMenu$1=reactExports.forwardRef(function({"aria-label":na,className:ra,containerProps:oa,initialMounted:aa,unmountOnClose:sa,transition:la,transitionTimeout:ca,boundingBoxRef:ua,boundingBoxPadding:da,reposition:pa="auto",submenuOpenDelay:ha=300,submenuCloseDelay:ga=150,viewScroll:fa="initial",portal:ma,theming:va,onItemClick:xa,...ya},Aa){const Ca=reactExports.useRef(null),Sa=reactExports.useRef({}),{anchorRef:wa,state:ba,onClose:Ea}=ya,$a=reactExports.useMemo(()=>({initialMounted:aa,unmountOnClose:sa,transition:la,transitionTimeout:ca,boundingBoxRef:ua,boundingBoxPadding:da,rootMenuRef:Ca,rootAnchorRef:wa,scrollNodesRef:Sa,reposition:pa,viewScroll:fa,submenuOpenDelay:ha,submenuCloseDelay:ga}),[aa,sa,la,ca,wa,ua,da,pa,fa,ha,ga]),Ma=reactExports.useMemo(()=>({handleClick(Oa,Da){Oa.stopPropagation||safeCall(xa,Oa);let Ta=Oa.keepOpen;Ta===void 0&&(Ta=Da&&Oa.key===Keys.SPACE),Ta||safeCall(Ea,{value:Oa.value,key:Oa.key,reason:CloseReason.CLICK})},handleClose(Oa){safeCall(Ea,{key:Oa,reason:CloseReason.CLICK})}}),[xa,Ea]);if(!ba)return null;const Ia=jsxRuntimeExports.jsx(SettingsContext$1.Provider,{value:$a,children:jsxRuntimeExports.jsx(EventHandlersContext.Provider,{value:Ma,children:jsxRuntimeExports.jsx(MenuList,{...ya,ariaLabel:na||"Menu",externalRef:Aa,containerRef:Ca,containerProps:{className:ra,containerRef:Ca,containerProps:oa,theming:va,transition:la,onClose:Ea}})})});return ma===!0&&typeof document<"u"?reactDomExports.createPortal(Ia,document.body):ma?ma.target?reactDomExports.createPortal(Ia,ma.target):ma.stablePosition?null:Ia:Ia}),PRE_ENTER=0,ENTERING$1=1,ENTERED$1=2,PRE_EXIT=3,EXITING$1=4,EXITED$1=5,UNMOUNTED$1=6,STATUS=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],getState=ea=>({_s:ea,status:STATUS[ea],isEnter:ea<PRE_EXIT,isMounted:ea!==UNMOUNTED$1,isResolved:ea===ENTERED$1||ea>EXITING$1}),startOrEnd=ea=>ea?UNMOUNTED$1:EXITED$1,getEndStatus=(ea,na)=>{switch(ea){case ENTERING$1:case PRE_ENTER:return ENTERED$1;case EXITING$1:case PRE_EXIT:return startOrEnd(na)}},getTimeout=ea=>typeof ea=="object"?[ea.enter,ea.exit]:[ea,ea],nextTick=(ea,na)=>setTimeout(()=>{isNaN(document.body.offsetTop)||ea(na+1)},0),updateState=(ea,na,ra,oa,aa)=>{clearTimeout(oa.current);const sa=getState(ea);na(sa),ra.current=sa,aa&&aa({current:sa})},useTransitionState=({enter:ea=!0,exit:na=!0,preEnter:ra,preExit:oa,timeout:aa,initialEntered:sa,mountOnEnter:la,unmountOnExit:ca,onStateChange:ua}={})=>{const[da,pa]=reactExports.useState(()=>getState(sa?ENTERED$1:startOrEnd(la))),ha=reactExports.useRef(da),ga=reactExports.useRef(),[fa,ma]=getTimeout(aa),va=reactExports.useCallback(()=>{const ya=getEndStatus(ha.current._s,ca);ya&&updateState(ya,pa,ha,ga,ua)},[ua,ca]),xa=reactExports.useCallback(ya=>{const Aa=Sa=>{switch(updateState(Sa,pa,ha,ga,ua),Sa){case ENTERING$1:fa>=0&&(ga.current=setTimeout(va,fa));break;case EXITING$1:ma>=0&&(ga.current=setTimeout(va,ma));break;case PRE_ENTER:case PRE_EXIT:ga.current=nextTick(Aa,Sa);break}},Ca=ha.current.isEnter;typeof ya!="boolean"&&(ya=!Ca),ya?!Ca&&Aa(ea?ra?PRE_ENTER:ENTERING$1:ENTERED$1):Ca&&Aa(na?oa?PRE_EXIT:EXITING$1:startOrEnd(ca))},[va,ua,ea,na,ra,oa,fa,ma,ca]);return[da,xa,va]},useMenuState=({initialOpen:ea,initialMounted:na,unmountOnClose:ra,transition:oa,transitionTimeout:aa=500,onMenuChange:sa}={})=>{const la=getTransition(oa,"open"),ca=getTransition(oa,"close"),[{status:ua},da,pa]=useTransitionState({initialEntered:ea,mountOnEnter:!na,unmountOnExit:ra,timeout:aa,enter:la,exit:ca,onStateChange:reactExports.useCallback(({current:{isEnter:ha,isResolved:ga}})=>{!sa||ha&&la&&ga||!ha&&ca&&ga||sa({open:ha})},[sa,la,ca])});return[{state:MenuStateMap[ua],endTransition:pa},da]},useMenuStateAndFocus=ea=>{const[na,ra]=useMenuState(ea),[oa,aa]=reactExports.useState(),sa=(la,ca)=>{aa({position:la,alwaysUpdate:ca}),ra(!0)};return[{menuItemFocus:oa,...na},ra,sa]},useClick=(ea,na)=>{const[ra]=reactExports.useState({});return{onMouseDown:()=>{ra.v=ea&&ea!=="closed"},onClick:oa=>ra.v?ra.v=!1:na(!0,oa)}},isLegacyReact=parseInt(reactExports.version)<19,Menu$1=reactExports.forwardRef(function({"aria-label":na,captureFocus:ra,initialOpen:oa,menuButton:aa,instanceRef:sa,onMenuChange:la,...ca},ua){const[da,pa,ha]=useMenuStateAndFocus({...ca,onMenuChange:la}),{state:ga}=da,fa=isMenuOpen(ga),ma=reactExports.useRef(null),va=useClick(ga,(wa,ba)=>ha(ba.detail?void 0:FocusPositions.FIRST)),xa=reactExports.useCallback(wa=>{pa(!1),wa.key&&ma.current.focus()},[pa]),ya=wa=>{switch(wa.key){case Keys.UP:ha(FocusPositions.LAST);break;case Keys.DOWN:ha(FocusPositions.FIRST);break;default:return}wa.preventDefault()},Aa=safeCall(aa,{open:fa});if(!Aa||!Aa.type)throw new Error("Menu requires a menuButton prop.");const Ca={...mergeProps({onKeyDown:ya,...va},Aa.props),ref:useCombinedRef(isLegacyReact?Aa.ref:Aa.props.ref,ma)};getName(Aa.type)==="MenuButton"&&(Ca.isOpen=fa);const Sa=reactExports.cloneElement(Aa,Ca);return reactExports.useImperativeHandle(sa,()=>({openMenu:ha,closeMenu:()=>pa(!1)})),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Sa,jsxRuntimeExports.jsx(ControlledMenu$1,{...ca,...da,"aria-label":na||(typeof Aa.props.children=="string"?Aa.props.children:"Menu"),anchorRef:ma,ref:ua,onClose:xa})]})}),withHovering=(ea,na)=>{const ra=reactExports.memo(na),oa=reactExports.forwardRef((aa,sa)=>{const la=reactExports.useRef(null);return jsxRuntimeExports.jsx(ra,{...aa,itemRef:la,externalRef:sa,isHovering:reactExports.useContext(HoverItemContext)===la.current})});return oa.displayName=`WithHovering(${ea})`,oa},useItemEffect=(ea,na,ra)=>{useIsomorphicLayoutEffect$5(()=>{if(ea)return;const oa=na.current;return ra(oa,!0),()=>{ra(oa)}},[ea,na,ra])},SubMenu$1=withHovering("SubMenu",function({"aria-label":na,className:ra,disabled:oa,direction:aa,label:sa,openTrigger:la,onMenuChange:ca,isHovering:ua,instanceRef:da,itemRef:pa,captureFocus:ha,repositionFlag:ga,itemProps:fa={},...ma}){const va=reactExports.useContext(SettingsContext$1),{rootMenuRef:xa,submenuOpenDelay:ya,submenuCloseDelay:Aa}=va,{parentMenuRef:Ca,parentDir:Sa,overflow:wa}=reactExports.useContext(MenuListContext),{isParentOpen:ba,submenuCtx:Ea,dispatch:$a,updateItems:Ma}=reactExports.useContext(MenuListItemContext),Ia=wa!=="visible",[Oa,Da,Ta]=useMenuStateAndFocus({...va,onMenuChange:ca}),{state:_a}=Oa,La=!!oa,Na=isMenuOpen(_a),za=reactExports.useRef(null),[Fa]=reactExports.useState({v:0}),Ha=()=>{Ea.off(),Fa.v&&(clearTimeout(Fa.v),Fa.v=0)},Va=(...dl)=>{Ha(),Ua(),!La&&Ta(...dl)},Ua=()=>!ua&&!La&&$a(HoverActionTypes.SET,pa.current),Qa=dl=>{Ua(),la||(Fa.v=setTimeout(()=>batchedUpdates(Va),Math.max(dl,0)))},Wa=dl=>{La||(dl.stopPropagation(),!(Fa.v||Na)&&Ea.on(Aa,()=>Qa(ya-Aa),()=>Qa(ya)))},Za=()=>{Ha(),Na||$a(HoverActionTypes.UNSET,pa.current)},Xa=dl=>{if(ua)switch(dl.key){case Keys.ENTER:dl.preventDefault();case Keys.SPACE:case Keys.RIGHT:la!=="none"&&Va(FocusPositions.FIRST)}},tl=dl=>{let pl=!1;switch(dl.key){case Keys.LEFT:Na&&(pa.current.focus(),Da(!1),pl=!0);break;case Keys.RIGHT:Na||(pl=!0);break}pl&&(dl.preventDefault(),dl.stopPropagation())};useItemEffect(La,pa,Ma),reactExports.useEffect(()=>Ea.toggle(Na),[Ea,Na]),reactExports.useEffect(()=>()=>{clearTimeout(Fa.v),Ea.toggle(!1)},[Fa,Ea]),reactExports.useEffect(()=>{ua&&ba?pa.current.focus():Da(!1)},[ua,ba,Da,pa]),reactExports.useImperativeHandle(da,()=>({openMenu:(...dl)=>{ba&&Va(...dl)},closeMenu:()=>{Na&&(pa.current.focus(),Da(!1))}}));const il=reactExports.useMemo(()=>({open:Na,hover:ua,disabled:La,submenu:!0}),[Na,ua,La]),{ref:Ja,className:nl,...Ya}=fa,rl=mergeProps({onPointerEnter:Ea.off,onPointerMove:Wa,onPointerLeave:Za,onKeyDown:Xa,onClick:()=>la!=="none"&&Va()},Ya),sl=()=>{const dl=jsxRuntimeExports.jsx(MenuList,{...ma,...Oa,ariaLabel:na||(typeof sa=="string"?sa:"Submenu"),anchorRef:pa,containerRef:Ia?xa:za,direction:aa||(Sa==="right"||Sa==="left"?Sa:"right"),parentScrollingRef:Ia&&Ca,isDisabled:La}),pl=xa.current;return Ia&&pl?reactDomExports.createPortal(dl,pl):dl};return jsxRuntimeExports.jsxs("li",{className:useBEM({block:menuClass,element:subMenuClass,className:ra}),style:{position:"relative"},role:roleNone,ref:za,onKeyDown:tl,children:[jsxRuntimeExports.jsx("div",{role:roleMenuitem,"aria-haspopup":!0,"aria-expanded":Na,...commonProps(La,ua),...rl,ref:useCombinedRef(Ja,pa),className:useBEM({block:menuClass,element:menuItemClass,modifiers:il,className:nl}),children:reactExports.useMemo(()=>safeCall(sa,il),[sa,il])}),_a&&sl()]})}),useItemState=(ea,na,ra,oa)=>{const{submenuCloseDelay:aa}=reactExports.useContext(SettingsContext$1),{isParentOpen:sa,submenuCtx:la,dispatch:ca,updateItems:ua}=reactExports.useContext(MenuListItemContext),da=()=>{!ra&&!oa&&ca(HoverActionTypes.SET,ea.current)},pa=()=>{!oa&&ca(HoverActionTypes.UNSET,ea.current)},ha=ma=>{ra&&!ma.currentTarget.contains(ma.relatedTarget)&&pa()},ga=ma=>{oa||(ma.stopPropagation(),la.on(aa,da,da))},fa=(ma,va)=>{la.off(),!va&&pa()};return useItemEffect(oa,ea,ua),reactExports.useEffect(()=>{ra&&sa&&na.current&&na.current.focus()},[na,ra,sa]),{setHover:da,onBlur:ha,onPointerMove:ga,onPointerLeave:fa}},MenuItem$1=withHovering("MenuItem",function({className:na,value:ra,href:oa,type:aa,checked:sa,disabled:la,children:ca,onClick:ua,isHovering:da,itemRef:pa,externalRef:ha,...ga}){const fa=!!la,{setHover:ma,...va}=useItemState(pa,pa,da,fa),xa=reactExports.useContext(EventHandlersContext),ya=reactExports.useContext(RadioGroupContext),Aa=aa==="radio",Ca=aa==="checkbox",Sa=!!oa&&!fa&&!Aa&&!Ca,wa=Aa?ya.value===ra:Ca?!!sa:!1,ba=Oa=>{if(fa){Oa.stopPropagation(),Oa.preventDefault();return}const Da={value:ra,syntheticEvent:Oa};Oa.key!==void 0&&(Da.key=Oa.key),Ca&&(Da.checked=!wa),Aa&&(Da.name=ya.name),safeCall(ua,Da),Aa&&safeCall(ya.onRadioChange,Da),xa.handleClick(Da,Ca||Aa)},Ea=Oa=>{if(da)switch(Oa.key){case Keys.ENTER:Oa.preventDefault();case Keys.SPACE:Sa?pa.current.click():ba(Oa)}},$a=reactExports.useMemo(()=>({type:aa,disabled:fa,hover:da,checked:wa,anchor:Sa}),[aa,fa,da,wa,Sa]),Ma=mergeProps({...va,onPointerDown:ma,onKeyDown:Ea,onClick:ba},ga),Ia={role:Aa?"menuitemradio":Ca?"menuitemcheckbox":roleMenuitem,"aria-checked":Aa||Ca?wa:void 0,...commonProps(fa,da),...Ma,ref:useCombinedRef(ha,pa),className:useBEM({block:menuClass,element:menuItemClass,modifiers:$a,className:na}),children:reactExports.useMemo(()=>safeCall(ca,$a),[ca,$a])};return Sa?jsxRuntimeExports.jsx("li",{role:roleNone,children:jsxRuntimeExports.jsx("a",{href:oa,...Ia})}):jsxRuntimeExports.jsx("li",{...Ia})}),MenuDivider$1=reactExports.memo(reactExports.forwardRef(function({className:na,...ra},oa){return jsxRuntimeExports.jsx("li",{role:"separator",...ra,ref:oa,className:useBEM({block:menuClass,element:menuDividerClass,className:na})})})),MenuHeader$1=reactExports.memo(reactExports.forwardRef(function({className:na,...ra},oa){return jsxRuntimeExports.jsx("li",{role:roleNone,...ra,ref:oa,className:useBEM({block:menuClass,element:menuHeaderClass,className:na})})})),withTheme=ea=>{const na={};return Object.keys(ea).forEach(ra=>{na[ra]=oa=>aa=>oa(ea[ra]?.[aa.theme[ra]]||Object.values(ea[ra])[0],aa)}),na},defaultColors$24={background:"#222222",border:"#444444",shadow:"rgba(0, 0, 0, 0.25)",color:"#FFF",hoverText:"#fff",hoverBg:"rgba(73, 128, 245, 1)",disabledColor:"rgba(68, 68, 68, 1)",divider:"rgba(68, 68, 68, 1)",header:"rgba(129, 129, 129, 0.87)"},colors$22={dark:defaultColors$24,light:{background:"#FFFFFF",border:"#E6E6E6",shadow:"rgba(0, 0, 0, 0.25)",color:"#000000",hoverBg:"rgba(73, 128, 245, 1)",hoverText:"#fff",disabledColor:"#E6E6E6",divider:"#E6E6E6",header:"rgba(129, 129, 129, 0.87)"}},defaultSizing$1P={borderRadius:"5px",minWidth:"230px",medium:{padding:"5px 14px",fontSize:"12px",wrapperPadding:"5px 0",headerSize:"10px"},small:{padding:"4px 8px",fontSize:"11px",wrapperPadding:"5px 0",headerSize:"9px"}},sizes$22={default:defaultSizing$1P},scheme$1z=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$22,sizes:sizes$22},Symbol.toStringTag,{value:"Module"})),StyledMenu$1=({minWidth:ea,...na})=>jsxRuntimeExports.jsx(Menu$1,{...na}),theme$3Z=withTheme(scheme$1z),Menu=dt$1(StyledMenu$1).withConfig({displayName:"Menu",componentId:"sc-1kgtffx-0"})([".szh-menu__submenu .szh-menu{min-width:auto;}"," ",""],theme$3Z.colors(ea=>lt$1([".szh-menu{background:",";border:1px solid ",";box-shadow:2px 10px 25px ",";}"],ea.background,ea.border,ea.shadow)),theme$3Z.sizes((ea,{size:na,minWidth:ra})=>lt$1([".szh-menu{border-radius:",";padding:",";min-width:",";}"],ea.borderRadius,ea[na].wrapperPadding,ra??ea.minWidth))),StyledMenuDivider=({className:ea})=>jsxRuntimeExports.jsx(MenuDivider$1,{className:ea}),theme$3Y=withTheme(scheme$1z),MenuDivider=dt$1(StyledMenuDivider).withConfig({displayName:"MenuDivider",componentId:"sc-1gmoa2s-0"})(["margin:5px 0px;",""],theme$3Y.colors(ea=>lt$1(["background:",";"],ea.divider))),StyledMenuHeader=ea=>jsxRuntimeExports.jsx(MenuHeader$1,{...ea}),theme$3X=withTheme(scheme$1z),MenuHeader=dt$1(StyledMenuHeader).withConfig({displayName:"MenuHeader",componentId:"sc-xy84a1-0"})(["text-transform:uppercase;letter-spacing:1px;font-weight:600;"," ",""],theme$3X.colors(ea=>lt$1(["color:",";"],ea.header)),theme$3X.sizes((ea,{size:na})=>lt$1(["font-size:",";padding:",";"],ea[na].headerSize,ea[na].padding)));let random=ea=>crypto.getRandomValues(new Uint8Array(ea)),customRandom=(ea,na,ra)=>{let oa=(2<<Math.log(ea.length-1)/Math.LN2)-1,aa=-~(1.6*oa*na/ea.length);return(sa=na)=>{let la="";for(;;){let ca=ra(aa),ua=aa|0;for(;ua--;)if(la+=ea[ca[ua]&oa]||"",la.length===sa)return la}}},customAlphabet=(ea,na=21)=>customRandom(ea,na,random),nanoid=(ea=21)=>crypto.getRandomValues(new Uint8Array(ea)).reduce((na,ra)=>(ra&=63,ra<36?na+=ra.toString(36):ra<62?na+=(ra-26).toString(36).toUpperCase():ra>62?na+="-":na+="_",na),"");var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid(ea,na){var ra=0,oa=byteToHex;return[oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]],"-",oa[ea[ra++]],oa[ea[ra++]],"-",oa[ea[ra++]],oa[ea[ra++]],"-",oa[ea[ra++]],oa[ea[ra++]],"-",oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]],oa[ea[ra++]]].join("")}function v4(ea,na,ra){var oa=na&&ra||0;typeof ea=="string"&&(na=ea==="binary"?new Array(16):null,ea=null),ea=ea||{};var aa=ea.random||(ea.rng||rng)();if(aa[6]=aa[6]&15|64,aa[8]=aa[8]&63|128,na)for(var sa=0;sa<16;++sa)na[oa+sa]=aa[sa];return na||bytesToUuid(aa)}function ownKeys$2(ea,na){var ra=Object.keys(ea);if(Object.getOwnPropertySymbols){var oa=Object.getOwnPropertySymbols(ea);na&&(oa=oa.filter(function(aa){return Object.getOwnPropertyDescriptor(ea,aa).enumerable})),ra.push.apply(ra,oa)}return ra}function _objectSpread2(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{};na%2?ownKeys$2(Object(ra),!0).forEach(function(oa){_defineProperty$6(ea,oa,ra[oa])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ea,Object.getOwnPropertyDescriptors(ra)):ownKeys$2(Object(ra)).forEach(function(oa){Object.defineProperty(ea,oa,Object.getOwnPropertyDescriptor(ra,oa))})}return ea}function _classCallCheck(ea,na){if(!(ea instanceof na))throw new TypeError("Cannot call a class as a function")}function _defineProperties(ea,na){for(var ra=0;ra<na.length;ra++){var oa=na[ra];oa.enumerable=oa.enumerable||!1,oa.configurable=!0,"value"in oa&&(oa.writable=!0),Object.defineProperty(ea,oa.key,oa)}}function _createClass(ea,na,ra){return na&&_defineProperties(ea.prototype,na),ra&&_defineProperties(ea,ra),Object.defineProperty(ea,"prototype",{writable:!1}),ea}function _defineProperty$6(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends$4.apply(this,arguments)}function _inherits(ea,na){if(typeof na!="function"&&na!==null)throw new TypeError("Super expression must either be null or a function");ea.prototype=Object.create(na&&na.prototype,{constructor:{value:ea,writable:!0,configurable:!0}}),Object.defineProperty(ea,"prototype",{writable:!1}),na&&_setPrototypeOf(ea,na)}function _getPrototypeOf(ea){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ra){return ra.__proto__||Object.getPrototypeOf(ra)},_getPrototypeOf(ea)}function _setPrototypeOf(ea,na){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(oa,aa){return oa.__proto__=aa,oa},_setPrototypeOf(ea,na)}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _assertThisInitialized(ea){if(ea===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ea}function _possibleConstructorReturn(ea,na){if(na&&(typeof na=="object"||typeof na=="function"))return na;if(na!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(ea)}function _createSuper$1(ea){var na=_isNativeReflectConstruct$1();return function(){var oa=_getPrototypeOf(ea),aa;if(na){var sa=_getPrototypeOf(this).constructor;aa=Reflect.construct(oa,arguments,sa)}else aa=oa.apply(this,arguments);return _possibleConstructorReturn(this,aa)}}function _unsupportedIterableToArray(ea,na){if(ea){if(typeof ea=="string")return _arrayLikeToArray(ea,na);var ra=Object.prototype.toString.call(ea).slice(8,-1);if(ra==="Object"&&ea.constructor&&(ra=ea.constructor.name),ra==="Map"||ra==="Set")return Array.from(ea);if(ra==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ra))return _arrayLikeToArray(ea,na)}}function _arrayLikeToArray(ea,na){(na==null||na>ea.length)&&(na=ea.length);for(var ra=0,oa=new Array(na);ra<na;ra++)oa[ra]=ea[ra];return oa}function _createForOfIteratorHelper(ea,na){var ra=typeof Symbol<"u"&&ea[Symbol.iterator]||ea["@@iterator"];if(!ra){if(Array.isArray(ea)||(ra=_unsupportedIterableToArray(ea))||na){ra&&(ea=ra);var oa=0,aa=function(){};return{s:aa,n:function(){return oa>=ea.length?{done:!0}:{done:!1,value:ea[oa++]}},e:function(ua){throw ua},f:aa}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sa=!0,la=!1,ca;return{s:function(){ra=ra.call(ea)},n:function(){var ua=ra.next();return sa=ua.done,ua},e:function(ua){la=!0,ca=ua},f:function(){try{!sa&&ra.return!=null&&ra.return()}finally{if(la)throw ca}}}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},check=function(ea){return ea&&ea.Math==Math&&ea},global$a=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$9=function(ea){try{return!!ea()}catch{return!0}},fails$8=fails$9,descriptors=!fails$8(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$7=fails$9,functionBindNative=!fails$7(function(){var ea=function(){}.bind();return typeof ea!="function"||ea.hasOwnProperty("prototype")}),NATIVE_BIND$2=functionBindNative,call$4=Function.prototype.call,functionCall=NATIVE_BIND$2?call$4.bind(call$4):function(){return call$4.apply(call$4,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(na){var ra=getOwnPropertyDescriptor$1(this,na);return!!ra&&ra.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$2=function(ea,na){return{enumerable:!(ea&1),configurable:!(ea&2),writable:!(ea&4),value:na}},NATIVE_BIND$1=functionBindNative,FunctionPrototype$1=Function.prototype,call$3=FunctionPrototype$1.call,uncurryThisWithBind=NATIVE_BIND$1&&FunctionPrototype$1.bind.bind(call$3,call$3),functionUncurryThisRaw=function(ea){return NATIVE_BIND$1?uncurryThisWithBind(ea):function(){return call$3.apply(ea,arguments)}},uncurryThisRaw$1=functionUncurryThisRaw,toString$1=uncurryThisRaw$1({}.toString),stringSlice=uncurryThisRaw$1("".slice),classofRaw$2=function(ea){return stringSlice(toString$1(ea),8,-1)},classofRaw$1=classofRaw$2,uncurryThisRaw=functionUncurryThisRaw,functionUncurryThis=function(ea){if(classofRaw$1(ea)==="Function")return uncurryThisRaw(ea)},uncurryThis$9=functionUncurryThis,fails$6=fails$9,classof$3=classofRaw$2,$Object$3=Object,split$1=uncurryThis$9("".split),indexedObject=fails$6(function(){return!$Object$3("z").propertyIsEnumerable(0)})?function(ea){return classof$3(ea)=="String"?split$1(ea,""):$Object$3(ea)}:$Object$3,isNullOrUndefined$2=function(ea){return ea==null},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$5=TypeError,requireObjectCoercible$2=function(ea){if(isNullOrUndefined$1(ea))throw $TypeError$5("Can't call method on "+ea);return ea},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$4=function(ea){return IndexedObject$1(requireObjectCoercible$1(ea))},documentAll$2=typeof document=="object"&&document.all,IS_HTMLDDA=typeof documentAll$2>"u"&&documentAll$2!==void 0,documentAll_1={all:documentAll$2,IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$c=$documentAll$1.IS_HTMLDDA?function(ea){return typeof ea=="function"||ea===documentAll$1}:function(ea){return typeof ea=="function"},isCallable$b=isCallable$c,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$6=$documentAll.IS_HTMLDDA?function(ea){return typeof ea=="object"?ea!==null:isCallable$b(ea)||ea===documentAll}:function(ea){return typeof ea=="object"?ea!==null:isCallable$b(ea)},global$9=global$a,isCallable$a=isCallable$c,aFunction=function(ea){return isCallable$a(ea)?ea:void 0},getBuiltIn$5=function(ea,na){return arguments.length<2?aFunction(global$9[ea]):global$9[ea]&&global$9[ea][na]},uncurryThis$8=functionUncurryThis,objectIsPrototypeOf=uncurryThis$8({}.isPrototypeOf),getBuiltIn$4=getBuiltIn$5,engineUserAgent=getBuiltIn$4("navigator","userAgent")||"",global$8=global$a,userAgent=engineUserAgent,process$1=global$8.process,Deno=global$8.Deno,versions=process$1&&process$1.versions||Deno&&Deno.version,v8=versions&&versions.v8,match$2,version$1;v8&&(match$2=v8.split("."),version$1=match$2[0]>0&&match$2[0]<4?1:+(match$2[0]+match$2[1]));!version$1&&userAgent&&(match$2=userAgent.match(/Edge\/(\d+)/),(!match$2||match$2[1]>=74)&&(match$2=userAgent.match(/Chrome\/(\d+)/),match$2&&(version$1=+match$2[1])));var engineV8Version=version$1,V8_VERSION=engineV8Version,fails$5=fails$9,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$5(function(){var ea=Symbol();return!String(ea)||!(Object(ea)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$3=getBuiltIn$5,isCallable$9=isCallable$c,isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$2=Object,isSymbol$2=USE_SYMBOL_AS_UID$1?function(ea){return typeof ea=="symbol"}:function(ea){var na=getBuiltIn$3("Symbol");return isCallable$9(na)&&isPrototypeOf(na.prototype,$Object$2(ea))},$String$1=String,tryToString$1=function(ea){try{return $String$1(ea)}catch{return"Object"}},isCallable$8=isCallable$c,tryToString=tryToString$1,$TypeError$4=TypeError,aCallable$2=function(ea){if(isCallable$8(ea))return ea;throw $TypeError$4(tryToString(ea)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(ea,na){var ra=ea[na];return isNullOrUndefined(ra)?void 0:aCallable$1(ra)},call$2=functionCall,isCallable$7=isCallable$c,isObject$5=isObject$6,$TypeError$3=TypeError,ordinaryToPrimitive$1=function(ea,na){var ra,oa;if(na==="string"&&isCallable$7(ra=ea.toString)&&!isObject$5(oa=call$2(ra,ea))||isCallable$7(ra=ea.valueOf)&&!isObject$5(oa=call$2(ra,ea))||na!=="string"&&isCallable$7(ra=ea.toString)&&!isObject$5(oa=call$2(ra,ea)))return oa;throw $TypeError$3("Can't convert object to primitive value")},shared$3={exports:{}},global$7=global$a,defineProperty$2=Object.defineProperty,defineGlobalProperty$3=function(ea,na){try{defineProperty$2(global$7,ea,{value:na,configurable:!0,writable:!0})}catch{global$7[ea]=na}return na},global$6=global$a,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$6[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$3.exports=function(ea,na){return store$2[ea]||(store$2[ea]=na!==void 0?na:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible=requireObjectCoercible$2,$Object$1=Object,toObject$2=function(ea){return $Object$1(requireObjectCoercible(ea))},uncurryThis$7=functionUncurryThis,toObject$1=toObject$2,hasOwnProperty$3=uncurryThis$7({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(na,ra){return hasOwnProperty$3(toObject$1(na),ra)},uncurryThis$6=functionUncurryThis,id$1=0,postfix=Math.random(),toString$2=uncurryThis$6(1 .toString),uid$2=function(ea){return"Symbol("+(ea===void 0?"":ea)+")_"+toString$2(++id$1+postfix,36)},global$5=global$a,shared$2=shared$3.exports,hasOwn$6=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$5.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$5=function(ea){if(!hasOwn$6(WellKnownSymbolsStore,ea)||!(NATIVE_SYMBOL||typeof WellKnownSymbolsStore[ea]=="string")){var na="Symbol."+ea;NATIVE_SYMBOL&&hasOwn$6(Symbol$1,ea)?WellKnownSymbolsStore[ea]=Symbol$1[ea]:USE_SYMBOL_AS_UID&&symbolFor?WellKnownSymbolsStore[ea]=symbolFor(na):WellKnownSymbolsStore[ea]=createWellKnownSymbol(na)}return WellKnownSymbolsStore[ea]},call$1=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$4=wellKnownSymbol$5,$TypeError$2=TypeError,TO_PRIMITIVE=wellKnownSymbol$4("toPrimitive"),toPrimitive$1=function(ea,na){if(!isObject$4(ea)||isSymbol$1(ea))return ea;var ra=getMethod(ea,TO_PRIMITIVE),oa;if(ra){if(na===void 0&&(na="default"),oa=call$1(ra,ea,na),!isObject$4(oa)||isSymbol$1(oa))return oa;throw $TypeError$2("Can't convert object to primitive value")}return na===void 0&&(na="number"),ordinaryToPrimitive(ea,na)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(ea){var na=toPrimitive(ea,"string");return isSymbol(na)?na:na+""},global$4=global$a,isObject$3=isObject$6,document$1$1=global$4.document,EXISTS$1=isObject$3(document$1$1)&&isObject$3(document$1$1.createElement),documentCreateElement$1=function(ea){return EXISTS$1?document$1$1.createElement(ea):{}},DESCRIPTORS$7=descriptors,fails$4=fails$9,createElement=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$7&&!fails$4(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6=descriptors,call$5=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject$3=toIndexedObject$4,toPropertyKey$1=toPropertyKey$2,hasOwn$5=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$6?$getOwnPropertyDescriptor$1:function(na,ra){if(na=toIndexedObject$3(na),ra=toPropertyKey$1(ra),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(na,ra)}catch{}if(hasOwn$5(na,ra))return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule.f,na,ra),na[ra])};var objectDefineProperty={},DESCRIPTORS$5=descriptors,fails$3=fails$9,v8PrototypeDefineBug=DESCRIPTORS$5&&fails$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$2$1=isObject$6,$String=String,$TypeError$1=TypeError,anObject$4=function(ea){if(isObject$2$1(ea))return ea;throw $TypeError$1($String(ea)+" is not an object")},DESCRIPTORS$4=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$3=anObject$4,toPropertyKey=toPropertyKey$2,$TypeError=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$4?V8_PROTOTYPE_DEFINE_BUG$1?function(na,ra,oa){if(anObject$3(na),ra=toPropertyKey(ra),anObject$3(oa),typeof na=="function"&&ra==="prototype"&&"value"in oa&&WRITABLE in oa&&!oa[WRITABLE]){var aa=$getOwnPropertyDescriptor(na,ra);aa&&aa[WRITABLE]&&(na[ra]=oa.value,oa={configurable:CONFIGURABLE$1 in oa?oa[CONFIGURABLE$1]:aa[CONFIGURABLE$1],enumerable:ENUMERABLE in oa?oa[ENUMERABLE]:aa[ENUMERABLE],writable:!1})}return $defineProperty(na,ra,oa)}:$defineProperty:function(na,ra,oa){if(anObject$3(na),ra=toPropertyKey(ra),anObject$3(oa),IE8_DOM_DEFINE)try{return $defineProperty(na,ra,oa)}catch{}if("get"in oa||"set"in oa)throw $TypeError("Accessors not supported");return"value"in oa&&(na[ra]=oa.value),na};var DESCRIPTORS$3=descriptors,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$2=DESCRIPTORS$3?function(ea,na,ra){return definePropertyModule$3.f(ea,na,createPropertyDescriptor(1,ra))}:function(ea,na,ra){return ea[na]=ra,ea},makeBuiltIn$2={exports:{}},DESCRIPTORS$2=descriptors,hasOwn$4=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$2&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$4(FunctionPrototype,"name"),CONFIGURABLE=EXISTS&&(!DESCRIPTORS$2||DESCRIPTORS$2&&getDescriptor(FunctionPrototype,"name").configurable),functionName={CONFIGURABLE},uncurryThis$5=functionUncurryThis,isCallable$6=isCallable$c,store$1=sharedStore,functionToString=uncurryThis$5(Function.toString);isCallable$6(store$1.inspectSource)||(store$1.inspectSource=function(ea){return functionToString(ea)});var inspectSource$2=store$1.inspectSource,global$3=global$a,isCallable$5=isCallable$c,WeakMap$1=global$3.WeakMap,weakMapBasicDetection=isCallable$5(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys$1=shared$1("keys"),sharedKey$2=function(ea){return keys$1[ea]||(keys$1[ea]=uid(ea))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$2=global$a,createNonEnumerableProperty$1=createNonEnumerableProperty$2,hasOwn$3=hasOwnProperty_1,shared=sharedStore,sharedKey$1=sharedKey$2,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$2.TypeError,WeakMap$2=global$2.WeakMap,set$3,get$4,has$1,enforce=function(ea){return has$1(ea)?get$4(ea):set$3(ea,{})};if(NATIVE_WEAK_MAP||shared.state){var store$4=shared.state||(shared.state=new WeakMap$2);store$4.get=store$4.get,store$4.has=store$4.has,store$4.set=store$4.set,set$3=function(ea,na){if(store$4.has(ea))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return na.facade=ea,store$4.set(ea,na),na},get$4=function(ea){return store$4.get(ea)||{}},has$1=function(ea){return store$4.has(ea)}}else{var STATE=sharedKey$1("state");hiddenKeys$3[STATE]=!0,set$3=function(ea,na){if(hasOwn$3(ea,STATE))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return na.facade=ea,createNonEnumerableProperty$1(ea,STATE,na),na},get$4=function(ea){return hasOwn$3(ea,STATE)?ea[STATE]:{}},has$1=function(ea){return hasOwn$3(ea,STATE)}}var internalState={get:get$4,enforce},fails$2=fails$9,isCallable$4=isCallable$c,hasOwn$2=hasOwnProperty_1,DESCRIPTORS$1=descriptors,CONFIGURABLE_FUNCTION_NAME=functionName.CONFIGURABLE,inspectSource$1=inspectSource$2,InternalStateModule=internalState,enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,defineProperty$1=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$1&&!fails$2(function(){return defineProperty$1(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(ea,na,ra){String(na).slice(0,7)==="Symbol("&&(na="["+String(na).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ra&&ra.getter&&(na="get "+na),ra&&ra.setter&&(na="set "+na),(!hasOwn$2(ea,"name")||CONFIGURABLE_FUNCTION_NAME&&ea.name!==na)&&(DESCRIPTORS$1?defineProperty$1(ea,"name",{value:na,configurable:!0}):ea.name=na),CONFIGURABLE_LENGTH&&ra&&hasOwn$2(ra,"arity")&&ea.length!==ra.arity&&defineProperty$1(ea,"length",{value:ra.arity});try{ra&&hasOwn$2(ra,"constructor")&&ra.constructor?DESCRIPTORS$1&&defineProperty$1(ea,"prototype",{writable:!1}):ea.prototype&&(ea.prototype=void 0)}catch{}var oa=enforceInternalState(ea);return hasOwn$2(oa,"source")||(oa.source=TEMPLATE.join(typeof na=="string"?na:"")),ea};Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$4(this)&&getInternalState(this).source||inspectSource$1(this)},"toString");var isCallable$3=isCallable$c,definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$1=function(ea,na,ra,oa){oa||(oa={});var aa=oa.enumerable,sa=oa.name!==void 0?oa.name:na;if(isCallable$3(ra)&&makeBuiltIn(ra,sa,oa),oa.global)aa?ea[na]=ra:defineGlobalProperty$1(na,ra);else{try{oa.unsafe?ea[na]&&(aa=!0):delete ea[na]}catch{}aa?ea[na]=ra:definePropertyModule$2.f(ea,na,{value:ra,enumerable:!1,configurable:!oa.nonConfigurable,writable:!oa.nonWritable})}return ea},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(na){var ra=+na;return(ra>0?floor:ceil)(ra)},trunc=mathTrunc,toIntegerOrInfinity$2=function(ea){var na=+ea;return na!==na||na===0?0:trunc(na)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(ea,na){var ra=toIntegerOrInfinity$1(ea);return ra<0?max$1(ra+na,0):min$1(ra,na)},toIntegerOrInfinity=toIntegerOrInfinity$2,min$2=Math.min,toLength$1=function(ea){return ea>0?min$2(toIntegerOrInfinity(ea),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(ea){return toLength(ea.length)},toIndexedObject$2=toIndexedObject$4,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$1=function(ea){return function(na,ra,oa){var aa=toIndexedObject$2(na),sa=lengthOfArrayLike$1(aa),la=toAbsoluteIndex(oa,sa),ca;if(ea&&ra!=ra){for(;sa>la;)if(ca=aa[la++],ca!=ca)return!0}else for(;sa>la;la++)if((ea||la in aa)&&aa[la]===ra)return ea||la||0;return!ea&&-1}},arrayIncludes={indexOf:createMethod$1(!1)},uncurryThis$4=functionUncurryThis,hasOwn$1=hasOwnProperty_1,toIndexedObject$1=toIndexedObject$4,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$4([].push),objectKeysInternal=function(ea,na){var ra=toIndexedObject$1(ea),oa=0,aa=[],sa;for(sa in ra)!hasOwn$1(hiddenKeys$2,sa)&&hasOwn$1(ra,sa)&&push$1(aa,sa);for(;na.length>oa;)hasOwn$1(ra,sa=na[oa++])&&(~indexOf(aa,sa)||push$1(aa,sa));return aa},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(na){return internalObjectKeys$1(na,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$2=getBuiltIn$5,uncurryThis$3=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$2=anObject$4,concat=uncurryThis$3([].concat),ownKeys$1=getBuiltIn$2("Reflect","ownKeys")||function(na){var ra=getOwnPropertyNamesModule.f(anObject$2(na)),oa=getOwnPropertySymbolsModule.f;return oa?concat(ra,oa(na)):ra},hasOwn=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(ea,na,ra){for(var oa=ownKeys(na),aa=definePropertyModule$1.f,sa=getOwnPropertyDescriptorModule.f,la=0;la<oa.length;la++){var ca=oa[la];!hasOwn(ea,ca)&&!(ra&&hasOwn(ra,ca))&&aa(ea,ca,sa(na,ca))}},fails$1=fails$9,isCallable$2=isCallable$c,replacement=/#|\.prototype\./,isForced$1=function(ea,na){var ra=data[normalize$3(ea)];return ra==POLYFILL?!0:ra==NATIVE?!1:isCallable$2(na)?fails$1(na):!!na},normalize$3=isForced$1.normalize=function(ea){return String(ea).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$1$1=global$a,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty=createNonEnumerableProperty$2,defineBuiltIn=defineBuiltIn$1,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced=isForced_1,_export=function(ea,na){var ra=ea.target,oa=ea.global,aa=ea.stat,sa,la,ca,ua,da,pa;if(oa?la=global$1$1:aa?la=global$1$1[ra]||defineGlobalProperty(ra,{}):la=(global$1$1[ra]||{}).prototype,la)for(ca in na){if(da=na[ca],ea.dontCallGetSet?(pa=getOwnPropertyDescriptor(la,ca),ua=pa&&pa.value):ua=la[ca],sa=isForced(oa?ca:ra+(aa?".":"#")+ca,ea.forced),!sa&&ua!==void 0){if(typeof da==typeof ua)continue;copyConstructorProperties(da,ua)}(ea.sham||ua&&ua.sham)&&createNonEnumerableProperty(da,"sham",!0),defineBuiltIn(la,ca,da,ea)}},uncurryThis$2=functionUncurryThis,aCallable=aCallable$2,NATIVE_BIND=functionBindNative,bind$1=uncurryThis$2(uncurryThis$2.bind),functionBindContext=function(ea,na){return aCallable(ea),na===void 0?ea:NATIVE_BIND?bind$1(ea,na):function(){return ea.apply(na,arguments)}},classof$2=classofRaw$2,isArray$1=Array.isArray||function(na){return classof$2(na)=="Array"},wellKnownSymbol$3=wellKnownSymbol$5,TO_STRING_TAG$1=wellKnownSymbol$3("toStringTag"),test={};test[TO_STRING_TAG$1]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$1=isCallable$c,classofRaw=classofRaw$2,wellKnownSymbol$2=wellKnownSymbol$5,TO_STRING_TAG=wellKnownSymbol$2("toStringTag"),$Object=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments",tryGet=function(ea,na){try{return ea[na]}catch{}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(ea){var na,ra,oa;return ea===void 0?"Undefined":ea===null?"Null":typeof(ra=tryGet(na=$Object(ea),TO_STRING_TAG))=="string"?ra:CORRECT_ARGUMENTS?classofRaw(na):(oa=classofRaw(na))=="Object"&&isCallable$1(na.callee)?"Arguments":oa},uncurryThis$1=functionUncurryThis,fails=fails$9,isCallable=isCallable$c,classof=classof$1,getBuiltIn$1=getBuiltIn$5,inspectSource=inspectSource$2,noop$2=function(){},empty=[],construct=getBuiltIn$1("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$1(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop$2),isConstructorModern=function(na){if(!isCallable(na))return!1;try{return construct(noop$2,empty,na),!0}catch{return!1}},isConstructorLegacy=function(na){if(!isCallable(na))return!1;switch(classof(na)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(na))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$1=!construct||fails(function(){var ea;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){ea=!0})||ea})?isConstructorLegacy:isConstructorModern,isArray$2=isArray$1,isConstructor=isConstructor$1,isObject$7=isObject$6,wellKnownSymbol$1=wellKnownSymbol$5,SPECIES=wellKnownSymbol$1("species"),$Array=Array,arraySpeciesConstructor$1=function(ea){var na;return isArray$2(ea)&&(na=ea.constructor,isConstructor(na)&&(na===$Array||isArray$2(na.prototype))?na=void 0:isObject$7(na)&&(na=na[SPECIES],na===null&&(na=void 0))),na===void 0?$Array:na},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$1=function(ea,na){return new(arraySpeciesConstructor(ea))(na===0?0:na)},bind$2=functionBindContext,uncurryThis=functionUncurryThis,IndexedObject=indexedObject,toObject=toObject$2,lengthOfArrayLike=lengthOfArrayLike$2,arraySpeciesCreate=arraySpeciesCreate$1,push$2=uncurryThis([].push),createMethod=function(ea){var na=ea==1,ra=ea==2,oa=ea==3,aa=ea==4,sa=ea==6,la=ea==7,ca=ea==5||sa;return function(ua,da,pa,ha){for(var ga=toObject(ua),fa=IndexedObject(ga),ma=bind$2(da,pa),va=lengthOfArrayLike(fa),xa=0,ya=ha||arraySpeciesCreate,Aa=na?ya(ua,va):ra||la?ya(ua,0):void 0,Ca,Sa;va>xa;xa++)if((ca||xa in fa)&&(Ca=fa[xa],Sa=ma(Ca,xa,ga),ea))if(na)Aa[xa]=Sa;else if(Sa)switch(ea){case 3:return!0;case 5:return Ca;case 6:return xa;case 2:push$2(Aa,Ca)}else switch(ea){case 4:return!1;case 7:push$2(Aa,Ca)}return sa?-1:oa||aa?aa:Aa}},arrayIteration={find:createMethod(5)},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$1=Object.keys||function(na){return internalObjectKeys(na,enumBugKeys$1)},DESCRIPTORS=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$4,toIndexedObject=toIndexedObject$4,objectKeys=objectKeys$1;objectDefineProperties.f=DESCRIPTORS&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(na,ra){anObject$1(na);for(var oa=toIndexedObject(ra),aa=objectKeys(ra),sa=aa.length,la=0,ca;sa>la;)definePropertyModule.f(na,ca=aa[la++],oa[ca]);return na};var getBuiltIn=getBuiltIn$5,html$1$1=getBuiltIn("document","documentElement"),anObject=anObject$4,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$3=html$1$1,documentCreateElement=documentCreateElement$1,sharedKey=sharedKey$2,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ea){return LT+SCRIPT+GT+ea+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(ea){ea.write(scriptTag("")),ea.close();var na=ea.parentWindow.Object;return ea=null,na},NullProtoObjectViaIFrame=function(){var ea=documentCreateElement("iframe"),na="java"+SCRIPT+":",ra;return ea.style.display="none",html$3.appendChild(ea),ea.src=String(na),ra=ea.contentWindow.document,ra.open(),ra.write(scriptTag("document.F=Object")),ra.close(),ra.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var ea=enumBugKeys.length;ea--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[ea]];return NullProtoObject()};hiddenKeys[IE_PROTO]=!0;var objectCreate=Object.create||function(na,ra){var oa;return na!==null?(EmptyConstructor[PROTOTYPE]=anObject(na),oa=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,oa[IE_PROTO]=na):oa=NullProtoObject(),ra===void 0?oa:definePropertiesModule.f(oa,ra)},wellKnownSymbol=wellKnownSymbol$5,create$1=objectCreate,defineProperty=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;ArrayPrototype[UNSCOPABLES]==null&&defineProperty(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)});var addToUnscopables$1=function(ea){ArrayPrototype[UNSCOPABLES][ea]=!0},$$1=_export,$find=arrayIteration.find,addToUnscopables=addToUnscopables$1,FIND="find",SKIPS_HOLES=!0;FIND in[]&&Array(1)[FIND](function(){SKIPS_HOLES=!1});$$1({target:"Array",proto:!0,forced:SKIPS_HOLES},{find:function(na){return $find(this,na,arguments.length>1?arguments[1]:void 0)}});addToUnscopables(FIND);var CONSTANT={GLOBAL:{HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"}},dispatchGlobalEvent=function(na,ra){var oa;typeof window.CustomEvent=="function"?oa=new window.CustomEvent(na,{detail:ra}):(oa=document.createEvent("Event"),oa.initEvent(na,!1,!0,ra)),window.dispatchEvent(oa)};function staticMethods(ea){ea.hide=function(na){dispatchGlobalEvent(CONSTANT.GLOBAL.HIDE,{target:na})},ea.rebuild=function(){dispatchGlobalEvent(CONSTANT.GLOBAL.REBUILD)},ea.show=function(na){dispatchGlobalEvent(CONSTANT.GLOBAL.SHOW,{target:na})},ea.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},ea.prototype.globalShow=function(na){if(this.mount){var ra=na&&na.detail&&na.detail.target&&!0||!1;this.showTooltip({currentTarget:ra&&na.detail.target},!0)}},ea.prototype.globalHide=function(na){if(this.mount){var ra=na&&na.detail&&na.detail.target&&!0||!1;this.hideTooltip({currentTarget:ra&&na.detail.target},ra)}}}function windowListener(ea){ea.prototype.bindWindowEvents=function(na){window.removeEventListener(CONSTANT.GLOBAL.HIDE,this.globalHide),window.addEventListener(CONSTANT.GLOBAL.HIDE,this.globalHide,!1),window.removeEventListener(CONSTANT.GLOBAL.REBUILD,this.globalRebuild),window.addEventListener(CONSTANT.GLOBAL.REBUILD,this.globalRebuild,!1),window.removeEventListener(CONSTANT.GLOBAL.SHOW,this.globalShow),window.addEventListener(CONSTANT.GLOBAL.SHOW,this.globalShow,!1),na&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},ea.prototype.unbindWindowEvents=function(){window.removeEventListener(CONSTANT.GLOBAL.HIDE,this.globalHide),window.removeEventListener(CONSTANT.GLOBAL.REBUILD,this.globalRebuild),window.removeEventListener(CONSTANT.GLOBAL.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},ea.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}var checkStatus=function(na,ra){var oa=this.state.show,aa=this.props.id,sa=this.isCapture(ra.currentTarget),la=ra.currentTarget.getAttribute("currentItem");sa||ra.stopPropagation(),oa&&la==="true"?na||this.hideTooltip(ra):(ra.currentTarget.setAttribute("currentItem","true"),setUntargetItems(ra.currentTarget,this.getTargetArray(aa)),this.showTooltip(ra))},setUntargetItems=function(na,ra){for(var oa=0;oa<ra.length;oa++)na!==ra[oa]?ra[oa].setAttribute("currentItem","false"):ra[oa].setAttribute("currentItem","true")},customListeners={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(na,ra,oa){if(this.id in na){var aa=na[this.id];aa[ra]=oa}else Object.defineProperty(na,this.id,{configurable:!0,value:_defineProperty$6({},ra,oa)})},get:function(na,ra){var oa=na[this.id];if(oa!==void 0)return oa[ra]}};function customEvent(ea){ea.prototype.isCustomEvent=function(na){var ra=this.state.event;return ra||!!na.getAttribute("data-event")},ea.prototype.customBindListener=function(na){var ra=this,oa=this.state,aa=oa.event,sa=oa.eventOff,la=na.getAttribute("data-event")||aa,ca=na.getAttribute("data-event-off")||sa;la.split(" ").forEach(function(ua){na.removeEventListener(ua,customListeners.get(na,ua));var da=checkStatus.bind(ra,ca);customListeners.set(na,ua,da),na.addEventListener(ua,da,!1)}),ca&&ca.split(" ").forEach(function(ua){na.removeEventListener(ua,ra.hideTooltip),na.addEventListener(ua,ra.hideTooltip,!1)})},ea.prototype.customUnbindListener=function(na){var ra=this.state,oa=ra.event,aa=ra.eventOff,sa=oa||na.getAttribute("data-event"),la=aa||na.getAttribute("data-event-off");na.removeEventListener(sa,customListeners.get(na,oa)),la&&na.removeEventListener(la,this.hideTooltip)}}function isCapture(ea){ea.prototype.isCapture=function(na){return na&&na.getAttribute("data-iscapture")==="true"||this.props.isCapture||!1}}function getEffect(ea){ea.prototype.getEffect=function(na){var ra=na.getAttribute("data-effect");return ra||this.props.effect||"float"}}var makeProxy=function(na){var ra={};for(var oa in na)typeof na[oa]=="function"?ra[oa]=na[oa].bind(na):ra[oa]=na[oa];return ra},bodyListener=function(na,ra,oa){for(var aa=ra.respectEffect,sa=aa===void 0?!1:aa,la=ra.customEvent,ca=la===void 0?!1:la,ua=this.props.id,da=null,pa,ha=oa.target,ga;da===null&&ha!==null;)ga=ha,da=ha.getAttribute("data-tip")||null,pa=ha.getAttribute("data-for")||null,ha=ha.parentElement;if(ha=ga||oa.target,!(this.isCustomEvent(ha)&&!ca)){var fa=ua==null&&pa==null||pa===ua;if(da!=null&&(!sa||this.getEffect(ha)==="float")&&fa){var ma=makeProxy(oa);ma.currentTarget=ha,na(ma)}}},findCustomEvents=function(na,ra){var oa={};return na.forEach(function(aa){var sa=aa.getAttribute(ra);sa&&sa.split(" ").forEach(function(la){return oa[la]=!0})}),oa},getBody=function(){return document.getElementsByTagName("body")[0]};function bodyMode(ea){ea.prototype.isBodyMode=function(){return!!this.props.bodyMode},ea.prototype.bindBodyListener=function(na){var ra=this,oa=this.state,aa=oa.event,sa=oa.eventOff,la=oa.possibleCustomEvents,ca=oa.possibleCustomEventsOff,ua=getBody(),da=findCustomEvents(na,"data-event"),pa=findCustomEvents(na,"data-event-off");aa!=null&&(da[aa]=!0),sa!=null&&(pa[sa]=!0),la.split(" ").forEach(function(va){return da[va]=!0}),ca.split(" ").forEach(function(va){return pa[va]=!0}),this.unbindBodyListener(ua);var ha=this.bodyModeListeners={};aa==null&&(ha.mouseover=bodyListener.bind(this,this.showTooltip,{}),ha.mousemove=bodyListener.bind(this,this.updateTooltip,{respectEffect:!0}),ha.mouseout=bodyListener.bind(this,this.hideTooltip,{}));for(var ga in da)ha[ga]=bodyListener.bind(this,function(va){var xa=va.currentTarget.getAttribute("data-event-off")||sa;checkStatus.call(ra,xa,va)},{customEvent:!0});for(var fa in pa)ha[fa]=bodyListener.bind(this,this.hideTooltip,{customEvent:!0});for(var ma in ha)ua.addEventListener(ma,ha[ma])},ea.prototype.unbindBodyListener=function(na){na=na||getBody();var ra=this.bodyModeListeners;for(var oa in ra)na.removeEventListener(oa,ra[oa])}}var getMutationObserverClass=function(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver};function trackRemoval(ea){ea.prototype.bindRemovalTracker=function(){var na=this,ra=getMutationObserverClass();if(ra!=null){var oa=new ra(function(aa){for(var sa=0;sa<aa.length;sa++)for(var la=aa[sa],ca=0;ca<la.removedNodes.length;ca++){var ua=la.removedNodes[ca];if(ua===na.state.currentTarget){na.hideTooltip();return}}});oa.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=oa}},ea.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)}}function getPosition$2(ea,na,ra,oa,aa,sa,la){var ca=getDimensions(ra),ua=ca.width,da=ca.height,pa=getDimensions(na),ha=pa.width,ga=pa.height,fa=getCurrentOffset(ea,na,sa),ma=fa.mouseX,va=fa.mouseY,xa=getDefaultPosition(sa,ha,ga,ua,da),ya=calculateOffset(la),Aa=ya.extraOffsetX,Ca=ya.extraOffsetY,Sa=window.innerWidth,wa=window.innerHeight,ba=getParent(ra),Ea=ba.parentTop,$a=ba.parentLeft,Ma=function(Xa){var tl=xa[Xa].l;return ma+tl+Aa},Ia=function(Xa){var tl=xa[Xa].r;return ma+tl+Aa},Oa=function(Xa){var tl=xa[Xa].t;return va+tl+Ca},Da=function(Xa){var tl=xa[Xa].b;return va+tl+Ca},Ta=function(Xa){return Ma(Xa)<0},_a=function(Xa){return Ia(Xa)>Sa},La=function(Xa){return Oa(Xa)<0},Na=function(Xa){return Da(Xa)>wa},za=function(Xa){return Ta(Xa)||_a(Xa)||La(Xa)||Na(Xa)},Fa=function(Xa){return!za(Xa)},Ha={top:Fa("top"),bottom:Fa("bottom"),left:Fa("left"),right:Fa("right")};function Va(){var Za=aa.split(",").concat(oa,["top","bottom","left","right"]),Xa=_createForOfIteratorHelper(Za),tl;try{for(Xa.s();!(tl=Xa.n()).done;){var il=tl.value;if(Ha[il])return il}}catch(Ja){Xa.e(Ja)}finally{Xa.f()}return oa}var Ua=Va(),Qa=!1,Wa;return Ua&&Ua!==oa&&(Qa=!0,Wa=Ua),Qa?{isNewState:!0,newState:{place:Wa}}:{isNewState:!1,position:{left:parseInt(Ma(oa)-$a,10),top:parseInt(Oa(oa)-Ea,10)}}}var getDimensions=function(na){var ra=na.getBoundingClientRect(),oa=ra.height,aa=ra.width;return{height:parseInt(oa,10),width:parseInt(aa,10)}},getCurrentOffset=function(na,ra,oa){var aa=ra.getBoundingClientRect(),sa=aa.top,la=aa.left,ca=getDimensions(ra),ua=ca.width,da=ca.height;return oa==="float"?{mouseX:na.clientX,mouseY:na.clientY}:{mouseX:la+ua/2,mouseY:sa+da/2}},getDefaultPosition=function(na,ra,oa,aa,sa){var la,ca,ua,da,pa=3,ha=2,ga=12;return na==="float"?(la={l:-(aa/2),r:aa/2,t:-(sa+pa+ha),b:-3},ua={l:-(aa/2),r:aa/2,t:pa+ga,b:sa+pa+ha+ga},da={l:-(aa+pa+ha),r:-3,t:-(sa/2),b:sa/2},ca={l:pa,r:aa+pa+ha,t:-(sa/2),b:sa/2}):na==="solid"&&(la={l:-(aa/2),r:aa/2,t:-(oa/2+sa+ha),b:-(oa/2)},ua={l:-(aa/2),r:aa/2,t:oa/2,b:oa/2+sa+ha},da={l:-(aa+ra/2+ha),r:-(ra/2),t:-(sa/2),b:sa/2},ca={l:ra/2,r:aa+ra/2+ha,t:-(sa/2),b:sa/2}),{top:la,bottom:ua,left:da,right:ca}},calculateOffset=function(na){var ra=0,oa=0;Object.prototype.toString.apply(na)==="[object String]"&&(na=JSON.parse(na.toString().replace(/'/g,'"')));for(var aa in na)aa==="top"?oa-=parseInt(na[aa],10):aa==="bottom"?oa+=parseInt(na[aa],10):aa==="left"?ra-=parseInt(na[aa],10):aa==="right"&&(ra+=parseInt(na[aa],10));return{extraOffsetX:ra,extraOffsetY:oa}},getParent=function(na){for(var ra=na;ra;){var oa=window.getComputedStyle(ra);if(oa.getPropertyValue("transform")!=="none"||oa.getPropertyValue("will-change")==="transform")break;ra=ra.parentElement}var aa=ra&&ra.getBoundingClientRect().top||0,sa=ra&&ra.getBoundingClientRect().left||0;return{parentTop:aa,parentLeft:sa}};function TipContent(ea,na,ra,oa){if(na)return na;if(ra!=null)return ra;if(ra===null)return null;var aa=/<br\s*\/?>/;return!oa||oa==="false"||!aa.test(ea)?ea:ea.split(aa).map(function(sa,la){return React.createElement("span",{key:la,className:"multi-line"},sa)})}function parseAria(ea){var na={};return Object.keys(ea).filter(function(ra){return/(^aria-\w+$|^role$)/.test(ra)}).forEach(function(ra){na[ra]=ea[ra]}),na}function nodeListToArray(ea){var na=ea.length;return ea.hasOwnProperty?Array.prototype.slice.call(ea):new Array(na).fill().map(function(ra){return ea[ra]})}function generateUUID(){return"t"+v4()}var baseCss=`.__react_component_tooltip {
  border-radius: 3px;
  display: inline-block;
  font-size: 13px;
  left: -999em;
  opacity: 0;
  position: fixed;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  top: -999em;
  visibility: hidden;
  z-index: 999;
}
.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {
  pointer-events: auto;
}
.__react_component_tooltip::before, .__react_component_tooltip::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
}
.__react_component_tooltip.show {
  opacity: 0.9;
  margin-top: 0;
  margin-left: 0;
  visibility: visible;
}
.__react_component_tooltip.place-top::before {
  bottom: 0;
  left: 50%;
  margin-left: -11px;
}
.__react_component_tooltip.place-bottom::before {
  top: 0;
  left: 50%;
  margin-left: -11px;
}
.__react_component_tooltip.place-left::before {
  right: 0;
  top: 50%;
  margin-top: -9px;
}
.__react_component_tooltip.place-right::before {
  left: 0;
  top: 50%;
  margin-top: -9px;
}
.__react_component_tooltip .multi-line {
  display: block;
  padding: 2px 0;
  text-align: center;
}`,defaultColors$23={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function getDefaultPopupColors(ea){return defaultColors$23[ea]?_objectSpread2({},defaultColors$23[ea]):void 0}var DEFAULT_PADDING="8px 21px",DEFAULT_RADIUS={tooltip:3,arrow:0};function generateTooltipStyle(ea,na,ra,oa,aa,sa){return generateStyle(ea,getPopupColors(na,ra,oa),aa,sa)}function generateStyle(ea,na){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DEFAULT_PADDING,oa=arguments.length>3&&arguments[3]!==void 0?arguments[3]:DEFAULT_RADIUS,aa=na.text,sa=na.background,la=na.border,ca=na.arrow,ua=oa.arrow,da=oa.tooltip;return`
  	.`.concat(ea,` {
	    color: `).concat(aa,`;
	    background: `).concat(sa,`;
	    border: 1px solid `).concat(la,`;
	    border-radius: `).concat(da,`px;
	    padding: `).concat(ra,`;
  	}

  	.`).concat(ea,`.place-top {
        margin-top: -10px;
    }
    .`).concat(ea,`.place-top::before {
        content: "";
        background-color: inherit;
        position: absolute;
        z-index: 2;
        width: 20px;
        height: 12px;
    }
    .`).concat(ea,`.place-top::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        border-top-right-radius: `).concat(ua,`px;
        border: 1px solid `).concat(la,`;
        background-color: `).concat(ca,`;
        z-index: -2;
        bottom: -6px;
        left: 50%;
        margin-left: -6px;
        transform: rotate(135deg);
    }

    .`).concat(ea,`.place-bottom {
        margin-top: 10px;
    }
    .`).concat(ea,`.place-bottom::before {
        content: "";
        background-color: inherit;
        position: absolute;
        z-index: -1;
        width: 18px;
        height: 10px;
    }
    .`).concat(ea,`.place-bottom::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        border-top-right-radius: `).concat(ua,`px;
        border: 1px solid `).concat(la,`;
        background-color: `).concat(ca,`;
        z-index: -2;
        top: -6px;
        left: 50%;
        margin-left: -6px;
        transform: rotate(45deg);
    }

    .`).concat(ea,`.place-left {
        margin-left: -10px;
    }
    .`).concat(ea,`.place-left::before {
        content: "";
        background-color: inherit;
        position: absolute;
        z-index: -1;
        width: 10px;
        height: 18px;
    }
    .`).concat(ea,`.place-left::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        border-top-right-radius: `).concat(ua,`px;
        border: 1px solid `).concat(la,`;
        background-color: `).concat(ca,`;
        z-index: -2;
        right: -6px;
        top: 50%;
        margin-top: -6px;
        transform: rotate(45deg);
    }

    .`).concat(ea,`.place-right {
        margin-left: 10px;
    }
    .`).concat(ea,`.place-right::before {
        content: "";
        background-color: inherit;
        position: absolute;
        z-index: -1;
        width: 10px;
        height: 18px;
    }
    .`).concat(ea,`.place-right::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        border-top-right-radius: `).concat(ua,`px;
        border: 1px solid `).concat(la,`;
        background-color: `).concat(ca,`;
        z-index: -2;
        left: -6px;
        top: 50%;
        margin-top: -6px;
        transform: rotate(-135deg);
    }
  `)}function getPopupColors(ea,na,ra){var oa=ea.text,aa=ea.background,sa=ea.border,la=ea.arrow?ea.arrow:ea.background,ca=getDefaultPopupColors(na);return oa&&(ca.text=oa),aa&&(ca.background=aa),ra&&(sa?ca.border=sa:ca.border=na==="light"?"black":"white"),la&&(ca.arrow=la),ca}var _class,_class2,ReactTooltip=staticMethods(_class=windowListener(_class=customEvent(_class=isCapture(_class=getEffect(_class=bodyMode(_class=trackRemoval(_class=(_class2=function(ea){_inherits(ra,ea);var na=_createSuper$1(ra);function ra(oa){var aa;return _classCallCheck(this,ra),aa=na.call(this,oa),aa.state={uuid:oa.uuid||generateUUID(),place:oa.place||"top",desiredPlace:oa.place||"top",type:oa.type||"dark",effect:oa.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:oa.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:oa.event||null,eventOff:oa.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:parseAria(oa),isEmptyTip:!1,disable:!1,possibleCustomEvents:oa.possibleCustomEvents||"",possibleCustomEventsOff:oa.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},aa.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),aa.mount=!0,aa.delayShowLoop=null,aa.delayHideLoop=null,aa.delayReshow=null,aa.intervalUpdateContent=null,aa}return _createClass(ra,[{key:"bind",value:function(aa){var sa=this;aa.forEach(function(la){sa[la]=sa[la].bind(sa)})}},{key:"componentDidMount",value:function(){var aa=this.props;aa.insecure;var sa=aa.resizeHide,la=aa.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(sa),la||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var aa=this.tooltipRef;if(aa){for(var sa=aa.parentNode;sa.parentNode;)sa=sa.parentNode;var la;switch(sa.constructor.name){case"Document":case"HTMLDocument":case void 0:la=sa.head;break;case"ShadowRoot":default:la=sa;break}if(!la.querySelector("style[data-react-tooltip]")){var ca=document.createElement("style");ca.textContent=baseCss,ca.setAttribute("data-react-tooltip","true"),la.appendChild(ca)}}}},{key:"mouseOnToolTip",value:function(){var aa=this.state.show;return aa&&this.tooltipRef?(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover")):!1}},{key:"getTargetArray",value:function(aa){var sa=[],la;if(!aa)la="[data-tip]:not([data-for])";else{var ca=aa.replace(/\\/g,"\\\\").replace(/"/g,'\\"');la='[data-tip][data-for="'.concat(ca,'"]')}return nodeListToArray(document.getElementsByTagName("*")).filter(function(ua){return ua.shadowRoot}).forEach(function(ua){sa=sa.concat(nodeListToArray(ua.shadowRoot.querySelectorAll(la)))}),sa.concat(nodeListToArray(document.querySelectorAll(la)))}},{key:"bindListener",value:function(){var aa=this,sa=this.props,la=sa.id,ca=sa.globalEventOff,ua=sa.isCapture,da=this.getTargetArray(la);da.forEach(function(pa){pa.getAttribute("currentItem")===null&&pa.setAttribute("currentItem","false"),aa.unbindBasicListener(pa),aa.isCustomEvent(pa)&&aa.customUnbindListener(pa)}),this.isBodyMode()?this.bindBodyListener(da):da.forEach(function(pa){var ha=aa.isCapture(pa),ga=aa.getEffect(pa);if(aa.isCustomEvent(pa)){aa.customBindListener(pa);return}pa.addEventListener("mouseenter",aa.showTooltip,ha),pa.addEventListener("focus",aa.showTooltip,ha),ga==="float"&&pa.addEventListener("mousemove",aa.updateTooltip,ha),pa.addEventListener("mouseleave",aa.hideTooltip,ha),pa.addEventListener("blur",aa.hideTooltip,ha)}),ca&&(window.removeEventListener(ca,this.hideTooltip),window.addEventListener(ca,this.hideTooltip,ua)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var aa=this,sa=this.props,la=sa.id,ca=sa.globalEventOff;if(this.isBodyMode())this.unbindBodyListener();else{var ua=this.getTargetArray(la);ua.forEach(function(da){aa.unbindBasicListener(da),aa.isCustomEvent(da)&&aa.customUnbindListener(da)})}ca&&window.removeEventListener(ca,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(aa){var sa=this.isCapture(aa);aa.removeEventListener("mouseenter",this.showTooltip,sa),aa.removeEventListener("mousemove",this.updateTooltip,sa),aa.removeEventListener("mouseleave",this.hideTooltip,sa)}},{key:"getTooltipContent",value:function(){var aa=this.props,sa=aa.getContent,la=aa.children,ca;return sa&&(Array.isArray(sa)?ca=sa[0]&&sa[0](this.state.originTooltip):ca=sa(this.state.originTooltip)),TipContent(this.state.originTooltip,la,ca,this.state.isMultiline)}},{key:"isEmptyTip",value:function(aa){return typeof aa=="string"&&aa===""||aa===null}},{key:"showTooltip",value:function(aa,sa){if(this.tooltipRef){if(sa){var la=this.getTargetArray(this.props.id),ca=la.some(function($a){return $a===aa.currentTarget});if(!ca)return}var ua=this.props,da=ua.multiline,pa=ua.getContent,ha=aa.currentTarget.getAttribute("data-tip"),ga=aa.currentTarget.getAttribute("data-multiline")||da||!1,fa=aa instanceof window.FocusEvent||sa,ma=!0;aa.currentTarget.getAttribute("data-scroll-hide")?ma=aa.currentTarget.getAttribute("data-scroll-hide")==="true":this.props.scrollHide!=null&&(ma=this.props.scrollHide),aa&&aa.currentTarget&&aa.currentTarget.setAttribute&&aa.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var va=aa.currentTarget.getAttribute("data-place")||this.props.place||"top",xa=fa&&"solid"||this.getEffect(aa.currentTarget),ya=aa.currentTarget.getAttribute("data-offset")||this.props.offset||{},Aa=getPosition$2(aa,aa.currentTarget,this.tooltipRef,va.split(",")[0],va,xa,ya);Aa.position&&this.props.overridePosition&&(Aa.position=this.props.overridePosition(Aa.position,aa,aa.currentTarget,this.tooltipRef,va,va,xa,ya));var Ca=Aa.isNewState?Aa.newState.place:va.split(",")[0];this.clearTimer();var Sa=aa.currentTarget,wa=this.state.show?Sa.getAttribute("data-delay-update")||this.props.delayUpdate:0,ba=this,Ea=function(){ba.setState({originTooltip:ha,isMultiline:ga,desiredPlace:va,place:Ca,type:Sa.getAttribute("data-type")||ba.props.type||"dark",customColors:{text:Sa.getAttribute("data-text-color")||ba.props.textColor||null,background:Sa.getAttribute("data-background-color")||ba.props.backgroundColor||null,border:Sa.getAttribute("data-border-color")||ba.props.borderColor||null,arrow:Sa.getAttribute("data-arrow-color")||ba.props.arrowColor||null},customRadius:{tooltip:Sa.getAttribute("data-tooltip-radius")||ba.props.tooltipRadius||"3",arrow:Sa.getAttribute("data-arrow-radius")||ba.props.arrowRadius||"0"},effect:xa,offset:ya,padding:Sa.getAttribute("data-padding")||ba.props.padding,html:(Sa.getAttribute("data-html")?Sa.getAttribute("data-html")==="true":ba.props.html)||!1,delayShow:Sa.getAttribute("data-delay-show")||ba.props.delayShow||0,delayHide:Sa.getAttribute("data-delay-hide")||ba.props.delayHide||0,delayUpdate:Sa.getAttribute("data-delay-update")||ba.props.delayUpdate||0,border:(Sa.getAttribute("data-border")?Sa.getAttribute("data-border")==="true":ba.props.border)||!1,borderClass:Sa.getAttribute("data-border-class")||ba.props.borderClass||"border",extraClass:Sa.getAttribute("data-class")||ba.props.class||ba.props.className||"",disable:(Sa.getAttribute("data-tip-disable")?Sa.getAttribute("data-tip-disable")==="true":ba.props.disable)||!1,currentTarget:Sa},function(){ma&&ba.addScrollListener(ba.state.currentTarget),ba.updateTooltip(aa),pa&&Array.isArray(pa)&&(ba.intervalUpdateContent=setInterval(function(){if(ba.mount){var Ma=ba.props.getContent,Ia=TipContent(ha,"",Ma[0](),ga),Oa=ba.isEmptyTip(Ia);ba.setState({isEmptyTip:Oa}),ba.updatePosition()}},pa[1]))})};wa?this.delayReshow=setTimeout(Ea,wa):Ea()}}},{key:"updateTooltip",value:function(aa){var sa=this,la=this.state,ca=la.delayShow,ua=la.disable,da=this.props,pa=da.afterShow,ha=da.disable,ga=this.getTooltipContent(),fa=aa.currentTarget||aa.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(ga)||ua||ha)){var ma=this.state.show?0:parseInt(ca,10),va=function(){if(Array.isArray(ga)&&ga.length>0||ga){var ya=!sa.state.show;sa.setState({currentEvent:aa,currentTarget:fa,show:!0},function(){sa.updatePosition(function(){ya&&pa&&pa(aa)})})}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),ma?this.delayShowLoop=setTimeout(va,ma):(this.delayShowLoop=null,va())}}},{key:"listenForTooltipExit",value:function(){var aa=this.state.show;aa&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){var aa=this.state.show;aa&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(aa,sa){var la=this,ca=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isScroll:!1},ua=this.state.disable,da=ca.isScroll,pa=da?0:this.state.delayHide,ha=this.props,ga=ha.afterHide,fa=ha.disable,ma=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(ma)||ua||fa)){if(sa){var va=this.getTargetArray(this.props.id),xa=va.some(function(Aa){return Aa===aa.currentTarget});if(!xa||!this.state.show)return}aa&&aa.currentTarget&&aa.currentTarget.removeAttribute&&aa.currentTarget.removeAttribute("aria-describedby");var ya=function(){var Ca=la.state.show;if(la.mouseOnToolTip()){la.listenForTooltipExit();return}la.removeListenerForTooltipExit(),la.setState({show:!1},function(){la.removeScrollListener(la.state.currentTarget),Ca&&ga&&ga(aa)})};this.clearTimer(),pa?this.delayHideLoop=setTimeout(ya,parseInt(pa,10)):ya()}}},{key:"hideTooltipOnScroll",value:function(aa,sa){this.hideTooltip(aa,sa,{isScroll:!0})}},{key:"addScrollListener",value:function(aa){var sa=this.isCapture(aa);window.addEventListener("scroll",this.hideTooltipOnScroll,sa)}},{key:"removeScrollListener",value:function(aa){var sa=this.isCapture(aa);window.removeEventListener("scroll",this.hideTooltipOnScroll,sa)}},{key:"updatePosition",value:function(aa){var sa=this,la=this.state,ca=la.currentEvent,ua=la.currentTarget,da=la.place,pa=la.desiredPlace,ha=la.effect,ga=la.offset,fa=this.tooltipRef,ma=getPosition$2(ca,ua,fa,da,pa,ha,ga);if(ma.position&&this.props.overridePosition&&(ma.position=this.props.overridePosition(ma.position,ca,ua,fa,da,pa,ha,ga)),ma.isNewState)return this.setState(ma.newState,function(){sa.updatePosition(aa)});aa&&typeof aa=="function"&&aa(),fa.style.left=ma.position.left+"px",fa.style.top=ma.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var aa=this;return!!(Object.keys(this.state.customColors).find(function(sa){return sa!=="border"&&aa.state.customColors[sa]})||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var aa=this,sa=this.state,la=sa.extraClass,ca=sa.html,ua=sa.ariaProps,da=sa.disable,pa=sa.uuid,ha=this.getTooltipContent(),ga=this.isEmptyTip(ha),fa=this.props.disableInternalStyle?"":generateTooltipStyle(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),ma="__react_component_tooltip"+" ".concat(this.state.uuid)+(this.state.show&&!da&&!ga?" show":"")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),va=this.props.wrapper;ra.supportedWrappers.indexOf(va)<0&&(va=ra.defaultProps.wrapper);var xa=[ma,la].filter(Boolean).join(" ");if(ca){var ya="".concat(ha).concat(fa?`
<style aria-hidden="true">`.concat(fa,"</style>"):"");return React.createElement(va,_extends$4({className:"".concat(xa),id:this.props.id||pa,ref:function(Ca){return aa.tooltipRef=Ca}},ua,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:ya}}))}else return React.createElement(va,_extends$4({className:"".concat(xa),id:this.props.id||pa},ua,{ref:function(Ca){return aa.tooltipRef=Ca},"data-id":"tooltip"}),fa&&React.createElement("style",{dangerouslySetInnerHTML:{__html:fa},"aria-hidden":"true"}),ha)}}],[{key:"propTypes",get:function(){return{uuid:PropTypes.string,children:PropTypes.any,place:PropTypes.string,type:PropTypes.string,effect:PropTypes.string,offset:PropTypes.object,padding:PropTypes.string,multiline:PropTypes.bool,border:PropTypes.bool,borderClass:PropTypes.string,textColor:PropTypes.string,backgroundColor:PropTypes.string,borderColor:PropTypes.string,arrowColor:PropTypes.string,arrowRadius:PropTypes.string,tooltipRadius:PropTypes.string,insecure:PropTypes.bool,class:PropTypes.string,className:PropTypes.string,id:PropTypes.string,html:PropTypes.bool,delayHide:PropTypes.number,delayUpdate:PropTypes.number,delayShow:PropTypes.number,event:PropTypes.string,eventOff:PropTypes.string,isCapture:PropTypes.bool,globalEventOff:PropTypes.string,getContent:PropTypes.any,afterShow:PropTypes.func,afterHide:PropTypes.func,overridePosition:PropTypes.func,disable:PropTypes.bool,scrollHide:PropTypes.bool,resizeHide:PropTypes.bool,wrapper:PropTypes.string,bodyMode:PropTypes.bool,possibleCustomEvents:PropTypes.string,possibleCustomEventsOff:PropTypes.string,clickable:PropTypes.bool,disableInternalStyle:PropTypes.bool}}},{key:"getDerivedStateFromProps",value:function(aa,sa){var la=sa.ariaProps,ca=parseAria(aa),ua=Object.keys(ca).some(function(da){return ca[da]!==la[da]});return ua?_objectSpread2(_objectSpread2({},sa),{},{ariaProps:ca}):null}}]),ra}(React.Component),_defineProperty$6(_class2,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),_defineProperty$6(_class2,"supportedWrappers",["div","span"]),_defineProperty$6(_class2,"displayName","ReactTooltip"),_class2))||_class)||_class)||_class)||_class)||_class)||_class)||_class;const defaultColors$22={color:"#222222",background:"#F2F3F5",border:"#C9C9C9",shadow:"2px 10px 25px rgba(0,0,0,.25)",inverted:{color:"#FFFFFF",background:"#272727",border:"#191919",shadow:"2px 10px 25px rgba(0,0,0,.25)"}},colors$21={dark:defaultColors$22},defaultSizing$1O={space:"5px",padding:"10px",fontSize:"12px",radius:"5px",maxWidth:"200px"},sizes$21={default:defaultSizing$1O},tooltipWrapColor={background:"#222222",border:"#000000",shadow:"rgba(0, 0, 0, 0.25)",color:"#FFF"},tooltipWrapColors={dark:tooltipWrapColor},tooltipWrapSize={border:"5px"},tooltipWrapSizes={default:tooltipWrapSize},tooltipWrap={colors:tooltipWrapColors,sizes:tooltipWrapSizes},scheme$1y=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$21,sizes:sizes$21,tooltipWrap},Symbol.toStringTag,{value:"Module"})),Tooltip=({inverted:ea,...na})=>jsxRuntimeExports.jsx(ReactTooltip,{...na}),theme$3W=withTheme(scheme$1y),Tooltip$1=dt$1(Tooltip).withConfig({displayName:"Tooltip",componentId:"sc-10z7el2-0"})(["&.__react_component_tooltip{z-index:90000;&:after{display:none;}border:solid 1px;&.show{opacity:1 !important;}"," ","}"],theme$3W.colors((ea,{inverted:na})=>lt$1(["background-color:"," !important;border-color:",";box-shadow:",";color:"," !important;"],na?ea.inverted.background:ea.background,na?ea.inverted.border:ea.border,na?ea.inverted.shadow:ea.shadow,na?ea.inverted.color:ea.color)),theme$3W.sizes(ea=>lt$1(["padding:",";font-size:",";border-radius:",";max-width:",";&.place-right{margin-left:",";}&.place-left{margin-right:",";}&.place-top{margin-bottom:",";}&.place-bottom{margin-top:",";}"],ea.padding,ea.fontSize,ea.radius,ea.maxWidth,ea.space,ea.space,ea.space,ea.space))),TooltipWrap=ea=>{const{tooltipProps:na,children:ra,tooltip:oa,className:aa}=ea,sa=reactExports.useRef({tooltipID:nanoid()}),la=!!na,ca=la?sa.current.tooltipID:void 0,ua={"data-for":ca,"data-tip":!la&&typeof oa=="string"?oa:"","data-effect":"solid",className:aa};return na&&(na.id=ca),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{...ua,children:ra}),la&&jsxRuntimeExports.jsx(Tooltip$1,{...na,children:oa})]})},theme$3V=withTheme(tooltipWrap),StyledTooltipWrap=dt$1(TooltipWrap).withConfig({displayName:"StyledTooltipWrap",componentId:"sc-1sq1a3g-0"})(["+ div{&:after,&:before{display:none;}}"," ",""],theme$3V.colors(ea=>lt$1(["+ div{background:"," !important;border:1px solid ",";box-shadow:2px 10px 25px ",";color:"," !important;}"],ea.background,ea.border,ea.shadow,ea.color)),theme$3V.sizes(ea=>lt$1(["+ div{border-radius:",";}"],ea.border))),useDynamicTooltip=(ea=[])=>{reactExports.useEffect(()=>{ReactTooltip.rebuild()},ea)},darkAudio=`<svg class="depicter-single-svg-loading" viewBox="0 0 55 80" xmlns="http://www.w3.org/2000/svg" fill="#050a0e">
   <g transform="matrix(1 0 0 -1 0 80)">
      <rect width="10" height="20" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="4.3s"
            values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="15" width="10" height="80" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="2s"
            values="80;55;33;5;75;23;73;33;12;14;60;80"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="30" width="10" height="50" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="1.4s"
            values="50;34;78;23;56;23;34;76;80;54;21;50"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="45" width="10" height="30" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="2s"
            values="30;45;13;80;56;72;45;76;34;23;67;30"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
   </g>
</svg>
`,lightAudio=`<svg class="depicter-single-svg-loading" viewBox="0 0 55 80" xmlns="http://www.w3.org/2000/svg" fill="#FFF">
   <g transform="matrix(1 0 0 -1 0 80)">
      <rect width="10" height="20" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="4.3s"
            values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="15" width="10" height="80" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="2s"
            values="80;55;33;5;75;23;73;33;12;14;60;80"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="30" width="10" height="50" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="1.4s"
            values="50;34;78;23;56;23;34;76;80;54;21;50"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
      <rect x="45" width="10" height="30" rx="3">
         <animate
            attributeName="height"
            begin="0s"
            dur="2s"
            values="30;45;13;80;56;72;45;76;34;23;67;30"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </rect>
   </g>
</svg>
`,LoadingSymbol=({className:ea,dark:na,light:ra,themeMode:oa})=>{const aa=reactExports.useContext(et$1);return jsxRuntimeExports.jsx("div",{className:ea,dangerouslySetInnerHTML:{__html:(oa||aa?.colors)==="dark"?ra:na}})},LoadingSymbol$1=dt$1(LoadingSymbol).withConfig({displayName:"LoadingSymbol",componentId:"sc-179hnog-0"})(["display:inline-flex;align-items:center;justify-content:center;"]),Audio=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkAudio,light:lightAudio}),Audio$1=dt$1(Audio).withConfig({displayName:"Audio",componentId:"sc-1owkcq-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.6":"1"),darkBallTriangle=`<svg class="depicter-single-svg-loading" viewBox="0 0 57 57" xmlns="http://www.w3.org/2000/svg" stroke="#050a0e">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)" stroke-width="2">
         <circle cx="5" cy="50" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               values="50;5;50;50"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               begin="0s"
               dur="2.2s"
               values="5;27;49;5"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="5" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               from="5"
               to="5"
               values="5;50;50;5"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               begin="0s"
               dur="2.2s"
               from="27"
               to="27"
               values="27;49;5;27"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="49" cy="50" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               values="50;50;5;50"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               from="49"
               to="49"
               begin="0s"
               dur="2.2s"
               values="49;5;27;49"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,lightBallTriangle=`<svg class="depicter-single-svg-loading" viewBox="0 0 57 57" xmlns="http://www.w3.org/2000/svg" stroke="#FFF">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)" stroke-width="2">
         <circle cx="5" cy="50" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               values="50;5;50;50"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               begin="0s"
               dur="2.2s"
               values="5;27;49;5"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="5" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               from="5"
               to="5"
               values="5;50;50;5"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               begin="0s"
               dur="2.2s"
               from="27"
               to="27"
               values="27;49;5;27"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="49" cy="50" r="5">
            <animate
               attributeName="cy"
               begin="0s"
               dur="2.2s"
               values="50;50;5;50"
               calcMode="linear"
               repeatCount="indefinite"
            />
            <animate
               attributeName="cx"
               from="49"
               to="49"
               begin="0s"
               dur="2.2s"
               values="49;5;27;49"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,BallTriangle=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkBallTriangle,light:lightBallTriangle}),BallTriangle$1=dt$1(BallTriangle).withConfig({displayName:"BallTriangle",componentId:"sc-1nzgjc7-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.6":"1"),darkBars=`<svg class="depicter-single-svg-loading" viewBox="0 0 135 140" xmlns="http://www.w3.org/2000/svg" fill="#050a0e">
   <rect y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.5s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.5s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="30" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.25s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.25s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="60" width="15" height="140" rx="6">
      <animate
         attributeName="height"
         begin="0s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="90" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.25s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.25s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="120" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.5s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.5s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
</svg>
`,lightBars=`<svg class="depicter-single-svg-loading" viewBox="0 0 135 140" xmlns="http://www.w3.org/2000/svg" fill="#fff">
   <rect y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.5s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.5s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="30" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.25s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.25s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="60" width="15" height="140" rx="6">
      <animate
         attributeName="height"
         begin="0s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="90" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.25s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.25s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
   <rect x="120" y="10" width="15" height="120" rx="6">
      <animate
         attributeName="height"
         begin="0.5s"
         dur="1s"
         values="120;110;100;90;80;70;60;50;40;140;120"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="y"
         begin="0.5s"
         dur="1s"
         values="10;15;20;25;30;35;40;45;50;0;10"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </rect>
</svg>
`,Bars=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkBars,light:lightBars}),Bars$1=dt$1(Bars).withConfig({displayName:"Bars",componentId:"sc-19gwqfg-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.3":"1"),darkCircles=`<svg class="depicter-single-svg-loading" viewBox="0 0 135 135" xmlns="http://www.w3.org/2000/svg" fill="#050a0e">
   <path
      d="M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"
   >
      <animateTransform
         attributeName="transform"
         type="rotate"
         from="0 67 67"
         to="-360 67 67"
         dur="2.5s"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"
   >
      <animateTransform
         attributeName="transform"
         type="rotate"
         from="0 67 67"
         to="360 67 67"
         dur="8s"
         repeatCount="indefinite"
      />
   </path>
</svg>
`,lightCircles=`<svg class="depicter-single-svg-loading" viewBox="0 0 135 135" xmlns="http://www.w3.org/2000/svg" fill="#fff">
   <path
      d="M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"
   >
      <animateTransform
         attributeName="transform"
         type="rotate"
         from="0 67 67"
         to="-360 67 67"
         dur="2.5s"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"
   >
      <animateTransform
         attributeName="transform"
         type="rotate"
         from="0 67 67"
         to="360 67 67"
         dur="8s"
         repeatCount="indefinite"
      />
   </path>
</svg>
`,Circles=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkCircles,light:lightCircles}),Circles$1=dt$1(Circles).withConfig({displayName:"Circles",componentId:"sc-1y5nfqv-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.3":"1"),darkDotFlashing=`<div class="depicter-loading-dark depicter-dot-flashing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,lightDotFlashing=`<div class="depicter-loading-light depicter-dot-flashing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,DotFlashing=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkDotFlashing,light:lightDotFlashing}),DotFlashing$1=dt$1(DotFlashing).withConfig({displayName:"DotFlashing",componentId:"sc-1jflrv6-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.8":"1"),DotSpinner=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkDotFlashing,light:lightDotFlashing}),DotSpinner$1=dt$1(DotSpinner).withConfig({displayName:"DotSpinner",componentId:"sc-81w9gc-0"})(["span{width:12px;height:12px;}"," ",""],ea=>ea.size==="small"&&lt$1(["gap:6px;span{width:8px;height:8px;}"]),ea=>ea.size==="tiny"&&lt$1(["gap:3px;span{width:4px;height:4px;}"])),darkDotReplacing=`<div class="depicter-loading-dark depicter-dot-replacing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,lightDotReplacing=`<div class="depicter-loading-light depicter-dot-replacing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,DotReplacing=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkDotReplacing,light:lightDotReplacing}),DotReplacing$1=dt$1(DotReplacing).withConfig({displayName:"DotReplacing",componentId:"sc-3asky0-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.8":"1"),darkDotStraightSwing=`<div class="depicter-loading-dark depicter-dot-straight-swing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,lightDotStraightSwing=`<div class="depicter-loading-light depicter-dot-straight-swing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,DotStraightSwing=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkDotStraightSwing,light:lightDotStraightSwing}),DotStraightSwing$1=dt$1(DotStraightSwing).withConfig({displayName:"DotStraightSwing",componentId:"sc-1nj0p8o-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.8":"1"),darkDotSwing=`<div class="depicter-loading-dark depicter-dot-swing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,lightDotSwing=`<div class="depicter-loading-light depicter-dot-swing">
   <span></span>
   <span></span>
   <span></span>
</div>
`,DotSwing=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkDotSwing,light:lightDotSwing}),DotSwing$1=dt$1(DotSwing).withConfig({displayName:"DotSwing",componentId:"sc-1knodos-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.8":"1"),darkGrid=`<svg class="depicter-single-svg-loading" viewBox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill="#050A0E">
   <circle cx="12.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="0s"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
      <animate
         attributeName="fill-opacity"
         begin="100ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="300ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="52.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="600ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="800ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="52.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="400ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="12.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="700ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="500ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="200ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
</svg>
`,lightGrid=`<svg class="depicter-single-svg-loading" viewBox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill="#fff">
   <circle cx="12.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="0s"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
      <animate
         attributeName="fill-opacity"
         begin="100ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="300ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="52.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="600ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="12.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="800ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="52.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="400ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="12.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="700ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="52.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="500ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="92.5" cy="92.5" r="12.5">
      <animate
         attributeName="fill-opacity"
         begin="200ms"
         dur="1s"
         values="1;.2;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
</svg>
`,Grid=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkGrid,light:lightGrid}),Grid$1=dt$1(Grid).withConfig({displayName:"Grid",componentId:"sc-f9ghxq-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.4":"1"),darkHearts=`<svg class="depicter-single-svg-loading" viewBox="0 0 140 64" xmlns="http://www.w3.org/2000/svg" fill="#050A0E">
   <path
      d="M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z"
      fill-opacity=".5"
   >
      <animate
         attributeName="fill-opacity"
         begin="0s"
         dur="1.4s"
         values="0.5;1;0.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z"
      fill-opacity=".5"
   >
      <animate
         attributeName="fill-opacity"
         begin="0.7s"
         dur="1.4s"
         values="0.5;1;0.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"
   />
</svg>
`,lightHearts=`<svg class="depicter-single-svg-loading" viewBox="0 0 140 64" xmlns="http://www.w3.org/2000/svg" fill="#fff">
   <path
      d="M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z"
      fill-opacity=".5"
   >
      <animate
         attributeName="fill-opacity"
         begin="0s"
         dur="1.4s"
         values="0.5;1;0.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z"
      fill-opacity=".5"
   >
      <animate
         attributeName="fill-opacity"
         begin="0.7s"
         dur="1.4s"
         values="0.5;1;0.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </path>
   <path
      d="M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"
   />
</svg>
`,Hearts=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkHearts,light:lightHearts}),Hearts$1=dt$1(Hearts).withConfig({displayName:"Hearts",componentId:"sc-1vbkxn4-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.4":"1"),darkOval=`<svg class="depicter-single-svg-loading" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#050A0E">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)" stroke-width="2">
         <circle stroke-opacity=".5" cx="18" cy="18" r="18" />
         <path d="M36 18c0-9.94-8.06-18-18-18">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="1s"
               repeatCount="indefinite"
            />
         </path>
      </g>
   </g>
</svg>
`,lightOval=`<svg class="depicter-single-svg-loading" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)" stroke-width="2">
         <circle stroke-opacity=".5" cx="18" cy="18" r="18" />
         <path d="M36 18c0-9.94-8.06-18-18-18">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="1s"
               repeatCount="indefinite"
            />
         </path>
      </g>
   </g>
</svg>
`,Oval=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkOval,light:lightOval}),Oval$1=dt$1(Oval).withConfig({displayName:"Oval",componentId:"sc-1uxgpr-0"})([""]),darkPuff=`<svg class="depicter-single-svg-loading" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#050a0e">
   <g fill="none" fill-rule="evenodd" stroke-width="2">
      <circle cx="22" cy="22" r="1">
         <animate
            attributeName="r"
            begin="0s"
            dur="1.8s"
            values="1; 20"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.165, 0.84, 0.44, 1"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-opacity"
            begin="0s"
            dur="1.8s"
            values="1; 0"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.3, 0.61, 0.355, 1"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="1">
         <animate
            attributeName="r"
            begin="-0.9s"
            dur="1.8s"
            values="1; 20"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.165, 0.84, 0.44, 1"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-opacity"
            begin="-0.9s"
            dur="1.8s"
            values="1; 0"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.3, 0.61, 0.355, 1"
            repeatCount="indefinite"
         />
      </circle>
   </g>
</svg>
`,lightPuff=`<svg class="depicter-single-svg-loading" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
   <g fill="none" fill-rule="evenodd" stroke-width="2">
      <circle cx="22" cy="22" r="1">
         <animate
            attributeName="r"
            begin="0s"
            dur="1.8s"
            values="1; 20"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.165, 0.84, 0.44, 1"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-opacity"
            begin="0s"
            dur="1.8s"
            values="1; 0"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.3, 0.61, 0.355, 1"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="1">
         <animate
            attributeName="r"
            begin="-0.9s"
            dur="1.8s"
            values="1; 20"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.165, 0.84, 0.44, 1"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-opacity"
            begin="-0.9s"
            dur="1.8s"
            values="1; 0"
            calcMode="spline"
            keyTimes="0; 1"
            keySplines="0.3, 0.61, 0.355, 1"
            repeatCount="indefinite"
         />
      </circle>
   </g>
</svg>
`,Puff=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkPuff,light:lightPuff}),Puff$1=dt$1(Puff).withConfig({displayName:"Puff",componentId:"sc-nywme1-0"})([""]),darkRings=`<svg class="depicter-single-svg-loading" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#050A0E">
   <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">
      <circle cx="22" cy="22" r="6" stroke-opacity="0">
         <animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite" />
         <animate
            attributeName="stroke-opacity"
            begin="1.5s"
            dur="3s"
            values="1;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-width"
            begin="1.5s"
            dur="3s"
            values="2;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="6" stroke-opacity="0">
         <animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite" />
         <animate
            attributeName="stroke-opacity"
            begin="3s"
            dur="3s"
            values="1;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-width"
            begin="3s"
            dur="3s"
            values="2;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="8">
         <animate
            attributeName="r"
            begin="0s"
            dur="1.5s"
            values="6;1;2;3;4;5;6"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
   </g>
</svg>
`,lightRings=`<svg class="depicter-single-svg-loading" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
   <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">
      <circle cx="22" cy="22" r="6" stroke-opacity="0">
         <animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite" />
         <animate
            attributeName="stroke-opacity"
            begin="1.5s"
            dur="3s"
            values="1;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-width"
            begin="1.5s"
            dur="3s"
            values="2;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="6" stroke-opacity="0">
         <animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite" />
         <animate
            attributeName="stroke-opacity"
            begin="3s"
            dur="3s"
            values="1;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
         <animate
            attributeName="stroke-width"
            begin="3s"
            dur="3s"
            values="2;0"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
      <circle cx="22" cy="22" r="8">
         <animate
            attributeName="r"
            begin="0s"
            dur="1.5s"
            values="6;1;2;3;4;5;6"
            calcMode="linear"
            repeatCount="indefinite"
         />
      </circle>
   </g>
</svg>
`,Rings=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkRings,light:lightRings}),Rings$1=dt$1(Rings).withConfig({displayName:"Rings",componentId:"sc-19xqp99-0"})([""]),darkSpinningCircles=`<svg class="depicter-single-svg-loading" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(2 1)" stroke="#050A0E" stroke-width="1.5">
         <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="1;0;0;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;1;0;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;1;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;1;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;1;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;1;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;0;1;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#050A0E">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;0;0;1"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,lightSpinningCircles=`<svg class="depicter-single-svg-loading" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">
         <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="1;0;0;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;1;0;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;1;0;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;1;0;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;1;0;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;1;0;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;0;1;0"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
         <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">
            <animate
               attributeName="fill-opacity"
               begin="0s"
               dur="1.3s"
               values="0;0;0;0;0;0;0;1"
               calcMode="linear"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,SpinningCircles=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkSpinningCircles,light:lightSpinningCircles}),SpinningCircles$1=dt$1(SpinningCircles).withConfig({displayName:"SpinningCircles",componentId:"sc-dm3ng2-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.7":"1"),darkTailSpin=`<svg class="depicter-single-svg-loading" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">
   <defs>
      <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a">
         <stop stop-color="#050A0E" stop-opacity="0" offset="0%" />
         <stop stop-color="#050A0E" stop-opacity=".631" offset="63.146%" />
         <stop stop-color="#050A0E" offset="100%" />
      </linearGradient>
   </defs>
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)">
         <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#a)" stroke-width="2">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="0.9s"
               repeatCount="indefinite"
            />
         </path>
         <circle fill="#050A0E" cx="36" cy="18" r="1">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="0.9s"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,lightTailSpin=`<svg class="depicter-single-svg-loading" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">
   <defs>
      <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="b">
         <stop stop-color="#fff" stop-opacity="0" offset="0%" />
         <stop stop-color="#fff" stop-opacity=".631" offset="63.146%" />
         <stop stop-color="#fff" offset="100%" />
      </linearGradient>
   </defs>
   <g fill="none" fill-rule="evenodd">
      <g transform="translate(1 1)">
         <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#b)" stroke-width="2">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="0.9s"
               repeatCount="indefinite"
            />
         </path>
         <circle fill="#fff" cx="36" cy="18" r="1">
            <animateTransform
               attributeName="transform"
               type="rotate"
               from="0 18 18"
               to="360 18 18"
               dur="0.9s"
               repeatCount="indefinite"
            />
         </circle>
      </g>
   </g>
</svg>
`,TailSpin=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkTailSpin,light:lightTailSpin}),TailSpin$1=dt$1(TailSpin).withConfig({displayName:"TailSpin",componentId:"sc-1je4pkr-0"})([""]),darkThreeDots=`<svg class="depicter-single-svg-loading" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#050A0E">
   <circle cx="15" cy="15" r="15">
      <animate
         attributeName="r"
         from="15"
         to="15"
         begin="0s"
         dur="0.8s"
         values="15;9;15"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="1"
         to="1"
         begin="0s"
         dur="0.8s"
         values="1;.5;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="60" cy="15" r="9" fill-opacity="0.3">
      <animate
         attributeName="r"
         from="9"
         to="9"
         begin="0s"
         dur="0.8s"
         values="9;15;9"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="0.5"
         to="0.5"
         begin="0s"
         dur="0.8s"
         values=".5;1;.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="105" cy="15" r="15">
      <animate
         attributeName="r"
         from="15"
         to="15"
         begin="0s"
         dur="0.8s"
         values="15;9;15"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="1"
         to="1"
         begin="0s"
         dur="0.8s"
         values="1;.5;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
</svg>
`,lightThreeDots=`<svg class="depicter-single-svg-loading" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">
   <circle cx="15" cy="15" r="15">
      <animate
         attributeName="r"
         from="15"
         to="15"
         begin="0s"
         dur="0.8s"
         values="15;9;15"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="1"
         to="1"
         begin="0s"
         dur="0.8s"
         values="1;.5;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="60" cy="15" r="9" fill-opacity="0.3">
      <animate
         attributeName="r"
         from="9"
         to="9"
         begin="0s"
         dur="0.8s"
         values="9;15;9"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="0.5"
         to="0.5"
         begin="0s"
         dur="0.8s"
         values=".5;1;.5"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
   <circle cx="105" cy="15" r="15">
      <animate
         attributeName="r"
         from="15"
         to="15"
         begin="0s"
         dur="0.8s"
         values="15;9;15"
         calcMode="linear"
         repeatCount="indefinite"
      />
      <animate
         attributeName="fill-opacity"
         from="1"
         to="1"
         begin="0s"
         dur="0.8s"
         values="1;.5;1"
         calcMode="linear"
         repeatCount="indefinite"
      />
   </circle>
</svg>
`,ThreeDots=ea=>jsxRuntimeExports.jsx(LoadingSymbol$1,{...ea,dark:darkThreeDots,light:lightThreeDots}),ThreeDots$1=dt$1(ThreeDots).withConfig({displayName:"ThreeDots",componentId:"sc-10lrpne-0"})(["transform:scale(",");"],ea=>ea.size==="small"?"0.4":"1"),ButtonLabel=dt$1.span.withConfig({displayName:"BaseButton__ButtonLabel",componentId:"sc-1jk6w4n-0"})([""]),ButtonIconHolder=dt$1.div.withConfig({displayName:"BaseButton__ButtonIconHolder",componentId:"sc-1jk6w4n-1"})([""]),BaseButton=reactExports.forwardRef((ea,na)=>{const{disabled:ra,value:oa,icon:aa,children:sa,onClick:la,tooltip:ca,loading:ua,buttonType:da,...pa}=ea,ha=reactExports.useCallback(Sa=>{if(ra||ua){Sa.preventDefault();return}la&&la(Sa,oa)},[ra,ua,la,oa]),ga=ea.href?"a":"button",fa=reactExports.useMemo(()=>{if(!ca||ra||ua)return{};const{place:Sa="top",id:wa}=ca.options||{};return{key:ca.content,"data-tip":ca.content,"data-place":Sa,"data-for":wa}},[ra,ua,ca]);useDynamicTooltip([ra,ua]);const{iconAlign:ma,variant:va,size:xa,corners:ya,selected:Aa,...Ca}=pa;return jsxRuntimeExports.jsxs(ga,{onClick:ha,ref:na,type:da,...Ca,...fa,children:[ua?jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}):null,aa&&jsxRuntimeExports.jsx(ButtonIconHolder,{children:aa}),sa&&jsxRuntimeExports.jsx(ButtonLabel,{children:sa})]})}),BaseButton$1=dt$1(BaseButton).withConfig({displayName:"BaseButton",componentId:"sc-1jk6w4n-2"})(["appearance:none;border:none;background:none;text-decoration:none;display:flex;border:none;align-items:center;justify-content:center;column-gap:7px;cursor:",";opacity:",";transition:background-color 300ms,color 300ms,border-color 300ms;border-radius:",";","{color:inherit;order:",";}"," "," "," ","{order:2;","}"],ea=>ea.disabled||ea.loading?"auto":"pointer",ea=>ea.disabled||ea.loading?"0.3":"1",({corners:ea="curve"})=>ea==="curve"?"50em":ea==="round"?"10px":"0",ButtonLabel,({iconAlign:ea="left"})=>ea==="left"?"3":"1",({href:ea})=>ea&&lt$1(["width:max-content;color:revert;&:focus{outline:none;box-shadow:none;}"]),({loading:ea,disabled:na})=>(ea||na)&&lt$1(["pointer-events:none;"]),ea=>ea.loading&&lt$1(["position:relative;> *{visibility:hidden;}> ","{position:absolute;top:50%;left:50%;visibility:visible;transform:translate(-50%,-50%);}"],DotSpinner$1),ButtonIconHolder,ea=>ea.icon&&!ea.loading&&lt$1(["svg{display:block;transition:fill 300ms;}"]));function withDefaultProps(ea,na){return ea.defaultProps=na,ea}const solidButtonColor={primary:{background:"#4980F5",icon:"currentColor",color:"white",hover:{background:"white",color:"#444444",icon:"currentColor"}},secondary:{background:"#121212",color:"white",icon:"currentColor",hover:{background:"white",color:"#444444",icon:"currentColor"}},tertiary:{background:"#121212",color:"white",icon:"currentColor",hover:{background:"white",color:"#444444",icon:"currentColor"}},transparent:{background:"transparent",color:"#AAAAAA",icon:"#AAAAAA",hover:{background:"transparent",color:"#FFF",icon:"#FFF"}}},solidButtonColors={dark:solidButtonColor,light:{primary:{background:"#7361E8",icon:"currentColor",color:"white",hover:{background:"#000000",color:"white",icon:"currentColor"}},secondary:{background:"#F2F2F2",color:"#000000",icon:"currentColor",hover:{background:"#000000",color:"white",icon:"currentColor"}},tertiary:{background:"#4980F5",color:"white",icon:"currentColor",hover:{background:"#000000",color:"white",icon:"currentColor"}},transparent:{background:"transparent",color:"#BDBDBD",icon:"#BDBDBD",hover:{background:"transparent",color:"#000000",icon:"#000000"}}}},solidButtonSize={large:{padding:"0 24px",fontSize:"16px",fontWeight:"600",height:"50px"},medium:{padding:"0 22px",fontSize:"12px",fontWeight:"600",height:"37px"},small:{padding:"0 16px",fontSize:"11px",fontWeight:"600",height:"31px"},tiny:{padding:"0 12px",fontSize:"10px",fontWeight:"600",height:"25px"}},solidButtonSizes={default:solidButtonSize,lightSizing:merge$1({},solidButtonSize,{large:{fontSize:"16px",fontWeight:"500"},medium:{fontSize:"15px",fontWeight:"500"},small:{fontSize:"14px",fontWeight:"500"},tiny:{fontSize:"12px",fontWeight:"500"}})},solidButton={colors:solidButtonColors,sizes:solidButtonSizes},outlineButtonColor={background:"transparent",color:"white",border:"#707070",icon:"#FFFFFF",hover:{background:"white",border:"white",color:"#444444",icon:"#444444"}},outlineButtonColors={dark:outlineButtonColor,light:{background:"transparent",color:"#000000",border:"#BDBDBD",icon:"currentColor",hover:{background:"#000000",border:"#000000",color:"white",icon:"white"}}},outlineButtonSize={borderRadius:{curve:"30em",round:"10px"},tiny:{padding:"0 12px",fontSize:"10px",border:"2px",height:"25px",fontWeight:"normal"},large:{padding:"0 22px",fontSize:"16px",border:"2px",height:"50px",fontWeight:"normal"},small:{padding:"0 16px",fontSize:"11px",border:"2px",height:"31px",fontWeight:"normal"},medium:{padding:"0 20px",fontSize:"12px",border:"2px",height:"37px",fontWeight:"normal"}},outlineButtonSizes={default:outlineButtonSize,lightSizing:merge$1({},outlineButtonSize,{large:{fontSize:"16px",fontWeight:"500"},medium:{fontSize:"15px",fontWeight:"500"},small:{fontSize:"14px",fontWeight:"500"},tiny:{fontSize:"12px",fontWeight:"500"}})},outlineButton={colors:outlineButtonColors,sizes:outlineButtonSizes},theme$3U=withTheme(outlineButton),OutlineButton=dt$1(BaseButton$1).withConfig({displayName:"OutlineButton",componentId:"sc-lgxice-0"})([""," ",""],theme$3U.colors((ea,na)=>lt$1(["color:",";background-color:",";border:solid ",";"," &:hover{color:",";background-color:",";border-color:",";","}"],ea.color,ea.background,ea.border,na.icon&&lt$1(["svg{fill:"," !important;}"],ea.icon),ea.hover.color,ea.hover.background,ea.hover.border,na.icon&&lt$1(["svg{fill:"," !important;}"],ea.hover.icon))),theme$3U.sizes((ea,{size:na="large",children:ra})=>lt$1(["padding:",";height:",";",";font-size:",";font-weight:",";border-width:",";"],ra?ea[na].padding:0,ea[na].height,ra?"":`width: ${ea[na].height}`,ea[na].fontSize,ea[na].fontWeight,ea[na].border))),OutlineButton$1=withDefaultProps(OutlineButton,{size:"large"});withDefaultProps(ea=>jsxRuntimeExports.jsx(OutlineButton,{...ea}),{size:"large",variant:"round"});const theme$3T=withTheme(solidButton),SolidButton=dt$1(BaseButton$1).withConfig({displayName:"SolidButton",componentId:"sc-1gmkrzi-0"})([""," ",""],theme$3T.colors((ea,{color:na="primary",icon:ra})=>lt$1(["color:",";background-color:",";"," &:hover,&.hovered{color:",";background-color:",";","}"],ea[na].color,ea[na].background,ra&&lt$1(["svg{fill:"," !important;}"],ea[na].icon),ea[na].hover.color,ea[na].hover.background,ra&&lt$1(["svg{fill:"," !important;}"],ea[na].hover.icon))),theme$3T.sizes((ea,{size:na="large",children:ra})=>lt$1(["padding:",";height:",";",";font-size:",";"],ra?ea[na].padding:0,ea[na].height,ra?"":`width: ${ea[na].height}`,ea[na].fontSize))),IconButton=dt$1(SolidButton).attrs({size:"small",color:"transparent"}).withConfig({displayName:"IconButton",componentId:"sc-og17cp-0"})([""]),defaultColors$21={color:"rgba(170, 170, 170, 0.87)",boxedBackground:"rgba(0, 0, 0, 0.3)"},lightColors$5={color:"#000000",boxedBackground:"rgba(255, 255, 255, 0.3)"},colors$20={dark:defaultColors$21,light:lightColors$5},defaultSizing$1N={fontSize:"12px",fontWeight:"400",boxedPadding:"10px",boxedRadius:"10px"},sizes$20={default:defaultSizing$1N},scheme$1x=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$20,sizes:sizes$20},Symbol.toStringTag,{value:"Module"})),Icon$3=ea=>{const{shape:na,className:ra,onClick:oa,style:aa,...sa}=ea;return jsxRuntimeExports.jsx("div",{onClick:oa,className:ra,style:aa,...sa,children:na&&(typeof na=="string"?jsxRuntimeExports.jsx("img",{src:na,alt:""}):jsxRuntimeExports.jsx(na,{}))})},Icon$4=dt$1(Icon$3).withConfig({displayName:"Icon",componentId:"sc-1905jxm-0"})(["svg{display:block;}img{display:inline-block;max-width:none;}"]),IconWithTooltip=ea=>{const{tooltip:na,...ra}=ea,oa={"data-tip":na?.content,"data-for":na?.options?.id,"data-place":na?.options?.place};return useDynamicTooltip([]),jsxRuntimeExports.jsx(Icon$4,{...ra,...oa})},IconWithTooltip$1=dt$1(IconWithTooltip).withConfig({displayName:"IconWithTooltip",componentId:"sc-1dlkzgd-0"})([""]),GemIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='12.407'%20height='11.043'%20viewBox='0%200%2012.407%2011.043'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20x1='0.5'%20x2='0.5'%20y2='1'%20gradientUnits='objectBoundingBox'%3e%3cstop%20offset='0'%20stop-color='%23ef0'/%3e%3cstop%20offset='1'%20stop-color='%23ffd500'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20id='gem'%20d='M-1150.983,1522.788h2.948l2.343,7.229-.02.026Zm3.81,0h2.368l-.008-.009h.042l-.008.009h2.354l-2.373,7.187-.032.042Zm5.609,0h2.948l-5.323,7.187Zm1.523-.783h-1.523l0-.009h-2.348l2.668-3,.058.065v0l2.59,2.907-.023.031Zm-7.313-3h2.349l0-.009h2.948l.023.031-2.591,2.909-.057.065Zm-2.188,3h-1.44l-.017-.023,2.6-2.917.058-.066,2.669,3h-2.363l0,.008Z'%20transform='translate(1151%20-1519)'%20fill='url(%23linear-gradient)'/%3e%3c/svg%3e",LoadingFailedIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='51.999'%20height='62.708'%20viewBox='0%200%2051.999%2062.708'%3e%3cpath%20id='loading_failed'%20data-name='loading%20failed'%20d='M-8789,9185v-22h2l16.719,10,16.144-9.653L-8738,9173v12Zm3-3h45v-7.3l-13.139-7.861-16.144,9.654-1.539-.92L-8786,9167.1Zm48-16.012s-.007-.007-.029-.011L-8755.5,9155l-16.993,10.68L-8789,9155v-26a4.969,4.969,0,0,1,1.464-3.518A4.961,4.961,0,0,1-8784,9124h31.167v0l0,0h.83c.027.011,3.4,3.319,6.883,6.772,3.14,3.111,6.922,6.892,7.116,7.224v27.994Zm-47.4-38.394a1.958,1.958,0,0,0-.595,1.4v24.37l13.531,8.755,16.97-10.666,1.6,1,12.9,8.109v-21.412l-.007-.007h-11.826v-11.774c-.138-.136-.267-.262-.385-.376H-8784A1.947,1.947,0,0,0-8785.405,9127.6Zm35.575,8.559h4.7l-4.7-4.8Z'%20transform='translate(8789.499%20-9122.792)'%20fill='%23fff'%20stroke='rgba(0,0,0,0)'%20stroke-width='1'/%3e%3c/svg%3e",NoneIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='33.999'%20viewBox='0%200%2034%2033.999'%3e%3cpath%20id='no_preload'%20data-name='no%20preload'%20d='M11392.384-1002.337a16.986,16.986,0,0,1-5.406-3.644,16.925,16.925,0,0,1-3.642-5.4A16.909,16.909,0,0,1,11382-1018a16.933,16.933,0,0,1,1.335-6.618,16.956,16.956,0,0,1,3.642-5.4,16.978,16.978,0,0,1,5.406-3.641A16.857,16.857,0,0,1,11399-1035a16.88,16.88,0,0,1,6.616,1.338,16.966,16.966,0,0,1,5.4,3.641,16.963,16.963,0,0,1,3.644,5.4A16.917,16.917,0,0,1,11416-1018a16.893,16.893,0,0,1-1.336,6.615,16.9,16.9,0,0,1-3.644,5.4,16.973,16.973,0,0,1-5.4,3.644A16.927,16.927,0,0,1,11399-1001,16.9,16.9,0,0,1,11392.384-1002.337Zm6.618-2.527a13.048,13.048,0,0,0,9.286-3.848,13.052,13.052,0,0,0,3.848-9.288,13.04,13.04,0,0,0-2.54-7.768l-18.364,18.364A13.037,13.037,0,0,0,11399-1004.864Zm-9.291-22.425a13.047,13.047,0,0,0-3.848,9.288,13.041,13.041,0,0,0,2.539,7.766l18.363-18.364a13.03,13.03,0,0,0-7.764-2.539A13.052,13.052,0,0,0,11389.711-1027.288Z'%20transform='translate(-11382.001%201035.001)'%20fill='%23FFF'/%3e%3c/svg%3e",SuccessIcon$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%3e%3cdefs%3e%3cstyle%3e.a{fill:%2301d06f;}.b{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-1055%20-2259)'%3e%3ccircle%20class='a'%20cx='6.5'%20cy='6.5'%20r='6.5'%20transform='translate(1055%202259)'/%3e%3cg%20transform='translate(435.668%201368.36)%20rotate(30)'%3e%3crect%20class='b'%20width='6.5'%20height='2'%20rx='1'%20transform='translate(992.5%20460)%20rotate(90)'/%3e%3crect%20class='b'%20width='2'%20height='4.5'%20rx='1'%20transform='translate(992.5%20465)%20rotate(90)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WarningIcon$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='13'%20viewBox='0%200%2014%2013'%3e%3cdefs%3e%3cstyle%3e.a{fill:%23ffb913;}.b{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-1055%20-2174.176)'%3e%3cg%20transform='translate(1054.999%202171.002)'%3e%3cpath%20class='a'%20d='M8.311.972c-.721-1.3-1.9-1.3-2.622,0L.308,10.644C-.413,11.943.177,13,1.619,13H12.382c1.442,0,2.032-1.061,1.311-2.353Z'%20transform='translate(0%203.176)'/%3e%3c/g%3e%3crect%20class='b'%20width='6'%20height='2'%20rx='1'%20transform='translate(1063%202176.676)%20rotate(90)'/%3e%3crect%20class='b'%20width='2'%20height='2'%20rx='1'%20transform='translate(1063%202183.676)%20rotate(90)'/%3e%3c/g%3e%3c/svg%3e",AlertIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39%2078C60.5391%2078%2078%2060.5391%2078%2039C78%2017.4609%2060.5391%200%2039%200C17.4609%200%200%2017.4609%200%2039C0%2060.5391%2017.4609%2078%2039%2078Z'%20fill='%23FF504A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.084%2021C41.2931%2021%2043.084%2022.7909%2043.084%2025L43.084%2042.8608C43.084%2045.0699%2041.2931%2046.8608%2039.084%2046.8608H38.9991C36.79%2046.8608%2034.9991%2045.0699%2034.9991%2042.8608V25C34.9991%2022.7909%2036.79%2021%2038.9991%2021H39.084Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.0859%2051.2969C41.2951%2051.2969%2043.0859%2053.0877%2043.0859%2055.2969V55.382C43.0859%2057.5911%2041.2951%2059.382%2039.0859%2059.382H39.0024C36.7932%2059.382%2035.0024%2057.5911%2035.0024%2055.382V55.2969C35.0024%2053.0877%2036.7932%2051.2969%2039.0024%2051.2969H39.0859Z'%20fill='white'/%3e%3c/svg%3e",CircleInfoIcon="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%2014C10.866%2014%2014%2010.866%2014%207C14%203.13401%2010.866%200%207%200C3.13401%200%200%203.13401%200%207C0%2010.866%203.13401%2014%207%2014Z'%20fill='%236A6A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%206H8V11H6V6Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%206H7V7H5V6Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%204C6%203.44772%206.44772%203%207%203C7.55228%203%208%203.44772%208%204C8%204.55228%207.55228%205%207%205C6.44772%205%206%204.55228%206%204Z'%20fill='white'/%3e%3c/svg%3e",InfoLargeIcon="data:image/svg+xml,%3csvg%20width='59'%20height='59'%20viewBox='0%200%2059%2059'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='error'%3e%3cpath%20id='Ellipse%2082'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.5%2059C45.7924%2059%2059%2045.7924%2059%2029.5C59%2013.2076%2045.7924%200%2029.5%200C13.2076%200%200%2013.2076%200%2029.5C0%2045.7924%2013.2076%2059%2029.5%2059Z'%20fill='%234980F5'/%3e%3cg%20id='Group%20283'%3e%3cpath%20id='Rectangle%20795'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.5301%2044.916C31.2189%2044.916%2032.5879%2043.547%2032.5879%2041.8583V28.4124C32.5879%2026.7237%2031.2189%2025.3547%2029.5301%2025.3547C27.8414%2025.3547%2026.4724%2026.7237%2026.4724%2028.4124L26.4724%2041.8583C26.4724%2043.547%2027.8414%2044.916%2029.5301%2044.916Z'%20fill='white'/%3e%3cpath%20id='Rectangle%20797'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.5326%2022C31.2211%2022%2032.5898%2020.6306%2032.5898%2018.9422C32.5898%2017.2537%2031.2211%2015.8843%2029.5326%2015.8843C27.8441%2015.8843%2026.4753%2017.2537%2026.4753%2018.9422C26.4753%2020.6306%2027.8441%2022%2029.5326%2022Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WarningLargeIcon="data:image/svg+xml,%3csvg%20width='58'%20height='54'%20viewBox='0%200%2058%2054'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='error'%3e%3cpath%20id='Polygon%20114'%20d='M22.4404%203.66374C25.0888%20-1.22125%2032.0997%20-1.22124%2034.748%203.66374L56.3325%2043.4767C58.8611%2048.1408%2055.4842%2053.8129%2050.1786%2053.8129H7.00984C1.70431%2053.8129%20-1.67264%2048.1408%200.85602%2043.4766L22.4404%203.66374Z'%20fill='%23FFB913'/%3e%3cg%20id='Group%20283'%3e%3cpath%20id='Rectangle%20795'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.0575%2015.8848C30.7462%2015.8848%2032.1152%2017.2538%2032.1152%2018.9425V32.3884C32.1152%2034.0771%2030.7462%2035.4461%2029.0575%2035.4461C27.3687%2035.4461%2025.9997%2034.0771%2025.9997%2032.3884L25.9997%2018.9425C25.9997%2017.2538%2027.3687%2015.8848%2029.0575%2015.8848Z'%20fill='%23070707'/%3e%3cpath%20id='Rectangle%20797'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.0599%2038.8008C30.7484%2038.8008%2032.1172%2040.1701%2032.1172%2041.8586C32.1172%2043.5471%2030.7484%2044.9164%2029.0599%2044.9164C27.3715%2044.9164%2026.0027%2043.5471%2026.0027%2041.8586C26.0027%2040.1701%2027.3715%2038.8008%2029.0599%2038.8008Z'%20fill='%23070707'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DisplayRulesIcon="data:image/svg+xml,%3csvg%20width='49'%20height='49'%20viewBox='0%200%2049%2049'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M25.2726%2042C22.7651%2042%2020.7326%2039.9891%2020.7326%2037.4967C20.7326%2036.3042%2021.2136%2035.1579%2022.0615%2034.3142L33.6252%2022.8435C33.9018%2022.5529%2034.2055%2022.3099%2034.5392%2022.1086C34.4821%2021.7554%2034.455%2021.3931%2034.455%2021.0234C34.455%2017.0419%2037.7113%2013.8116%2041.7282%2013.8116C42.7415%2013.8116%2043.7517%2014.0188%2044.6748%2014.4303L39.2838%2019.7862L43.1323%2023.6067L48.4662%2018.3149C49.9755%2022.0103%2048.1745%2026.2154%2044.4462%2027.7046C43.5893%2028.0549%2042.6543%2028.2338%2041.7282%2028.2338V28.2248C41.4366%2028.2248%2041.1509%2028.2054%2040.8653%2028.1726C40.6849%2028.4887%2040.4654%2028.7913%2040.1978%2029.0655C40.1497%2029.1222%2040.1076%2029.1669%2040.0505%2029.2116L28.4898%2040.6897C27.6449%2041.523%2026.4994%2042%2025.3087%2042C25.2967%2042%2025.2817%2042%2025.2726%2042ZM23.5567%2037.237C23.5567%2038.2313%2024.3595%2039.0392%2025.3727%2039.0392C26.377%2039.0392%2027.1858%2038.2313%2027.1858%2037.237C27.1918%2036.2413%2026.377%2035.4363%2025.3727%2035.4363C24.3595%2035.4363%2023.5567%2036.2413%2023.5567%2037.237Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M32.3274%2021.7152V13.0526C32.3274%2011.3694%2030.9463%2010%2029.2488%2010H3.07853C1.38103%2010%200%2011.3694%200%2013.0526V31.3693C0%2033.0525%201.38103%2034.4219%203.07853%2034.4219H19.9865L22.9506%2031.3699H4.61919C3.77043%2031.3699%203.07992%2030.6852%203.07992%2029.8436V14.5794C3.07992%2013.7378%203.77043%2013.0532%204.61919%2013.0532H27.711C28.5597%2013.0532%2029.2502%2013.7378%2029.2502%2014.5794V24.8836L32.3274%2021.7152Z'%20fill='white'/%3e%3c/svg%3e",LayersPanelDragIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='7'%20viewBox='0%200%2025%207'%20fill='none'%3e%3crect%20x='2'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='7'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='12'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='17'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='22'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='2'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='7'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='12'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='17'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20x='22'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%23070707'/%3e%3crect%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='10'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='15'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='20'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='10'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='15'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3crect%20x='20'%20y='5'%20width='3'%20height='2'%20rx='1'%20fill='%236A6A6A'/%3e%3c/svg%3e",SuccessOutlineIcon="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%201C14.9706%201%2019%205.02944%2019%2010C19%2014.9706%2014.9706%2019%2010%2019C5.02944%2019%201%2014.9706%201%2010C1%205.02944%205.02944%201%2010%201Z'%20stroke='%2301D06F'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.36281%2010.804C6.14585%2010.587%206.14585%2010.2353%206.36281%2010.0183L6.75564%209.62546C6.9726%209.4085%207.32436%209.4085%207.54132%209.62546L8.75726%2010.8414L7.57875%2012.0199L6.36281%2010.804Z'%20fill='%2301D06F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.57812%2012.0205L12.5229%207.0757C12.7399%206.85874%2013.0917%206.85874%2013.3086%207.0757L13.7014%207.46853C13.9184%207.68549%2013.9184%208.03725%2013.7014%208.25421L9.14947%2012.8062C8.93252%2013.0231%208.58076%2013.0231%208.3638%2012.8062L7.57812%2012.0205Z'%20fill='%2301D06F'/%3e%3c/svg%3e",InfoDisabledIcon="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%23444444'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205C9%204.44772%209.44772%204%2010%204C10.5523%204%2011%204.44772%2011%205V11C11%2011.5523%2010.5523%2012%2010%2012C9.44772%2012%209%2011.5523%209%2011V5Z'%20fill='%236A6A6A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%2015C9%2014.4477%209.44772%2014%2010%2014C10.5523%2014%2011%2014.4477%2011%2015C11%2015.5523%2010.5523%2016%2010%2016C9.44772%2016%209%2015.5523%209%2015Z'%20fill='%236A6A6A'/%3e%3c/svg%3e",InfoSmallIcon="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%234980F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%205C9%204.44772%209.44772%204%2010%204C10.5523%204%2011%204.44772%2011%205V11C11%2011.5523%2010.5523%2012%2010%2012C9.44772%2012%209%2011.5523%209%2011V5Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%2015C9%2014.4477%209.44772%2014%2010%2014C10.5523%2014%2011%2014.4477%2011%2015C11%2015.5523%2010.5523%2016%2010%2016C9.44772%2016%209%2015.5523%209%2015Z'%20fill='white'/%3e%3c/svg%3e",Label$5=ea=>{const{children:na,tooltip:{content:ra,options:oa,hitComponent:aa=jsxRuntimeExports.jsx(IconButton,{theme:ea.theme,children:jsxRuntimeExports.jsx(Icon$4,{shape:CircleInfoIcon})})}={},tooltipLocation:sa="after",...la}=ea,ca=ra&&jsxRuntimeExports.jsx(StyledTooltipWrap,{tooltipProps:oa,tooltip:ra,children:aa});return jsxRuntimeExports.jsxs("label",{...la,children:[sa==="before"&&ca,na,sa==="after"&&ca]})},theme$3S=withTheme(scheme$1x),Label$6=dt$1(Label$5).withConfig({displayName:"Label",componentId:"sc-1sv8pst-0"})(["display:",";margin-bottom:5px;","{position:relative;top:2px;display:inline-block;"," ","{padding:0;vertical-align:top;height:auto;}}"," ",""],ea=>ea.display||"inline-block",StyledTooltipWrap,ea=>ea.tooltipLocation==="before"?lt$1(["margin-right:4px;"]):lt$1(["margin-left:4px;"]),IconButton,theme$3S.colors(ea=>lt$1(["color:",";"],ea.color)),theme$3S.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.fontSize,ea.fontWeight))),Shortcut$1=dt$1(Label$6).withConfig({displayName:"MenuItem__Shortcut",componentId:"sc-18ruxoy-0"})(["margin-bottom:0;margin-left:5px;"]),StyledMenuItem=({shortcut:ea,children:na,disabled:ra,...oa})=>jsxRuntimeExports.jsxs(MenuItem$1,{disabled:ra,...oa,children:[na,!ra&&ea&&jsxRuntimeExports.jsx(Shortcut$1,{children:ea})]}),theme$3R=withTheme(scheme$1z),MenuItem=dt$1(StyledMenuItem).withConfig({displayName:"MenuItem",componentId:"sc-18ruxoy-1"})([`display:flex;align-items:center;justify-content:space-between;font-weight:400;&.szh-menu__item--checked{position:relative;&:after{content:'';display:inline-block;width:6px;height:5px;margin-left:10px;transform:translateY(-50%);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%0Awidth='7.071'%0Aheight='5.657'%0A%3E%3Cg fill='%23fff'%3E%3Cpath data-name='Rectangle 1868' d='m0 3.535.707-.707 1.414 1.414-.707.707z' /%3E%3Cpath data-name='Rectangle 1869' d='m1.414 4.949 4.95-4.95.707.707-4.95 4.95z' /%3E%3C/g%3E%3C/svg%3E");}}`," ",""],theme$3R.colors(ea=>lt$1(["color:",";&.szh-menu__item--hover{background-color:",";color:",";}&.szh-menu__item--disabled{color:",";}"],ea.color,ea.hoverBg,ea.hoverText,ea.disabledColor)),theme$3R.sizes((ea,{size:na})=>lt$1(["font-size:",";padding:",";"],ea[na].fontSize,ea[na].padding))),StyledSubMenu=ea=>jsxRuntimeExports.jsx(SubMenu$1,{...ea}),theme$3Q=withTheme(scheme$1z),SubMenu=dt$1(StyledSubMenu).withConfig({displayName:"SubMenu",componentId:"sc-xbme89-0"})([`.szh-menu__item--submenu{display:flex;align-items:center;justify-content:space-between;font-weight:400;&:after{content:'';display:inline-block;width:5px;height:8px;margin-left:10px;background-image:url("data:image/svg+xml,%3Csvg%0Axmlns='http://www.w3.org/2000/svg'%0Awidth='5.055'%0Aheight='8.484'%0A%3E%3Cg data-name='dropdown arrow'%3E%3Cpath data-name='Subtraction 75' d='M5.055 4.24.811 8.479 0 7.668l3.435-3.43L.001.803l.81-.81 4.244 4.243Z' fill='%23fff' /%3E%3C/g%3E%3C/svg%3E");}}`," ",""],theme$3Q.colors(ea=>lt$1([".szh-menu__item--submenu{color:",";&.szh-menu__item--hover{background-color:",";color:",";}&.szh-menu__item--disabled{color:",";}}"],ea.color,ea.hoverBg,ea.hoverText,ea.disabledColor)),theme$3Q.sizes((ea,{size:na})=>lt$1([".szh-menu__item--submenu{font-size:",";padding:",";}"],ea[na].fontSize,ea[na].padding))),StyledMenu=ea=>jsxRuntimeExports.jsx(ControlledMenu$1,{...ea}),theme$3P=withTheme(scheme$1z),ControlledMenu=dt$1(StyledMenu).withConfig({displayName:"ControlledMenu",componentId:"sc-1dvtfhw-0"})([".szh-menu__submenu .szh-menu{min-width:auto;}"," ",""],theme$3P.colors(ea=>lt$1([".szh-menu{background:",";border:1px solid ",";box-shadow:2px 10px 25px ",";}"],ea.background,ea.border,ea.shadow)),theme$3P.sizes((ea,{size:na})=>lt$1([".szh-menu{border-radius:",";padding:",";min-width:",";}"],ea.borderRadius,ea[na].wrapperPadding,ea.minWidth))),Field=React.memo(ea=>{const{className:na,label:ra,children:oa,tooltip:aa,styles:sa}=ea;return jsxRuntimeExports.jsxs("div",{className:na,style:sa,children:[ra&&jsxRuntimeExports.jsxs(Label$6,{display:"block",tooltip:aa,children:[ra,jsxRuntimeExports.jsx("span",{style:{color:"transparent"},children:" "})]}),oa]})}),Field$1=dt$1(Field).withConfig({displayName:"Field",componentId:"sc-15hx25i-0"})(["position:relative;"]),OCSpacer$1=dt$1.div.withConfig({displayName:"Driver__OCSpacer",componentId:"sc-myh3h7-0"})(["flex-basis:100%;"]),OptionControlDriver$1=React.memo(ea=>{const{control:na,controlProps:ra,selector:oa=()=>null,dispatcher:aa,dependency:sa=()=>!0,disabledWhen:la=()=>!1,action:ca,valueFilter:ua,onChangeValueFilter:da,equalCheck:pa=!0,locked:ha,callChangeOnMount:ga=!1,fieldComponent:fa=Field$1,onVisibilityChange:ma,debug:va,defaultValue:xa,maxWidth:ya,modifier:Aa,styles:Ca,clearAfter:Sa,...wa}=ea,ba=useDispatchAndToHistory(!1,aa?.recordHistory);let Ea=useSelector(oa,equal)??xa;const $a=useSelector(sa),Ma=useSelector(la);ua&&(Ea=ua(Ea)),va&&console.log(`options #${wa.id} - rendered | value:`,Ea);const Ia=reactExports.useCallback(Oa=>{if(!aa&&!ca||ha||!$a)return;let Da=Oa;if(da&&(Da=da(Da)),pa&&equal(Da,Ea))return;va&&console.log(`options #${wa.id} - changed:`,Da);const{action:Ta=ca,actionPayload:_a}=aa||{},La={value:Da,..._a};ba(Ta(La)),Aa?.(La,ba)},[ca,va,$a,aa,pa,ha,Aa,da,wa.id,ba,Ea]);return reactExports.useEffect(()=>{ga&&$a&&Ia(Ea)},[!$a]),reactExports.useLayoutEffect(()=>{ma?.(wa.id,$a)},[wa.id,$a,ma]),$a?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(fa,{styles:{...Ca,maxWidth:ya},...wa,children:jsxRuntimeExports.jsx(na,{value:Ea,onChange:Ia,disabled:Ma,...ra})}),Sa&&jsxRuntimeExports.jsx(OCSpacer$1,{style:{flexBasis:Sa===!0?"100%":`${Sa}%`}})]}):null}),OptionControlDriver$2=dt$1(OptionControlDriver$1).withConfig({displayName:"Driver",componentId:"sc-myh3h7-1"})([""]),defaultColors$20={background:"#696969"},dividerColors={dark:defaultColors$20},defaultSizing$1M={width:"1px",height:"1px;"},dividerSizes={default:defaultSizing$1M},divider={colors:dividerColors,sizes:dividerSizes},theme$3O=withTheme(divider),Divider=dt$1.div.withConfig({displayName:"Divider",componentId:"sc-1gqcf71-0"})(["",";",";"],theme$3O.colors(ea=>lt$1(["background:",";"],ea.background)),theme$3O.sizes((ea,na)=>lt$1(["",""],na.type==="horizontal"?lt$1(["width:100%;height:",";"],ea.height):lt$1(["height:100%;width:",";"],ea.width))));Divider.defaultProps={type:"horizontal"};const BadgeSymbol=ea=>{const{className:na,symbol:ra,isHover:oa}=ea;return jsxRuntimeExports.jsx("div",{className:na,children:React.cloneElement(ra,{isHover:oa})})},BadgeSymbol$1=dt$1(BadgeSymbol).withConfig({displayName:"BadgeSymbol",componentId:"sc-ave253-0"})(["display:inline-block;flex-shrink:0;line-height:100%;"]),BadgeSymbolsWrapper=React.memo(ea=>{const{className:na,position:ra,symbols:oa,isHover:aa}=ea,sa=Array.isArray(oa)?oa:[oa],la=reactExports.useMemo(()=>ra||{top:"0",left:"0"},[ra]),ca=reactExports.useCallback((ua,da)=>jsxRuntimeExports.jsx(BadgeSymbol$1,{symbol:ua,isHover:aa},`symbol${da}`),[aa]);return jsxRuntimeExports.jsx("div",{className:`dp-badge ${na}`,style:{...la},children:sa.map(ca)})}),BadgeSymbolsWrapper$1=dt$1(BadgeSymbolsWrapper).withConfig({displayName:"BadgeSymbolsWrapper",componentId:"sc-sdxytc-0"})(["display:inline-flex;align-items:center;position:absolute;pointer-events:none;z-index:1;gap:5px;"]),Badge=({className:ea,children:na,symbolsData:ra,hover:oa,onClick:aa,visible:sa=!0})=>{const[la,ca]=reactExports.useState(oa),ua=reactExports.useCallback(()=>{oa||ca(!0)},[oa]),da=reactExports.useCallback(()=>{oa||ca(!1)},[oa]),pa=reactExports.useCallback(ga=>{aa?.(ga)},[aa]);if(!ra)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:na});const ha=Array.isArray(ra)?ra:[ra];return sa?jsxRuntimeExports.jsxs("div",{className:`dp-with-badge ${ea}`,onMouseEnter:ua,onMouseLeave:da,onClick:pa,children:[na,ha?.map((ga,fa)=>jsxRuntimeExports.jsx(BadgeSymbolsWrapper$1,{...ga,isHover:la},`badgeWrapper${fa}`))]}):jsxRuntimeExports.jsx("div",{className:ea,children:na})},WithBadge=dt$1(Badge).withConfig({displayName:"WithBadge",componentId:"sc-1q5161d-0"})(["position:relative;",";",""],ea=>ea.onClick&&ea.visible!==!1&&lt$1(["cursor:pointer;"]),ea=>ea.overlay&&ea.visible!==!1&&lt$1(["&::after{content:'';position:absolute;inset:0;backdrop-filter:grayscale(1);background:",";}"],ea.overlay)),QuickTipContext=reactExports.createContext({container:document.createElement("div"),open:!1,previewData:null,targetRect:null,openQuickTip:()=>{},closeQuickTip:()=>{}}),tipIconSrc="data:image/gif;base64, ",TipIcon=ea=>{const{className:na,onClick:ra}=ea;return jsxRuntimeExports.jsx("div",{className:na,onClick:ra,children:jsxRuntimeExports.jsx("img",{src:tipIconSrc,alt:"Tip"})})},TipIcon$1=dt$1(TipIcon).withConfig({displayName:"TipIcon",componentId:"sc-3i5er-0"})(["cursor:pointer;overflow:hidden;border-radius:50%;width:16px;position:relative;top:-1px;"]),FieldsetLabel=dt$1(Label$6).withConfig({displayName:"BaseFieldset__FieldsetLabel",componentId:"sc-y2wq22-0"})([""]),FieldsetDivider=dt$1(Divider).withConfig({displayName:"BaseFieldset__FieldsetDivider",componentId:"sc-y2wq22-1"})([""]),FieldsetRow=dt$1.div.withConfig({displayName:"BaseFieldset__FieldsetRow",componentId:"sc-y2wq22-2"})([""]),BaseFieldset$1=React.memo(ea=>{const{className:na,children:ra,border:oa,onBadgeClick:aa,badgeSymbol:sa,locked:la,label:ca,visibleControls:ua,quickTip:da,badgePosition:pa}=ea,ha=reactExports.useRef(null),{openQuickTip:ga,closeQuickTip:fa}=reactExports.useContext(QuickTipContext),ma=da?.options?.actionType||"hover",va=reactExports.useCallback(()=>{da&&ha.current&&ga({...da,upgradeBtn:la},ha.current.getBoundingClientRect())},[la,ga,da]),xa=reactExports.useCallback(()=>{fa()},[fa]),ya=reactExports.useMemo(()=>!da||da.options?.showOnLocked&&!la?{}:ma==="hover"?{onMouseEnter:va,onMouseLeave:xa}:{onClick:va},[da,la,ma,va,xa]),Aa=reactExports.useMemo(()=>{const Sa=pa||{top:`${oa&&["both","top"].includes(oa)?"15":"0"}px`,right:"5px"},wa=[...Array.isArray(sa)?sa:[sa],...da?[jsxRuntimeExports.jsx(TipIcon$1,{})]:[]].filter(ba=>!!ba);return{position:Sa,symbols:wa}},[pa,sa,oa,da]);if(ua?.length===0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ra});let Ca=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oa&&["both","top"].includes(oa)&&jsxRuntimeExports.jsx(FieldsetDivider,{}),ca&&jsxRuntimeExports.jsx(FieldsetLabel,{display:"block",children:ca}),ra,oa&&["both","bottom"].includes(oa)&&jsxRuntimeExports.jsx(FieldsetDivider,{})]});return la&&sa&&(Ca=jsxRuntimeExports.jsx(WithBadge,{onClick:aa,symbolsData:Aa,overlay:"black",children:Ca})),jsxRuntimeExports.jsx("div",{className:na,ref:ha,...ya,children:Ca})}),BaseFieldset$2=dt$1(BaseFieldset$1).withConfig({displayName:"BaseFieldset",componentId:"sc-y2wq22-3"})(["position:relative;","{width:100%;&:after{background-color:rgba(54,54,54,0.6);z-index:20;","}}","{letter-spacing:1px;text-transform:uppercase;font-weight:600;}"],WithBadge,({border:ea})=>lt$1(["top:",";bottom:",";"],ea==="top"||ea==="both"?"16px":"0px",ea==="bottom"||ea==="both"?"16px":"0px"),FieldsetLabel),defaultColors$1$={background:"rgba(0, 0, 0, 0.8)",label:"#AAAAAA"},lightColors$4={background:"#f9f9fb",label:"#AAAAAA"},colors$1$={dark:defaultColors$1$,light:lightColors$4},defaultSizing$1L={blur:"10px",label:{fontSize:"15px"}},sizes$1$={default:defaultSizing$1L},scheme$1w=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1$,sizes:sizes$1$},Symbol.toStringTag,{value:"Module"}));var classnames$1={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,function(ea){(function(){var na={}.hasOwnProperty;function ra(){for(var sa="",la=0;la<arguments.length;la++){var ca=arguments[la];ca&&(sa=aa(sa,oa(ca)))}return sa}function oa(sa){if(typeof sa=="string"||typeof sa=="number")return sa;if(typeof sa!="object")return"";if(Array.isArray(sa))return ra.apply(null,sa);if(sa.toString!==Object.prototype.toString&&!sa.toString.toString().includes("[native code]"))return sa.toString();var la="";for(var ca in sa)na.call(sa,ca)&&sa[ca]&&(la=aa(la,ca));return la}function aa(sa,la){return la?sa?sa+" "+la:sa+la:sa}ea.exports?(ra.default=ra,ea.exports=ra):window.classNames=ra})()}(classnames$1)),classnames$1.exports}var classnamesExports=requireClassnames();const classnames=getDefaultExportFromCjs(classnamesExports),AppearWrap=ea=>{const{visible:na=!0,conditionalRender:ra=!0,children:oa,onHide:aa,onShow:sa,fadeMode:la,...ca}=ea,[ua,da]=reactExports.useState(null),[pa,ha]=reactExports.useState(),[ga,fa]=reactExports.useState();reactExports.useEffect(()=>{da(na),na&&ha(!1)},[na]);const ma=va=>{va.propertyName==="opacity"&&(ua?sa?.():(fa(!1),ha(!0),aa?.()))};return reactExports.useLayoutEffect(()=>{ua===!1&&ga===!1&&fa(!0)},[ga,ua]),pa&&ra?null:jsxRuntimeExports.jsx("div",{...ca,className:classnames(ca.className,{"dp-is-visible":ua}),onTransitionEnd:ra?ma:void 0,children:!ra||na||ga?oa:void 0})},AppearWrap$1=dt$1(AppearWrap).withConfig({displayName:"AppearWrap",componentId:"sc-11vohpb-0"})(["width:100%;height:100%;",""],({duration:ea="300ms",delay:na="0ms",fadeMode:ra="both",transform:oa})=>lt$1(["&:not(.dp-is-visible){visibility:hidden;opacity:0;"," ","}&.dp-is-visible{visibility:visible;opacity:1;transform:none;","}"],oa?`transform: ${oa};`:"",ra==="both"||ra==="out"?`transition: all ${ea} ${na};`:"",ra==="both"||ra==="in"?`transition: all ${ea} ${na};`:"")),LoadingContainer=dt$1(AppearWrap$1).withConfig({displayName:"LoadingSplash__LoadingContainer",componentId:"sc-1yhorgi-0"})([""]),ContentWrapper$4=dt$1(AppearWrap$1).withConfig({displayName:"LoadingSplash__ContentWrapper",componentId:"sc-1yhorgi-1"})([""]),LoadingSplash=ea=>{const{className:na,visible:ra=!1,label:oa,style:aa,overlay:sa,children:la,loadingSize:ca="medium",fadeMode:ua="both"}=ea;return jsxRuntimeExports.jsxs("div",{className:na,style:aa,children:[jsxRuntimeExports.jsxs(LoadingContainer,{className:"depicter-loading-splash",visible:ra,fadeMode:ua,children:[oa&&jsxRuntimeExports.jsx(Label$6,{children:oa}),jsxRuntimeExports.jsx(DotSpinner$1,{size:ca})]}),jsxRuntimeExports.jsx(ContentWrapper$4,{conditionalRender:!sa,visible:!ra,fadeMode:ua,children:la})]})},theme$3N=withTheme(scheme$1w);LoadingSplash.defaultProps={background:!1};const LoadingSplash$1=dt$1(LoadingSplash).withConfig({displayName:"LoadingSplash",componentId:"sc-1yhorgi-2"})(["position:relative;width:100%;height:100%;","{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;top:0;left:0;background:inherit;z-index:3;","{margin-bottom:30px;}}"," ",""],LoadingContainer,Label$6,theme$3N.colors((ea,{background:na})=>lt$1(["background-color:",";"," ","{color:",";}"],na?ea.background:"inherit",LoadingContainer,Label$6,ea.label)),theme$3N.sizes((ea,{overlay:na,blur:ra})=>lt$1(["","{"," ","{font-size:",";}}"],LoadingContainer,na&&ra&&lt$1(["backdrop-filter:blur(",");"],ea.blur),Label$6,ea.label.fontSize))),getElementSize=(ea,na)=>{switch(na){case"computed":const ra=window.getComputedStyle(ea);return{width:parseFloat(ra.width),height:parseFloat(ra.height)};case"client":return{width:ea.clientWidth,height:ea.clientHeight};case"bounding":default:const{width:oa,height:aa}=ea.getBoundingClientRect();return{width:oa,height:aa}}},calcFocalPointMediaPosition$1=(ea,na,ra,oa,aa,sa,la=!1)=>{(la||ea<aa||na<sa)&&({width:ea,height:na}=fitToBox$1("cover",aa,sa,ea,na,0));const ca={x:ea*ra-aa/2,y:na*oa-sa/2};return ca.x=Math.min(ea-aa,Math.max(0,ca.x)),ca.y=Math.min(na-sa,Math.max(0,ca.y)),{position:ca,mediaSize:{width:ea,height:na}}},useCalcFocalPointMediaPosition=(ea=!0,na,ra,oa,aa={x:.5,y:.5},sa)=>{const[la,ca]=reactExports.useState(),[ua,da]=reactExports.useState(oa);return reactExports.useLayoutEffect(()=>{if(!ea||!ra.current)return;const pa=getElementSize(ra.current,"computed");if(!oa&&!na.current)return;const ha=oa||fitToBox$1("cover",pa.width,pa.height,na.current.clientWidth,na.current.clientHeight,-1),{position:ga,mediaSize:fa}=calcFocalPointMediaPosition$1(ha.width,ha.height,aa.x,aa.y,pa.width,pa.height);shallowEqual$2(ga,la)||ca(ga),shallowEqual$2(ua,fa)||da(fa),shallowEqual$2(oa,fa)||sa?.(fa,!shallowEqual$2(pa,fa))}),[la,ua]},Icon$2=dt$1.img.withConfig({displayName:"NoticeOverlay__Icon",componentId:"sc-tvemmg-0"})(["max-width:52px;width:30%;"]),NoticeOverlay=ea=>{const{className:na,iconSrc:ra,label:oa,hideLabelOn:aa=100}=ea,[sa,la]=reactExports.useState(!1),ca=reactExports.useRef(null);return reactExports.useEffect(()=>{if(ca.current&&oa){const ua=aa>=ca.current.clientWidth;ua!==sa&&la(ua)}}),jsxRuntimeExports.jsxs("div",{ref:ca,className:na,children:[ra&&jsxRuntimeExports.jsx(Icon$2,{src:ra,alt:""}),oa&&!sa&&jsxRuntimeExports.jsx("span",{children:oa})]})},NoticeOverlay$1=dt$1(NoticeOverlay).withConfig({displayName:"NoticeOverlay",componentId:"sc-tvemmg-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-width:50px;background:rgba(0,0,0,0.34);color:white;align-items:center;justify-content:center;font-size:16px;font-weight:500;text-align:center;span{margin-top:15px;}"]),Img=dt$1.img.withConfig({displayName:"ImageBox__Img",componentId:"sc-oso2ho-0"})([""]),ImageBox=React.forwardRef((ea,na)=>{const{className:ra,src:oa=null,width:aa,height:sa,alt:la="",onLoad:ca,onError:ua,style:da,useAspect:pa=!1,loadingType:ha="none",fitMode:ga,crop:fa,onImageResize:ma,displayLoadFailed:va=!0,...xa}=ea,{t:ya}=useTranslation(),Aa=reactExports.useRef(null),Ca=reactExports.useRef(null),Sa=reactExports.useRef(oa),wa={...da};pa||(wa.width=typeof aa=="number"?`${aa}px`:aa,wa.height=typeof sa=="number"?`${sa}px`:sa),ha==="shimmer"&&(wa.animationDelay=`${Math.round(Math.random()*1e3)}ms`);const[ba,Ea]=reactExports.useState(ha!=="none"?"loading":"loaded");reactExports.useLayoutEffect(()=>{!Aa.current?.complete&&!equal(Sa.current,oa)&&(ba==="failed"||ba==="loaded")&&(Ea("loading"),Sa.current=oa)},[ba,oa]);const $a=reactExports.useCallback(()=>{ca?.(Aa?.current||void 0),Ea("loaded")},[ca]),Ma=reactExports.useCallback(()=>{ua?.(),Ea("failed")},[ua]),[Ia,Oa]=useCalcFocalPointMediaPosition(ba==="loaded"&&ga==="crop",Aa,Ca,fa?.mediaSize,fa?.focalPoint,ma),Da=reactExports.useCallback(Na=>{assignRef$1(Na,na),Ca.current=Na},[na]),Ta=reactExports.useCallback(Na=>{Aa.current=Na},[]);reactExports.useEffect(()=>{Aa.current&&Aa.current.complete&&$a()},[$a]);const _a={};ga==="crop"&&Ia&&(_a.top=`${-Ia.y}px`,_a.left=`${-Ia.x}px`),ga==="crop"&&Oa&&(_a.width=`${Oa.width}px`,_a.height=`${Oa.height}px`);const La=jsxRuntimeExports.jsx(Img,{style:_a,src:typeof oa=="string"?oa:oa?.src,srcSet:typeof oa=="string"?void 0:oa?.set.join(","),alt:la,ref:Ta,onLoad:$a,onError:Ma,draggable:!1,...xa});return jsxRuntimeExports.jsxs("div",{className:`${ra} depicter-status-${ba}`,style:wa,ref:Da,children:[ha!=="symbol"&&ba!=="failed"&&La,ha==="symbol"&&ba!=="failed"&&jsxRuntimeExports.jsx(LoadingSplash$1,{overlay:!0,visible:ba==="loading",background:ba==="loading",children:La}),ba==="failed"&&va&&jsxRuntimeExports.jsx(NoticeOverlay$1,{label:ya("Oops! Image loading failed."),iconSrc:LoadingFailedIcon,hideLabelOn:300}),ba==="failed"&&jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:`<!-- Load failed: ${typeof oa=="string"?oa:oa?.src} -->`}})]})}),shimmerFrame=mt$1(["from{background-color:rgba(0,0,0,0);}to{background-color:rgba(0,0,0,0.3);}"]),ImageBox$1=dt$1(ImageBox).withConfig({displayName:"ImageBox",componentId:"sc-oso2ho-1"})(["overflow:hidden;&.depicter-status-loading{","}","{transition:opacity 300ms,filter 300ms;position:relative;max-width:none;width:100%;height:100%;opacity:1;"," ","}",""],({loadingType:ea="none"})=>ea==="shimmer"?lt$1(["&::after{content:'';display:block;width:100%;height:100%;position:absolute;top:0;left:0;animation:"," 0.5s alternate infinite;animation-delay:inherit !important;}","{opacity:0;}"],shimmerFrame,Img):lt$1(["","{filter:blur(5px);}"],Img),Img,({fitMode:ea})=>ea&&ea!=="crop"&&lt$1(["object-fit:",";"],ea),ea=>ea.position&&lt$1(["object-position:",";"],ea.position),({useAspect:ea,width:na,height:ra})=>ea?lt$1(["&::before{content:'';display:block;width:100%;padding-top:calc(("," / ",") * 100%);}",",","{position:absolute;top:0;left:0;}"],ra,na,Img,NoticeOverlay$1):""),VideoBox=reactExports.forwardRef((ea,na)=>{const{className:ra,src:oa,width:aa,height:sa,poster:la,loop:ca=!0,muted:ua=!0,autoPlay:da=!1,playState:pa=ea.autoPlay?"play":"stop",onCanPlay:ha,onPause:ga,onPlay:fa,playOnHover:ma,preload:va="auto"}=ea,xa={width:aa,height:sa},[ya,Aa]=reactExports.useState(!!la),Ca=reactExports.useRef(null);reactExports.useEffect(()=>{Aa(!!la)},[la,oa]),reactExports.useEffect(()=>{if(Ca.current){const ba=Ca.current;switch(pa){case"play":ba.autoplay=!0;try{ba.play()}catch{}break;case"pause":ba.autoplay=!1,ba.pause();break;case"stop":default:ba.autoplay=!1,ba.pause(),ba.currentTime=0}}},[pa]);const Sa={src:oa,muted:ua,autoPlay:da,loop:ca,preload:va,onPause:ba=>{ga&&ga(ba),Aa(!!la)},onPlay:ba=>{fa&&fa(ba),Aa(!1)},onCanPlay:ha,onMouseEnter:()=>{ma&&Ca.current?.play()},onMouseLeave:()=>{ma&&Ca.current&&(Ca.current.pause(),Ca.current.currentTime=0)}},wa=reactExports.useCallback(ba=>{ba&&assignRef$1(ba,na),Ca.current=ba},[na]);return jsxRuntimeExports.jsxs("div",{className:ra,style:xa,children:[!!la&&jsxRuntimeExports.jsx(ImageBox$1,{style:{display:ya?"block":"none"},...la}),!!oa&&jsxRuntimeExports.jsx("video",{style:{opacity:ya?0:1},ref:wa,...Sa})]})}),VideoBox$1=dt$1(VideoBox).withConfig({displayName:"VideoBox",componentId:"sc-1bm2zgg-0"})(["overflow:hidden;position:relative;video{background:black;max-width:none;width:100%;height:100%;object-fit:",";object-position:",";}& > ","{width:100%;height:100%;position:absolute;top:0;left:0;z-index:1;}"],ea=>ea.fitMode||"none",ea=>ea.position||"center",ImageBox$1),ModalContext=React.createContext({modalsStack:[],setModalsStack:()=>{}}),useModal=()=>{const{setModalsStack:ea,modalsStack:na}=reactExports.useContext(ModalContext),ra=na.length?na[na.length-1]:{id:""},oa=reactExports.useCallback(sa=>{const la=[...na],ca=la.findIndex(ua=>ua.id===sa);ca>=0&&la.splice(ca,1),ea(la)},[ea,na]),aa=reactExports.useCallback((sa,la=!0)=>{ea(ca=>la?uniqBy([...ca,...sa],"id"):[...ca,...sa])},[ea]);return{activeModal:ra,closeModal:oa,addToModalsStack:aa}},PosthogContext=reactExports.createContext({enabled:!1});var t$1,i$1=typeof window<"u"?window:void 0,e$1=typeof globalThis<"u"?globalThis:i$1,r$2=Array.prototype,s$1=r$2.forEach,n$1=r$2.indexOf,o$1=e$1?.navigator,a$1=e$1?.document,l$1=e$1?.location,h=e$1?.fetch,u=e$1!=null&&e$1.XMLHttpRequest&&"withCredentials"in new e$1.XMLHttpRequest?e$1.XMLHttpRequest:void 0,d$1=e$1?.AbortController,v=o$1?.userAgent,c$1=i$1??{},f={DEBUG:!1,LIB_VERSION:"1.239.1"},p="$copy_autocapture",g=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];(function(ea){ea.GZipJS="gzip-js",ea.Base64="base64"})(t$1||(t$1={}));var _=["fatal","error","warning","log","info","debug"];function m(ea,na){return ea.indexOf(na)!==-1}var b=function(ea){return ea.trim()},w=function(ea){return ea.replace(/^\$/,"")},y=Array.isArray,S=Object.prototype,$=S.hasOwnProperty,k=S.toString,x=y||function(ea){return k.call(ea)==="[object Array]"},E=ea=>typeof ea=="function",I=ea=>ea===Object(ea)&&!x(ea),P=ea=>{if(I(ea)){for(var na in ea)if($.call(ea,na))return!1;return!0}return!1},R=ea=>ea===void 0,T=ea=>k.call(ea)=="[object String]",M=ea=>T(ea)&&ea.trim().length===0,C=ea=>ea===null,O=ea=>R(ea)||C(ea),F=ea=>k.call(ea)=="[object Number]",A=ea=>k.call(ea)==="[object Boolean]",D=ea=>ea instanceof FormData,j=ea=>m(g,ea),L=ea=>{var na={t:function(ra){if(i$1&&(f.DEBUG||c$1.POSTHOG_DEBUG)&&!R(i$1.console)&&i$1.console){for(var oa=("__rrweb_original__"in i$1.console[ra])?i$1.console[ra].__rrweb_original__:i$1.console[ra],aa=arguments.length,sa=new Array(aa>1?aa-1:0),la=1;la<aa;la++)sa[la-1]=arguments[la];oa(ea,...sa)}},info:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];na.t("log",...oa)},warn:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];na.t("warn",...oa)},error:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];na.t("error",...oa)},critical:function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];console.error(ea,...oa)},uninitializedWarning:ra=>{na.error("You must initialize PostHog before calling "+ra)},createLogger:ra=>L(ea+" "+ra)};return na},N=L("[PostHog.js]"),z=N.createLogger,U=z("[ExternalScriptsLoader]"),q=(ea,na,ra)=>{if(ea.config.disable_external_dependency_loading)return U.warn(na+" was requested but loading of external scripts is disabled."),ra("Loading of external scripts is disabled");var oa=a$1?.querySelectorAll("script");if(oa){for(var aa=0;aa<oa.length;aa++)if(oa[aa].src===na)return ra()}var sa=()=>{if(!a$1)return ra("document not found");var la=a$1.createElement("script");if(la.type="text/javascript",la.crossOrigin="anonymous",la.src=na,la.onload=da=>ra(void 0,da),la.onerror=da=>ra(da),ea.config.prepare_external_dependency_script&&(la=ea.config.prepare_external_dependency_script(la)),!la)return ra("prepare_external_dependency_script returned null");var ca,ua=a$1.querySelectorAll("body > script");ua.length>0?(ca=ua[0].parentNode)==null||ca.insertBefore(la,ua[0]):a$1.body.appendChild(la)};a$1!=null&&a$1.body?sa():a$1?.addEventListener("DOMContentLoaded",sa)};function B(){return B=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},B.apply(this,arguments)}function H(ea,na){if(ea==null)return{};var ra,oa,aa={},sa=Object.keys(ea);for(oa=0;oa<sa.length;oa++)ra=sa[oa],na.indexOf(ra)>=0||(aa[ra]=ea[ra]);return aa}c$1.__PosthogExtensions__=c$1.__PosthogExtensions__||{},c$1.__PosthogExtensions__.loadExternalDependency=(ea,na,ra)=>{var oa="/static/"+na+".js?v="+ea.version;if(na==="remote-config"&&(oa="/array/"+ea.config.token+"/config.js"),na==="toolbar"){var aa=3e5;oa=oa+"&t="+Math.floor(Date.now()/aa)*aa}var sa=ea.requestRouter.endpointFor("assets",oa);q(ea,sa,ra)},c$1.__PosthogExtensions__.loadSiteApp=(ea,na,ra)=>{var oa=ea.requestRouter.endpointFor("api",na);q(ea,oa,ra)};var W={};function G(ea,na,ra){if(x(ea)){if(s$1&&ea.forEach===s$1)ea.forEach(na,ra);else if("length"in ea&&ea.length===+ea.length){for(var oa=0,aa=ea.length;oa<aa;oa++)if(oa in ea&&na.call(ra,ea[oa],oa)===W)return}}}function J(ea,na,ra){if(!O(ea)){if(x(ea))return G(ea,na,ra);if(D(ea)){for(var oa of ea.entries())if(na.call(ra,oa[1],oa[0])===W)return}else for(var aa in ea)if($.call(ea,aa)&&na.call(ra,ea[aa],aa)===W)return}}var V=function(ea){for(var na=arguments.length,ra=new Array(na>1?na-1:0),oa=1;oa<na;oa++)ra[oa-1]=arguments[oa];return G(ra,function(aa){for(var sa in aa)aa[sa]!==void 0&&(ea[sa]=aa[sa])}),ea},K=function(ea){for(var na=arguments.length,ra=new Array(na>1?na-1:0),oa=1;oa<na;oa++)ra[oa-1]=arguments[oa];return G(ra,function(aa){G(aa,function(sa){ea.push(sa)})}),ea};function Y(ea){for(var na=Object.keys(ea),ra=na.length,oa=new Array(ra);ra--;)oa[ra]=[na[ra],ea[na[ra]]];return oa}var X=function(ea){try{return ea()}catch{return}},Q=function(ea){return function(){try{for(var na=arguments.length,ra=new Array(na),oa=0;oa<na;oa++)ra[oa]=arguments[oa];return ea.apply(this,ra)}catch(aa){N.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),N.critical(aa)}}},Z=function(ea){var na={};return J(ea,function(ra,oa){(T(ra)&&ra.length>0||F(ra))&&(na[oa]=ra)}),na};function tt(ea,na){return ra=ea,oa=sa=>T(sa)&&!C(na)?sa.slice(0,na):sa,aa=new Set,function sa(la,ca){return la!==Object(la)?oa?oa(la,ca):la:aa.has(la)?void 0:(aa.add(la),x(la)?(ua=[],G(la,da=>{ua.push(sa(da))})):(ua={},J(la,(da,pa)=>{aa.has(da)||(ua[pa]=sa(da,pa))})),ua);var ua}(ra);var ra,oa,aa}var it=["herokuapp.com","vercel.app","netlify.app"];function et(ea){var na=ea?.hostname;if(!T(na))return!1;var ra=na.split(".").slice(-2).join(".");for(var oa of it)if(ra===oa)return!1;return!0}function rt(ea,na){for(var ra=0;ra<ea.length;ra++)if(na(ea[ra]))return ea[ra]}function st(ea,na,ra,oa){var{capture:aa=!1,passive:sa=!0}=oa??{};ea?.addEventListener(na,ra,{capture:aa,passive:sa})}var nt="$people_distinct_id",ot="__alias",at="__timers",lt="$autocapture_disabled_server_side",ht="$heatmaps_enabled_server_side",ut="$exception_capture_enabled_server_side",dt="$web_vitals_enabled_server_side",vt="$dead_clicks_enabled_server_side",ct="$web_vitals_allowed_metrics",ft="$session_recording_enabled_server_side",pt="$console_log_recording_enabled_server_side",gt="$session_recording_network_payload_capture",_t="$session_recording_masking",mt="$session_recording_canvas_recording",bt="$replay_sample_rate",wt="$replay_minimum_duration",yt="$replay_script_config",St="$sesid",$t="$session_is_sampled",kt="$session_recording_url_trigger_activated_session",xt="$session_recording_event_trigger_activated_session",Et="$enabled_feature_flags",It="$early_access_features",Pt="$feature_flag_details",Rt="$stored_person_properties",Tt="$stored_group_properties",Mt="$surveys",Ct="$surveys_activated",Ot="$flag_call_reported",Ft="$user_state",At="$client_session_props",Dt="$capture_rate_limit",jt="$initial_campaign_params",Lt="$initial_referrer_info",Nt="$initial_person_info",zt="$epp",Ut="__POSTHOG_TOOLBAR__",qt="$posthog_cookieless",Bt=[nt,ot,"__cmpns",at,ft,ht,St,Et,Ft,It,Pt,Tt,Rt,Mt,Ot,At,Dt,jt,Lt,zt];function Ht(ea){return ea instanceof Element&&(ea.id===Ut||!(ea.closest==null||!ea.closest(".toolbar-global-fade-container")))}function Wt(ea){return!!ea&&ea.nodeType===1}function Gt(ea,na){return!!ea&&!!ea.tagName&&ea.tagName.toLowerCase()===na.toLowerCase()}function Jt(ea){return!!ea&&ea.nodeType===3}function Vt(ea){return!!ea&&ea.nodeType===11}function Kt(ea){return ea?b(ea).split(/\s+/):[]}function Yt(ea){var na=i$1?.location.href;return!!(na&&ea&&ea.some(ra=>na.match(ra)))}function Xt(ea){var na="";switch(typeof ea.className){case"string":na=ea.className;break;case"object":na=(ea.className&&"baseVal"in ea.className?ea.className.baseVal:null)||ea.getAttribute("class")||"";break;default:na=""}return Kt(na)}function Qt(ea){return O(ea)?null:b(ea).split(/(\s+)/).filter(na=>vi(na)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Zt(ea){var na="";return si(ea)&&!ni(ea)&&ea.childNodes&&ea.childNodes.length&&J(ea.childNodes,function(ra){var oa;Jt(ra)&&ra.textContent&&(na+=(oa=Qt(ra.textContent))!==null&&oa!==void 0?oa:"")}),b(na)}function ti(ea){return R(ea.target)?ea.srcElement||null:(na=ea.target)!=null&&na.shadowRoot?ea.composedPath()[0]||null:ea.target||null;var na}var ii=["a","button","form","input","select","textarea","label"];function ei(ea){var na=ea.parentNode;return!(!na||!Wt(na))&&na}function ri(ea,na,ra,oa,aa){var sa,la,ca;if(ra===void 0&&(ra=void 0),!i$1||!ea||Gt(ea,"html")||!Wt(ea)||(sa=ra)!=null&&sa.url_allowlist&&!Yt(ra.url_allowlist)||(la=ra)!=null&&la.url_ignorelist&&Yt(ra.url_ignorelist))return!1;if((ca=ra)!=null&&ca.dom_event_allowlist){var ua=ra.dom_event_allowlist;if(ua&&!ua.some(xa=>na.type===xa))return!1}for(var da=!1,pa=[ea],ha=!0,ga=ea;ga.parentNode&&!Gt(ga,"body");)if(Vt(ga.parentNode))pa.push(ga.parentNode.host),ga=ga.parentNode.host;else{if(!(ha=ei(ga)))break;if(oa||ii.indexOf(ha.tagName.toLowerCase())>-1)da=!0;else{var fa=i$1.getComputedStyle(ha);fa&&fa.getPropertyValue("cursor")==="pointer"&&(da=!0)}pa.push(ha),ga=ha}if(!function(xa,ya){var Aa=ya?.element_allowlist;if(R(Aa))return!0;var Ca=function(ba){if(Aa.some(Ea=>ba.tagName.toLowerCase()===Ea))return{v:!0}};for(var Sa of xa){var wa=Ca(Sa);if(typeof wa=="object")return wa.v}return!1}(pa,ra)||!function(xa,ya){var Aa=ya?.css_selector_allowlist;if(R(Aa))return!0;var Ca=function(ba){if(Aa.some(Ea=>ba.matches(Ea)))return{v:!0}};for(var Sa of xa){var wa=Ca(Sa);if(typeof wa=="object")return wa.v}return!1}(pa,ra))return!1;var ma=i$1.getComputedStyle(ea);if(ma&&ma.getPropertyValue("cursor")==="pointer"&&na.type==="click")return!0;var va=ea.tagName.toLowerCase();switch(va){case"html":return!1;case"form":return(aa||["submit"]).indexOf(na.type)>=0;case"input":case"select":case"textarea":return(aa||["change","click"]).indexOf(na.type)>=0;default:return da?(aa||["click"]).indexOf(na.type)>=0:(aa||["click"]).indexOf(na.type)>=0&&(ii.indexOf(va)>-1||ea.getAttribute("contenteditable")==="true")}}function si(ea){for(var na=ea;na.parentNode&&!Gt(na,"body");na=na.parentNode){var ra=Xt(na);if(m(ra,"ph-sensitive")||m(ra,"ph-no-capture"))return!1}if(m(Xt(ea),"ph-include"))return!0;var oa=ea.type||"";if(T(oa))switch(oa.toLowerCase()){case"hidden":case"password":return!1}var aa=ea.name||ea.id||"";return!(T(aa)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(aa.replace(/[^a-zA-Z0-9]/g,"")))}function ni(ea){return!!(Gt(ea,"input")&&!["button","checkbox","submit","reset"].includes(ea.type)||Gt(ea,"select")||Gt(ea,"textarea")||ea.getAttribute("contenteditable")==="true")}var oi="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ai=new RegExp("^(?:"+oi+")$"),li=new RegExp(oi),hi="\\d{3}-?\\d{2}-?\\d{4}",ui=new RegExp("^("+hi+")$"),di=new RegExp("("+hi+")");function vi(ea,na){return na===void 0&&(na=!0),!(O(ea)||T(ea)&&(ea=b(ea),(na?ai:li).test((ea||"").replace(/[- ]/g,""))||(na?ui:di).test(ea)))}function ci(ea){var na=Zt(ea);return vi(na=(na+" "+fi(ea)).trim())?na:""}function fi(ea){var na="";return ea&&ea.childNodes&&ea.childNodes.length&&J(ea.childNodes,function(ra){var oa;if(ra&&((oa=ra.tagName)==null?void 0:oa.toLowerCase())==="span")try{var aa=Zt(ra);na=(na+" "+aa).trim(),ra.childNodes&&ra.childNodes.length&&(na=(na+" "+fi(ra)).trim())}catch(sa){N.error("[AutoCapture]",sa)}}),na}function pi(ea){return function(na){var ra=na.map(oa=>{var aa,sa,la="";if(oa.tag_name&&(la+=oa.tag_name),oa.attr_class)for(var ca of(oa.attr_class.sort(),oa.attr_class))la+="."+ca.replace(/"/g,"");var ua=B({},oa.text?{text:oa.text}:{},{"nth-child":(aa=oa.nth_child)!==null&&aa!==void 0?aa:0,"nth-of-type":(sa=oa.nth_of_type)!==null&&sa!==void 0?sa:0},oa.href?{href:oa.href}:{},oa.attr_id?{attr_id:oa.attr_id}:{},oa.attributes),da={};return Y(ua).sort((pa,ha)=>{var[ga]=pa,[fa]=ha;return ga.localeCompare(fa)}).forEach(pa=>{var[ha,ga]=pa;return da[gi(ha.toString())]=gi(ga.toString())}),la+=":",la+=Y(ua).map(pa=>{var[ha,ga]=pa;return ha+'="'+ga+'"'}).join("")});return ra.join(";")}(function(na){return na.map(ra=>{var oa,aa,sa={text:(oa=ra.$el_text)==null?void 0:oa.slice(0,400),tag_name:ra.tag_name,href:(aa=ra.attr__href)==null?void 0:aa.slice(0,2048),attr_class:_i(ra),attr_id:ra.attr__id,nth_child:ra.nth_child,nth_of_type:ra.nth_of_type,attributes:{}};return Y(ra).filter(la=>{var[ca]=la;return ca.indexOf("attr__")===0}).forEach(la=>{var[ca,ua]=la;return sa.attributes[ca]=ua}),sa})}(ea))}function gi(ea){return ea.replace(/"|\\"/g,'\\"')}function _i(ea){var na=ea.attr__class;return na?x(na)?na:Kt(na):void 0}class mi{constructor(){this.clicks=[]}isRageClick(na,ra,oa){var aa=this.clicks[this.clicks.length-1];if(aa&&Math.abs(na-aa.x)+Math.abs(ra-aa.y)<30&&oa-aa.timestamp<1e3){if(this.clicks.push({x:na,y:ra,timestamp:oa}),this.clicks.length===3)return!0}else this.clicks=[{x:na,y:ra,timestamp:oa}];return!1}}var bi=["localhost","127.0.0.1"],wi=ea=>{var na=a$1?.createElement("a");return R(na)?null:(na.href=ea,na)},yi=function(ea,na){var ra,oa;na===void 0&&(na="&");var aa=[];return J(ea,function(sa,la){R(sa)||R(la)||la==="undefined"||(ra=encodeURIComponent((ca=>ca instanceof File)(sa)?sa.name:sa.toString()),oa=encodeURIComponent(la),aa[aa.length]=oa+"="+ra)}),aa.join(na)},Si=function(ea,na){for(var ra,oa=((ea.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),aa=0;aa<oa.length;aa++){var sa=oa[aa].split("=");if(sa[0]===na){ra=sa;break}}if(!x(ra)||ra.length<2)return"";var la=ra[1];try{la=decodeURIComponent(la)}catch{N.error("Skipping decoding for malformed query param: "+la)}return la.replace(/\+/g," ")},$i=function(ea,na,ra){if(!ea||!na||!na.length)return ea;for(var oa=ea.split("#"),aa=oa[0]||"",sa=oa[1],la=aa.split("?"),ca=la[1],ua=la[0],da=(ca||"").split("&"),pa=[],ha=0;ha<da.length;ha++){var ga=da[ha].split("=");x(ga)&&(na.includes(ga[0])?pa.push(ga[0]+"="+ra):pa.push(da[ha]))}var fa=ua;return ca!=null&&(fa+="?"+pa.join("&")),sa!=null&&(fa+="#"+sa),fa},ki=function(ea,na){var ra=ea.match(new RegExp(na+"=([^&]*)"));return ra?ra[1]:null},xi=z("[AutoCapture]");function Ei(ea,na){return na.length>ea?na.slice(0,ea)+"...":na}function Ii(ea){if(ea.previousElementSibling)return ea.previousElementSibling;var na=ea;do na=na.previousSibling;while(na&&!Wt(na));return na}function Pi(ea,na,ra,oa){var aa=ea.tagName.toLowerCase(),sa={tag_name:aa};ii.indexOf(aa)>-1&&!ra&&(aa.toLowerCase()==="a"||aa.toLowerCase()==="button"?sa.$el_text=Ei(1024,ci(ea)):sa.$el_text=Ei(1024,Zt(ea)));var la=Xt(ea);la.length>0&&(sa.classes=la.filter(function(pa){return pa!==""})),J(ea.attributes,function(pa){var ha;if((!ni(ea)||["name","id","class","aria-label"].indexOf(pa.name)!==-1)&&(oa==null||!oa.includes(pa.name))&&!na&&vi(pa.value)&&(ha=pa.name,!T(ha)||ha.substring(0,10)!=="_ngcontent"&&ha.substring(0,7)!=="_nghost")){var ga=pa.value;pa.name==="class"&&(ga=Kt(ga).join(" ")),sa["attr__"+pa.name]=Ei(1024,ga)}});for(var ca=1,ua=1,da=ea;da=Ii(da);)ca++,da.tagName===ea.tagName&&ua++;return sa.nth_child=ca,sa.nth_of_type=ua,sa}function Ri(ea,na){for(var ra,oa,{e:aa,maskAllElementAttributes:sa,maskAllText:la,elementAttributeIgnoreList:ca,elementsChainAsString:ua}=na,da=[ea],pa=ea;pa.parentNode&&!Gt(pa,"body");)Vt(pa.parentNode)?(da.push(pa.parentNode.host),pa=pa.parentNode.host):(da.push(pa.parentNode),pa=pa.parentNode);var ha,ga=[],fa={},ma=!1,va=!1;if(J(da,Sa=>{var wa=si(Sa);Sa.tagName.toLowerCase()==="a"&&(ma=Sa.getAttribute("href"),ma=wa&&ma&&vi(ma)&&ma),m(Xt(Sa),"ph-no-capture")&&(va=!0),ga.push(Pi(Sa,sa,la,ca));var ba=function(Ea){if(!si(Ea))return{};var $a={};return J(Ea.attributes,function(Ma){if(Ma.name&&Ma.name.indexOf("data-ph-capture-attribute")===0){var Ia=Ma.name.replace("data-ph-capture-attribute-",""),Oa=Ma.value;Ia&&Oa&&vi(Oa)&&($a[Ia]=Oa)}}),$a}(Sa);V(fa,ba)}),va)return{props:{},explicitNoCapture:va};if(la||(ea.tagName.toLowerCase()==="a"||ea.tagName.toLowerCase()==="button"?ga[0].$el_text=ci(ea):ga[0].$el_text=Zt(ea)),ma){var xa,ya;ga[0].attr__href=ma;var Aa=(xa=wi(ma))==null?void 0:xa.host,Ca=i$1==null||(ya=i$1.location)==null?void 0:ya.host;Aa&&Ca&&Aa!==Ca&&(ha=ma)}return{props:V({$event_type:aa.type,$ce_version:1},ua?{}:{$elements:ga},{$elements_chain:pi(ga)},(ra=ga[0])!=null&&ra.$el_text?{$el_text:(oa=ga[0])==null?void 0:oa.$el_text}:{},ha&&aa.type==="click"?{$external_click_url:ha}:{},fa)}}class Ti{constructor(na){this.i=!1,this.o=null,this.rageclicks=new mi,this.h=!1,this.instance=na,this.m=null}get S(){var na,ra,oa=I(this.instance.config.autocapture)?this.instance.config.autocapture:{};return oa.url_allowlist=(na=oa.url_allowlist)==null?void 0:na.map(aa=>new RegExp(aa)),oa.url_ignorelist=(ra=oa.url_ignorelist)==null?void 0:ra.map(aa=>new RegExp(aa)),oa}$(){if(this.isBrowserSupported()){if(i$1&&a$1){var na=oa=>{oa=oa||i$1?.event;try{this.k(oa)}catch(aa){xi.error("Failed to capture event",aa)}};if(st(a$1,"submit",na,{capture:!0}),st(a$1,"change",na,{capture:!0}),st(a$1,"click",na,{capture:!0}),this.S.capture_copied_text){var ra=oa=>{oa=oa||i$1?.event,this.k(oa,p)};st(a$1,"copy",ra,{capture:!0}),st(a$1,"cut",ra,{capture:!0})}}}else xi.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.i&&(this.$(),this.i=!0)}onRemoteConfig(na){na.elementsChainAsString&&(this.h=na.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[lt]:!!na.autocapture_opt_out}),this.o=!!na.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(na){this.m=na}getElementSelectors(na){var ra,oa=[];return(ra=this.m)==null||ra.forEach(aa=>{var sa=a$1?.querySelectorAll(aa);sa?.forEach(la=>{na===la&&oa.push(aa)})}),oa}get isEnabled(){var na,ra,oa=(na=this.instance.persistence)==null?void 0:na.props[lt],aa=this.o;if(C(aa)&&!A(oa)&&!this.instance.config.advanced_disable_decide)return!1;var sa=(ra=this.o)!==null&&ra!==void 0?ra:!!oa;return!!this.instance.config.autocapture&&!sa}k(na,ra){if(ra===void 0&&(ra="$autocapture"),this.isEnabled){var oa,aa=ti(na);Jt(aa)&&(aa=aa.parentNode||null),ra==="$autocapture"&&na.type==="click"&&na instanceof MouseEvent&&this.instance.config.rageclick&&(oa=this.rageclicks)!=null&&oa.isRageClick(na.clientX,na.clientY,new Date().getTime())&&this.k(na,"$rageclick");var sa=ra===p;if(aa&&ri(aa,na,this.S,sa,sa?["copy","cut"]:void 0)){var{props:la,explicitNoCapture:ca}=Ri(aa,{e:na,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.S.element_attribute_ignorelist,elementsChainAsString:this.h});if(ca)return!1;var ua=this.getElementSelectors(aa);if(ua&&ua.length>0&&(la.$element_selectors=ua),ra===p){var da,pa=Qt(i$1==null||(da=i$1.getSelection())==null?void 0:da.toString()),ha=na.type||"clipboard";if(!pa)return!1;la.$selected_content=pa,la.$copy_type=ha}return this.instance.capture(ra,la),!0}}}isBrowserSupported(){return E(a$1?.querySelectorAll)}}Math.trunc||(Math.trunc=function(ea){return ea<0?Math.ceil(ea):Math.floor(ea)}),Number.isInteger||(Number.isInteger=function(ea){return F(ea)&&isFinite(ea)&&Math.floor(ea)===ea});var Mi="0123456789abcdef";class Ci{constructor(na){if(this.bytes=na,na.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(na,ra,oa,aa){if(!Number.isInteger(na)||!Number.isInteger(ra)||!Number.isInteger(oa)||!Number.isInteger(aa)||na<0||ra<0||oa<0||aa<0||na>0xffffffffffff||ra>4095||oa>1073741823||aa>4294967295)throw new RangeError("invalid field value");var sa=new Uint8Array(16);return sa[0]=na/Math.pow(2,40),sa[1]=na/Math.pow(2,32),sa[2]=na/Math.pow(2,24),sa[3]=na/Math.pow(2,16),sa[4]=na/Math.pow(2,8),sa[5]=na,sa[6]=112|ra>>>8,sa[7]=ra,sa[8]=128|oa>>>24,sa[9]=oa>>>16,sa[10]=oa>>>8,sa[11]=oa,sa[12]=aa>>>24,sa[13]=aa>>>16,sa[14]=aa>>>8,sa[15]=aa,new Ci(sa)}toString(){for(var na="",ra=0;ra<this.bytes.length;ra++)na=na+Mi.charAt(this.bytes[ra]>>>4)+Mi.charAt(15&this.bytes[ra]),ra!==3&&ra!==5&&ra!==7&&ra!==9||(na+="-");if(na.length!==36)throw new Error("Invalid UUIDv7 was generated");return na}clone(){return new Ci(this.bytes.slice(0))}equals(na){return this.compareTo(na)===0}compareTo(na){for(var ra=0;ra<16;ra++){var oa=this.bytes[ra]-na.bytes[ra];if(oa!==0)return Math.sign(oa)}return 0}}class Oi{constructor(){this.I=0,this.P=0,this.R=new Di}generate(){var na=this.generateOrAbort();if(R(na)){this.I=0;var ra=this.generateOrAbort();if(R(ra))throw new Error("Could not generate UUID after timestamp reset");return ra}return na}generateOrAbort(){var na=Date.now();if(na>this.I)this.I=na,this.T();else{if(!(na+1e4>this.I))return;this.P++,this.P>4398046511103&&(this.I++,this.T())}return Ci.fromFieldsV7(this.I,Math.trunc(this.P/Math.pow(2,30)),this.P&Math.pow(2,30)-1,this.R.nextUint32())}T(){this.P=1024*this.R.nextUint32()+(1023&this.R.nextUint32())}}var Fi,Ai=ea=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var na=0;na<ea.length;na++)ea[na]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return ea};i$1&&!R(i$1.crypto)&&crypto.getRandomValues&&(Ai=ea=>crypto.getRandomValues(ea));class Di{constructor(){this.M=new Uint32Array(8),this.C=1/0}nextUint32(){return this.C>=this.M.length&&(Ai(this.M),this.C=0),this.M[this.C++]}}var ji=()=>Li().toString(),Li=()=>(Fi||(Fi=new Oi)).generate(),Ni="Thu, 01 Jan 1970 00:00:00 GMT",zi="",Ui=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function qi(ea,na){if(na){var ra=function(aa,sa){if(sa===void 0&&(sa=a$1),zi)return zi;if(!sa||["localhost","127.0.0.1"].includes(aa))return"";for(var la=aa.split("."),ca=Math.min(la.length,8),ua="dmn_chk_"+ji(),da=new RegExp("(^|;)\\s*"+ua+"=1");!zi&&ca--;){var pa=la.slice(ca).join("."),ha=ua+"=1;domain=."+pa;sa.cookie=ha,da.test(sa.cookie)&&(sa.cookie=ha+";expires="+Ni,zi=pa)}return zi}(ea);if(!ra){var oa=(aa=>{var sa=aa.match(Ui);return sa?sa[0]:""})(ea);oa!==ra&&N.info("Warning: cookie subdomain discovery mismatch",oa,ra),ra=oa}return ra?"; domain=."+ra:""}return""}var Bi,Hi={O:()=>!!a$1,F:function(ea){N.error("cookieStore error: "+ea)},A:function(ea){if(a$1){try{for(var na=ea+"=",ra=a$1.cookie.split(";").filter(sa=>sa.length),oa=0;oa<ra.length;oa++){for(var aa=ra[oa];aa.charAt(0)==" ";)aa=aa.substring(1,aa.length);if(aa.indexOf(na)===0)return decodeURIComponent(aa.substring(na.length,aa.length))}}catch{}return null}},D:function(ea){var na;try{na=JSON.parse(Hi.A(ea))||{}}catch{}return na},j:function(ea,na,ra,oa,aa){if(a$1)try{var sa="",la="",ca=qi(a$1.location.hostname,oa);if(ra){var ua=new Date;ua.setTime(ua.getTime()+24*ra*60*60*1e3),sa="; expires="+ua.toUTCString()}aa&&(la="; secure");var da=ea+"="+encodeURIComponent(JSON.stringify(na))+sa+"; SameSite=Lax; path=/"+ca+la;return da.length>3686.4&&N.warn("cookieStore warning: large cookie, len="+da.length),a$1.cookie=da,da}catch{return}},L:function(ea,na){try{Hi.j(ea,"",-1,na)}catch{return}}},Wi=null,Gi={O:function(){if(!C(Wi))return Wi;var ea=!0;if(R(i$1))ea=!1;else try{var na="__mplssupport__";Gi.j(na,"xyz"),Gi.A(na)!=='"xyz"'&&(ea=!1),Gi.L(na)}catch{ea=!1}return ea||N.error("localStorage unsupported; falling back to cookie store"),Wi=ea,ea},F:function(ea){N.error("localStorage error: "+ea)},A:function(ea){try{return i$1?.localStorage.getItem(ea)}catch(na){Gi.F(na)}return null},D:function(ea){try{return JSON.parse(Gi.A(ea))||{}}catch{}return null},j:function(ea,na){try{i$1?.localStorage.setItem(ea,JSON.stringify(na))}catch(ra){Gi.F(ra)}},L:function(ea){try{i$1?.localStorage.removeItem(ea)}catch(na){Gi.F(na)}}},Ji=["distinct_id",St,$t,zt,Nt],Vi=B({},Gi,{D:function(ea){try{var na={};try{na=Hi.D(ea)||{}}catch{}var ra=V(na,JSON.parse(Gi.A(ea)||"{}"));return Gi.j(ea,ra),ra}catch{}return null},j:function(ea,na,ra,oa,aa,sa){try{Gi.j(ea,na,void 0,void 0,sa);var la={};Ji.forEach(ca=>{na[ca]&&(la[ca]=na[ca])}),Object.keys(la).length&&Hi.j(ea,la,ra,oa,aa,sa)}catch(ca){Gi.F(ca)}},L:function(ea,na){try{i$1?.localStorage.removeItem(ea),Hi.L(ea,na)}catch(ra){Gi.F(ra)}}}),Ki={},Yi={O:function(){return!0},F:function(ea){N.error("memoryStorage error: "+ea)},A:function(ea){return Ki[ea]||null},D:function(ea){return Ki[ea]||null},j:function(ea,na){Ki[ea]=na},L:function(ea){delete Ki[ea]}},Xi=null,Qi={O:function(){if(!C(Xi))return Xi;if(Xi=!0,R(i$1))Xi=!1;else try{var ea="__support__";Qi.j(ea,"xyz"),Qi.A(ea)!=='"xyz"'&&(Xi=!1),Qi.L(ea)}catch{Xi=!1}return Xi},F:function(ea){N.error("sessionStorage error: ",ea)},A:function(ea){try{return i$1?.sessionStorage.getItem(ea)}catch(na){Qi.F(na)}return null},D:function(ea){try{return JSON.parse(Qi.A(ea))||null}catch{}return null},j:function(ea,na){try{i$1?.sessionStorage.setItem(ea,JSON.stringify(na))}catch(ra){Qi.F(ra)}},L:function(ea){try{i$1?.sessionStorage.removeItem(ea)}catch(na){Qi.F(na)}}};(function(ea){ea[ea.PENDING=-1]="PENDING",ea[ea.DENIED=0]="DENIED",ea[ea.GRANTED=1]="GRANTED"})(Bi||(Bi={}));class Zi{constructor(na){this._instance=na}get S(){return this._instance.config}get consent(){return this.N()?Bi.DENIED:this.U}isOptedOut(){return this.consent===Bi.DENIED||this.consent===Bi.PENDING&&this.S.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(na){this.q.j(this.B,na?1:0,this.S.cookie_expiration,this.S.cross_subdomain_cookie,this.S.secure_cookie)}reset(){this.q.L(this.B,this.S.cross_subdomain_cookie)}get B(){var{token:na,opt_out_capturing_cookie_prefix:ra}=this._instance.config;return(ra||"__ph_opt_in_out_")+na}get U(){var na=this.q.A(this.B);return na==="1"?Bi.GRANTED:na==="0"?Bi.DENIED:Bi.PENDING}get q(){if(!this.H){var na=this.S.opt_out_capturing_persistence_type;this.H=na==="localStorage"?Gi:Hi;var ra=na==="localStorage"?Hi:Gi;ra.A(this.B)&&(this.H.A(this.B)||this.optInOut(ra.A(this.B)==="1"),ra.L(this.B,this.S.cross_subdomain_cookie))}return this.H}N(){return!!this.S.respect_dnt&&!!rt([o$1?.doNotTrack,o$1?.msDoNotTrack,c$1.doNotTrack],na=>m([!0,1,"1","yes"],na))}}var te=z("[Dead Clicks]"),ie=()=>!0,ee=ea=>{var na,ra=!((na=ea.instance.persistence)==null||!na.get_property(vt)),oa=ea.instance.config.capture_dead_clicks;return A(oa)?oa:ra};class re{get lazyLoadedDeadClicksAutocapture(){return this.W}constructor(na,ra,oa){this.instance=na,this.isEnabled=ra,this.onCapture=oa,this.startIfEnabled()}onRemoteConfig(na){this.instance.persistence&&this.instance.persistence.register({[vt]:na?.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.G(()=>{this.J()})}G(na){var ra,oa;(ra=c$1.__PosthogExtensions__)!=null&&ra.initDeadClicksAutocapture&&na(),(oa=c$1.__PosthogExtensions__)==null||oa.loadExternalDependency==null||oa.loadExternalDependency(this.instance,"dead-clicks-autocapture",aa=>{aa?te.error("failed to load script",aa):na()})}J(){var na;if(a$1){if(!this.W&&(na=c$1.__PosthogExtensions__)!=null&&na.initDeadClicksAutocapture){var ra=I(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};ra.__onCapture=this.onCapture,this.W=c$1.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,ra),this.W.start(a$1),te.info("starting...")}}else te.error("`document` not found. Cannot start.")}stop(){this.W&&(this.W.stop(),this.W=void 0,te.info("stopping..."))}}var se=z("[ExceptionAutocapture]");class ne{constructor(na){var ra;this.V=()=>{var oa;if(i$1&&this.isEnabled&&(oa=c$1.__PosthogExtensions__)!=null&&oa.errorWrappingFunctions){var aa=c$1.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,sa=c$1.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,la=c$1.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.K&&this.config.capture_unhandled_errors&&(this.K=aa(this.captureException.bind(this))),!this.Y&&this.config.capture_unhandled_rejections&&(this.Y=sa(this.captureException.bind(this))),!this.X&&this.config.capture_console_errors&&(this.X=la(this.captureException.bind(this)))}catch(ca){se.error("failed to start",ca),this.Z()}}},this.instance=na,this.remoteEnabled=!((ra=this.instance.persistence)==null||!ra.props[ut]),this.config=this.tt(),this.startIfEnabled()}tt(){var na=this.instance.config.capture_exceptions,ra={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return I(na)?ra=B({},ra,na):(R(na)?this.remoteEnabled:na)&&(ra=B({},ra,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),ra}get isEnabled(){return this.config.capture_console_errors||this.config.capture_unhandled_errors||this.config.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(se.info("enabled"),this.G(this.V))}G(na){var ra,oa;(ra=c$1.__PosthogExtensions__)!=null&&ra.errorWrappingFunctions&&na(),(oa=c$1.__PosthogExtensions__)==null||oa.loadExternalDependency==null||oa.loadExternalDependency(this.instance,"exception-autocapture",aa=>{if(aa)return se.error("failed to load script",aa);na()})}Z(){var na,ra,oa;(na=this.K)==null||na.call(this),this.K=void 0,(ra=this.Y)==null||ra.call(this),this.Y=void 0,(oa=this.X)==null||oa.call(this),this.X=void 0}onRemoteConfig(na){var ra=na.autocaptureExceptions;this.remoteEnabled=!!ra||!1,this.config=this.tt(),this.instance.persistence&&this.instance.persistence.register({[ut]:this.remoteEnabled}),this.startIfEnabled()}captureException(na){var ra=this.instance.requestRouter.endpointFor("ui");na.$exception_personURL=ra+"/project/"+this.instance.config.token+"/person/"+this.instance.get_distinct_id(),this.instance.exceptions.sendExceptionEvent(na)}}function oe(ea){return!R(Event)&&ae(ea,Event)}function ae(ea,na){try{return ea instanceof na}catch{return!1}}function le(ea){switch(Object.prototype.toString.call(ea)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":return!0;default:return ae(ea,Error)}}function he(ea,na){return Object.prototype.toString.call(ea)==="[object "+na+"]"}function ue(ea){return he(ea,"DOMError")}var de=/\(error: (.*)\)/,ve=50,ce="?";function fe(ea,na,ra,oa){var aa={platform:"web:javascript",filename:ea,function:na==="<anonymous>"?ce:na,in_app:!0};return R(ra)||(aa.lineno=ra),R(oa)||(aa.colno=oa),aa}var pe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ge=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_e=/\((\S*)(?::(\d+))(?::(\d+))\)/,me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,be=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,we=function(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];var oa=na.sort((aa,sa)=>aa[0]-sa[0]).map(aa=>aa[1]);return function(aa,sa){sa===void 0&&(sa=0);for(var la=[],ca=aa.split(`
`),ua=sa;ua<ca.length;ua++){var da=ca[ua];if(!(da.length>1024)){var pa=de.test(da)?da.replace(de,"$1"):da;if(!pa.match(/\S*Error: /)){for(var ha of oa){var ga=ha(pa);if(ga){la.push(ga);break}}if(la.length>=ve)break}}}return function(fa){if(!fa.length)return[];var ma=Array.from(fa);return ma.reverse(),ma.slice(0,ve).map(va=>B({},va,{filename:va.filename||ye(ma).filename,function:va.function||ce}))}(la)}}([30,ea=>{var na=pe.exec(ea);if(na){var[,ra,oa,aa]=na;return fe(ra,ce,+oa,+aa)}var sa=ge.exec(ea);if(sa){if(sa[2]&&sa[2].indexOf("eval")===0){var la=_e.exec(sa[2]);la&&(sa[2]=la[1],sa[3]=la[2],sa[4]=la[3])}var[ca,ua]=xe(sa[1]||ce,sa[2]);return fe(ua,ca,sa[3]?+sa[3]:void 0,sa[4]?+sa[4]:void 0)}}],[50,ea=>{var na=me.exec(ea);if(na){if(na[3]&&na[3].indexOf(" > eval")>-1){var ra=be.exec(na[3]);ra&&(na[1]=na[1]||"eval",na[3]=ra[1],na[4]=ra[2],na[5]="")}var oa=na[3],aa=na[1]||ce;return[aa,oa]=xe(aa,oa),fe(oa,aa,na[4]?+na[4]:void 0,na[5]?+na[5]:void 0)}}]);function ye(ea){return ea[ea.length-1]||{}}var Se,$e,ke,xe=(ea,na)=>{var ra=ea.indexOf("safari-extension")!==-1,oa=ea.indexOf("safari-web-extension")!==-1;return ra||oa?[ea.indexOf("@")!==-1?ea.split("@")[0]:ce,ra?"safari-extension:"+na:"safari-web-extension:"+na]:[ea,na]},Ee=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;function Ie(ea,na){na===void 0&&(na=0);var ra=ea.stacktrace||ea.stack||"",oa=function(la){return la&&Pe.test(la.message)?1:0}(ea);try{var aa=we,sa=function(la,ca){var ua=function(da){var pa=globalThis._posthogChunkIds;if(!pa)return{};var ha=Object.keys(pa);return ke&&ha.length===$e||($e=ha.length,ke=ha.reduce((ga,fa)=>{Se||(Se={});var ma=Se[fa];if(ma)ga[ma[0]]=ma[1];else for(var va=da(fa),xa=va.length-1;xa>=0;xa--){var ya=va[xa],Aa=ya?.filename,Ca=pa[fa];if(Aa&&Ca){ga[Aa]=Ca,Se[fa]=[Aa,Ca];break}}return ga},{})),ke}(ca);return la.forEach(da=>{da.filename&&(da.chunk_id=ua[da.filename])}),la}(aa(ra,oa),aa);return sa.slice(0,sa.length-na)}catch{}return[]}var Pe=/Minified React error #\d+;/i;function Re(ea,na){var ra,oa,aa=Ie(ea),sa=(ra=na?.handled)===null||ra===void 0||ra,la=(oa=na?.synthetic)!==null&&oa!==void 0&&oa;return{type:na!=null&&na.overrideExceptionType?na.overrideExceptionType:ea.name,value:function(ca){var ua=ca.message;return ua.error&&typeof ua.error.message=="string"?String(ua.error.message):String(ua)}(ea),stacktrace:{frames:aa,type:"raw"},mechanism:{handled:sa,synthetic:la}}}function Te(ea,na){var ra=Re(ea,na);return ea.cause&&le(ea.cause)&&ea.cause!==ea?[ra,...Te(ea.cause,{handled:na?.handled,synthetic:na?.synthetic})]:[ra]}function Me(ea,na){return{$exception_list:Te(ea,na),$exception_level:"error"}}function Ce(ea,na){var ra,oa,aa,sa=(ra=na?.handled)===null||ra===void 0||ra,la=(oa=na?.synthetic)===null||oa===void 0||oa,ca={type:na!=null&&na.overrideExceptionType?na.overrideExceptionType:(aa=na?.defaultExceptionType)!==null&&aa!==void 0?aa:"Error",value:ea||na?.defaultExceptionMessage,mechanism:{handled:sa,synthetic:la}};if(na!=null&&na.syntheticException){var ua=Ie(na.syntheticException,1);ua.length&&(ca.stacktrace={frames:ua,type:"raw"})}return{$exception_list:[ca],$exception_level:"error"}}function Oe(ea){return T(ea)&&!M(ea)&&_.indexOf(ea)>=0}function Fe(ea,na){var ra,oa,aa=(ra=na?.handled)===null||ra===void 0||ra,sa=(oa=na?.synthetic)===null||oa===void 0||oa,la=na!=null&&na.overrideExceptionType?na.overrideExceptionType:oe(ea)?ea.constructor.name:"Error",ca="Non-Error 'exception' captured with keys: "+function(pa,ha){ha===void 0&&(ha=40);var ga=Object.keys(pa);if(ga.sort(),!ga.length)return"[object has no keys]";for(var fa=ga.length;fa>0;fa--){var ma=ga.slice(0,fa).join(", ");if(!(ma.length>ha))return fa===ga.length||ma.length<=ha?ma:ma.slice(0,ha)+"..."}return""}(ea),ua={type:la,value:ca,mechanism:{handled:aa,synthetic:sa}};if(na!=null&&na.syntheticException){var da=Ie(na?.syntheticException,1);da.length&&(ua.stacktrace={frames:da,type:"raw"})}return{$exception_list:[ua],$exception_level:Oe(ea.level)?ea.level:"error"}}function Ae(ea,na){var{error:ra,event:oa}=ea,aa={$exception_list:[]},sa=ra||oa;if(ue(sa)||function(ga){return he(ga,"DOMException")}(sa)){var la=sa;if(function(ga){return"stack"in ga}(sa))aa=Me(sa,na);else{var ca=la.name||(ue(la)?"DOMError":"DOMException"),ua=la.message?ca+": "+la.message:ca;aa=Ce(ua,B({},na,{overrideExceptionType:ue(la)?"DOMError":"DOMException",defaultExceptionMessage:ua}))}return"code"in la&&(aa.$exception_DOMException_code=""+la.code),aa}if(function(ga){return he(ga,"ErrorEvent")}(sa)&&sa.error)return Me(sa.error,na);if(le(sa))return Me(sa,na);if(function(ga){return he(ga,"Object")}(sa)||oe(sa))return Fe(sa,na);if(R(ra)&&T(oa)){var da="Error",pa=oa,ha=oa.match(Ee);return ha&&(da=ha[1],pa=ha[2]),Ce(pa,B({},na,{overrideExceptionType:da,defaultExceptionMessage:pa}))}return Ce(sa,na)}function De(ea,na,ra){try{if(!(na in ea))return()=>{};var oa=ea[na],aa=ra(oa);return E(aa)&&(aa.prototype=aa.prototype||{},Object.defineProperties(aa,{__posthog_wrapped__:{enumerable:!1,value:!0}})),ea[na]=aa,()=>{ea[na]=oa}}catch{return()=>{}}}class je{constructor(na){var ra;this._instance=na,this.it=(i$1==null||(ra=i$1.location)==null?void 0:ra.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(N.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.et&&this.et(),this.et=void 0,N.info("History API monitoring stopped")}monitorHistoryChanges(){var na,ra;if(i$1&&i$1.history){var oa=this;(na=i$1.history.pushState)!=null&&na.__posthog_wrapped__||De(i$1.history,"pushState",aa=>function(sa,la,ca){aa.call(this,sa,la,ca),oa.rt("pushState")}),(ra=i$1.history.replaceState)!=null&&ra.__posthog_wrapped__||De(i$1.history,"replaceState",aa=>function(sa,la,ca){aa.call(this,sa,la,ca),oa.rt("replaceState")}),this.st()}}rt(na){try{var ra,oa=i$1==null||(ra=i$1.location)==null?void 0:ra.pathname;if(!oa)return;oa!==this.it&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:na}),this.it=oa}catch(aa){N.error("Error capturing "+na+" pageview",aa)}}st(){if(!this.et){var na=()=>{this.rt("popstate")};st(i$1,"popstate",na),this.et=()=>{i$1&&i$1.removeEventListener("popstate",na)}}}}function Le(ea){var na,ra;return((na=JSON.stringify(ea,(ra=[],function(oa,aa){if(I(aa)){for(;ra.length>0&&ra[ra.length-1]!==this;)ra.pop();return ra.includes(aa)?"[Circular]":(ra.push(aa),aa)}return aa})))==null?void 0:na.length)||0}function Ne(ea,na){if(na===void 0&&(na=66060288e-1),ea.size>=na&&ea.data.length>1){var ra=Math.floor(ea.data.length/2),oa=ea.data.slice(0,ra),aa=ea.data.slice(ra);return[Ne({size:Le(oa),data:oa,sessionId:ea.sessionId,windowId:ea.windowId}),Ne({size:Le(aa),data:aa,sessionId:ea.sessionId,windowId:ea.windowId})].flatMap(sa=>sa)}return[ea]}var ze=(ea=>(ea[ea.DomContentLoaded=0]="DomContentLoaded",ea[ea.Load=1]="Load",ea[ea.FullSnapshot=2]="FullSnapshot",ea[ea.IncrementalSnapshot=3]="IncrementalSnapshot",ea[ea.Meta=4]="Meta",ea[ea.Custom=5]="Custom",ea[ea.Plugin=6]="Plugin",ea))(ze||{}),Ue=(ea=>(ea[ea.Mutation=0]="Mutation",ea[ea.MouseMove=1]="MouseMove",ea[ea.MouseInteraction=2]="MouseInteraction",ea[ea.Scroll=3]="Scroll",ea[ea.ViewportResize=4]="ViewportResize",ea[ea.Input=5]="Input",ea[ea.TouchMove=6]="TouchMove",ea[ea.MediaInteraction=7]="MediaInteraction",ea[ea.StyleSheetRule=8]="StyleSheetRule",ea[ea.CanvasMutation=9]="CanvasMutation",ea[ea.Font=10]="Font",ea[ea.Log=11]="Log",ea[ea.Drag=12]="Drag",ea[ea.StyleDeclaration=13]="StyleDeclaration",ea[ea.Selection=14]="Selection",ea[ea.AdoptedStyleSheet=15]="AdoptedStyleSheet",ea[ea.CustomElement=16]="CustomElement",ea))(Ue||{}),qe="[SessionRecording]",Be="redacted",He={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:ea=>ea,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","analytics.google.com"]},We=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],Ge=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],Je=["/s/","/e/","/i/"];function Ve(ea,na,ra,oa){if(O(ea))return ea;var aa=na?.["content-length"]||function(sa){return new Blob([sa]).size}(ea);return T(aa)&&(aa=parseInt(aa)),aa>ra?qe+" "+oa+" body too large to record ("+aa+" bytes)":ea}function Ke(ea,na){if(O(ea))return ea;var ra=ea;return vi(ra,!1)||(ra=qe+" "+na+" body "+Be),J(Ge,oa=>{var aa,sa;(aa=ra)!=null&&aa.length&&((sa=ra)==null?void 0:sa.indexOf(oa))!==-1&&(ra=qe+" "+na+" body "+Be+" as might contain: "+oa)}),ra}var Ye=(ea,na)=>{var ra,oa,aa,sa={payloadSizeLimitBytes:He.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...He.performanceEntryTypeToObserve],payloadHostDenyList:[...na.payloadHostDenyList||[],...He.payloadHostDenyList]},la=ea.session_recording.recordHeaders!==!1&&na.recordHeaders,ca=ea.session_recording.recordBody!==!1&&na.recordBody,ua=ea.capture_performance!==!1&&na.recordPerformance,da=(ra=sa,aa=Math.min(1e6,(oa=ra.payloadSizeLimitBytes)!==null&&oa!==void 0?oa:1e6),ga=>(ga!=null&&ga.requestBody&&(ga.requestBody=Ve(ga.requestBody,ga.requestHeaders,aa,"Request")),ga!=null&&ga.responseBody&&(ga.responseBody=Ve(ga.responseBody,ga.responseHeaders,aa,"Response")),ga)),pa=ga=>{return da(((va,xa)=>{var ya,Aa=wi(va.name),Ca=xa.indexOf("http")===0?(ya=wi(xa))==null?void 0:ya.pathname:xa;Ca==="/"&&(Ca="");var Sa=Aa?.pathname.replace(Ca||"","");if(!(Aa&&Sa&&Je.some(wa=>Sa.indexOf(wa)===0)))return va})((ma=(fa=ga).requestHeaders,O(ma)||J(Object.keys(ma??{}),va=>{We.includes(va.toLowerCase())&&(ma[va]=Be)}),fa),ea.api_host));var fa,ma},ha=E(ea.session_recording.maskNetworkRequestFn);return ha&&E(ea.session_recording.maskCapturedNetworkRequestFn)&&N.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),ha&&(ea.session_recording.maskCapturedNetworkRequestFn=ga=>{var fa=ea.session_recording.maskNetworkRequestFn({url:ga.name});return B({},ga,{name:fa?.url})}),sa.maskRequestFn=E(ea.session_recording.maskCapturedNetworkRequestFn)?ga=>{var fa,ma=pa(ga);return ma&&(fa=ea.session_recording.maskCapturedNetworkRequestFn==null?void 0:ea.session_recording.maskCapturedNetworkRequestFn(ma))!==null&&fa!==void 0?fa:void 0}:ga=>function(fa){if(!R(fa))return fa.requestBody=Ke(fa.requestBody,"Request"),fa.responseBody=Ke(fa.responseBody,"Response"),fa}(pa(ga)),B({},He,sa,{recordHeaders:la,recordBody:ca,recordPerformance:ua,recordInitialRequests:ua})};function Xe(ea,na,ra,oa,aa){return na>ra&&(N.warn("min cannot be greater than max."),na=ra),F(ea)?ea>ra?(oa&&N.warn(oa+" cannot be  greater than max: "+ra+". Using max value instead."),ra):ea<na?(oa&&N.warn(oa+" cannot be less than min: "+na+". Using min value instead."),na):ea:(oa&&N.warn(oa+" must be a number. using max or fallback. max: "+ra+", fallback: "+aa),Xe(aa||ra,na,ra,oa))}class Qe{constructor(na,ra){var oa,aa;ra===void 0&&(ra={}),this.nt=100,this.ot=10,this.lt={},this.ht={},this.ut=()=>{Object.keys(this.lt).forEach(sa=>{this.lt[sa]=this.lt[sa]+this.ot,this.lt[sa]>=this.nt&&delete this.lt[sa]})},this.dt=sa=>{var la=this._rrweb.mirror.getNode(sa);if(la?.nodeName!=="svg"&&la instanceof Element){var ca=la.closest("svg");if(ca)return[this._rrweb.mirror.getId(ca),ca]}return[sa,la]},this.vt=sa=>{var la,ca,ua,da,pa,ha,ga,fa;return((la=(ca=sa.removes)==null?void 0:ca.length)!==null&&la!==void 0?la:0)+((ua=(da=sa.attributes)==null?void 0:da.length)!==null&&ua!==void 0?ua:0)+((pa=(ha=sa.texts)==null?void 0:ha.length)!==null&&pa!==void 0?pa:0)+((ga=(fa=sa.adds)==null?void 0:fa.length)!==null&&ga!==void 0?ga:0)},this.throttleMutations=sa=>{if(sa.type!==3||sa.data.source!==0)return sa;var la=sa.data,ca=this.vt(la);la.attributes&&(la.attributes=la.attributes.filter(da=>{var pa,ha,ga,[fa,ma]=this.dt(da.id);return this.lt[fa]===0?!1:(this.lt[fa]=(pa=this.lt[fa])!==null&&pa!==void 0?pa:this.nt,this.lt[fa]=Math.max(this.lt[fa]-1,0),this.lt[fa]===0&&(this.ht[fa]||(this.ht[fa]=!0,(ha=(ga=this.ct).onBlockedNode)==null||ha.call(ga,fa,ma))),da)}));var ua=this.vt(la);return ua!==0||ca===ua?sa:void 0},this._rrweb=na,this.ct=ra,this.ot=Xe((oa=this.ct.refillRate)!==null&&oa!==void 0?oa:this.ot,0,100,"mutation throttling refill rate"),this.nt=Xe((aa=this.ct.bucketSize)!==null&&aa!==void 0?aa:this.nt,0,100,"mutation throttling bucket size"),setInterval(()=>{this.ut()},1e3)}}var Ze=Uint8Array,tr=Uint16Array,ir=Uint32Array,er=new Ze([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),rr=new Ze([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),sr=new Ze([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nr=function(ea,na){for(var ra=new tr(31),oa=0;oa<31;++oa)ra[oa]=na+=1<<ea[oa-1];var aa=new ir(ra[30]);for(oa=1;oa<30;++oa)for(var sa=ra[oa];sa<ra[oa+1];++sa)aa[sa]=sa-ra[oa]<<5|oa;return[ra,aa]},or=nr(er,2),ar=or[0],lr=or[1];ar[28]=258,lr[258]=28;for(var hr=nr(rr,0)[1],ur=new tr(32768),dr=0;dr<32768;++dr){var vr=(43690&dr)>>>1|(21845&dr)<<1;vr=(61680&(vr=(52428&vr)>>>2|(13107&vr)<<2))>>>4|(3855&vr)<<4,ur[dr]=((65280&vr)>>>8|(255&vr)<<8)>>>1}var cr=function(ea,na,ra){for(var oa=ea.length,aa=0,sa=new tr(na);aa<oa;++aa)++sa[ea[aa]-1];var la,ca=new tr(na);for(aa=0;aa<na;++aa)ca[aa]=ca[aa-1]+sa[aa-1]<<1;for(la=new tr(oa),aa=0;aa<oa;++aa)la[aa]=ur[ca[ea[aa]-1]++]>>>15-ea[aa];return la},fr=new Ze(288);for(dr=0;dr<144;++dr)fr[dr]=8;for(dr=144;dr<256;++dr)fr[dr]=9;for(dr=256;dr<280;++dr)fr[dr]=7;for(dr=280;dr<288;++dr)fr[dr]=8;var pr=new Ze(32);for(dr=0;dr<32;++dr)pr[dr]=5;var gr=cr(fr,9),_r=cr(pr,5),mr=function(ea){return(ea/8>>0)+(7&ea&&1)},br=function(ea,na,ra){(ra==null||ra>ea.length)&&(ra=ea.length);var oa=new(ea instanceof tr?tr:ea instanceof ir?ir:Ze)(ra-na);return oa.set(ea.subarray(na,ra)),oa},wr=function(ea,na,ra){ra<<=7&na;var oa=na/8>>0;ea[oa]|=ra,ea[oa+1]|=ra>>>8},yr=function(ea,na,ra){ra<<=7&na;var oa=na/8>>0;ea[oa]|=ra,ea[oa+1]|=ra>>>8,ea[oa+2]|=ra>>>16},Sr=function(ea,na){for(var ra=[],oa=0;oa<ea.length;++oa)ea[oa]&&ra.push({s:oa,f:ea[oa]});var aa=ra.length,sa=ra.slice();if(!aa)return[new Ze(0),0];if(aa==1){var la=new Ze(ra[0].s+1);return la[ra[0].s]=1,[la,1]}ra.sort(function(wa,ba){return wa.f-ba.f}),ra.push({s:-1,f:25001});var ca=ra[0],ua=ra[1],da=0,pa=1,ha=2;for(ra[0]={s:-1,f:ca.f+ua.f,l:ca,r:ua};pa!=aa-1;)ca=ra[ra[da].f<ra[ha].f?da++:ha++],ua=ra[da!=pa&&ra[da].f<ra[ha].f?da++:ha++],ra[pa++]={s:-1,f:ca.f+ua.f,l:ca,r:ua};var ga=sa[0].s;for(oa=1;oa<aa;++oa)sa[oa].s>ga&&(ga=sa[oa].s);var fa=new tr(ga+1),ma=$r(ra[pa-1],fa,0);if(ma>na){oa=0;var va=0,xa=ma-na,ya=1<<xa;for(sa.sort(function(wa,ba){return fa[ba.s]-fa[wa.s]||wa.f-ba.f});oa<aa;++oa){var Aa=sa[oa].s;if(!(fa[Aa]>na))break;va+=ya-(1<<ma-fa[Aa]),fa[Aa]=na}for(va>>>=xa;va>0;){var Ca=sa[oa].s;fa[Ca]<na?va-=1<<na-fa[Ca]++-1:++oa}for(;oa>=0&&va;--oa){var Sa=sa[oa].s;fa[Sa]==na&&(--fa[Sa],++va)}ma=na}return[new Ze(fa),ma]},$r=function(ea,na,ra){return ea.s==-1?Math.max($r(ea.l,na,ra+1),$r(ea.r,na,ra+1)):na[ea.s]=ra},kr=function(ea){for(var na=ea.length;na&&!ea[--na];);for(var ra=new tr(++na),oa=0,aa=ea[0],sa=1,la=function(ua){ra[oa++]=ua},ca=1;ca<=na;++ca)if(ea[ca]==aa&&ca!=na)++sa;else{if(!aa&&sa>2){for(;sa>138;sa-=138)la(32754);sa>2&&(la(sa>10?sa-11<<5|28690:sa-3<<5|12305),sa=0)}else if(sa>3){for(la(aa),--sa;sa>6;sa-=6)la(8304);sa>2&&(la(sa-3<<5|8208),sa=0)}for(;sa--;)la(aa);sa=1,aa=ea[ca]}return[ra.subarray(0,oa),na]},xr=function(ea,na){for(var ra=0,oa=0;oa<na.length;++oa)ra+=ea[oa]*na[oa];return ra},Er=function(ea,na,ra){var oa=ra.length,aa=mr(na+2);ea[aa]=255&oa,ea[aa+1]=oa>>>8,ea[aa+2]=255^ea[aa],ea[aa+3]=255^ea[aa+1];for(var sa=0;sa<oa;++sa)ea[aa+sa+4]=ra[sa];return 8*(aa+4+oa)},Ir=function(ea,na,ra,oa,aa,sa,la,ca,ua,da,pa){wr(na,pa++,ra),++aa[256];for(var ha=Sr(aa,15),ga=ha[0],fa=ha[1],ma=Sr(sa,15),va=ma[0],xa=ma[1],ya=kr(ga),Aa=ya[0],Ca=ya[1],Sa=kr(va),wa=Sa[0],ba=Sa[1],Ea=new tr(19),$a=0;$a<Aa.length;++$a)Ea[31&Aa[$a]]++;for($a=0;$a<wa.length;++$a)Ea[31&wa[$a]]++;for(var Ma=Sr(Ea,7),Ia=Ma[0],Oa=Ma[1],Da=19;Da>4&&!Ia[sr[Da-1]];--Da);var Ta,_a,La,Na,za=da+5<<3,Fa=xr(aa,fr)+xr(sa,pr)+la,Ha=xr(aa,ga)+xr(sa,va)+la+14+3*Da+xr(Ea,Ia)+(2*Ea[16]+3*Ea[17]+7*Ea[18]);if(za<=Fa&&za<=Ha)return Er(na,pa,ea.subarray(ua,ua+da));if(wr(na,pa,1+(Ha<Fa)),pa+=2,Ha<Fa){Ta=cr(ga,fa),_a=ga,La=cr(va,xa),Na=va;var Va=cr(Ia,Oa);for(wr(na,pa,Ca-257),wr(na,pa+5,ba-1),wr(na,pa+10,Da-4),pa+=14,$a=0;$a<Da;++$a)wr(na,pa+3*$a,Ia[sr[$a]]);pa+=3*Da;for(var Ua=[Aa,wa],Qa=0;Qa<2;++Qa){var Wa=Ua[Qa];for($a=0;$a<Wa.length;++$a){var Za=31&Wa[$a];wr(na,pa,Va[Za]),pa+=Ia[Za],Za>15&&(wr(na,pa,Wa[$a]>>>5&127),pa+=Wa[$a]>>>12)}}}else Ta=gr,_a=fr,La=_r,Na=pr;for($a=0;$a<ca;++$a)if(oa[$a]>255){Za=oa[$a]>>>18&31,yr(na,pa,Ta[Za+257]),pa+=_a[Za+257],Za>7&&(wr(na,pa,oa[$a]>>>23&31),pa+=er[Za]);var Xa=31&oa[$a];yr(na,pa,La[Xa]),pa+=Na[Xa],Xa>3&&(yr(na,pa,oa[$a]>>>5&8191),pa+=rr[Xa])}else yr(na,pa,Ta[oa[$a]]),pa+=_a[oa[$a]];return yr(na,pa,Ta[256]),pa+_a[256]},Pr=new ir([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rr=function(){for(var ea=new ir(256),na=0;na<256;++na){for(var ra=na,oa=9;--oa;)ra=(1&ra&&3988292384)^ra>>>1;ea[na]=ra}return ea}(),Tr=function(){var ea=4294967295;return{p:function(na){for(var ra=ea,oa=0;oa<na.length;++oa)ra=Rr[255&ra^na[oa]]^ra>>>8;ea=ra},d:function(){return 4294967295^ea}}},Mr=function(ea,na,ra,oa,aa){return function(sa,la,ca,ua,da,pa){var ha=sa.length,ga=new Ze(ua+ha+5*(1+Math.floor(ha/7e3))+da),fa=ga.subarray(ua,ga.length-da),ma=0;if(!la||ha<8)for(var va=0;va<=ha;va+=65535){var xa=va+65535;xa<ha?ma=Er(fa,ma,sa.subarray(va,xa)):(fa[va]=pa,ma=Er(fa,ma,sa.subarray(va,ha)))}else{for(var ya=Pr[la-1],Aa=ya>>>13,Ca=8191&ya,Sa=(1<<ca)-1,wa=new tr(32768),ba=new tr(Sa+1),Ea=Math.ceil(ca/3),$a=2*Ea,Ma=function(Tl){return(sa[Tl]^sa[Tl+1]<<Ea^sa[Tl+2]<<$a)&Sa},Ia=new ir(25e3),Oa=new tr(288),Da=new tr(32),Ta=0,_a=0,La=(va=0,0),Na=0,za=0;va<ha;++va){var Fa=Ma(va),Ha=32767&va,Va=ba[Fa];if(wa[Ha]=Va,ba[Fa]=Ha,Na<=va){var Ua=ha-va;if((Ta>7e3||La>24576)&&Ua>423){ma=Ir(sa,fa,0,Ia,Oa,Da,_a,La,za,va-za,ma),La=Ta=_a=0,za=va;for(var Qa=0;Qa<286;++Qa)Oa[Qa]=0;for(Qa=0;Qa<30;++Qa)Da[Qa]=0}var Wa=2,Za=0,Xa=Ca,tl=Ha-Va&32767;if(Ua>2&&Fa==Ma(va-tl))for(var il=Math.min(Aa,Ua)-1,Ja=Math.min(32767,va),nl=Math.min(258,Ua);tl<=Ja&&--Xa&&Ha!=Va;){if(sa[va+Wa]==sa[va+Wa-tl]){for(var Ya=0;Ya<nl&&sa[va+Ya]==sa[va+Ya-tl];++Ya);if(Ya>Wa){if(Wa=Ya,Za=tl,Ya>il)break;var rl=Math.min(tl,Ya-2),sl=0;for(Qa=0;Qa<rl;++Qa){var dl=va-tl+Qa+32768&32767,pl=dl-wa[dl]+32768&32767;pl>sl&&(sl=pl,Va=dl)}}}tl+=(Ha=Va)-(Va=wa[Ha])+32768&32767}if(Za){Ia[La++]=268435456|lr[Wa]<<18|hr[Za];var ml=31&lr[Wa],Rl=31&hr[Za];_a+=er[ml]+rr[Rl],++Oa[257+ml],++Da[Rl],Na=va+Wa,++Ta}else Ia[La++]=sa[va],++Oa[sa[va]]}}ma=Ir(sa,fa,pa,Ia,Oa,Da,_a,La,za,va-za,ma)}return br(ga,0,ua+mr(ma)+da)}(ea,na.level==null?6:na.level,na.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(ea.length)))):12+na.mem,ra,oa,!0)},Cr=function(ea,na,ra){for(;ra;++na)ea[na]=ra,ra>>>=8},Or=function(ea,na){var ra=na.filename;if(ea[0]=31,ea[1]=139,ea[2]=8,ea[8]=na.level<2?4:na.level==9?2:0,ea[9]=3,na.mtime!=0&&Cr(ea,4,Math.floor(new Date(na.mtime||Date.now())/1e3)),ra){ea[3]=8;for(var oa=0;oa<=ra.length;++oa)ea[oa+10]=ra.charCodeAt(oa)}},Fr=function(ea){return 10+(ea.filename&&ea.filename.length+1||0)};function Ar(ea,na){na===void 0&&(na={});var ra=Tr(),oa=ea.length;ra.p(ea);var aa=Mr(ea,na,Fr(na),8),sa=aa.length;return Or(aa,na),Cr(aa,sa-8,ra.d()),Cr(aa,sa-4,oa),aa}function Dr(ea,na){var ra=ea.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(ea);for(var oa=new Ze(ea.length+(ea.length>>>1)),aa=0,sa=function(da){oa[aa++]=da},la=0;la<ra;++la){if(aa+5>oa.length){var ca=new Ze(aa+8+(ra-la<<1));ca.set(oa),oa=ca}var ua=ea.charCodeAt(la);ua<128||na?sa(ua):ua<2048?(sa(192|ua>>>6),sa(128|63&ua)):ua>55295&&ua<57344?(sa(240|(ua=65536+(1047552&ua)|1023&ea.charCodeAt(++la))>>>18),sa(128|ua>>>12&63),sa(128|ua>>>6&63),sa(128|63&ua)):(sa(224|ua>>>12),sa(128|ua>>>6&63),sa(128|63&ua))}return br(oa,0,aa)}function jr(ea,na){return function(ra){for(var oa=0,aa=0;aa<ra.length;aa++)oa=(oa<<5)-oa+ra.charCodeAt(aa),oa|=0;return Math.abs(oa)}(ea)%100<Xe(100*na,0,100)}var Lr="disabled",Nr="sampled",zr="active",Ur="buffering",qr="paused",Br="trigger",Hr=Br+"_activated",Wr=Br+"_pending",Gr=Br+"_"+Lr;function Jr(ea,na){return na.some(ra=>ra.matching==="regex"&&new RegExp(ra.url).test(ea))}class Vr{constructor(na){this.ft=na}triggerStatus(na){var ra=this.ft.map(oa=>oa.triggerStatus(na));return ra.includes(Hr)?Hr:ra.includes(Wr)?Wr:Gr}stop(){this.ft.forEach(na=>na.stop())}}class Kr{constructor(na){this.ft=na}triggerStatus(na){var ra=new Set;for(var oa of this.ft)ra.add(oa.triggerStatus(na));switch(ra.delete(Gr),ra.size){case 0:return Gr;case 1:return Array.from(ra)[0];default:return Wr}}stop(){this.ft.forEach(na=>na.stop())}}class Yr{triggerStatus(){return Wr}stop(){}}class Xr{constructor(na){this.gt=[],this._t=[],this.urlBlocked=!1,this._instance=na}onRemoteConfig(na){var ra,oa;this.gt=((ra=na.sessionRecording)==null?void 0:ra.urlTriggers)||[],this._t=((oa=na.sessionRecording)==null?void 0:oa.urlBlocklist)||[]}bt(na){var ra;return this.gt.length===0?Gr:((ra=this._instance)==null?void 0:ra.get_property(kt))===na?Hr:Wr}triggerStatus(na){var ra=this.bt(na),oa=ra===Hr?Hr:ra===Wr?Wr:Gr;return this._instance.register_for_session({$sdk_debug_replay_url_trigger_status:oa}),oa}checkUrlTriggerConditions(na,ra,oa){if(i$1!==void 0&&i$1.location.href){var aa=i$1.location.href,sa=this.urlBlocked,la=Jr(aa,this._t);sa&&la||(la&&!sa?na():!la&&sa&&ra(),Jr(aa,this.gt)&&oa("url"))}}stop(){}}class Qr{constructor(na){this.linkedFlag=null,this.linkedFlagSeen=!1,this.wt=()=>{},this._instance=na}triggerStatus(){var na=Wr;return O(this.linkedFlag)&&(na=Gr),this.linkedFlagSeen&&(na=Hr),this._instance.register_for_session({$sdk_debug_replay_linked_flag_trigger_status:na}),na}onRemoteConfig(na,ra){var oa;if(this.linkedFlag=((oa=na.sessionRecording)==null?void 0:oa.linkedFlag)||null,!O(this.linkedFlag)&&!this.linkedFlagSeen){var aa=T(this.linkedFlag)?this.linkedFlag:this.linkedFlag.flag,sa=T(this.linkedFlag)?null:this.linkedFlag.variant;this.wt=this._instance.onFeatureFlags((la,ca)=>{var ua=I(ca)&&aa in ca,da=sa?ca[aa]===sa:ua;da&&ra(aa,sa),this.linkedFlagSeen=da})}}stop(){this.wt()}}class Zr{constructor(na){this.yt=[],this._instance=na}onRemoteConfig(na){var ra;this.yt=((ra=na.sessionRecording)==null?void 0:ra.eventTriggers)||[]}St(na){var ra;return this.yt.length===0?Gr:((ra=this._instance)==null?void 0:ra.get_property(xt))===na?Hr:Wr}triggerStatus(na){var ra=this.St(na),oa=ra===Hr?Hr:ra===Wr?Wr:Gr;return this._instance.register_for_session({$sdk_debug_replay_event_trigger_status:oa}),oa}stop(){}}function ts(ea){return ea.isRecordingEnabled?Ur:Lr}function is$2(ea){if(!ea.receivedDecide)return Ur;if(!ea.isRecordingEnabled)return Lr;if(ea.urlTriggerMatching.urlBlocked)return qr;var na=ea.isSampled===!0,ra=new Vr([ea.eventTriggerMatching,ea.urlTriggerMatching,ea.linkedFlagMatching]).triggerStatus(ea.sessionId);return na?Nr:ra===Hr?zr:ra===Wr?Ur:ea.isSampled===!1?Lr:zr}function es(ea){if(!ea.receivedDecide)return Ur;if(!ea.isRecordingEnabled)return Lr;if(ea.urlTriggerMatching.urlBlocked)return qr;var na=new Kr([ea.eventTriggerMatching,ea.urlTriggerMatching,ea.linkedFlagMatching]).triggerStatus(ea.sessionId),ra=na!==Gr,oa=A(ea.isSampled);return ra&&na===Wr?Ur:ra&&na===Gr||oa&&!ea.isSampled?Lr:ea.isSampled===!0?Nr:zr}var rs="[SessionRecording]",ss=z(rs);function ns(){var ea,na;return c$1==null||(ea=c$1.__PosthogExtensions__)==null||(na=ea.rrweb)==null?void 0:na.record}var os=3e5,as=[Ue.MouseMove,Ue.MouseInteraction,Ue.Scroll,Ue.ViewportResize,Ue.Input,Ue.TouchMove,Ue.MediaInteraction,Ue.Drag],ls=ea=>({rrwebMethod:ea,enqueuedAt:Date.now(),attempt:1});function hs(ea){return function(na,ra){for(var oa="",aa=0;aa<na.length;){var sa=na[aa++];oa+=String.fromCharCode(sa)}return oa}(Ar(Dr(JSON.stringify(ea))))}function us(ea){return ea.type===ze.Custom&&ea.data.tag==="sessionIdle"}class ds{get sessionId(){return this.$t}get kt(){return this._instance.config.session_recording.session_idle_threshold_ms||3e5}get started(){return this.xt}get Et(){if(!this._instance.sessionManager)throw new Error(rs+" must be started with a valid sessionManager.");return this._instance.sessionManager}get It(){var na,ra;return this.Pt.triggerStatus(this.sessionId)===Wr?6e4:(na=(ra=this._instance.config.session_recording)==null?void 0:ra.full_snapshot_interval_millis)!==null&&na!==void 0?na:os}get Rt(){var na=this._instance.get_property($t);return A(na)?na:null}get Tt(){var na,ra,oa=(na=this.M)==null?void 0:na.data[((ra=this.M)==null?void 0:ra.data.length)-1],{sessionStartTimestamp:aa}=this.Et.checkAndGetSessionAndWindowId(!0);return oa?oa.timestamp-aa:null}get Mt(){var na=!!this._instance.get_property(ft),ra=!this._instance.config.disable_session_recording;return i$1&&na&&ra}get Ct(){var na=!!this._instance.get_property(pt),ra=this._instance.config.enable_recording_console_log;return ra??na}get Ot(){var na,ra,oa,aa,sa,la,ca=this._instance.config.session_recording.captureCanvas,ua=this._instance.get_property(mt),da=(na=(ra=ca?.recordCanvas)!==null&&ra!==void 0?ra:ua?.enabled)!==null&&na!==void 0&&na,pa=(oa=(aa=ca?.canvasFps)!==null&&aa!==void 0?aa:ua?.fps)!==null&&oa!==void 0?oa:4,ha=(sa=(la=ca?.canvasQuality)!==null&&la!==void 0?la:ua?.quality)!==null&&sa!==void 0?sa:.4;if(typeof ha=="string"){var ga=parseFloat(ha);ha=isNaN(ga)?.4:ga}return{enabled:da,fps:Xe(pa,0,12,"canvas recording fps",4),quality:Xe(ha,0,1,"canvas recording quality",.4)}}get Ft(){var na,ra,oa=this._instance.get_property(gt),aa={recordHeaders:(na=this._instance.config.session_recording)==null?void 0:na.recordHeaders,recordBody:(ra=this._instance.config.session_recording)==null?void 0:ra.recordBody},sa=aa?.recordHeaders||oa?.recordHeaders,la=aa?.recordBody||oa?.recordBody,ca=I(this._instance.config.capture_performance)?this._instance.config.capture_performance.network_timing:this._instance.config.capture_performance,ua=!!(A(ca)?ca:oa?.capturePerformance);return sa||la||ua?{recordHeaders:sa,recordBody:la,recordPerformance:ua}:void 0}get At(){var na,ra,oa,aa,sa,la,ca=this._instance.get_property(_t),ua={maskAllInputs:(na=this._instance.config.session_recording)==null?void 0:na.maskAllInputs,maskTextSelector:(ra=this._instance.config.session_recording)==null?void 0:ra.maskTextSelector,blockSelector:(oa=this._instance.config.session_recording)==null?void 0:oa.blockSelector},da=(aa=ua?.maskAllInputs)!==null&&aa!==void 0?aa:ca?.maskAllInputs,pa=(sa=ua?.maskTextSelector)!==null&&sa!==void 0?sa:ca?.maskTextSelector,ha=(la=ua?.blockSelector)!==null&&la!==void 0?la:ca?.blockSelector;return R(da)&&R(pa)&&R(ha)?void 0:{maskAllInputs:da==null||da,maskTextSelector:pa,blockSelector:ha}}get Dt(){var na=this._instance.get_property(bt);return F(na)?na:null}get jt(){var na=this._instance.get_property(wt);return F(na)?na:null}get status(){return this.Lt?this.Nt({receivedDecide:this.Lt,isRecordingEnabled:this.Mt,isSampled:this.Rt,urlTriggerMatching:this.zt,eventTriggerMatching:this.Ut,linkedFlagMatching:this.qt,sessionId:this.sessionId}):Ur}constructor(na){if(this.Nt=ts,this.Lt=!1,this.Bt=[],this.Ht="unknown",this.Wt=Date.now(),this.Pt=new Yr,this.Gt=void 0,this.Jt=void 0,this.Vt=void 0,this.Kt=void 0,this.Yt=void 0,this._forceAllowLocalhostNetworkCapture=!1,this.Xt=()=>{this.Qt()},this.Zt=()=>{this.ti("browser offline",{})},this.ii=()=>{this.ti("browser online",{})},this.ei=()=>{if(a$1!=null&&a$1.visibilityState){var aa="window "+a$1.visibilityState;this.ti(aa,{})}},this._instance=na,this.xt=!1,this.ri="/s/",this.si=void 0,this.Lt=!1,!this._instance.sessionManager)throw ss.error("started without valid sessionManager"),new Error(rs+" started without valid sessionManager. This is a bug.");if(this._instance.config.__preview_experimental_cookieless_mode)throw new Error(rs+" cannot be used with __preview_experimental_cookieless_mode.");this.qt=new Qr(this._instance),this.zt=new Xr(this._instance),this.Ut=new Zr(this._instance);var{sessionId:ra,windowId:oa}=this.Et.checkAndGetSessionAndWindowId();this.$t=ra,this.ni=oa,this.M=this.oi(),this.kt>=this.Et.sessionTimeoutMs&&ss.warn("session_idle_threshold_ms ("+this.kt+") is greater than the session timeout ("+this.Et.sessionTimeoutMs+"). Session will never be detected as idle")}startIfEnabledOrStop(na){this.Mt?(this.ai(na),st(i$1,"beforeunload",this.Xt),st(i$1,"offline",this.Zt),st(i$1,"online",this.ii),st(i$1,"visibilitychange",this.ei),this.li(),this.hi(),O(this.Gt)&&(this.Gt=this._instance.on("eventCaptured",ra=>{try{if(ra.event==="$pageview"){var oa=ra!=null&&ra.properties.$current_url?this.ui(ra?.properties.$current_url):"";if(!oa)return;this.ti("$pageview",{href:oa})}}catch(aa){ss.error("Could not add $pageview to rrweb session",aa)}})),this.Jt||(this.Jt=this.Et.onSessionId((ra,oa,aa)=>{var sa,la,ca,ua;aa&&(this.ti("$session_id_change",{sessionId:ra,windowId:oa,changeReason:aa}),(sa=this._instance)==null||(la=sa.persistence)==null||la.unregister(xt),(ca=this._instance)==null||(ua=ca.persistence)==null||ua.unregister(kt))}))):this.stopRecording()}stopRecording(){var na,ra,oa,aa;this.xt&&this.si&&(this.si(),this.si=void 0,this.xt=!1,i$1?.removeEventListener("beforeunload",this.Xt),i$1?.removeEventListener("offline",this.Zt),i$1?.removeEventListener("online",this.ii),i$1?.removeEventListener("visibilitychange",this.ei),this.oi(),clearInterval(this.di),(na=this.Gt)==null||na.call(this),this.Gt=void 0,(ra=this.Yt)==null||ra.call(this),this.Yt=void 0,(oa=this.Jt)==null||oa.call(this),this.Jt=void 0,(aa=this.Kt)==null||aa.call(this),this.Kt=void 0,this.Ut.stop(),this.zt.stop(),this.qt.stop(),ss.info("stopped"))}vi(){var na;(na=this._instance.persistence)==null||na.unregister($t)}ci(na){var ra,oa=this.$t!==na,aa=this.Dt;if(F(aa)){var sa=this.Rt,la=oa||!A(sa),ca=la?jr(na,aa):sa;la&&(ca?this.fi(Nr):ss.warn("Sample rate ("+aa+") has determined that this sessionId ("+na+") will not be sent to the server."),this.ti("samplingDecisionMade",{sampleRate:aa,isSampled:ca})),(ra=this._instance.persistence)==null||ra.register({[$t]:ca})}else this.vi()}onRemoteConfig(na){var ra,oa,aa,sa;this.ti("$remote_config_received",na),this.pi(na),(ra=na.sessionRecording)!=null&&ra.endpoint&&(this.ri=(sa=na.sessionRecording)==null?void 0:sa.endpoint),this.li(),((oa=na.sessionRecording)==null?void 0:oa.triggerMatchType)==="any"?(this.Nt=is$2,this.Pt=new Vr([this.Ut,this.zt])):(this.Nt=es,this.Pt=new Kr([this.Ut,this.zt])),this._instance.register_for_session({$sdk_debug_replay_remote_trigger_matching_config:(aa=na.sessionRecording)==null?void 0:aa.triggerMatchType}),this.zt.onRemoteConfig(na),this.Ut.onRemoteConfig(na),this.qt.onRemoteConfig(na,(la,ca)=>{this.fi("linked_flag_matched",{flag:la,variant:ca})}),this.Lt=!0,this.startIfEnabledOrStop()}li(){F(this.Dt)&&O(this.Kt)&&(this.Kt=this.Et.onSessionId(na=>{this.ci(na)}))}pi(na){if(this._instance.persistence){var ra,oa=this._instance.persistence,aa=()=>{var sa,la,ca,ua,da,pa,ha,ga,fa,ma=(sa=na.sessionRecording)==null?void 0:sa.sampleRate,va=O(ma)?null:parseFloat(ma);O(va)&&this.vi();var xa=(la=na.sessionRecording)==null?void 0:la.minimumDurationMilliseconds;oa.register({[ft]:!!na.sessionRecording,[pt]:(ca=na.sessionRecording)==null?void 0:ca.consoleLogRecordingEnabled,[gt]:B({capturePerformance:na.capturePerformance},(ua=na.sessionRecording)==null?void 0:ua.networkPayloadCapture),[_t]:(da=na.sessionRecording)==null?void 0:da.masking,[mt]:{enabled:(pa=na.sessionRecording)==null?void 0:pa.recordCanvas,fps:(ha=na.sessionRecording)==null?void 0:ha.canvasFps,quality:(ga=na.sessionRecording)==null?void 0:ga.canvasQuality},[bt]:va,[wt]:R(xa)?null:xa,[yt]:(fa=na.sessionRecording)==null?void 0:fa.scriptConfig})};aa(),(ra=this.Vt)==null||ra.call(this),this.Vt=this.Et.onSessionId(aa)}}log(na,ra){var oa;ra===void 0&&(ra="log"),(oa=this._instance.sessionRecording)==null||oa.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:ra,trace:[],payload:[JSON.stringify(na)]}},timestamp:Date.now()})}ai(na){if(!R(Object.assign)&&!R(Array.from)&&!(this.xt||this._instance.config.disable_session_recording||this._instance.consent.isOptedOut())){var ra;this.xt=!0,this.Et.checkAndGetSessionAndWindowId(),ns()?this.gi():(ra=c$1.__PosthogExtensions__)==null||ra.loadExternalDependency==null||ra.loadExternalDependency(this._instance,this.mi,oa=>{if(oa)return ss.error("could not load recorder",oa);this.gi()}),ss.info("starting"),this.status===zr&&this.fi(na||"recording_initialized")}}get mi(){var na,ra,oa;return((na=this._instance)==null||(ra=na.persistence)==null||(oa=ra.get_property(yt))==null?void 0:oa.script)||"recorder"}bi(na){var ra;return na.type===3&&as.indexOf((ra=na.data)==null?void 0:ra.source)!==-1}wi(na){var ra=this.bi(na);ra||this.Ht||na.timestamp-this.Wt>this.kt&&(this.Ht=!0,clearInterval(this.di),this.ti("sessionIdle",{eventTimestamp:na.timestamp,lastActivityTimestamp:this.Wt,threshold:this.kt,bufferLength:this.M.data.length,bufferSize:this.M.size}),this.Qt());var oa=!1;if(ra&&(this.Wt=na.timestamp,this.Ht)){var aa=this.Ht==="unknown";this.Ht=!1,aa||(this.ti("sessionNoLongerIdle",{reason:"user activity",type:na.type}),oa=!0)}if(!this.Ht){var{windowId:sa,sessionId:la}=this.Et.checkAndGetSessionAndWindowId(!ra,na.timestamp),ca=this.$t!==la,ua=this.ni!==sa;this.ni=sa,this.$t=la,ca||ua?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):oa&&this.yi()}}Si(na){try{return na.rrwebMethod(),!0}catch(ra){return this.Bt.length<10?this.Bt.push({enqueuedAt:na.enqueuedAt||Date.now(),attempt:na.attempt++,rrwebMethod:na.rrwebMethod}):ss.warn("could not emit queued rrweb event.",ra,na),!1}}ti(na,ra){return this.Si(ls(()=>ns().addCustomEvent(na,ra)))}$i(){return this.Si(ls(()=>ns().takeFullSnapshot()))}gi(){var na,ra,oa,aa,sa={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},la=this._instance.config.session_recording;for(var[ca,ua]of Object.entries(la||{}))ca in sa&&(ca==="maskInputOptions"?sa.maskInputOptions=B({password:!0},ua):sa[ca]=ua);this.Ot&&this.Ot.enabled&&(sa.recordCanvas=!0,sa.sampling={canvas:this.Ot.fps},sa.dataURLOptions={type:"image/webp",quality:this.Ot.quality}),this.At&&(sa.maskAllInputs=(ra=this.At.maskAllInputs)===null||ra===void 0||ra,sa.maskTextSelector=(oa=this.At.maskTextSelector)!==null&&oa!==void 0?oa:void 0,sa.blockSelector=(aa=this.At.blockSelector)!==null&&aa!==void 0?aa:void 0);var da=ns();if(da){this.ki=(na=this.ki)!==null&&na!==void 0?na:new Qe(da,{refillRate:this._instance.config.session_recording.__mutationRateLimiterRefillRate,bucketSize:this._instance.config.session_recording.__mutationRateLimiterBucketSize,onBlockedNode:(ha,ga)=>{var fa="Too many mutations on node '"+ha+"'. Rate limiting. This could be due to SVG animations or something similar";ss.info(fa,{node:ga}),this.log(rs+" "+fa,"warn")}});var pa=this.xi();this.si=da(B({emit:ha=>{this.onRRwebEmit(ha)},plugins:pa},sa)),this.Wt=Date.now(),this.Ht=A(this.Ht)?this.Ht:"unknown",this.ti("$session_options",{sessionRecordingOptions:sa,activePlugins:pa.map(ha=>ha?.name)}),this.ti("$posthog_config",{config:this._instance.config})}else ss.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}yi(){if(this.di&&clearInterval(this.di),this.Ht!==!0){var na=this.It;na&&(this.di=setInterval(()=>{this.$i()},na))}}xi(){var na,ra,oa,aa,sa=[],la=(na=c$1.__PosthogExtensions__)==null||(ra=na.rrwebPlugins)==null?void 0:ra.getRecordConsolePlugin;la&&this.Ct&&sa.push(la());var ca=(oa=c$1.__PosthogExtensions__)==null||(aa=oa.rrwebPlugins)==null?void 0:aa.getRecordNetworkPlugin;return this.Ft&&E(ca)&&(!bi.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?sa.push(ca(Ye(this._instance.config,this.Ft))):ss.info("NetworkCapture not started because we are on localhost.")),sa}onRRwebEmit(na){var ra;if(this.Ei(),na&&I(na)){if(na.type===ze.Meta){var oa=this.ui(na.data.href);if(this.Ii=oa,!oa)return;na.data.href=oa}else this.Pi();if(this.zt.checkUrlTriggerConditions(()=>this.Ri(),()=>this.Ti(),ga=>this.Mi(ga)),!this.zt.urlBlocked||(aa=na).type===ze.Custom&&aa.data.tag==="recording paused"){var aa;na.type===ze.FullSnapshot&&this.yi(),na.type===ze.FullSnapshot&&this.Lt&&this.Pt.triggerStatus(this.sessionId)===Wr&&this.oi();var sa=this.ki?this.ki.throttleMutations(na):na;if(sa){var la=function(ga){var fa=ga;if(fa&&I(fa)&&fa.type===6&&I(fa.data)&&fa.data.plugin==="rrweb/console@1"){fa.data.payload.payload.length>10&&(fa.data.payload.payload=fa.data.payload.payload.slice(0,10),fa.data.payload.payload.push("...[truncated]"));for(var ma=[],va=0;va<fa.data.payload.payload.length;va++)fa.data.payload.payload[va]&&fa.data.payload.payload[va].length>2e3?ma.push(fa.data.payload.payload[va].slice(0,2e3)+"...[truncated]"):ma.push(fa.data.payload.payload[va]);return fa.data.payload.payload=ma,ga}return ga}(sa);if(this.wi(la),this.Ht!==!0||us(la)){if(us(la)){var ca=la.data.payload;if(ca){var ua=ca.lastActivityTimestamp,da=ca.threshold;la.timestamp=ua+da}}var pa=(ra=this._instance.config.session_recording.compress_events)===null||ra===void 0||ra?function(ga){if(Le(ga)<1024)return ga;try{if(ga.type===ze.FullSnapshot)return B({},ga,{data:hs(ga.data),cv:"2024-10"});if(ga.type===ze.IncrementalSnapshot&&ga.data.source===Ue.Mutation)return B({},ga,{cv:"2024-10",data:B({},ga.data,{texts:hs(ga.data.texts),attributes:hs(ga.data.attributes),removes:hs(ga.data.removes),adds:hs(ga.data.adds)})});if(ga.type===ze.IncrementalSnapshot&&ga.data.source===Ue.StyleSheetRule)return B({},ga,{cv:"2024-10",data:B({},ga.data,{adds:ga.data.adds?hs(ga.data.adds):void 0,removes:ga.data.removes?hs(ga.data.removes):void 0})})}catch(fa){ss.error("could not compress event - will use uncompressed event",fa)}return ga}(la):la,ha={$snapshot_bytes:Le(pa),$snapshot_data:pa,$session_id:this.$t,$window_id:this.ni};this.status!==Lr?this.Ci(ha):this.oi()}}}}}Pi(){if(!this._instance.config.capture_pageview&&i$1){var na=this.ui(i$1.location.href);this.Ii!==na&&(this.ti("$url_changed",{href:na}),this.Ii=na)}}Ei(){if(this.Bt.length){var na=[...this.Bt];this.Bt=[],na.forEach(ra=>{Date.now()-ra.enqueuedAt<=2e3&&this.Si(ra)})}}ui(na){var ra=this._instance.config.session_recording;if(ra.maskNetworkRequestFn){var oa,aa={url:na};return(oa=aa=ra.maskNetworkRequestFn(aa))==null?void 0:oa.url}return na}oi(){return this.M={size:0,data:[],sessionId:this.$t,windowId:this.ni},this.M}Qt(){this.Oi&&(clearTimeout(this.Oi),this.Oi=void 0);var na=this.jt,ra=this.Tt,oa=F(ra)&&ra>=0,aa=F(na)&&oa&&ra<na;return this.status===Ur||this.status===qr||this.status===Lr||aa?(this.Oi=setTimeout(()=>{this.Qt()},2e3),this.M):(this.M.data.length>0&&Ne(this.M).forEach(sa=>{this.Fi({$snapshot_bytes:sa.size,$snapshot_data:sa.data,$session_id:sa.sessionId,$window_id:sa.windowId,$lib:"web",$lib_version:f.LIB_VERSION})}),this.oi())}Ci(na){var ra,oa=2+(((ra=this.M)==null?void 0:ra.data.length)||0);!this.Ht&&(this.M.size+na.$snapshot_bytes+oa>943718.4||this.M.sessionId!==this.$t)&&(this.M=this.Qt()),this.M.size+=na.$snapshot_bytes,this.M.data.push(na.$snapshot_data),this.Oi||this.Ht||(this.Oi=setTimeout(()=>{this.Qt()},2e3))}Fi(na){this._instance.capture("$snapshot",na,{_url:this._instance.requestRouter.endpointFor("api",this.ri),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}Mi(na){var ra,oa;this.Pt.triggerStatus(this.sessionId)===Wr&&((ra=this._instance)==null||(oa=ra.persistence)==null||oa.register({[na==="url"?kt:xt]:this.$t}),this.Qt(),this.fi(na+"_trigger_matched"))}Ri(){this.zt.urlBlocked||(this.zt.urlBlocked=!0,clearInterval(this.di),ss.info("recording paused due to URL blocker"),this.ti("recording paused",{reason:"url blocker"}))}Ti(){this.zt.urlBlocked&&(this.zt.urlBlocked=!1,this.$i(),this.yi(),this.ti("recording resumed",{reason:"left blocked url"}),ss.info("recording resumed"))}hi(){this.Ut.yt.length!==0&&O(this.Yt)&&(this.Yt=this._instance.on("eventCaptured",na=>{try{this.Ut.yt.includes(na.event)&&this.Mi("event")}catch(ra){ss.error("Could not activate event trigger",ra)}}))}overrideLinkedFlag(){this.qt.linkedFlagSeen=!0,this.$i(),this.fi("linked_flag_overridden")}overrideSampling(){var na;(na=this._instance.persistence)==null||na.register({[$t]:!0}),this.$i(),this.fi("sampling_overridden")}overrideTrigger(na){this.Mi(na)}fi(na,ra){this._instance.register_for_session({$session_recording_start_reason:na}),ss.info(na.replace("_"," "),ra),m(["recording_initialized","session_id_changed"],na)||this.ti(na,ra)}get sdkDebugProperties(){var{sessionStartTimestamp:na}=this.Et.checkAndGetSessionAndWindowId(!0);return{$recording_status:this.status,$sdk_debug_replay_internal_buffer_length:this.M.data.length,$sdk_debug_replay_internal_buffer_size:this.M.size,$sdk_debug_current_session_duration:this.Tt,$sdk_debug_session_start:na}}}var vs=z("[SegmentIntegration]");function cs(ea,na){var ra=ea.config.segment;if(!ra)return na();(function(oa,aa){var sa=oa.config.segment;if(!sa)return aa();var la=ua=>{var da=()=>ua.anonymousId()||ji();oa.config.get_device_id=da,ua.id()&&(oa.register({distinct_id:ua.id(),$device_id:da()}),oa.persistence.set_property(Ft,"identified")),aa()},ca=sa.user();"then"in ca&&E(ca.then)?ca.then(ua=>la(ua)):la(ca)})(ea,()=>{ra.register((oa=>{Promise&&Promise.resolve||vs.warn("This browser does not have Promise support, and can not use the segment integration");var aa=(sa,la)=>{var ca;if(!la)return sa;sa.event.userId||sa.event.anonymousId===oa.get_distinct_id()||(vs.info("No userId set, resetting PostHog"),oa.reset()),sa.event.userId&&sa.event.userId!==oa.get_distinct_id()&&(vs.info("UserId set, identifying with PostHog"),oa.identify(sa.event.userId));var ua=oa.Ai(la,(ca=sa.event.properties)!==null&&ca!==void 0?ca:{},new Date);return sa.event.properties=Object.assign({},ua,sa.event.properties),sa};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:sa=>aa(sa,sa.event.event),page:sa=>aa(sa,"$pageview"),identify:sa=>aa(sa,"$identify"),screen:sa=>aa(sa,"$screen")}})(ea)).then(()=>{na()})})}var fs="posthog-js";function ps(ea,na){var{organization:ra,projectId:oa,prefix:aa,severityAllowList:sa=["error"]}=na===void 0?{}:na;return la=>{var ca,ua,da,pa,ha;if(!(sa==="*"||sa.includes(la.level))||!ea.__loaded)return la;la.tags||(la.tags={});var ga=ea.requestRouter.endpointFor("ui","/project/"+ea.config.token+"/person/"+ea.get_distinct_id());la.tags["PostHog Person URL"]=ga,ea.sessionRecordingStarted()&&(la.tags["PostHog Recording URL"]=ea.get_session_replay_url({withTimestamp:!0}));var fa=((ca=la.exception)==null?void 0:ca.values)||[],ma=fa.map(xa=>B({},xa,{stacktrace:xa.stacktrace?B({},xa.stacktrace,{type:"raw",frames:(xa.stacktrace.frames||[]).map(ya=>B({},ya,{platform:"web:javascript"}))}):void 0})),va={$exception_message:((ua=fa[0])==null?void 0:ua.value)||la.message,$exception_type:(da=fa[0])==null?void 0:da.type,$exception_personURL:ga,$exception_level:la.level,$exception_list:ma,$sentry_event_id:la.event_id,$sentry_exception:la.exception,$sentry_exception_message:((pa=fa[0])==null?void 0:pa.value)||la.message,$sentry_exception_type:(ha=fa[0])==null?void 0:ha.type,$sentry_tags:la.tags};return ra&&oa&&(va.$sentry_url=(aa||"https://sentry.io/organizations/")+ra+"/issues/?project="+oa+"&query="+la.event_id),ea.exceptions.sendExceptionEvent(va),la}}class gs{constructor(na,ra,oa,aa,sa){this.name=fs,this.setupOnce=function(la){la(ps(na,{organization:ra,projectId:oa,prefix:aa,severityAllowList:sa}))}}}var _s,ms=i$1!=null&&i$1.location?ki(i$1.location.hash,"__posthog")||ki(location.hash,"state"):null,bs="_postHogToolbarParams",ws=z("[Toolbar]");(function(ea){ea[ea.UNINITIALIZED=0]="UNINITIALIZED",ea[ea.LOADING=1]="LOADING",ea[ea.LOADED=2]="LOADED"})(_s||(_s={}));class ys{constructor(na){this.instance=na}Di(na){c$1.ph_toolbar_state=na}ji(){var na;return(na=c$1.ph_toolbar_state)!==null&&na!==void 0?na:_s.UNINITIALIZED}maybeLoadToolbar(na,ra,oa){var aa,sa;if(na===void 0&&(na=void 0),ra===void 0&&(ra=void 0),oa===void 0&&(oa=void 0),!i$1||!a$1)return!1;na=(aa=na)!==null&&aa!==void 0?aa:i$1.location,oa=(sa=oa)!==null&&sa!==void 0?sa:i$1.history;try{if(!ra){try{i$1.localStorage.setItem("test","test"),i$1.localStorage.removeItem("test")}catch{return!1}ra=i$1?.localStorage}var la,ca=ms||ki(na.hash,"__posthog")||ki(na.hash,"state"),ua=ca?X(()=>JSON.parse(atob(decodeURIComponent(ca))))||X(()=>JSON.parse(decodeURIComponent(ca))):null;return ua&&ua.action==="ph_authorize"?((la=ua).source="url",la&&Object.keys(la).length>0&&(ua.desiredHash?na.hash=ua.desiredHash:oa?oa.replaceState(oa.state,"",na.pathname+na.search):na.hash="")):((la=JSON.parse(ra.getItem(bs)||"{}")).source="localstorage",delete la.userIntent),!(!la.token||this.instance.config.token!==la.token)&&(this.loadToolbar(la),!0)}catch{return!1}}Li(na){var ra=c$1.ph_load_toolbar||c$1.ph_load_editor;!O(ra)&&E(ra)?ra(na,this.instance):ws.warn("No toolbar load function found")}loadToolbar(na){var ra=!(a$1==null||!a$1.getElementById(Ut));if(!i$1||ra)return!1;var oa=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,aa=B({token:this.instance.config.token},na,{apiURL:this.instance.requestRouter.endpointFor("ui")},oa?{instrument:!1}:{});if(i$1.localStorage.setItem(bs,JSON.stringify(B({},aa,{source:void 0}))),this.ji()===_s.LOADED)this.Li(aa);else if(this.ji()===_s.UNINITIALIZED){var sa;this.Di(_s.LOADING),(sa=c$1.__PosthogExtensions__)==null||sa.loadExternalDependency==null||sa.loadExternalDependency(this.instance,"toolbar",la=>{if(la)return ws.error("[Toolbar] Failed to load",la),void this.Di(_s.UNINITIALIZED);this.Di(_s.LOADED),this.Li(aa)}),st(i$1,"turbolinks:load",()=>{this.Di(_s.UNINITIALIZED),this.loadToolbar(aa)})}return!0}Ni(na){return this.loadToolbar(na)}maybeLoadEditor(na,ra,oa){return na===void 0&&(na=void 0),ra===void 0&&(ra=void 0),oa===void 0&&(oa=void 0),this.maybeLoadToolbar(na,ra,oa)}}var Ss=z("[TracingHeaders]");class $s{constructor(na){this.zi=void 0,this.Ui=void 0,this.V=()=>{var ra,oa,aa,sa;R(this.zi)&&((ra=c$1.__PosthogExtensions__)==null||(oa=ra.tracingHeadersPatchFns)==null||oa._patchXHR(this._instance.sessionManager)),R(this.Ui)&&((aa=c$1.__PosthogExtensions__)==null||(sa=aa.tracingHeadersPatchFns)==null||sa._patchFetch(this._instance.sessionManager))},this._instance=na}G(na){var ra,oa;(ra=c$1.__PosthogExtensions__)!=null&&ra.tracingHeadersPatchFns&&na(),(oa=c$1.__PosthogExtensions__)==null||oa.loadExternalDependency==null||oa.loadExternalDependency(this._instance,"tracing-headers",aa=>{if(aa)return Ss.error("failed to load script",aa);na()})}startIfEnabledOrStop(){var na,ra;this._instance.config.__add_tracing_headers?this.G(this.V):((na=this.zi)==null||na.call(this),(ra=this.Ui)==null||ra.call(this),this.zi=void 0,this.Ui=void 0)}}var ks=z("[Web Vitals]"),xs=9e5;class Es{constructor(na){var ra;this.qi=!1,this.i=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Bi=()=>{clearTimeout(this.Hi),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce((oa,aa)=>B({},oa,{["$web_vitals_"+aa.name+"_event"]:B({},aa),["$web_vitals_"+aa.name+"_value"]:aa.value}),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Wi=oa=>{var aa,sa=(aa=this._instance.sessionManager)==null?void 0:aa.checkAndGetSessionAndWindowId(!0);if(R(sa))ks.error("Could not read session ID. Dropping metrics!");else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var la=this.Gi();R(la)||(O(oa?.name)||O(oa?.value)?ks.error("Invalid metric received",oa):this.Ji&&oa.value>=this.Ji?ks.error("Ignoring metric with value >= "+this.Ji,oa):(this.M.url!==la&&(this.Bi(),this.Hi=setTimeout(this.Bi,this.flushToCaptureTimeoutMs)),R(this.M.url)&&(this.M.url=la),this.M.firstMetricTimestamp=R(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,oa.attribution&&oa.attribution.interactionTargetElement&&(oa.attribution.interactionTargetElement=void 0),this.M.metrics.push(B({},oa,{$current_url:la,$session_id:sa.sessionId,$window_id:sa.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.Bi()))}},this.V=()=>{var oa,aa,sa,la,ca=c$1.__PosthogExtensions__;R(ca)||R(ca.postHogWebVitalsCallbacks)||({onLCP:oa,onCLS:aa,onFCP:sa,onINP:la}=ca.postHogWebVitalsCallbacks),oa&&aa&&sa&&la?(this.allowedMetrics.indexOf("LCP")>-1&&oa(this.Wi.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&aa(this.Wi.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&sa(this.Wi.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&la(this.Wi.bind(this)),this.i=!0):ks.error("web vitals callbacks not loaded - not starting")},this._instance=na,this.qi=!((ra=this._instance.persistence)==null||!ra.props[dt]),this.startIfEnabled()}get allowedMetrics(){var na,ra,oa=I(this._instance.config.capture_performance)?(na=this._instance.config.capture_performance)==null?void 0:na.web_vitals_allowed_metrics:void 0;return R(oa)?((ra=this._instance.persistence)==null?void 0:ra.props[ct])||["CLS","FCP","INP","LCP"]:oa}get flushToCaptureTimeoutMs(){return(I(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Ji(){var na=I(this._instance.config.capture_performance)&&F(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:xs;return 0<na&&na<=6e4?xs:na}get isEnabled(){var na=l$1?.protocol;if(na!=="http:"&&na!=="https:")return ks.info("Web Vitals are disabled on non-http/https protocols"),!1;var ra=I(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:A(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return A(ra)?ra:this.qi}startIfEnabled(){this.isEnabled&&!this.i&&(ks.info("enabled, starting..."),this.G(this.V))}onRemoteConfig(na){var ra=I(na.capturePerformance)&&!!na.capturePerformance.web_vitals,oa=I(na.capturePerformance)?na.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[dt]:ra}),this._instance.persistence.register({[ct]:oa})),this.qi=ra,this.startIfEnabled()}G(na){var ra,oa;(ra=c$1.__PosthogExtensions__)!=null&&ra.postHogWebVitalsCallbacks&&na(),(oa=c$1.__PosthogExtensions__)==null||oa.loadExternalDependency==null||oa.loadExternalDependency(this._instance,"web-vitals",aa=>{aa?ks.error("failed to load script",aa):na()})}Gi(){var na=i$1?i$1.location.href:void 0;return na||ks.error("Could not determine current URL"),na}}var Is=z("[Heatmaps]");function Ps(ea){return I(ea)&&"clientX"in ea&&"clientY"in ea&&F(ea.clientX)&&F(ea.clientY)}class Rs{constructor(na){var ra;this.rageclicks=new mi,this.qi=!1,this.i=!1,this.Vi=null,this.instance=na,this.qi=!((ra=this.instance.persistence)==null||!ra.props[ht])}get flushIntervalMilliseconds(){var na=5e3;return I(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(na=this.instance.config.capture_heatmaps.flush_interval_milliseconds),na}get isEnabled(){return R(this.instance.config.capture_heatmaps)?R(this.instance.config.enable_heatmaps)?this.qi:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.i)return;Is.info("starting..."),this.Ki(),this.Vi=setInterval(this.Yi.bind(this),this.flushIntervalMilliseconds)}else{var na,ra;clearInterval((na=this.Vi)!==null&&na!==void 0?na:void 0),(ra=this.Xi)==null||ra.stop(),this.getAndClearBuffer()}}onRemoteConfig(na){var ra=!!na.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ht]:ra}),this.qi=ra,this.startIfEnabled()}getAndClearBuffer(){var na=this.M;return this.M=void 0,na}Qi(na){this.Zi(na.originalEvent,"deadclick")}Ki(){i$1&&a$1&&(st(i$1,"beforeunload",this.Yi.bind(this)),st(a$1,"click",na=>this.Zi(na||i$1?.event),{capture:!0}),st(a$1,"mousemove",na=>this.te(na||i$1?.event),{capture:!0}),this.Xi=new re(this.instance,ie,this.Qi.bind(this)),this.Xi.startIfEnabled(),this.i=!0)}ie(na,ra){var oa=this.instance.scrollManager.scrollY(),aa=this.instance.scrollManager.scrollX(),sa=this.instance.scrollManager.scrollElement(),la=function(ca,ua,da){for(var pa=ca;pa&&Wt(pa)&&!Gt(pa,"body");){if(pa===da)return!1;if(m(ua,i$1?.getComputedStyle(pa).position))return!0;pa=ei(pa)}return!1}(ti(na),["fixed","sticky"],sa);return{x:na.clientX+(la?0:aa),y:na.clientY+(la?0:oa),target_fixed:la,type:ra}}Zi(na,ra){var oa;if(ra===void 0&&(ra="click"),!Ht(na.target)&&Ps(na)){var aa=this.ie(na,ra);(oa=this.rageclicks)!=null&&oa.isRageClick(na.clientX,na.clientY,new Date().getTime())&&this.ee(B({},aa,{type:"rageclick"})),this.ee(aa)}}te(na){!Ht(na.target)&&Ps(na)&&(clearTimeout(this.re),this.re=setTimeout(()=>{this.ee(this.ie(na,"mousemove"))},500))}ee(na){if(i$1){var ra=i$1.location.href;this.M=this.M||{},this.M[ra]||(this.M[ra]=[]),this.M[ra].push(na)}}Yi(){this.M&&!P(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Ts{constructor(na){this._instance=na}doPageView(na,ra){var oa,aa=this.se(na,ra);return this.ne={pathname:(oa=i$1?.location.pathname)!==null&&oa!==void 0?oa:"",pageViewId:ra,timestamp:na},this._instance.scrollManager.resetContext(),aa}doPageLeave(na){var ra;return this.se(na,(ra=this.ne)==null?void 0:ra.pageViewId)}doEvent(){var na;return{$pageview_id:(na=this.ne)==null?void 0:na.pageViewId}}se(na,ra){var oa=this.ne;if(!oa)return{$pageview_id:ra};var aa={$pageview_id:ra,$prev_pageview_id:oa.pageViewId},sa=this._instance.scrollManager.getContext();if(sa&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:la,lastScrollY:ca,maxScrollY:ua,maxContentHeight:da,lastContentY:pa,maxContentY:ha}=sa;if(!(R(la)||R(ca)||R(ua)||R(da)||R(pa)||R(ha))){la=Math.ceil(la),ca=Math.ceil(ca),ua=Math.ceil(ua),da=Math.ceil(da),pa=Math.ceil(pa),ha=Math.ceil(ha);var ga=la<=1?1:Xe(ca/la,0,1),fa=la<=1?1:Xe(ua/la,0,1),ma=da<=1?1:Xe(pa/da,0,1),va=da<=1?1:Xe(ha/da,0,1);aa=V(aa,{$prev_pageview_last_scroll:ca,$prev_pageview_last_scroll_percentage:ga,$prev_pageview_max_scroll:ua,$prev_pageview_max_scroll_percentage:fa,$prev_pageview_last_content:pa,$prev_pageview_last_content_percentage:ma,$prev_pageview_max_content:ha,$prev_pageview_max_content_percentage:va})}}return oa.pathname&&(aa.$prev_pageview_pathname=oa.pathname),oa.timestamp&&(aa.$prev_pageview_duration=(na.getTime()-oa.timestamp.getTime())/1e3),aa}}class Ms{constructor(na){this._instance=na}sendExceptionEvent(na){this._instance.capture("$exception",na,{_noTruncate:!0,_batchKey:"exceptionEvent"})}}var Cs="Mobile",Os="iOS",Fs="Android",As="Tablet",Ds=Fs+" "+As,js="iPad",Ls="Apple",Ns=Ls+" Watch",zs="Safari",Us="BlackBerry",qs="Samsung",Bs=qs+"Browser",Hs=qs+" Internet",Ws="Chrome",Gs=Ws+" OS",Js=Ws+" "+Os,Vs="Internet Explorer",Ks=Vs+" "+Cs,Ys="Opera",Xs=Ys+" Mini",Qs="Edge",Zs="Microsoft "+Qs,tn="Firefox",en=tn+" "+Os,rn="Nintendo",sn="PlayStation",nn="Xbox",on=Fs+" "+Cs,an=Cs+" "+zs,ln="Windows",hn=ln+" Phone",un="Nokia",dn="Ouya",vn="Generic",cn=vn+" "+Cs.toLowerCase(),fn=vn+" "+As.toLowerCase(),pn="Konqueror",gn="(\\d+(\\.\\d+)?)",_n=new RegExp("Version/"+gn),mn=new RegExp(nn,"i"),bn=new RegExp(sn+" \\w+","i"),wn=new RegExp(rn+" \\w+","i"),yn=new RegExp(Us+"|PlayBook|BB10","i"),Sn={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},$n=(ea,na)=>na&&m(na,Ls)||function(ra){return m(ra,zs)&&!m(ra,Ws)&&!m(ra,Fs)}(ea),kn=function(ea,na){return na=na||"",m(ea," OPR/")&&m(ea,"Mini")?Xs:m(ea," OPR/")?Ys:yn.test(ea)?Us:m(ea,"IE"+Cs)||m(ea,"WPDesktop")?Ks:m(ea,Bs)?Hs:m(ea,Qs)||m(ea,"Edg/")?Zs:m(ea,"FBIOS")?"Facebook "+Cs:m(ea,"UCWEB")||m(ea,"UCBrowser")?"UC Browser":m(ea,"CriOS")?Js:m(ea,"CrMo")||m(ea,Ws)?Ws:m(ea,Fs)&&m(ea,zs)?on:m(ea,"FxiOS")?en:m(ea.toLowerCase(),pn.toLowerCase())?pn:$n(ea,na)?m(ea,Cs)?an:zs:m(ea,tn)?tn:m(ea,"MSIE")||m(ea,"Trident/")?Vs:m(ea,"Gecko")?tn:""},xn={[Ks]:[new RegExp("rv:"+gn)],[Zs]:[new RegExp(Qs+"?\\/"+gn)],[Ws]:[new RegExp("("+Ws+"|CrMo)\\/"+gn)],[Js]:[new RegExp("CriOS\\/"+gn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+gn)],[zs]:[_n],[an]:[_n],[Ys]:[new RegExp("(Opera|OPR)\\/"+gn)],[tn]:[new RegExp(tn+"\\/"+gn)],[en]:[new RegExp("FxiOS\\/"+gn)],[pn]:[new RegExp("Konqueror[:/]?"+gn,"i")],[Us]:[new RegExp(Us+" "+gn),_n],[on]:[new RegExp("android\\s"+gn,"i")],[Hs]:[new RegExp(Bs+"\\/"+gn)],[Vs]:[new RegExp("(rv:|MSIE )"+gn)],Mozilla:[new RegExp("rv:"+gn)]},En=function(ea,na){var ra=kn(ea,na),oa=xn[ra];if(R(oa))return null;for(var aa=0;aa<oa.length;aa++){var sa=oa[aa],la=ea.match(sa);if(la)return parseFloat(la[la.length-2])}return null},In=[[new RegExp(nn+"; "+nn+" (.*?)[);]","i"),ea=>[nn,ea&&ea[1]||""]],[new RegExp(rn,"i"),[rn,""]],[new RegExp(sn,"i"),[sn,""]],[yn,[Us,""]],[new RegExp(ln,"i"),(ea,na)=>{if(/Phone/.test(na)||/WPDesktop/.test(na))return[hn,""];if(new RegExp(Cs).test(na)&&!/IEMobile\b/.test(na))return[ln+" "+Cs,""];var ra=/Windows NT ([0-9.]+)/i.exec(na);if(ra&&ra[1]){var oa=ra[1],aa=Sn[oa]||"";return/arm/i.test(na)&&(aa="RT"),[ln,aa]}return[ln,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,ea=>{if(ea&&ea[3]){var na=[ea[3],ea[4],ea[5]||"0"];return[Os,na.join(".")]}return[Os,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,ea=>{var na="";return ea&&ea.length>=3&&(na=R(ea[2])?ea[3]:ea[2]),["watchOS",na]}],[new RegExp("("+Fs+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Fs+")","i"),ea=>{if(ea&&ea[2]){var na=[ea[2],ea[3],ea[4]||"0"];return[Fs,na.join(".")]}return[Fs,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,ea=>{var na=["Mac OS X",""];if(ea&&ea[1]){var ra=[ea[1],ea[2],ea[3]||"0"];na[1]=ra.join(".")}return na}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Gs,""]],[/Linux|debian/i,["Linux",""]]],Pn=function(ea){return wn.test(ea)?rn:bn.test(ea)?sn:mn.test(ea)?nn:new RegExp(dn,"i").test(ea)?dn:new RegExp("("+hn+"|WPDesktop)","i").test(ea)?hn:/iPad/.test(ea)?js:/iPod/.test(ea)?"iPod Touch":/iPhone/.test(ea)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(ea)?Ns:yn.test(ea)?Us:/(kobo)\s(ereader|touch)/i.test(ea)?"Kobo":new RegExp(un,"i").test(ea)?un:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(ea)||/(kf[a-z]+)( bui|\)).+silk\//i.test(ea)?"Kindle Fire":/(Android|ZTE)/i.test(ea)?!new RegExp(Cs).test(ea)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(ea)?/pixel[\daxl ]{1,6}/i.test(ea)&&!/pixel c/i.test(ea)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(ea)||/lmy47v/i.test(ea)&&!/QTAQZ3/i.test(ea)?Fs:Ds:Fs:new RegExp("(pda|"+Cs+")","i").test(ea)?cn:new RegExp(As,"i").test(ea)&&!new RegExp(As+" pc","i").test(ea)?fn:""},Rn="https?://(.*)",Tn=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Mn=K(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Tn),Cn="<masked>";function On(ea,na,ra){if(!a$1)return{};var oa=na?K([],Tn,ra||[]):[];return Fn($i(a$1.URL,oa,Cn),ea)}function Fn(ea,na){var ra=Mn.concat(na||[]),oa={};return J(ra,function(aa){var sa=Si(ea,aa);oa[aa]=sa||null}),oa}function An(ea){var na=function(sa){return sa?sa.search(Rn+"google.([^/?]*)")===0?"google":sa.search(Rn+"bing.com")===0?"bing":sa.search(Rn+"yahoo.com")===0?"yahoo":sa.search(Rn+"duckduckgo.com")===0?"duckduckgo":null:null}(ea),ra=na!="yahoo"?"q":"p",oa={};if(!C(na)){oa.$search_engine=na;var aa=a$1?Si(a$1.referrer,ra):"";aa.length&&(oa.ph_keyword=aa)}return oa}function Dn(){return navigator.language||navigator.userLanguage}function jn(){return a$1?.referrer||"$direct"}function Ln(ea,na){var ra=ea?K([],Tn,na||[]):[],oa=l$1?.href.substring(0,1e3);return{r:jn().substring(0,1e3),u:oa?$i(oa,ra,Cn):void 0}}function Nn(ea){var na,{r:ra,u:oa}=ea,aa={$referrer:ra,$referring_domain:ra==null?void 0:ra=="$direct"?"$direct":(na=wi(ra))==null?void 0:na.host};if(oa){aa.$current_url=oa;var sa=wi(oa);aa.$host=sa?.host,aa.$pathname=sa?.pathname;var la=Fn(oa);V(aa,la)}if(ra){var ca=An(ra);V(aa,ca)}return aa}function zn(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Un(){try{return new Date().getTimezoneOffset()}catch{return}}function qn(ea,na){if(!v)return{};var ra,oa,aa,sa=ea?K([],Tn,na||[]):[],[la,ca]=function(ua){for(var da=0;da<In.length;da++){var[pa,ha]=In[da],ga=pa.exec(ua),fa=ga&&(E(ha)?ha(ga,ua):ha);if(fa)return fa}return["",""]}(v);return V(Z({$os:la,$os_version:ca,$browser:kn(v,navigator.vendor),$device:Pn(v),$device_type:(oa=v,aa=Pn(oa),aa===js||aa===Ds||aa==="Kobo"||aa==="Kindle Fire"||aa===fn?As:aa===rn||aa===nn||aa===sn||aa===dn?"Console":aa===Ns?"Wearable":aa?Cs:"Desktop"),$timezone:zn(),$timezone_offset:Un()}),{$current_url:$i(l$1?.href,sa,Cn),$host:l$1?.host,$pathname:l$1?.pathname,$raw_user_agent:v.length>1e3?v.substring(0,997)+"...":v,$browser_version:En(v,navigator.vendor),$browser_language:Dn(),$browser_language_prefix:(ra=Dn(),typeof ra=="string"?ra.split("-")[0]:void 0),$screen_height:i$1?.screen.height,$screen_width:i$1?.screen.width,$viewport_height:i$1?.innerHeight,$viewport_width:i$1?.innerWidth,$lib:"web",$lib_version:f.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var Bn,Hn=z("[FeatureFlags]"),Wn="$active_feature_flags",Gn="$override_feature_flags",Jn="$feature_flag_payloads",Vn="$override_feature_flag_payloads",Kn="$feature_flag_request_id",Yn=ea=>{var na={};for(var[ra,oa]of Y(ea||{}))oa&&(na[ra]=oa);return na},Xn=ea=>{var na=ea.flags;return na?(ea.featureFlags=Object.fromEntries(Object.keys(na).map(ra=>{var oa;return[ra,(oa=na[ra].variant)!==null&&oa!==void 0?oa:na[ra].enabled]})),ea.featureFlagPayloads=Object.fromEntries(Object.keys(na).filter(ra=>na[ra].enabled).filter(ra=>{var oa;return(oa=na[ra].metadata)==null?void 0:oa.payload}).map(ra=>{var oa;return[ra,(oa=na[ra].metadata)==null?void 0:oa.payload]}))):Hn.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),ea};(function(ea){ea.FeatureFlags="feature_flags",ea.Recordings="recordings"})(Bn||(Bn={}));class Qn{constructor(na){this.oe=!1,this.ae=!1,this.le=!1,this.he=!1,this.ue=!1,this.de=!1,this.ve=!1,this._instance=na,this.featureFlagEventHandlers=[]}decide(){if(this._instance.config.__preview_remote_config)this.de=!0;else{var na=!this.ce&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.fe({disableFlags:na})}}get hasLoadedFlags(){return this.ae}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var na=this._instance.get_property(Pt),ra=this._instance.get_property(Gn),oa=this._instance.get_property(Vn);if(!oa&&!ra)return na||{};var aa=V({},na||{}),sa=[...new Set([...Object.keys(oa||{}),...Object.keys(ra||{})])];for(var la of sa){var ca,ua,da=aa[la],pa=ra?.[la],ha=R(pa)?(ca=da?.enabled)!==null&&ca!==void 0&&ca:!!pa,ga=R(pa)?da.variant:typeof pa=="string"?pa:void 0,fa=oa?.[la],ma=B({},da,{enabled:ha,variant:ha?ga??da?.variant:void 0});ha!==da?.enabled&&(ma.original_enabled=da?.enabled),ga!==da?.variant&&(ma.original_variant=da?.variant),fa&&(ma.metadata=B({},da?.metadata,{payload:fa,original_payload:da==null||(ua=da.metadata)==null?void 0:ua.payload})),aa[la]=ma}return this.oe||(Hn.warn(" Overriding feature flag details!",{flagDetails:na,overriddenPayloads:oa,finalDetails:aa}),this.oe=!0),aa}getFlagVariants(){var na=this._instance.get_property(Et),ra=this._instance.get_property(Gn);if(!ra)return na||{};for(var oa=V({},na),aa=Object.keys(ra),sa=0;sa<aa.length;sa++)oa[aa[sa]]=ra[aa[sa]];return this.oe||(Hn.warn(" Overriding feature flags!",{enabledFlags:na,overriddenFlags:ra,finalFlags:oa}),this.oe=!0),oa}getFlagPayloads(){var na=this._instance.get_property(Jn),ra=this._instance.get_property(Vn);if(!ra)return na||{};for(var oa=V({},na||{}),aa=Object.keys(ra),sa=0;sa<aa.length;sa++)oa[aa[sa]]=ra[aa[sa]];return this.oe||(Hn.warn(" Overriding feature flag payloads!",{flagPayloads:na,overriddenPayloads:ra,finalPayloads:oa}),this.oe=!0),oa}reloadFeatureFlags(){this.he||this._instance.config.advanced_disable_feature_flags||this.ce||(this.ce=setTimeout(()=>{this.fe()},5))}pe(){clearTimeout(this.ce),this.ce=void 0}ensureFlagsLoaded(){this.ae||this.le||this.ce||this.reloadFeatureFlags()}setAnonymousDistinctId(na){this.$anon_distinct_id=na}setReloadingPaused(na){this.he=na}fe(na){var ra;if(this.pe(),!this._instance.config.advanced_disable_decide)if(this.le)this.ue=!0;else{var oa={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:B({},((ra=this._instance.persistence)==null?void 0:ra.get_initial_props())||{},this._instance.get_property(Rt)||{}),group_properties:this._instance.get_property(Tt)};(na!=null&&na.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(oa.disable_flags=!0);var aa=this._instance.config.__preview_flags_v2&&this._instance.config.__preview_remote_config;aa&&(oa.timezone=zn()),this.le=!0,this._instance.ge({method:"POST",url:this._instance.requestRouter.endpointFor("api",aa?"/flags/?v=2":"/decide/?v=4"),data:oa,compression:this._instance.config.disable_compression?void 0:t$1.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:sa=>{var la,ca,ua,da=!0;sa.statusCode===200&&(this.ue||(this.$anon_distinct_id=void 0),da=!1),this.le=!1,this.de||(this.de=!0,this._instance._e((ua=sa.json)!==null&&ua!==void 0?ua:{})),oa.disable_flags&&!this.ue||(this.ve=!da,sa.json&&(la=sa.json.quotaLimited)!=null&&la.includes(Bn.FeatureFlags)?Hn.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(this.receivedFeatureFlags((ca=sa.json)!==null&&ca!==void 0?ca:{},da),this.ue&&(this.ue=!1,this.fe())))}})}}getFeatureFlag(na,ra){if(ra===void 0&&(ra={}),this.ae||this.getFlags()&&this.getFlags().length>0){var oa=this.getFlagVariants()[na],aa=""+oa,sa=this._instance.get_property(Kn)||void 0,la=this._instance.get_property(Ot)||{};if((ra.send_event||!("send_event"in ra))&&(!(na in la)||!la[na].includes(aa))){var ca,ua,da,pa,ha,ga,fa,ma,va,xa,ya;x(la[na])?la[na].push(aa):la[na]=[aa],(ca=this._instance.persistence)==null||ca.register({[Ot]:la});var Aa=this.getFeatureFlagDetails(na),Ca={$feature_flag:na,$feature_flag_response:oa,$feature_flag_payload:this.getFeatureFlagPayload(na)||null,$feature_flag_request_id:sa,$feature_flag_bootstrapped_response:((ua=this._instance.config.bootstrap)==null||(da=ua.featureFlags)==null?void 0:da[na])||null,$feature_flag_bootstrapped_payload:((pa=this._instance.config.bootstrap)==null||(ha=pa.featureFlagPayloads)==null?void 0:ha[na])||null,$used_bootstrap_value:!this.ve};R(Aa==null||(ga=Aa.metadata)==null?void 0:ga.version)||(Ca.$feature_flag_version=Aa.metadata.version);var Sa,wa=(fa=Aa==null||(ma=Aa.reason)==null?void 0:ma.description)!==null&&fa!==void 0?fa:Aa==null||(va=Aa.reason)==null?void 0:va.code;wa&&(Ca.$feature_flag_reason=wa),Aa!=null&&(xa=Aa.metadata)!=null&&xa.id&&(Ca.$feature_flag_id=Aa.metadata.id),R(Aa?.original_variant)&&R(Aa?.original_enabled)||(Ca.$feature_flag_original_response=R(Aa.original_variant)?Aa.original_enabled:Aa.original_variant),Aa!=null&&(ya=Aa.metadata)!=null&&ya.original_payload&&(Ca.$feature_flag_original_payload=Aa==null||(Sa=Aa.metadata)==null?void 0:Sa.original_payload),this._instance.capture("$feature_flag_called",Ca)}return oa}Hn.warn('getFeatureFlag for key "'+na+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(na){return this.getFlagsWithDetails()[na]}getFeatureFlagPayload(na){return this.getFlagPayloads()[na]}getRemoteConfigPayload(na,ra){var oa=this._instance.config.token;this._instance.ge({method:"POST",url:this._instance.requestRouter.endpointFor("api","/decide/?v=4"),data:{distinct_id:this._instance.get_distinct_id(),token:oa},compression:this._instance.config.disable_compression?void 0:t$1.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:aa=>{var sa,la=(sa=aa.json)==null?void 0:sa.featureFlagPayloads;ra(la?.[na]||void 0)}})}isFeatureEnabled(na,ra){if(ra===void 0&&(ra={}),this.ae||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(na,ra);Hn.warn('isFeatureEnabled for key "'+na+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(na){this.featureFlagEventHandlers.push(na)}removeFeatureFlagsHandler(na){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(ra=>ra!==na)}receivedFeatureFlags(na,ra){if(this._instance.persistence){this.ae=!0;var oa=this.getFlagVariants(),aa=this.getFlagPayloads(),sa=this.getFlagsWithDetails();(function(la,ca,ua,da,pa){ua===void 0&&(ua={}),da===void 0&&(da={}),pa===void 0&&(pa={});var ha=Xn(la),ga=ha.flags,fa=ha.featureFlags,ma=ha.featureFlagPayloads;if(fa){var va=la.requestId;if(x(fa)){Hn.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var xa={};if(fa)for(var ya=0;ya<fa.length;ya++)xa[fa[ya]]=!0;ca&&ca.register({[Wn]:fa,[Et]:xa})}else{var Aa=fa,Ca=ma,Sa=ga;la.errorsWhileComputingFlags&&(Aa=B({},ua,Aa),Ca=B({},da,Ca),Sa=B({},pa,Sa)),ca&&ca.register(B({[Wn]:Object.keys(Yn(Aa)),[Et]:Aa||{},[Jn]:Ca||{},[Pt]:Sa||{}},va?{[Kn]:va}:{}))}}})(na,this._instance.persistence,oa,aa,sa),this.me(ra)}}override(na,ra){ra===void 0&&(ra=!1),Hn.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:na,suppressWarning:ra})}overrideFeatureFlags(na){if(!this._instance.__loaded||!this._instance.persistence)return Hn.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(na===!1)return this._instance.persistence.unregister(Gn),this._instance.persistence.unregister(Vn),void this.me();if(na&&typeof na=="object"&&("flags"in na||"payloads"in na)){var ra,oa=na;if(this.oe=!!((ra=oa.suppressWarning)!==null&&ra!==void 0&&ra),"flags"in oa){if(oa.flags===!1)this._instance.persistence.unregister(Gn);else if(oa.flags)if(x(oa.flags)){for(var aa={},sa=0;sa<oa.flags.length;sa++)aa[oa.flags[sa]]=!0;this._instance.persistence.register({[Gn]:aa})}else this._instance.persistence.register({[Gn]:oa.flags})}return"payloads"in oa&&(oa.payloads===!1?this._instance.persistence.unregister(Vn):oa.payloads&&this._instance.persistence.register({[Vn]:oa.payloads})),void this.me()}this.me()}onFeatureFlags(na){if(this.addFeatureFlagsHandler(na),this.ae){var{flags:ra,flagVariants:oa}=this.be();na(ra,oa)}return()=>this.removeFeatureFlagsHandler(na)}updateEarlyAccessFeatureEnrollment(na,ra){var oa,aa=(this._instance.get_property(It)||[]).find(ua=>ua.flagKey===na),sa={["$feature_enrollment/"+na]:ra},la={$feature_flag:na,$feature_enrollment:ra,$set:sa};aa&&(la.$early_access_feature_name=aa.name),this._instance.capture("$feature_enrollment_update",la),this.setPersonPropertiesForFlags(sa,!1);var ca=B({},this.getFlagVariants(),{[na]:ra});(oa=this._instance.persistence)==null||oa.register({[Wn]:Object.keys(Yn(ca)),[Et]:ca}),this.me()}getEarlyAccessFeatures(na,ra,oa){ra===void 0&&(ra=!1);var aa=this._instance.get_property(It),sa=oa?"&"+oa.map(la=>"stage="+la).join("&"):"";if(aa&&!ra)return na(aa);this._instance.ge({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+sa),method:"GET",callback:la=>{var ca;if(la.json){var ua=la.json.earlyAccessFeatures;return(ca=this._instance.persistence)==null||ca.register({[It]:ua}),na(ua)}}})}be(){var na=this.getFlags(),ra=this.getFlagVariants();return{flags:na.filter(oa=>ra[oa]),flagVariants:Object.keys(ra).filter(oa=>ra[oa]).reduce((oa,aa)=>(oa[aa]=ra[aa],oa),{})}}me(na){var{flags:ra,flagVariants:oa}=this.be();this.featureFlagEventHandlers.forEach(aa=>aa(ra,oa,{errorsLoading:na}))}setPersonPropertiesForFlags(na,ra){ra===void 0&&(ra=!0);var oa=this._instance.get_property(Rt)||{};this._instance.register({[Rt]:B({},oa,na)}),ra&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Rt)}setGroupPropertiesForFlags(na,ra){ra===void 0&&(ra=!0);var oa=this._instance.get_property(Tt)||{};Object.keys(oa).length!==0&&Object.keys(oa).forEach(aa=>{oa[aa]=B({},oa[aa],na[aa]),delete na[aa]}),this._instance.register({[Tt]:B({},oa,na)}),ra&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(na){if(na){var ra=this._instance.get_property(Tt)||{};this._instance.register({[Tt]:B({},ra,{[na]:{}})})}else this._instance.unregister(Tt)}}var Zn=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class to{constructor(na){this.S=na,this.props={},this.we=!1,this.ye=(ra=>{var oa="";return ra.token&&(oa=ra.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),ra.persistence_name?"ph_"+ra.persistence_name:"ph_"+oa+"_posthog"})(na),this.q=this.Se(na),this.load(),na.debug&&N.info("Persistence loaded",na.persistence,B({},this.props)),this.update_config(na,na),this.save()}Se(na){Zn.indexOf(na.persistence.toLowerCase())===-1&&(N.critical("Unknown persistence type "+na.persistence+"; falling back to localStorage+cookie"),na.persistence="localStorage+cookie");var ra=na.persistence.toLowerCase();return ra==="localstorage"&&Gi.O()?Gi:ra==="localstorage+cookie"&&Vi.O()?Vi:ra==="sessionstorage"&&Qi.O()?Qi:ra==="memory"?Yi:ra==="cookie"?Hi:Vi.O()?Vi:Hi}properties(){var na={};return J(this.props,function(ra,oa){if(oa===Et&&I(ra))for(var aa=Object.keys(ra),sa=0;sa<aa.length;sa++)na["$feature/"+aa[sa]]=ra[aa[sa]];else ca=oa,ua=!1,(C(la=Bt)?ua:n$1&&la.indexOf===n$1?la.indexOf(ca)!=-1:(J(la,function(da){if(ua||(ua=da===ca))return W}),ua))||(na[oa]=ra);var la,ca,ua}),na}load(){if(!this.$e){var na=this.q.D(this.ye);na&&(this.props=V({},na))}}save(){this.$e||this.q.j(this.ye,this.props,this.ke,this.xe,this.Ee,this.S.debug)}remove(){this.q.L(this.ye,!1),this.q.L(this.ye,!0)}clear(){this.remove(),this.props={}}register_once(na,ra,oa){if(I(na)){R(ra)&&(ra="None"),this.ke=R(oa)?this.Ie:oa;var aa=!1;if(J(na,(sa,la)=>{this.props.hasOwnProperty(la)&&this.props[la]!==ra||(this.props[la]=sa,aa=!0)}),aa)return this.save(),!0}return!1}register(na,ra){if(I(na)){this.ke=R(ra)?this.Ie:ra;var oa=!1;if(J(na,(aa,sa)=>{na.hasOwnProperty(sa)&&this.props[sa]!==aa&&(this.props[sa]=aa,oa=!0)}),oa)return this.save(),!0}return!1}unregister(na){na in this.props&&(delete this.props[na],this.save())}update_campaign_params(){if(!this.we){var na=On(this.S.custom_campaign_params,this.S.mask_personal_data_properties,this.S.custom_personal_data_properties);P(Z(na))||this.register(na),this.we=!0}}update_search_keyword(){var na;this.register((na=a$1?.referrer)?An(na):{})}update_referrer_info(){var na;this.register_once({$referrer:jn(),$referring_domain:a$1!=null&&a$1.referrer&&((na=wi(a$1.referrer))==null?void 0:na.host)||"$direct"},void 0)}set_initial_person_info(){this.props[jt]||this.props[Lt]||this.register_once({[Nt]:Ln(this.S.mask_personal_data_properties,this.S.custom_personal_data_properties)},void 0)}get_initial_props(){var na={};J([Lt,jt],la=>{var ca=this.props[la];ca&&J(ca,function(ua,da){na["$initial_"+w(da)]=ua})});var ra,oa,aa=this.props[Nt];if(aa){var sa=(ra=Nn(aa),oa={},J(ra,function(la,ca){oa["$initial_"+w(ca)]=la}),oa);V(na,sa)}return na}safe_merge(na){return J(this.props,function(ra,oa){oa in na||(na[oa]=ra)}),na}update_config(na,ra){if(this.Ie=this.ke=na.cookie_expiration,this.set_disabled(na.disable_persistence),this.set_cross_subdomain(na.cross_subdomain_cookie),this.set_secure(na.secure_cookie),na.persistence!==ra.persistence){var oa=this.Se(na),aa=this.props;this.clear(),this.q=oa,this.props=aa,this.save()}}set_disabled(na){this.$e=na,this.$e?this.remove():this.save()}set_cross_subdomain(na){na!==this.xe&&(this.xe=na,this.remove(),this.save())}set_secure(na){na!==this.Ee&&(this.Ee=na,this.remove(),this.save())}set_event_timer(na,ra){var oa=this.props[at]||{};oa[na]=ra,this.props[at]=oa,this.save()}remove_event_timer(na){var ra=(this.props[at]||{})[na];return R(ra)||(delete this.props[at][na],this.save()),ra}get_property(na){return this.props[na]}set_property(na,ra){this.props[na]=ra,this.save()}}class io{constructor(){this.Pe={},this.Pe={}}on(na,ra){return this.Pe[na]||(this.Pe[na]=[]),this.Pe[na].push(ra),()=>{this.Pe[na]=this.Pe[na].filter(oa=>oa!==ra)}}emit(na,ra){for(var oa of this.Pe[na]||[])oa(ra);for(var aa of this.Pe["*"]||[])aa(na,ra)}}var eo=function(ea,na){if(!function(ra){try{new RegExp(ra)}catch{return!1}return!0}(na))return!1;try{return new RegExp(na).test(ea)}catch{return!1}};class ro{constructor(na){this.Re=new io,this.Te=(ra,oa)=>this.Me(ra,oa)&&this.Ce(ra,oa)&&this.Oe(ra,oa),this.Me=(ra,oa)=>oa==null||!oa.event||ra?.event===oa?.event,this._instance=na,this.Fe=new Set,this.Ae=new Set}init(){var na;if(!R((na=this._instance)==null?void 0:na.De)){var ra;(ra=this._instance)==null||ra.De((oa,aa)=>{this.on(oa,aa)})}}register(na){var ra,oa;if(!R((ra=this._instance)==null?void 0:ra.De)&&(na.forEach(la=>{var ca,ua;(ca=this.Ae)==null||ca.add(la),(ua=la.steps)==null||ua.forEach(da=>{var pa;(pa=this.Fe)==null||pa.add(da?.event||"")})}),(oa=this._instance)!=null&&oa.autocapture)){var aa,sa=new Set;na.forEach(la=>{var ca;(ca=la.steps)==null||ca.forEach(ua=>{ua!=null&&ua.selector&&sa.add(ua?.selector)})}),(aa=this._instance)==null||aa.autocapture.setElementSelectors(sa)}}on(na,ra){var oa;ra!=null&&na.length!=0&&(this.Fe.has(na)||this.Fe.has(ra?.event))&&this.Ae&&((oa=this.Ae)==null?void 0:oa.size)>0&&this.Ae.forEach(aa=>{this.je(ra,aa)&&this.Re.emit("actionCaptured",aa.name)})}Le(na){this.onAction("actionCaptured",ra=>na(ra))}je(na,ra){if(ra?.steps==null)return!1;for(var oa of ra.steps)if(this.Te(na,oa))return!0;return!1}onAction(na,ra){return this.Re.on(na,ra)}Ce(na,ra){if(ra!=null&&ra.url){var oa,aa=na==null||(oa=na.properties)==null?void 0:oa.$current_url;if(!aa||typeof aa!="string"||!ro.Ne(aa,ra?.url,ra?.url_matching||"contains"))return!1}return!0}static Ne(na,ra,oa){switch(oa){case"regex":return!!i$1&&eo(na,ra);case"exact":return ra===na;case"contains":var aa=ro.ze(ra).replace(/_/g,".").replace(/%/g,".*");return eo(na,aa);default:return!1}}static ze(na){return na.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Oe(na,ra){if((ra!=null&&ra.href||ra!=null&&ra.tag_name||ra!=null&&ra.text)&&!this.Ue(na).some(sa=>!(ra!=null&&ra.href&&!ro.Ne(sa.href||"",ra?.href,ra?.href_matching||"exact"))&&(ra==null||!ra.tag_name||sa.tag_name===ra?.tag_name)&&!(ra!=null&&ra.text&&!ro.Ne(sa.text||"",ra?.text,ra?.text_matching||"exact")&&!ro.Ne(sa.$el_text||"",ra?.text,ra?.text_matching||"exact"))))return!1;if(ra!=null&&ra.selector){var oa,aa=na==null||(oa=na.properties)==null?void 0:oa.$element_selectors;if(!aa||!aa.includes(ra?.selector))return!1}return!0}Ue(na){return na?.properties.$elements==null?[]:na?.properties.$elements}}var so=z("[Surveys]");class no{constructor(na){this._instance=na,this.qe=new Map,this.Be=new Map}register(na){var ra;R((ra=this._instance)==null?void 0:ra.De)||(this.He(na),this.We(na))}We(na){var ra=na.filter(oa=>{var aa,sa,la,ca;return((aa=oa.conditions)==null?void 0:aa.actions)&&((sa=oa.conditions)==null||(la=sa.actions)==null||(ca=la.values)==null?void 0:ca.length)>0});ra.length!==0&&(this.Ge==null&&(this.Ge=new ro(this._instance),this.Ge.init(),this.Ge.Le(oa=>{this.onAction(oa)})),ra.forEach(oa=>{var aa,sa,la,ca,ua,da,pa,ha,ga,fa;oa.conditions&&(aa=oa.conditions)!=null&&aa.actions&&(sa=oa.conditions)!=null&&(la=sa.actions)!=null&&la.values&&((ca=oa.conditions)==null||(ua=ca.actions)==null||(da=ua.values)==null?void 0:da.length)>0&&((pa=this.Ge)==null||pa.register(oa.conditions.actions.values),(ha=oa.conditions)==null||(ga=ha.actions)==null||(fa=ga.values)==null||fa.forEach(ma=>{if(ma&&ma.name){var va=this.Be.get(ma.name);va&&va.push(oa.id),this.Be.set(ma.name,va||[oa.id])}}))}))}He(na){var ra;na.filter(oa=>{var aa,sa,la,ca;return((aa=oa.conditions)==null?void 0:aa.events)&&((sa=oa.conditions)==null||(la=sa.events)==null||(ca=la.values)==null?void 0:ca.length)>0}).length!==0&&((ra=this._instance)==null||ra.De((oa,aa)=>{this.onEvent(oa,aa)}),na.forEach(oa=>{var aa,sa,la;(aa=oa.conditions)==null||(sa=aa.events)==null||(la=sa.values)==null||la.forEach(ca=>{if(ca&&ca.name){var ua=this.qe.get(ca.name);ua&&ua.push(oa.id),this.qe.set(ca.name,ua||[oa.id])}})}))}onEvent(na,ra){var oa,aa,sa=((oa=this._instance)==null||(aa=oa.persistence)==null?void 0:aa.props[Ct])||[];if(na==="survey shown"&&ra&&sa.length>0){var la;so.info("survey event matched, removing survey from activated surveys",{event:na,eventPayload:ra,existingActivatedSurveys:sa});var ca=ra==null||(la=ra.properties)==null?void 0:la.$survey_id;if(ca){var ua=sa.indexOf(ca);ua>=0&&(sa.splice(ua,1),this.Je(sa))}}else this.qe.has(na)&&(so.info("survey event matched, updating activated surveys",{event:na,surveys:this.qe.get(na)}),this.Je(sa.concat(this.qe.get(na)||[])))}onAction(na){var ra,oa,aa=((ra=this._instance)==null||(oa=ra.persistence)==null?void 0:oa.props[Ct])||[];this.Be.has(na)&&this.Je(aa.concat(this.Be.get(na)||[]))}Je(na){var ra,oa;(ra=this._instance)==null||(oa=ra.persistence)==null||oa.register({[Ct]:[...new Set(na)]})}getSurveys(){var na,ra,oa=(na=this._instance)==null||(ra=na.persistence)==null?void 0:ra.props[Ct];return oa||[]}getEventToSurveys(){return this.qe}Ve(){return this.Ge}}class oo{constructor(na){this.Ke=null,this.Ye=!1,this.Xe=!1,this.Qe=[],this._instance=na,this._surveyEventReceiver=null}onRemoteConfig(na){var ra=na.surveys;if(O(ra))return so.warn("Decide not loaded yet. Not loading surveys.");var oa=x(ra);this.Ze=oa?ra.length>0:ra,so.info("decide response received, hasSurveys: "+this.Ze),this.Ze&&this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var na=[],ra=0;ra<localStorage.length;ra++){var oa=localStorage.key(ra);oa!=null&&oa.startsWith("seenSurvey_")&&na.push(oa)}na.forEach(aa=>localStorage.removeItem(aa))}loadIfEnabled(){if(!this.Ke)if(this.Xe)so.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)so.info("Disabled. Not loading surveys.");else if(this.Ze){var na=c$1?.__PosthogExtensions__;if(na){this.Xe=!0;try{var ra=na.generateSurveys;if(ra)return void this.tr(ra);var oa=na.loadExternalDependency;if(!oa)return void this.ir("PostHog loadExternalDependency extension not found.");oa(this._instance,"surveys",aa=>{aa||!na.generateSurveys?this.ir("Could not load surveys script",aa):this.tr(na.generateSurveys)})}catch(aa){throw this.ir("Error initializing surveys",aa),aa}finally{this.Xe=!1}}else so.error("PostHog Extensions not found.")}else so.info("No surveys to load.")}tr(na){this.Ke=na(this._instance),this._surveyEventReceiver=new no(this._instance),so.info("Surveys loaded successfully"),this.er({isLoaded:!0})}ir(na,ra){so.error(na,ra),this.er({isLoaded:!1,error:na})}onSurveysLoaded(na){return this.Qe.push(na),this.Ke&&this.er({isLoaded:!0}),()=>{this.Qe=this.Qe.filter(ra=>ra!==na)}}getSurveys(na,ra){if(ra===void 0&&(ra=!1),this._instance.config.disable_surveys)return so.info("Disabled. Not loading surveys."),na([]);var oa=this._instance.get_property(Mt);if(oa&&!ra)return na(oa,{isLoaded:!0});if(this.Ye)return na([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ye=!0,this._instance.ge({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:aa=>{var sa;this.Ye=!1;var la=aa.statusCode;if(la!==200||!aa.json){var ca="Surveys API could not be loaded, status: "+la;return so.error(ca),na([],{isLoaded:!1,error:ca})}var ua,da=aa.json.surveys||[],pa=da.filter(ha=>function(ga){return!(!ga.start_date||ga.end_date)}(ha)&&(function(ga){var fa,ma,va;return!((fa=ga.conditions)==null||(ma=fa.events)==null||(va=ma.values)==null||!va.length)}(ha)||function(ga){var fa,ma,va;return!((fa=ga.conditions)==null||(ma=fa.actions)==null||(va=ma.values)==null||!va.length)}(ha)));return pa.length>0&&((ua=this._surveyEventReceiver)==null||ua.register(pa)),(sa=this._instance.persistence)==null||sa.register({[Mt]:da}),na(da,{isLoaded:!0})}})}catch(aa){throw this.Ye=!1,aa}}er(na){for(var ra of this.Qe)try{na.isLoaded?this.getSurveys(ra):ra([],na)}catch(oa){so.error("Error in survey callback",oa)}}getActiveMatchingSurveys(na,ra){if(ra===void 0&&(ra=!1),!O(this.Ke))return this.Ke.getActiveMatchingSurveys(na,ra);so.warn("init was not called")}rr(na){var ra=null;return this.getSurveys(oa=>{var aa;ra=(aa=oa.find(sa=>sa.id===na))!==null&&aa!==void 0?aa:null}),ra}sr(na){if(O(this.Ke))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var ra=typeof na=="string"?this.rr(na):na;return ra?this.Ke.checkSurveyEligibility(ra):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(na){if(!O(this.Ke))return so.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var ra=this.sr(na);return{visible:ra.eligible,disabledReason:ra.reason}}canRenderSurveyAsync(na,ra){return O(this.Ke)?(so.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(oa=>{this.getSurveys(aa=>{var sa,la=(sa=aa.find(ua=>ua.id===na))!==null&&sa!==void 0?sa:null;if(la){var ca=this.sr(la);oa({visible:ca.eligible,disabledReason:ca.reason})}else oa({visible:!1,disabledReason:"Survey not found"})},ra)})}renderSurvey(na,ra){if(O(this.Ke))so.warn("init was not called");else{var oa=this.rr(na),aa=a$1?.querySelector(ra);oa?aa?this.Ke.renderSurvey(oa,aa):so.warn("Survey element not found"):so.warn("Survey not found")}}}var ao=z("[RateLimiter]");class lo{constructor(na){var ra,oa;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=aa=>{var sa=aa.text;if(sa&&sa.length)try{(JSON.parse(sa).quota_limited||[]).forEach(la=>{ao.info((la||"events")+" is quota limited."),this.serverLimits[la]=new Date().getTime()+6e4})}catch(la){return void ao.warn('could not rate limit - continuing. Error: "'+la?.message+'"',{text:sa})}},this.instance=na,this.captureEventsPerSecond=((ra=na.config.rate_limiting)==null?void 0:ra.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((oa=na.config.rate_limiting)==null?void 0:oa.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(na){var ra,oa,aa;na===void 0&&(na=!1);var sa=new Date().getTime(),la=(ra=(oa=this.instance.persistence)==null?void 0:oa.get_property(Dt))!==null&&ra!==void 0?ra:{tokens:this.captureEventsBurstLimit,last:sa};la.tokens+=(sa-la.last)/1e3*this.captureEventsPerSecond,la.last=sa,la.tokens>this.captureEventsBurstLimit&&(la.tokens=this.captureEventsBurstLimit);var ca=la.tokens<1;return ca||na||(la.tokens=Math.max(0,la.tokens-1)),!ca||this.lastEventRateLimited||na||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=ca,(aa=this.instance.persistence)==null||aa.set_property(Dt,la),{isRateLimited:ca,remainingTokens:la.tokens}}isServerRateLimited(na){var ra=this.serverLimits[na||"events"]||!1;return ra!==!1&&new Date().getTime()<ra}}var ho=z("[RemoteConfig]");class uo{constructor(na){this._instance=na}get remoteConfig(){var na,ra;return(na=c$1._POSTHOG_REMOTE_CONFIG)==null||(ra=na[this._instance.config.token])==null?void 0:ra.config}nr(na){var ra,oa;(ra=c$1.__PosthogExtensions__)!=null&&ra.loadExternalDependency?(oa=c$1.__PosthogExtensions__)==null||oa.loadExternalDependency==null||oa.loadExternalDependency(this._instance,"remote-config",()=>na(this.remoteConfig)):(ho.error("PostHog Extensions not found. Cannot load remote config."),na())}ar(na){this._instance.ge({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:ra=>{na(ra.json)}})}load(){try{if(this.remoteConfig)return ho.info("Using preloaded remote config",this.remoteConfig),void this._e(this.remoteConfig);if(this._instance.config.advanced_disable_decide)return void ho.warn("Remote config is disabled. Falling back to local config.");this.nr(na=>{if(!na)return ho.info("No config found after loading remote JS config. Falling back to JSON."),void this.ar(ra=>{this._e(ra)});this._e(na)})}catch(na){ho.error("Error loading remote config",na)}}_e(na){na?this._instance.config.__preview_remote_config?(this._instance._e(na),na.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):ho.info("__preview_remote_config is disabled. Logging config instead",na):ho.error("Failed to fetch remote config from PostHog.")}}var vo=function(ea){var na,ra,oa,aa,sa="";for(na=ra=0,oa=(ea=(ea+"").replace(/\r\n/g,`
`).replace(/\r/g,`
`)).length,aa=0;aa<oa;aa++){var la=ea.charCodeAt(aa),ca=null;la<128?ra++:ca=la>127&&la<2048?String.fromCharCode(la>>6|192,63&la|128):String.fromCharCode(la>>12|224,la>>6&63|128,63&la|128),C(ca)||(ra>na&&(sa+=ea.substring(na,ra)),sa+=ca,na=ra=aa+1)}return ra>na&&(sa+=ea.substring(na,ea.length)),sa},co=!!u||!!h,fo="text/plain",po=(ea,na)=>{var[ra,oa]=ea.split("?"),aa=B({},na);oa?.split("&").forEach(la=>{var[ca]=la.split("=");delete aa[ca]});var sa=yi(aa);return ra+"?"+(sa=sa?(oa?oa+"&":"")+sa:oa)},go=(ea,na)=>JSON.stringify(ea,(ra,oa)=>typeof oa=="bigint"?oa.toString():oa,na),_o=ea=>{var{data:na,compression:ra}=ea;if(na){if(ra===t$1.GZipJS){var oa=Ar(Dr(go(na)),{mtime:0}),aa=new Blob([oa],{type:fo});return{contentType:fo,body:aa,estimatedSize:aa.size}}if(ra===t$1.Base64){var sa=function(ua){var da,pa,ha,ga,fa,ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",va=0,xa=0,ya="",Aa=[];if(!ua)return ua;ua=vo(ua);do da=(fa=ua.charCodeAt(va++)<<16|ua.charCodeAt(va++)<<8|ua.charCodeAt(va++))>>18&63,pa=fa>>12&63,ha=fa>>6&63,ga=63&fa,Aa[xa++]=ma.charAt(da)+ma.charAt(pa)+ma.charAt(ha)+ma.charAt(ga);while(va<ua.length);switch(ya=Aa.join(""),ua.length%3){case 1:ya=ya.slice(0,-2)+"==";break;case 2:ya=ya.slice(0,-1)+"="}return ya}(go(na)),la=(ua=>"data="+encodeURIComponent(typeof ua=="string"?ua:go(ua)))(sa);return{contentType:"application/x-www-form-urlencoded",body:la,estimatedSize:new Blob([la]).size}}var ca=go(na);return{contentType:"application/json",body:ca,estimatedSize:new Blob([ca]).size}}},mo=[];h&&mo.push({transport:"fetch",method:ea=>{var na,ra,{contentType:oa,body:aa,estimatedSize:sa}=(na=_o(ea))!==null&&na!==void 0?na:{},la=new Headers;J(ea.headers,function(pa,ha){la.append(ha,pa)}),oa&&la.append("Content-Type",oa);var ca=ea.url,ua=null;if(d$1){var da=new d$1;ua={signal:da.signal,timeout:setTimeout(()=>da.abort(),ea.timeout)}}h(ca,B({method:ea?.method||"GET",headers:la,keepalive:ea.method==="POST"&&(sa||0)<52428.8,body:aa,signal:(ra=ua)==null?void 0:ra.signal},ea.fetchOptions)).then(pa=>pa.text().then(ha=>{var ga={statusCode:pa.status,text:ha};if(pa.status===200)try{ga.json=JSON.parse(ha)}catch(fa){N.error(fa)}ea.callback==null||ea.callback(ga)})).catch(pa=>{N.error(pa),ea.callback==null||ea.callback({statusCode:0,text:pa})}).finally(()=>ua?clearTimeout(ua.timeout):null)}}),u&&mo.push({transport:"XHR",method:ea=>{var na,ra=new u;ra.open(ea.method||"GET",ea.url,!0);var{contentType:oa,body:aa}=(na=_o(ea))!==null&&na!==void 0?na:{};J(ea.headers,function(sa,la){ra.setRequestHeader(la,sa)}),oa&&ra.setRequestHeader("Content-Type",oa),ea.timeout&&(ra.timeout=ea.timeout),ra.withCredentials=!0,ra.onreadystatechange=()=>{if(ra.readyState===4){var sa={statusCode:ra.status,text:ra.responseText};if(ra.status===200)try{sa.json=JSON.parse(ra.responseText)}catch{}ea.callback==null||ea.callback(sa)}},ra.send(aa)}}),o$1!=null&&o$1.sendBeacon&&mo.push({transport:"sendBeacon",method:ea=>{var na=po(ea.url,{beacon:"1"});try{var ra,{contentType:oa,body:aa}=(ra=_o(ea))!==null&&ra!==void 0?ra:{},sa=typeof aa=="string"?new Blob([aa],{type:oa}):aa;o$1.sendBeacon(na,sa)}catch{}}});var bo=3e3;class wo{constructor(na,ra){this.lr=!0,this.hr=[],this.ur=Xe(ra?.flush_interval_ms||bo,250,5e3,"flush interval",bo),this.dr=na}enqueue(na){this.hr.push(na),this.vr||this.cr()}unload(){this.pr();var na=this.hr.length>0?this.gr():{},ra=Object.values(na);[...ra.filter(oa=>oa.url.indexOf("/e")===0),...ra.filter(oa=>oa.url.indexOf("/e")!==0)].map(oa=>{this.dr(B({},oa,{transport:"sendBeacon"}))})}enable(){this.lr=!1,this.cr()}cr(){var na=this;this.lr||(this.vr=setTimeout(()=>{if(this.pr(),this.hr.length>0){var ra=this.gr(),oa=function(sa){var la=ra[sa],ca=new Date().getTime();la.data&&x(la.data)&&J(la.data,ua=>{ua.offset=Math.abs(ua.timestamp-ca),delete ua.timestamp}),na.dr(la)};for(var aa in ra)oa(aa)}},this.ur))}pr(){clearTimeout(this.vr),this.vr=void 0}gr(){var na={};return J(this.hr,ra=>{var oa,aa=ra,sa=(aa?aa.batchKey:null)||aa.url;R(na[sa])&&(na[sa]=B({},aa,{data:[]})),(oa=na[sa].data)==null||oa.push(aa.data)}),this.hr=[],na}}var yo=["retriesPerformedSoFar"];class So{constructor(na){this._r=!1,this.mr=3e3,this.hr=[],this._instance=na,this.hr=[],this.br=!0,!R(i$1)&&"onLine"in i$1.navigator&&(this.br=i$1.navigator.onLine,st(i$1,"online",()=>{this.br=!0,this.Yi()}),st(i$1,"offline",()=>{this.br=!1}))}get length(){return this.hr.length}retriableRequest(na){var{retriesPerformedSoFar:ra}=na,oa=H(na,yo);F(ra)&&ra>0&&(oa.url=po(oa.url,{retry_count:ra})),this._instance.ge(B({},oa,{callback:aa=>{aa.statusCode!==200&&(aa.statusCode<400||aa.statusCode>=500)&&(ra??0)<10?this.wr(B({retriesPerformedSoFar:ra},oa)):oa.callback==null||oa.callback(aa)}}))}wr(na){var ra=na.retriesPerformedSoFar||0;na.retriesPerformedSoFar=ra+1;var oa=function(la){var ca=3e3*Math.pow(2,la),ua=ca/2,da=Math.min(18e5,ca),pa=(Math.random()-.5)*(da-ua);return Math.ceil(da+pa)}(ra),aa=Date.now()+oa;this.hr.push({retryAt:aa,requestOptions:na});var sa="Enqueued failed request for retry in "+oa;navigator.onLine||(sa+=" (Browser is offline)"),N.warn(sa),this._r||(this._r=!0,this.yr())}yr(){this.Sr&&clearTimeout(this.Sr),this.Sr=setTimeout(()=>{this.br&&this.hr.length>0&&this.Yi(),this.yr()},this.mr)}Yi(){var na=Date.now(),ra=[],oa=this.hr.filter(sa=>sa.retryAt<na||(ra.push(sa),!1));if(this.hr=ra,oa.length>0)for(var{requestOptions:aa}of oa)this.retriableRequest(aa)}unload(){for(var{requestOptions:na}of(this.Sr&&(clearTimeout(this.Sr),this.Sr=void 0),this.hr))try{this._instance.ge(B({},na,{transport:"sendBeacon"}))}catch(ra){N.error(ra)}this.hr=[]}}class $o{constructor(na){this.$r=()=>{var ra,oa,aa,sa;this.kr||(this.kr={});var la=this.scrollElement(),ca=this.scrollY(),ua=la?Math.max(0,la.scrollHeight-la.clientHeight):0,da=ca+(la?.clientHeight||0),pa=la?.scrollHeight||0;this.kr.lastScrollY=Math.ceil(ca),this.kr.maxScrollY=Math.max(ca,(ra=this.kr.maxScrollY)!==null&&ra!==void 0?ra:0),this.kr.maxScrollHeight=Math.max(ua,(oa=this.kr.maxScrollHeight)!==null&&oa!==void 0?oa:0),this.kr.lastContentY=da,this.kr.maxContentY=Math.max(da,(aa=this.kr.maxContentY)!==null&&aa!==void 0?aa:0),this.kr.maxContentHeight=Math.max(pa,(sa=this.kr.maxContentHeight)!==null&&sa!==void 0?sa:0)},this._instance=na}getContext(){return this.kr}resetContext(){var na=this.kr;return setTimeout(this.$r,0),na}startMeasuringScrollPosition(){st(i$1,"scroll",this.$r,{capture:!0}),st(i$1,"scrollend",this.$r,{capture:!0}),st(i$1,"resize",this.$r)}scrollElement(){if(!this._instance.config.scroll_root_selector)return i$1?.document.documentElement;var na=x(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var ra of na){var oa=i$1?.document.querySelector(ra);if(oa)return oa}}scrollY(){if(this._instance.config.scroll_root_selector){var na=this.scrollElement();return na&&na.scrollTop||0}return i$1&&(i$1.scrollY||i$1.pageYOffset||i$1.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var na=this.scrollElement();return na&&na.scrollLeft||0}return i$1&&(i$1.scrollX||i$1.pageXOffset||i$1.document.documentElement.scrollLeft)||0}}var ko=ea=>Ln(ea?.config.mask_personal_data_properties,ea?.config.custom_personal_data_properties);class xo{constructor(na,ra,oa,aa){this.Er=sa=>{var la=this.Ir();if(!la||la.sessionId!==sa){var ca={sessionId:sa,props:this.Pr(this._instance)};this.Rr.register({[At]:ca})}},this._instance=na,this.Tr=ra,this.Rr=oa,this.Pr=aa||ko,this.Tr.onSessionId(this.Er)}Ir(){return this.Rr.props[At]}getSetOnceProps(){var na,ra=(na=this.Ir())==null?void 0:na.props;return ra?"r"in ra?Nn(ra):{$referring_domain:ra.referringDomain,$pathname:ra.initialPathName,utm_source:ra.utm_source,utm_campaign:ra.utm_campaign,utm_medium:ra.utm_medium,utm_content:ra.utm_content,utm_term:ra.utm_term}:{}}getSessionProps(){var na={};return J(Z(this.getSetOnceProps()),(ra,oa)=>{oa==="$current_url"&&(oa="url"),na["$session_entry_"+w(oa)]=ra}),na}}var Eo=z("[SessionId]");class Io{constructor(na,ra,oa){var aa;if(this.Mr=[],!na.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(na.config.__preview_experimental_cookieless_mode)throw new Error("SessionIdManager cannot be used with __preview_experimental_cookieless_mode");this.S=na.config,this.Rr=na.persistence,this.ni=void 0,this.$t=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Cr=ra||ji,this.Or=oa||ji;var sa=this.S.persistence_name||this.S.token,la=this.S.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Xe(la,60,36e3,"session_idle_timeout_seconds",1800),na.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Fr(),this.Ar="ph_"+sa+"_window_id",this.Dr="ph_"+sa+"_primary_window_exists",this.jr()){var ca=Qi.D(this.Ar),ua=Qi.D(this.Dr);ca&&!ua?this.ni=ca:Qi.L(this.Ar),Qi.j(this.Dr,!0)}if((aa=this.S.bootstrap)!=null&&aa.sessionID)try{var da=(pa=>{var ha=pa.replace(/-/g,"");if(ha.length!==32)throw new Error("Not a valid UUID");if(ha[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(ha.substring(0,12),16)})(this.S.bootstrap.sessionID);this.Lr(this.S.bootstrap.sessionID,new Date().getTime(),da)}catch(pa){Eo.error("Invalid sessionID in bootstrap",pa)}this.Nr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(na){return R(this.Mr)&&(this.Mr=[]),this.Mr.push(na),this.$t&&na(this.$t,this.ni),()=>{this.Mr=this.Mr.filter(ra=>ra!==na)}}jr(){return this.S.persistence!=="memory"&&!this.Rr.$e&&Qi.O()}zr(na){na!==this.ni&&(this.ni=na,this.jr()&&Qi.j(this.Ar,na))}Ur(){return this.ni?this.ni:this.jr()?Qi.D(this.Ar):null}Lr(na,ra,oa){na===this.$t&&ra===this._sessionActivityTimestamp&&oa===this._sessionStartTimestamp||(this._sessionStartTimestamp=oa,this._sessionActivityTimestamp=ra,this.$t=na,this.Rr.register({[St]:[ra,na,oa]}))}qr(){if(this.$t&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.$t,this._sessionStartTimestamp];var na=this.Rr.props[St];return x(na)&&na.length===2&&na.push(na[0]),na||[0,null,0]}resetSessionId(){this.Lr(null,null,null)}Nr(){st(i$1,"beforeunload",()=>{this.jr()&&Qi.L(this.Dr)},{capture:!1})}checkAndGetSessionAndWindowId(na,ra){if(na===void 0&&(na=!1),ra===void 0&&(ra=null),this.S.__preview_experimental_cookieless_mode)throw new Error("checkAndGetSessionAndWindowId should not be called in __preview_experimental_cookieless_mode");var oa=ra||new Date().getTime(),[aa,sa,la]=this.qr(),ca=this.Ur(),ua=F(la)&&la>0&&Math.abs(oa-la)>864e5,da=!1,pa=!sa,ha=!na&&Math.abs(oa-aa)>this.sessionTimeoutMs;pa||ha||ua?(sa=this.Cr(),ca=this.Or(),Eo.info("new session ID generated",{sessionId:sa,windowId:ca,changeReason:{noSessionId:pa,activityTimeout:ha,sessionPastMaximumLength:ua}}),la=oa,da=!0):ca||(ca=this.Or(),da=!0);var ga=aa===0||!na||ua?oa:aa,fa=la===0?new Date().getTime():la;return this.zr(ca),this.Lr(sa,ga,fa),na||this.Fr(),da&&this.Mr.forEach(ma=>ma(sa,ca,da?{noSessionId:pa,activityTimeout:ha,sessionPastMaximumLength:ua}:void 0)),{sessionId:sa,windowId:ca,sessionStartTimestamp:fa,changeReason:da?{noSessionId:pa,activityTimeout:ha,sessionPastMaximumLength:ua}:void 0,lastActivityTimestamp:aa}}Fr(){clearTimeout(this.Br),this.Br=setTimeout(()=>{this.resetSessionId()},1.1*this.sessionTimeoutMs)}}var Po=["$set_once","$set"],Ro=z("[SiteApps]");class To{constructor(na){this._instance=na,this.Hr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Wr(na,ra){if(ra){var oa=this.globalsForEvent(ra);this.Hr.push(oa),this.Hr.length>1e3&&(this.Hr=this.Hr.slice(10))}}get siteAppLoaders(){var na,ra;return(na=c$1._POSTHOG_REMOTE_CONFIG)==null||(ra=na[this._instance.config.token])==null?void 0:ra.siteApps}init(){if(this.isEnabled){var na=this._instance.De(this.Wr.bind(this));this.Gr=()=>{na(),this.Hr=[],this.Gr=void 0}}}globalsForEvent(na){var ra,oa,aa,sa,la,ca,ua;if(!na)throw new Error("Event payload is required");var da={},pa=this._instance.get_property("$groups")||[],ha=this._instance.get_property("$stored_group_properties")||{};for(var[ga,fa]of Object.entries(ha))da[ga]={id:pa[ga],type:ga,properties:fa};var{$set_once:ma,$set:va}=na;return{event:B({},H(na,Po),{properties:B({},na.properties,va?{$set:B({},(ra=(oa=na.properties)==null?void 0:oa.$set)!==null&&ra!==void 0?ra:{},va)}:{},ma?{$set_once:B({},(aa=(sa=na.properties)==null?void 0:sa.$set_once)!==null&&aa!==void 0?aa:{},ma)}:{}),elements_chain:(la=(ca=na.properties)==null?void 0:ca.$elements_chain)!==null&&la!==void 0?la:"",distinct_id:(ua=na.properties)==null?void 0:ua.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:da}}setupSiteApp(na){var ra=this.apps[na.id],oa=()=>{var ca;!ra.errored&&this.Hr.length&&(Ro.info("Processing "+this.Hr.length+" events for site app with id "+na.id),this.Hr.forEach(ua=>ra.processEvent==null?void 0:ra.processEvent(ua)),ra.processedBuffer=!0),Object.values(this.apps).every(ua=>ua.processedBuffer||ua.errored)&&((ca=this.Gr)==null||ca.call(this))},aa=!1,sa=ca=>{ra.errored=!ca,ra.loaded=!0,Ro.info("Site app with id "+na.id+" "+(ca?"loaded":"errored")),aa&&oa()};try{var{processEvent:la}=na.init({posthog:this._instance,callback:ca=>{sa(ca)}});la&&(ra.processEvent=la),aa=!0}catch(ca){Ro.error("Error while initializing PostHog app with config id "+na.id,ca),sa(!1)}if(aa&&ra.loaded)try{oa()}catch(ca){Ro.error("Error while processing buffered events PostHog app with config id "+na.id,ca),ra.errored=!0}}Jr(){var na=this.siteAppLoaders||[];for(var ra of na)this.apps[ra.id]={id:ra.id,loaded:!1,errored:!1,processedBuffer:!1};for(var oa of na)this.setupSiteApp(oa)}Vr(na){if(Object.keys(this.apps).length!==0){var ra=this.globalsForEvent(na);for(var oa of Object.values(this.apps))try{oa.processEvent==null||oa.processEvent(ra)}catch(aa){Ro.error("Error while processing event "+na.event+" for site app "+oa.id,aa)}}}onRemoteConfig(na){var ra,oa,aa,sa=this;if((ra=this.siteAppLoaders)!=null&&ra.length)return this.isEnabled?(this.Jr(),void this._instance.on("eventCaptured",da=>this.Vr(da))):void Ro.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((oa=this.Gr)==null||oa.call(this),(aa=na.siteApps)!=null&&aa.length)if(this.isEnabled){var la=function(da,pa){var ha;c$1["__$$ph_site_app_"+da]=sa._instance,(ha=c$1.__PosthogExtensions__)==null||ha.loadSiteApp==null||ha.loadSiteApp(sa._instance,pa,ga=>{if(ga)return Ro.error("Error while initializing PostHog app with config id "+da,ga)})};for(var{id:ca,url:ua}of na.siteApps)la(ca,ua)}else Ro.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var Mo,Co=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","bytespider"],Oo=function(ea,na){if(!ea)return!1;var ra=ea.toLowerCase();return Co.concat(na||[]).some(oa=>{var aa=oa.toLowerCase();return ra.indexOf(aa)!==-1})},Fo=function(ea,na){if(!ea)return!1;var ra=ea.userAgent;if(ra&&Oo(ra,na))return!0;try{var oa=ea?.userAgentData;if(oa!=null&&oa.brands&&oa.brands.some(aa=>Oo(aa?.brand,na)))return!0}catch{}return!!ea.webdriver};function Ao(ea,na,ra){return go({distinct_id:ea,userPropertiesToSet:na,userPropertiesToSetOnce:ra})}(function(ea){ea.US="us",ea.EU="eu",ea.CUSTOM="custom"})(Mo||(Mo={}));var Do="i.posthog.com";class jo{constructor(na){this.Kr={},this.instance=na}get apiHost(){var na=this.instance.config.api_host.trim().replace(/\/$/,"");return na==="https://app.posthog.com"?"https://us.i.posthog.com":na}get uiHost(){var na,ra=(na=this.instance.config.ui_host)==null?void 0:na.replace(/\/$/,"");return ra||(ra=this.apiHost.replace("."+Do,".posthog.com")),ra==="https://app.posthog.com"?"https://us.posthog.com":ra}get region(){return this.Kr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Kr[this.apiHost]=Mo.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Kr[this.apiHost]=Mo.EU:this.Kr[this.apiHost]=Mo.CUSTOM),this.Kr[this.apiHost]}endpointFor(na,ra){if(ra===void 0&&(ra=""),ra&&(ra=ra[0]==="/"?ra:"/"+ra),na==="ui")return this.uiHost+ra;if(this.region===Mo.CUSTOM)return this.apiHost+ra;var oa=Do+ra;switch(na){case"assets":return"https://"+this.region+"-assets."+oa;case"api":return"https://"+this.region+"."+oa}}}var Lo={icontains:(ea,na)=>!!i$1&&na.href.toLowerCase().indexOf(ea.toLowerCase())>-1,not_icontains:(ea,na)=>!!i$1&&na.href.toLowerCase().indexOf(ea.toLowerCase())===-1,regex:(ea,na)=>!!i$1&&eo(na.href,ea),not_regex:(ea,na)=>!!i$1&&!eo(na.href,ea),exact:(ea,na)=>na.href===ea,is_not:(ea,na)=>na.href!==ea};class No{constructor(na){var ra=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(oa){oa===void 0&&(oa=!1),ra.getWebExperiments(aa=>{No.Yr("retrieved web experiments from the server"),ra.Xr=new Map,aa.forEach(sa=>{if(sa.feature_flag_key){var la;ra.Xr&&(No.Yr("setting flag key ",sa.feature_flag_key," to web experiment ",sa),(la=ra.Xr)==null||la.set(sa.feature_flag_key,sa));var ca=ra._instance.getFeatureFlag(sa.feature_flag_key);T(ca)&&sa.variants[ca]&&ra.Qr(sa.name,ca,sa.variants[ca].transforms)}else if(sa.variants)for(var ua in sa.variants){var da=sa.variants[ua];No.Zr(da)&&ra.Qr(sa.name,ua,da.transforms)}})},oa)},this._instance=na,this._instance.onFeatureFlags(oa=>{this.onFeatureFlags(oa)})}onFeatureFlags(na){if(this._is_bot())No.Yr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(O(this.Xr))return this.Xr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();No.Yr("applying feature flags",na),na.forEach(ra=>{var oa;if(this.Xr&&(oa=this.Xr)!=null&&oa.has(ra)){var aa,sa=this._instance.getFeatureFlag(ra),la=(aa=this.Xr)==null?void 0:aa.get(ra);sa&&la!=null&&la.variants[sa]&&this.Qr(la.name,sa,la.variants[sa].transforms)}})}}previewWebExperiment(){var na=No.getWindowLocation();if(na!=null&&na.search){var ra=Si(na?.search,"__experiment_id"),oa=Si(na?.search,"__experiment_variant");ra&&oa&&(No.Yr("previewing web experiments "+ra+" && "+oa),this.getWebExperiments(aa=>{this.ts(parseInt(ra),oa,aa)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(na,ra,oa){if(this._instance.config.disable_web_experiments&&!oa)return na([]);var aa=this._instance.get_property("$web_experiments");if(aa&&!ra)return na(aa);this._instance.ge({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:sa=>{if(sa.statusCode!==200||!sa.json)return na([]);var la=sa.json.experiments||[];return na(la)}})}ts(na,ra,oa){var aa=oa.filter(sa=>sa.id===na);aa&&aa.length>0&&(No.Yr("Previewing web experiment ["+aa[0].name+"] with variant ["+ra+"]"),this.Qr(aa[0].name,ra,aa[0].variants[ra].transforms))}static Zr(na){return!O(na.conditions)&&No.es(na)&&No.rs(na)}static es(na){var ra;if(O(na.conditions)||O((ra=na.conditions)==null?void 0:ra.url))return!0;var oa,aa,sa,la=No.getWindowLocation();return!!la&&((oa=na.conditions)==null||!oa.url||Lo[(aa=(sa=na.conditions)==null?void 0:sa.urlMatchType)!==null&&aa!==void 0?aa:"icontains"](na.conditions.url,la))}static getWindowLocation(){return i$1?.location}static rs(na){var ra;if(O(na.conditions)||O((ra=na.conditions)==null?void 0:ra.utm))return!0;var oa=On();if(oa.utm_source){var aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va,xa,ya,Aa,Ca,Sa=(aa=na.conditions)==null||(sa=aa.utm)==null||!sa.utm_campaign||((la=na.conditions)==null||(ca=la.utm)==null?void 0:ca.utm_campaign)==oa.utm_campaign,wa=(ua=na.conditions)==null||(da=ua.utm)==null||!da.utm_source||((pa=na.conditions)==null||(ha=pa.utm)==null?void 0:ha.utm_source)==oa.utm_source,ba=(ga=na.conditions)==null||(fa=ga.utm)==null||!fa.utm_medium||((ma=na.conditions)==null||(va=ma.utm)==null?void 0:va.utm_medium)==oa.utm_medium,Ea=(xa=na.conditions)==null||(ya=xa.utm)==null||!ya.utm_term||((Aa=na.conditions)==null||(Ca=Aa.utm)==null?void 0:Ca.utm_term)==oa.utm_term;return Sa&&ba&&Ea&&wa}return!1}static Yr(na){for(var ra=arguments.length,oa=new Array(ra>1?ra-1:0),aa=1;aa<ra;aa++)oa[aa-1]=arguments[aa];N.info("[WebExperiments] "+na,oa)}Qr(na,ra,oa){this._is_bot()?No.Yr("Refusing to render web experiment since the viewer is a likely bot"):ra!=="control"?oa.forEach(aa=>{if(aa.selector){var sa;No.Yr("applying transform of variant "+ra+" for experiment "+na+" ",aa);var la=(sa=document)==null?void 0:sa.querySelectorAll(aa.selector);la?.forEach(ca=>{var ua=ca;aa.html&&(ua.innerHTML=aa.html),aa.css&&ua.setAttribute("style",aa.css)})}}):No.Yr("Control variants leave the page unmodified.")}_is_bot(){return o$1&&this._instance?Fo(o$1,this._instance.config.custom_blocked_useragents):void 0}}var zo={},Uo=()=>{},qo="posthog",Bo=!co&&v?.indexOf("MSIE")===-1&&v?.indexOf("Mozilla")===-1,Ho=()=>{var ea;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:et(a$1?.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Uo,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:l$1&&T(l$1?.search)&&l$1.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(i$1==null||(ea=i$1.location)==null?void 0:ea.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:na=>{var ra="Bad HTTP status: "+na.statusCode+" "+na.text;N.error(ra)},get_device_id:na=>na,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:bo},_onCapture:Uo}},Wo=ea=>{var na={};R(ea.process_person)||(na.person_profiles=ea.process_person),R(ea.xhr_headers)||(na.request_headers=ea.xhr_headers),R(ea.cookie_name)||(na.persistence_name=ea.cookie_name),R(ea.disable_cookie)||(na.disable_persistence=ea.disable_cookie),R(ea.store_google)||(na.save_campaign_params=ea.store_google),R(ea.verbose)||(na.debug=ea.verbose);var ra=V({},na,ea);return x(ea.property_blacklist)&&(R(ea.property_denylist)?ra.property_denylist=ea.property_blacklist:x(ea.property_denylist)?ra.property_denylist=[...ea.property_blacklist,...ea.property_denylist]:N.error("Invalid value for property_denylist config: "+ea.property_denylist)),ra};class Go{constructor(){this.__forceAllowLocalhost=!1}get ss(){return this.__forceAllowLocalhost}set ss(na){N.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=na}}class Jo{get decideEndpointWasHit(){var na,ra;return(na=(ra=this.featureFlags)==null?void 0:ra.hasLoadedFlags)!==null&&na!==void 0&&na}constructor(){this.webPerformance=new Go,this.ns=!1,this.version=f.LIB_VERSION,this.os=new io,this.config=Ho(),this.SentryIntegration=gs,this.sentryIntegration=na=>function(ra,oa){var aa=ps(ra,oa);return{name:fs,processEvent:sa=>aa(sa)}}(this,na),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.ls=!1,this.hs=null,this.us=null,this.ds=null,this.featureFlags=new Qn(this),this.toolbar=new ys(this),this.scrollManager=new $o(this),this.pageViewManager=new Ts(this),this.surveys=new oo(this),this.experiments=new No(this),this.exceptions=new Ms(this),this.rateLimiter=new lo(this),this.requestRouter=new jo(this),this.consent=new Zi(this),this.people={set:(na,ra,oa)=>{var aa=T(na)?{[na]:ra}:na;this.setPersonProperties(aa),oa?.({})},set_once:(na,ra,oa)=>{var aa=T(na)?{[na]:ra}:na;this.setPersonProperties(void 0,aa),oa?.({})}},this.on("eventCaptured",na=>N.info('send "'+na?.event+'"',na))}init(na,ra,oa){if(oa&&oa!==qo){var aa,sa=(aa=zo[oa])!==null&&aa!==void 0?aa:new Jo;return sa._init(na,ra,oa),zo[oa]=sa,zo[qo][oa]=sa,sa}return this._init(na,ra,oa)}_init(na,ra,oa){var aa,sa;if(ra===void 0&&(ra={}),R(na)||M(na))return N.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return N.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this.vs=[],ra.person_profiles&&(this.us=ra.person_profiles),this.set_config(V({},Ho(),Wo(ra),{name:oa,token:na})),this.config.on_xhr_error&&N.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=ra.disable_compression?void 0:t$1.GZipJS,this.persistence=new to(this.config),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new to(B({},this.config,{persistence:"sessionStorage"}));var la=B({},this.persistence.props),ca=B({},this.sessionPersistence.props);if(this.cs=new wo(ya=>this.fs(ya),this.config.request_queue_config),this.ps=new So(this),this.__request_queue=[],this.config.__preview_experimental_cookieless_mode||(this.sessionManager=new Io(this),this.sessionPropsManager=new xo(this,this.sessionManager,this.persistence)),new $s(this).startIfEnabledOrStop(),this.siteApps=new To(this),(aa=this.siteApps)==null||aa.init(),this.config.__preview_experimental_cookieless_mode||(this.sessionRecording=new ds(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Ti(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Rs(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new Es(this),this.exceptionObserver=new ne(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new re(this,ee),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new je(this),this.historyAutocapture.startIfEnabled(),f.DEBUG=f.DEBUG||this.config.debug,f.DEBUG&&N.info("Starting in debug mode",{this:this,config:ra,thisC:B({},this.config),p:la,s:ca}),this.gs(),((sa=ra.bootstrap)==null?void 0:sa.distinctID)!==void 0){var ua,da,pa=this.config.get_device_id(ji()),ha=(ua=ra.bootstrap)!=null&&ua.isIdentifiedID?pa:ra.bootstrap.distinctID;this.persistence.set_property(Ft,(da=ra.bootstrap)!=null&&da.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:ra.bootstrap.distinctID,$device_id:ha})}if(this._s()){var ga,fa,ma=Object.keys(((ga=ra.bootstrap)==null?void 0:ga.featureFlags)||{}).filter(ya=>{var Aa,Ca;return!((Aa=ra.bootstrap)==null||(Ca=Aa.featureFlags)==null||!Ca[ya])}).reduce((ya,Aa)=>{var Ca,Sa;return ya[Aa]=((Ca=ra.bootstrap)==null||(Sa=Ca.featureFlags)==null?void 0:Sa[Aa])||!1,ya},{}),va=Object.keys(((fa=ra.bootstrap)==null?void 0:fa.featureFlagPayloads)||{}).filter(ya=>ma[ya]).reduce((ya,Aa)=>{var Ca,Sa,wa,ba;return(Ca=ra.bootstrap)!=null&&(Sa=Ca.featureFlagPayloads)!=null&&Sa[Aa]&&(ya[Aa]=(wa=ra.bootstrap)==null||(ba=wa.featureFlagPayloads)==null?void 0:ba[Aa]),ya},{});this.featureFlags.receivedFeatureFlags({featureFlags:ma,featureFlagPayloads:va})}if(this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:qt,$device_id:null},"");else if(!this.get_distinct_id()){var xa=this.config.get_device_id(ji());this.register_once({distinct_id:xa,$device_id:xa},""),this.persistence.set_property(Ft,"anonymous")}return st(i$1,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),ra.segment?cs(this,()=>this.bs()):this.bs(),E(this.config._onCapture)&&this.config._onCapture!==Uo&&(N.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",ya=>this.config._onCapture(ya.event,ya))),this}_e(na){var ra,oa,aa,sa,la,ca,ua,da;if(!a$1||!a$1.body)return N.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this._e(na)},500);this.compression=void 0,na.supportedCompression&&!this.config.disable_compression&&(this.compression=m(na.supportedCompression,t$1.GZipJS)?t$1.GZipJS:m(na.supportedCompression,t$1.Base64)?t$1.Base64:void 0),(ra=na.analytics)!=null&&ra.endpoint&&(this.analyticsDefaultEndpoint=na.analytics.endpoint),this.set_config({person_profiles:this.us?this.us:"identified_only"}),(oa=this.siteApps)==null||oa.onRemoteConfig(na),(aa=this.sessionRecording)==null||aa.onRemoteConfig(na),(sa=this.autocapture)==null||sa.onRemoteConfig(na),(la=this.heatmaps)==null||la.onRemoteConfig(na),this.surveys.onRemoteConfig(na),(ca=this.webVitalsAutocapture)==null||ca.onRemoteConfig(na),(ua=this.exceptionObserver)==null||ua.onRemoteConfig(na),(da=this.deadClicksAutocapture)==null||da.onRemoteConfig(na)}bs(){try{this.config.loaded(this)}catch(na){N.critical("`loaded` function failed",na)}this.ws(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this.ys()},1),new uo(this).load(),this.featureFlags.decide()}ws(){var na;this.has_opted_out_capturing()||this.config.request_batching&&((na=this.cs)==null||na.enable())}_dom_loaded(){this.has_opted_out_capturing()||G(this.__request_queue,na=>this.fs(na)),this.__request_queue=[],this.ws()}_handle_unload(){var na,ra;this.config.request_batching?(this.Ss()&&this.capture("$pageleave"),(na=this.cs)==null||na.unload(),(ra=this.ps)==null||ra.unload()):this.Ss()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ge(na){this.__loaded&&(Bo?this.__request_queue.push(na):this.rateLimiter.isServerRateLimited(na.batchKey)||(na.transport=na.transport||this.config.api_transport,na.url=po(na.url,{ip:this.config.ip?1:0}),na.headers=B({},this.config.request_headers),na.compression=na.compression==="best-available"?this.compression:na.compression,na.fetchOptions=na.fetchOptions||this.config.fetch_options,(ra=>{var oa,aa,sa,la=B({},ra);la.timeout=la.timeout||6e4,la.url=po(la.url,{_:new Date().getTime().toString(),ver:f.LIB_VERSION,compression:la.compression});var ca=(oa=la.transport)!==null&&oa!==void 0?oa:"fetch",ua=(aa=(sa=rt(mo,da=>da.transport===ca))==null?void 0:sa.method)!==null&&aa!==void 0?aa:mo[0].method;if(!ua)throw new Error("No available transport method");ua(la)})(B({},na,{callback:ra=>{var oa,aa;this.rateLimiter.checkForLimiting(ra),ra.statusCode>=400&&((oa=(aa=this.config).on_request_error)==null||oa.call(aa,ra)),na.callback==null||na.callback(ra)}}))))}fs(na){this.ps?this.ps.retriableRequest(na):this.ge(na)}_execute_array(na){var ra,oa=[],aa=[],sa=[];G(na,ca=>{ca&&(ra=ca[0],x(ra)?sa.push(ca):E(ca)?ca.call(this):x(ca)&&ra==="alias"?oa.push(ca):x(ca)&&ra.indexOf("capture")!==-1&&E(this[ra])?sa.push(ca):aa.push(ca))});var la=function(ca,ua){G(ca,function(da){if(x(da[0])){var pa=ua;J(da,function(ha){pa=pa[ha[0]].apply(pa,ha.slice(1))})}else this[da[0]].apply(this,da.slice(1))},ua)};la(oa,this),la(aa,this),la(sa,this)}_s(){var na,ra;return((na=this.config.bootstrap)==null?void 0:na.featureFlags)&&Object.keys((ra=this.config.bootstrap)==null?void 0:ra.featureFlags).length>0||!1}push(na){this._execute_array([na])}capture(na,ra,oa){var aa;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.cs){if(!this.consent.isOptedOut())if(!R(na)&&T(na)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var sa=oa!=null&&oa.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(sa==null||!sa.isRateLimited){ra!=null&&ra.$current_url&&!T(ra?.$current_url)&&(N.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),ra==null||delete ra.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var la=new Date,ca=oa?.timestamp||la,ua=ji(),da={uuid:ua,event:na,properties:this.Ai(na,ra||{},ca,ua)};sa&&(da.properties.$lib_rate_limit_remaining_tokens=sa.remainingTokens),oa?.$set&&(da.$set=oa?.$set);var pa=this.$s(oa?.$set_once);pa&&(da.$set_once=pa),(da=tt(da,oa!=null&&oa._noTruncate?null:this.config.properties_string_max_length)).timestamp=ca,R(oa?.timestamp)||(da.properties.$event_time_override_provided=!0,da.properties.$event_time_override_system_time=la);var ha=B({},da.properties.$set,da.$set);if(P(ha)||this.setPersonPropertiesForFlags(ha),!O(this.config.before_send)){var ga=this.ks(da);if(!ga)return;da=ga}this.os.emit("eventCaptured",da);var fa={method:"POST",url:(aa=oa?._url)!==null&&aa!==void 0?aa:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:da,compression:"best-available",batchKey:oa?._batchKey};return!this.config.request_batching||oa&&(oa==null||!oa._batchKey)||oa!=null&&oa.send_instantly?this.fs(fa):this.cs.enqueue(fa),da}N.critical("This capture call is ignored due to client rate limiting.")}}else N.error("No event name provided to posthog.capture")}else N.uninitializedWarning("posthog.capture")}De(na){return this.on("eventCaptured",ra=>na(ra.event,ra))}Ai(na,ra,oa,aa){if(oa=oa||new Date,!this.persistence||!this.sessionPersistence)return ra;var sa=this.persistence.remove_event_timer(na),la=B({},ra);if(la.token=this.config.token,this.config.__preview_experimental_cookieless_mode&&(la.$cookieless_mode=!0),na==="$snapshot"){var ca=B({},this.persistence.properties(),this.sessionPersistence.properties());return la.distinct_id=ca.distinct_id,(!T(la.distinct_id)&&!F(la.distinct_id)||M(la.distinct_id))&&N.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),la}var ua,da=qn(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:pa,windowId:ha}=this.sessionManager.checkAndGetSessionAndWindowId();la.$session_id=pa,la.$window_id=ha}this.sessionPropsManager&&V(la,this.sessionPropsManager.getSessionProps());try{var ga;this.sessionRecording&&V(la,this.sessionRecording.sdkDebugProperties),la.$sdk_debug_retry_queue_size=(ga=this.ps)==null?void 0:ga.length}catch(xa){la.$sdk_debug_error_capturing_properties=String(xa)}if(this.requestRouter.region===Mo.CUSTOM&&(la.$lib_custom_api_host=this.config.api_host),ua=na==="$pageview"?this.pageViewManager.doPageView(oa,aa):na==="$pageleave"?this.pageViewManager.doPageLeave(oa):this.pageViewManager.doEvent(),la=V(la,ua),na==="$pageview"&&a$1&&(la.title=a$1.title),!R(sa)){var fa=oa.getTime()-sa;la.$duration=parseFloat((fa/1e3).toFixed(3))}v&&this.config.opt_out_useragent_filter&&(la.$browser_type=this._is_bot()?"bot":"browser"),(la=V({},da,this.persistence.properties(),this.sessionPersistence.properties(),la)).$is_identified=this._isIdentified(),x(this.config.property_denylist)?J(this.config.property_denylist,function(xa){delete la[xa]}):N.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var ma=this.config.sanitize_properties;ma&&(N.error("sanitize_properties is deprecated. Use before_send instead"),la=ma(la,na));var va=this.xs();return la.$process_person_profile=va,va&&this.Es("_calculate_event_properties"),la}$s(na){var ra;if(!this.persistence||!this.xs()||this.ns)return na;var oa=this.persistence.get_initial_props(),aa=(ra=this.sessionPropsManager)==null?void 0:ra.getSetOnceProps(),sa=V({},oa,aa||{},na||{}),la=this.config.sanitize_properties;return la&&(N.error("sanitize_properties is deprecated. Use before_send instead"),sa=la(sa,"$set_once")),this.ns=!0,P(sa)?void 0:sa}register(na,ra){var oa;(oa=this.persistence)==null||oa.register(na,ra)}register_once(na,ra,oa){var aa;(aa=this.persistence)==null||aa.register_once(na,ra,oa)}register_for_session(na){var ra;(ra=this.sessionPersistence)==null||ra.register(na)}unregister(na){var ra;(ra=this.persistence)==null||ra.unregister(na)}unregister_for_session(na){var ra;(ra=this.sessionPersistence)==null||ra.unregister(na)}Is(na,ra){this.register({[na]:ra})}getFeatureFlag(na,ra){return this.featureFlags.getFeatureFlag(na,ra)}getFeatureFlagPayload(na){var ra=this.featureFlags.getFeatureFlagPayload(na);try{return JSON.parse(ra)}catch{return ra}}isFeatureEnabled(na,ra){return this.featureFlags.isFeatureEnabled(na,ra)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(na,ra){this.featureFlags.updateEarlyAccessFeatureEnrollment(na,ra)}getEarlyAccessFeatures(na,ra,oa){return ra===void 0&&(ra=!1),this.featureFlags.getEarlyAccessFeatures(na,ra,oa)}on(na,ra){return this.os.on(na,ra)}onFeatureFlags(na){return this.featureFlags.onFeatureFlags(na)}onSurveysLoaded(na){return this.surveys.onSurveysLoaded(na)}onSessionId(na){var ra,oa;return(ra=(oa=this.sessionManager)==null?void 0:oa.onSessionId(na))!==null&&ra!==void 0?ra:()=>{}}getSurveys(na,ra){ra===void 0&&(ra=!1),this.surveys.getSurveys(na,ra)}getActiveMatchingSurveys(na,ra){ra===void 0&&(ra=!1),this.surveys.getActiveMatchingSurveys(na,ra)}renderSurvey(na,ra){this.surveys.renderSurvey(na,ra)}canRenderSurvey(na){return this.surveys.canRenderSurvey(na)}canRenderSurveyAsync(na,ra){return ra===void 0&&(ra=!1),this.surveys.canRenderSurveyAsync(na,ra)}identify(na,ra,oa){if(!this.__loaded||!this.persistence)return N.uninitializedWarning("posthog.identify");if(F(na)&&(na=na.toString(),N.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),na){if(["distinct_id","distinctid"].includes(na.toLowerCase()))N.critical('The string "'+na+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(this.Es("posthog.identify")){var aa=this.get_distinct_id();if(this.register({$user_id:na}),!this.get_property("$device_id")){var sa=aa;this.register_once({$had_persisted_distinct_id:!0,$device_id:sa},"")}na!==aa&&na!==this.get_property(ot)&&(this.unregister(ot),this.register({distinct_id:na}));var la=(this.persistence.get_property(Ft)||"anonymous")==="anonymous";na!==aa&&la?(this.persistence.set_property(Ft,"identified"),this.setPersonPropertiesForFlags(B({},oa||{},ra||{}),!1),this.capture("$identify",{distinct_id:na,$anon_distinct_id:aa},{$set:ra||{},$set_once:oa||{}}),this.ds=Ao(na,ra,oa),this.featureFlags.setAnonymousDistinctId(aa)):(ra||oa)&&this.setPersonProperties(ra,oa),na!==aa&&(this.reloadFeatureFlags(),this.unregister(Ot))}}else N.error("Unique user id has not been set in posthog.identify")}setPersonProperties(na,ra){if((na||ra)&&this.Es("posthog.setPersonProperties")){var oa=Ao(this.get_distinct_id(),na,ra);this.ds!==oa?(this.setPersonPropertiesForFlags(B({},ra||{},na||{})),this.capture("$set",{$set:na||{},$set_once:ra||{}}),this.ds=oa):N.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(na,ra,oa){if(na&&ra){if(this.Es("posthog.group")){var aa=this.getGroups();aa[na]!==ra&&this.resetGroupPropertiesForFlags(na),this.register({$groups:B({},aa,{[na]:ra})}),oa&&(this.capture("$groupidentify",{$group_type:na,$group_key:ra,$group_set:oa}),this.setGroupPropertiesForFlags({[na]:oa})),aa[na]===ra||oa||this.reloadFeatureFlags()}}else N.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(na,ra){ra===void 0&&(ra=!0),this.featureFlags.setPersonPropertiesForFlags(na,ra)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(na,ra){ra===void 0&&(ra=!0),this.Es("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(na,ra)}resetGroupPropertiesForFlags(na){this.featureFlags.resetGroupPropertiesForFlags(na)}reset(na){var ra,oa,aa,sa;if(N.info("reset"),!this.__loaded)return N.uninitializedWarning("posthog.reset");var la=this.get_property("$device_id");if(this.consent.reset(),(ra=this.persistence)==null||ra.clear(),(oa=this.sessionPersistence)==null||oa.clear(),this.surveys.reset(),(aa=this.persistence)==null||aa.set_property(Ft,"anonymous"),(sa=this.sessionManager)==null||sa.resetSessionId(),this.ds=null,this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:qt,$device_id:null},"");else{var ca=this.config.get_device_id(ji());this.register_once({distinct_id:ca,$device_id:na?ca:la},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var na,ra;return(na=(ra=this.sessionManager)==null?void 0:ra.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&na!==void 0?na:""}get_session_replay_url(na){if(!this.sessionManager)return"";var{sessionId:ra,sessionStartTimestamp:oa}=this.sessionManager.checkAndGetSessionAndWindowId(!0),aa=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+ra);if(na!=null&&na.withTimestamp&&oa){var sa,la=(sa=na.timestampLookBack)!==null&&sa!==void 0?sa:10;if(!oa)return aa;aa+="?t="+Math.max(Math.floor((new Date().getTime()-oa)/1e3)-la,0)}return aa}alias(na,ra){return na===this.get_property(nt)?(N.critical("Attempting to create alias for existing People user - aborting."),-2):this.Es("posthog.alias")?(R(ra)&&(ra=this.get_distinct_id()),na!==ra?(this.Is(ot,na),this.capture("$create_alias",{alias:na,distinct_id:ra})):(N.warn("alias matches current distinct_id - skipping api call."),this.identify(na),-1)):void 0}set_config(na){var ra,oa,aa,sa,la=B({},this.config);I(na)&&(V(this.config,Wo(na)),(ra=this.persistence)==null||ra.update_config(this.config,la),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new to(B({},this.config,{persistence:"sessionStorage"})),Gi.O()&&Gi.A("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(f.DEBUG=!0,N.info("set_config",JSON.stringify({config:na,oldConfig:la,newConfig:B({},this.config)},null,2))),(oa=this.sessionRecording)==null||oa.startIfEnabledOrStop(),(aa=this.autocapture)==null||aa.startIfEnabled(),(sa=this.heatmaps)==null||sa.startIfEnabled(),this.surveys.loadIfEnabled(),this.gs())}startSessionRecording(na){var ra=na===!0,oa={sampling:ra||!(na==null||!na.sampling),linked_flag:ra||!(na==null||!na.linked_flag),url_trigger:ra||!(na==null||!na.url_trigger),event_trigger:ra||!(na==null||!na.event_trigger)};if(Object.values(oa).some(Boolean)){var aa,sa,la,ca,ua;(aa=this.sessionManager)==null||aa.checkAndGetSessionAndWindowId(),oa.sampling&&((sa=this.sessionRecording)==null||sa.overrideSampling()),oa.linked_flag&&((la=this.sessionRecording)==null||la.overrideLinkedFlag()),oa.url_trigger&&((ca=this.sessionRecording)==null||ca.overrideTrigger("url")),oa.event_trigger&&((ua=this.sessionRecording)==null||ua.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var na;return!((na=this.sessionRecording)==null||!na.started)}captureException(na,ra){var oa=new Error("PostHog syntheticException");this.exceptions.sendExceptionEvent(B({},Ae((aa=>aa instanceof Error)(na)?{error:na,event:na.message}:{event:na},{syntheticException:oa}),ra))}loadToolbar(na){return this.toolbar.loadToolbar(na)}get_property(na){var ra;return(ra=this.persistence)==null?void 0:ra.props[na]}getSessionProperty(na){var ra;return(ra=this.sessionPersistence)==null?void 0:ra.props[na]}toString(){var na,ra=(na=this.config.name)!==null&&na!==void 0?na:qo;return ra!==qo&&(ra=qo+"."+ra),ra}_isIdentified(){var na,ra;return((na=this.persistence)==null?void 0:na.get_property(Ft))==="identified"||((ra=this.sessionPersistence)==null?void 0:ra.get_property(Ft))==="identified"}xs(){var na,ra,oa,aa;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&P(this.getGroups())&&((na=this.persistence)==null||(ra=na.props)==null||!ra[ot])&&((oa=this.persistence)==null||(aa=oa.props)==null||!aa[zt]))}Ss(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.xs()||this.Es("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Es(na){return this.config.person_profiles==="never"?(N.error(na+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Is(zt,!0),!0)}gs(){var na,ra,oa,aa,sa=this.consent.isOptedOut(),la=this.config.opt_out_persistence_by_default,ca=this.config.disable_persistence||sa&&!!la;((na=this.persistence)==null?void 0:na.$e)!==ca&&((oa=this.persistence)==null||oa.set_disabled(ca)),((ra=this.sessionPersistence)==null?void 0:ra.$e)!==ca&&((aa=this.sessionPersistence)==null||aa.set_disabled(ca))}opt_in_capturing(na){var ra;this.consent.optInOut(!0),this.gs(),(R(na?.captureEventName)||na!=null&&na.captureEventName)&&this.capture((ra=na?.captureEventName)!==null&&ra!==void 0?ra:"$opt_in",na?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.ys()}opt_out_capturing(){this.consent.optInOut(!1),this.gs()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this.gs()}_is_bot(){return o$1?Fo(o$1,this.config.custom_blocked_useragents):void 0}ys(){a$1&&(a$1.visibilityState==="visible"?this.ls||(this.ls=!0,this.capture("$pageview",{title:a$1.title},{send_instantly:!0}),this.hs&&(a$1.removeEventListener("visibilitychange",this.hs),this.hs=null)):this.hs||(this.hs=this.ys.bind(this),st(a$1,"visibilitychange",this.hs)))}debug(na){na===!1?(i$1?.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(i$1?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}ks(na){if(O(this.config.before_send))return na;var ra=x(this.config.before_send)?this.config.before_send:[this.config.before_send],oa=na;for(var aa of ra){if(oa=aa(oa),O(oa)){var sa="Event '"+na.event+"' was rejected in beforeSend function";return j(na.event)?N.warn(sa+". This can cause unexpected behavior."):N.info(sa),null}oa.properties&&!P(oa.properties)||N.warn("Event '"+na.event+"' has no properties after beforeSend function, this is likely an error.")}return oa}getPageViewId(){var na;return(na=this.pageViewManager.ne)==null?void 0:na.pageViewId}captureTraceFeedback(na,ra){this.capture("$ai_feedback",{$ai_trace_id:String(na),$ai_feedback_text:ra})}captureTraceMetric(na,ra,oa){this.capture("$ai_metric",{$ai_trace_id:String(na),$ai_metric_name:ra,$ai_metric_value:String(oa)})}}(function(ea,na){for(var ra=0;ra<na.length;ra++)ea.prototype[na[ra]]=Q(ea.prototype[na[ra]])})(Jo,["identify"]);var Vo,Ko,Yo,Xo,Qo,Zo;(function(ea){ea.Button="button",ea.Tab="tab",ea.Selector="selector"})(Vo||(Vo={})),function(ea){ea.Left="left",ea.Center="center",ea.Right="right",ea.NextToTrigger="next_to_trigger"}(Ko||(Ko={})),function(ea){ea.Popover="popover",ea.API="api",ea.Widget="widget"}(Yo||(Yo={})),function(ea){ea.Open="open",ea.MultipleChoice="multiple_choice",ea.SingleChoice="single_choice",ea.Rating="rating",ea.Link="link"}(Xo||(Xo={})),function(ea){ea.NextQuestion="next_question",ea.End="end",ea.ResponseBased="response_based",ea.SpecificQuestion="specific_question"}(Qo||(Qo={})),function(ea){ea.Once="once",ea.Recurring="recurring",ea.Always="always"}(Zo||(Zo={}));var ta,ia=(ta=zo[qo]=new Jo,function(){function ea(){ea.done||(ea.done=!0,Bo=!1,J(zo,function(na){na._dom_loaded()}))}a$1!=null&&a$1.addEventListener?a$1.readyState==="complete"?ea():st(a$1,"DOMContentLoaded",ea,{capture:!1}):i$1&&N.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),ta),PostHogContext=reactExports.createContext({client:ia});function isDeepEqual(ea,na,ra){if(ra===void 0&&(ra=new WeakMap),ea===na)return!0;if(typeof ea!="object"||ea===null||typeof na!="object"||na===null)return!1;if(ra.has(ea)&&ra.get(ea)===na)return!0;ra.set(ea,na);var oa=Object.keys(ea),aa=Object.keys(na);if(oa.length!==aa.length)return!1;for(var sa=0,la=oa;sa<la.length;sa++){var ca=la[sa];if(!aa.includes(ca)||!isDeepEqual(ea[ca],na[ca],ra))return!1}return!0}function PostHogProvider(ea){var na=ea.children,ra=ea.client,oa=ea.apiKey,aa=ea.options,sa=reactExports.useRef(null),la=reactExports.useMemo(function(){return ra?(oa&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),aa&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),ra):(oa||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),ia)},[ra,oa,JSON.stringify(aa)]);return reactExports.useEffect(function(){if(!ra){var ca=sa.current;ca?(oa!==ca.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),aa&&!isDeepEqual(aa,ca.options)&&ia.set_config(aa),sa.current={apiKey:oa,options:aa??{}}):(ia.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),ia.init(oa,aa),sa.current={apiKey:oa,options:aa??{}})}},[ra,oa,JSON.stringify(aa)]),React.createElement(PostHogContext.Provider,{value:{client:la}},na)}var extendStatics$6=function(ea,na){return extendStatics$6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)Object.prototype.hasOwnProperty.call(oa,aa)&&(ra[aa]=oa[aa])},extendStatics$6(ea,na)};function __extends$6(ea,na){if(typeof na!="function"&&na!==null)throw new TypeError("Class extends value "+String(na)+" is not a constructor or null");extendStatics$6(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var isFunction$1=function(ea){return typeof ea=="function"},INITIAL_STATE={componentStack:null,error:null},__POSTHOG_ERROR_MESSAGES={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(ea){__extends$6(na,ea);function na(ra){var oa=ea.call(this,ra)||this;return oa.state=INITIAL_STATE,oa}return na.prototype.componentDidCatch=function(ra,oa){var aa=oa.componentStack,sa=this.props.additionalProperties;this.setState({error:ra,componentStack:aa});var la;isFunction$1(sa)?la=sa(ra):typeof sa=="object"&&(la=sa);var ca=this.context.client;ca.captureException(ra,la)},na.prototype.render=function(){var ra=this.props,oa=ra.children,aa=ra.fallback,sa=this.state;if(sa.componentStack==null)return isFunction$1(oa)?oa():oa;var la=isFunction$1(aa)?React.createElement(aa,{error:sa.error,componentStack:sa.componentStack}):aa;return React.isValidElement(la)?la:(console.warn(__POSTHOG_ERROR_MESSAGES.INVALID_FALLBACK),React.createElement(React.Fragment,null))},na.contextType=PostHogContext,na})(React.Component);const PosthogProvider=({children:ea,enabled:na,apiKey:ra,apiHost:oa})=>{const aa=reactExports.useMemo(()=>({api_host:oa,disable_session_recording:!0}),[oa]);return reactExports.useEffect(()=>{},[na]),jsxRuntimeExports.jsxs(PosthogContext.Provider,{value:{enabled:na},children:[na&&jsxRuntimeExports.jsx(PostHogProvider,{apiKey:ra,options:aa,children:ea}),!na&&ea]})},usePosthog=()=>{const{enabled:ea}=reactExports.useContext(PosthogContext);if(ea)return ia},usePosthogCapture=(ea,na)=>{const ra=usePosthog();reactExports.useEffect(()=>{ra?.capture(ea,{...na,host:window.location.host,clientKey:commonEnv.clientKey,tier:commonEnv.user.tier})},[ra,ea,na])},usePosthogCaptureCallback=()=>{const ea=usePosthog();return reactExports.useCallback((na,ra)=>{ea?.capture(na,{...ra,host:window.location.host,clientKey:commonEnv.clientKey,tier:commonEnv.user.tier})},[ea])},useOpenUpgradeToPro=()=>{const{addToModalsStack:ea}=useModal(),na=usePosthogCaptureCallback();return reactExports.useCallback(ra=>{ea([{id:"upgradePro",options:ra}]),na("open_upgrade_to_pro",{source:ra?.source,medium:ra?.medium,content:ra?.content})},[ea,na])},upgradeButtonColor={background:"rgba(180, 102, 44, 0.25)",color:"#FFF",border:"rgba(254, 177, 48, 1)",hover:{background:"#A0693F",color:"#FFF"}},upgradeButtonColors={dark:upgradeButtonColor},upgradeButton={colors:upgradeButtonColors,sizes:solidButton.sizes},UpgradeButton=ea=>{const{t:na}=useTranslation(),{children:ra,onClick:oa,source:aa="depicter_editor",medium:sa="button",content:la="none"}=ea,ca=useOpenUpgradeToPro(),ua=reactExports.useCallback(()=>{ca({source:aa,medium:sa,content:la})},[la,sa,ca,aa]);return jsxRuntimeExports.jsx(BaseButton$1,{...ea,icon:jsxRuntimeExports.jsx(Icon$4,{shape:GemIcon}),onClick:oa||ua,iconAlign:"left",children:ra||na("Upgrade to PRO")})},theme$3M=withTheme(upgradeButton),UpgradeButton$1=dt$1(UpgradeButton).withConfig({displayName:"UpgradeButton",componentId:"sc-x7652f-0"})([""," ","{line-height:0;}border-width:2px;",""],theme$3M.colors((ea,{size:na="small"})=>lt$1(["color:",";background-color:",";box-shadow:0 0 0 ","px "," inset;&:hover{background-color:",";color:",";}"],ea.color,ea.background,na==="large"?3:1.5,ea.border,ea.hover.background,ea.hover.color)),Icon$4,theme$3M.sizes((ea,{size:na="small"})=>lt$1(["padding:",";height:",";font-size:",";"],ea[na].padding,ea[na].height,ea[na].fontSize))),defaultColors$1_={background:"#222222",border:"#000000",shadow:"rgba(0, 0, 0, 0.25)",color:"#FFF"},colors$1_={dark:defaultColors$1_},defaultSizing$1K={title:{fontSize:"14px",fontWeight:"700",lineHeight:"19px"},content:{fontWeight:"400",fontSize:"12px",lineHeight:"16px"}},sizes$1_={default:defaultSizing$1K},scheme$1v=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1_,sizes:sizes$1_},Symbol.toStringTag,{value:"Module"})),InnerWrapper=dt$1.div.withConfig({displayName:"QuickTip__InnerWrapper",componentId:"sc-g0285t-0"})([""]),MediaWrapper=dt$1.div.withConfig({displayName:"QuickTip__MediaWrapper",componentId:"sc-g0285t-1"})([""]),ContentWrapper$3=dt$1.div.withConfig({displayName:"QuickTip__ContentWrapper",componentId:"sc-g0285t-2"})([""]),ButtonsWrapper$3=dt$1.div.withConfig({displayName:"QuickTip__ButtonsWrapper",componentId:"sc-g0285t-3"})([""]),Title$C=dt$1.span.withConfig({displayName:"QuickTip__Title",componentId:"sc-g0285t-4"})([""]),Content$i=dt$1.span.withConfig({displayName:"QuickTip__Content",componentId:"sc-g0285t-5"})([""]),QuickTip=ea=>{const{className:na}=ea,{open:ra,openQuickTip:oa,closeQuickTip:aa,previewData:sa,targetRect:la,container:ca}=reactExports.useContext(QuickTipContext),{t:ua}=useTranslation(),da=sa?.options?.locate||"left",pa=sa?.options?.space||0,ha=sa?.upgradeBtn||!1,ga=sa?.options?.actionType||"hover",fa=reactExports.useRef(null),[ma,va]=reactExports.useState(null),xa=reactExports.useCallback(()=>{sa&&la&&oa(sa,la)},[oa,sa,la]),ya=reactExports.useCallback(()=>{aa()},[aa]);reactExports.useLayoutEffect(()=>{if(ra&&fa.current&&la&&ca?.current&&typeof da=="string"){const{top:$a,height:Ma}=ca.current.getBoundingClientRect(),{top:Ia}=la,{height:Oa}=fa.current.getBoundingClientRect();let Da=Ia-$a;Da<0?Da=pa:Da+Oa>Ma&&(Da=Ma-Oa-pa),va(Da)}else va(null)},[ca,ra,sa,pa,la,typeof da]);const Aa=reactExports.useMemo(()=>{if(typeof da=="string")return{top:ma?`${ma}px`:0,transform:da==="left"?"translateX(-100%)":"translateX(100%)",...da==="left"?{left:`-${pa}px`}:{right:`-${pa}px`}};const{x:$a,y:Ma}=da,{top:Ia=0,left:Oa=0,height:Da=0,width:Ta=0}=la||{};return{top:Ma==="top"?`${Ia-pa}px`:`${Ia+Da+pa}px`,left:$a==="left"?`${Oa}px`:`${Oa+Ta}px`,transform:(Ma==="top"?"translateY(-100%)":"")+($a==="right"?" translateX(100%)":"")}},[ma,da,pa,la]),Ca=reactExports.useCallback(()=>{aa(!0)},[aa]),Sa=reactExports.useMemo(()=>ga==="hover"?{onMouseEnter:xa,onMouseLeave:ya}:{},[ga,ya,xa]);if(!sa||!ca?.current)return null;const{media:wa,title:ba,content:Ea}=sa;return reactDomExports.createPortal(jsxRuntimeExports.jsx("div",{className:na,style:Aa,ref:fa,...Sa,children:jsxRuntimeExports.jsx(AppearWrap$1,{visible:ra,transform:"translateY(30px)",children:jsxRuntimeExports.jsxs(InnerWrapper,{children:[wa&&jsxRuntimeExports.jsx(MediaWrapper,{children:wa.type==="image"?jsxRuntimeExports.jsx(ImageBox$1,{src:wa.src,width:"100%",height:"100%",fitMode:"cover",loadingType:"symbol"}):jsxRuntimeExports.jsx(VideoBox$1,{src:wa.src,playState:"play",autoPlay:!0,loop:!0,muted:!0,fitMode:"cover"})}),jsxRuntimeExports.jsxs(ContentWrapper$3,{children:[jsxRuntimeExports.jsx(Title$C,{children:ba}),jsxRuntimeExports.jsx(Content$i,{children:Ea}),jsxRuntimeExports.jsxs(ButtonsWrapper$3,{children:[jsxRuntimeExports.jsx(OutlineButton$1,{onClick:Ca,size:"small",children:ua("Dismiss")}),ha&&jsxRuntimeExports.jsx(UpgradeButton$1,{...sa.upgradeUTM})]})]})]})})}),ca.current)},theme$3L=withTheme(scheme$1v),QuickTip$1=dt$1(QuickTip).withConfig({displayName:"QuickTip",componentId:"sc-g0285t-6"})(["position:absolute;z-index:1000;","{display:flex;flex-direction:column;width:345px;border-radius:5px;overflow:hidden;}","{height:195px;}","{padding:20px;display:flex;flex-direction:column;}","{margin-top:5px;}","{display:flex;margin-top:20px;gap:10px;align-self:flex-end;}"," ",""],InnerWrapper,MediaWrapper,ContentWrapper$3,Content$i,ButtonsWrapper$3,theme$3L.colors(ea=>lt$1(["","{background-color:",";border:1px solid ",";box-shadow:2px 10px 25px 0px ",";}",",","{color:",";}"],InnerWrapper,ea.background,ea.border,ea.shadow,Title$C,Content$i,ea.color)),theme$3L.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$C,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Content$i,ea.content.fontSize,ea.content.fontWeight,ea.content.lineHeight)));var lodash$1={exports:{}};/**
 * @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
 */var lodash=lodash$1.exports,hasRequiredLodash;function requireLodash(){return hasRequiredLodash||(hasRequiredLodash=1,function(ea,na){(function(){var ra,oa="4.17.21",aa=200,sa="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",la="Expected a function",ca="Invalid `variable` option passed into `_.template`",ua="__lodash_hash_undefined__",da=500,pa="__lodash_placeholder__",ha=1,ga=2,fa=4,ma=1,va=2,xa=1,ya=2,Aa=4,Ca=8,Sa=16,wa=32,ba=64,Ea=128,$a=256,Ma=512,Ia=30,Oa="...",Da=800,Ta=16,_a=1,La=2,Na=3,za=1/0,Fa=9007199254740991,Ha=17976931348623157e292,Va=NaN,Ua=4294967295,Qa=Ua-1,Wa=Ua>>>1,Za=[["ary",Ea],["bind",xa],["bindKey",ya],["curry",Ca],["curryRight",Sa],["flip",Ma],["partial",wa],["partialRight",ba],["rearg",$a]],Xa="[object Arguments]",tl="[object Array]",il="[object AsyncFunction]",Ja="[object Boolean]",nl="[object Date]",Ya="[object DOMException]",rl="[object Error]",sl="[object Function]",dl="[object GeneratorFunction]",pl="[object Map]",ml="[object Number]",Rl="[object Null]",Tl="[object Object]",Il="[object Promise]",Ol="[object Proxy]",Fl="[object RegExp]",Vl="[object Set]",Wl="[object String]",vl="[object Symbol]",kl="[object Undefined]",zl="[object WeakMap]",Al="[object WeakSet]",gl="[object ArrayBuffer]",xl="[object DataView]",Sl="[object Float32Array]",$l="[object Float64Array]",Bl="[object Int8Array]",Ul="[object Int16Array]",ec="[object Int32Array]",Kl="[object Uint8Array]",rc="[object Uint8ClampedArray]",wl="[object Uint16Array]",Ll="[object Uint32Array]",ic=/\b__p \+= '';/g,Yl=/\b(__p \+=) '' \+/g,gc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rc=/&(?:amp|lt|gt|quot|#39);/g,Ic=/[&<>"']/g,bc=RegExp(Rc.source),kc=RegExp(Ic.source),Kc=/<%-([\s\S]+?)%>/g,Tc=/<%([\s\S]+?)%>/g,ac=/<%=([\s\S]+?)%>/g,sc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dc=/^\w*$/,Pc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/[\\^$.*+?()[\]{}|]/g,uc=RegExp(qc.source),lc=/^\s+/,hc=/\s/,pc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xc=/\{\n\/\* \[wrapped with (.+)\] \*/,Gc=/,? & /,Lu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vu=/[()=,{}\[\]\/\s]/,ju=/\\(\\)?/g,su=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uu=/\w*$/,Bu=/^[-+]0x[0-9a-f]+$/i,Qu=/^0b[01]+$/i,wd=/^\[object .+?Constructor\]$/,Tu=/^0o[0-7]+$/i,Ju=/^(?:0|[1-9]\d*)$/,cc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mc=/($^)/,Dc=/['\n\r\u2028\u2029\\]/g,zc="\\ud800-\\udfff",gu="\\u0300-\\u036f",qd="\\ufe20-\\ufe2f",rd="\\u20d0-\\u20ff",Zd=gu+qd+rd,_d="\\u2700-\\u27bf",Fu="a-z\\xdf-\\xf6\\xf8-\\xff",Id="\\xac\\xb1\\xd7\\xf7",kd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tp="\\u2000-\\u206f",ud=" \\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",Pu="A-Z\\xc0-\\xd6\\xd8-\\xde",_u="\\ufe0e\\ufe0f",Vu=Id+kd+tp+ud,Sd="['’]",Nu="["+zc+"]",Ld="["+Vu+"]",Dd="["+Zd+"]",Vc="\\d+",Mc="["+_d+"]",bu="["+Fu+"]",Wu="[^"+zc+Vu+Vc+_d+Fu+Pu+"]",hu="\\ud83c[\\udffb-\\udfff]",xu="(?:"+Dd+"|"+hu+")",dd="[^"+zc+"]",ed="(?:\\ud83c[\\udde6-\\uddff]){2}",Iu="[\\ud800-\\udbff][\\udc00-\\udfff]",ku="["+Pu+"]",pd="\\u200d",od="(?:"+bu+"|"+Wu+")",yu="(?:"+ku+"|"+Wu+")",Xp="(?:"+Sd+"(?:d|ll|m|re|s|t|ve))?",ad="(?:"+Sd+"(?:D|LL|M|RE|S|T|VE))?",Mp=xu+"?",dp="["+_u+"]?",np="(?:"+pd+"(?:"+[dd,ed,Iu].join("|")+")"+dp+Mp+")*",hd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ep=dp+Mp+np,Op="(?:"+[Mc,ed,Iu].join("|")+")"+Ep,Jp="(?:"+[dd+Dd+"?",Dd,ed,Iu,Nu].join("|")+")",e0=RegExp(Sd,"g"),oc=RegExp(Dd,"g"),Sc=RegExp(hu+"(?="+hu+")|"+Jp+Ep,"g"),mu=RegExp([ku+"?"+bu+"+"+Xp+"(?="+[Ld,ku,"$"].join("|")+")",yu+"+"+ad+"(?="+[Ld,ku+od,"$"].join("|")+")",ku+"?"+od+"+"+Xp,ku+"+"+ad,Sp,hd,Vc,Op].join("|"),"g"),zu=RegExp("["+pd+zc+Zd+_u+"]"),lu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lp=["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"],jp=-1,ru={};ru[Sl]=ru[$l]=ru[Bl]=ru[Ul]=ru[ec]=ru[Kl]=ru[rc]=ru[wl]=ru[Ll]=!0,ru[Xa]=ru[tl]=ru[gl]=ru[Ja]=ru[xl]=ru[nl]=ru[rl]=ru[sl]=ru[pl]=ru[ml]=ru[Tl]=ru[Fl]=ru[Vl]=ru[Wl]=ru[zl]=!1;var ou={};ou[Xa]=ou[tl]=ou[gl]=ou[xl]=ou[Ja]=ou[nl]=ou[Sl]=ou[$l]=ou[Bl]=ou[Ul]=ou[ec]=ou[pl]=ou[ml]=ou[Tl]=ou[Fl]=ou[Vl]=ou[Wl]=ou[vl]=ou[Kl]=ou[rc]=ou[wl]=ou[Ll]=!0,ou[rl]=ou[sl]=ou[zl]=!1;var fl={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Pl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cu=parseFloat,Zc=parseInt,Du=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,Gu=typeof self=="object"&&self&&self.Object===Object&&self,iu=Du||Gu||Function("return this")(),wu=na&&!na.nodeType&&na,Uu=wu&&!0&&ea&&!ea.nodeType&&ea,jd=Uu&&Uu.exports===wu,Su=jd&&Du.process,Eu=function(){try{var _l=Uu&&Uu.require&&Uu.require("util").types;return _l||Su&&Su.binding&&Su.binding("util")}catch{}}(),Ed=Eu&&Eu.isArrayBuffer,pp=Eu&&Eu.isDate,Vd=Eu&&Eu.isMap,rp=Eu&&Eu.isRegExp,ch=Eu&&Eu.isSet,fd=Eu&&Eu.isTypedArray;function qu(_l,Gl,Nl){switch(Nl.length){case 0:return _l.call(Gl);case 1:return _l.call(Gl,Nl[0]);case 2:return _l.call(Gl,Nl[0],Nl[1]);case 3:return _l.call(Gl,Nl[0],Nl[1],Nl[2])}return _l.apply(Gl,Nl)}function g1(_l,Gl,Nl,Ac){for(var Uc=-1,du=_l==null?0:_l.length;++Uc<du;){var fu=_l[Uc];Gl(Ac,fu,Nl(fu),_l)}return Ac}function Bd(_l,Gl){for(var Nl=-1,Ac=_l==null?0:_l.length;++Nl<Ac&&Gl(_l[Nl],Nl,_l)!==!1;);return _l}function Ig(_l,Gl){for(var Nl=_l==null?0:_l.length;Nl--&&Gl(_l[Nl],Nl,_l)!==!1;);return _l}function Sf(_l,Gl){for(var Nl=-1,Ac=_l==null?0:_l.length;++Nl<Ac;)if(!Gl(_l[Nl],Nl,_l))return!1;return!0}function Bp(_l,Gl){for(var Nl=-1,Ac=_l==null?0:_l.length,Uc=0,du=[];++Nl<Ac;){var fu=_l[Nl];Gl(fu,Nl,_l)&&(du[Uc++]=fu)}return du}function y0(_l,Gl){var Nl=_l==null?0:_l.length;return!!Nl&&F0(_l,Gl,0)>-1}function uh(_l,Gl,Nl){for(var Ac=-1,Uc=_l==null?0:_l.length;++Ac<Uc;)if(Nl(Gl,_l[Ac]))return!0;return!1}function Mu(_l,Gl){for(var Nl=-1,Ac=_l==null?0:_l.length,Uc=Array(Ac);++Nl<Ac;)Uc[Nl]=Gl(_l[Nl],Nl,_l);return Uc}function A0(_l,Gl){for(var Nl=-1,Ac=Gl.length,Uc=_l.length;++Nl<Ac;)_l[Uc+Nl]=Gl[Nl];return _l}function m1(_l,Gl,Nl,Ac){var Uc=-1,du=_l==null?0:_l.length;for(Ac&&du&&(Nl=_l[++Uc]);++Uc<du;)Nl=Gl(Nl,_l[Uc],Uc,_l);return Nl}function kg(_l,Gl,Nl,Ac){var Uc=_l==null?0:_l.length;for(Ac&&Uc&&(Nl=_l[--Uc]);Uc--;)Nl=Gl(Nl,_l[Uc],Uc,_l);return Nl}function kh(_l,Gl){for(var Nl=-1,Ac=_l==null?0:_l.length;++Nl<Ac;)if(Gl(_l[Nl],Nl,_l))return!0;return!1}var Dg=v1("length");function Mg(_l){return _l.split("")}function Og(_l){return _l.match(Lu)||[]}function S2(_l,Gl,Nl){var Ac;return Nl(_l,function(Uc,du,fu){if(Gl(Uc,du,fu))return Ac=du,!1}),Ac}function Ef(_l,Gl,Nl,Ac){for(var Uc=_l.length,du=Nl+(Ac?1:-1);Ac?du--:++du<Uc;)if(Gl(_l[du],du,_l))return du;return-1}function F0(_l,Gl,Nl){return Gl===Gl?j2(_l,Gl,Nl):Ef(_l,E2,Nl)}function Lg(_l,Gl,Nl,Ac){for(var Uc=Nl-1,du=_l.length;++Uc<du;)if(Ac(_l[Uc],Gl))return Uc;return-1}function E2(_l){return _l!==_l}function $2(_l,Gl){var Nl=_l==null?0:_l.length;return Nl?x1(_l,Gl)/Nl:Va}function v1(_l){return function(Gl){return Gl==null?ra:Gl[_l]}}function Dh(_l){return function(Gl){return _l==null?ra:_l[Gl]}}function R2(_l,Gl,Nl,Ac,Uc){return Uc(_l,function(du,fu,$u){Nl=Ac?(Ac=!1,du):Gl(Nl,du,fu,$u)}),Nl}function jg(_l,Gl){var Nl=_l.length;for(_l.sort(Gl);Nl--;)_l[Nl]=_l[Nl].value;return _l}function x1(_l,Gl){for(var Nl,Ac=-1,Uc=_l.length;++Ac<Uc;){var du=Gl(_l[Ac]);du!==ra&&(Nl=Nl===ra?du:Nl+du)}return Nl}function $f(_l,Gl){for(var Nl=-1,Ac=Array(_l);++Nl<_l;)Ac[Nl]=Gl(Nl);return Ac}function Bg(_l,Gl){return Mu(Gl,function(Nl){return[Nl,_l[Nl]]})}function T2(_l){return _l&&_l.slice(0,jh(_l)+1).replace(lc,"")}function op(_l){return function(Gl){return _l(Gl)}}function y1(_l,Gl){return Mu(Gl,function(Nl){return _l[Nl]})}function Mh(_l,Gl){return _l.has(Gl)}function P2(_l,Gl){for(var Nl=-1,Ac=_l.length;++Nl<Ac&&F0(Gl,_l[Nl],0)>-1;);return Nl}function _2(_l,Gl){for(var Nl=_l.length;Nl--&&F0(Gl,_l[Nl],0)>-1;);return Nl}function A1(_l,Gl){for(var Nl=_l.length,Ac=0;Nl--;)_l[Nl]===Gl&&++Ac;return Ac}var Oh=Dh(fl),Fg=Dh(Pl);function I2(_l){return"\\"+yc[_l]}function k2(_l,Gl){return _l==null?ra:_l[Gl]}function N0(_l){return zu.test(_l)}function D2(_l){return lu.test(_l)}function M2(_l){for(var Gl,Nl=[];!(Gl=_l.next()).done;)Nl.push(Gl.value);return Nl}function b0(_l){var Gl=-1,Nl=Array(_l.size);return _l.forEach(function(Ac,Uc){Nl[++Gl]=[Uc,Ac]}),Nl}function O2(_l,Gl){return function(Nl){return _l(Gl(Nl))}}function C0(_l,Gl){for(var Nl=-1,Ac=_l.length,Uc=0,du=[];++Nl<Ac;){var fu=_l[Nl];(fu===Gl||fu===pa)&&(_l[Nl]=pa,du[Uc++]=Nl)}return du}function Rf(_l){var Gl=-1,Nl=Array(_l.size);return _l.forEach(function(Ac){Nl[++Gl]=Ac}),Nl}function L2(_l){var Gl=-1,Nl=Array(_l.size);return _l.forEach(function(Ac){Nl[++Gl]=[Ac,Ac]}),Nl}function j2(_l,Gl,Nl){for(var Ac=Nl-1,Uc=_l.length;++Ac<Uc;)if(_l[Ac]===Gl)return Ac;return-1}function Lh(_l,Gl,Nl){for(var Ac=Nl+1;Ac--;)if(_l[Ac]===Gl)return Ac;return Ac}function Fp(_l){return N0(_l)?B2(_l):Dg(_l)}function $p(_l){return N0(_l)?b1(_l):Mg(_l)}function jh(_l){for(var Gl=_l.length;Gl--&&hc.test(_l.charAt(Gl)););return Gl}var Ng=Dh(Xl);function B2(_l){for(var Gl=Sc.lastIndex=0;Sc.test(_l);)++Gl;return Gl}function b1(_l){return _l.match(Sc)||[]}function C1(_l){return _l.match(mu)||[]}var F2=function _l(Gl){Gl=Gl==null?iu:z0.defaults(iu.Object(),Gl,z0.pick(iu,Lp));var Nl=Gl.Array,Ac=Gl.Date,Uc=Gl.Error,du=Gl.Function,fu=Gl.Math,$u=Gl.Object,H0=Gl.RegExp,N2=Gl.String,ip=Gl.TypeError,Bh=Nl.prototype,z2=du.prototype,w0=$u.prototype,Tf=Gl["__core-js_shared__"],t0=z2.toString,pu=w0.hasOwnProperty,Fh=0,Pf=function(){var Pa=/[^.]+$/.exec(Tf&&Tf.keys&&Tf.keys.IE_PROTO||"");return Pa?"Symbol(src)_1."+Pa:""}(),Nh=w0.toString,H2=t0.call($u),w1=iu._,zh=H0("^"+t0.call(pu).replace(qc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_f=jd?Gl.Buffer:ra,n0=Gl.Symbol,Hh=Gl.Uint8Array,Ru=_f?_f.allocUnsafe:ra,Vh=O2($u.getPrototypeOf,$u),S1=$u.create,E1=w0.propertyIsEnumerable,Wh=Bh.splice,$1=n0?n0.isConcatSpreadable:ra,r0=n0?n0.iterator:ra,Np=n0?n0.toStringTag:ra,o0=function(){try{var Pa=qp($u,"defineProperty");return Pa({},"",{}),Pa}catch{}}(),V2=Gl.clearTimeout!==iu.clearTimeout&&Gl.clearTimeout,If=Ac&&Ac.now!==iu.Date.now&&Ac.now,R1=Gl.setTimeout!==iu.setTimeout&&Gl.setTimeout,dh=fu.ceil,Gh=fu.floor,Uh=$u.getOwnPropertySymbols,W2=_f?_f.isBuffer:ra,G2=Gl.isFinite,T1=Bh.join,ph=O2($u.keys,$u),sd=fu.max,$d=fu.min,zg=Ac.now,kf=Gl.parseInt,i0=fu.random,Df=Bh.reverse,S0=qp(Gl,"DataView"),hh=qp(Gl,"Map"),a0=qp(Gl,"Promise"),zp=qp(Gl,"Set"),Hp=qp(Gl,"WeakMap"),E0=qp($u,"create"),qh=Hp&&new Hp,$0={},fh=yp(S0),R0=yp(hh),Ou=yp(a0),Yu=yp(zp),T0=yp(Hp),gd=n0?n0.prototype:ra,Rd=gd?gd.valueOf:ra,P0=gd?gd.toString:ra;function cl(Pa){if(cd(Pa)&&!Yc(Pa)&&!(Pa instanceof nu)){if(Pa instanceof ap)return Pa;if(pu.call(Pa,"__wrapped__"))return f2(Pa)}return new ap(Pa)}var md=function(){function Pa(){}return function(ja){if(!nd(ja))return{};if(S1)return S1(ja);Pa.prototype=ja;var Ga=new Pa;return Pa.prototype=ra,Ga}}();function V0(){}function ap(Pa,ja){this.__wrapped__=Pa,this.__actions__=[],this.__chain__=!!ja,this.__index__=0,this.__values__=ra}cl.templateSettings={escape:Kc,evaluate:Tc,interpolate:ac,variable:"",imports:{_:cl}},cl.prototype=V0.prototype,cl.prototype.constructor=cl,ap.prototype=md(V0.prototype),ap.prototype.constructor=ap;function nu(Pa){this.__wrapped__=Pa,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ua,this.__views__=[]}function Mf(){var Pa=new nu(this.__wrapped__);return Pa.__actions__=Ud(this.__actions__),Pa.__dir__=this.__dir__,Pa.__filtered__=this.__filtered__,Pa.__iteratees__=Ud(this.__iteratees__),Pa.__takeCount__=this.__takeCount__,Pa.__views__=Ud(this.__views__),Pa}function U2(){if(this.__filtered__){var Pa=new nu(this);Pa.__dir__=-1,Pa.__filtered__=!0}else Pa=this.clone(),Pa.__dir__*=-1;return Pa}function P1(){var Pa=this.__wrapped__.value(),ja=this.__dir__,Ga=Yc(Pa),el=ja<0,al=Ga?Pa.length:0,ul=l2(0,al,this.__views__),yl=ul.start,Cl=ul.end,Dl=Cl-yl,Zl=el?Cl:yl-1,Ql=this.__iteratees__,nc=Ql.length,fc=0,$c=$d(Dl,this.__takeCount__);if(!Ga||!el&&al==Dl&&$c==Dl)return of(Pa,this.__actions__);var jc=[];e:for(;Dl--&&fc<$c;){Zl+=ja;for(var tu=-1,Bc=Pa[Zl];++tu<nc;){var au=Ql[tu],cu=au.iteratee,kp=au.type,up=cu(Bc);if(kp==La)Bc=up;else if(!up){if(kp==_a)continue e;break e}}jc[fc++]=Bc}return jc}nu.prototype=md(V0.prototype),nu.prototype.constructor=nu;function sp(Pa){var ja=-1,Ga=Pa==null?0:Pa.length;for(this.clear();++ja<Ga;){var el=Pa[ja];this.set(el[0],el[1])}}function Hg(){this.__data__=E0?E0(null):{},this.size=0}function _1(Pa){var ja=this.has(Pa)&&delete this.__data__[Pa];return this.size-=ja?1:0,ja}function I1(Pa){var ja=this.__data__;if(E0){var Ga=ja[Pa];return Ga===ua?ra:Ga}return pu.call(ja,Pa)?ja[Pa]:ra}function Vg(Pa){var ja=this.__data__;return E0?ja[Pa]!==ra:pu.call(ja,Pa)}function q2(Pa,ja){var Ga=this.__data__;return this.size+=this.has(Pa)?0:1,Ga[Pa]=E0&&ja===ra?ua:ja,this}sp.prototype.clear=Hg,sp.prototype.delete=_1,sp.prototype.get=I1,sp.prototype.has=Vg,sp.prototype.set=q2;function Rp(Pa){var ja=-1,Ga=Pa==null?0:Pa.length;for(this.clear();++ja<Ga;){var el=Pa[ja];this.set(el[0],el[1])}}function Wg(){this.__data__=[],this.size=0}function Of(Pa){var ja=this.__data__,Ga=xh(ja,Pa);if(Ga<0)return!1;var el=ja.length-1;return Ga==el?ja.pop():Wh.call(ja,Ga,1),--this.size,!0}function Z2(Pa){var ja=this.__data__,Ga=xh(ja,Pa);return Ga<0?ra:ja[Ga][1]}function Q2(Pa){return xh(this.__data__,Pa)>-1}function Y2(Pa,ja){var Ga=this.__data__,el=xh(Ga,Pa);return el<0?(++this.size,Ga.push([Pa,ja])):Ga[el][1]=ja,this}Rp.prototype.clear=Wg,Rp.prototype.delete=Of,Rp.prototype.get=Z2,Rp.prototype.has=Q2,Rp.prototype.set=Y2;function Vp(Pa){var ja=-1,Ga=Pa==null?0:Pa.length;for(this.clear();++ja<Ga;){var el=Pa[ja];this.set(el[0],el[1])}}function k1(){this.size=0,this.__data__={hash:new sp,map:new(hh||Rp),string:new sp}}function Gg(Pa){var ja=Rh(this,Pa).delete(Pa);return this.size-=ja?1:0,ja}function s0(Pa){return Rh(this,Pa).get(Pa)}function Lf(Pa){return Rh(this,Pa).has(Pa)}function D1(Pa,ja){var Ga=Rh(this,Pa),el=Ga.size;return Ga.set(Pa,ja),this.size+=Ga.size==el?0:1,this}Vp.prototype.clear=k1,Vp.prototype.delete=Gg,Vp.prototype.get=s0,Vp.prototype.has=Lf,Vp.prototype.set=D1;function _0(Pa){var ja=-1,Ga=Pa==null?0:Pa.length;for(this.__data__=new Vp;++ja<Ga;)this.add(Pa[ja])}function Fd(Pa){return this.__data__.set(Pa,ua),this}function gh(Pa){return this.__data__.has(Pa)}_0.prototype.add=_0.prototype.push=Fd,_0.prototype.has=gh;function hp(Pa){var ja=this.__data__=new Rp(Pa);this.size=ja.size}function W0(){this.__data__=new Rp,this.size=0}function Zh(Pa){var ja=this.__data__,Ga=ja.delete(Pa);return this.size=ja.size,Ga}function Wp(Pa){return this.__data__.get(Pa)}function K2(Pa){return this.__data__.has(Pa)}function Ug(Pa,ja){var Ga=this.__data__;if(Ga instanceof Rp){var el=Ga.__data__;if(!hh||el.length<aa-1)return el.push([Pa,ja]),this.size=++Ga.size,this;Ga=this.__data__=new Vp(el)}return Ga.set(Pa,ja),this.size=Ga.size,this}hp.prototype.clear=W0,hp.prototype.delete=Zh,hp.prototype.get=Wp,hp.prototype.has=K2,hp.prototype.set=Ug;function fp(Pa,ja){var Ga=Yc(Pa),el=!Ga&&wf(Pa),al=!Ga&&!el&&Ih(Pa),ul=!Ga&&!el&&!al&&h1(Pa),yl=Ga||el||al||ul,Cl=yl?$f(Pa.length,N2):[],Dl=Cl.length;for(var Zl in Pa)(ja||pu.call(Pa,Zl))&&!(yl&&(Zl=="length"||al&&(Zl=="offset"||Zl=="parent")||ul&&(Zl=="buffer"||Zl=="byteLength"||Zl=="byteOffset")||zd(Zl,Dl)))&&Cl.push(Zl);return Cl}function Qh(Pa){var ja=Pa.length;return ja?Pa[J0(0,ja-1)]:ra}function jf(Pa,ja){return xf(Ud(Pa),I0(ja,0,Pa.length))}function mh(Pa){return xf(Ud(Pa))}function vh(Pa,ja,Ga){(Ga!==ra&&!v0(Pa[ja],Ga)||Ga===ra&&!(ja in Pa))&&Nd(Pa,ja,Ga)}function G0(Pa,ja,Ga){var el=Pa[ja];(!(pu.call(Pa,ja)&&v0(el,Ga))||Ga===ra&&!(ja in Pa))&&Nd(Pa,ja,Ga)}function xh(Pa,ja){for(var Ga=Pa.length;Ga--;)if(v0(Pa[Ga][0],ja))return Ga;return-1}function X2(Pa,ja,Ga,el){return l0(Pa,function(al,ul,yl){ja(el,al,Ga(al),yl)}),el}function U0(Pa,ja){return Pa&&Pp(ja,Hd(ja),Pa)}function gp(Pa,ja){return Pa&&Pp(ja,Cp(ja),Pa)}function Nd(Pa,ja,Ga){ja=="__proto__"&&o0?o0(Pa,ja,{configurable:!0,enumerable:!0,value:Ga,writable:!0}):Pa[ja]=Ga}function Yh(Pa,ja){for(var Ga=-1,el=ja.length,al=Nl(el),ul=Pa==null;++Ga<el;)al[Ga]=ul?ra:fm(Pa,ja[Ga]);return al}function I0(Pa,ja,Ga){return Pa===Pa&&(Ga!==ra&&(Pa=Pa<=Ga?Pa:Ga),ja!==ra&&(Pa=Pa>=ja?Pa:ja)),Pa}function vd(Pa,ja,Ga,el,al,ul){var yl,Cl=ja&ha,Dl=ja&ga,Zl=ja&fa;if(Ga&&(yl=al?Ga(Pa,el,al,ul):Ga(Pa)),yl!==ra)return yl;if(!nd(Pa))return Pa;var Ql=Yc(Pa);if(Ql){if(yl=Ph(Pa),!Cl)return Ud(Pa,yl)}else{var nc=Pd(Pa),fc=nc==sl||nc==dl;if(Ih(Pa))return q1(Pa,Cl);if(nc==Tl||nc==Xa||fc&&!al){if(yl=Dl||fc?{}:Cc(Pa),!Cl)return Dl?X1(Pa,gp(yl,Pa)):cg(Pa,U0(yl,Pa))}else{if(!ou[nc])return al?Pa:{};yl=i1(Pa,nc,Cl)}}ul||(ul=new hp);var $c=ul.get(Pa);if($c)return $c;ul.set(Pa,yl),Om(Pa)?Pa.forEach(function(Bc){yl.add(vd(Bc,ja,Ga,Bc,Pa,ul))}):Dm(Pa)&&Pa.forEach(function(Bc,au){yl.set(au,vd(Bc,ja,Ga,au,Pa,ul))});var jc=Zl?Dl?Lc:pf:Dl?Cp:Hd,tu=Ql?ra:jc(Pa);return Bd(tu||Pa,function(Bc,au){tu&&(au=Bc,Bc=Pa[au]),G0(yl,au,vd(Bc,ja,Ga,au,Pa,ul))}),yl}function k0(Pa){var ja=Hd(Pa);return function(Ga){return M1(Ga,Pa,ja)}}function M1(Pa,ja,Ga){var el=Ga.length;if(Pa==null)return!el;for(Pa=$u(Pa);el--;){var al=Ga[el],ul=ja[al],yl=Pa[al];if(yl===ra&&!(al in Pa)||!ul(yl))return!1}return!0}function yh(Pa,ja,Ga){if(typeof Pa!="function")throw new ip(la);return Yp(function(){Pa.apply(ra,Ga)},ja)}function Ah(Pa,ja,Ga,el){var al=-1,ul=y0,yl=!0,Cl=Pa.length,Dl=[],Zl=ja.length;if(!Cl)return Dl;Ga&&(ja=Mu(ja,op(Ga))),el?(ul=uh,yl=!1):ja.length>=aa&&(ul=Mh,yl=!1,ja=new _0(ja));e:for(;++al<Cl;){var Ql=Pa[al],nc=Ga==null?Ql:Ga(Ql);if(Ql=el||Ql!==0?Ql:0,yl&&nc===nc){for(var fc=Zl;fc--;)if(ja[fc]===nc)continue e;Dl.push(Ql)}else ul(ja,nc,el)||Dl.push(Ql)}return Dl}var l0=J1(lp),Kh=J1(Ff,!0);function Bf(Pa,ja){var Ga=!0;return l0(Pa,function(el,al,ul){return Ga=!!ja(el,al,ul),Ga}),Ga}function Xh(Pa,ja,Ga){for(var el=-1,al=Pa.length;++el<al;){var ul=Pa[el],yl=ja(ul);if(yl!=null&&(Cl===ra?yl===yl&&!Ip(yl):Ga(yl,Cl)))var Cl=yl,Dl=ul}return Dl}function J2(Pa,ja,Ga,el){var al=Pa.length;for(Ga=Jc(Ga),Ga<0&&(Ga=-Ga>al?0:al+Ga),el=el===ra||el>al?al:Jc(el),el<0&&(el+=al),el=Ga>el?0:jm(el);Ga<el;)Pa[Ga++]=ja;return Pa}function O1(Pa,ja){var Ga=[];return l0(Pa,function(el,al,ul){ja(el,al,ul)&&Ga.push(el)}),Ga}function xd(Pa,ja,Ga,el,al){var ul=-1,yl=Pa.length;for(Ga||(Ga=Zp),al||(al=[]);++ul<yl;){var Cl=Pa[ul];ja>0&&Ga(Cl)?ja>1?xd(Cl,ja-1,Ga,el,al):A0(al,Cl):el||(al[al.length]=Cl)}return al}var bh=Xf(),Ch=Xf(!0);function lp(Pa,ja){return Pa&&bh(Pa,ja,Hd)}function Ff(Pa,ja){return Pa&&Ch(Pa,ja,Hd)}function q0(Pa,ja){return Bp(ja,function(Ga){return ah(Pa[Ga])})}function D0(Pa,ja){ja=Td(ja,Pa);for(var Ga=0,el=ja.length;Pa!=null&&Ga<el;)Pa=Pa[xp(ja[Ga++])];return Ga&&Ga==el?Pa:ra}function wh(Pa,ja,Ga){var el=ja(Pa);return Yc(Pa)?el:A0(el,Ga(Pa))}function Hu(Pa){return Pa==null?Pa===ra?kl:Rl:Np&&Np in $u(Pa)?Th(Pa):cp(Pa)}function Z0(Pa,ja){return Pa>ja}function Jh(Pa,ja){return Pa!=null&&pu.call(Pa,ja)}function Q0(Pa,ja){return Pa!=null&&ja in $u(Pa)}function L1(Pa,ja,Ga){return Pa>=$d(ja,Ga)&&Pa<sd(ja,Ga)}function M0(Pa,ja,Ga){for(var el=Ga?uh:y0,al=Pa[0].length,ul=Pa.length,yl=ul,Cl=Nl(ul),Dl=1/0,Zl=[];yl--;){var Ql=Pa[yl];yl&&ja&&(Ql=Mu(Ql,op(ja))),Dl=$d(Ql.length,Dl),Cl[yl]=!Ga&&(ja||al>=120&&Ql.length>=120)?new _0(yl&&Ql):ra}Ql=Pa[0];var nc=-1,fc=Cl[0];e:for(;++nc<al&&Zl.length<Dl;){var $c=Ql[nc],jc=ja?ja($c):$c;if($c=Ga||$c!==0?$c:0,!(fc?Mh(fc,jc):el(Zl,jc,Ga))){for(yl=ul;--yl;){var tu=Cl[yl];if(!(tu?Mh(tu,jc):el(Pa[yl],jc,Ga)))continue e}fc&&fc.push(jc),Zl.push($c)}}return Zl}function eg(Pa,ja,Ga,el){return lp(Pa,function(al,ul,yl){ja(el,Ga(al),ul,yl)}),el}function Y0(Pa,ja,Ga){ja=Td(ja,Pa),Pa=g0(Pa,ja);var el=Pa==null?Pa:Pa[xp(ep(ja))];return el==null?ra:qu(el,Pa,Ga)}function Zu(Pa){return cd(Pa)&&Hu(Pa)==Xa}function Nf(Pa){return cd(Pa)&&Hu(Pa)==gl}function c0(Pa){return cd(Pa)&&Hu(Pa)==nl}function mp(Pa,ja,Ga,el,al){return Pa===ja?!0:Pa==null||ja==null||!cd(Pa)&&!cd(ja)?Pa!==Pa&&ja!==ja:Gp(Pa,ja,Ga,el,mp,al)}function Gp(Pa,ja,Ga,el,al,ul){var yl=Yc(Pa),Cl=Yc(ja),Dl=yl?tl:Pd(Pa),Zl=Cl?tl:Pd(ja);Dl=Dl==Xa?Tl:Dl,Zl=Zl==Xa?Tl:Zl;var Ql=Dl==Tl,nc=Zl==Tl,fc=Dl==Zl;if(fc&&Ih(Pa)){if(!Ih(ja))return!1;yl=!0,Ql=!1}if(fc&&!Ql)return ul||(ul=new hp),yl||h1(Pa)?s2(Pa,ja,Ga,el,al,ul):Qg(Pa,ja,Dl,Ga,el,al,ul);if(!(Ga&ma)){var $c=Ql&&pu.call(Pa,"__wrapped__"),jc=nc&&pu.call(ja,"__wrapped__");if($c||jc){var tu=$c?Pa.value():Pa,Bc=jc?ja.value():ja;return ul||(ul=new hp),al(tu,Bc,Ga,el,ul)}}return fc?(ul||(ul=new hp),Yg(Pa,ja,Ga,el,al,ul)):!1}function tg(Pa){return cd(Pa)&&Pd(Pa)==pl}function zf(Pa,ja,Ga,el){var al=Ga.length,ul=al,yl=!el;if(Pa==null)return!ul;for(Pa=$u(Pa);al--;){var Cl=Ga[al];if(yl&&Cl[2]?Cl[1]!==Pa[Cl[0]]:!(Cl[0]in Pa))return!1}for(;++al<ul;){Cl=Ga[al];var Dl=Cl[0],Zl=Pa[Dl],Ql=Cl[1];if(yl&&Cl[2]){if(Zl===ra&&!(Dl in Pa))return!1}else{var nc=new hp;if(el)var fc=el(Zl,Ql,Dl,Pa,ja,nc);if(!(fc===ra?mp(Ql,Zl,ma|va,el,nc):fc))return!1}}return!0}function Hf(Pa){if(!nd(Pa)||h0(Pa))return!1;var ja=ah(Pa)?zh:wd;return ja.test(yp(Pa))}function ng(Pa){return cd(Pa)&&Hu(Pa)==Fl}function Vf(Pa){return cd(Pa)&&Pd(Pa)==Vl}function j1(Pa){return cd(Pa)&&Tg(Pa.length)&&!!ru[Hu(Pa)]}function K0(Pa){return typeof Pa=="function"?Pa:Pa==null?wp:typeof Pa=="object"?Yc(Pa)?Md(Pa[0],Pa[1]):Ku(Pa):Zm(Pa)}function ef(Pa){if(!oh(Pa))return ph(Pa);var ja=[];for(var Ga in $u(Pa))pu.call(Pa,Ga)&&Ga!="constructor"&&ja.push(Ga);return ja}function tf(Pa){if(!nd(Pa))return s1(Pa);var ja=oh(Pa),Ga=[];for(var el in Pa)el=="constructor"&&(ja||!pu.call(Pa,el))||Ga.push(el);return Ga}function Qd(Pa,ja){return Pa<ja}function Sh(Pa,ja){var Ga=-1,el=bp(Pa)?Nl(Pa.length):[];return l0(Pa,function(al,ul,yl){el[++Ga]=ja(al,ul,yl)}),el}function Ku(Pa){var ja=yd(Pa);return ja.length==1&&ja[0][2]?Qp(ja[0][0],ja[0][1]):function(Ga){return Ga===Pa||zf(Ga,Pa,ja)}}function Md(Pa,ja){return rh(Pa)&&gf(ja)?Qp(xp(Pa),ja):function(Ga){var el=fm(Ga,Pa);return el===ra&&el===ja?gm(Ga,Pa):mp(ja,el,ma|va)}}function ld(Pa,ja,Ga,el,al){Pa!==ja&&bh(ja,function(ul,yl){if(al||(al=new hp),nd(ul))Wf(Pa,ja,yl,Ga,ld,el,al);else{var Cl=el?el(Jd(Pa,yl),ul,yl+"",Pa,ja,al):ra;Cl===ra&&(Cl=ul),vh(Pa,yl,Cl)}},Cp)}function Wf(Pa,ja,Ga,el,al,ul,yl){var Cl=Jd(Pa,Ga),Dl=Jd(ja,Ga),Zl=yl.get(Dl);if(Zl){vh(Pa,Ga,Zl);return}var Ql=ul?ul(Cl,Dl,Ga+"",Pa,ja,yl):ra,nc=Ql===ra;if(nc){var fc=Yc(Dl),$c=!fc&&Ih(Dl),jc=!fc&&!$c&&h1(Dl);Ql=Dl,fc||$c||jc?Yc(Cl)?Ql=Cl:bd(Cl)?Ql=Ud(Cl):$c?(nc=!1,Ql=q1(Dl,!0)):jc?(nc=!1,Ql=Yf(Dl,!0)):Ql=[]:w2(Dl)||wf(Dl)?(Ql=Cl,wf(Cl)?Ql=Bm(Cl):(!nd(Cl)||ah(Cl))&&(Ql=Cc(Dl))):nc=!1}nc&&(yl.set(Dl,Ql),al(Ql,Dl,el,ul,yl),yl.delete(Dl)),vh(Pa,Ga,Ql)}function Eh(Pa,ja){var Ga=Pa.length;if(Ga)return ja+=ja<0?Ga:0,zd(ja,Ga)?Pa[ja]:ra}function Wd(Pa,ja,Ga){ja.length?ja=Mu(ja,function(ul){return Yc(ul)?function(yl){return D0(yl,ul.length===1?ul[0]:ul)}:ul}):ja=[wp];var el=-1;ja=Mu(ja,op(_c()));var al=Sh(Pa,function(ul,yl,Cl){var Dl=Mu(ja,function(Zl){return Zl(ul)});return{criteria:Dl,index:++el,value:ul}});return jg(al,function(ul,yl){return Kf(ul,yl,Ga)})}function B1(Pa,ja){return Gf(Pa,ja,function(Ga,el){return gm(Pa,el)})}function Gf(Pa,ja,Ga){for(var el=-1,al=ja.length,ul={};++el<al;){var yl=ja[el],Cl=D0(Pa,yl);Ga(Cl,yl)&&O0(ul,Td(yl,Pa),Cl)}return ul}function X0(Pa){return function(ja){return D0(ja,Pa)}}function u0(Pa,ja,Ga,el){var al=el?Lg:F0,ul=-1,yl=ja.length,Cl=Pa;for(Pa===ja&&(ja=Ud(ja)),Ga&&(Cl=Mu(Pa,op(Ga)));++ul<yl;)for(var Dl=0,Zl=ja[ul],Ql=Ga?Ga(Zl):Zl;(Dl=al(Cl,Ql,Dl,el))>-1;)Cl!==Pa&&Wh.call(Cl,Dl,1),Wh.call(Pa,Dl,1);return Pa}function Tp(Pa,ja){for(var Ga=Pa?ja.length:0,el=Ga-1;Ga--;){var al=ja[Ga];if(Ga==el||al!==ul){var ul=al;zd(al)?Wh.call(Pa,al,1):Qf(Pa,al)}}return Pa}function J0(Pa,ja){return Pa+Gh(i0()*(ja-Pa+1))}function nf(Pa,ja,Ga,el){for(var al=-1,ul=sd(dh((ja-Pa)/(Ga||1)),0),yl=Nl(ul);ul--;)yl[el?ul:++al]=Pa,Pa+=Ga;return yl}function Uf(Pa,ja){var Ga="";if(!Pa||ja<1||ja>Fa)return Ga;do ja%2&&(Ga+=Pa),ja=Gh(ja/2),ja&&(Pa+=Pa);while(ja);return Ga}function Xc(Pa,ja){return vf(f0(Pa,ja,wp),Pa+"")}function rg(Pa){return Qh(f1(Pa))}function rf(Pa,ja){var Ga=f1(Pa);return xf(Ga,I0(ja,0,Ga.length))}function O0(Pa,ja,Ga,el){if(!nd(Pa))return Pa;ja=Td(ja,Pa);for(var al=-1,ul=ja.length,yl=ul-1,Cl=Pa;Cl!=null&&++al<ul;){var Dl=xp(ja[al]),Zl=Ga;if(Dl==="__proto__"||Dl==="constructor"||Dl==="prototype")return Pa;if(al!=yl){var Ql=Cl[Dl];Zl=el?el(Ql,Dl,Cl):ra,Zl===ra&&(Zl=nd(Ql)?Ql:zd(ja[al+1])?[]:{})}G0(Cl,Dl,Zl),Cl=Cl[Dl]}return Pa}var F1=qh?function(Pa,ja){return qh.set(Pa,ja),Pa}:wp,qf=o0?function(Pa,ja){return o0(Pa,"toString",{configurable:!0,enumerable:!1,value:vm(ja),writable:!0})}:wp;function N1(Pa){return xf(f1(Pa))}function Yd(Pa,ja,Ga){var el=-1,al=Pa.length;ja<0&&(ja=-ja>al?0:al+ja),Ga=Ga>al?al:Ga,Ga<0&&(Ga+=al),al=ja>Ga?0:Ga-ja>>>0,ja>>>=0;for(var ul=Nl(al);++el<al;)ul[el]=Pa[el+ja];return ul}function og(Pa,ja){var Ga;return l0(Pa,function(el,al,ul){return Ga=ja(el,al,ul),!Ga}),!!Ga}function eh(Pa,ja,Ga){var el=0,al=Pa==null?el:Pa.length;if(typeof ja=="number"&&ja===ja&&al<=Wa){for(;el<al;){var ul=el+al>>>1,yl=Pa[ul];yl!==null&&!Ip(yl)&&(Ga?yl<=ja:yl<ja)?el=ul+1:al=ul}return al}return Zf(Pa,ja,wp,Ga)}function Zf(Pa,ja,Ga,el){var al=0,ul=Pa==null?0:Pa.length;if(ul===0)return 0;ja=Ga(ja);for(var yl=ja!==ja,Cl=ja===null,Dl=Ip(ja),Zl=ja===ra;al<ul;){var Ql=Gh((al+ul)/2),nc=Ga(Pa[Ql]),fc=nc!==ra,$c=nc===null,jc=nc===nc,tu=Ip(nc);if(yl)var Bc=el||jc;else Zl?Bc=jc&&(el||fc):Cl?Bc=jc&&fc&&(el||!$c):Dl?Bc=jc&&fc&&!$c&&(el||!tu):$c||tu?Bc=!1:Bc=el?nc<=ja:nc<ja;Bc?al=Ql+1:ul=Ql}return $d(ul,Qa)}function z1(Pa,ja){for(var Ga=-1,el=Pa.length,al=0,ul=[];++Ga<el;){var yl=Pa[Ga],Cl=ja?ja(yl):yl;if(!Ga||!v0(Cl,Dl)){var Dl=Cl;ul[al++]=yl===0?0:yl}}return ul}function H1(Pa){return typeof Pa=="number"?Pa:Ip(Pa)?Va:+Pa}function Gd(Pa){if(typeof Pa=="string")return Pa;if(Yc(Pa))return Mu(Pa,Gd)+"";if(Ip(Pa))return P0?P0.call(Pa):"";var ja=Pa+"";return ja=="0"&&1/Pa==-1/0?"-0":ja}function d0(Pa,ja,Ga){var el=-1,al=y0,ul=Pa.length,yl=!0,Cl=[],Dl=Cl;if(Ga)yl=!1,al=uh;else if(ul>=aa){var Zl=ja?null:pg(Pa);if(Zl)return Rf(Zl);yl=!1,al=Mh,Dl=new _0}else Dl=ja?[]:Cl;e:for(;++el<ul;){var Ql=Pa[el],nc=ja?ja(Ql):Ql;if(Ql=Ga||Ql!==0?Ql:0,yl&&nc===nc){for(var fc=Dl.length;fc--;)if(Dl[fc]===nc)continue e;ja&&Dl.push(nc),Cl.push(Ql)}else al(Dl,nc,Ga)||(Dl!==Cl&&Dl.push(nc),Cl.push(Ql))}return Cl}function Qf(Pa,ja){return ja=Td(ja,Pa),Pa=g0(Pa,ja),Pa==null||delete Pa[xp(ep(ja))]}function ig(Pa,ja,Ga,el){return O0(Pa,ja,Ga(D0(Pa,ja)),el)}function $h(Pa,ja,Ga,el){for(var al=Pa.length,ul=el?al:-1;(el?ul--:++ul<al)&&ja(Pa[ul],ul,Pa););return Ga?Yd(Pa,el?0:ul,el?ul+1:al):Yd(Pa,el?ul+1:0,el?al:ul)}function of(Pa,ja){var Ga=Pa;return Ga instanceof nu&&(Ga=Ga.value()),m1(ja,function(el,al){return al.func.apply(al.thisArg,A0([el],al.args))},Ga)}function V1(Pa,ja,Ga){var el=Pa.length;if(el<2)return el?d0(Pa[0]):[];for(var al=-1,ul=Nl(el);++al<el;)for(var yl=Pa[al],Cl=-1;++Cl<el;)Cl!=al&&(ul[al]=Ah(ul[al]||yl,Pa[Cl],ja,Ga));return d0(xd(ul,1),ja,Ga)}function ag(Pa,ja,Ga){for(var el=-1,al=Pa.length,ul=ja.length,yl={};++el<al;){var Cl=el<ul?ja[el]:ra;Ga(yl,Pa[el],Cl)}return yl}function W1(Pa){return bd(Pa)?Pa:[]}function G1(Pa){return typeof Pa=="function"?Pa:wp}function Td(Pa,ja){return Yc(Pa)?Pa:rh(Pa,ja)?[Pa]:yf(Au(Pa))}var Kd=Xc;function p0(Pa,ja,Ga){var el=Pa.length;return Ga=Ga===ra?el:Ga,!ja&&Ga>=el?Pa:Yd(Pa,ja,Ga)}var U1=V2||function(Pa){return iu.clearTimeout(Pa)};function q1(Pa,ja){if(ja)return Pa.slice();var Ga=Pa.length,el=Ru?Ru(Ga):new Pa.constructor(Ga);return Pa.copy(el),el}function af(Pa){var ja=new Pa.constructor(Pa.byteLength);return new Hh(ja).set(new Hh(Pa)),ja}function sg(Pa,ja){var Ga=ja?af(Pa.buffer):Pa.buffer;return new Pa.constructor(Ga,Pa.byteOffset,Pa.byteLength)}function Z1(Pa){var ja=new Pa.constructor(Pa.source,uu.exec(Pa));return ja.lastIndex=Pa.lastIndex,ja}function lg(Pa){return Rd?$u(Rd.call(Pa)):{}}function Yf(Pa,ja){var Ga=ja?af(Pa.buffer):Pa.buffer;return new Pa.constructor(Ga,Pa.byteOffset,Pa.length)}function Q1(Pa,ja){if(Pa!==ja){var Ga=Pa!==ra,el=Pa===null,al=Pa===Pa,ul=Ip(Pa),yl=ja!==ra,Cl=ja===null,Dl=ja===ja,Zl=Ip(ja);if(!Cl&&!Zl&&!ul&&Pa>ja||ul&&yl&&Dl&&!Cl&&!Zl||el&&yl&&Dl||!Ga&&Dl||!al)return 1;if(!el&&!ul&&!Zl&&Pa<ja||Zl&&Ga&&al&&!el&&!ul||Cl&&Ga&&al||!yl&&al||!Dl)return-1}return 0}function Kf(Pa,ja,Ga){for(var el=-1,al=Pa.criteria,ul=ja.criteria,yl=al.length,Cl=Ga.length;++el<yl;){var Dl=Q1(al[el],ul[el]);if(Dl){if(el>=Cl)return Dl;var Zl=Ga[el];return Dl*(Zl=="desc"?-1:1)}}return Pa.index-ja.index}function Y1(Pa,ja,Ga,el){for(var al=-1,ul=Pa.length,yl=Ga.length,Cl=-1,Dl=ja.length,Zl=sd(ul-yl,0),Ql=Nl(Dl+Zl),nc=!el;++Cl<Dl;)Ql[Cl]=ja[Cl];for(;++al<yl;)(nc||al<ul)&&(Ql[Ga[al]]=Pa[al]);for(;Zl--;)Ql[Cl++]=Pa[al++];return Ql}function K1(Pa,ja,Ga,el){for(var al=-1,ul=Pa.length,yl=-1,Cl=Ga.length,Dl=-1,Zl=ja.length,Ql=sd(ul-Cl,0),nc=Nl(Ql+Zl),fc=!el;++al<Ql;)nc[al]=Pa[al];for(var $c=al;++Dl<Zl;)nc[$c+Dl]=ja[Dl];for(;++yl<Cl;)(fc||al<ul)&&(nc[$c+Ga[yl]]=Pa[al++]);return nc}function Ud(Pa,ja){var Ga=-1,el=Pa.length;for(ja||(ja=Nl(el));++Ga<el;)ja[Ga]=Pa[Ga];return ja}function Pp(Pa,ja,Ga,el){var al=!Ga;Ga||(Ga={});for(var ul=-1,yl=ja.length;++ul<yl;){var Cl=ja[ul],Dl=el?el(Ga[Cl],Pa[Cl],Cl,Ga,Pa):ra;Dl===ra&&(Dl=Pa[Cl]),al?Nd(Ga,Cl,Dl):G0(Ga,Cl,Dl)}return Ga}function cg(Pa,ja){return Pp(Pa,th(Pa),ja)}function X1(Pa,ja){return Pp(Pa,nh(Pa),ja)}function sf(Pa,ja){return function(Ga,el){var al=Yc(Ga)?g1:X2,ul=ja?ja():{};return al(Ga,Pa,_c(el,2),ul)}}function Xd(Pa){return Xc(function(ja,Ga){var el=-1,al=Ga.length,ul=al>1?Ga[al-1]:ra,yl=al>2?Ga[2]:ra;for(ul=Pa.length>3&&typeof ul=="function"?(al--,ul):ra,yl&&Ad(Ga[0],Ga[1],yl)&&(ul=al<3?ra:ul,al=1),ja=$u(ja);++el<al;){var Cl=Ga[el];Cl&&Pa(ja,Cl,el,ul)}return ja})}function J1(Pa,ja){return function(Ga,el){if(Ga==null)return Ga;if(!bp(Ga))return Pa(Ga,el);for(var al=Ga.length,ul=ja?al:-1,yl=$u(Ga);(ja?ul--:++ul<al)&&el(yl[ul],ul,yl)!==!1;);return Ga}}function Xf(Pa){return function(ja,Ga,el){for(var al=-1,ul=$u(ja),yl=el(ja),Cl=yl.length;Cl--;){var Dl=yl[Pa?Cl:++al];if(Ga(ul[Dl],Dl,ul)===!1)break}return ja}}function ug(Pa,ja,Ga){var el=ja&xa,al=lf(Pa);function ul(){var yl=this&&this!==iu&&this instanceof ul?al:Pa;return yl.apply(el?Ga:this,arguments)}return ul}function e2(Pa){return function(ja){ja=Au(ja);var Ga=N0(ja)?$p(ja):ra,el=Ga?Ga[0]:ja.charAt(0),al=Ga?p0(Ga,1).join(""):ja.slice(1);return el[Pa]()+al}}function Up(Pa){return function(ja){return m1(Um(Gm(ja).replace(e0,"")),Pa,"")}}function lf(Pa){return function(){var ja=arguments;switch(ja.length){case 0:return new Pa;case 1:return new Pa(ja[0]);case 2:return new Pa(ja[0],ja[1]);case 3:return new Pa(ja[0],ja[1],ja[2]);case 4:return new Pa(ja[0],ja[1],ja[2],ja[3]);case 5:return new Pa(ja[0],ja[1],ja[2],ja[3],ja[4]);case 6:return new Pa(ja[0],ja[1],ja[2],ja[3],ja[4],ja[5]);case 7:return new Pa(ja[0],ja[1],ja[2],ja[3],ja[4],ja[5],ja[6])}var Ga=md(Pa.prototype),el=Pa.apply(Ga,ja);return nd(el)?el:Ga}}function qg(Pa,ja,Ga){var el=lf(Pa);function al(){for(var ul=arguments.length,yl=Nl(ul),Cl=ul,Dl=td(al);Cl--;)yl[Cl]=arguments[Cl];var Zl=ul<3&&yl[0]!==Dl&&yl[ul-1]!==Dl?[]:C0(yl,Dl);if(ul-=Zl.length,ul<Ga)return r2(Pa,ja,t1,al.placeholder,ra,yl,Zl,ra,ra,Ga-ul);var Ql=this&&this!==iu&&this instanceof al?el:Pa;return qu(Ql,this,yl)}return al}function Jf(Pa){return function(ja,Ga,el){var al=$u(ja);if(!bp(ja)){var ul=_c(Ga,3);ja=Hd(ja),Ga=function(Cl){return ul(al[Cl],Cl,al)}}var yl=Pa(ja,Ga,el);return yl>-1?al[ul?ja[yl]:yl]:ra}}function e1(Pa){return vp(function(ja){var Ga=ja.length,el=Ga,al=ap.prototype.thru;for(Pa&&ja.reverse();el--;){var ul=ja[el];if(typeof ul!="function")throw new ip(la);if(al&&!yl&&Xu(ul)=="wrapper")var yl=new ap([],!0)}for(el=yl?el:Ga;++el<Ga;){ul=ja[el];var Cl=Xu(ul),Dl=Cl=="wrapper"?Od(ul):ra;Dl&&hf(Dl[0])&&Dl[1]==(Ea|Ca|wa|$a)&&!Dl[4].length&&Dl[9]==1?yl=yl[Xu(Dl[0])].apply(yl,Dl[3]):yl=ul.length==1&&hf(ul)?yl[Cl]():yl.thru(ul)}return function(){var Zl=arguments,Ql=Zl[0];if(yl&&Zl.length==1&&Yc(Ql))return yl.plant(Ql).value();for(var nc=0,fc=Ga?ja[nc].apply(this,Zl):Ql;++nc<Ga;)fc=ja[nc].call(this,fc);return fc}})}function t1(Pa,ja,Ga,el,al,ul,yl,Cl,Dl,Zl){var Ql=ja&Ea,nc=ja&xa,fc=ja&ya,$c=ja&(Ca|Sa),jc=ja&Ma,tu=fc?ra:lf(Pa);function Bc(){for(var au=arguments.length,cu=Nl(au),kp=au;kp--;)cu[kp]=arguments[kp];if($c)var up=td(Bc),Dp=A1(cu,up);if(el&&(cu=Y1(cu,el,al,$c)),ul&&(cu=K1(cu,ul,yl,$c)),au-=Dp,$c&&au<Zl){var Cd=C0(cu,up);return r2(Pa,ja,t1,Bc.placeholder,Ga,cu,Cd,Cl,Dl,Zl-au)}var x0=nc?Ga:this,lh=fc?x0[Pa]:Pa;return au=cu.length,Cl?cu=l1(cu,Cl):jc&&au>1&&cu.reverse(),Ql&&Dl<au&&(cu.length=Dl),this&&this!==iu&&this instanceof Bc&&(lh=tu||lf(lh)),lh.apply(x0,cu)}return Bc}function t2(Pa,ja){return function(Ga,el){return eg(Ga,Pa,ja(el),{})}}function cf(Pa,ja){return function(Ga,el){var al;if(Ga===ra&&el===ra)return ja;if(Ga!==ra&&(al=Ga),el!==ra){if(al===ra)return el;typeof Ga=="string"||typeof el=="string"?(Ga=Gd(Ga),el=Gd(el)):(Ga=H1(Ga),el=H1(el)),al=Pa(Ga,el)}return al}}function n2(Pa){return vp(function(ja){return ja=Mu(ja,op(_c())),Xc(function(Ga){var el=this;return Pa(ja,function(al){return qu(al,el,Ga)})})})}function uf(Pa,ja){ja=ja===ra?" ":Gd(ja);var Ga=ja.length;if(Ga<2)return Ga?Uf(ja,Pa):ja;var el=Uf(ja,dh(Pa/Fp(ja)));return N0(ja)?p0($p(el),0,Pa).join(""):el.slice(0,Pa)}function Zg(Pa,ja,Ga,el){var al=ja&xa,ul=lf(Pa);function yl(){for(var Cl=-1,Dl=arguments.length,Zl=-1,Ql=el.length,nc=Nl(Ql+Dl),fc=this&&this!==iu&&this instanceof yl?ul:Pa;++Zl<Ql;)nc[Zl]=el[Zl];for(;Dl--;)nc[Zl++]=arguments[++Cl];return qu(fc,al?Ga:this,nc)}return yl}function dg(Pa){return function(ja,Ga,el){return el&&typeof el!="number"&&Ad(ja,Ga,el)&&(Ga=el=ra),ja=sh(ja),Ga===ra?(Ga=ja,ja=0):Ga=sh(Ga),el=el===ra?ja<Ga?1:-1:sh(el),nf(ja,Ga,el,Pa)}}function df(Pa){return function(ja,Ga){return typeof ja=="string"&&typeof Ga=="string"||(ja=Kp(ja),Ga=Kp(Ga)),Pa(ja,Ga)}}function r2(Pa,ja,Ga,el,al,ul,yl,Cl,Dl,Zl){var Ql=ja&Ca,nc=Ql?yl:ra,fc=Ql?ra:yl,$c=Ql?ul:ra,jc=Ql?ra:ul;ja|=Ql?wa:ba,ja&=~(Ql?ba:wa),ja&Aa||(ja&=-4);var tu=[Pa,ja,al,$c,nc,jc,fc,Cl,Dl,Zl],Bc=Ga.apply(ra,tu);return hf(Pa)&&p2(Bc,tu),Bc.placeholder=el,hg(Bc,Pa,ja)}function n1(Pa){var ja=fu[Pa];return function(Ga,el){if(Ga=Kp(Ga),el=el==null?0:$d(Jc(el),292),el&&G2(Ga)){var al=(Au(Ga)+"e").split("e"),ul=ja(al[0]+"e"+(+al[1]+el));return al=(Au(ul)+"e").split("e"),+(al[0]+"e"+(+al[1]-el))}return ja(Ga)}}var pg=zp&&1/Rf(new zp([,-0]))[1]==za?function(Pa){return new zp(Pa)}:Am;function o2(Pa){return function(ja){var Ga=Pd(ja);return Ga==pl?b0(ja):Ga==Vl?L2(ja):Bg(ja,Pa(ja))}}function _p(Pa,ja,Ga,el,al,ul,yl,Cl){var Dl=ja&ya;if(!Dl&&typeof Pa!="function")throw new ip(la);var Zl=el?el.length:0;if(Zl||(ja&=-97,el=al=ra),yl=yl===ra?yl:sd(Jc(yl),0),Cl=Cl===ra?Cl:Jc(Cl),Zl-=al?al.length:0,ja&ba){var Ql=el,nc=al;el=al=ra}var fc=Dl?ra:Od(Pa),$c=[Pa,ja,Ga,el,al,Ql,nc,ul,yl,Cl];if(fc&&mf($c,fc),Pa=$c[0],ja=$c[1],Ga=$c[2],el=$c[3],al=$c[4],Cl=$c[9]=$c[9]===ra?Dl?0:Pa.length:sd($c[9]-Zl,0),!Cl&&ja&(Ca|Sa)&&(ja&=-25),!ja||ja==xa)var jc=ug(Pa,ja,Ga);else ja==Ca||ja==Sa?jc=qg(Pa,ja,Cl):(ja==wa||ja==(xa|wa))&&!al.length?jc=Zg(Pa,ja,Ga,el):jc=t1.apply(ra,$c);var tu=fc?F1:p2;return hg(tu(jc,$c),Pa,ja)}function r1(Pa,ja,Ga,el){return Pa===ra||v0(Pa,w0[Ga])&&!pu.call(el,Ga)?ja:Pa}function i2(Pa,ja,Ga,el,al,ul){return nd(Pa)&&nd(ja)&&(ul.set(ja,Pa),ld(Pa,ja,ra,i2,ul),ul.delete(ja)),Pa}function a2(Pa){return w2(Pa)?ra:Pa}function s2(Pa,ja,Ga,el,al,ul){var yl=Ga&ma,Cl=Pa.length,Dl=ja.length;if(Cl!=Dl&&!(yl&&Dl>Cl))return!1;var Zl=ul.get(Pa),Ql=ul.get(ja);if(Zl&&Ql)return Zl==ja&&Ql==Pa;var nc=-1,fc=!0,$c=Ga&va?new _0:ra;for(ul.set(Pa,ja),ul.set(ja,Pa);++nc<Cl;){var jc=Pa[nc],tu=ja[nc];if(el)var Bc=yl?el(tu,jc,nc,ja,Pa,ul):el(jc,tu,nc,Pa,ja,ul);if(Bc!==ra){if(Bc)continue;fc=!1;break}if($c){if(!kh(ja,function(au,cu){if(!Mh($c,cu)&&(jc===au||al(jc,au,Ga,el,ul)))return $c.push(cu)})){fc=!1;break}}else if(!(jc===tu||al(jc,tu,Ga,el,ul))){fc=!1;break}}return ul.delete(Pa),ul.delete(ja),fc}function Qg(Pa,ja,Ga,el,al,ul,yl){switch(Ga){case xl:if(Pa.byteLength!=ja.byteLength||Pa.byteOffset!=ja.byteOffset)return!1;Pa=Pa.buffer,ja=ja.buffer;case gl:return!(Pa.byteLength!=ja.byteLength||!ul(new Hh(Pa),new Hh(ja)));case Ja:case nl:case ml:return v0(+Pa,+ja);case rl:return Pa.name==ja.name&&Pa.message==ja.message;case Fl:case Wl:return Pa==ja+"";case pl:var Cl=b0;case Vl:var Dl=el&ma;if(Cl||(Cl=Rf),Pa.size!=ja.size&&!Dl)return!1;var Zl=yl.get(Pa);if(Zl)return Zl==ja;el|=va,yl.set(Pa,ja);var Ql=s2(Cl(Pa),Cl(ja),el,al,ul,yl);return yl.delete(Pa),Ql;case vl:if(Rd)return Rd.call(Pa)==Rd.call(ja)}return!1}function Yg(Pa,ja,Ga,el,al,ul){var yl=Ga&ma,Cl=pf(Pa),Dl=Cl.length,Zl=pf(ja),Ql=Zl.length;if(Dl!=Ql&&!yl)return!1;for(var nc=Dl;nc--;){var fc=Cl[nc];if(!(yl?fc in ja:pu.call(ja,fc)))return!1}var $c=ul.get(Pa),jc=ul.get(ja);if($c&&jc)return $c==ja&&jc==Pa;var tu=!0;ul.set(Pa,ja),ul.set(ja,Pa);for(var Bc=yl;++nc<Dl;){fc=Cl[nc];var au=Pa[fc],cu=ja[fc];if(el)var kp=yl?el(cu,au,fc,ja,Pa,ul):el(au,cu,fc,Pa,ja,ul);if(!(kp===ra?au===cu||al(au,cu,Ga,el,ul):kp)){tu=!1;break}Bc||(Bc=fc=="constructor")}if(tu&&!Bc){var up=Pa.constructor,Dp=ja.constructor;up!=Dp&&"constructor"in Pa&&"constructor"in ja&&!(typeof up=="function"&&up instanceof up&&typeof Dp=="function"&&Dp instanceof Dp)&&(tu=!1)}return ul.delete(Pa),ul.delete(ja),tu}function vp(Pa){return vf(f0(Pa,ra,m0),Pa+"")}function pf(Pa){return wh(Pa,Hd,th)}function Lc(Pa){return wh(Pa,Cp,nh)}var Od=qh?function(Pa){return qh.get(Pa)}:Am;function Xu(Pa){for(var ja=Pa.name+"",Ga=$0[ja],el=pu.call($0,ja)?Ga.length:0;el--;){var al=Ga[el],ul=al.func;if(ul==null||ul==Pa)return al.name}return ja}function td(Pa){var ja=pu.call(cl,"placeholder")?cl:Pa;return ja.placeholder}function _c(){var Pa=cl.iteratee||xm;return Pa=Pa===xm?K0:Pa,arguments.length?Pa(arguments[0],arguments[1]):Pa}function Rh(Pa,ja){var Ga=Pa.__data__;return d2(ja)?Ga[typeof ja=="string"?"string":"hash"]:Ga.map}function yd(Pa){for(var ja=Hd(Pa),Ga=ja.length;Ga--;){var el=ja[Ga],al=Pa[el];ja[Ga]=[el,al,gf(al)]}return ja}function qp(Pa,ja){var Ga=k2(Pa,ja);return Hf(Ga)?Ga:ra}function Th(Pa){var ja=pu.call(Pa,Np),Ga=Pa[Np];try{Pa[Np]=ra;var el=!0}catch{}var al=Nh.call(Pa);return el&&(ja?Pa[Np]=Ga:delete Pa[Np]),al}var th=Uh?function(Pa){return Pa==null?[]:(Pa=$u(Pa),Bp(Uh(Pa),function(ja){return E1.call(Pa,ja)}))}:bm,nh=Uh?function(Pa){for(var ja=[];Pa;)A0(ja,th(Pa)),Pa=Vh(Pa);return ja}:bm,Pd=Hu;(S0&&Pd(new S0(new ArrayBuffer(1)))!=xl||hh&&Pd(new hh)!=pl||a0&&Pd(a0.resolve())!=Il||zp&&Pd(new zp)!=Vl||Hp&&Pd(new Hp)!=zl)&&(Pd=function(Pa){var ja=Hu(Pa),Ga=ja==Tl?Pa.constructor:ra,el=Ga?yp(Ga):"";if(el)switch(el){case fh:return xl;case R0:return pl;case Ou:return Il;case Yu:return Vl;case T0:return zl}return ja});function l2(Pa,ja,Ga){for(var el=-1,al=Ga.length;++el<al;){var ul=Ga[el],yl=ul.size;switch(ul.type){case"drop":Pa+=yl;break;case"dropRight":ja-=yl;break;case"take":ja=$d(ja,Pa+yl);break;case"takeRight":Pa=sd(Pa,ja-yl);break}}return{start:Pa,end:ja}}function c2(Pa){var ja=Pa.match(xc);return ja?ja[1].split(Gc):[]}function o1(Pa,ja,Ga){ja=Td(ja,Pa);for(var el=-1,al=ja.length,ul=!1;++el<al;){var yl=xp(ja[el]);if(!(ul=Pa!=null&&Ga(Pa,yl)))break;Pa=Pa[yl]}return ul||++el!=al?ul:(al=Pa==null?0:Pa.length,!!al&&Tg(al)&&zd(yl,al)&&(Yc(Pa)||wf(Pa)))}function Ph(Pa){var ja=Pa.length,Ga=new Pa.constructor(ja);return ja&&typeof Pa[0]=="string"&&pu.call(Pa,"index")&&(Ga.index=Pa.index,Ga.input=Pa.input),Ga}function Cc(Pa){return typeof Pa.constructor=="function"&&!oh(Pa)?md(Vh(Pa)):{}}function i1(Pa,ja,Ga){var el=Pa.constructor;switch(ja){case gl:return af(Pa);case Ja:case nl:return new el(+Pa);case xl:return sg(Pa,Ga);case Sl:case $l:case Bl:case Ul:case ec:case Kl:case rc:case wl:case Ll:return Yf(Pa,Ga);case pl:return new el;case ml:case Wl:return new el(Pa);case Fl:return Z1(Pa);case Vl:return new el;case vl:return lg(Pa)}}function u2(Pa,ja){var Ga=ja.length;if(!Ga)return Pa;var el=Ga-1;return ja[el]=(Ga>1?"& ":"")+ja[el],ja=ja.join(Ga>2?", ":" "),Pa.replace(pc,`{
/* [wrapped with `+ja+`] */
`)}function Zp(Pa){return Yc(Pa)||wf(Pa)||!!($1&&Pa&&Pa[$1])}function zd(Pa,ja){var Ga=typeof Pa;return ja=ja??Fa,!!ja&&(Ga=="number"||Ga!="symbol"&&Ju.test(Pa))&&Pa>-1&&Pa%1==0&&Pa<ja}function Ad(Pa,ja,Ga){if(!nd(Ga))return!1;var el=typeof ja;return(el=="number"?bp(Ga)&&zd(ja,Ga.length):el=="string"&&ja in Ga)?v0(Ga[ja],Pa):!1}function rh(Pa,ja){if(Yc(Pa))return!1;var Ga=typeof Pa;return Ga=="number"||Ga=="symbol"||Ga=="boolean"||Pa==null||Ip(Pa)?!0:dc.test(Pa)||!sc.test(Pa)||ja!=null&&Pa in $u(ja)}function d2(Pa){var ja=typeof Pa;return ja=="string"||ja=="number"||ja=="symbol"||ja=="boolean"?Pa!=="__proto__":Pa===null}function hf(Pa){var ja=Xu(Pa),Ga=cl[ja];if(typeof Ga!="function"||!(ja in nu.prototype))return!1;if(Pa===Ga)return!0;var el=Od(Ga);return!!el&&Pa===el[0]}function h0(Pa){return!!Pf&&Pf in Pa}var ff=Tf?ah:Cm;function oh(Pa){var ja=Pa&&Pa.constructor,Ga=typeof ja=="function"&&ja.prototype||w0;return Pa===Ga}function gf(Pa){return Pa===Pa&&!nd(Pa)}function Qp(Pa,ja){return function(Ga){return Ga==null?!1:Ga[Pa]===ja&&(ja!==ra||Pa in $u(Ga))}}function a1(Pa){var ja=$g(Pa,function(el){return Ga.size===da&&Ga.clear(),el}),Ga=ja.cache;return ja}function mf(Pa,ja){var Ga=Pa[1],el=ja[1],al=Ga|el,ul=al<(xa|ya|Ea),yl=el==Ea&&Ga==Ca||el==Ea&&Ga==$a&&Pa[7].length<=ja[8]||el==(Ea|$a)&&ja[7].length<=ja[8]&&Ga==Ca;if(!(ul||yl))return Pa;el&xa&&(Pa[2]=ja[2],al|=Ga&xa?0:Aa);var Cl=ja[3];if(Cl){var Dl=Pa[3];Pa[3]=Dl?Y1(Dl,Cl,ja[4]):Cl,Pa[4]=Dl?C0(Pa[3],pa):ja[4]}return Cl=ja[5],Cl&&(Dl=Pa[5],Pa[5]=Dl?K1(Dl,Cl,ja[6]):Cl,Pa[6]=Dl?C0(Pa[5],pa):ja[6]),Cl=ja[7],Cl&&(Pa[7]=Cl),el&Ea&&(Pa[8]=Pa[8]==null?ja[8]:$d(Pa[8],ja[8])),Pa[9]==null&&(Pa[9]=ja[9]),Pa[0]=ja[0],Pa[1]=al,Pa}function s1(Pa){var ja=[];if(Pa!=null)for(var Ga in $u(Pa))ja.push(Ga);return ja}function cp(Pa){return Nh.call(Pa)}function f0(Pa,ja,Ga){return ja=sd(ja===ra?Pa.length-1:ja,0),function(){for(var el=arguments,al=-1,ul=sd(el.length-ja,0),yl=Nl(ul);++al<ul;)yl[al]=el[ja+al];al=-1;for(var Cl=Nl(ja+1);++al<ja;)Cl[al]=el[al];return Cl[ja]=Ga(yl),qu(Pa,this,Cl)}}function g0(Pa,ja){return ja.length<2?Pa:D0(Pa,Yd(ja,0,-1))}function l1(Pa,ja){for(var Ga=Pa.length,el=$d(ja.length,Ga),al=Ud(Pa);el--;){var ul=ja[el];Pa[el]=zd(ul,Ga)?al[ul]:ra}return Pa}function Jd(Pa,ja){if(!(ja==="constructor"&&typeof Pa[ja]=="function")&&ja!="__proto__")return Pa[ja]}var p2=h2(F1),Yp=R1||function(Pa,ja){return iu.setTimeout(Pa,ja)},vf=h2(qf);function hg(Pa,ja,Ga){var el=ja+"";return vf(Pa,u2(el,fg(c2(el),Ga)))}function h2(Pa){var ja=0,Ga=0;return function(){var el=zg(),al=Ta-(el-Ga);if(Ga=el,al>0){if(++ja>=Da)return arguments[0]}else ja=0;return Pa.apply(ra,arguments)}}function xf(Pa,ja){var Ga=-1,el=Pa.length,al=el-1;for(ja=ja===ra?el:ja;++Ga<ja;){var ul=J0(Ga,al),yl=Pa[ul];Pa[ul]=Pa[Ga],Pa[Ga]=yl}return Pa.length=ja,Pa}var yf=a1(function(Pa){var ja=[];return Pa.charCodeAt(0)===46&&ja.push(""),Pa.replace(Pc,function(Ga,el,al,ul){ja.push(al?ul.replace(ju,"$1"):el||Ga)}),ja});function xp(Pa){if(typeof Pa=="string"||Ip(Pa))return Pa;var ja=Pa+"";return ja=="0"&&1/Pa==-1/0?"-0":ja}function yp(Pa){if(Pa!=null){try{return t0.call(Pa)}catch{}try{return Pa+""}catch{}}return""}function fg(Pa,ja){return Bd(Za,function(Ga){var el="_."+Ga[0];ja&Ga[1]&&!y0(Pa,el)&&Pa.push(el)}),Pa.sort()}function f2(Pa){if(Pa instanceof nu)return Pa.clone();var ja=new ap(Pa.__wrapped__,Pa.__chain__);return ja.__actions__=Ud(Pa.__actions__),ja.__index__=Pa.__index__,ja.__values__=Pa.__values__,ja}function Af(Pa,ja,Ga){(Ga?Ad(Pa,ja,Ga):ja===ra)?ja=1:ja=sd(Jc(ja),0);var el=Pa==null?0:Pa.length;if(!el||ja<1)return[];for(var al=0,ul=0,yl=Nl(dh(el/ja));al<el;)yl[ul++]=Yd(Pa,al,al+=ja);return yl}function Kg(Pa){for(var ja=-1,Ga=Pa==null?0:Pa.length,el=0,al=[];++ja<Ga;){var ul=Pa[ja];ul&&(al[el++]=ul)}return al}function Xg(){var Pa=arguments.length;if(!Pa)return[];for(var ja=Nl(Pa-1),Ga=arguments[0],el=Pa;el--;)ja[el-1]=arguments[el];return A0(Yc(Ga)?Ud(Ga):[Ga],xd(ja,1))}var gg=Xc(function(Pa,ja){return bd(Pa)?Ah(Pa,xd(ja,1,bd,!0)):[]}),mg=Xc(function(Pa,ja){var Ga=ep(ja);return bd(Ga)&&(Ga=ra),bd(Pa)?Ah(Pa,xd(ja,1,bd,!0),_c(Ga,2)):[]}),ih=Xc(function(Pa,ja){var Ga=ep(ja);return bd(Ga)&&(Ga=ra),bd(Pa)?Ah(Pa,xd(ja,1,bd,!0),ra,Ga):[]});function Jg(Pa,ja,Ga){var el=Pa==null?0:Pa.length;return el?(ja=Ga||ja===ra?1:Jc(ja),Yd(Pa,ja<0?0:ja,el)):[]}function em(Pa,ja,Ga){var el=Pa==null?0:Pa.length;return el?(ja=Ga||ja===ra?1:Jc(ja),ja=el-ja,Yd(Pa,0,ja<0?0:ja)):[]}function L0(Pa,ja){return Pa&&Pa.length?$h(Pa,_c(ja,3),!0,!0):[]}function tm(Pa,ja){return Pa&&Pa.length?$h(Pa,_c(ja,3),!0):[]}function vg(Pa,ja,Ga,el){var al=Pa==null?0:Pa.length;return al?(Ga&&typeof Ga!="number"&&Ad(Pa,ja,Ga)&&(Ga=0,el=al),J2(Pa,ja,Ga,el)):[]}function xg(Pa,ja,Ga){var el=Pa==null?0:Pa.length;if(!el)return-1;var al=Ga==null?0:Jc(Ga);return al<0&&(al=sd(el+al,0)),Ef(Pa,_c(ja,3),al)}function g2(Pa,ja,Ga){var el=Pa==null?0:Pa.length;if(!el)return-1;var al=el-1;return Ga!==ra&&(al=Jc(Ga),al=Ga<0?sd(el+al,0):$d(al,el-1)),Ef(Pa,_c(ja,3),al,!0)}function m0(Pa){var ja=Pa==null?0:Pa.length;return ja?xd(Pa,1):[]}function nm(Pa){var ja=Pa==null?0:Pa.length;return ja?xd(Pa,za):[]}function rm(Pa,ja){var Ga=Pa==null?0:Pa.length;return Ga?(ja=ja===ra?1:Jc(ja),xd(Pa,ja)):[]}function yg(Pa){for(var ja=-1,Ga=Pa==null?0:Pa.length,el={};++ja<Ga;){var al=Pa[ja];el[al[0]]=al[1]}return el}function Ag(Pa){return Pa&&Pa.length?Pa[0]:ra}function Ap(Pa,ja,Ga){var el=Pa==null?0:Pa.length;if(!el)return-1;var al=Ga==null?0:Jc(Ga);return al<0&&(al=sd(el+al,0)),F0(Pa,ja,al)}function m2(Pa){var ja=Pa==null?0:Pa.length;return ja?Yd(Pa,0,-1):[]}var om=Xc(function(Pa){var ja=Mu(Pa,W1);return ja.length&&ja[0]===Pa[0]?M0(ja):[]}),j0=Xc(function(Pa){var ja=ep(Pa),Ga=Mu(Pa,W1);return ja===ep(Ga)?ja=ra:Ga.pop(),Ga.length&&Ga[0]===Pa[0]?M0(Ga,_c(ja,2)):[]}),c1=Xc(function(Pa){var ja=ep(Pa),Ga=Mu(Pa,W1);return ja=typeof ja=="function"?ja:ra,ja&&Ga.pop(),Ga.length&&Ga[0]===Pa[0]?M0(Ga,ra,ja):[]});function _h(Pa,ja){return Pa==null?"":T1.call(Pa,ja)}function ep(Pa){var ja=Pa==null?0:Pa.length;return ja?Pa[ja-1]:ra}function v2(Pa,ja,Ga){var el=Pa==null?0:Pa.length;if(!el)return-1;var al=el;return Ga!==ra&&(al=Jc(Ga),al=al<0?sd(el+al,0):$d(al,el-1)),ja===ja?Lh(Pa,ja,al):Ef(Pa,E2,al,!0)}function x2(Pa,ja){return Pa&&Pa.length?Eh(Pa,Jc(ja)):ra}var im=Xc(bg);function bg(Pa,ja){return Pa&&Pa.length&&ja&&ja.length?u0(Pa,ja):Pa}function u1(Pa,ja,Ga){return Pa&&Pa.length&&ja&&ja.length?u0(Pa,ja,_c(Ga,2)):Pa}function y2(Pa,ja,Ga){return Pa&&Pa.length&&ja&&ja.length?u0(Pa,ja,ra,Ga):Pa}var Cg=vp(function(Pa,ja){var Ga=Pa==null?0:Pa.length,el=Yh(Pa,ja);return Tp(Pa,Mu(ja,function(al){return zd(al,Ga)?+al:al}).sort(Q1)),el});function A2(Pa,ja){var Ga=[];if(!(Pa&&Pa.length))return Ga;var el=-1,al=[],ul=Pa.length;for(ja=_c(ja,3);++el<ul;){var yl=Pa[el];ja(yl,el,Pa)&&(Ga.push(yl),al.push(el))}return Tp(Pa,al),Ga}function b2(Pa){return Pa==null?Pa:Df.call(Pa)}function C2(Pa,ja,Ga){var el=Pa==null?0:Pa.length;return el?(Ga&&typeof Ga!="number"&&Ad(Pa,ja,Ga)?(ja=0,Ga=el):(ja=ja==null?0:Jc(ja),Ga=Ga===ra?el:Jc(Ga)),Yd(Pa,ja,Ga)):[]}function bf(Pa,ja){return eh(Pa,ja)}function am(Pa,ja,Ga){return Zf(Pa,ja,_c(Ga,2))}function d1(Pa,ja){var Ga=Pa==null?0:Pa.length;if(Ga){var el=eh(Pa,ja);if(el<Ga&&v0(Pa[el],ja))return el}return-1}function wg(Pa,ja){return eh(Pa,ja,!0)}function sm(Pa,ja,Ga){return Zf(Pa,ja,_c(Ga,2),!0)}function Cf(Pa,ja){var Ga=Pa==null?0:Pa.length;if(Ga){var el=eh(Pa,ja,!0)-1;if(v0(Pa[el],ja))return el}return-1}function lm(Pa){return Pa&&Pa.length?z1(Pa):[]}function p1(Pa,ja){return Pa&&Pa.length?z1(Pa,_c(ja,2)):[]}function Ra(Pa){var ja=Pa==null?0:Pa.length;return ja?Yd(Pa,1,ja):[]}function ka(Pa,ja,Ga){return Pa&&Pa.length?(ja=Ga||ja===ra?1:Jc(ja),Yd(Pa,0,ja<0?0:ja)):[]}function Ba(Pa,ja,Ga){var el=Pa==null?0:Pa.length;return el?(ja=Ga||ja===ra?1:Jc(ja),ja=el-ja,Yd(Pa,ja<0?0:ja,el)):[]}function qa(Pa,ja){return Pa&&Pa.length?$h(Pa,_c(ja,3),!1,!0):[]}function Ka(Pa,ja){return Pa&&Pa.length?$h(Pa,_c(ja,3)):[]}var ol=Xc(function(Pa){return d0(xd(Pa,1,bd,!0))}),ll=Xc(function(Pa){var ja=ep(Pa);return bd(ja)&&(ja=ra),d0(xd(Pa,1,bd,!0),_c(ja,2))}),hl=Xc(function(Pa){var ja=ep(Pa);return ja=typeof ja=="function"?ja:ra,d0(xd(Pa,1,bd,!0),ra,ja)});function bl(Pa){return Pa&&Pa.length?d0(Pa):[]}function Hl(Pa,ja){return Pa&&Pa.length?d0(Pa,_c(ja,2)):[]}function vc(Pa,ja){return ja=typeof ja=="function"?ja:ra,Pa&&Pa.length?d0(Pa,ra,ja):[]}function Fc(Pa){if(!(Pa&&Pa.length))return[];var ja=0;return Pa=Bp(Pa,function(Ga){if(bd(Ga))return ja=sd(Ga.length,ja),!0}),$f(ja,function(Ga){return Mu(Pa,v1(Ga))})}function tc(Pa,ja){if(!(Pa&&Pa.length))return[];var Ga=Fc(Pa);return ja==null?Ga:Mu(Ga,function(el){return qu(ja,ra,el)})}var Ec=Xc(function(Pa,ja){return bd(Pa)?Ah(Pa,ja):[]}),Hc=Xc(function(Pa){return V1(Bp(Pa,bd))}),Oc=Xc(function(Pa){var ja=ep(Pa);return bd(ja)&&(ja=ra),V1(Bp(Pa,bd),_c(ja,2))}),jl=Xc(function(Pa){var ja=ep(Pa);return ja=typeof ja=="function"?ja:ra,V1(Bp(Pa,bd),ra,ja)}),El=Xc(Fc);function Ml(Pa,ja){return ag(Pa||[],ja||[],G0)}function ql(Pa,ja){return ag(Pa||[],ja||[],O0)}var Jl=Xc(function(Pa){var ja=Pa.length,Ga=ja>1?Pa[ja-1]:ra;return Ga=typeof Ga=="function"?(Pa.pop(),Ga):ra,tc(Pa,Ga)});function Wc(Pa){var ja=cl(Pa);return ja.__chain__=!0,ja}function wc(Pa,ja){return ja(Pa),Pa}function Nc(Pa,ja){return ja(Pa)}var eu=vp(function(Pa){var ja=Pa.length,Ga=ja?Pa[0]:0,el=this.__wrapped__,al=function(ul){return Yh(ul,Pa)};return ja>1||this.__actions__.length||!(el instanceof nu)||!zd(Ga)?this.thru(al):(el=el.slice(Ga,+Ga+(ja?1:0)),el.__actions__.push({func:Nc,args:[al],thisArg:ra}),new ap(el,this.__chain__).thru(function(ul){return ja&&!ul.length&&ul.push(ra),ul}))});function Qc(){return Wc(this)}function B0(){return new ap(this.value(),this.__chain__)}function cm(){this.__values__===ra&&(this.__values__=Lm(this.value()));var Pa=this.__index__>=this.__values__.length,ja=Pa?ra:this.__values__[this.__index__++];return{done:Pa,value:ja}}function Ym(){return this}function Km(Pa){for(var ja,Ga=this;Ga instanceof V0;){var el=f2(Ga);el.__index__=0,el.__values__=ra,ja?al.__wrapped__=el:ja=el;var al=el;Ga=Ga.__wrapped__}return al.__wrapped__=Pa,ja}function Xm(){var Pa=this.__wrapped__;if(Pa instanceof nu){var ja=Pa;return this.__actions__.length&&(ja=new nu(this)),ja=ja.reverse(),ja.__actions__.push({func:Nc,args:[b2],thisArg:ra}),new ap(ja,this.__chain__)}return this.thru(b2)}function Jm(){return of(this.__wrapped__,this.__actions__)}var ev=sf(function(Pa,ja,Ga){pu.call(Pa,Ga)?++Pa[Ga]:Nd(Pa,Ga,1)});function tv(Pa,ja,Ga){var el=Yc(Pa)?Sf:Bf;return Ga&&Ad(Pa,ja,Ga)&&(ja=ra),el(Pa,_c(ja,3))}function nv(Pa,ja){var Ga=Yc(Pa)?Bp:O1;return Ga(Pa,_c(ja,3))}var rv=Jf(xg),ov=Jf(g2);function iv(Pa,ja){return xd(Sg(Pa,ja),1)}function av(Pa,ja){return xd(Sg(Pa,ja),za)}function sv(Pa,ja,Ga){return Ga=Ga===ra?1:Jc(Ga),xd(Sg(Pa,ja),Ga)}function wm(Pa,ja){var Ga=Yc(Pa)?Bd:l0;return Ga(Pa,_c(ja,3))}function Sm(Pa,ja){var Ga=Yc(Pa)?Ig:Kh;return Ga(Pa,_c(ja,3))}var lv=sf(function(Pa,ja,Ga){pu.call(Pa,Ga)?Pa[Ga].push(ja):Nd(Pa,Ga,[ja])});function cv(Pa,ja,Ga,el){Pa=bp(Pa)?Pa:f1(Pa),Ga=Ga&&!el?Jc(Ga):0;var al=Pa.length;return Ga<0&&(Ga=sd(al+Ga,0)),Pg(Pa)?Ga<=al&&Pa.indexOf(ja,Ga)>-1:!!al&&F0(Pa,ja,Ga)>-1}var uv=Xc(function(Pa,ja,Ga){var el=-1,al=typeof ja=="function",ul=bp(Pa)?Nl(Pa.length):[];return l0(Pa,function(yl){ul[++el]=al?qu(ja,yl,Ga):Y0(yl,ja,Ga)}),ul}),dv=sf(function(Pa,ja,Ga){Nd(Pa,Ga,ja)});function Sg(Pa,ja){var Ga=Yc(Pa)?Mu:Sh;return Ga(Pa,_c(ja,3))}function pv(Pa,ja,Ga,el){return Pa==null?[]:(Yc(ja)||(ja=ja==null?[]:[ja]),Ga=el?ra:Ga,Yc(Ga)||(Ga=Ga==null?[]:[Ga]),Wd(Pa,ja,Ga))}var hv=sf(function(Pa,ja,Ga){Pa[Ga?0:1].push(ja)},function(){return[[],[]]});function fv(Pa,ja,Ga){var el=Yc(Pa)?m1:R2,al=arguments.length<3;return el(Pa,_c(ja,4),Ga,al,l0)}function gv(Pa,ja,Ga){var el=Yc(Pa)?kg:R2,al=arguments.length<3;return el(Pa,_c(ja,4),Ga,al,Kh)}function mv(Pa,ja){var Ga=Yc(Pa)?Bp:O1;return Ga(Pa,Rg(_c(ja,3)))}function vv(Pa){var ja=Yc(Pa)?Qh:rg;return ja(Pa)}function xv(Pa,ja,Ga){(Ga?Ad(Pa,ja,Ga):ja===ra)?ja=1:ja=Jc(ja);var el=Yc(Pa)?jf:rf;return el(Pa,ja)}function yv(Pa){var ja=Yc(Pa)?mh:N1;return ja(Pa)}function Av(Pa){if(Pa==null)return 0;if(bp(Pa))return Pg(Pa)?Fp(Pa):Pa.length;var ja=Pd(Pa);return ja==pl||ja==Vl?Pa.size:ef(Pa).length}function bv(Pa,ja,Ga){var el=Yc(Pa)?kh:og;return Ga&&Ad(Pa,ja,Ga)&&(ja=ra),el(Pa,_c(ja,3))}var Cv=Xc(function(Pa,ja){if(Pa==null)return[];var Ga=ja.length;return Ga>1&&Ad(Pa,ja[0],ja[1])?ja=[]:Ga>2&&Ad(ja[0],ja[1],ja[2])&&(ja=[ja[0]]),Wd(Pa,xd(ja,1),[])}),Eg=If||function(){return iu.Date.now()};function wv(Pa,ja){if(typeof ja!="function")throw new ip(la);return Pa=Jc(Pa),function(){if(--Pa<1)return ja.apply(this,arguments)}}function Em(Pa,ja,Ga){return ja=Ga?ra:ja,ja=Pa&&ja==null?Pa.length:ja,_p(Pa,Ea,ra,ra,ra,ra,ja)}function $m(Pa,ja){var Ga;if(typeof ja!="function")throw new ip(la);return Pa=Jc(Pa),function(){return--Pa>0&&(Ga=ja.apply(this,arguments)),Pa<=1&&(ja=ra),Ga}}var um=Xc(function(Pa,ja,Ga){var el=xa;if(Ga.length){var al=C0(Ga,td(um));el|=wa}return _p(Pa,el,ja,Ga,al)}),Rm=Xc(function(Pa,ja,Ga){var el=xa|ya;if(Ga.length){var al=C0(Ga,td(Rm));el|=wa}return _p(ja,el,Pa,Ga,al)});function Tm(Pa,ja,Ga){ja=Ga?ra:ja;var el=_p(Pa,Ca,ra,ra,ra,ra,ra,ja);return el.placeholder=Tm.placeholder,el}function Pm(Pa,ja,Ga){ja=Ga?ra:ja;var el=_p(Pa,Sa,ra,ra,ra,ra,ra,ja);return el.placeholder=Pm.placeholder,el}function _m(Pa,ja,Ga){var el,al,ul,yl,Cl,Dl,Zl=0,Ql=!1,nc=!1,fc=!0;if(typeof Pa!="function")throw new ip(la);ja=Kp(ja)||0,nd(Ga)&&(Ql=!!Ga.leading,nc="maxWait"in Ga,ul=nc?sd(Kp(Ga.maxWait)||0,ja):ul,fc="trailing"in Ga?!!Ga.trailing:fc);function $c(Cd){var x0=el,lh=al;return el=al=ra,Zl=Cd,yl=Pa.apply(lh,x0),yl}function jc(Cd){return Zl=Cd,Cl=Yp(au,ja),Ql?$c(Cd):yl}function tu(Cd){var x0=Cd-Dl,lh=Cd-Zl,Qm=ja-x0;return nc?$d(Qm,ul-lh):Qm}function Bc(Cd){var x0=Cd-Dl,lh=Cd-Zl;return Dl===ra||x0>=ja||x0<0||nc&&lh>=ul}function au(){var Cd=Eg();if(Bc(Cd))return cu(Cd);Cl=Yp(au,tu(Cd))}function cu(Cd){return Cl=ra,fc&&el?$c(Cd):(el=al=ra,yl)}function kp(){Cl!==ra&&U1(Cl),Zl=0,el=Dl=al=Cl=ra}function up(){return Cl===ra?yl:cu(Eg())}function Dp(){var Cd=Eg(),x0=Bc(Cd);if(el=arguments,al=this,Dl=Cd,x0){if(Cl===ra)return jc(Dl);if(nc)return U1(Cl),Cl=Yp(au,ja),$c(Dl)}return Cl===ra&&(Cl=Yp(au,ja)),yl}return Dp.cancel=kp,Dp.flush=up,Dp}var Sv=Xc(function(Pa,ja){return yh(Pa,1,ja)}),Ev=Xc(function(Pa,ja,Ga){return yh(Pa,Kp(ja)||0,Ga)});function $v(Pa){return _p(Pa,Ma)}function $g(Pa,ja){if(typeof Pa!="function"||ja!=null&&typeof ja!="function")throw new ip(la);var Ga=function(){var el=arguments,al=ja?ja.apply(this,el):el[0],ul=Ga.cache;if(ul.has(al))return ul.get(al);var yl=Pa.apply(this,el);return Ga.cache=ul.set(al,yl)||ul,yl};return Ga.cache=new($g.Cache||Vp),Ga}$g.Cache=Vp;function Rg(Pa){if(typeof Pa!="function")throw new ip(la);return function(){var ja=arguments;switch(ja.length){case 0:return!Pa.call(this);case 1:return!Pa.call(this,ja[0]);case 2:return!Pa.call(this,ja[0],ja[1]);case 3:return!Pa.call(this,ja[0],ja[1],ja[2])}return!Pa.apply(this,ja)}}function Rv(Pa){return $m(2,Pa)}var Tv=Kd(function(Pa,ja){ja=ja.length==1&&Yc(ja[0])?Mu(ja[0],op(_c())):Mu(xd(ja,1),op(_c()));var Ga=ja.length;return Xc(function(el){for(var al=-1,ul=$d(el.length,Ga);++al<ul;)el[al]=ja[al].call(this,el[al]);return qu(Pa,this,el)})}),dm=Xc(function(Pa,ja){var Ga=C0(ja,td(dm));return _p(Pa,wa,ra,ja,Ga)}),Im=Xc(function(Pa,ja){var Ga=C0(ja,td(Im));return _p(Pa,ba,ra,ja,Ga)}),Pv=vp(function(Pa,ja){return _p(Pa,$a,ra,ra,ra,ja)});function _v(Pa,ja){if(typeof Pa!="function")throw new ip(la);return ja=ja===ra?ja:Jc(ja),Xc(Pa,ja)}function Iv(Pa,ja){if(typeof Pa!="function")throw new ip(la);return ja=ja==null?0:sd(Jc(ja),0),Xc(function(Ga){var el=Ga[ja],al=p0(Ga,0,ja);return el&&A0(al,el),qu(Pa,this,al)})}function kv(Pa,ja,Ga){var el=!0,al=!0;if(typeof Pa!="function")throw new ip(la);return nd(Ga)&&(el="leading"in Ga?!!Ga.leading:el,al="trailing"in Ga?!!Ga.trailing:al),_m(Pa,ja,{leading:el,maxWait:ja,trailing:al})}function Dv(Pa){return Em(Pa,1)}function Mv(Pa,ja){return dm(G1(ja),Pa)}function Ov(){if(!arguments.length)return[];var Pa=arguments[0];return Yc(Pa)?Pa:[Pa]}function Lv(Pa){return vd(Pa,fa)}function jv(Pa,ja){return ja=typeof ja=="function"?ja:ra,vd(Pa,fa,ja)}function Bv(Pa){return vd(Pa,ha|fa)}function Fv(Pa,ja){return ja=typeof ja=="function"?ja:ra,vd(Pa,ha|fa,ja)}function Nv(Pa,ja){return ja==null||M1(Pa,ja,Hd(ja))}function v0(Pa,ja){return Pa===ja||Pa!==Pa&&ja!==ja}var zv=df(Z0),Hv=df(function(Pa,ja){return Pa>=ja}),wf=Zu(function(){return arguments}())?Zu:function(Pa){return cd(Pa)&&pu.call(Pa,"callee")&&!E1.call(Pa,"callee")},Yc=Nl.isArray,Vv=Ed?op(Ed):Nf;function bp(Pa){return Pa!=null&&Tg(Pa.length)&&!ah(Pa)}function bd(Pa){return cd(Pa)&&bp(Pa)}function Wv(Pa){return Pa===!0||Pa===!1||cd(Pa)&&Hu(Pa)==Ja}var Ih=W2||Cm,Gv=pp?op(pp):c0;function Uv(Pa){return cd(Pa)&&Pa.nodeType===1&&!w2(Pa)}function qv(Pa){if(Pa==null)return!0;if(bp(Pa)&&(Yc(Pa)||typeof Pa=="string"||typeof Pa.splice=="function"||Ih(Pa)||h1(Pa)||wf(Pa)))return!Pa.length;var ja=Pd(Pa);if(ja==pl||ja==Vl)return!Pa.size;if(oh(Pa))return!ef(Pa).length;for(var Ga in Pa)if(pu.call(Pa,Ga))return!1;return!0}function Zv(Pa,ja){return mp(Pa,ja)}function Qv(Pa,ja,Ga){Ga=typeof Ga=="function"?Ga:ra;var el=Ga?Ga(Pa,ja):ra;return el===ra?mp(Pa,ja,ra,Ga):!!el}function pm(Pa){if(!cd(Pa))return!1;var ja=Hu(Pa);return ja==rl||ja==Ya||typeof Pa.message=="string"&&typeof Pa.name=="string"&&!w2(Pa)}function Yv(Pa){return typeof Pa=="number"&&G2(Pa)}function ah(Pa){if(!nd(Pa))return!1;var ja=Hu(Pa);return ja==sl||ja==dl||ja==il||ja==Ol}function km(Pa){return typeof Pa=="number"&&Pa==Jc(Pa)}function Tg(Pa){return typeof Pa=="number"&&Pa>-1&&Pa%1==0&&Pa<=Fa}function nd(Pa){var ja=typeof Pa;return Pa!=null&&(ja=="object"||ja=="function")}function cd(Pa){return Pa!=null&&typeof Pa=="object"}var Dm=Vd?op(Vd):tg;function Kv(Pa,ja){return Pa===ja||zf(Pa,ja,yd(ja))}function Xv(Pa,ja,Ga){return Ga=typeof Ga=="function"?Ga:ra,zf(Pa,ja,yd(ja),Ga)}function Jv(Pa){return Mm(Pa)&&Pa!=+Pa}function ex(Pa){if(ff(Pa))throw new Uc(sa);return Hf(Pa)}function tx(Pa){return Pa===null}function nx(Pa){return Pa==null}function Mm(Pa){return typeof Pa=="number"||cd(Pa)&&Hu(Pa)==ml}function w2(Pa){if(!cd(Pa)||Hu(Pa)!=Tl)return!1;var ja=Vh(Pa);if(ja===null)return!0;var Ga=pu.call(ja,"constructor")&&ja.constructor;return typeof Ga=="function"&&Ga instanceof Ga&&t0.call(Ga)==H2}var hm=rp?op(rp):ng;function rx(Pa){return km(Pa)&&Pa>=-9007199254740991&&Pa<=Fa}var Om=ch?op(ch):Vf;function Pg(Pa){return typeof Pa=="string"||!Yc(Pa)&&cd(Pa)&&Hu(Pa)==Wl}function Ip(Pa){return typeof Pa=="symbol"||cd(Pa)&&Hu(Pa)==vl}var h1=fd?op(fd):j1;function ox(Pa){return Pa===ra}function ix(Pa){return cd(Pa)&&Pd(Pa)==zl}function ax(Pa){return cd(Pa)&&Hu(Pa)==Al}var sx=df(Qd),lx=df(function(Pa,ja){return Pa<=ja});function Lm(Pa){if(!Pa)return[];if(bp(Pa))return Pg(Pa)?$p(Pa):Ud(Pa);if(r0&&Pa[r0])return M2(Pa[r0]());var ja=Pd(Pa),Ga=ja==pl?b0:ja==Vl?Rf:f1;return Ga(Pa)}function sh(Pa){if(!Pa)return Pa===0?Pa:0;if(Pa=Kp(Pa),Pa===za||Pa===-1/0){var ja=Pa<0?-1:1;return ja*Ha}return Pa===Pa?Pa:0}function Jc(Pa){var ja=sh(Pa),Ga=ja%1;return ja===ja?Ga?ja-Ga:ja:0}function jm(Pa){return Pa?I0(Jc(Pa),0,Ua):0}function Kp(Pa){if(typeof Pa=="number")return Pa;if(Ip(Pa))return Va;if(nd(Pa)){var ja=typeof Pa.valueOf=="function"?Pa.valueOf():Pa;Pa=nd(ja)?ja+"":ja}if(typeof Pa!="string")return Pa===0?Pa:+Pa;Pa=T2(Pa);var Ga=Qu.test(Pa);return Ga||Tu.test(Pa)?Zc(Pa.slice(2),Ga?2:8):Bu.test(Pa)?Va:+Pa}function Bm(Pa){return Pp(Pa,Cp(Pa))}function cx(Pa){return Pa?I0(Jc(Pa),-9007199254740991,Fa):Pa===0?Pa:0}function Au(Pa){return Pa==null?"":Gd(Pa)}var ux=Xd(function(Pa,ja){if(oh(ja)||bp(ja)){Pp(ja,Hd(ja),Pa);return}for(var Ga in ja)pu.call(ja,Ga)&&G0(Pa,Ga,ja[Ga])}),Fm=Xd(function(Pa,ja){Pp(ja,Cp(ja),Pa)}),_g=Xd(function(Pa,ja,Ga,el){Pp(ja,Cp(ja),Pa,el)}),dx=Xd(function(Pa,ja,Ga,el){Pp(ja,Hd(ja),Pa,el)}),hx=vp(Yh);function fx(Pa,ja){var Ga=md(Pa);return ja==null?Ga:U0(Ga,ja)}var gx=Xc(function(Pa,ja){Pa=$u(Pa);var Ga=-1,el=ja.length,al=el>2?ja[2]:ra;for(al&&Ad(ja[0],ja[1],al)&&(el=1);++Ga<el;)for(var ul=ja[Ga],yl=Cp(ul),Cl=-1,Dl=yl.length;++Cl<Dl;){var Zl=yl[Cl],Ql=Pa[Zl];(Ql===ra||v0(Ql,w0[Zl])&&!pu.call(Pa,Zl))&&(Pa[Zl]=ul[Zl])}return Pa}),mx=Xc(function(Pa){return Pa.push(ra,i2),qu(Nm,ra,Pa)});function vx(Pa,ja){return S2(Pa,_c(ja,3),lp)}function xx(Pa,ja){return S2(Pa,_c(ja,3),Ff)}function yx(Pa,ja){return Pa==null?Pa:bh(Pa,_c(ja,3),Cp)}function Ax(Pa,ja){return Pa==null?Pa:Ch(Pa,_c(ja,3),Cp)}function bx(Pa,ja){return Pa&&lp(Pa,_c(ja,3))}function Cx(Pa,ja){return Pa&&Ff(Pa,_c(ja,3))}function wx(Pa){return Pa==null?[]:q0(Pa,Hd(Pa))}function Sx(Pa){return Pa==null?[]:q0(Pa,Cp(Pa))}function fm(Pa,ja,Ga){var el=Pa==null?ra:D0(Pa,ja);return el===ra?Ga:el}function Ex(Pa,ja){return Pa!=null&&o1(Pa,ja,Jh)}function gm(Pa,ja){return Pa!=null&&o1(Pa,ja,Q0)}var $x=t2(function(Pa,ja,Ga){ja!=null&&typeof ja.toString!="function"&&(ja=Nh.call(ja)),Pa[ja]=Ga},vm(wp)),Rx=t2(function(Pa,ja,Ga){ja!=null&&typeof ja.toString!="function"&&(ja=Nh.call(ja)),pu.call(Pa,ja)?Pa[ja].push(Ga):Pa[ja]=[Ga]},_c),Tx=Xc(Y0);function Hd(Pa){return bp(Pa)?fp(Pa):ef(Pa)}function Cp(Pa){return bp(Pa)?fp(Pa,!0):tf(Pa)}function Px(Pa,ja){var Ga={};return ja=_c(ja,3),lp(Pa,function(el,al,ul){Nd(Ga,ja(el,al,ul),el)}),Ga}function _x(Pa,ja){var Ga={};return ja=_c(ja,3),lp(Pa,function(el,al,ul){Nd(Ga,al,ja(el,al,ul))}),Ga}var Ix=Xd(function(Pa,ja,Ga){ld(Pa,ja,Ga)}),Nm=Xd(function(Pa,ja,Ga,el){ld(Pa,ja,Ga,el)}),kx=vp(function(Pa,ja){var Ga={};if(Pa==null)return Ga;var el=!1;ja=Mu(ja,function(ul){return ul=Td(ul,Pa),el||(el=ul.length>1),ul}),Pp(Pa,Lc(Pa),Ga),el&&(Ga=vd(Ga,ha|ga|fa,a2));for(var al=ja.length;al--;)Qf(Ga,ja[al]);return Ga});function Dx(Pa,ja){return zm(Pa,Rg(_c(ja)))}var Mx=vp(function(Pa,ja){return Pa==null?{}:B1(Pa,ja)});function zm(Pa,ja){if(Pa==null)return{};var Ga=Mu(Lc(Pa),function(el){return[el]});return ja=_c(ja),Gf(Pa,Ga,function(el,al){return ja(el,al[0])})}function Ox(Pa,ja,Ga){ja=Td(ja,Pa);var el=-1,al=ja.length;for(al||(al=1,Pa=ra);++el<al;){var ul=Pa==null?ra:Pa[xp(ja[el])];ul===ra&&(el=al,ul=Ga),Pa=ah(ul)?ul.call(Pa):ul}return Pa}function Lx(Pa,ja,Ga){return Pa==null?Pa:O0(Pa,ja,Ga)}function jx(Pa,ja,Ga,el){return el=typeof el=="function"?el:ra,Pa==null?Pa:O0(Pa,ja,Ga,el)}var Hm=o2(Hd),Vm=o2(Cp);function Bx(Pa,ja,Ga){var el=Yc(Pa),al=el||Ih(Pa)||h1(Pa);if(ja=_c(ja,4),Ga==null){var ul=Pa&&Pa.constructor;al?Ga=el?new ul:[]:nd(Pa)?Ga=ah(ul)?md(Vh(Pa)):{}:Ga={}}return(al?Bd:lp)(Pa,function(yl,Cl,Dl){return ja(Ga,yl,Cl,Dl)}),Ga}function Fx(Pa,ja){return Pa==null?!0:Qf(Pa,ja)}function Nx(Pa,ja,Ga){return Pa==null?Pa:ig(Pa,ja,G1(Ga))}function zx(Pa,ja,Ga,el){return el=typeof el=="function"?el:ra,Pa==null?Pa:ig(Pa,ja,G1(Ga),el)}function f1(Pa){return Pa==null?[]:y1(Pa,Hd(Pa))}function Hx(Pa){return Pa==null?[]:y1(Pa,Cp(Pa))}function Vx(Pa,ja,Ga){return Ga===ra&&(Ga=ja,ja=ra),Ga!==ra&&(Ga=Kp(Ga),Ga=Ga===Ga?Ga:0),ja!==ra&&(ja=Kp(ja),ja=ja===ja?ja:0),I0(Kp(Pa),ja,Ga)}function Wx(Pa,ja,Ga){return ja=sh(ja),Ga===ra?(Ga=ja,ja=0):Ga=sh(Ga),Pa=Kp(Pa),L1(Pa,ja,Ga)}function Gx(Pa,ja,Ga){if(Ga&&typeof Ga!="boolean"&&Ad(Pa,ja,Ga)&&(ja=Ga=ra),Ga===ra&&(typeof ja=="boolean"?(Ga=ja,ja=ra):typeof Pa=="boolean"&&(Ga=Pa,Pa=ra)),Pa===ra&&ja===ra?(Pa=0,ja=1):(Pa=sh(Pa),ja===ra?(ja=Pa,Pa=0):ja=sh(ja)),Pa>ja){var el=Pa;Pa=ja,ja=el}if(Ga||Pa%1||ja%1){var al=i0();return $d(Pa+al*(ja-Pa+Cu("1e-"+((al+"").length-1))),ja)}return J0(Pa,ja)}var Ux=Up(function(Pa,ja,Ga){return ja=ja.toLowerCase(),Pa+(Ga?Wm(ja):ja)});function Wm(Pa){return mm(Au(Pa).toLowerCase())}function Gm(Pa){return Pa=Au(Pa),Pa&&Pa.replace(cc,Oh).replace(oc,"")}function qx(Pa,ja,Ga){Pa=Au(Pa),ja=Gd(ja);var el=Pa.length;Ga=Ga===ra?el:I0(Jc(Ga),0,el);var al=Ga;return Ga-=ja.length,Ga>=0&&Pa.slice(Ga,al)==ja}function Zx(Pa){return Pa=Au(Pa),Pa&&kc.test(Pa)?Pa.replace(Ic,Fg):Pa}function Qx(Pa){return Pa=Au(Pa),Pa&&uc.test(Pa)?Pa.replace(qc,"\\$&"):Pa}var Yx=Up(function(Pa,ja,Ga){return Pa+(Ga?"-":"")+ja.toLowerCase()}),Kx=Up(function(Pa,ja,Ga){return Pa+(Ga?" ":"")+ja.toLowerCase()}),Xx=e2("toLowerCase");function Jx(Pa,ja,Ga){Pa=Au(Pa),ja=Jc(ja);var el=ja?Fp(Pa):0;if(!ja||el>=ja)return Pa;var al=(ja-el)/2;return uf(Gh(al),Ga)+Pa+uf(dh(al),Ga)}function ey(Pa,ja,Ga){Pa=Au(Pa),ja=Jc(ja);var el=ja?Fp(Pa):0;return ja&&el<ja?Pa+uf(ja-el,Ga):Pa}function ty(Pa,ja,Ga){Pa=Au(Pa),ja=Jc(ja);var el=ja?Fp(Pa):0;return ja&&el<ja?uf(ja-el,Ga)+Pa:Pa}function ny(Pa,ja,Ga){return Ga||ja==null?ja=0:ja&&(ja=+ja),kf(Au(Pa).replace(lc,""),ja||0)}function ry(Pa,ja,Ga){return(Ga?Ad(Pa,ja,Ga):ja===ra)?ja=1:ja=Jc(ja),Uf(Au(Pa),ja)}function oy(){var Pa=arguments,ja=Au(Pa[0]);return Pa.length<3?ja:ja.replace(Pa[1],Pa[2])}var iy=Up(function(Pa,ja,Ga){return Pa+(Ga?"_":"")+ja.toLowerCase()});function ay(Pa,ja,Ga){return Ga&&typeof Ga!="number"&&Ad(Pa,ja,Ga)&&(ja=Ga=ra),Ga=Ga===ra?Ua:Ga>>>0,Ga?(Pa=Au(Pa),Pa&&(typeof ja=="string"||ja!=null&&!hm(ja))&&(ja=Gd(ja),!ja&&N0(Pa))?p0($p(Pa),0,Ga):Pa.split(ja,Ga)):[]}var sy=Up(function(Pa,ja,Ga){return Pa+(Ga?" ":"")+mm(ja)});function ly(Pa,ja,Ga){return Pa=Au(Pa),Ga=Ga==null?0:I0(Jc(Ga),0,Pa.length),ja=Gd(ja),Pa.slice(Ga,Ga+ja.length)==ja}function cy(Pa,ja,Ga){var el=cl.templateSettings;Ga&&Ad(Pa,ja,Ga)&&(ja=ra),Pa=Au(Pa),ja=_g({},ja,el,r1);var al=_g({},ja.imports,el.imports,r1),ul=Hd(al),yl=y1(al,ul),Cl,Dl,Zl=0,Ql=ja.interpolate||mc,nc="__p += '",fc=H0((ja.escape||mc).source+"|"+Ql.source+"|"+(Ql===ac?su:mc).source+"|"+(ja.evaluate||mc).source+"|$","g"),$c="//# sourceURL="+(pu.call(ja,"sourceURL")?(ja.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jp+"]")+`
`;Pa.replace(fc,function(Bc,au,cu,kp,up,Dp){return cu||(cu=kp),nc+=Pa.slice(Zl,Dp).replace(Dc,I2),au&&(Cl=!0,nc+=`' +
__e(`+au+`) +
'`),up&&(Dl=!0,nc+=`';
`+up+`;
__p += '`),cu&&(nc+=`' +
((__t = (`+cu+`)) == null ? '' : __t) +
'`),Zl=Dp+Bc.length,Bc}),nc+=`';
`;var jc=pu.call(ja,"variable")&&ja.variable;if(!jc)nc=`with (obj) {
`+nc+`
}
`;else if(vu.test(jc))throw new Uc(ca);nc=(Dl?nc.replace(ic,""):nc).replace(Yl,"$1").replace(gc,"$1;"),nc="function("+(jc||"obj")+`) {
`+(jc?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Cl?", __e = _.escape":"")+(Dl?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+nc+`return __p
}`;var tu=qm(function(){return du(ul,$c+"return "+nc).apply(ra,yl)});if(tu.source=nc,pm(tu))throw tu;return tu}function uy(Pa){return Au(Pa).toLowerCase()}function dy(Pa){return Au(Pa).toUpperCase()}function py(Pa,ja,Ga){if(Pa=Au(Pa),Pa&&(Ga||ja===ra))return T2(Pa);if(!Pa||!(ja=Gd(ja)))return Pa;var el=$p(Pa),al=$p(ja),ul=P2(el,al),yl=_2(el,al)+1;return p0(el,ul,yl).join("")}function hy(Pa,ja,Ga){if(Pa=Au(Pa),Pa&&(Ga||ja===ra))return Pa.slice(0,jh(Pa)+1);if(!Pa||!(ja=Gd(ja)))return Pa;var el=$p(Pa),al=_2(el,$p(ja))+1;return p0(el,0,al).join("")}function fy(Pa,ja,Ga){if(Pa=Au(Pa),Pa&&(Ga||ja===ra))return Pa.replace(lc,"");if(!Pa||!(ja=Gd(ja)))return Pa;var el=$p(Pa),al=P2(el,$p(ja));return p0(el,al).join("")}function gy(Pa,ja){var Ga=Ia,el=Oa;if(nd(ja)){var al="separator"in ja?ja.separator:al;Ga="length"in ja?Jc(ja.length):Ga,el="omission"in ja?Gd(ja.omission):el}Pa=Au(Pa);var ul=Pa.length;if(N0(Pa)){var yl=$p(Pa);ul=yl.length}if(Ga>=ul)return Pa;var Cl=Ga-Fp(el);if(Cl<1)return el;var Dl=yl?p0(yl,0,Cl).join(""):Pa.slice(0,Cl);if(al===ra)return Dl+el;if(yl&&(Cl+=Dl.length-Cl),hm(al)){if(Pa.slice(Cl).search(al)){var Zl,Ql=Dl;for(al.global||(al=H0(al.source,Au(uu.exec(al))+"g")),al.lastIndex=0;Zl=al.exec(Ql);)var nc=Zl.index;Dl=Dl.slice(0,nc===ra?Cl:nc)}}else if(Pa.indexOf(Gd(al),Cl)!=Cl){var fc=Dl.lastIndexOf(al);fc>-1&&(Dl=Dl.slice(0,fc))}return Dl+el}function my(Pa){return Pa=Au(Pa),Pa&&bc.test(Pa)?Pa.replace(Rc,Ng):Pa}var vy=Up(function(Pa,ja,Ga){return Pa+(Ga?" ":"")+ja.toUpperCase()}),mm=e2("toUpperCase");function Um(Pa,ja,Ga){return Pa=Au(Pa),ja=Ga?ra:ja,ja===ra?D2(Pa)?C1(Pa):Og(Pa):Pa.match(ja)||[]}var qm=Xc(function(Pa,ja){try{return qu(Pa,ra,ja)}catch(Ga){return pm(Ga)?Ga:new Uc(Ga)}}),xy=vp(function(Pa,ja){return Bd(ja,function(Ga){Ga=xp(Ga),Nd(Pa,Ga,um(Pa[Ga],Pa))}),Pa});function yy(Pa){var ja=Pa==null?0:Pa.length,Ga=_c();return Pa=ja?Mu(Pa,function(el){if(typeof el[1]!="function")throw new ip(la);return[Ga(el[0]),el[1]]}):[],Xc(function(el){for(var al=-1;++al<ja;){var ul=Pa[al];if(qu(ul[0],this,el))return qu(ul[1],this,el)}})}function Ay(Pa){return k0(vd(Pa,ha))}function vm(Pa){return function(){return Pa}}function by(Pa,ja){return Pa==null||Pa!==Pa?ja:Pa}var Cy=e1(),wy=e1(!0);function wp(Pa){return Pa}function xm(Pa){return K0(typeof Pa=="function"?Pa:vd(Pa,ha))}function Sy(Pa){return Ku(vd(Pa,ha))}function Ey(Pa,ja){return Md(Pa,vd(ja,ha))}var $y=Xc(function(Pa,ja){return function(Ga){return Y0(Ga,Pa,ja)}}),Ry=Xc(function(Pa,ja){return function(Ga){return Y0(Pa,Ga,ja)}});function ym(Pa,ja,Ga){var el=Hd(ja),al=q0(ja,el);Ga==null&&!(nd(ja)&&(al.length||!el.length))&&(Ga=ja,ja=Pa,Pa=this,al=q0(ja,Hd(ja)));var ul=!(nd(Ga)&&"chain"in Ga)||!!Ga.chain,yl=ah(Pa);return Bd(al,function(Cl){var Dl=ja[Cl];Pa[Cl]=Dl,yl&&(Pa.prototype[Cl]=function(){var Zl=this.__chain__;if(ul||Zl){var Ql=Pa(this.__wrapped__),nc=Ql.__actions__=Ud(this.__actions__);return nc.push({func:Dl,args:arguments,thisArg:Pa}),Ql.__chain__=Zl,Ql}return Dl.apply(Pa,A0([this.value()],arguments))})}),Pa}function Ty(){return iu._===this&&(iu._=w1),this}function Am(){}function Py(Pa){return Pa=Jc(Pa),Xc(function(ja){return Eh(ja,Pa)})}var _y=n2(Mu),Iy=n2(Sf),ky=n2(kh);function Zm(Pa){return rh(Pa)?v1(xp(Pa)):X0(Pa)}function Dy(Pa){return function(ja){return Pa==null?ra:D0(Pa,ja)}}var My=dg(),Oy=dg(!0);function bm(){return[]}function Cm(){return!1}function Ly(){return{}}function jy(){return""}function By(){return!0}function Fy(Pa,ja){if(Pa=Jc(Pa),Pa<1||Pa>Fa)return[];var Ga=Ua,el=$d(Pa,Ua);ja=_c(ja),Pa-=Ua;for(var al=$f(el,ja);++Ga<Pa;)ja(Ga);return al}function Ny(Pa){return Yc(Pa)?Mu(Pa,xp):Ip(Pa)?[Pa]:Ud(yf(Au(Pa)))}function zy(Pa){var ja=++Fh;return Au(Pa)+ja}var Hy=cf(function(Pa,ja){return Pa+ja},0),Vy=n1("ceil"),Wy=cf(function(Pa,ja){return Pa/ja},1),Gy=n1("floor");function Uy(Pa){return Pa&&Pa.length?Xh(Pa,wp,Z0):ra}function qy(Pa,ja){return Pa&&Pa.length?Xh(Pa,_c(ja,2),Z0):ra}function Zy(Pa){return $2(Pa,wp)}function Qy(Pa,ja){return $2(Pa,_c(ja,2))}function Yy(Pa){return Pa&&Pa.length?Xh(Pa,wp,Qd):ra}function Ky(Pa,ja){return Pa&&Pa.length?Xh(Pa,_c(ja,2),Qd):ra}var Xy=cf(function(Pa,ja){return Pa*ja},1),Jy=n1("round"),e3=cf(function(Pa,ja){return Pa-ja},0);function t3(Pa){return Pa&&Pa.length?x1(Pa,wp):0}function n3(Pa,ja){return Pa&&Pa.length?x1(Pa,_c(ja,2)):0}return cl.after=wv,cl.ary=Em,cl.assign=ux,cl.assignIn=Fm,cl.assignInWith=_g,cl.assignWith=dx,cl.at=hx,cl.before=$m,cl.bind=um,cl.bindAll=xy,cl.bindKey=Rm,cl.castArray=Ov,cl.chain=Wc,cl.chunk=Af,cl.compact=Kg,cl.concat=Xg,cl.cond=yy,cl.conforms=Ay,cl.constant=vm,cl.countBy=ev,cl.create=fx,cl.curry=Tm,cl.curryRight=Pm,cl.debounce=_m,cl.defaults=gx,cl.defaultsDeep=mx,cl.defer=Sv,cl.delay=Ev,cl.difference=gg,cl.differenceBy=mg,cl.differenceWith=ih,cl.drop=Jg,cl.dropRight=em,cl.dropRightWhile=L0,cl.dropWhile=tm,cl.fill=vg,cl.filter=nv,cl.flatMap=iv,cl.flatMapDeep=av,cl.flatMapDepth=sv,cl.flatten=m0,cl.flattenDeep=nm,cl.flattenDepth=rm,cl.flip=$v,cl.flow=Cy,cl.flowRight=wy,cl.fromPairs=yg,cl.functions=wx,cl.functionsIn=Sx,cl.groupBy=lv,cl.initial=m2,cl.intersection=om,cl.intersectionBy=j0,cl.intersectionWith=c1,cl.invert=$x,cl.invertBy=Rx,cl.invokeMap=uv,cl.iteratee=xm,cl.keyBy=dv,cl.keys=Hd,cl.keysIn=Cp,cl.map=Sg,cl.mapKeys=Px,cl.mapValues=_x,cl.matches=Sy,cl.matchesProperty=Ey,cl.memoize=$g,cl.merge=Ix,cl.mergeWith=Nm,cl.method=$y,cl.methodOf=Ry,cl.mixin=ym,cl.negate=Rg,cl.nthArg=Py,cl.omit=kx,cl.omitBy=Dx,cl.once=Rv,cl.orderBy=pv,cl.over=_y,cl.overArgs=Tv,cl.overEvery=Iy,cl.overSome=ky,cl.partial=dm,cl.partialRight=Im,cl.partition=hv,cl.pick=Mx,cl.pickBy=zm,cl.property=Zm,cl.propertyOf=Dy,cl.pull=im,cl.pullAll=bg,cl.pullAllBy=u1,cl.pullAllWith=y2,cl.pullAt=Cg,cl.range=My,cl.rangeRight=Oy,cl.rearg=Pv,cl.reject=mv,cl.remove=A2,cl.rest=_v,cl.reverse=b2,cl.sampleSize=xv,cl.set=Lx,cl.setWith=jx,cl.shuffle=yv,cl.slice=C2,cl.sortBy=Cv,cl.sortedUniq=lm,cl.sortedUniqBy=p1,cl.split=ay,cl.spread=Iv,cl.tail=Ra,cl.take=ka,cl.takeRight=Ba,cl.takeRightWhile=qa,cl.takeWhile=Ka,cl.tap=wc,cl.throttle=kv,cl.thru=Nc,cl.toArray=Lm,cl.toPairs=Hm,cl.toPairsIn=Vm,cl.toPath=Ny,cl.toPlainObject=Bm,cl.transform=Bx,cl.unary=Dv,cl.union=ol,cl.unionBy=ll,cl.unionWith=hl,cl.uniq=bl,cl.uniqBy=Hl,cl.uniqWith=vc,cl.unset=Fx,cl.unzip=Fc,cl.unzipWith=tc,cl.update=Nx,cl.updateWith=zx,cl.values=f1,cl.valuesIn=Hx,cl.without=Ec,cl.words=Um,cl.wrap=Mv,cl.xor=Hc,cl.xorBy=Oc,cl.xorWith=jl,cl.zip=El,cl.zipObject=Ml,cl.zipObjectDeep=ql,cl.zipWith=Jl,cl.entries=Hm,cl.entriesIn=Vm,cl.extend=Fm,cl.extendWith=_g,ym(cl,cl),cl.add=Hy,cl.attempt=qm,cl.camelCase=Ux,cl.capitalize=Wm,cl.ceil=Vy,cl.clamp=Vx,cl.clone=Lv,cl.cloneDeep=Bv,cl.cloneDeepWith=Fv,cl.cloneWith=jv,cl.conformsTo=Nv,cl.deburr=Gm,cl.defaultTo=by,cl.divide=Wy,cl.endsWith=qx,cl.eq=v0,cl.escape=Zx,cl.escapeRegExp=Qx,cl.every=tv,cl.find=rv,cl.findIndex=xg,cl.findKey=vx,cl.findLast=ov,cl.findLastIndex=g2,cl.findLastKey=xx,cl.floor=Gy,cl.forEach=wm,cl.forEachRight=Sm,cl.forIn=yx,cl.forInRight=Ax,cl.forOwn=bx,cl.forOwnRight=Cx,cl.get=fm,cl.gt=zv,cl.gte=Hv,cl.has=Ex,cl.hasIn=gm,cl.head=Ag,cl.identity=wp,cl.includes=cv,cl.indexOf=Ap,cl.inRange=Wx,cl.invoke=Tx,cl.isArguments=wf,cl.isArray=Yc,cl.isArrayBuffer=Vv,cl.isArrayLike=bp,cl.isArrayLikeObject=bd,cl.isBoolean=Wv,cl.isBuffer=Ih,cl.isDate=Gv,cl.isElement=Uv,cl.isEmpty=qv,cl.isEqual=Zv,cl.isEqualWith=Qv,cl.isError=pm,cl.isFinite=Yv,cl.isFunction=ah,cl.isInteger=km,cl.isLength=Tg,cl.isMap=Dm,cl.isMatch=Kv,cl.isMatchWith=Xv,cl.isNaN=Jv,cl.isNative=ex,cl.isNil=nx,cl.isNull=tx,cl.isNumber=Mm,cl.isObject=nd,cl.isObjectLike=cd,cl.isPlainObject=w2,cl.isRegExp=hm,cl.isSafeInteger=rx,cl.isSet=Om,cl.isString=Pg,cl.isSymbol=Ip,cl.isTypedArray=h1,cl.isUndefined=ox,cl.isWeakMap=ix,cl.isWeakSet=ax,cl.join=_h,cl.kebabCase=Yx,cl.last=ep,cl.lastIndexOf=v2,cl.lowerCase=Kx,cl.lowerFirst=Xx,cl.lt=sx,cl.lte=lx,cl.max=Uy,cl.maxBy=qy,cl.mean=Zy,cl.meanBy=Qy,cl.min=Yy,cl.minBy=Ky,cl.stubArray=bm,cl.stubFalse=Cm,cl.stubObject=Ly,cl.stubString=jy,cl.stubTrue=By,cl.multiply=Xy,cl.nth=x2,cl.noConflict=Ty,cl.noop=Am,cl.now=Eg,cl.pad=Jx,cl.padEnd=ey,cl.padStart=ty,cl.parseInt=ny,cl.random=Gx,cl.reduce=fv,cl.reduceRight=gv,cl.repeat=ry,cl.replace=oy,cl.result=Ox,cl.round=Jy,cl.runInContext=_l,cl.sample=vv,cl.size=Av,cl.snakeCase=iy,cl.some=bv,cl.sortedIndex=bf,cl.sortedIndexBy=am,cl.sortedIndexOf=d1,cl.sortedLastIndex=wg,cl.sortedLastIndexBy=sm,cl.sortedLastIndexOf=Cf,cl.startCase=sy,cl.startsWith=ly,cl.subtract=e3,cl.sum=t3,cl.sumBy=n3,cl.template=cy,cl.times=Fy,cl.toFinite=sh,cl.toInteger=Jc,cl.toLength=jm,cl.toLower=uy,cl.toNumber=Kp,cl.toSafeInteger=cx,cl.toString=Au,cl.toUpper=dy,cl.trim=py,cl.trimEnd=hy,cl.trimStart=fy,cl.truncate=gy,cl.unescape=my,cl.uniqueId=zy,cl.upperCase=vy,cl.upperFirst=mm,cl.each=wm,cl.eachRight=Sm,cl.first=Ag,ym(cl,function(){var Pa={};return lp(cl,function(ja,Ga){pu.call(cl.prototype,Ga)||(Pa[Ga]=ja)}),Pa}(),{chain:!1}),cl.VERSION=oa,Bd(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Pa){cl[Pa].placeholder=cl}),Bd(["drop","take"],function(Pa,ja){nu.prototype[Pa]=function(Ga){Ga=Ga===ra?1:sd(Jc(Ga),0);var el=this.__filtered__&&!ja?new nu(this):this.clone();return el.__filtered__?el.__takeCount__=$d(Ga,el.__takeCount__):el.__views__.push({size:$d(Ga,Ua),type:Pa+(el.__dir__<0?"Right":"")}),el},nu.prototype[Pa+"Right"]=function(Ga){return this.reverse()[Pa](Ga).reverse()}}),Bd(["filter","map","takeWhile"],function(Pa,ja){var Ga=ja+1,el=Ga==_a||Ga==Na;nu.prototype[Pa]=function(al){var ul=this.clone();return ul.__iteratees__.push({iteratee:_c(al,3),type:Ga}),ul.__filtered__=ul.__filtered__||el,ul}}),Bd(["head","last"],function(Pa,ja){var Ga="take"+(ja?"Right":"");nu.prototype[Pa]=function(){return this[Ga](1).value()[0]}}),Bd(["initial","tail"],function(Pa,ja){var Ga="drop"+(ja?"":"Right");nu.prototype[Pa]=function(){return this.__filtered__?new nu(this):this[Ga](1)}}),nu.prototype.compact=function(){return this.filter(wp)},nu.prototype.find=function(Pa){return this.filter(Pa).head()},nu.prototype.findLast=function(Pa){return this.reverse().find(Pa)},nu.prototype.invokeMap=Xc(function(Pa,ja){return typeof Pa=="function"?new nu(this):this.map(function(Ga){return Y0(Ga,Pa,ja)})}),nu.prototype.reject=function(Pa){return this.filter(Rg(_c(Pa)))},nu.prototype.slice=function(Pa,ja){Pa=Jc(Pa);var Ga=this;return Ga.__filtered__&&(Pa>0||ja<0)?new nu(Ga):(Pa<0?Ga=Ga.takeRight(-Pa):Pa&&(Ga=Ga.drop(Pa)),ja!==ra&&(ja=Jc(ja),Ga=ja<0?Ga.dropRight(-ja):Ga.take(ja-Pa)),Ga)},nu.prototype.takeRightWhile=function(Pa){return this.reverse().takeWhile(Pa).reverse()},nu.prototype.toArray=function(){return this.take(Ua)},lp(nu.prototype,function(Pa,ja){var Ga=/^(?:filter|find|map|reject)|While$/.test(ja),el=/^(?:head|last)$/.test(ja),al=cl[el?"take"+(ja=="last"?"Right":""):ja],ul=el||/^find/.test(ja);al&&(cl.prototype[ja]=function(){var yl=this.__wrapped__,Cl=el?[1]:arguments,Dl=yl instanceof nu,Zl=Cl[0],Ql=Dl||Yc(yl),nc=function(au){var cu=al.apply(cl,A0([au],Cl));return el&&fc?cu[0]:cu};Ql&&Ga&&typeof Zl=="function"&&Zl.length!=1&&(Dl=Ql=!1);var fc=this.__chain__,$c=!!this.__actions__.length,jc=ul&&!fc,tu=Dl&&!$c;if(!ul&&Ql){yl=tu?yl:new nu(this);var Bc=Pa.apply(yl,Cl);return Bc.__actions__.push({func:Nc,args:[nc],thisArg:ra}),new ap(Bc,fc)}return jc&&tu?Pa.apply(this,Cl):(Bc=this.thru(nc),jc?el?Bc.value()[0]:Bc.value():Bc)})}),Bd(["pop","push","shift","sort","splice","unshift"],function(Pa){var ja=Bh[Pa],Ga=/^(?:push|sort|unshift)$/.test(Pa)?"tap":"thru",el=/^(?:pop|shift)$/.test(Pa);cl.prototype[Pa]=function(){var al=arguments;if(el&&!this.__chain__){var ul=this.value();return ja.apply(Yc(ul)?ul:[],al)}return this[Ga](function(yl){return ja.apply(Yc(yl)?yl:[],al)})}}),lp(nu.prototype,function(Pa,ja){var Ga=cl[ja];if(Ga){var el=Ga.name+"";pu.call($0,el)||($0[el]=[]),$0[el].push({name:ja,func:Ga})}}),$0[t1(ra,ya).name]=[{name:"wrapper",func:ra}],nu.prototype.clone=Mf,nu.prototype.reverse=U2,nu.prototype.value=P1,cl.prototype.at=eu,cl.prototype.chain=Qc,cl.prototype.commit=B0,cl.prototype.next=cm,cl.prototype.plant=Km,cl.prototype.reverse=Xm,cl.prototype.toJSON=cl.prototype.valueOf=cl.prototype.value=Jm,cl.prototype.first=cl.prototype.head,r0&&(cl.prototype[r0]=Ym),cl},z0=F2();Uu?((Uu.exports=z0)._=z0,wu._=z0):iu._=z0}).call(lodash)}(lodash$1,lodash$1.exports)),lodash$1.exports}var lodashExports=requireLodash();const QuickTipManager=ea=>{const{children:na,container:ra}=ea,oa=reactExports.useRef(null),[aa,sa]=reactExports.useState(!1),[la,ca]=reactExports.useState(null),[ua,da]=reactExports.useState(null),pa=reactExports.useCallback((ga,fa)=>{oa.current&&(clearTimeout(oa.current),oa.current=null),reactDomExports.unstable_batchedUpdates(()=>{!lodashExports.isEqual(fa,ua)&&!lodashExports.isEqual(la,ga)&&(da(fa),ca(ga),sa(!0))})},[la,ua]),ha=reactExports.useCallback(ga=>{oa.current||(oa.current=setTimeout(()=>{reactDomExports.unstable_batchedUpdates(()=>{da(null),ca(null),sa(!1)})},ga?0:500))},[]);return jsxRuntimeExports.jsxs(QuickTipContext.Provider,{value:{container:ra,open:aa,previewData:la,targetRect:ua,openQuickTip:pa,closeQuickTip:ha},children:[na,jsxRuntimeExports.jsx(QuickTip$1,{})]})},QuickTipManager$1=dt$1(QuickTipManager).withConfig({displayName:"QuickTipManager",componentId:"sc-1rc4hr5-0"})([""]),OptionControlsManager=ea=>{const{className:na,optionControls:ra,tooltip:oa,tierChecker:aa,fieldsetComponent:sa=BaseFieldset$2,driverComponent:la=OptionControlDriver$2,container:ca}=ea,[ua,da]=reactExports.useState({}),pa=reactExports.useRef(null),ha=reactExports.useRef(null);reactExports.useEffect(()=>{typeof ca=="string"?ha.current=pa.current?.closest(ca):ha.current=ca?.current},[ca]);const ga=reactExports.useCallback((ma,va)=>{da(xa=>({...xa,[ma]:va}))},[]),fa=(ma,va=!1)=>{if("optionControls"in ma){const{id:ya,label:Aa,border:Ca,tier:Sa,optionControls:wa,...ba}=ma,Ea=[];return wa.forEach($a=>{Ea.push(...$a.filter(Ma=>ua[Ma.id]).map(Ma=>Ma.id))}),jsxRuntimeExports.jsx(sa,{id:ya,visibleControls:Ea,label:Aa,locked:Sa&&aa?!aa(Sa):!1,border:Ca,...ba,children:wa.map(($a,Ma)=>jsxRuntimeExports.jsx(FieldsetRow,{children:$a.map(Ia=>fa(Ia,Sa&&aa?!aa(Sa):!1))},Ma))},ya)}return jsxRuntimeExports.jsx(la,{locked:va,tooltip:oa,onVisibilityChange:ga,...ma},ma.id)};return jsxRuntimeExports.jsx("div",{className:na,ref:pa,children:jsxRuntimeExports.jsx(QuickTipManager$1,{container:ha,children:ra.map(ma=>fa(ma,!1))})})},OCManager=dt$1(OptionControlsManager).withConfig({displayName:"Manager",componentId:"sc-1j94ls0-0"})([""]),has=Object.prototype.hasOwnProperty,intersectNestedObjects=(ea,na,ra,oa=()=>!0,aa=!1)=>ea.reduce((sa,la)=>intersectionWith(sa,la,(ca,ua)=>ca[na]===ua[na]&&oa(ca,ua)).map(ca=>{if(ra){const ua=ca[na],da=sa.find(ha=>ha[na]===ua),pa=la.find(ha=>ha[na]===ua);if(has.call(da,ra)&&has.call(pa,ra))return aa&&Array.isArray(da[ra][0])?{...ca,[ra]:da[ra].map((ha,ga)=>intersectNestedObjects([ha,pa[ra][ga]],na,ra,oa,aa))}:{...ca,[ra]:intersectNestedObjects([da[ra],pa[ra]],na,ra,oa,aa)}}return ca})),createOptionControl=ea=>ea,optionControlsPipe=(...ea)=>na=>ea.reduce((ra,oa)=>oa(ra),na),intersectMultipleOptionControlsGroups=ea=>ea.length>1?intersectNestedObjects(ea,"id","optionControls",(na,ra)=>!na?.hideOnIntersection&&!ra?.hideOnIntersection,!0):ea[0],excludeControls=(ea,na)=>ea.map(ra=>"optionControls"in ra?{...ra,optionControls:ra.optionControls.map(oa=>oa.filter(aa=>!na.includes(aa.id)))}:na.includes(ra.id)?void 0:ra).filter(ra=>ra!==void 0),getControlById=(ea,na)=>{let ra;for(let oa=0;oa<ea.length;oa+=1){const aa=ea[oa];if("optionControls"in aa)for(let sa=0;sa<aa.optionControls.length;sa+=1){const ca=aa.optionControls[sa].find(ua=>ua.id===na);if(ca){ra=ca;break}}else if(na===aa.id){ra=aa;break}}return ra},getControlsByIds=(ea,na)=>na.map(ra=>getControlById(ea,ra)).filter(ra=>ra!==void 0),addControlByTarget=(ea,na,ra,oa="before")=>{const aa=ea.findIndex(sa=>sa.id===ra);if(aa!==-1){const sa=oa==="before"?aa:aa+1;return[...ea.slice(0,sa),...na,...ea.slice(sa)]}return ea.map(sa=>"optionControls"in sa?{...sa,optionControls:sa.optionControls.map(la=>{const ca=la.findIndex(da=>da.id===ra),ua=oa==="before"?ca:ca+1;return ca===-1?la:[...la.slice(0,ua),...na,...la.slice(ua)]})}:sa)},addRowToFieldsetByTargetAndIndex=(ea,na,ra,oa)=>ea.map(aa=>{if("optionControls"in aa&&aa.id===ra){const sa=oa<0?aa.optionControls.length+oa+1:oa;return{...aa,optionControls:[...aa.optionControls.slice(0,sa),...Array.isArray(na[0])?na:[na],...aa.optionControls.slice(sa)]}}return aa}),modifyControl=(ea,na,ra,oa=!1)=>ea.map(aa=>{if("optionControls"in aa)return{...aa,optionControls:aa.optionControls.map(sa=>sa.map(la=>{if(la.id===na){const ca=typeof ra=="function"?ra(la):ra;return oa?merge$1(la,ca):{...la,...ca}}return la}))};if(aa.id===na){const sa=typeof ra=="function"?ra(aa):ra;return{...aa,...sa}}return aa}),modifyControls=(ea,na,ra=!1)=>Object.entries(na).reduce((oa,[aa,sa])=>modifyControl(oa,aa,sa,ra),ea),modifyControlsByIds=(ea,na,ra)=>modifyControls(ea,na.reduce((oa,aa)=>({...oa,[aa]:ra}),{})),insertAfterFieldset=(ea,na,ra)=>{const oa=[...ea];return oa.splice(ea.findIndex(aa=>aa.id===na)+1,0,...ra),oa},insertBeforeFieldset=(ea,na,ra)=>{const oa=[...ea];return oa.splice(ea.findIndex(aa=>aa.id===na),0,...ra),oa},excludeFieldsets=(ea,na)=>ea.filter(ra=>!("optionControls"in ra)||!na.includes(ra.id)),modifyFieldset=(ea,na,ra)=>ea.map(oa=>"optionControls"in oa&&oa.id===na?{...oa,...ra}:oa),modifyFieldsets=(ea,na)=>ea.map(ra=>"optionControls"in ra?{...ra,...na}:ra);function _arrayWithoutHoles(ea){if(Array.isArray(ea))return _arrayLikeToArray$1(ea)}function _iterableToArray(ea){if(typeof Symbol<"u"&&ea[Symbol.iterator]!=null||ea["@@iterator"]!=null)return Array.from(ea)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(ea){return _arrayWithoutHoles(ea)||_iterableToArray(ea)||_unsupportedIterableToArray$1(ea)||_nonIterableSpread()}function useEvent$1(ea){var na=reactExports.useRef();na.current=ea;var ra=reactExports.useCallback(function(){for(var oa,aa=arguments.length,sa=new Array(aa),la=0;la<aa;la++)sa[la]=arguments[la];return(oa=na.current)===null||oa===void 0?void 0:oa.call.apply(oa,[na].concat(sa))},[]);return ra}function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useInternalLayoutEffect=canUseDom$1()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect$1=function(na,ra){var oa=reactExports.useRef(!0);useInternalLayoutEffect(function(){return na(oa.current)},ra),useInternalLayoutEffect(function(){return oa.current=!1,function(){oa.current=!0}},[])},useLayoutUpdateEffect=function(na,ra){useLayoutEffect$1(function(oa){if(!oa)return na()},ra)};function useSafeState(ea){var na=reactExports.useRef(!1),ra=reactExports.useState(ea),oa=_slicedToArray(ra,2),aa=oa[0],sa=oa[1];reactExports.useEffect(function(){return na.current=!1,function(){na.current=!0}},[]);function la(ca,ua){ua&&na.current||sa(ca)}return[aa,la]}function hasValue$1(ea){return ea!==void 0}function useMergedState(ea,na){var ra=na||{},oa=ra.defaultValue,aa=ra.value,sa=ra.onChange,la=ra.postState,ca=useSafeState(function(){return hasValue$1(aa)?aa:hasValue$1(oa)?typeof oa=="function"?oa():oa:typeof ea=="function"?ea():ea}),ua=_slicedToArray(ca,2),da=ua[0],pa=ua[1],ha=aa!==void 0?aa:da,ga=la?la(ha):ha,fa=useEvent$1(sa),ma=useSafeState([ha]),va=_slicedToArray(ma,2),xa=va[0],ya=va[1];useLayoutUpdateEffect(function(){var Ca=xa[0];da!==Ca&&fa(da,Ca)},[xa]),useLayoutUpdateEffect(function(){hasValue$1(aa)||pa(aa)},[aa]);var Aa=useEvent$1(function(Ca,Sa){pa(Ca,Sa),ya([ha],Sa)});return[ga,Aa]}var warned={},preMessage=function(na){};function warning$1(ea,na){}function note(ea,na){}function resetWarned(){warned={}}function call(ea,na,ra){!na&&!warned[ra]&&(ea(!1,ra),warned[ra]=!0)}function warningOnce$1(ea,na){call(warning$1,ea,na)}function noteOnce(ea,na){call(note,ea,na)}warningOnce$1.preMessage=preMessage;warningOnce$1.resetWarned=resetWarned;warningOnce$1.noteOnce=noteOnce;const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var ea=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ea)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ea?.substr(0,4))};var reactIs$1={exports:{}},reactIs_production_min$1={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var ea=Symbol.for("react.element"),na=Symbol.for("react.portal"),ra=Symbol.for("react.fragment"),oa=Symbol.for("react.strict_mode"),aa=Symbol.for("react.profiler"),sa=Symbol.for("react.provider"),la=Symbol.for("react.context"),ca=Symbol.for("react.server_context"),ua=Symbol.for("react.forward_ref"),da=Symbol.for("react.suspense"),pa=Symbol.for("react.suspense_list"),ha=Symbol.for("react.memo"),ga=Symbol.for("react.lazy"),fa=Symbol.for("react.offscreen"),ma;ma=Symbol.for("react.module.reference");function va(xa){if(typeof xa=="object"&&xa!==null){var ya=xa.$$typeof;switch(ya){case ea:switch(xa=xa.type,xa){case ra:case aa:case oa:case da:case pa:return xa;default:switch(xa=xa&&xa.$$typeof,xa){case ca:case la:case ua:case ga:case ha:case sa:return xa;default:return ya}}case na:return ya}}}return reactIs_production_min$1.ContextConsumer=la,reactIs_production_min$1.ContextProvider=sa,reactIs_production_min$1.Element=ea,reactIs_production_min$1.ForwardRef=ua,reactIs_production_min$1.Fragment=ra,reactIs_production_min$1.Lazy=ga,reactIs_production_min$1.Memo=ha,reactIs_production_min$1.Portal=na,reactIs_production_min$1.Profiler=aa,reactIs_production_min$1.StrictMode=oa,reactIs_production_min$1.Suspense=da,reactIs_production_min$1.SuspenseList=pa,reactIs_production_min$1.isAsyncMode=function(){return!1},reactIs_production_min$1.isConcurrentMode=function(){return!1},reactIs_production_min$1.isContextConsumer=function(xa){return va(xa)===la},reactIs_production_min$1.isContextProvider=function(xa){return va(xa)===sa},reactIs_production_min$1.isElement=function(xa){return typeof xa=="object"&&xa!==null&&xa.$$typeof===ea},reactIs_production_min$1.isForwardRef=function(xa){return va(xa)===ua},reactIs_production_min$1.isFragment=function(xa){return va(xa)===ra},reactIs_production_min$1.isLazy=function(xa){return va(xa)===ga},reactIs_production_min$1.isMemo=function(xa){return va(xa)===ha},reactIs_production_min$1.isPortal=function(xa){return va(xa)===na},reactIs_production_min$1.isProfiler=function(xa){return va(xa)===aa},reactIs_production_min$1.isStrictMode=function(xa){return va(xa)===oa},reactIs_production_min$1.isSuspense=function(xa){return va(xa)===da},reactIs_production_min$1.isSuspenseList=function(xa){return va(xa)===pa},reactIs_production_min$1.isValidElementType=function(xa){return typeof xa=="string"||typeof xa=="function"||xa===ra||xa===aa||xa===oa||xa===da||xa===pa||xa===fa||typeof xa=="object"&&xa!==null&&(xa.$$typeof===ga||xa.$$typeof===ha||xa.$$typeof===sa||xa.$$typeof===la||xa.$$typeof===ua||xa.$$typeof===ma||xa.getModuleId!==void 0)},reactIs_production_min$1.typeOf=va,reactIs_production_min$1}var hasRequiredReactIs$1;function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_production_min$1()),reactIs$1.exports}var reactIsExports$1=requireReactIs$1();function useMemo(ea,na,ra){var oa=reactExports.useRef({});return(!("value"in oa.current)||ra(oa.current.condition,na))&&(oa.current.value=ea(),oa.current.condition=na),oa.current.value}var REACT_ELEMENT_TYPE_18=Symbol.for("react.element"),REACT_ELEMENT_TYPE_19=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function isFragment(ea){return ea&&_typeof$3(ea)==="object"&&(ea.$$typeof===REACT_ELEMENT_TYPE_18||ea.$$typeof===REACT_ELEMENT_TYPE_19)&&ea.type===REACT_FRAGMENT_TYPE}var ReactMajorVersion=Number(reactExports.version.split(".")[0]),fillRef=function(na,ra){typeof na=="function"?na(ra):_typeof$3(na)==="object"&&na&&"current"in na&&(na.current=ra)},composeRef=function(){for(var na=arguments.length,ra=new Array(na),oa=0;oa<na;oa++)ra[oa]=arguments[oa];var aa=ra.filter(Boolean);return aa.length<=1?aa[0]:function(sa){ra.forEach(function(la){fillRef(la,sa)})}},useComposeRef=function(){for(var na=arguments.length,ra=new Array(na),oa=0;oa<na;oa++)ra[oa]=arguments[oa];return useMemo(function(){return composeRef.apply(void 0,ra)},ra,function(aa,sa){return aa.length!==sa.length||aa.every(function(la,ca){return la!==sa[ca]})})},supportRef=function(na){var ra,oa;if(!na)return!1;if(isReactElement(na)&&ReactMajorVersion>=19)return!0;var aa=reactIsExports$1.isMemo(na)?na.type.type:na.type;return!(typeof aa=="function"&&!((ra=aa.prototype)!==null&&ra!==void 0&&ra.render)&&aa.$$typeof!==reactIsExports$1.ForwardRef||typeof na=="function"&&!((oa=na.prototype)!==null&&oa!==void 0&&oa.render)&&na.$$typeof!==reactIsExports$1.ForwardRef)};function isReactElement(ea){return reactExports.isValidElement(ea)&&!isFragment(ea)}var getNodeRef=function(na){if(na&&isReactElement(na)){var ra=na;return ra.props.propertyIsEnumerable("ref")?ra.props.ref:ra.ref}return null},TransBtn=function(na){var ra=na.className,oa=na.customizeIcon,aa=na.customizeIconProps,sa=na.children,la=na.onMouseDown,ca=na.onClick,ua=typeof oa=="function"?oa(aa):oa;return reactExports.createElement("span",{className:ra,onMouseDown:function(pa){pa.preventDefault(),la?.(pa)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ca,"aria-hidden":!0},ua!==void 0?ua:reactExports.createElement("span",{className:classnames(ra.split(/\s+/).map(function(da){return"".concat(da,"-icon")}))},sa))},useAllowClear=function(na,ra,oa,aa,sa){var la=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ca=arguments.length>6?arguments[6]:void 0,ua=arguments.length>7?arguments[7]:void 0,da=React.useMemo(function(){if(_typeof$3(aa)==="object")return aa.clearIcon;if(sa)return sa},[aa,sa]),pa=React.useMemo(function(){return!!(!la&&aa&&(oa.length||ca)&&!(ua==="combobox"&&ca===""))},[aa,la,oa.length,ca,ua]);return{allowClear:pa,clearIcon:React.createElement(TransBtn,{className:"".concat(na,"-clear"),onMouseDown:ra,customizeIcon:da},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,na=reactExports.useState(!1),ra=_slicedToArray(na,2),oa=ra[0],aa=ra[1],sa=reactExports.useRef(null),la=function(){window.clearTimeout(sa.current)};reactExports.useEffect(function(){return la},[]);var ca=function(da,pa){la(),sa.current=window.setTimeout(function(){aa(da),pa&&pa()},ea)};return[oa,ca,la]}function useLock(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,na=reactExports.useRef(null),ra=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(ra.current)}},[]);function oa(aa){(aa||na.current===null)&&(na.current=aa),window.clearTimeout(ra.current),ra.current=window.setTimeout(function(){na.current=null},ea)}return[function(){return na.current},oa]}function useSelectTriggerControl(ea,na,ra,oa){var aa=reactExports.useRef(null);aa.current={open:na,triggerOpen:ra,customizedTrigger:oa},reactExports.useEffect(function(){function sa(la){var ca;if(!((ca=aa.current)!==null&&ca!==void 0&&ca.customizedTrigger)){var ua=la.target;ua.shadowRoot&&la.composed&&(ua=la.composedPath()[0]||ua),aa.current.open&&ea().filter(function(da){return da}).every(function(da){return!da.contains(ua)&&da!==ua})&&aa.current.triggerOpen(!1)}}return window.addEventListener("mousedown",sa),function(){return window.removeEventListener("mousedown",sa)}},[])}var KeyCode={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function isValidateOpenKey(ea){return ea&&![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(ea)}var attributes=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,eventsName=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(ea,na){return ea.indexOf(na)===0}function pickAttrs(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ra;na===!1?ra={aria:!0,data:!0,attr:!0}:na===!0?ra={aria:!0}:ra=_objectSpread2$1({},na);var oa={};return Object.keys(ea).forEach(function(aa){(ra.aria&&(aa==="role"||match$1(aa,ariaPrefix))||ra.data&&match$1(aa,dataPrefix)||ra.attr&&propList.includes(aa))&&(oa[aa]=ea[aa])}),oa}function toArray$4(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=[];return React.Children.forEach(ea,function(oa){oa==null&&!na.keepEmpty||(Array.isArray(oa)?ra=ra.concat(toArray$4(oa)):isFragment(oa)&&oa.props?ra=ra.concat(toArray$4(oa.props.children,na)):ra.push(oa))}),ra}function isDOM(ea){return ea instanceof HTMLElement||ea instanceof SVGElement}function getDOM(ea){return ea&&_typeof$3(ea)==="object"&&isDOM(ea.nativeElement)?ea.nativeElement:isDOM(ea)?ea:null}function findDOMNode(ea){var na=getDOM(ea);if(na)return na;if(ea instanceof React.Component){var ra;return(ra=ReactDOM.findDOMNode)===null||ra===void 0?void 0:ra.call(ReactDOM,ea)}return null}var CollectionContext=reactExports.createContext(null);function Collection(ea){var na=ea.children,ra=ea.onBatchResize,oa=reactExports.useRef(0),aa=reactExports.useRef([]),sa=reactExports.useContext(CollectionContext),la=reactExports.useCallback(function(ca,ua,da){oa.current+=1;var pa=oa.current;aa.current.push({size:ca,element:ua,data:da}),Promise.resolve().then(function(){pa===oa.current&&(ra?.(aa.current),aa.current=[])}),sa?.(ca,ua,da)},[ra,sa]);return reactExports.createElement(CollectionContext.Provider,{value:la},na)}var MapShim=function(){if(typeof Map<"u")return Map;function ea(na,ra){var oa=-1;return na.some(function(aa,sa){return aa[0]===ra?(oa=sa,!0):!1}),oa}return function(){function na(){this.__entries__=[]}return Object.defineProperty(na.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),na.prototype.get=function(ra){var oa=ea(this.__entries__,ra),aa=this.__entries__[oa];return aa&&aa[1]},na.prototype.set=function(ra,oa){var aa=ea(this.__entries__,ra);~aa?this.__entries__[aa][1]=oa:this.__entries__.push([ra,oa])},na.prototype.delete=function(ra){var oa=this.__entries__,aa=ea(oa,ra);~aa&&oa.splice(aa,1)},na.prototype.has=function(ra){return!!~ea(this.__entries__,ra)},na.prototype.clear=function(){this.__entries__.splice(0)},na.prototype.forEach=function(ra,oa){oa===void 0&&(oa=null);for(var aa=0,sa=this.__entries__;aa<sa.length;aa++){var la=sa[aa];ra.call(oa,la[1],la[0])}},na}()}(),isBrowser$1=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(ea){return setTimeout(function(){return ea(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$2(ea,na){var ra=!1,oa=!1,aa=0;function sa(){ra&&(ra=!1,ea()),oa&&ca()}function la(){requestAnimationFrame$1$1(sa)}function ca(){var ua=Date.now();if(ra){if(ua-aa<trailingTimeout)return;oa=!0}else ra=!0,oa=!1,setTimeout(la,na);aa=ua}return ca}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function ea(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$2(this.refresh.bind(this),REFRESH_DELAY)}return ea.prototype.addObserver=function(na){~this.observers_.indexOf(na)||this.observers_.push(na),this.connected_||this.connect_()},ea.prototype.removeObserver=function(na){var ra=this.observers_,oa=ra.indexOf(na);~oa&&ra.splice(oa,1),!ra.length&&this.connected_&&this.disconnect_()},ea.prototype.refresh=function(){var na=this.updateObservers_();na&&this.refresh()},ea.prototype.updateObservers_=function(){var na=this.observers_.filter(function(ra){return ra.gatherActive(),ra.hasActive()});return na.forEach(function(ra){return ra.broadcastActive()}),na.length>0},ea.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ea.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ea.prototype.onTransitionEnd_=function(na){var ra=na.propertyName,oa=ra===void 0?"":ra,aa=transitionKeys.some(function(sa){return!!~oa.indexOf(sa)});aa&&this.refresh()},ea.getInstance=function(){return this.instance_||(this.instance_=new ea),this.instance_},ea.instance_=null,ea}(),defineConfigurable=function(ea,na){for(var ra=0,oa=Object.keys(na);ra<oa.length;ra++){var aa=oa[ra];Object.defineProperty(ea,aa,{value:na[aa],enumerable:!1,writable:!1,configurable:!0})}return ea},getWindowOf=function(ea){var na=ea&&ea.ownerDocument&&ea.ownerDocument.defaultView;return na||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(ea){return parseFloat(ea)||0}function getBordersSize(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];return na.reduce(function(oa,aa){var sa=ea["border-"+aa+"-width"];return oa+toFloat(sa)},0)}function getPaddings(ea){for(var na=["top","right","bottom","left"],ra={},oa=0,aa=na;oa<aa.length;oa++){var sa=aa[oa],la=ea["padding-"+sa];ra[sa]=toFloat(la)}return ra}function getSVGContentRect(ea){var na=ea.getBBox();return createRectInit(0,0,na.width,na.height)}function getHTMLElementContentRect(ea){var na=ea.clientWidth,ra=ea.clientHeight;if(!na&&!ra)return emptyRect;var oa=getWindowOf(ea).getComputedStyle(ea),aa=getPaddings(oa),sa=aa.left+aa.right,la=aa.top+aa.bottom,ca=toFloat(oa.width),ua=toFloat(oa.height);if(oa.boxSizing==="border-box"&&(Math.round(ca+sa)!==na&&(ca-=getBordersSize(oa,"left","right")+sa),Math.round(ua+la)!==ra&&(ua-=getBordersSize(oa,"top","bottom")+la)),!isDocumentElement(ea)){var da=Math.round(ca+sa)-na,pa=Math.round(ua+la)-ra;Math.abs(da)!==1&&(ca-=da),Math.abs(pa)!==1&&(ua-=pa)}return createRectInit(aa.left,aa.top,ca,ua)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(ea){return ea instanceof getWindowOf(ea).SVGGraphicsElement}:function(ea){return ea instanceof getWindowOf(ea).SVGElement&&typeof ea.getBBox=="function"}}();function isDocumentElement(ea){return ea===getWindowOf(ea).document.documentElement}function getContentRect(ea){return isBrowser$1?isSVGGraphicsElement(ea)?getSVGContentRect(ea):getHTMLElementContentRect(ea):emptyRect}function createReadOnlyRect(ea){var na=ea.x,ra=ea.y,oa=ea.width,aa=ea.height,sa=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,la=Object.create(sa.prototype);return defineConfigurable(la,{x:na,y:ra,width:oa,height:aa,top:ra,right:na+oa,bottom:aa+ra,left:na}),la}function createRectInit(ea,na,ra,oa){return{x:ea,y:na,width:ra,height:oa}}var ResizeObservation=function(){function ea(na){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=na}return ea.prototype.isActive=function(){var na=getContentRect(this.target);return this.contentRect_=na,na.width!==this.broadcastWidth||na.height!==this.broadcastHeight},ea.prototype.broadcastRect=function(){var na=this.contentRect_;return this.broadcastWidth=na.width,this.broadcastHeight=na.height,na},ea}(),ResizeObserverEntry=function(){function ea(na,ra){var oa=createReadOnlyRect(ra);defineConfigurable(this,{target:na,contentRect:oa})}return ea}(),ResizeObserverSPI=function(){function ea(na,ra,oa){if(this.activeObservations_=[],this.observations_=new MapShim,typeof na!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=na,this.controller_=ra,this.callbackCtx_=oa}return ea.prototype.observe=function(na){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(na instanceof getWindowOf(na).Element))throw new TypeError('parameter 1 is not of type "Element".');var ra=this.observations_;ra.has(na)||(ra.set(na,new ResizeObservation(na)),this.controller_.addObserver(this),this.controller_.refresh())}},ea.prototype.unobserve=function(na){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(na instanceof getWindowOf(na).Element))throw new TypeError('parameter 1 is not of type "Element".');var ra=this.observations_;ra.has(na)&&(ra.delete(na),ra.size||this.controller_.removeObserver(this))}},ea.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ea.prototype.gatherActive=function(){var na=this;this.clearActive(),this.observations_.forEach(function(ra){ra.isActive()&&na.activeObservations_.push(ra)})},ea.prototype.broadcastActive=function(){if(this.hasActive()){var na=this.callbackCtx_,ra=this.activeObservations_.map(function(oa){return new ResizeObserverEntry(oa.target,oa.broadcastRect())});this.callback_.call(na,ra,na),this.clearActive()}},ea.prototype.clearActive=function(){this.activeObservations_.splice(0)},ea.prototype.hasActive=function(){return this.activeObservations_.length>0},ea}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function ea(na){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ra=ResizeObserverController.getInstance(),oa=new ResizeObserverSPI(na,ra,this);observers.set(this,oa)}return ea}();["observe","unobserve","disconnect"].forEach(function(ea){ResizeObserver$2.prototype[ea]=function(){var na;return(na=observers.get(this))[ea].apply(na,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(ea){ea.forEach(function(na){var ra,oa=na.target;(ra=elementListeners.get(oa))===null||ra===void 0||ra.forEach(function(aa){return aa(oa)})})}var resizeObserver=new index$1(onResize);function observe(ea,na){elementListeners.has(ea)||(elementListeners.set(ea,new Set),resizeObserver.observe(ea)),elementListeners.get(ea).add(na)}function unobserve(ea,na){elementListeners.has(ea)&&(elementListeners.get(ea).delete(na),elementListeners.get(ea).size||(resizeObserver.unobserve(ea),elementListeners.delete(ea)))}function _isNativeReflectConstruct(){try{var ea=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!ea})()}function _createSuper(ea){var na=_isNativeReflectConstruct();return function(){var ra,oa=_getPrototypeOf$1(ea);if(na){var aa=_getPrototypeOf$1(this).constructor;ra=Reflect.construct(oa,arguments,aa)}else ra=oa.apply(this,arguments);return _possibleConstructorReturn$1(this,ra)}}var DomWrapper$1=function(ea){_inherits$1(ra,ea);var na=_createSuper(ra);function ra(){return _classCallCheck$2(this,ra),na.apply(this,arguments)}return _createClass$2(ra,[{key:"render",value:function(){return this.props.children}}]),ra}(reactExports.Component);function SingleObserver(ea,na){var ra=ea.children,oa=ea.disabled,aa=reactExports.useRef(null),sa=reactExports.useRef(null),la=reactExports.useContext(CollectionContext),ca=typeof ra=="function",ua=ca?ra(aa):ra,da=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),pa=!ca&&reactExports.isValidElement(ua)&&supportRef(ua),ha=pa?getNodeRef(ua):null,ga=useComposeRef(ha,aa),fa=function(){var ya;return findDOMNode(aa.current)||(aa.current&&_typeof$3(aa.current)==="object"?findDOMNode((ya=aa.current)===null||ya===void 0?void 0:ya.nativeElement):null)||findDOMNode(sa.current)};reactExports.useImperativeHandle(na,function(){return fa()});var ma=reactExports.useRef(ea);ma.current=ea;var va=reactExports.useCallback(function(xa){var ya=ma.current,Aa=ya.onResize,Ca=ya.data,Sa=xa.getBoundingClientRect(),wa=Sa.width,ba=Sa.height,Ea=xa.offsetWidth,$a=xa.offsetHeight,Ma=Math.floor(wa),Ia=Math.floor(ba);if(da.current.width!==Ma||da.current.height!==Ia||da.current.offsetWidth!==Ea||da.current.offsetHeight!==$a){var Oa={width:Ma,height:Ia,offsetWidth:Ea,offsetHeight:$a};da.current=Oa;var Da=Ea===Math.round(wa)?wa:Ea,Ta=$a===Math.round(ba)?ba:$a,_a=_objectSpread2$1(_objectSpread2$1({},Oa),{},{offsetWidth:Da,offsetHeight:Ta});la?.(_a,xa,Ca),Aa&&Promise.resolve().then(function(){Aa(_a,xa)})}},[]);return reactExports.useEffect(function(){var xa=fa();return xa&&!oa&&observe(xa,va),function(){return unobserve(xa,va)}},[aa.current,oa]),reactExports.createElement(DomWrapper$1,{ref:sa},pa?reactExports.cloneElement(ua,{ref:ga}):ua)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(ea,na){var ra=ea.children,oa=typeof ra=="function"?[ra]:toArray$4(ra);return oa.map(function(aa,sa){var la=aa?.key||"".concat(INTERNAL_PREFIX_KEY,"-").concat(sa);return reactExports.createElement(RefSingleObserver,_extends$5({},ea,{key:la,ref:sa===0?na:void 0}),aa)})}var RefResizeObserver=reactExports.forwardRef(ResizeObserver$1);RefResizeObserver.Collection=Collection;var _excluded$b=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED$1=void 0;function InternalItem(ea,na){var ra=ea.prefixCls,oa=ea.invalidate,aa=ea.item,sa=ea.renderItem,la=ea.responsive,ca=ea.responsiveDisabled,ua=ea.registerSize,da=ea.itemKey,pa=ea.className,ha=ea.style,ga=ea.children,fa=ea.display,ma=ea.order,va=ea.component,xa=va===void 0?"div":va,ya=_objectWithoutProperties$1(ea,_excluded$b),Aa=la&&!fa;function Ca($a){ua(da,$a)}reactExports.useEffect(function(){return function(){Ca(null)}},[]);var Sa=sa&&aa!==UNDEFINED$1?sa(aa,{index:ma}):ga,wa;oa||(wa={opacity:Aa?0:1,height:Aa?0:UNDEFINED$1,overflowY:Aa?"hidden":UNDEFINED$1,order:la?ma:UNDEFINED$1,pointerEvents:Aa?"none":UNDEFINED$1,position:Aa?"absolute":UNDEFINED$1});var ba={};Aa&&(ba["aria-hidden"]=!0);var Ea=reactExports.createElement(xa,_extends$5({className:classnames(!oa&&ra,pa),style:_objectSpread2$1(_objectSpread2$1({},wa),ha)},ba,ya,{ref:na}),Sa);return la&&(Ea=reactExports.createElement(RefResizeObserver,{onResize:function(Ma){var Ia=Ma.offsetWidth;Ca(Ia)},disabled:ca},Ea)),Ea}var Item$1=reactExports.forwardRef(InternalItem);Item$1.displayName="Item";var raf$1=function(na){return+setTimeout(na,16)},caf=function(na){return clearTimeout(na)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$1=function(na){return window.requestAnimationFrame(na)},caf=function(na){return window.cancelAnimationFrame(na)});var rafUUID=0,rafIds=new Map;function cleanup(ea){rafIds.delete(ea)}var wrapperRaf=function(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var oa=rafUUID;function aa(sa){if(sa===0)cleanup(oa),na();else{var la=raf$1(function(){aa(sa-1)});rafIds.set(oa,la)}}return aa(ra),oa};wrapperRaf.cancel=function(ea){var na=rafIds.get(ea);return cleanup(ea),caf(na)};function channelUpdate(ea){if(typeof MessageChannel>"u")wrapperRaf(ea);else{var na=new MessageChannel;na.port1.onmessage=function(){return ea()},na.port2.postMessage(void 0)}}function useBatcher(){var ea=reactExports.useRef(null),na=function(oa){ea.current||(ea.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){ea.current.forEach(function(aa){aa()}),ea.current=null})})),ea.current.push(oa)};return na}function useEffectState(ea,na){var ra=reactExports.useState(na),oa=_slicedToArray(ra,2),aa=oa[0],sa=oa[1],la=useEvent$1(function(ca){ea(function(){sa(ca)})});return[aa,la]}var OverflowContext=React.createContext(null),_excluded$a=["component"],_excluded2$2=["className"],_excluded3=["className"],InternalRawItem=function(na,ra){var oa=reactExports.useContext(OverflowContext);if(!oa){var aa=na.component,sa=aa===void 0?"div":aa,la=_objectWithoutProperties$1(na,_excluded$a);return reactExports.createElement(sa,_extends$5({},la,{ref:ra}))}var ca=oa.className,ua=_objectWithoutProperties$1(oa,_excluded2$2),da=na.className,pa=_objectWithoutProperties$1(na,_excluded3);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$1,_extends$5({ref:ra,className:classnames(ca,da)},ua,pa)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$9=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(ea){return"+ ".concat(ea.length," ...")}function Overflow(ea,na){var ra=ea.prefixCls,oa=ra===void 0?"rc-overflow":ra,aa=ea.data,sa=aa===void 0?[]:aa,la=ea.renderItem,ca=ea.renderRawItem,ua=ea.itemKey,da=ea.itemWidth,pa=da===void 0?10:da,ha=ea.ssr,ga=ea.style,fa=ea.className,ma=ea.maxCount,va=ea.renderRest,xa=ea.renderRawRest,ya=ea.suffix,Aa=ea.component,Ca=Aa===void 0?"div":Aa,Sa=ea.itemComponent,wa=ea.onVisibleChange,ba=_objectWithoutProperties$1(ea,_excluded$9),Ea=ha==="full",$a=useBatcher(),Ma=useEffectState($a,null),Ia=_slicedToArray(Ma,2),Oa=Ia[0],Da=Ia[1],Ta=Oa||0,_a=useEffectState($a,new Map),La=_slicedToArray(_a,2),Na=La[0],za=La[1],Fa=useEffectState($a,0),Ha=_slicedToArray(Fa,2),Va=Ha[0],Ua=Ha[1],Qa=useEffectState($a,0),Wa=_slicedToArray(Qa,2),Za=Wa[0],Xa=Wa[1],tl=useEffectState($a,0),il=_slicedToArray(tl,2),Ja=il[0],nl=il[1],Ya=reactExports.useState(null),rl=_slicedToArray(Ya,2),sl=rl[0],dl=rl[1],pl=reactExports.useState(null),ml=_slicedToArray(pl,2),Rl=ml[0],Tl=ml[1],Il=reactExports.useMemo(function(){return Rl===null&&Ea?Number.MAX_SAFE_INTEGER:Rl||0},[Rl,Oa]),Ol=reactExports.useState(!1),Fl=_slicedToArray(Ol,2),Vl=Fl[0],Wl=Fl[1],vl="".concat(oa,"-item"),kl=Math.max(Va,Za),zl=ma===RESPONSIVE,Al=sa.length&&zl,gl=ma===INVALIDATE,xl=Al||typeof ma=="number"&&sa.length>ma,Sl=reactExports.useMemo(function(){var ac=sa;return Al?Oa===null&&Ea?ac=sa:ac=sa.slice(0,Math.min(sa.length,Ta/pa)):typeof ma=="number"&&(ac=sa.slice(0,ma)),ac},[sa,pa,Oa,ma,Al]),$l=reactExports.useMemo(function(){return Al?sa.slice(Il+1):sa.slice(Sl.length)},[sa,Sl,Al,Il]),Bl=reactExports.useCallback(function(ac,sc){var dc;return typeof ua=="function"?ua(ac):(dc=ua&&ac?.[ua])!==null&&dc!==void 0?dc:sc},[ua]),Ul=reactExports.useCallback(la||function(ac){return ac},[la]);function ec(ac,sc,dc){Rl===ac&&(sc===void 0||sc===sl)||(Tl(ac),dc||(Wl(ac<sa.length-1),wa?.(ac)),sc!==void 0&&dl(sc))}function Kl(ac,sc){Da(sc.clientWidth)}function rc(ac,sc){za(function(dc){var Pc=new Map(dc);return sc===null?Pc.delete(ac):Pc.set(ac,sc),Pc})}function wl(ac,sc){Xa(sc),Ua(Za)}function Ll(ac,sc){nl(sc)}function ic(ac){return Na.get(Bl(Sl[ac],ac))}useLayoutEffect$1(function(){if(Ta&&typeof kl=="number"&&Sl){var ac=Ja,sc=Sl.length,dc=sc-1;if(!sc){ec(0,null);return}for(var Pc=0;Pc<sc;Pc+=1){var qc=ic(Pc);if(Ea&&(qc=qc||0),qc===void 0){ec(Pc-1,void 0,!0);break}if(ac+=qc,dc===0&&ac<=Ta||Pc===dc-1&&ac+ic(dc)<=Ta){ec(dc,null);break}else if(ac+kl>Ta){ec(Pc-1,ac-qc-Ja+Za);break}}ya&&ic(0)+Ja>Ta&&dl(null)}},[Ta,Na,Za,Ja,Bl,Sl]);var Yl=Vl&&!!$l.length,gc={};sl!==null&&Al&&(gc={position:"absolute",left:sl,top:0});var Rc={prefixCls:vl,responsive:Al,component:Sa,invalidate:gl},Ic=ca?function(ac,sc){var dc=Bl(ac,sc);return reactExports.createElement(OverflowContext.Provider,{key:dc,value:_objectSpread2$1(_objectSpread2$1({},Rc),{},{order:sc,item:ac,itemKey:dc,registerSize:rc,display:sc<=Il})},ca(ac,sc))}:function(ac,sc){var dc=Bl(ac,sc);return reactExports.createElement(Item$1,_extends$5({},Rc,{order:sc,key:dc,item:ac,renderItem:Ul,itemKey:dc,registerSize:rc,display:sc<=Il}))},bc={order:Yl?Il:Number.MAX_SAFE_INTEGER,className:"".concat(vl,"-rest"),registerSize:wl,display:Yl},kc=va||defaultRenderRest,Kc=xa?reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},Rc),bc)},xa($l)):reactExports.createElement(Item$1,_extends$5({},Rc,bc),typeof kc=="function"?kc($l):kc),Tc=reactExports.createElement(Ca,_extends$5({className:classnames(!gl&&oa,fa),style:ga,ref:na},ba),Sl.map(Ic),xl?Kc:null,ya&&reactExports.createElement(Item$1,_extends$5({},Rc,{responsive:zl,responsiveDisabled:!Al,order:Il,className:"".concat(vl,"-suffix"),registerSize:Ll,display:!0,style:gc}),ya));return zl?reactExports.createElement(RefResizeObserver,{onResize:Kl,disabled:!Al},Tc):Tc}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$3=function(na,ra){var oa,aa=na.prefixCls,sa=na.id,la=na.inputElement,ca=na.disabled,ua=na.tabIndex,da=na.autoFocus,pa=na.autoComplete,ha=na.editable,ga=na.activeDescendantId,fa=na.value,ma=na.maxLength,va=na.onKeyDown,xa=na.onMouseDown,ya=na.onChange,Aa=na.onPaste,Ca=na.onCompositionStart,Sa=na.onCompositionEnd,wa=na.onBlur,ba=na.open,Ea=na.attrs,$a=la||reactExports.createElement("input",null),Ma=$a,Ia=Ma.ref,Oa=Ma.props,Da=Oa.onKeyDown,Ta=Oa.onChange,_a=Oa.onMouseDown,La=Oa.onCompositionStart,Na=Oa.onCompositionEnd,za=Oa.onBlur,Fa=Oa.style;return"maxLength"in $a.props,$a=reactExports.cloneElement($a,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({type:"search"},Oa),{},{id:sa,ref:composeRef(ra,Ia),disabled:ca,tabIndex:ua,autoComplete:pa||"off",autoFocus:da,className:classnames("".concat(aa,"-selection-search-input"),(oa=$a)===null||oa===void 0||(oa=oa.props)===null||oa===void 0?void 0:oa.className),role:"combobox","aria-expanded":ba||!1,"aria-haspopup":"listbox","aria-owns":"".concat(sa,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(sa,"_list"),"aria-activedescendant":ba?ga:void 0},Ea),{},{value:ha?fa:"",maxLength:ma,readOnly:!ha,unselectable:ha?null:"on",style:_objectSpread2$1(_objectSpread2$1({},Fa),{},{opacity:ha?null:0}),onKeyDown:function(Va){va(Va),Da&&Da(Va)},onMouseDown:function(Va){xa(Va),_a&&_a(Va)},onChange:function(Va){ya(Va),Ta&&Ta(Va)},onCompositionStart:function(Va){Ca(Va),La&&La(Va)},onCompositionEnd:function(Va){Sa(Va),Na&&Na(Va)},onPaste:Aa,onBlur:function(Va){wa(Va),za&&za(Va)}})),$a},RefInput=reactExports.forwardRef(Input$3);function toArray$3(ea){return Array.isArray(ea)?ea:ea!==void 0?[ea]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$1=isClient;function hasValue(ea){return ea!=null}function isComboNoValue(ea){return!ea&&ea!==0}function isTitleType$1(ea){return["string","number"].includes(_typeof$3(ea))}function getTitle(ea){var na=void 0;return ea&&(isTitleType$1(ea.title)?na=ea.title.toString():isTitleType$1(ea.label)&&(na=ea.label.toString())),na}function useLayoutEffect(ea,na){isBrowserClient$1?reactExports.useLayoutEffect(ea,na):reactExports.useEffect(ea,na)}function itemKey(ea){var na;return(na=ea.key)!==null&&na!==void 0?na:ea.value}var onPreventMouseDown=function(na){na.preventDefault(),na.stopPropagation()},SelectSelector=function(na){var ra=na.id,oa=na.prefixCls,aa=na.values,sa=na.open,la=na.searchValue,ca=na.autoClearSearchValue,ua=na.inputRef,da=na.placeholder,pa=na.disabled,ha=na.mode,ga=na.showSearch,fa=na.autoFocus,ma=na.autoComplete,va=na.activeDescendantId,xa=na.tabIndex,ya=na.removeIcon,Aa=na.maxTagCount,Ca=na.maxTagTextLength,Sa=na.maxTagPlaceholder,wa=Sa===void 0?function(pl){return"+ ".concat(pl.length," ...")}:Sa,ba=na.tagRender,Ea=na.onToggleOpen,$a=na.onRemove,Ma=na.onInputChange,Ia=na.onInputPaste,Oa=na.onInputKeyDown,Da=na.onInputMouseDown,Ta=na.onInputCompositionStart,_a=na.onInputCompositionEnd,La=na.onInputBlur,Na=reactExports.useRef(null),za=reactExports.useState(0),Fa=_slicedToArray(za,2),Ha=Fa[0],Va=Fa[1],Ua=reactExports.useState(!1),Qa=_slicedToArray(Ua,2),Wa=Qa[0],Za=Qa[1],Xa="".concat(oa,"-selection"),tl=sa||ha==="multiple"&&ca===!1||ha==="tags"?la:"",il=ha==="tags"||ha==="multiple"&&ca===!1||ga&&(sa||Wa);useLayoutEffect(function(){Va(Na.current.scrollWidth)},[tl]);var Ja=function(ml,Rl,Tl,Il,Ol){return reactExports.createElement("span",{title:getTitle(ml),className:classnames("".concat(Xa,"-item"),_defineProperty$8({},"".concat(Xa,"-item-disabled"),Tl))},reactExports.createElement("span",{className:"".concat(Xa,"-item-content")},Rl),Il&&reactExports.createElement(TransBtn,{className:"".concat(Xa,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Ol,customizeIcon:ya},"×"))},nl=function(ml,Rl,Tl,Il,Ol,Fl){var Vl=function(vl){onPreventMouseDown(vl),Ea(!sa)};return reactExports.createElement("span",{onMouseDown:Vl},ba({label:Rl,value:ml,disabled:Tl,closable:Il,onClose:Ol,isMaxTag:!!Fl}))},Ya=function(ml){var Rl=ml.disabled,Tl=ml.label,Il=ml.value,Ol=!pa&&!Rl,Fl=Tl;if(typeof Ca=="number"&&(typeof Tl=="string"||typeof Tl=="number")){var Vl=String(Fl);Vl.length>Ca&&(Fl="".concat(Vl.slice(0,Ca),"..."))}var Wl=function(kl){kl&&kl.stopPropagation(),$a(ml)};return typeof ba=="function"?nl(Il,Fl,Rl,Ol,Wl):Ja(ml,Fl,Rl,Ol,Wl)},rl=function(ml){if(!aa.length)return null;var Rl=typeof wa=="function"?wa(ml):wa;return typeof ba=="function"?nl(void 0,Rl,!1,!1,void 0,!0):Ja({title:Rl},Rl,!1)},sl=reactExports.createElement("div",{className:"".concat(Xa,"-search"),style:{width:Ha},onFocus:function(){Za(!0)},onBlur:function(){Za(!1)}},reactExports.createElement(RefInput,{ref:ua,open:sa,prefixCls:oa,id:ra,inputElement:null,disabled:pa,autoFocus:fa,autoComplete:ma,editable:il,activeDescendantId:va,value:tl,onKeyDown:Oa,onMouseDown:Da,onChange:Ma,onPaste:Ia,onCompositionStart:Ta,onCompositionEnd:_a,onBlur:La,tabIndex:xa,attrs:pickAttrs(na,!0)}),reactExports.createElement("span",{ref:Na,className:"".concat(Xa,"-search-mirror"),"aria-hidden":!0},tl," ")),dl=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Xa,"-overflow"),data:aa,renderItem:Ya,renderRest:rl,suffix:sl,itemKey,maxCount:Aa});return reactExports.createElement("span",{className:"".concat(Xa,"-wrap")},dl,!aa.length&&!tl&&reactExports.createElement("span",{className:"".concat(Xa,"-placeholder")},da))},SingleSelector=function(na){var ra=na.inputElement,oa=na.prefixCls,aa=na.id,sa=na.inputRef,la=na.disabled,ca=na.autoFocus,ua=na.autoComplete,da=na.activeDescendantId,pa=na.mode,ha=na.open,ga=na.values,fa=na.placeholder,ma=na.tabIndex,va=na.showSearch,xa=na.searchValue,ya=na.activeValue,Aa=na.maxLength,Ca=na.onInputKeyDown,Sa=na.onInputMouseDown,wa=na.onInputChange,ba=na.onInputPaste,Ea=na.onInputCompositionStart,$a=na.onInputCompositionEnd,Ma=na.onInputBlur,Ia=na.title,Oa=reactExports.useState(!1),Da=_slicedToArray(Oa,2),Ta=Da[0],_a=Da[1],La=pa==="combobox",Na=La||va,za=ga[0],Fa=xa||"";La&&ya&&!Ta&&(Fa=ya),reactExports.useEffect(function(){La&&_a(!1)},[La,ya]);var Ha=pa!=="combobox"&&!ha&&!va?!1:!!Fa,Va=Ia===void 0?getTitle(za):Ia,Ua=reactExports.useMemo(function(){return za?null:reactExports.createElement("span",{className:"".concat(oa,"-selection-placeholder"),style:Ha?{visibility:"hidden"}:void 0},fa)},[za,Ha,fa,oa]);return reactExports.createElement("span",{className:"".concat(oa,"-selection-wrap")},reactExports.createElement("span",{className:"".concat(oa,"-selection-search")},reactExports.createElement(RefInput,{ref:sa,prefixCls:oa,id:aa,open:ha,inputElement:ra,disabled:la,autoFocus:ca,autoComplete:ua,editable:Na,activeDescendantId:da,value:Fa,onKeyDown:Ca,onMouseDown:Sa,onChange:function(Wa){_a(!0),wa(Wa)},onPaste:ba,onCompositionStart:Ea,onCompositionEnd:$a,onBlur:Ma,tabIndex:ma,attrs:pickAttrs(na,!0),maxLength:La?Aa:void 0})),!La&&za?reactExports.createElement("span",{className:"".concat(oa,"-selection-item"),title:Va,style:Ha?{visibility:"hidden"}:void 0},za.label):null,Ua)},Selector=function(na,ra){var oa=reactExports.useRef(null),aa=reactExports.useRef(!1),sa=na.prefixCls,la=na.open,ca=na.mode,ua=na.showSearch,da=na.tokenWithEnter,pa=na.disabled,ha=na.prefix,ga=na.autoClearSearchValue,fa=na.onSearch,ma=na.onSearchSubmit,va=na.onToggleOpen,xa=na.onInputKeyDown,ya=na.onInputBlur,Aa=na.domRef;reactExports.useImperativeHandle(ra,function(){return{focus:function(Va){oa.current.focus(Va)},blur:function(){oa.current.blur()}}});var Ca=useLock(0),Sa=_slicedToArray(Ca,2),wa=Sa[0],ba=Sa[1],Ea=function(Va){var Ua=Va.which,Qa=oa.current instanceof HTMLTextAreaElement;!Qa&&la&&(Ua===KeyCode.UP||Ua===KeyCode.DOWN)&&Va.preventDefault(),xa&&xa(Va),Ua===KeyCode.ENTER&&ca==="tags"&&!aa.current&&!la&&ma?.(Va.target.value),!(Qa&&!la&&~[KeyCode.UP,KeyCode.DOWN,KeyCode.LEFT,KeyCode.RIGHT].indexOf(Ua))&&isValidateOpenKey(Ua)&&va(!0)},$a=function(){ba(!0)},Ma=reactExports.useRef(null),Ia=function(Va){fa(Va,!0,aa.current)!==!1&&va(!0)},Oa=function(){aa.current=!0},Da=function(Va){aa.current=!1,ca!=="combobox"&&Ia(Va.target.value)},Ta=function(Va){var Ua=Va.target.value;if(da&&Ma.current&&/[\r\n]/.test(Ma.current)){var Qa=Ma.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ua=Ua.replace(Qa,Ma.current)}Ma.current=null,Ia(Ua)},_a=function(Va){var Ua=Va.clipboardData,Qa=Ua?.getData("text");Ma.current=Qa||""},La=function(Va){var Ua=Va.target;if(Ua!==oa.current){var Qa=document.body.style.msTouchAction!==void 0;Qa?setTimeout(function(){oa.current.focus()}):oa.current.focus()}},Na=function(Va){var Ua=wa();Va.target!==oa.current&&!Ua&&!(ca==="combobox"&&pa)&&Va.preventDefault(),(ca!=="combobox"&&(!ua||!Ua)||!la)&&(la&&ga!==!1&&fa("",!0,!1),va())},za={inputRef:oa,onInputKeyDown:Ea,onInputMouseDown:$a,onInputChange:Ta,onInputPaste:_a,onInputCompositionStart:Oa,onInputCompositionEnd:Da,onInputBlur:ya},Fa=ca==="multiple"||ca==="tags"?reactExports.createElement(SelectSelector,_extends$5({},na,za)):reactExports.createElement(SingleSelector,_extends$5({},na,za));return reactExports.createElement("div",{ref:Aa,className:"".concat(sa,"-selector"),onClick:La,onMouseDown:Na},ha&&reactExports.createElement("div",{className:"".concat(sa,"-prefix")},ha),Fa)},ForwardSelector=reactExports.forwardRef(Selector),OrderContext=reactExports.createContext(null),EMPTY_LIST=[];function useDom(ea,na){var ra=reactExports.useState(function(){if(!canUseDom$1())return null;var ma=document.createElement("div");return ma}),oa=_slicedToArray(ra,1),aa=oa[0],sa=reactExports.useRef(!1),la=reactExports.useContext(OrderContext),ca=reactExports.useState(EMPTY_LIST),ua=_slicedToArray(ca,2),da=ua[0],pa=ua[1],ha=la||(sa.current?void 0:function(ma){pa(function(va){var xa=[ma].concat(_toConsumableArray(va));return xa})});function ga(){aa.parentElement||document.body.appendChild(aa),sa.current=!0}function fa(){var ma;(ma=aa.parentElement)===null||ma===void 0||ma.removeChild(aa),sa.current=!1}return useLayoutEffect$1(function(){return ea?la?la(ga):ga():fa(),fa},[ea]),useLayoutEffect$1(function(){da.length&&(da.forEach(function(ma){return ma()}),pa(EMPTY_LIST))},[da]),[aa,ha]}function contains(ea,na){if(!ea)return!1;if(ea.contains)return ea.contains(na);for(var ra=na;ra;){if(ra===ea)return!0;ra=ra.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},na=ea.mark;return na?na.startsWith("data-")?na:"data-".concat(na):MARK_KEY}function getContainer$1(ea){if(ea.attachTo)return ea.attachTo;var na=document.querySelector("head");return na||document.body}function getOrder(ea){return ea==="queue"?"prependQueue":ea?"prepend":"append"}function findStyles(ea){return Array.from((containerCache.get(ea)||ea).children).filter(function(na){return na.tagName==="STYLE"})}function injectCSS(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom$1())return null;var ra=na.csp,oa=na.prepend,aa=na.priority,sa=aa===void 0?0:aa,la=getOrder(oa),ca=la==="prependQueue",ua=document.createElement("style");ua.setAttribute(APPEND_ORDER,la),ca&&sa&&ua.setAttribute(APPEND_PRIORITY,"".concat(sa)),ra!=null&&ra.nonce&&(ua.nonce=ra?.nonce),ua.innerHTML=ea;var da=getContainer$1(na),pa=da.firstChild;if(oa){if(ca){var ha=(na.styles||findStyles(da)).filter(function(ga){if(!["prepend","prependQueue"].includes(ga.getAttribute(APPEND_ORDER)))return!1;var fa=Number(ga.getAttribute(APPEND_PRIORITY)||0);return sa>=fa});if(ha.length)return da.insertBefore(ua,ha[ha.length-1].nextSibling),ua}da.insertBefore(ua,pa)}else da.appendChild(ua);return ua}function findExistNode(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=getContainer$1(na);return(na.styles||findStyles(ra)).find(function(oa){return oa.getAttribute(getMark(na))===ea})}function removeCSS(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=findExistNode(ea,na);if(ra){var oa=getContainer$1(na);oa.removeChild(ra)}}function syncRealContainer(ea,na){var ra=containerCache.get(ea);if(!ra||!contains(document,ra)){var oa=injectCSS("",na),aa=oa.parentNode;containerCache.set(ea,aa),ea.removeChild(oa)}}function updateCSS(ea,na){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=getContainer$1(ra),aa=findStyles(oa),sa=_objectSpread2$1(_objectSpread2$1({},ra),{},{styles:aa});syncRealContainer(oa,sa);var la=findExistNode(na,sa);if(la){var ca,ua;if((ca=sa.csp)!==null&&ca!==void 0&&ca.nonce&&la.nonce!==((ua=sa.csp)===null||ua===void 0?void 0:ua.nonce)){var da;la.nonce=(da=sa.csp)===null||da===void 0?void 0:da.nonce}return la.innerHTML!==ea&&(la.innerHTML=ea),la}var pa=injectCSS(ea,sa);return pa.setAttribute(getMark(sa),na),pa}function measureScrollbarSize(ea){var na="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),ra=document.createElement("div");ra.id=na;var oa=ra.style;oa.position="absolute",oa.left="0",oa.top="0",oa.width="100px",oa.height="100px",oa.overflow="scroll";var aa,sa;if(ea){var la=getComputedStyle(ea);oa.scrollbarColor=la.scrollbarColor,oa.scrollbarWidth=la.scrollbarWidth;var ca=getComputedStyle(ea,"::-webkit-scrollbar"),ua=parseInt(ca.width,10),da=parseInt(ca.height,10);try{var pa=ua?"width: ".concat(ca.width,";"):"",ha=da?"height: ".concat(ca.height,";"):"";updateCSS(`
#`.concat(na,`::-webkit-scrollbar {
`).concat(pa,`
`).concat(ha,`
}`),na)}catch(ma){console.error(ma),aa=ua,sa=da}}document.body.appendChild(ra);var ga=ea&&aa&&!isNaN(aa)?aa:ra.offsetWidth-ra.clientWidth,fa=ea&&sa&&!isNaN(sa)?sa:ra.offsetHeight-ra.clientHeight;return document.body.removeChild(ra),removeCSS(na),{width:ga,height:fa}}function getTargetScrollBarSize(ea){return typeof document>"u"||!ea||!(ea instanceof Element)?{width:0,height:0}:measureScrollbarSize(ea)}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UNIQUE_ID="rc-util-locker-".concat(Date.now()),uuid$3=0;function useScrollLocker(ea){var na=!!ea,ra=reactExports.useState(function(){return uuid$3+=1,"".concat(UNIQUE_ID,"_").concat(uuid$3)}),oa=_slicedToArray(ra,1),aa=oa[0];useLayoutEffect$1(function(){if(na){var sa=getTargetScrollBarSize(document.body).width,la=isBodyOverflowing();updateCSS(`
html body {
  overflow-y: hidden;
  `.concat(la?"width: calc(100% - ".concat(sa,"px);"):"",`
}`),aa)}else removeCSS(aa);return function(){removeCSS(aa)}},[na,aa])}var inline=!1;function inlineMock(ea){return inline}var getPortalContainer=function(na){return na===!1?!1:!canUseDom$1()||!na?null:typeof na=="string"?document.querySelector(na):typeof na=="function"?na():na},Portal=reactExports.forwardRef(function(ea,na){var ra=ea.open,oa=ea.autoLock,aa=ea.getContainer;ea.debug;var sa=ea.autoDestroy,la=sa===void 0?!0:sa,ca=ea.children,ua=reactExports.useState(ra),da=_slicedToArray(ua,2),pa=da[0],ha=da[1],ga=pa||ra;reactExports.useEffect(function(){(la||ra)&&ha(ra)},[ra,la]);var fa=reactExports.useState(function(){return getPortalContainer(aa)}),ma=_slicedToArray(fa,2),va=ma[0],xa=ma[1];reactExports.useEffect(function(){var Oa=getPortalContainer(aa);xa(Oa??null)});var ya=useDom(ga&&!va),Aa=_slicedToArray(ya,2),Ca=Aa[0],Sa=Aa[1],wa=va??Ca;useScrollLocker(oa&&ra&&canUseDom$1()&&(wa===Ca||wa===document.body));var ba=null;if(ca&&supportRef(ca)&&na){var Ea=ca;ba=Ea.ref}var $a=useComposeRef(ba,na);if(!ga||!canUseDom$1()||va===void 0)return null;var Ma=wa===!1||inlineMock(),Ia=ca;return na&&(Ia=reactExports.cloneElement(ca,{ref:$a})),reactExports.createElement(OrderContext.Provider,{value:Sa},Ma?Ia:reactDomExports.createPortal(Ia,wa))});function getRoot(ea){var na;return ea==null||(na=ea.getRootNode)===null||na===void 0?void 0:na.call(ea)}function inShadow(ea){return getRoot(ea)instanceof ShadowRoot}function getShadowRoot$2(ea){return inShadow(ea)?getRoot(ea):null}function getUseId(){var ea=_objectSpread2$1({},React$1);return ea.useId}var uuid$2=0,useOriginId=getUseId();const useId$2=useOriginId?function(na){var ra=useOriginId();return na||ra}:function(na){var ra=reactExports.useState("ssr-id"),oa=_slicedToArray(ra,2),aa=oa[0],sa=oa[1];return reactExports.useEffect(function(){var la=uuid$2;uuid$2+=1,sa("rc_unique_".concat(la))},[]),na||aa};var Context$2=reactExports.createContext({}),DomWrapper=function(ea){_inherits$1(ra,ea);var na=_createSuper(ra);function ra(){return _classCallCheck$2(this,ra),na.apply(this,arguments)}return _createClass$2(ra,[{key:"render",value:function(){return this.props.children}}]),ra}(reactExports.Component);function _toArray(ea){return _arrayWithHoles(ea)||_iterableToArray(ea)||_unsupportedIterableToArray$1(ea)||_nonIterableRest()}function useSyncState(ea){var na=reactExports.useReducer(function(ca){return ca+1},0),ra=_slicedToArray(na,2),oa=ra[1],aa=reactExports.useRef(ea),sa=useEvent$1(function(){return aa.current}),la=useEvent$1(function(ca){aa.current=typeof ca=="function"?ca(aa.current):ca,oa()});return[sa,la]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(ea,na){var ra={};return ra[ea.toLowerCase()]=na.toLowerCase(),ra["Webkit".concat(ea)]="webkit".concat(na),ra["Moz".concat(ea)]="moz".concat(na),ra["ms".concat(ea)]="MS".concat(na),ra["O".concat(ea)]="o".concat(na.toLowerCase()),ra}function getVendorPrefixes(ea,na){var ra={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return ea&&("AnimationEvent"in na||delete ra.animationend.animation,"TransitionEvent"in na||delete ra.transitionend.transition),ra}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(ea){if(prefixedEventNames[ea])return prefixedEventNames[ea];var na=vendorPrefixes[ea];if(na)for(var ra=Object.keys(na),oa=ra.length,aa=0;aa<oa;aa+=1){var sa=ra[aa];if(Object.prototype.hasOwnProperty.call(na,sa)&&sa in style)return prefixedEventNames[ea]=na[sa],prefixedEventNames[ea]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName(ea,na){if(!ea)return null;if(_typeof$3(ea)==="object"){var ra=na.replace(/-\w/g,function(oa){return oa[1].toUpperCase()});return ea[ra]}return"".concat(ea,"-").concat(na)}const useDomMotionEvents=function(ea){var na=reactExports.useRef();function ra(aa){aa&&(aa.removeEventListener(transitionEndName,ea),aa.removeEventListener(animationEndName,ea))}function oa(aa){na.current&&na.current!==aa&&ra(na.current),aa&&aa!==na.current&&(aa.addEventListener(transitionEndName,ea),aa.addEventListener(animationEndName,ea),na.current=aa)}return reactExports.useEffect(function(){return function(){ra(na.current)}},[]),[oa,ra]};var useIsomorphicLayoutEffect$4=canUseDom$1()?reactExports.useLayoutEffect:reactExports.useEffect;const useNextFrame=function(){var ea=reactExports.useRef(null);function na(){wrapperRaf.cancel(ea.current)}function ra(oa){var aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;na();var sa=wrapperRaf(function(){aa<=1?oa({isCanceled:function(){return sa!==ea.current}}):ra(oa,aa-1)});ea.current=sa}return reactExports.useEffect(function(){return function(){na()}},[]),[ra,na]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(ea){return ea===STEP_ACTIVE||ea===STEP_ACTIVATED}const useStepQueue=function(ea,na,ra){var oa=useSafeState(STEP_NONE),aa=_slicedToArray(oa,2),sa=aa[0],la=aa[1],ca=useNextFrame(),ua=_slicedToArray(ca,2),da=ua[0],pa=ua[1];function ha(){la(STEP_PREPARE,!0)}var ga=na?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$4(function(){if(sa!==STEP_NONE&&sa!==STEP_ACTIVATED){var fa=ga.indexOf(sa),ma=ga[fa+1],va=ra(sa);va===SkipStep?la(ma,!0):ma&&da(function(xa){function ya(){xa.isCanceled()||la(ma,!0)}va===!0?ya():Promise.resolve(va).then(ya)})}},[ea,sa]),reactExports.useEffect(function(){return function(){pa()}},[]),[ha,sa]};function useStatus(ea,na,ra,oa){var aa=oa.motionEnter,sa=aa===void 0?!0:aa,la=oa.motionAppear,ca=la===void 0?!0:la,ua=oa.motionLeave,da=ua===void 0?!0:ua,pa=oa.motionDeadline,ha=oa.motionLeaveImmediately,ga=oa.onAppearPrepare,fa=oa.onEnterPrepare,ma=oa.onLeavePrepare,va=oa.onAppearStart,xa=oa.onEnterStart,ya=oa.onLeaveStart,Aa=oa.onAppearActive,Ca=oa.onEnterActive,Sa=oa.onLeaveActive,wa=oa.onAppearEnd,ba=oa.onEnterEnd,Ea=oa.onLeaveEnd,$a=oa.onVisibleChanged,Ma=useSafeState(),Ia=_slicedToArray(Ma,2),Oa=Ia[0],Da=Ia[1],Ta=useSyncState(STATUS_NONE),_a=_slicedToArray(Ta,2),La=_a[0],Na=_a[1],za=useSafeState(null),Fa=_slicedToArray(za,2),Ha=Fa[0],Va=Fa[1],Ua=La(),Qa=reactExports.useRef(!1),Wa=reactExports.useRef(null);function Za(){return ra()}var Xa=reactExports.useRef(!1);function tl(){Na(STATUS_NONE),Va(null,!0)}var il=useEvent$1(function(Vl){var Wl=La();if(Wl!==STATUS_NONE){var vl=Za();if(!(Vl&&!Vl.deadline&&Vl.target!==vl)){var kl=Xa.current,zl;Wl===STATUS_APPEAR&&kl?zl=wa?.(vl,Vl):Wl===STATUS_ENTER&&kl?zl=ba?.(vl,Vl):Wl===STATUS_LEAVE&&kl&&(zl=Ea?.(vl,Vl)),kl&&zl!==!1&&tl()}}}),Ja=useDomMotionEvents(il),nl=_slicedToArray(Ja,1),Ya=nl[0],rl=function(Wl){switch(Wl){case STATUS_APPEAR:return _defineProperty$8(_defineProperty$8(_defineProperty$8({},STEP_PREPARE,ga),STEP_START,va),STEP_ACTIVE,Aa);case STATUS_ENTER:return _defineProperty$8(_defineProperty$8(_defineProperty$8({},STEP_PREPARE,fa),STEP_START,xa),STEP_ACTIVE,Ca);case STATUS_LEAVE:return _defineProperty$8(_defineProperty$8(_defineProperty$8({},STEP_PREPARE,ma),STEP_START,ya),STEP_ACTIVE,Sa);default:return{}}},sl=reactExports.useMemo(function(){return rl(Ua)},[Ua]),dl=useStepQueue(Ua,!ea,function(Vl){if(Vl===STEP_PREPARE){var Wl=sl[STEP_PREPARE];return Wl?Wl(Za()):SkipStep}if(Rl in sl){var vl;Va(((vl=sl[Rl])===null||vl===void 0?void 0:vl.call(sl,Za(),null))||null)}return Rl===STEP_ACTIVE&&Ua!==STATUS_NONE&&(Ya(Za()),pa>0&&(clearTimeout(Wa.current),Wa.current=setTimeout(function(){il({deadline:!0})},pa))),Rl===STEP_PREPARED&&tl(),DoStep}),pl=_slicedToArray(dl,2),ml=pl[0],Rl=pl[1],Tl=isActive(Rl);Xa.current=Tl;var Il=reactExports.useRef(null);useIsomorphicLayoutEffect$4(function(){if(!(Qa.current&&Il.current===na)){Da(na);var Vl=Qa.current;Qa.current=!0;var Wl;!Vl&&na&&ca&&(Wl=STATUS_APPEAR),Vl&&na&&sa&&(Wl=STATUS_ENTER),(Vl&&!na&&da||!Vl&&ha&&!na&&da)&&(Wl=STATUS_LEAVE);var vl=rl(Wl);Wl&&(ea||vl[STEP_PREPARE])?(Na(Wl),ml()):Na(STATUS_NONE),Il.current=na}},[na]),reactExports.useEffect(function(){(Ua===STATUS_APPEAR&&!ca||Ua===STATUS_ENTER&&!sa||Ua===STATUS_LEAVE&&!da)&&Na(STATUS_NONE)},[ca,sa,da]),reactExports.useEffect(function(){return function(){Qa.current=!1,clearTimeout(Wa.current)}},[]);var Ol=reactExports.useRef(!1);reactExports.useEffect(function(){Oa&&(Ol.current=!0),Oa!==void 0&&Ua===STATUS_NONE&&((Ol.current||Oa)&&$a?.(Oa),Ol.current=!0)},[Oa,Ua]);var Fl=Ha;return sl[STEP_PREPARE]&&Rl===STEP_START&&(Fl=_objectSpread2$1({transition:"none"},Fl)),[Ua,Rl,Fl,Oa??na]}function genCSSMotion(ea){var na=ea;_typeof$3(ea)==="object"&&(na=ea.transitionSupport);function ra(aa,sa){return!!(aa.motionName&&na&&sa!==!1)}var oa=reactExports.forwardRef(function(aa,sa){var la=aa.visible,ca=la===void 0?!0:la,ua=aa.removeOnLeave,da=ua===void 0?!0:ua,pa=aa.forceRender,ha=aa.children,ga=aa.motionName,fa=aa.leavedClassName,ma=aa.eventProps,va=reactExports.useContext(Context$2),xa=va.motion,ya=ra(aa,xa),Aa=reactExports.useRef(),Ca=reactExports.useRef();function Sa(){try{return Aa.current instanceof HTMLElement?Aa.current:findDOMNode(Ca.current)}catch{return null}}var wa=useStatus(ya,ca,Sa,aa),ba=_slicedToArray(wa,4),Ea=ba[0],$a=ba[1],Ma=ba[2],Ia=ba[3],Oa=reactExports.useRef(Ia);Ia&&(Oa.current=!0);var Da=reactExports.useCallback(function(Fa){Aa.current=Fa,fillRef(sa,Fa)},[sa]),Ta,_a=_objectSpread2$1(_objectSpread2$1({},ma),{},{visible:ca});if(!ha)Ta=null;else if(Ea===STATUS_NONE)Ia?Ta=ha(_objectSpread2$1({},_a),Da):!da&&Oa.current&&fa?Ta=ha(_objectSpread2$1(_objectSpread2$1({},_a),{},{className:fa}),Da):pa||!da&&!fa?Ta=ha(_objectSpread2$1(_objectSpread2$1({},_a),{},{style:{display:"none"}}),Da):Ta=null;else{var La;$a===STEP_PREPARE?La="prepare":isActive($a)?La="active":$a===STEP_START&&(La="start");var Na=getTransitionName(ga,"".concat(Ea,"-").concat(La));Ta=ha(_objectSpread2$1(_objectSpread2$1({},_a),{},{className:classnames(getTransitionName(ga,Ea),_defineProperty$8(_defineProperty$8({},Na,Na&&La),ga,typeof ga=="string")),style:Ma}),Da)}if(reactExports.isValidElement(Ta)&&supportRef(Ta)){var za=getNodeRef(Ta);za||(Ta=reactExports.cloneElement(Ta,{ref:Da}))}return reactExports.createElement(DomWrapper,{ref:Ca},Ta)});return oa.displayName="CSSMotion",oa}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(ea){var na;return ea&&_typeof$3(ea)==="object"&&"key"in ea?na=ea:na={key:ea},_objectSpread2$1(_objectSpread2$1({},na),{},{key:String(na.key)})}function parseKeys(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ea.map(wrapKeyToObject)}function diffKeys(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ra=[],oa=0,aa=na.length,sa=parseKeys(ea),la=parseKeys(na);sa.forEach(function(da){for(var pa=!1,ha=oa;ha<aa;ha+=1){var ga=la[ha];if(ga.key===da.key){oa<ha&&(ra=ra.concat(la.slice(oa,ha).map(function(fa){return _objectSpread2$1(_objectSpread2$1({},fa),{},{status:STATUS_ADD})})),oa=ha),ra.push(_objectSpread2$1(_objectSpread2$1({},ga),{},{status:STATUS_KEEP})),oa+=1,pa=!0;break}}pa||ra.push(_objectSpread2$1(_objectSpread2$1({},da),{},{status:STATUS_REMOVE}))}),oa<aa&&(ra=ra.concat(la.slice(oa).map(function(da){return _objectSpread2$1(_objectSpread2$1({},da),{},{status:STATUS_ADD})})));var ca={};ra.forEach(function(da){var pa=da.key;ca[pa]=(ca[pa]||0)+1});var ua=Object.keys(ca).filter(function(da){return ca[da]>1});return ua.forEach(function(da){ra=ra.filter(function(pa){var ha=pa.key,ga=pa.status;return ha!==da||ga!==STATUS_REMOVE}),ra.forEach(function(pa){pa.key===da&&(pa.status=STATUS_KEEP)})}),ra}var _excluded$8=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$1=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,ra=function(oa){_inherits$1(sa,oa);var aa=_createSuper(sa);function sa(){var la;_classCallCheck$2(this,sa);for(var ca=arguments.length,ua=new Array(ca),da=0;da<ca;da++)ua[da]=arguments[da];return la=aa.call.apply(aa,[this].concat(ua)),_defineProperty$8(_assertThisInitialized$1(la),"state",{keyEntities:[]}),_defineProperty$8(_assertThisInitialized$1(la),"removeKey",function(pa){la.setState(function(ha){var ga=ha.keyEntities.map(function(fa){return fa.key!==pa?fa:_objectSpread2$1(_objectSpread2$1({},fa),{},{status:STATUS_REMOVED})});return{keyEntities:ga}},function(){var ha=la.state.keyEntities,ga=ha.filter(function(fa){var ma=fa.status;return ma!==STATUS_REMOVED}).length;ga===0&&la.props.onAllRemoved&&la.props.onAllRemoved()})}),la}return _createClass$2(sa,[{key:"render",value:function(){var ca=this,ua=this.state.keyEntities,da=this.props,pa=da.component,ha=da.children,ga=da.onVisibleChanged;da.onAllRemoved;var fa=_objectWithoutProperties$1(da,_excluded$8),ma=pa||reactExports.Fragment,va={};return MOTION_PROP_NAMES.forEach(function(xa){va[xa]=fa[xa],delete fa[xa]}),delete fa.keys,reactExports.createElement(ma,fa,ua.map(function(xa,ya){var Aa=xa.status,Ca=_objectWithoutProperties$1(xa,_excluded2$1),Sa=Aa===STATUS_ADD||Aa===STATUS_KEEP;return reactExports.createElement(na,_extends$5({},va,{key:Ca.key,visible:Sa,eventProps:Ca,onVisibleChanged:function(ba){ga?.(ba,{key:Ca.key}),ba||ca.removeKey(Ca.key)}}),function(wa,ba){return ha(_objectSpread2$1(_objectSpread2$1({},wa),{},{index:ya}),ba)})}))}}],[{key:"getDerivedStateFromProps",value:function(ca,ua){var da=ca.keys,pa=ua.keyEntities,ha=parseKeys(da),ga=diffKeys(pa,ha);return{keyEntities:ga.filter(function(fa){var ma=pa.find(function(va){var xa=va.key;return fa.key===xa});return!(ma&&ma.status===STATUS_REMOVED&&fa.status===STATUS_REMOVE)})}}}]),sa}(reactExports.Component);return _defineProperty$8(ra,"defaultProps",{component:"div"}),ra}genCSSMotionList(supportTransition);function Arrow(ea){var na=ea.prefixCls,ra=ea.align,oa=ea.arrow,aa=ea.arrowPos,sa=oa||{},la=sa.className,ca=sa.content,ua=aa.x,da=ua===void 0?0:ua,pa=aa.y,ha=pa===void 0?0:pa,ga=reactExports.useRef();if(!ra||!ra.points)return null;var fa={position:"absolute"};if(ra.autoArrow!==!1){var ma=ra.points[0],va=ra.points[1],xa=ma[0],ya=ma[1],Aa=va[0],Ca=va[1];xa===Aa||!["t","b"].includes(xa)?fa.top=ha:xa==="t"?fa.top=0:fa.bottom=0,ya===Ca||!["l","r"].includes(ya)?fa.left=da:ya==="l"?fa.left=0:fa.right=0}return reactExports.createElement("div",{ref:ga,className:classnames("".concat(na,"-arrow"),la),style:fa},ca)}function Mask(ea){var na=ea.prefixCls,ra=ea.open,oa=ea.zIndex,aa=ea.mask,sa=ea.motion;return aa?reactExports.createElement(CSSMotion,_extends$5({},sa,{motionAppear:!0,visible:ra,removeOnLeave:!0}),function(la){var ca=la.className;return reactExports.createElement("div",{style:{zIndex:oa},className:classnames("".concat(na,"-mask"),ca)})}):null}var PopupContent=reactExports.memo(function(ea){var na=ea.children;return na},function(ea,na){return na.cache}),Popup=reactExports.forwardRef(function(ea,na){var ra=ea.popup,oa=ea.className,aa=ea.prefixCls,sa=ea.style,la=ea.target,ca=ea.onVisibleChanged,ua=ea.open,da=ea.keepDom,pa=ea.fresh,ha=ea.onClick,ga=ea.mask,fa=ea.arrow,ma=ea.arrowPos,va=ea.align,xa=ea.motion,ya=ea.maskMotion,Aa=ea.forceRender,Ca=ea.getPopupContainer,Sa=ea.autoDestroy,wa=ea.portal,ba=ea.zIndex,Ea=ea.onMouseEnter,$a=ea.onMouseLeave,Ma=ea.onPointerEnter,Ia=ea.onPointerDownCapture,Oa=ea.ready,Da=ea.offsetX,Ta=ea.offsetY,_a=ea.offsetR,La=ea.offsetB,Na=ea.onAlign,za=ea.onPrepare,Fa=ea.stretch,Ha=ea.targetWidth,Va=ea.targetHeight,Ua=typeof ra=="function"?ra():ra,Qa=ua||da,Wa=Ca?.length>0,Za=reactExports.useState(!Ca||!Wa),Xa=_slicedToArray(Za,2),tl=Xa[0],il=Xa[1];if(useLayoutEffect$1(function(){!tl&&Wa&&la&&il(!0)},[tl,Wa,la]),!tl)return null;var Ja="auto",nl={left:"-1000vw",top:"-1000vh",right:Ja,bottom:Ja};if(Oa||!ua){var Ya,rl=va.points,sl=va.dynamicInset||((Ya=va._experimental)===null||Ya===void 0?void 0:Ya.dynamicInset),dl=sl&&rl[0][1]==="r",pl=sl&&rl[0][0]==="b";dl?(nl.right=_a,nl.left=Ja):(nl.left=Da,nl.right=Ja),pl?(nl.bottom=La,nl.top=Ja):(nl.top=Ta,nl.bottom=Ja)}var ml={};return Fa&&(Fa.includes("height")&&Va?ml.height=Va:Fa.includes("minHeight")&&Va&&(ml.minHeight=Va),Fa.includes("width")&&Ha?ml.width=Ha:Fa.includes("minWidth")&&Ha&&(ml.minWidth=Ha)),ua||(ml.pointerEvents="none"),reactExports.createElement(wa,{open:Aa||Qa,getContainer:Ca&&function(){return Ca(la)},autoDestroy:Sa},reactExports.createElement(Mask,{prefixCls:aa,open:ua,zIndex:ba,mask:ga,motion:ya}),reactExports.createElement(RefResizeObserver,{onResize:Na,disabled:!ua},function(Rl){return reactExports.createElement(CSSMotion,_extends$5({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Aa,leavedClassName:"".concat(aa,"-hidden")},xa,{onAppearPrepare:za,onEnterPrepare:za,visible:ua,onVisibleChanged:function(Il){var Ol;xa==null||(Ol=xa.onVisibleChanged)===null||Ol===void 0||Ol.call(xa,Il),ca(Il)}}),function(Tl,Il){var Ol=Tl.className,Fl=Tl.style,Vl=classnames(aa,Ol,oa);return reactExports.createElement("div",{ref:composeRef(Rl,na,Il),className:Vl,style:_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({"--arrow-x":"".concat(ma.x||0,"px"),"--arrow-y":"".concat(ma.y||0,"px")},nl),ml),Fl),{},{boxSizing:"border-box",zIndex:ba},sa),onMouseEnter:Ea,onMouseLeave:$a,onPointerEnter:Ma,onClick:ha,onPointerDownCapture:Ia},fa&&reactExports.createElement(Arrow,{prefixCls:aa,arrow:fa,arrowPos:ma,align:va}),reactExports.createElement(PopupContent,{cache:!ua&&!pa},Ua))})}))}),TriggerWrapper=reactExports.forwardRef(function(ea,na){var ra=ea.children,oa=ea.getTriggerDOMNode,aa=supportRef(ra),sa=reactExports.useCallback(function(ca){fillRef(na,oa?oa(ca):ca)},[oa]),la=useComposeRef(sa,getNodeRef(ra));return aa?reactExports.cloneElement(ra,{ref:la}):ra}),TriggerContext=reactExports.createContext(null);function toArray$2(ea){return ea?Array.isArray(ea)?ea:[ea]:[]}function useAction(ea,na,ra,oa){return reactExports.useMemo(function(){var aa=toArray$2(ra??na),sa=toArray$2(oa??na),la=new Set(aa),ca=new Set(sa);return ea&&(la.has("hover")&&(la.delete("hover"),la.add("click")),ca.has("hover")&&(ca.delete("hover"),ca.add("click"))),[la,ca]},[ea,na,ra,oa])}const isVisible=function(ea){if(!ea)return!1;if(ea instanceof Element){if(ea.offsetParent)return!0;if(ea.getBBox){var na=ea.getBBox(),ra=na.width,oa=na.height;if(ra||oa)return!0}if(ea.getBoundingClientRect){var aa=ea.getBoundingClientRect(),sa=aa.width,la=aa.height;if(sa||la)return!0}}return!1};function isPointsEq(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ra=arguments.length>2?arguments[2]:void 0;return ra?ea[0]===na[0]:ea[0]===na[0]&&ea[1]===na[1]}function getAlignPopupClassName(ea,na,ra,oa){for(var aa=ra.points,sa=Object.keys(ea),la=0;la<sa.length;la+=1){var ca,ua=sa[la];if(isPointsEq((ca=ea[ua])===null||ca===void 0?void 0:ca.points,aa,oa))return"".concat(na,"-placement-").concat(ua)}return""}function getMotion(ea,na,ra,oa){return na||(ra?{motionName:"".concat(ea,"-").concat(ra)}:oa?{motionName:oa}:null)}function getWin(ea){return ea.ownerDocument.defaultView}function collectScroller(ea){for(var na=[],ra=ea?.parentElement,oa=["hidden","scroll","clip","auto"];ra;){var aa=getWin(ra).getComputedStyle(ra),sa=aa.overflowX,la=aa.overflowY,ca=aa.overflow;[sa,la,ca].some(function(ua){return oa.includes(ua)})&&na.push(ra),ra=ra.parentElement}return na}function toNum(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ea)?na:ea}function getPxValue(ea){return toNum(parseFloat(ea),0)}function getVisibleArea(ea,na){var ra=_objectSpread2$1({},ea);return(na||[]).forEach(function(oa){if(!(oa instanceof HTMLBodyElement||oa instanceof HTMLHtmlElement)){var aa=getWin(oa).getComputedStyle(oa),sa=aa.overflow,la=aa.overflowClipMargin,ca=aa.borderTopWidth,ua=aa.borderBottomWidth,da=aa.borderLeftWidth,pa=aa.borderRightWidth,ha=oa.getBoundingClientRect(),ga=oa.offsetHeight,fa=oa.clientHeight,ma=oa.offsetWidth,va=oa.clientWidth,xa=getPxValue(ca),ya=getPxValue(ua),Aa=getPxValue(da),Ca=getPxValue(pa),Sa=toNum(Math.round(ha.width/ma*1e3)/1e3),wa=toNum(Math.round(ha.height/ga*1e3)/1e3),ba=(ma-va-Aa-Ca)*Sa,Ea=(ga-fa-xa-ya)*wa,$a=xa*wa,Ma=ya*wa,Ia=Aa*Sa,Oa=Ca*Sa,Da=0,Ta=0;if(sa==="clip"){var _a=getPxValue(la);Da=_a*Sa,Ta=_a*wa}var La=ha.x+Ia-Da,Na=ha.y+$a-Ta,za=La+ha.width+2*Da-Ia-Oa-ba,Fa=Na+ha.height+2*Ta-$a-Ma-Ea;ra.left=Math.max(ra.left,La),ra.top=Math.max(ra.top,Na),ra.right=Math.min(ra.right,za),ra.bottom=Math.min(ra.bottom,Fa)}}),ra}function getUnitOffset(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ra="".concat(na),oa=ra.match(/^(.*)\%$/);return oa?ea*(parseFloat(oa[1])/100):parseFloat(ra)}function getNumberOffset(ea,na){var ra=na||[],oa=_slicedToArray(ra,2),aa=oa[0],sa=oa[1];return[getUnitOffset(ea.width,aa),getUnitOffset(ea.height,sa)]}function splitPoints(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ea[0],ea[1]]}function getAlignPoint(ea,na){var ra=na[0],oa=na[1],aa,sa;return ra==="t"?sa=ea.y:ra==="b"?sa=ea.y+ea.height:sa=ea.y+ea.height/2,oa==="l"?aa=ea.x:oa==="r"?aa=ea.x+ea.width:aa=ea.x+ea.width/2,{x:aa,y:sa}}function reversePoints(ea,na){var ra={t:"b",b:"t",l:"r",r:"l"};return ea.map(function(oa,aa){return aa===na?ra[oa]||"c":oa}).join("")}function useAlign(ea,na,ra,oa,aa,sa,la){var ca=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:aa[oa]||{}}),ua=_slicedToArray(ca,2),da=ua[0],pa=ua[1],ha=reactExports.useRef(0),ga=reactExports.useMemo(function(){return na?collectScroller(na):[]},[na]),fa=reactExports.useRef({}),ma=function(){fa.current={}};ea||ma();var va=useEvent$1(function(){if(na&&ra&&ea){let ad=function(dp,np){var hd=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kl,Sp=Za.x+dp,Ep=Za.y+np,Op=Sp+dl,Jp=Ep+sl,e0=Math.max(Sp,hd.left),oc=Math.max(Ep,hd.top),Sc=Math.min(Op,hd.right),mu=Math.min(Jp,hd.bottom);return Math.max(0,(Sc-e0)*(mu-oc))},Mp=function(){uu=Za.y+dc,Bu=uu+sl,Qu=Za.x+sc,wd=Qu+dl};var Aa,Ca,Sa,wa,ba=na,Ea=ba.ownerDocument,$a=getWin(ba),Ma=$a.getComputedStyle(ba),Ia=Ma.width,Oa=Ma.height,Da=Ma.position,Ta=ba.style.left,_a=ba.style.top,La=ba.style.right,Na=ba.style.bottom,za=ba.style.overflow,Fa=_objectSpread2$1(_objectSpread2$1({},aa[oa]),sa),Ha=Ea.createElement("div");(Aa=ba.parentElement)===null||Aa===void 0||Aa.appendChild(Ha),Ha.style.left="".concat(ba.offsetLeft,"px"),Ha.style.top="".concat(ba.offsetTop,"px"),Ha.style.position=Da,Ha.style.height="".concat(ba.offsetHeight,"px"),Ha.style.width="".concat(ba.offsetWidth,"px"),ba.style.left="0",ba.style.top="0",ba.style.right="auto",ba.style.bottom="auto",ba.style.overflow="hidden";var Va;if(Array.isArray(ra))Va={x:ra[0],y:ra[1],width:0,height:0};else{var Ua,Qa,Wa=ra.getBoundingClientRect();Wa.x=(Ua=Wa.x)!==null&&Ua!==void 0?Ua:Wa.left,Wa.y=(Qa=Wa.y)!==null&&Qa!==void 0?Qa:Wa.top,Va={x:Wa.x,y:Wa.y,width:Wa.width,height:Wa.height}}var Za=ba.getBoundingClientRect();Za.x=(Ca=Za.x)!==null&&Ca!==void 0?Ca:Za.left,Za.y=(Sa=Za.y)!==null&&Sa!==void 0?Sa:Za.top;var Xa=Ea.documentElement,tl=Xa.clientWidth,il=Xa.clientHeight,Ja=Xa.scrollWidth,nl=Xa.scrollHeight,Ya=Xa.scrollTop,rl=Xa.scrollLeft,sl=Za.height,dl=Za.width,pl=Va.height,ml=Va.width,Rl={left:0,top:0,right:tl,bottom:il},Tl={left:-rl,top:-Ya,right:Ja-rl,bottom:nl-Ya},Il=Fa.htmlRegion,Ol="visible",Fl="visibleFirst";Il!=="scroll"&&Il!==Fl&&(Il=Ol);var Vl=Il===Fl,Wl=getVisibleArea(Tl,ga),vl=getVisibleArea(Rl,ga),kl=Il===Ol?vl:Wl,zl=Vl?vl:kl;ba.style.left="auto",ba.style.top="auto",ba.style.right="0",ba.style.bottom="0";var Al=ba.getBoundingClientRect();ba.style.left=Ta,ba.style.top=_a,ba.style.right=La,ba.style.bottom=Na,ba.style.overflow=za,(wa=ba.parentElement)===null||wa===void 0||wa.removeChild(Ha);var gl=toNum(Math.round(dl/parseFloat(Ia)*1e3)/1e3),xl=toNum(Math.round(sl/parseFloat(Oa)*1e3)/1e3);if(gl===0||xl===0||isDOM(ra)&&!isVisible(ra))return;var Sl=Fa.offset,$l=Fa.targetOffset,Bl=getNumberOffset(Za,Sl),Ul=_slicedToArray(Bl,2),ec=Ul[0],Kl=Ul[1],rc=getNumberOffset(Va,$l),wl=_slicedToArray(rc,2),Ll=wl[0],ic=wl[1];Va.x-=Ll,Va.y-=ic;var Yl=Fa.points||[],gc=_slicedToArray(Yl,2),Rc=gc[0],Ic=gc[1],bc=splitPoints(Ic),kc=splitPoints(Rc),Kc=getAlignPoint(Va,bc),Tc=getAlignPoint(Za,kc),ac=_objectSpread2$1({},Fa),sc=Kc.x-Tc.x+ec,dc=Kc.y-Tc.y+Kl,Pc=ad(sc,dc),qc=ad(sc,dc,vl),uc=getAlignPoint(Va,["t","l"]),lc=getAlignPoint(Za,["t","l"]),hc=getAlignPoint(Va,["b","r"]),pc=getAlignPoint(Za,["b","r"]),xc=Fa.overflow||{},Gc=xc.adjustX,Lu=xc.adjustY,vu=xc.shiftX,ju=xc.shiftY,su=function(np){return typeof np=="boolean"?np:np>=0},uu,Bu,Qu,wd;Mp();var Tu=su(Lu),Ju=kc[0]===bc[0];if(Tu&&kc[0]==="t"&&(Bu>zl.bottom||fa.current.bt)){var cc=dc;Ju?cc-=sl-pl:cc=uc.y-pc.y-Kl;var mc=ad(sc,cc),Dc=ad(sc,cc,vl);mc>Pc||mc===Pc&&(!Vl||Dc>=qc)?(fa.current.bt=!0,dc=cc,Kl=-Kl,ac.points=[reversePoints(kc,0),reversePoints(bc,0)]):fa.current.bt=!1}if(Tu&&kc[0]==="b"&&(uu<zl.top||fa.current.tb)){var zc=dc;Ju?zc+=sl-pl:zc=hc.y-lc.y-Kl;var gu=ad(sc,zc),qd=ad(sc,zc,vl);gu>Pc||gu===Pc&&(!Vl||qd>=qc)?(fa.current.tb=!0,dc=zc,Kl=-Kl,ac.points=[reversePoints(kc,0),reversePoints(bc,0)]):fa.current.tb=!1}var rd=su(Gc),Zd=kc[1]===bc[1];if(rd&&kc[1]==="l"&&(wd>zl.right||fa.current.rl)){var _d=sc;Zd?_d-=dl-ml:_d=uc.x-pc.x-ec;var Fu=ad(_d,dc),Id=ad(_d,dc,vl);Fu>Pc||Fu===Pc&&(!Vl||Id>=qc)?(fa.current.rl=!0,sc=_d,ec=-ec,ac.points=[reversePoints(kc,1),reversePoints(bc,1)]):fa.current.rl=!1}if(rd&&kc[1]==="r"&&(Qu<zl.left||fa.current.lr)){var kd=sc;Zd?kd+=dl-ml:kd=hc.x-lc.x-ec;var tp=ad(kd,dc),ud=ad(kd,dc,vl);tp>Pc||tp===Pc&&(!Vl||ud>=qc)?(fa.current.lr=!0,sc=kd,ec=-ec,ac.points=[reversePoints(kc,1),reversePoints(bc,1)]):fa.current.lr=!1}Mp();var Pu=vu===!0?0:vu;typeof Pu=="number"&&(Qu<vl.left&&(sc-=Qu-vl.left-ec,Va.x+ml<vl.left+Pu&&(sc+=Va.x-vl.left+ml-Pu)),wd>vl.right&&(sc-=wd-vl.right-ec,Va.x>vl.right-Pu&&(sc+=Va.x-vl.right+Pu)));var _u=ju===!0?0:ju;typeof _u=="number"&&(uu<vl.top&&(dc-=uu-vl.top-Kl,Va.y+pl<vl.top+_u&&(dc+=Va.y-vl.top+pl-_u)),Bu>vl.bottom&&(dc-=Bu-vl.bottom-Kl,Va.y>vl.bottom-_u&&(dc+=Va.y-vl.bottom+_u)));var Vu=Za.x+sc,Sd=Vu+dl,Nu=Za.y+dc,Ld=Nu+sl,Dd=Va.x,Vc=Dd+ml,Mc=Va.y,bu=Mc+pl,Wu=Math.max(Vu,Dd),hu=Math.min(Sd,Vc),xu=(Wu+hu)/2,dd=xu-Vu,ed=Math.max(Nu,Mc),Iu=Math.min(Ld,bu),ku=(ed+Iu)/2,pd=ku-Nu;la?.(na,ac);var od=Al.right-Za.x-(sc+Za.width),yu=Al.bottom-Za.y-(dc+Za.height);gl===1&&(sc=Math.round(sc),od=Math.round(od)),xl===1&&(dc=Math.round(dc),yu=Math.round(yu));var Xp={ready:!0,offsetX:sc/gl,offsetY:dc/xl,offsetR:od/gl,offsetB:yu/xl,arrowX:dd/gl,arrowY:pd/xl,scaleX:gl,scaleY:xl,align:ac};pa(Xp)}}),xa=function(){ha.current+=1;var Ca=ha.current;Promise.resolve().then(function(){ha.current===Ca&&va()})},ya=function(){pa(function(Ca){return _objectSpread2$1(_objectSpread2$1({},Ca),{},{ready:!1})})};return useLayoutEffect$1(ya,[oa]),useLayoutEffect$1(function(){ea||ya()},[ea]),[da.ready,da.offsetX,da.offsetY,da.offsetR,da.offsetB,da.arrowX,da.arrowY,da.scaleX,da.scaleY,da.align,xa]}function useWatch(ea,na,ra,oa,aa){useLayoutEffect$1(function(){if(ea&&na&&ra){let ha=function(){oa(),aa()};var sa=na,la=ra,ca=collectScroller(sa),ua=collectScroller(la),da=getWin(la),pa=new Set([da].concat(_toConsumableArray(ca),_toConsumableArray(ua)));return pa.forEach(function(ga){ga.addEventListener("scroll",ha,{passive:!0})}),da.addEventListener("resize",ha,{passive:!0}),oa(),function(){pa.forEach(function(ga){ga.removeEventListener("scroll",ha),da.removeEventListener("resize",ha)})}}},[ea,na,ra])}function useWinClick(ea,na,ra,oa,aa,sa,la,ca){var ua=reactExports.useRef(ea);ua.current=ea;var da=reactExports.useRef(!1);reactExports.useEffect(function(){if(na&&oa&&(!aa||sa)){var ha=function(){da.current=!1},ga=function(xa){var ya;ua.current&&!la(((ya=xa.composedPath)===null||ya===void 0||(ya=ya.call(xa))===null||ya===void 0?void 0:ya[0])||xa.target)&&!da.current&&ca(!1)},fa=getWin(oa);fa.addEventListener("pointerdown",ha,!0),fa.addEventListener("mousedown",ga,!0),fa.addEventListener("contextmenu",ga,!0);var ma=getShadowRoot$2(ra);return ma&&(ma.addEventListener("mousedown",ga,!0),ma.addEventListener("contextmenu",ga,!0)),function(){fa.removeEventListener("pointerdown",ha,!0),fa.removeEventListener("mousedown",ga,!0),fa.removeEventListener("contextmenu",ga,!0),ma&&(ma.removeEventListener("mousedown",ga,!0),ma.removeEventListener("contextmenu",ga,!0))}}},[na,ra,oa,aa,sa]);function pa(){da.current=!0}return pa}var _excluded$7=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function generateTrigger(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,na=reactExports.forwardRef(function(ra,oa){var aa=ra.prefixCls,sa=aa===void 0?"rc-trigger-popup":aa,la=ra.children,ca=ra.action,ua=ca===void 0?"hover":ca,da=ra.showAction,pa=ra.hideAction,ha=ra.popupVisible,ga=ra.defaultPopupVisible,fa=ra.onPopupVisibleChange,ma=ra.afterPopupVisibleChange,va=ra.mouseEnterDelay,xa=ra.mouseLeaveDelay,ya=xa===void 0?.1:xa,Aa=ra.focusDelay,Ca=ra.blurDelay,Sa=ra.mask,wa=ra.maskClosable,ba=wa===void 0?!0:wa,Ea=ra.getPopupContainer,$a=ra.forceRender,Ma=ra.autoDestroy,Ia=ra.destroyPopupOnHide,Oa=ra.popup,Da=ra.popupClassName,Ta=ra.popupStyle,_a=ra.popupPlacement,La=ra.builtinPlacements,Na=La===void 0?{}:La,za=ra.popupAlign,Fa=ra.zIndex,Ha=ra.stretch,Va=ra.getPopupClassNameFromAlign,Ua=ra.fresh,Qa=ra.alignPoint,Wa=ra.onPopupClick,Za=ra.onPopupAlign,Xa=ra.arrow,tl=ra.popupMotion,il=ra.maskMotion,Ja=ra.popupTransitionName,nl=ra.popupAnimation,Ya=ra.maskTransitionName,rl=ra.maskAnimation,sl=ra.className,dl=ra.getTriggerDOMNode,pl=_objectWithoutProperties$1(ra,_excluded$7),ml=Ma||Ia||!1,Rl=reactExports.useState(!1),Tl=_slicedToArray(Rl,2),Il=Tl[0],Ol=Tl[1];useLayoutEffect$1(function(){Ol(isMobile())},[]);var Fl=reactExports.useRef({}),Vl=reactExports.useContext(TriggerContext),Wl=reactExports.useMemo(function(){return{registerSubPopup:function(Sc,mu){Fl.current[Sc]=mu,Vl?.registerSubPopup(Sc,mu)}}},[Vl]),vl=useId$2(),kl=reactExports.useState(null),zl=_slicedToArray(kl,2),Al=zl[0],gl=zl[1],xl=reactExports.useRef(null),Sl=useEvent$1(function(oc){xl.current=oc,isDOM(oc)&&Al!==oc&&gl(oc),Vl?.registerSubPopup(vl,oc)}),$l=reactExports.useState(null),Bl=_slicedToArray($l,2),Ul=Bl[0],ec=Bl[1],Kl=reactExports.useRef(null),rc=useEvent$1(function(oc){isDOM(oc)&&Ul!==oc&&(ec(oc),Kl.current=oc)}),wl=reactExports.Children.only(la),Ll=wl?.props||{},ic={},Yl=useEvent$1(function(oc){var Sc,mu,zu=Ul;return zu?.contains(oc)||((Sc=getShadowRoot$2(zu))===null||Sc===void 0?void 0:Sc.host)===oc||oc===zu||Al?.contains(oc)||((mu=getShadowRoot$2(Al))===null||mu===void 0?void 0:mu.host)===oc||oc===Al||Object.values(Fl.current).some(function(lu){return lu?.contains(oc)||oc===lu})}),gc=getMotion(sa,tl,nl,Ja),Rc=getMotion(sa,il,rl,Ya),Ic=reactExports.useState(ga||!1),bc=_slicedToArray(Ic,2),kc=bc[0],Kc=bc[1],Tc=ha??kc,ac=useEvent$1(function(oc){ha===void 0&&Kc(oc)});useLayoutEffect$1(function(){Kc(ha||!1)},[ha]);var sc=reactExports.useRef(Tc);sc.current=Tc;var dc=reactExports.useRef([]);dc.current=[];var Pc=useEvent$1(function(oc){var Sc;ac(oc),((Sc=dc.current[dc.current.length-1])!==null&&Sc!==void 0?Sc:Tc)!==oc&&(dc.current.push(oc),fa?.(oc))}),qc=reactExports.useRef(),uc=function(){clearTimeout(qc.current)},lc=function(Sc){var mu=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;uc(),mu===0?Pc(Sc):qc.current=setTimeout(function(){Pc(Sc)},mu*1e3)};reactExports.useEffect(function(){return uc},[]);var hc=reactExports.useState(!1),pc=_slicedToArray(hc,2),xc=pc[0],Gc=pc[1];useLayoutEffect$1(function(oc){(!oc||Tc)&&Gc(!0)},[Tc]);var Lu=reactExports.useState(null),vu=_slicedToArray(Lu,2),ju=vu[0],su=vu[1],uu=reactExports.useState(null),Bu=_slicedToArray(uu,2),Qu=Bu[0],wd=Bu[1],Tu=function(Sc){wd([Sc.clientX,Sc.clientY])},Ju=useAlign(Tc,Al,Qa&&Qu!==null?Qu:Ul,_a,Na,za,Za),cc=_slicedToArray(Ju,11),mc=cc[0],Dc=cc[1],zc=cc[2],gu=cc[3],qd=cc[4],rd=cc[5],Zd=cc[6],_d=cc[7],Fu=cc[8],Id=cc[9],kd=cc[10],tp=useAction(Il,ua,da,pa),ud=_slicedToArray(tp,2),Pu=ud[0],_u=ud[1],Vu=Pu.has("click"),Sd=_u.has("click")||_u.has("contextMenu"),Nu=useEvent$1(function(){xc||kd()}),Ld=function(){sc.current&&Qa&&Sd&&lc(!1)};useWatch(Tc,Ul,Al,Nu,Ld),useLayoutEffect$1(function(){Nu()},[Qu,_a]),useLayoutEffect$1(function(){Tc&&!(Na!=null&&Na[_a])&&Nu()},[JSON.stringify(za)]);var Dd=reactExports.useMemo(function(){var oc=getAlignPopupClassName(Na,sa,Id,Qa);return classnames(oc,Va?.(Id))},[Id,Va,Na,sa,Qa]);reactExports.useImperativeHandle(oa,function(){return{nativeElement:Kl.current,popupElement:xl.current,forceAlign:Nu}});var Vc=reactExports.useState(0),Mc=_slicedToArray(Vc,2),bu=Mc[0],Wu=Mc[1],hu=reactExports.useState(0),xu=_slicedToArray(hu,2),dd=xu[0],ed=xu[1],Iu=function(){if(Ha&&Ul){var Sc=Ul.getBoundingClientRect();Wu(Sc.width),ed(Sc.height)}},ku=function(){Iu(),Nu()},pd=function(Sc){Gc(!1),kd(),ma?.(Sc)},od=function(){return new Promise(function(Sc){Iu(),su(function(){return Sc})})};useLayoutEffect$1(function(){ju&&(kd(),ju(),su(null))},[ju]);function yu(oc,Sc,mu,zu){ic[oc]=function(lu){var Lp;zu?.(lu),lc(Sc,mu);for(var jp=arguments.length,ru=new Array(jp>1?jp-1:0),ou=1;ou<jp;ou++)ru[ou-1]=arguments[ou];(Lp=Ll[oc])===null||Lp===void 0||Lp.call.apply(Lp,[Ll,lu].concat(ru))}}(Vu||Sd)&&(ic.onClick=function(oc){var Sc;sc.current&&Sd?lc(!1):!sc.current&&Vu&&(Tu(oc),lc(!0));for(var mu=arguments.length,zu=new Array(mu>1?mu-1:0),lu=1;lu<mu;lu++)zu[lu-1]=arguments[lu];(Sc=Ll.onClick)===null||Sc===void 0||Sc.call.apply(Sc,[Ll,oc].concat(zu))});var Xp=useWinClick(Tc,Sd,Ul,Al,Sa,ba,Yl,lc),ad=Pu.has("hover"),Mp=_u.has("hover"),dp,np;ad&&(yu("onMouseEnter",!0,va,function(oc){Tu(oc)}),yu("onPointerEnter",!0,va,function(oc){Tu(oc)}),dp=function(Sc){(Tc||xc)&&Al!==null&&Al!==void 0&&Al.contains(Sc.target)&&lc(!0,va)},Qa&&(ic.onMouseMove=function(oc){var Sc;(Sc=Ll.onMouseMove)===null||Sc===void 0||Sc.call(Ll,oc)})),Mp&&(yu("onMouseLeave",!1,ya),yu("onPointerLeave",!1,ya),np=function(){lc(!1,ya)}),Pu.has("focus")&&yu("onFocus",!0,Aa),_u.has("focus")&&yu("onBlur",!1,Ca),Pu.has("contextMenu")&&(ic.onContextMenu=function(oc){var Sc;sc.current&&_u.has("contextMenu")?lc(!1):(Tu(oc),lc(!0)),oc.preventDefault();for(var mu=arguments.length,zu=new Array(mu>1?mu-1:0),lu=1;lu<mu;lu++)zu[lu-1]=arguments[lu];(Sc=Ll.onContextMenu)===null||Sc===void 0||Sc.call.apply(Sc,[Ll,oc].concat(zu))}),sl&&(ic.className=classnames(Ll.className,sl));var hd=_objectSpread2$1(_objectSpread2$1({},Ll),ic),Sp={},Ep=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ep.forEach(function(oc){pl[oc]&&(Sp[oc]=function(){for(var Sc,mu=arguments.length,zu=new Array(mu),lu=0;lu<mu;lu++)zu[lu]=arguments[lu];(Sc=hd[oc])===null||Sc===void 0||Sc.call.apply(Sc,[hd].concat(zu)),pl[oc].apply(pl,zu)})});var Op=reactExports.cloneElement(wl,_objectSpread2$1(_objectSpread2$1({},hd),Sp)),Jp={x:rd,y:Zd},e0=Xa?_objectSpread2$1({},Xa!==!0?Xa:{}):null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(RefResizeObserver,{disabled:!Tc,ref:rc,onResize:ku},reactExports.createElement(TriggerWrapper,{getTriggerDOMNode:dl},Op)),reactExports.createElement(TriggerContext.Provider,{value:Wl},reactExports.createElement(Popup,{portal:ea,ref:Sl,prefixCls:sa,popup:Oa,className:classnames(Da,Dd),style:Ta,target:Ul,onMouseEnter:dp,onMouseLeave:np,onPointerEnter:dp,zIndex:Fa,open:Tc,keepDom:xc,fresh:Ua,onClick:Wa,onPointerDownCapture:Xp,mask:Sa,motion:gc,maskMotion:Rc,onVisibleChanged:pd,onPrepare:od,forceRender:$a,autoDestroy:ml,getPopupContainer:Ea,align:Id,arrow:e0,arrowPos:Jp,ready:mc,offsetX:Dc,offsetY:zc,offsetR:gu,offsetB:qd,onAlign:Nu,stretch:Ha,targetWidth:bu/_d,targetHeight:dd/Fu})))});return na}const Trigger=generateTrigger(Portal);var _excluded$6=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements=function(na){var ra=na===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ra,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ra,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ra,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ra,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(na,ra){var oa=na.prefixCls;na.disabled;var aa=na.visible,sa=na.children,la=na.popupElement,ca=na.animation,ua=na.transitionName,da=na.dropdownStyle,pa=na.dropdownClassName,ha=na.direction,ga=ha===void 0?"ltr":ha,fa=na.placement,ma=na.builtinPlacements,va=na.dropdownMatchSelectWidth,xa=na.dropdownRender,ya=na.dropdownAlign,Aa=na.getPopupContainer,Ca=na.empty,Sa=na.getTriggerDOMNode,wa=na.onPopupVisibleChange,ba=na.onPopupMouseEnter,Ea=_objectWithoutProperties$1(na,_excluded$6),$a="".concat(oa,"-dropdown"),Ma=la;xa&&(Ma=xa(la));var Ia=reactExports.useMemo(function(){return ma||getBuiltInPlacements(va)},[ma,va]),Oa=ca?"".concat($a,"-").concat(ca):ua,Da=typeof va=="number",Ta=reactExports.useMemo(function(){return Da?null:va===!1?"minWidth":"width"},[va,Da]),_a=da;Da&&(_a=_objectSpread2$1(_objectSpread2$1({},_a),{},{width:va}));var La=reactExports.useRef(null);return reactExports.useImperativeHandle(ra,function(){return{getPopupElement:function(){var za;return(za=La.current)===null||za===void 0?void 0:za.popupElement}}}),reactExports.createElement(Trigger,_extends$5({},Ea,{showAction:wa?["click"]:[],hideAction:wa?["click"]:[],popupPlacement:fa||(ga==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ia,prefixCls:$a,popupTransitionName:Oa,popup:reactExports.createElement("div",{onMouseEnter:ba},Ma),ref:La,stretch:Ta,popupAlign:ya,popupVisible:aa,getPopupContainer:Aa,popupClassName:classnames(pa,_defineProperty$8({},"".concat($a,"-empty"),Ca)),popupStyle:_a,getTriggerDOMNode:Sa,onPopupVisibleChange:wa}),sa)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey(ea,na){var ra=ea.key,oa;return"value"in ea&&(oa=ea.value),ra??(oa!==void 0?oa:"rc-index-key-".concat(na))}function isValidCount(ea){return typeof ea<"u"&&!Number.isNaN(ea)}function fillFieldNames(ea,na){var ra=ea||{},oa=ra.label,aa=ra.value,sa=ra.options,la=ra.groupLabel,ca=oa||(na?"children":"label");return{label:ca,value:aa||"value",options:sa||"options",groupLabel:la||ca}}function flattenOptions(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ra=na.fieldNames,oa=na.childrenAsData,aa=[],sa=fillFieldNames(ra,!1),la=sa.label,ca=sa.value,ua=sa.options,da=sa.groupLabel;function pa(ha,ga){Array.isArray(ha)&&ha.forEach(function(fa){if(ga||!(ua in fa)){var ma=fa[ca];aa.push({key:getKey(fa,aa.length),groupOption:ga,data:fa,label:fa[la],value:ma})}else{var va=fa[da];va===void 0&&oa&&(va=fa.label),aa.push({key:getKey(fa,aa.length),group:!0,data:fa,label:va}),pa(fa[ua],!0)}})}return pa(ea,!1),aa}function injectPropsWithOption(ea){var na=_objectSpread2$1({},ea);return"props"in na||Object.defineProperty(na,"props",{get:function(){return warningOnce$1(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),na}}),na}var getSeparatedContent=function(na,ra,oa){if(!ra||!ra.length)return null;var aa=!1,sa=function ca(ua,da){var pa=_toArray(da),ha=pa[0],ga=pa.slice(1);if(!ha)return[ua];var fa=ua.split(ha);return aa=aa||fa.length>1,fa.reduce(function(ma,va){return[].concat(_toConsumableArray(ma),_toConsumableArray(ca(va,ga)))},[]).filter(Boolean)},la=sa(na,ra);return aa?typeof oa<"u"?la.slice(0,oa):la:null},SelectContext=reactExports.createContext(null);function Polite(ea){var na=ea.visible,ra=ea.values;if(!na)return null;var oa=50;return reactExports.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ra.slice(0,oa).map(function(aa){var sa=aa.label,la=aa.value;return["number","string"].includes(_typeof$3(sa))?sa:la}).join(", ")),ra.length>oa?", ...":null)}var _excluded$5=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(na){return na==="tags"||na==="multiple"},BaseSelect=reactExports.forwardRef(function(ea,na){var ra,oa=ea.id,aa=ea.prefixCls,sa=ea.className,la=ea.showSearch,ca=ea.tagRender,ua=ea.direction,da=ea.omitDomProps,pa=ea.displayValues,ha=ea.onDisplayValuesChange,ga=ea.emptyOptions,fa=ea.notFoundContent,ma=fa===void 0?"Not Found":fa,va=ea.onClear,xa=ea.mode,ya=ea.disabled,Aa=ea.loading,Ca=ea.getInputElement,Sa=ea.getRawInputElement,wa=ea.open,ba=ea.defaultOpen,Ea=ea.onDropdownVisibleChange,$a=ea.activeValue,Ma=ea.onActiveValueChange,Ia=ea.activeDescendantId,Oa=ea.searchValue,Da=ea.autoClearSearchValue,Ta=ea.onSearch,_a=ea.onSearchSplit,La=ea.tokenSeparators,Na=ea.allowClear,za=ea.prefix,Fa=ea.suffixIcon,Ha=ea.clearIcon,Va=ea.OptionList,Ua=ea.animation,Qa=ea.transitionName,Wa=ea.dropdownStyle,Za=ea.dropdownClassName,Xa=ea.dropdownMatchSelectWidth,tl=ea.dropdownRender,il=ea.dropdownAlign,Ja=ea.placement,nl=ea.builtinPlacements,Ya=ea.getPopupContainer,rl=ea.showAction,sl=rl===void 0?[]:rl,dl=ea.onFocus,pl=ea.onBlur,ml=ea.onKeyUp,Rl=ea.onKeyDown,Tl=ea.onMouseDown,Il=_objectWithoutProperties$1(ea,_excluded$5),Ol=isMultiple(xa),Fl=(la!==void 0?la:Ol)||xa==="combobox",Vl=_objectSpread2$1({},Il);DEFAULT_OMIT_PROPS.forEach(function(Vc){delete Vl[Vc]}),da?.forEach(function(Vc){delete Vl[Vc]});var Wl=reactExports.useState(!1),vl=_slicedToArray(Wl,2),kl=vl[0],zl=vl[1];reactExports.useEffect(function(){zl(isMobile())},[]);var Al=reactExports.useRef(null),gl=reactExports.useRef(null),xl=reactExports.useRef(null),Sl=reactExports.useRef(null),$l=reactExports.useRef(null),Bl=reactExports.useRef(!1),Ul=useDelayReset(),ec=_slicedToArray(Ul,3),Kl=ec[0],rc=ec[1],wl=ec[2];reactExports.useImperativeHandle(na,function(){var Vc,Mc;return{focus:(Vc=Sl.current)===null||Vc===void 0?void 0:Vc.focus,blur:(Mc=Sl.current)===null||Mc===void 0?void 0:Mc.blur,scrollTo:function(Wu){var hu;return(hu=$l.current)===null||hu===void 0?void 0:hu.scrollTo(Wu)},nativeElement:Al.current||gl.current}});var Ll=reactExports.useMemo(function(){var Vc;if(xa!=="combobox")return Oa;var Mc=(Vc=pa[0])===null||Vc===void 0?void 0:Vc.value;return typeof Mc=="string"||typeof Mc=="number"?String(Mc):""},[Oa,xa,pa]),ic=xa==="combobox"&&typeof Ca=="function"&&Ca()||null,Yl=typeof Sa=="function"&&Sa(),gc=useComposeRef(gl,Yl==null||(ra=Yl.props)===null||ra===void 0?void 0:ra.ref),Rc=reactExports.useState(!1),Ic=_slicedToArray(Rc,2),bc=Ic[0],kc=Ic[1];useLayoutEffect$1(function(){kc(!0)},[]);var Kc=useMergedState(!1,{defaultValue:ba,value:wa}),Tc=_slicedToArray(Kc,2),ac=Tc[0],sc=Tc[1],dc=bc?ac:!1,Pc=!ma&&ga;(ya||Pc&&dc&&xa==="combobox")&&(dc=!1);var qc=Pc?!1:dc,uc=reactExports.useCallback(function(Vc){var Mc=Vc!==void 0?Vc:!dc;ya||(sc(Mc),dc!==Mc&&Ea?.(Mc))},[ya,dc,sc,Ea]),lc=reactExports.useMemo(function(){return(La||[]).some(function(Vc){return[`
`,`\r
`].includes(Vc)})},[La]),hc=reactExports.useContext(SelectContext)||{},pc=hc.maxCount,xc=hc.rawValues,Gc=function(Mc,bu,Wu){if(!(Ol&&isValidCount(pc)&&xc?.size>=pc)){var hu=!0,xu=Mc;Ma?.(null);var dd=getSeparatedContent(Mc,La,isValidCount(pc)?pc-xc.size:void 0),ed=Wu?null:dd;return xa!=="combobox"&&ed&&(xu="",_a?.(ed),uc(!1),hu=!1),Ta&&Ll!==xu&&Ta(xu,{source:bu?"typing":"effect"}),hu}},Lu=function(Mc){!Mc||!Mc.trim()||Ta(Mc,{source:"submit"})};reactExports.useEffect(function(){!dc&&!Ol&&xa!=="combobox"&&Gc("",!1,!1)},[dc]),reactExports.useEffect(function(){ac&&ya&&sc(!1),ya&&!Bl.current&&rc(!1)},[ya]);var vu=useLock(),ju=_slicedToArray(vu,2),su=ju[0],uu=ju[1],Bu=reactExports.useRef(!1),Qu=function(Mc){var bu=su(),Wu=Mc.key,hu=Wu==="Enter";if(hu&&(xa!=="combobox"&&Mc.preventDefault(),dc||uc(!0)),uu(!!Ll),Wu==="Backspace"&&!bu&&Ol&&!Ll&&pa.length){for(var xu=_toConsumableArray(pa),dd=null,ed=xu.length-1;ed>=0;ed-=1){var Iu=xu[ed];if(!Iu.disabled){xu.splice(ed,1),dd=Iu;break}}dd&&ha(xu,{type:"remove",values:[dd]})}for(var ku=arguments.length,pd=new Array(ku>1?ku-1:0),od=1;od<ku;od++)pd[od-1]=arguments[od];if(dc&&(!hu||!Bu.current)){var yu;hu&&(Bu.current=!0),(yu=$l.current)===null||yu===void 0||yu.onKeyDown.apply(yu,[Mc].concat(pd))}Rl?.apply(void 0,[Mc].concat(pd))},wd=function(Mc){for(var bu=arguments.length,Wu=new Array(bu>1?bu-1:0),hu=1;hu<bu;hu++)Wu[hu-1]=arguments[hu];if(dc){var xu;(xu=$l.current)===null||xu===void 0||xu.onKeyUp.apply(xu,[Mc].concat(Wu))}Mc.key==="Enter"&&(Bu.current=!1),ml?.apply(void 0,[Mc].concat(Wu))},Tu=function(Mc){var bu=pa.filter(function(Wu){return Wu!==Mc});ha(bu,{type:"remove",values:[Mc]})},Ju=function(){Bu.current=!1},cc=reactExports.useRef(!1),mc=function(){rc(!0),ya||(dl&&!cc.current&&dl.apply(void 0,arguments),sl.includes("focus")&&uc(!0)),cc.current=!0},Dc=function(){Bl.current=!0,rc(!1,function(){cc.current=!1,Bl.current=!1,uc(!1)}),!ya&&(Ll&&(xa==="tags"?Ta(Ll,{source:"submit"}):xa==="multiple"&&Ta("",{source:"blur"})),pl&&pl.apply(void 0,arguments))},zc=[];reactExports.useEffect(function(){return function(){zc.forEach(function(Vc){return clearTimeout(Vc)}),zc.splice(0,zc.length)}},[]);var gu=function(Mc){var bu,Wu=Mc.target,hu=(bu=xl.current)===null||bu===void 0?void 0:bu.getPopupElement();if(hu&&hu.contains(Wu)){var xu=setTimeout(function(){var ku=zc.indexOf(xu);if(ku!==-1&&zc.splice(ku,1),wl(),!kl&&!hu.contains(document.activeElement)){var pd;(pd=Sl.current)===null||pd===void 0||pd.focus()}});zc.push(xu)}for(var dd=arguments.length,ed=new Array(dd>1?dd-1:0),Iu=1;Iu<dd;Iu++)ed[Iu-1]=arguments[Iu];Tl?.apply(void 0,[Mc].concat(ed))},qd=reactExports.useState({}),rd=_slicedToArray(qd,2),Zd=rd[1];function _d(){Zd({})}var Fu;Yl&&(Fu=function(Mc){uc(Mc)}),useSelectTriggerControl(function(){var Vc;return[Al.current,(Vc=xl.current)===null||Vc===void 0?void 0:Vc.getPopupElement()]},qc,uc,!!Yl);var Id=reactExports.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},ea),{},{notFoundContent:ma,open:dc,triggerOpen:qc,id:oa,showSearch:Fl,multiple:Ol,toggleOpen:uc})},[ea,ma,qc,dc,oa,Fl,Ol,uc]),kd=!!Fa||Aa,tp;kd&&(tp=reactExports.createElement(TransBtn,{className:classnames("".concat(aa,"-arrow"),_defineProperty$8({},"".concat(aa,"-arrow-loading"),Aa)),customizeIcon:Fa,customizeIconProps:{loading:Aa,searchValue:Ll,open:dc,focused:Kl,showSearch:Fl}}));var ud=function(){var Mc;va?.(),(Mc=Sl.current)===null||Mc===void 0||Mc.focus(),ha([],{type:"clear",values:pa}),Gc("",!1,!1)},Pu=useAllowClear(aa,ud,pa,Na,Ha,ya,Ll,xa),_u=Pu.allowClear,Vu=Pu.clearIcon,Sd=reactExports.createElement(Va,{ref:$l}),Nu=classnames(aa,sa,_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8({},"".concat(aa,"-focused"),Kl),"".concat(aa,"-multiple"),Ol),"".concat(aa,"-single"),!Ol),"".concat(aa,"-allow-clear"),Na),"".concat(aa,"-show-arrow"),kd),"".concat(aa,"-disabled"),ya),"".concat(aa,"-loading"),Aa),"".concat(aa,"-open"),dc),"".concat(aa,"-customize-input"),ic),"".concat(aa,"-show-search"),Fl)),Ld=reactExports.createElement(RefSelectTrigger,{ref:xl,disabled:ya,prefixCls:aa,visible:qc,popupElement:Sd,animation:Ua,transitionName:Qa,dropdownStyle:Wa,dropdownClassName:Za,direction:ua,dropdownMatchSelectWidth:Xa,dropdownRender:tl,dropdownAlign:il,placement:Ja,builtinPlacements:nl,getPopupContainer:Ya,empty:ga,getTriggerDOMNode:function(Mc){return gl.current||Mc},onPopupVisibleChange:Fu,onPopupMouseEnter:_d},Yl?reactExports.cloneElement(Yl,{ref:gc}):reactExports.createElement(ForwardSelector,_extends$5({},ea,{domRef:gl,prefixCls:aa,inputElement:ic,ref:Sl,id:oa,prefix:za,showSearch:Fl,autoClearSearchValue:Da,mode:xa,activeDescendantId:Ia,tagRender:ca,values:pa,open:dc,onToggleOpen:uc,activeValue:$a,searchValue:Ll,onSearch:Gc,onSearchSubmit:Lu,onRemove:Tu,tokenWithEnter:lc,onInputBlur:Ju}))),Dd;return Yl?Dd=Ld:Dd=reactExports.createElement("div",_extends$5({className:Nu},Vl,{ref:Al,onMouseDown:gu,onKeyDown:Qu,onKeyUp:wd,onFocus:mc,onBlur:Dc}),reactExports.createElement(Polite,{visible:Kl&&!dc,values:pa}),Ld,tp,_u&&Vu),reactExports.createElement(BaseSelectContext.Provider,{value:Id},Dd)}),OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;var Option$2=function(){return null};Option$2.isSelectOption=!0;function omit$1(ea,na){var ra=Object.assign({},ea);return Array.isArray(na)&&na.forEach(function(oa){delete ra[oa]}),ra}var Filler=reactExports.forwardRef(function(ea,na){var ra=ea.height,oa=ea.offsetY,aa=ea.offsetX,sa=ea.children,la=ea.prefixCls,ca=ea.onInnerResize,ua=ea.innerProps,da=ea.rtl,pa=ea.extra,ha={},ga={display:"flex",flexDirection:"column"};return oa!==void 0&&(ha={height:ra,position:"relative",overflow:"hidden"},ga=_objectSpread2$1(_objectSpread2$1({},ga),{},_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8({transform:"translateY(".concat(oa,"px)")},da?"marginRight":"marginLeft",-aa),"position","absolute"),"left",0),"right",0),"top",0))),reactExports.createElement("div",{style:ha},reactExports.createElement(RefResizeObserver,{onResize:function(ma){var va=ma.offsetHeight;va&&ca&&ca()}},reactExports.createElement("div",_extends$5({style:ga,className:classnames(_defineProperty$8({},"".concat(la,"-holder-inner"),la)),ref:na},ua),sa,pa)))});Filler.displayName="Filler";function Item(ea){var na=ea.children,ra=ea.setRef,oa=reactExports.useCallback(function(aa){ra(aa)},[]);return reactExports.cloneElement(na,{ref:oa})}function useChildren(ea,na,ra,oa,aa,sa,la,ca){var ua=ca.getKey;return ea.slice(na,ra+1).map(function(da,pa){var ha=na+pa,ga=la(da,ha,{style:{width:oa},offsetX:aa}),fa=ua(da);return reactExports.createElement(Item,{key:fa,setRef:function(va){return sa(da,va)}},ga)})}function findListDiffIndex(ea,na,ra){var oa=ea.length,aa=na.length,sa,la;if(oa===0&&aa===0)return null;oa<aa?(sa=ea,la=na):(sa=na,la=ea);var ca={__EMPTY_ITEM__:!0};function ua(ma){return ma!==void 0?ra(ma):ca}for(var da=null,pa=Math.abs(oa-aa)!==1,ha=0;ha<la.length;ha+=1){var ga=ua(sa[ha]),fa=ua(la[ha]);if(ga!==fa){da=ha,pa=pa||ga!==ua(la[ha+1]);break}}return da===null?null:{index:da,multiple:pa}}function useDiffItem(ea,na,ra){var oa=reactExports.useState(ea),aa=_slicedToArray(oa,2),sa=aa[0],la=aa[1],ca=reactExports.useState(null),ua=_slicedToArray(ca,2),da=ua[0],pa=ua[1];return reactExports.useEffect(function(){var ha=findListDiffIndex(sa||[],ea||[],na);ha?.index!==void 0&&pa(ea[ha.index]),la(ea)},[ea]),[da]}var isFF=(typeof navigator>"u"?"undefined":_typeof$3(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(ea,na,ra,oa){var aa=reactExports.useRef(!1),sa=reactExports.useRef(null);function la(){clearTimeout(sa.current),aa.current=!0,sa.current=setTimeout(function(){aa.current=!1},50)}var ca=reactExports.useRef({top:ea,bottom:na,left:ra,right:oa});return ca.current.top=ea,ca.current.bottom=na,ca.current.left=ra,ca.current.right=oa,function(ua,da){var pa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ha=ua?da<0&&ca.current.left||da>0&&ca.current.right:da<0&&ca.current.top||da>0&&ca.current.bottom;return pa&&ha?(clearTimeout(sa.current),aa.current=!1):(!ha||aa.current)&&la(),!aa.current&&ha}};function useFrameWheel(ea,na,ra,oa,aa,sa,la){var ca=reactExports.useRef(0),ua=reactExports.useRef(null),da=reactExports.useRef(null),pa=reactExports.useRef(!1),ha=useOriginScroll(na,ra,oa,aa);function ga(Aa,Ca){if(wrapperRaf.cancel(ua.current),!ha(!1,Ca)){var Sa=Aa;if(!Sa._virtualHandled)Sa._virtualHandled=!0;else return;ca.current+=Ca,da.current=Ca,isFF||Sa.preventDefault(),ua.current=wrapperRaf(function(){var wa=pa.current?10:1;la(ca.current*wa,!1),ca.current=0})}}function fa(Aa,Ca){la(Ca,!0),isFF||Aa.preventDefault()}var ma=reactExports.useRef(null),va=reactExports.useRef(null);function xa(Aa){if(ea){wrapperRaf.cancel(va.current),va.current=wrapperRaf(function(){ma.current=null},2);var Ca=Aa.deltaX,Sa=Aa.deltaY,wa=Aa.shiftKey,ba=Ca,Ea=Sa;(ma.current==="sx"||!ma.current&&wa&&Sa&&!Ca)&&(ba=Sa,Ea=0,ma.current="sx");var $a=Math.abs(ba),Ma=Math.abs(Ea);ma.current===null&&(ma.current=sa&&$a>Ma?"x":"y"),ma.current==="y"?ga(Aa,Ea):fa(Aa,ba)}}function ya(Aa){ea&&(pa.current=Aa.detail===da.current)}return[xa,ya]}function useGetSize(ea,na,ra,oa){var aa=reactExports.useMemo(function(){return[new Map,[]]},[ea,ra.id,oa]),sa=_slicedToArray(aa,2),la=sa[0],ca=sa[1],ua=function(pa){var ha=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pa,ga=la.get(pa),fa=la.get(ha);if(ga===void 0||fa===void 0)for(var ma=ea.length,va=ca.length;va<ma;va+=1){var xa,ya=ea[va],Aa=na(ya);la.set(Aa,va);var Ca=(xa=ra.get(Aa))!==null&&xa!==void 0?xa:oa;if(ca[va]=(ca[va-1]||0)+Ca,Aa===pa&&(ga=va),Aa===ha&&(fa=va),ga!==void 0&&fa!==void 0)break}return{top:ca[ga-1]||0,bottom:ca[fa]}};return ua}var CacheMap=function(){function ea(){_classCallCheck$2(this,ea),_defineProperty$8(this,"maps",void 0),_defineProperty$8(this,"id",0),_defineProperty$8(this,"diffKeys",new Set),this.maps=Object.create(null)}return _createClass$2(ea,[{key:"set",value:function(ra,oa){this.maps[ra]=oa,this.id+=1,this.diffKeys.add(ra)}},{key:"get",value:function(ra){return this.maps[ra]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ea}();function parseNumber(ea){var na=parseFloat(ea);return isNaN(na)?0:na}function useHeights(ea,na,ra){var oa=reactExports.useState(0),aa=_slicedToArray(oa,2),sa=aa[0],la=aa[1],ca=reactExports.useRef(new Map),ua=reactExports.useRef(new CacheMap),da=reactExports.useRef(0);function pa(){da.current+=1}function ha(){var fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;pa();var ma=function(){var ya=!1;ca.current.forEach(function(Aa,Ca){if(Aa&&Aa.offsetParent){var Sa=findDOMNode(Aa),wa=Sa.offsetHeight,ba=getComputedStyle(Sa),Ea=ba.marginTop,$a=ba.marginBottom,Ma=parseNumber(Ea),Ia=parseNumber($a),Oa=wa+Ma+Ia;ua.current.get(Ca)!==Oa&&(ua.current.set(Ca,Oa),ya=!0)}}),ya&&la(function(Aa){return Aa+1})};if(fa)ma();else{da.current+=1;var va=da.current;Promise.resolve().then(function(){va===da.current&&ma()})}}function ga(fa,ma){var va=ea(fa);ca.current.get(va),ma?(ca.current.set(va,ma),ha()):ca.current.delete(va)}return reactExports.useEffect(function(){return pa},[]),[ga,ha,ua.current,sa]}var SMOOTH_PTG=14/15;function useMobileTouchMove(ea,na,ra){var oa=reactExports.useRef(!1),aa=reactExports.useRef(0),sa=reactExports.useRef(0),la=reactExports.useRef(null),ca=reactExports.useRef(null),ua,da=function(fa){if(oa.current){var ma=Math.ceil(fa.touches[0].pageX),va=Math.ceil(fa.touches[0].pageY),xa=aa.current-ma,ya=sa.current-va,Aa=Math.abs(xa)>Math.abs(ya);Aa?aa.current=ma:sa.current=va;var Ca=ra(Aa,Aa?xa:ya,!1,fa);Ca&&fa.preventDefault(),clearInterval(ca.current),Ca&&(ca.current=setInterval(function(){Aa?xa*=SMOOTH_PTG:ya*=SMOOTH_PTG;var Sa=Math.floor(Aa?xa:ya);(!ra(Aa,Sa,!0)||Math.abs(Sa)<=.1)&&clearInterval(ca.current)},16))}},pa=function(){oa.current=!1,ua()},ha=function(fa){ua(),fa.touches.length===1&&!oa.current&&(oa.current=!0,aa.current=Math.ceil(fa.touches[0].pageX),sa.current=Math.ceil(fa.touches[0].pageY),la.current=fa.target,la.current.addEventListener("touchmove",da,{passive:!1}),la.current.addEventListener("touchend",pa,{passive:!0}))};ua=function(){la.current&&(la.current.removeEventListener("touchmove",da),la.current.removeEventListener("touchend",pa))},useLayoutEffect$1(function(){return ea&&na.current.addEventListener("touchstart",ha,{passive:!0}),function(){var ga;(ga=na.current)===null||ga===void 0||ga.removeEventListener("touchstart",ha),ua(),clearInterval(ca.current)}},[ea])}function smoothScrollOffset(ea){return Math.floor(Math.pow(ea,.5))}function getPageXY(ea,na){var ra="touches"in ea?ea.touches[0]:ea;return ra[na?"pageX":"pageY"]-window[na?"scrollX":"scrollY"]}function useScrollDrag(ea,na,ra){reactExports.useEffect(function(){var oa=na.current;if(ea&&oa){var aa=!1,sa,la,ca=function(){wrapperRaf.cancel(sa)},ua=function ga(){ca(),sa=wrapperRaf(function(){ra(la),ga()})},da=function(fa){if(!fa.target.draggable){var ma=fa;ma._virtualHandled||(ma._virtualHandled=!0,aa=!0)}},pa=function(){aa=!1,ca()},ha=function(fa){if(aa){var ma=getPageXY(fa,!1),va=oa.getBoundingClientRect(),xa=va.top,ya=va.bottom;if(ma<=xa){var Aa=xa-ma;la=-smoothScrollOffset(Aa),ua()}else if(ma>=ya){var Ca=ma-ya;la=smoothScrollOffset(Ca),ua()}else ca()}};return oa.addEventListener("mousedown",da),oa.ownerDocument.addEventListener("mouseup",pa),oa.ownerDocument.addEventListener("mousemove",ha),function(){oa.removeEventListener("mousedown",da),oa.ownerDocument.removeEventListener("mouseup",pa),oa.ownerDocument.removeEventListener("mousemove",ha),ca()}}},[ea])}var MAX_TIMES=10;function useScrollTo(ea,na,ra,oa,aa,sa,la,ca){var ua=reactExports.useRef(),da=reactExports.useState(null),pa=_slicedToArray(da,2),ha=pa[0],ga=pa[1];return useLayoutEffect$1(function(){if(ha&&ha.times<MAX_TIMES){if(!ea.current){ga(function(Ha){return _objectSpread2$1({},Ha)});return}sa();var fa=ha.targetAlign,ma=ha.originAlign,va=ha.index,xa=ha.offset,ya=ea.current.clientHeight,Aa=!1,Ca=fa,Sa=null;if(ya){for(var wa=fa||ma,ba=0,Ea=0,$a=0,Ma=Math.min(na.length-1,va),Ia=0;Ia<=Ma;Ia+=1){var Oa=aa(na[Ia]);Ea=ba;var Da=ra.get(Oa);$a=Ea+(Da===void 0?oa:Da),ba=$a}for(var Ta=wa==="top"?xa:ya-xa,_a=Ma;_a>=0;_a-=1){var La=aa(na[_a]),Na=ra.get(La);if(Na===void 0){Aa=!0;break}if(Ta-=Na,Ta<=0)break}switch(wa){case"top":Sa=Ea-xa;break;case"bottom":Sa=$a-ya+xa;break;default:{var za=ea.current.scrollTop,Fa=za+ya;Ea<za?Ca="top":$a>Fa&&(Ca="bottom")}}Sa!==null&&la(Sa),Sa!==ha.lastTop&&(Aa=!0)}Aa&&ga(_objectSpread2$1(_objectSpread2$1({},ha),{},{times:ha.times+1,targetAlign:Ca,lastTop:Sa}))}},[ha,ea.current]),function(fa){if(fa==null){ca();return}if(wrapperRaf.cancel(ua.current),typeof fa=="number")la(fa);else if(fa&&_typeof$3(fa)==="object"){var ma,va=fa.align;"index"in fa?ma=fa.index:ma=na.findIndex(function(Aa){return aa(Aa)===fa.key});var xa=fa.offset,ya=xa===void 0?0:xa;ga({times:0,index:ma,offset:ya,originAlign:va})}}}var ScrollBar=reactExports.forwardRef(function(ea,na){var ra=ea.prefixCls,oa=ea.rtl,aa=ea.scrollOffset,sa=ea.scrollRange,la=ea.onStartMove,ca=ea.onStopMove,ua=ea.onScroll,da=ea.horizontal,pa=ea.spinSize,ha=ea.containerSize,ga=ea.style,fa=ea.thumbStyle,ma=ea.showScrollBar,va=reactExports.useState(!1),xa=_slicedToArray(va,2),ya=xa[0],Aa=xa[1],Ca=reactExports.useState(null),Sa=_slicedToArray(Ca,2),wa=Sa[0],ba=Sa[1],Ea=reactExports.useState(null),$a=_slicedToArray(Ea,2),Ma=$a[0],Ia=$a[1],Oa=!oa,Da=reactExports.useRef(),Ta=reactExports.useRef(),_a=reactExports.useState(ma),La=_slicedToArray(_a,2),Na=La[0],za=La[1],Fa=reactExports.useRef(),Ha=function(){ma===!0||ma===!1||(clearTimeout(Fa.current),za(!0),Fa.current=setTimeout(function(){za(!1)},3e3))},Va=sa-ha||0,Ua=ha-pa||0,Qa=reactExports.useMemo(function(){if(aa===0||Va===0)return 0;var rl=aa/Va;return rl*Ua},[aa,Va,Ua]),Wa=function(sl){sl.stopPropagation(),sl.preventDefault()},Za=reactExports.useRef({top:Qa,dragging:ya,pageY:wa,startTop:Ma});Za.current={top:Qa,dragging:ya,pageY:wa,startTop:Ma};var Xa=function(sl){Aa(!0),ba(getPageXY(sl,da)),Ia(Za.current.top),la(),sl.stopPropagation(),sl.preventDefault()};reactExports.useEffect(function(){var rl=function(ml){ml.preventDefault()},sl=Da.current,dl=Ta.current;return sl.addEventListener("touchstart",rl,{passive:!1}),dl.addEventListener("touchstart",Xa,{passive:!1}),function(){sl.removeEventListener("touchstart",rl),dl.removeEventListener("touchstart",Xa)}},[]);var tl=reactExports.useRef();tl.current=Va;var il=reactExports.useRef();il.current=Ua,reactExports.useEffect(function(){if(ya){var rl,sl=function(ml){var Rl=Za.current,Tl=Rl.dragging,Il=Rl.pageY,Ol=Rl.startTop;wrapperRaf.cancel(rl);var Fl=Da.current.getBoundingClientRect(),Vl=ha/(da?Fl.width:Fl.height);if(Tl){var Wl=(getPageXY(ml,da)-Il)*Vl,vl=Ol;!Oa&&da?vl-=Wl:vl+=Wl;var kl=tl.current,zl=il.current,Al=zl?vl/zl:0,gl=Math.ceil(Al*kl);gl=Math.max(gl,0),gl=Math.min(gl,kl),rl=wrapperRaf(function(){ua(gl,da)})}},dl=function(){Aa(!1),ca()};return window.addEventListener("mousemove",sl,{passive:!0}),window.addEventListener("touchmove",sl,{passive:!0}),window.addEventListener("mouseup",dl,{passive:!0}),window.addEventListener("touchend",dl,{passive:!0}),function(){window.removeEventListener("mousemove",sl),window.removeEventListener("touchmove",sl),window.removeEventListener("mouseup",dl),window.removeEventListener("touchend",dl),wrapperRaf.cancel(rl)}}},[ya]),reactExports.useEffect(function(){return Ha(),function(){clearTimeout(Fa.current)}},[aa]),reactExports.useImperativeHandle(na,function(){return{delayHidden:Ha}});var Ja="".concat(ra,"-scrollbar"),nl={position:"absolute",visibility:Na?null:"hidden"},Ya={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return da?(nl.height=8,nl.left=0,nl.right=0,nl.bottom=0,Ya.height="100%",Ya.width=pa,Oa?Ya.left=Qa:Ya.right=Qa):(nl.width=8,nl.top=0,nl.bottom=0,Oa?nl.right=0:nl.left=0,Ya.width="100%",Ya.height=pa,Ya.top=Qa),reactExports.createElement("div",{ref:Da,className:classnames(Ja,_defineProperty$8(_defineProperty$8(_defineProperty$8({},"".concat(Ja,"-horizontal"),da),"".concat(Ja,"-vertical"),!da),"".concat(Ja,"-visible"),Na)),style:_objectSpread2$1(_objectSpread2$1({},nl),ga),onMouseDown:Wa,onMouseMove:Ha},reactExports.createElement("div",{ref:Ta,className:classnames("".concat(Ja,"-thumb"),_defineProperty$8({},"".concat(Ja,"-thumb-moving"),ya)),style:_objectSpread2$1(_objectSpread2$1({},Ya),fa),onMouseDown:Xa}))}),MIN_SIZE=20;function getSpinSize(){var ea=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ra=ea/na*ea;return isNaN(ra)&&(ra=0),ra=Math.max(ra,MIN_SIZE),Math.floor(ra)}var _excluded$4=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(ea,na){var ra=ea.prefixCls,oa=ra===void 0?"rc-virtual-list":ra,aa=ea.className,sa=ea.height,la=ea.itemHeight,ca=ea.fullHeight,ua=ca===void 0?!0:ca,da=ea.style,pa=ea.data,ha=ea.children,ga=ea.itemKey,fa=ea.virtual,ma=ea.direction,va=ea.scrollWidth,xa=ea.component,ya=xa===void 0?"div":xa,Aa=ea.onScroll,Ca=ea.onVirtualScroll,Sa=ea.onVisibleChange,wa=ea.innerProps,ba=ea.extraRender,Ea=ea.styles,$a=ea.showScrollBar,Ma=$a===void 0?"optional":$a,Ia=_objectWithoutProperties$1(ea,_excluded$4),Oa=reactExports.useCallback(function(cc){return typeof ga=="function"?ga(cc):cc?.[ga]},[ga]),Da=useHeights(Oa),Ta=_slicedToArray(Da,4),_a=Ta[0],La=Ta[1],Na=Ta[2],za=Ta[3],Fa=!!(fa!==!1&&sa&&la),Ha=reactExports.useMemo(function(){return Object.values(Na.maps).reduce(function(cc,mc){return cc+mc},0)},[Na.id,Na.maps]),Va=Fa&&pa&&(Math.max(la*pa.length,Ha)>sa||!!va),Ua=ma==="rtl",Qa=classnames(oa,_defineProperty$8({},"".concat(oa,"-rtl"),Ua),aa),Wa=pa||EMPTY_DATA,Za=reactExports.useRef(),Xa=reactExports.useRef(),tl=reactExports.useRef(),il=reactExports.useState(0),Ja=_slicedToArray(il,2),nl=Ja[0],Ya=Ja[1],rl=reactExports.useState(0),sl=_slicedToArray(rl,2),dl=sl[0],pl=sl[1],ml=reactExports.useState(!1),Rl=_slicedToArray(ml,2),Tl=Rl[0],Il=Rl[1],Ol=function(){Il(!0)},Fl=function(){Il(!1)},Vl={getKey:Oa};function Wl(cc){Ya(function(mc){var Dc;typeof cc=="function"?Dc=cc(mc):Dc=cc;var zc=kc(Dc);return Za.current.scrollTop=zc,zc})}var vl=reactExports.useRef({start:0,end:Wa.length}),kl=reactExports.useRef(),zl=useDiffItem(Wa,Oa),Al=_slicedToArray(zl,1),gl=Al[0];kl.current=gl;var xl=reactExports.useMemo(function(){if(!Fa)return{scrollHeight:void 0,start:0,end:Wa.length-1,offset:void 0};if(!Va){var cc;return{scrollHeight:((cc=Xa.current)===null||cc===void 0?void 0:cc.offsetHeight)||0,start:0,end:Wa.length-1,offset:void 0}}for(var mc=0,Dc,zc,gu,qd=Wa.length,rd=0;rd<qd;rd+=1){var Zd=Wa[rd],_d=Oa(Zd),Fu=Na.get(_d),Id=mc+(Fu===void 0?la:Fu);Id>=nl&&Dc===void 0&&(Dc=rd,zc=mc),Id>nl+sa&&gu===void 0&&(gu=rd),mc=Id}return Dc===void 0&&(Dc=0,zc=0,gu=Math.ceil(sa/la)),gu===void 0&&(gu=Wa.length-1),gu=Math.min(gu+1,Wa.length-1),{scrollHeight:mc,start:Dc,end:gu,offset:zc}},[Va,Fa,nl,Wa,za,sa]),Sl=xl.scrollHeight,$l=xl.start,Bl=xl.end,Ul=xl.offset;vl.current.start=$l,vl.current.end=Bl,reactExports.useLayoutEffect(function(){var cc=Na.getRecord();if(cc.size===1){var mc=Array.from(cc)[0],Dc=Oa(Wa[$l]);if(Dc===mc){var zc=Na.get(mc),gu=zc-la;Wl(function(qd){return qd+gu})}}Na.resetRecord()},[Sl]);var ec=reactExports.useState({width:0,height:sa}),Kl=_slicedToArray(ec,2),rc=Kl[0],wl=Kl[1],Ll=function(mc){wl({width:mc.offsetWidth,height:mc.offsetHeight})},ic=reactExports.useRef(),Yl=reactExports.useRef(),gc=reactExports.useMemo(function(){return getSpinSize(rc.width,va)},[rc.width,va]),Rc=reactExports.useMemo(function(){return getSpinSize(rc.height,Sl)},[rc.height,Sl]),Ic=Sl-sa,bc=reactExports.useRef(Ic);bc.current=Ic;function kc(cc){var mc=cc;return Number.isNaN(bc.current)||(mc=Math.min(mc,bc.current)),mc=Math.max(mc,0),mc}var Kc=nl<=0,Tc=nl>=Ic,ac=dl<=0,sc=dl>=va,dc=useOriginScroll(Kc,Tc,ac,sc),Pc=function(){return{x:Ua?-dl:dl,y:nl}},qc=reactExports.useRef(Pc()),uc=useEvent$1(function(cc){if(Ca){var mc=_objectSpread2$1(_objectSpread2$1({},Pc()),cc);(qc.current.x!==mc.x||qc.current.y!==mc.y)&&(Ca(mc),qc.current=mc)}});function lc(cc,mc){var Dc=cc;mc?(reactDomExports.flushSync(function(){pl(Dc)}),uc()):Wl(Dc)}function hc(cc){var mc=cc.currentTarget.scrollTop;mc!==nl&&Wl(mc),Aa?.(cc),uc()}var pc=function(mc){var Dc=mc,zc=va?va-rc.width:0;return Dc=Math.max(Dc,0),Dc=Math.min(Dc,zc),Dc},xc=useEvent$1(function(cc,mc){mc?(reactDomExports.flushSync(function(){pl(function(Dc){var zc=Dc+(Ua?-cc:cc);return pc(zc)})}),uc()):Wl(function(Dc){var zc=Dc+cc;return zc})}),Gc=useFrameWheel(Fa,Kc,Tc,ac,sc,!!va,xc),Lu=_slicedToArray(Gc,2),vu=Lu[0],ju=Lu[1];useMobileTouchMove(Fa,Za,function(cc,mc,Dc,zc){var gu=zc;return dc(cc,mc,Dc)?!1:!gu||!gu._virtualHandled?(gu&&(gu._virtualHandled=!0),vu({preventDefault:function(){},deltaX:cc?mc:0,deltaY:cc?0:mc}),!0):!1}),useScrollDrag(Va,Za,function(cc){Wl(function(mc){return mc+cc})}),useLayoutEffect$1(function(){function cc(Dc){var zc=Kc&&Dc.detail<0,gu=Tc&&Dc.detail>0;Fa&&!zc&&!gu&&Dc.preventDefault()}var mc=Za.current;return mc.addEventListener("wheel",vu,{passive:!1}),mc.addEventListener("DOMMouseScroll",ju,{passive:!0}),mc.addEventListener("MozMousePixelScroll",cc,{passive:!1}),function(){mc.removeEventListener("wheel",vu),mc.removeEventListener("DOMMouseScroll",ju),mc.removeEventListener("MozMousePixelScroll",cc)}},[Fa,Kc,Tc]),useLayoutEffect$1(function(){if(va){var cc=pc(dl);pl(cc),uc({x:cc})}},[rc.width,va]);var su=function(){var mc,Dc;(mc=ic.current)===null||mc===void 0||mc.delayHidden(),(Dc=Yl.current)===null||Dc===void 0||Dc.delayHidden()},uu=useScrollTo(Za,Wa,Na,la,Oa,function(){return La(!0)},Wl,su);reactExports.useImperativeHandle(na,function(){return{nativeElement:tl.current,getScrollInfo:Pc,scrollTo:function(mc){function Dc(zc){return zc&&_typeof$3(zc)==="object"&&("left"in zc||"top"in zc)}Dc(mc)?(mc.left!==void 0&&pl(pc(mc.left)),uu(mc.top)):uu(mc)}}}),useLayoutEffect$1(function(){if(Sa){var cc=Wa.slice($l,Bl+1);Sa(cc,Wa)}},[$l,Bl,Wa]);var Bu=useGetSize(Wa,Oa,Na,la),Qu=ba?.({start:$l,end:Bl,virtual:Va,offsetX:dl,offsetY:Ul,rtl:Ua,getSize:Bu}),wd=useChildren(Wa,$l,Bl,va,dl,_a,ha,Vl),Tu=null;sa&&(Tu=_objectSpread2$1(_defineProperty$8({},ua?"height":"maxHeight",sa),ScrollStyle),Fa&&(Tu.overflowY="hidden",va&&(Tu.overflowX="hidden"),Tl&&(Tu.pointerEvents="none")));var Ju={};return Ua&&(Ju.dir="rtl"),reactExports.createElement("div",_extends$5({ref:tl,style:_objectSpread2$1(_objectSpread2$1({},da),{},{position:"relative"}),className:Qa},Ju,Ia),reactExports.createElement(RefResizeObserver,{onResize:Ll},reactExports.createElement(ya,{className:"".concat(oa,"-holder"),style:Tu,ref:Za,onScroll:hc,onMouseEnter:su},reactExports.createElement(Filler,{prefixCls:oa,height:Sl,offsetX:dl,offsetY:Ul,scrollWidth:va,onInnerResize:La,ref:Xa,innerProps:wa,rtl:Ua,extra:Qu},wd))),Va&&Sl>sa&&reactExports.createElement(ScrollBar,{ref:ic,prefixCls:oa,scrollOffset:nl,scrollRange:Sl,rtl:Ua,onScroll:lc,onStartMove:Ol,onStopMove:Fl,spinSize:Rc,containerSize:rc.height,style:Ea?.verticalScrollBar,thumbStyle:Ea?.verticalScrollBarThumb,showScrollBar:Ma}),Va&&va>rc.width&&reactExports.createElement(ScrollBar,{ref:Yl,prefixCls:oa,scrollOffset:dl,scrollRange:va,rtl:Ua,onScroll:lc,onStartMove:Ol,onStopMove:Fl,spinSize:gc,containerSize:rc.width,horizontal:!0,style:Ea?.horizontalScrollBar,thumbStyle:Ea?.horizontalScrollBarThumb,showScrollBar:Ma}))}var List$1=reactExports.forwardRef(RawList);List$1.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$3=["disabled","title","children","style","className"];function isTitleType(ea){return typeof ea=="string"||typeof ea=="number"}var OptionList=function(na,ra){var oa=useBaseProps(),aa=oa.prefixCls,sa=oa.id,la=oa.open,ca=oa.multiple,ua=oa.mode,da=oa.searchValue,pa=oa.toggleOpen,ha=oa.notFoundContent,ga=oa.onPopupScroll,fa=reactExports.useContext(SelectContext),ma=fa.maxCount,va=fa.flattenOptions,xa=fa.onActiveValue,ya=fa.defaultActiveFirstOption,Aa=fa.onSelect,Ca=fa.menuItemSelectedIcon,Sa=fa.rawValues,wa=fa.fieldNames,ba=fa.virtual,Ea=fa.direction,$a=fa.listHeight,Ma=fa.listItemHeight,Ia=fa.optionRender,Oa="".concat(aa,"-item"),Da=useMemo(function(){return va},[la,va],function(rl,sl){return sl[0]&&rl[1]!==sl[1]}),Ta=reactExports.useRef(null),_a=reactExports.useMemo(function(){return ca&&isValidCount(ma)&&Sa?.size>=ma},[ca,ma,Sa?.size]),La=function(sl){sl.preventDefault()},Na=function(sl){var dl;(dl=Ta.current)===null||dl===void 0||dl.scrollTo(typeof sl=="number"?{index:sl}:sl)},za=reactExports.useCallback(function(rl){return ua==="combobox"?!1:Sa.has(rl)},[ua,_toConsumableArray(Sa).toString(),Sa.size]),Fa=function(sl){for(var dl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pl=Da.length,ml=0;ml<pl;ml+=1){var Rl=(sl+ml*dl+pl)%pl,Tl=Da[Rl]||{},Il=Tl.group,Ol=Tl.data;if(!Il&&!(Ol!=null&&Ol.disabled)&&(za(Ol.value)||!_a))return Rl}return-1},Ha=reactExports.useState(function(){return Fa(0)}),Va=_slicedToArray(Ha,2),Ua=Va[0],Qa=Va[1],Wa=function(sl){var dl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qa(sl);var pl={source:dl?"keyboard":"mouse"},ml=Da[sl];if(!ml){xa(null,-1,pl);return}xa(ml.value,sl,pl)};reactExports.useEffect(function(){Wa(ya!==!1?Fa(0):-1)},[Da.length,da]);var Za=reactExports.useCallback(function(rl){return ua==="combobox"?String(rl).toLowerCase()===da.toLowerCase():Sa.has(rl)},[ua,da,_toConsumableArray(Sa).toString(),Sa.size]);reactExports.useEffect(function(){var rl=setTimeout(function(){if(!ca&&la&&Sa.size===1){var dl=Array.from(Sa)[0],pl=Da.findIndex(function(ml){var Rl=ml.data;return Rl.value===dl});pl!==-1&&(Wa(pl),Na(pl))}});if(la){var sl;(sl=Ta.current)===null||sl===void 0||sl.scrollTo(void 0)}return function(){return clearTimeout(rl)}},[la,da]);var Xa=function(sl){sl!==void 0&&Aa(sl,{selected:!Sa.has(sl)}),ca||pa(!1)};if(reactExports.useImperativeHandle(ra,function(){return{onKeyDown:function(sl){var dl=sl.which,pl=sl.ctrlKey;switch(dl){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var ml=0;if(dl===KeyCode.UP?ml=-1:dl===KeyCode.DOWN?ml=1:isPlatformMac()&&pl&&(dl===KeyCode.N?ml=1:dl===KeyCode.P&&(ml=-1)),ml!==0){var Rl=Fa(Ua+ml,ml);Na(Rl),Wa(Rl,!0)}break}case KeyCode.TAB:case KeyCode.ENTER:{var Tl,Il=Da[Ua];Il&&!(Il!=null&&(Tl=Il.data)!==null&&Tl!==void 0&&Tl.disabled)&&!_a?Xa(Il.value):Xa(void 0),la&&sl.preventDefault();break}case KeyCode.ESC:pa(!1),la&&sl.stopPropagation()}},onKeyUp:function(){},scrollTo:function(sl){Na(sl)}}}),Da.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(sa,"_list"),className:"".concat(Oa,"-empty"),onMouseDown:La},ha);var tl=Object.keys(wa).map(function(rl){return wa[rl]}),il=function(sl){return sl.label};function Ja(rl,sl){var dl=rl.group;return{role:dl?"presentation":"option",id:"".concat(sa,"_list_").concat(sl)}}var nl=function(sl){var dl=Da[sl];if(!dl)return null;var pl=dl.data||{},ml=pl.value,Rl=dl.group,Tl=pickAttrs(pl,!0),Il=il(dl);return dl?reactExports.createElement("div",_extends$5({"aria-label":typeof Il=="string"&&!Rl?Il:null},Tl,{key:sl},Ja(dl,sl),{"aria-selected":Za(ml)}),ml):null},Ya={role:"listbox",id:"".concat(sa,"_list")};return reactExports.createElement(reactExports.Fragment,null,ba&&reactExports.createElement("div",_extends$5({},Ya,{style:{height:0,width:0,overflow:"hidden"}}),nl(Ua-1),nl(Ua),nl(Ua+1)),reactExports.createElement(List$1,{itemKey:"key",ref:Ta,data:Da,height:$a,itemHeight:Ma,fullHeight:!1,onMouseDown:La,onScroll:ga,virtual:ba,direction:Ea,innerProps:ba?null:Ya},function(rl,sl){var dl=rl.group,pl=rl.groupOption,ml=rl.data,Rl=rl.label,Tl=rl.value,Il=ml.key;if(dl){var Ol,Fl=(Ol=ml.title)!==null&&Ol!==void 0?Ol:isTitleType(Rl)?Rl.toString():void 0;return reactExports.createElement("div",{className:classnames(Oa,"".concat(Oa,"-group"),ml.className),title:Fl},Rl!==void 0?Rl:Il)}var Vl=ml.disabled,Wl=ml.title;ml.children;var vl=ml.style,kl=ml.className,zl=_objectWithoutProperties$1(ml,_excluded$3),Al=omit$1(zl,tl),gl=za(Tl),xl=Vl||!gl&&_a,Sl="".concat(Oa,"-option"),$l=classnames(Oa,Sl,kl,_defineProperty$8(_defineProperty$8(_defineProperty$8(_defineProperty$8({},"".concat(Sl,"-grouped"),pl),"".concat(Sl,"-active"),Ua===sl&&!xl),"".concat(Sl,"-disabled"),xl),"".concat(Sl,"-selected"),gl)),Bl=il(rl),Ul=!Ca||typeof Ca=="function"||gl,ec=typeof Bl=="number"?Bl:Bl||Tl,Kl=isTitleType(ec)?ec.toString():void 0;return Wl!==void 0&&(Kl=Wl),reactExports.createElement("div",_extends$5({},pickAttrs(Al),ba?{}:Ja(rl,sl),{"aria-selected":Za(Tl),className:$l,title:Kl,onMouseMove:function(){Ua===sl||xl||Wa(sl)},onClick:function(){xl||Xa(Tl)},style:vl}),reactExports.createElement("div",{className:"".concat(Sl,"-content")},typeof Ia=="function"?Ia(rl,{index:sl}):ec),reactExports.isValidElement(Ca)||gl,Ul&&reactExports.createElement(TransBtn,{className:"".concat(Oa,"-option-state"),customizeIcon:Ca,customizeIconProps:{value:Tl,disabled:xl,isSelected:gl}},gl?"✓":null))}))},RefOptionList=reactExports.forwardRef(OptionList);const useCache=function(ea,na){var ra=reactExports.useRef({values:new Map,options:new Map}),oa=reactExports.useMemo(function(){var sa=ra.current,la=sa.values,ca=sa.options,ua=ea.map(function(ha){if(ha.label===void 0){var ga;return _objectSpread2$1(_objectSpread2$1({},ha),{},{label:(ga=la.get(ha.value))===null||ga===void 0?void 0:ga.label})}return ha}),da=new Map,pa=new Map;return ua.forEach(function(ha){da.set(ha.value,ha),pa.set(ha.value,na.get(ha.value)||ca.get(ha.value))}),ra.current.values=da,ra.current.options=pa,ua},[ea,na]),aa=reactExports.useCallback(function(sa){return na.get(sa)||ra.current.options.get(sa)},[na]);return[oa,aa]};function includes(ea,na){return toArray$3(ea).join("").toUpperCase().includes(na)}const useFilterOptions=function(ea,na,ra,oa,aa){return reactExports.useMemo(function(){if(!ra||oa===!1)return ea;var sa=na.options,la=na.label,ca=na.value,ua=[],da=typeof oa=="function",pa=ra.toUpperCase(),ha=da?oa:function(fa,ma){return aa?includes(ma[aa],pa):ma[sa]?includes(ma[la!=="children"?la:"label"],pa):includes(ma[ca],pa)},ga=da?function(fa){return injectPropsWithOption(fa)}:function(fa){return fa};return ea.forEach(function(fa){if(fa[sa]){var ma=ha(ra,ga(fa));if(ma)ua.push(fa);else{var va=fa[sa].filter(function(xa){return ha(ra,ga(xa))});va.length&&ua.push(_objectSpread2$1(_objectSpread2$1({},fa),{},_defineProperty$8({},sa,va)))}return}ha(ra,ga(fa))&&ua.push(fa)}),ua},[ea,oa,aa,ra,na])};var uuid$1=0,isBrowserClient=canUseDom$1();function getUUID(){var ea;return isBrowserClient?(ea=uuid$1,uuid$1+=1):ea="TEST_OR_SSR",ea}function useId$1(ea){var na=reactExports.useState(),ra=_slicedToArray(na,2),oa=ra[0],aa=ra[1];return reactExports.useEffect(function(){aa("rc_select_".concat(getUUID()))},[]),ea||oa}var _excluded$2=["children","value"],_excluded2=["children"];function convertNodeToOption(ea){var na=ea,ra=na.key,oa=na.props,aa=oa.children,sa=oa.value,la=_objectWithoutProperties$1(oa,_excluded$2);return _objectSpread2$1({key:ra,value:sa!==void 0?sa:ra,children:aa},la)}function convertChildrenToData(ea){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$4(ea).map(function(ra,oa){if(!reactExports.isValidElement(ra)||!ra.type)return null;var aa=ra,sa=aa.type.isSelectOptGroup,la=aa.key,ca=aa.props,ua=ca.children,da=_objectWithoutProperties$1(ca,_excluded2);return na||!sa?convertNodeToOption(ra):_objectSpread2$1(_objectSpread2$1({key:"__RC_SELECT_GRP__".concat(la===null?oa:la,"__"),label:la},da),{},{options:convertChildrenToData(ua)})}).filter(function(ra){return ra})}var useOptions=function(na,ra,oa,aa,sa){return reactExports.useMemo(function(){var la=na,ca=!na;ca&&(la=convertChildrenToData(ra));var ua=new Map,da=new Map,pa=function(fa,ma,va){va&&typeof va=="string"&&fa.set(ma[va],ma)},ha=function ga(fa){for(var ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,va=0;va<fa.length;va+=1){var xa=fa[va];!xa[oa.options]||ma?(ua.set(xa[oa.value],xa),pa(da,xa,oa.label),pa(da,xa,aa),pa(da,xa,sa)):ga(xa[oa.options],!0)}};return ha(la),{options:la,valueOptions:ua,labelOptions:da}},[na,ra,oa,aa,sa])};function useRefFunc(ea){var na=reactExports.useRef();na.current=ea;var ra=reactExports.useCallback(function(){return na.current.apply(na,arguments)},[]);return ra}var _excluded$1=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue(ea){return!ea||_typeof$3(ea)!=="object"}var Select$2=reactExports.forwardRef(function(ea,na){var ra=ea.id,oa=ea.mode,aa=ea.prefixCls,sa=aa===void 0?"rc-select":aa,la=ea.backfill,ca=ea.fieldNames,ua=ea.inputValue,da=ea.searchValue,pa=ea.onSearch,ha=ea.autoClearSearchValue,ga=ha===void 0?!0:ha,fa=ea.onSelect,ma=ea.onDeselect,va=ea.dropdownMatchSelectWidth,xa=va===void 0?!0:va,ya=ea.filterOption,Aa=ea.filterSort,Ca=ea.optionFilterProp,Sa=ea.optionLabelProp,wa=ea.options,ba=ea.optionRender,Ea=ea.children,$a=ea.defaultActiveFirstOption,Ma=ea.menuItemSelectedIcon,Ia=ea.virtual,Oa=ea.direction,Da=ea.listHeight,Ta=Da===void 0?200:Da,_a=ea.listItemHeight,La=_a===void 0?20:_a,Na=ea.labelRender,za=ea.value,Fa=ea.defaultValue,Ha=ea.labelInValue,Va=ea.onChange,Ua=ea.maxCount,Qa=_objectWithoutProperties$1(ea,_excluded$1),Wa=useId$1(ra),Za=isMultiple(oa),Xa=!!(!wa&&Ea),tl=reactExports.useMemo(function(){return ya===void 0&&oa==="combobox"?!1:ya},[ya,oa]),il=reactExports.useMemo(function(){return fillFieldNames(ca,Xa)},[JSON.stringify(ca),Xa]),Ja=useMergedState("",{value:da!==void 0?da:ua,postState:function(lc){return lc||""}}),nl=_slicedToArray(Ja,2),Ya=nl[0],rl=nl[1],sl=useOptions(wa,Ea,il,Ca,Sa),dl=sl.valueOptions,pl=sl.labelOptions,ml=sl.options,Rl=reactExports.useCallback(function(uc){var lc=toArray$3(uc);return lc.map(function(hc){var pc,xc,Gc,Lu,vu;if(isRawValue(hc))pc=hc;else{var ju;Gc=hc.key,xc=hc.label,pc=(ju=hc.value)!==null&&ju!==void 0?ju:Gc}var su=dl.get(pc);if(su){var uu;xc===void 0&&(xc=su?.[Sa||il.label]),Gc===void 0&&(Gc=(uu=su?.key)!==null&&uu!==void 0?uu:pc),Lu=su?.disabled,vu=su?.title}return{label:xc,value:pc,key:Gc,disabled:Lu,title:vu}})},[il,Sa,dl]),Tl=useMergedState(Fa,{value:za}),Il=_slicedToArray(Tl,2),Ol=Il[0],Fl=Il[1],Vl=reactExports.useMemo(function(){var uc,lc=Za&&Ol===null?[]:Ol,hc=Rl(lc);return oa==="combobox"&&isComboNoValue((uc=hc[0])===null||uc===void 0?void 0:uc.value)?[]:hc},[Ol,Rl,oa,Za]),Wl=useCache(Vl,dl),vl=_slicedToArray(Wl,2),kl=vl[0],zl=vl[1],Al=reactExports.useMemo(function(){if(!oa&&kl.length===1){var uc=kl[0];if(uc.value===null&&(uc.label===null||uc.label===void 0))return[]}return kl.map(function(lc){var hc;return _objectSpread2$1(_objectSpread2$1({},lc),{},{label:(hc=typeof Na=="function"?Na(lc):lc.label)!==null&&hc!==void 0?hc:lc.value})})},[oa,kl,Na]),gl=reactExports.useMemo(function(){return new Set(kl.map(function(uc){return uc.value}))},[kl]);reactExports.useEffect(function(){if(oa==="combobox"){var uc,lc=(uc=kl[0])===null||uc===void 0?void 0:uc.value;rl(hasValue(lc)?String(lc):"")}},[kl]);var xl=useRefFunc(function(uc,lc){var hc=lc??uc;return _defineProperty$8(_defineProperty$8({},il.value,uc),il.label,hc)}),Sl=reactExports.useMemo(function(){if(oa!=="tags")return ml;var uc=_toConsumableArray(ml),lc=function(pc){return dl.has(pc)};return _toConsumableArray(kl).sort(function(hc,pc){return hc.value<pc.value?-1:1}).forEach(function(hc){var pc=hc.value;lc(pc)||uc.push(xl(pc,hc.label))}),uc},[xl,ml,dl,kl,oa]),$l=useFilterOptions(Sl,il,Ya,tl,Ca),Bl=reactExports.useMemo(function(){return oa!=="tags"||!Ya||$l.some(function(uc){return uc[Ca||"value"]===Ya})||$l.some(function(uc){return uc[il.value]===Ya})?$l:[xl(Ya)].concat(_toConsumableArray($l))},[xl,Ca,oa,$l,Ya,il]),Ul=function uc(lc){var hc=_toConsumableArray(lc).sort(function(pc,xc){return Aa(pc,xc,{searchValue:Ya})});return hc.map(function(pc){return Array.isArray(pc.options)?_objectSpread2$1(_objectSpread2$1({},pc),{},{options:pc.options.length>0?uc(pc.options):pc.options}):pc})},ec=reactExports.useMemo(function(){return Aa?Ul(Bl):Bl},[Bl,Aa,Ya]),Kl=reactExports.useMemo(function(){return flattenOptions(ec,{fieldNames:il,childrenAsData:Xa})},[ec,il,Xa]),rc=function(lc){var hc=Rl(lc);if(Fl(hc),Va&&(hc.length!==kl.length||hc.some(function(Gc,Lu){var vu;return((vu=kl[Lu])===null||vu===void 0?void 0:vu.value)!==Gc?.value}))){var pc=Ha?hc:hc.map(function(Gc){return Gc.value}),xc=hc.map(function(Gc){return injectPropsWithOption(zl(Gc.value))});Va(Za?pc:pc[0],Za?xc:xc[0])}},wl=reactExports.useState(null),Ll=_slicedToArray(wl,2),ic=Ll[0],Yl=Ll[1],gc=reactExports.useState(0),Rc=_slicedToArray(gc,2),Ic=Rc[0],bc=Rc[1],kc=$a!==void 0?$a:oa!=="combobox",Kc=reactExports.useCallback(function(uc,lc){var hc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pc=hc.source,xc=pc===void 0?"keyboard":pc;bc(lc),la&&oa==="combobox"&&uc!==null&&xc==="keyboard"&&Yl(String(uc))},[la,oa]),Tc=function(lc,hc,pc){var xc=function(){var Tu,Ju=zl(lc);return[Ha?{label:Ju?.[il.label],value:lc,key:(Tu=Ju?.key)!==null&&Tu!==void 0?Tu:lc}:lc,injectPropsWithOption(Ju)]};if(hc&&fa){var Gc=xc(),Lu=_slicedToArray(Gc,2),vu=Lu[0],ju=Lu[1];fa(vu,ju)}else if(!hc&&ma&&pc!=="clear"){var su=xc(),uu=_slicedToArray(su,2),Bu=uu[0],Qu=uu[1];ma(Bu,Qu)}},ac=useRefFunc(function(uc,lc){var hc,pc=Za?lc.selected:!0;pc?hc=Za?[].concat(_toConsumableArray(kl),[uc]):[uc]:hc=kl.filter(function(xc){return xc.value!==uc}),rc(hc),Tc(uc,pc),oa==="combobox"?Yl(""):(!isMultiple||ga)&&(rl(""),Yl(""))}),sc=function(lc,hc){rc(lc);var pc=hc.type,xc=hc.values;(pc==="remove"||pc==="clear")&&xc.forEach(function(Gc){Tc(Gc.value,!1,pc)})},dc=function(lc,hc){if(rl(lc),Yl(null),hc.source==="submit"){var pc=(lc||"").trim();if(pc){var xc=Array.from(new Set([].concat(_toConsumableArray(gl),[pc])));rc(xc),Tc(pc,!0),rl("")}return}hc.source!=="blur"&&(oa==="combobox"&&rc(lc),pa?.(lc))},Pc=function(lc){var hc=lc;oa!=="tags"&&(hc=lc.map(function(xc){var Gc=pl.get(xc);return Gc?.value}).filter(function(xc){return xc!==void 0}));var pc=Array.from(new Set([].concat(_toConsumableArray(gl),_toConsumableArray(hc))));rc(pc),pc.forEach(function(xc){Tc(xc,!0)})},qc=reactExports.useMemo(function(){var uc=Ia!==!1&&xa!==!1;return _objectSpread2$1(_objectSpread2$1({},sl),{},{flattenOptions:Kl,onActiveValue:Kc,defaultActiveFirstOption:kc,onSelect:ac,menuItemSelectedIcon:Ma,rawValues:gl,fieldNames:il,virtual:uc,direction:Oa,listHeight:Ta,listItemHeight:La,childrenAsData:Xa,maxCount:Ua,optionRender:ba})},[Ua,sl,Kl,Kc,kc,ac,Ma,gl,il,Ia,xa,Oa,Ta,La,Xa,ba]);return reactExports.createElement(SelectContext.Provider,{value:qc},reactExports.createElement(BaseSelect,_extends$5({},Qa,{id:Wa,prefixCls:sa,ref:na,omitDomProps:OMIT_DOM_PROPS,mode:oa,displayValues:Al,onDisplayValuesChange:sc,direction:Oa,searchValue:Ya,onSearch:dc,autoClearSearchValue:ga,onSearchSplit:Pc,dropdownMatchSelectWidth:xa,OptionList:RefOptionList,emptyOptions:!Kl.length,activeValue:ic,activeDescendantId:"".concat(Wa,"_list_").concat(Ic)})))}),TypedSelect=Select$2;TypedSelect.Option=Option$2;TypedSelect.OptGroup=OptGroup;const INDETERMINATE_VALUE="__indeterminate__",isIndeterminate=ea=>ea===INDETERMINATE_VALUE,defaultColors$1Z={background:"#222222",border:"#6A6A6A",color:"#FFFFFF",icon:"#AAAAAA",groupLabel:"#999",hover:{border:"#C4C4C4"},focused:{border:"#C4C4C4"},disabled:{background:"#444444",border:"#6A6A6A",icon:"#6A6A6A"},option:{active:"#AAAAAA",hover:"#4980F5"},multiple:{background:"#444444",removeIcon:"#FFFFFF",hover:{background:"#6A6A6A"}}},colors$1Z={dark:defaultColors$1Z,light:{background:"#FFFFFF",border:"#CACACA",color:"#000000",icon:"#000000",groupLabel:"#999",hover:{border:"#C4C4C4"},focused:{border:"#C4C4C4"},disabled:{background:"#444444",border:"#CACACA",icon:"#CACACA"},option:{active:"#aaaaaa",hover:"#CACACA"},multiple:{background:"#444444",removeIcon:"#FFFFFF",hover:{background:"#CACACA"}}}},defaultSizing$1J={tiny:{fontSize:"9px",fontWeight:"600",padding:"4px 9px",option:{padding:"3px 9px"},groupLabel:{fontSize:"8px",fontWeight:"400"},multiple:{padding:"2px 4px",border:"3px"}},small:{fontSize:"11px",fontWeight:"600",padding:"5px 9px",option:{padding:"4px 9px"},groupLabel:{fontSize:"8px",fontWeight:"400"},multiple:{padding:"2px 4px",border:"3px"}},medium:{fontSize:"12px",fontWeight:"600",padding:"10px 15px",option:{padding:"5px 15px"},groupLabel:{fontSize:"8px",fontWeight:"400"},multiple:{padding:"2px 4px",border:"3px"}}},sizes$1Z={default:defaultSizing$1J},Scheme$k=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1Z,sizes:sizes$1Z},Symbol.toStringTag,{value:"Module"})),LoadingText=dt$1.span.withConfig({displayName:"DropdownContainer__LoadingText",componentId:"sc-2okhxu-0"})(["display:block;text-align:center;"]),DropdownContainer$1=ea=>{const{className:na,loading:ra,loadingText:oa,children:aa}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[" ",ra?jsxRuntimeExports.jsx(LoadingText,{children:oa}):aa]})},theme$3K=withTheme(Scheme$k),DropdownContainer$2=dt$1(DropdownContainer$1).withConfig({displayName:"DropdownContainer",componentId:"sc-2okhxu-1"})(["padding:5px 0;border-bottom-right-radius:5px;border-bottom-left-radius:5px;border-top:none !important;.rc-select-item-option-state{right:10px;top:50%;transform:translateY(-50%);}.rc-select-item{cursor:pointer;}.rc-select-item-group{text-transform:uppercase;letter-spacing:0.7px;}.rc-select-item-option-selected{pointer-events:none;}"," ",""],theme$3K.colors(ea=>lt$1(["background:",";border:1px solid ",";.rc-select-item-option-active{background:",";}.rc-select-item-option-state{svg{fill:",";}}",",.rc-select-item-option-content,.rc-select-item-empty{color:",";}.rc-select-item-option-selected .rc-select-item-option-content{color:",";}.rc-select-item-option-active.rc-select-item-option-selected .rc-select-item-option-content{color:",";}.rc-select-item-group{color:",";}"],ea.background,ea.border,ea.option.hover,ea.icon,LoadingText,ea.color,ea.option.active,ea.color,ea.groupLabel)),theme$3K.sizes((ea,{size:na="small"})=>lt$1(["",",.rc-select-item-option-content,.rc-select-item-empty{font-size:",";font-weight:",";}.rc-select-item{padding:",";}.rc-select-item-group{:empty{display:none;}font-size:",";}"],LoadingText,ea[na].fontSize,ea[na].fontWeight,ea[na].option.padding,ea[na].groupLabel.fontSize))),SvgArrow$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:7.07,height:4.744,viewBox:"0 0 7.07 4.744",...ea},reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"a"},reactExports.createElement("rect",{className:"a",width:7.07,height:4.744}))),reactExports.createElement("g",{className:"b"},reactExports.createElement("path",{className:"c",d:"M15553.5,9462.451h0l-3.532-3.537,1.206-1.207,2.327,2.327,2.33-2.327,1.207,1.207-3.536,3.537Z",transform:"translate(-15549.965 -9457.707)"}))),SelectLogic=ea=>{const{className:na,value:ra,mode:oa,options:aa,loading:sa,loadingText:la,size:ca="small",disabled:ua,tooltip:da,name:pa,indicatorIcon:ha=SvgArrow$1,...ga}=ea,fa=reactExports.useRef(null),ma=isIndeterminate(ra),{t:va}=useTranslation(),xa=reactExports.useMemo(()=>ma||!aa||!ra?oa==="multiple"?[]:"":ra,[ma,ra,aa,oa]),ya=reactExports.useMemo(()=>{if(!da||ua||sa)return{};const{place:Ea="top",id:$a}=da.options||{};return{"data-tip":da.content,"data-place":Ea,"data-for":$a}},[ua,sa,da]),Aa=reactExports.useCallback(Ea=>jsxRuntimeExports.jsx(DropdownContainer$2,{size:ca,loading:sa,loadingText:la||va("Loading ..."),children:Ea}),[ca,sa,la,va]),Ca=reactExports.useCallback(()=>sa?jsxRuntimeExports.jsx(DotSpinner$1,{size:ca==="medium"?"small":"tiny"}):jsxRuntimeExports.jsx(ha,{}),[sa,ca,ha]),Sa=reactExports.useCallback(Ea=>{Ea.stopPropagation()},[]),wa=reactExports.useCallback(()=>fa.current||document.body,[]),ba=reactExports.useCallback((Ea,$a)=>$a.label.toLowerCase().includes(Ea.toLowerCase()),[]);return jsxRuntimeExports.jsxs("div",{className:na,ref:fa,children:[pa&&jsxRuntimeExports.jsx("input",{type:"hidden",value:xa,name:pa}),jsxRuntimeExports.jsx(TypedSelect,{dropdownAlign:{offset:[0,0],overflow:{adjustY:!1,adjustX:!1}},value:xa,options:aa,placeholder:ma?"—":va("Select..."),notFoundContent:va("No result"),loading:sa,mode:oa,menuItemSelectedIcon:null,disabled:ua,dropdownRender:Aa,suffixIcon:Ca,onMouseDown:Sa,getPopupContainer:wa,filterOption:ba,...ga,...ya})]})},theme$3J=withTheme(Scheme$k),SelectLogic$1=dt$1(SelectLogic).withConfig({displayName:"SelectLogic",componentId:"sc-8xty5u-0"})([".rc-select{width:100%;.rc-select-selection-search .rc-select-selection-search-input{background:transparent;","}.rc-select-selection-wrap{display:flex;align-items:center;}.rc-select-selection-item{left:auto;top:auto;}.rc-select-selector{align-items:center;border-radius:5px;}.rc-select-arrow{display:flex;align-items:center;position:absolute;top:50%;right:9px;transform:translateY(-50%);}&.rc-select-open .rc-select-selector{border-bottom-right-radius:0;border-bottom-left-radius:0;}&.rc-select-disabled{border:none;cursor:auto;.rc-select-selection-search-input{cursor:auto;}}}.rc-select-focused.rc-select-single.rc-select-show-search.rc-select-open{.rc-select-selection-item{opacity:0.2;}}"," ",""],ea=>!ea.showSearch&&lt$1(["cursor:pointer;"]),theme$3J.colors(ea=>lt$1([".rc-select{.rc-select-selector{background:",";border:1px solid ",";color:",";&:hover{border:1px solid ",";}}.rc-select-arrow svg{fill:",";}.rc-select-selection-search input{color:",";}}&.rc-select-focused{.rc-select-selector{border:1px solid "," !important;}.rc-select-selection-item{opacity:0.2;}}&.rc-select-disabled{background:",";border:1px solid ",";&:hover .rc-select-selector{border:1px solid ",";}.rc-select-arrow svg{fill:",";}}"],ea.background,ea.border,ea.color,ea.hover.border,ea.icon,ea.color,ea.focused.border,ea.disabled.background,ea.disabled.border,ea.disabled.border,ea.disabled.icon)),theme$3J.sizes((ea,{size:na="small"})=>lt$1([".rc-select{font-size:",";font-weight:",";.rc-select-selection-search input{font-size:",";font-weight:",";}.rc-select-selector{padding:",";}}"],ea[na].fontSize,ea[na].fontWeight,ea[na].fontSize,ea[na].fontWeight,ea[na].padding))),Select=ea=>jsxRuntimeExports.jsx(SelectLogic$1,{...ea}),Select$1=dt$1(Select).withConfig({displayName:"Select",componentId:"sc-7jny03-0"})([""]),userTiers=new Map;userTiers.set(Tiers.FREE,0);userTiers.set(Tiers.LEGACY_FREE,2);userTiers.set(Tiers.EARLY,10);userTiers.set(Tiers.PRO,20);userTiers.set(Tiers.CREATOR,30);const UserTiersContext=React.createContext({tiers:new Map,userTier:Tiers.FREE,setTiers:()=>{},setUserTier:()=>{}}),checkUserTierPermission=(ea,na,ra)=>{if(!ra.has(ea))return!0;if(!ra.has(na))return!1;const oa=ra.get(ea);return ra.get(na)>=oa},useUserTierAuth=ea=>{const{tiers:na,userTier:ra}=reactExports.useContext(UserTiersContext);return ea===void 0?oa=>checkUserTierPermission(oa,ra,na):checkUserTierPermission(ea,ra,na)},useUserTierAuthCallback=()=>{const{tiers:ea,userTier:na}=reactExports.useContext(UserTiersContext);return ra=>checkUserTierPermission(ra,na,ea)},UserTiersProvider=({children:ea})=>{const[na,ra]=reactExports.useState(userTiers),[oa,aa]=reactExports.useState("");return jsxRuntimeExports.jsx(UserTiersContext.Provider,{value:{tiers:na,userTier:oa,setTiers:ra,setUserTier:aa},children:ea})},defaultColors$1Y={legacy:{color:"#5F5F5F",border:"#5F5F5F"},proCompact:{color:"#FFF",icon:"#FFF",background:"#6A6A6A",hover:{background:"#524438"}},notActivated:{color:"#FFF",icon:"#FFF",background:"#D6231B"},comingSoon:{color:"#FFF",background:"rgba(170, 170, 170, 0.34)"},contentArea:{color:"#FFFFFF",background:"#808080"},pro:{color:"#FFF",icon:"#FFF",background:"#6A6A6A",hover:{background:"#524438"}}},colors$1Y={dark:defaultColors$1Y},defaultSizing$1I={legacy:{border:"2px",fontSize:"11px",fontWeight:"600"},proCompact:{border:"5px",fontSize:"10px",fontWeight:"bold"},notActivated:{border:"2px",fontSize:"10px",fontWeight:"bold"},comingSoon:{border:"2px",fontSize:"10px",fontWeight:"bold"},contentArea:{fontSize:"10px",fontWeight:"bold",borderRadius:"3px"},pro:{border:"5px",fontSize:"10px",fontWeight:"bold"}},sizes$1Y={default:defaultSizing$1I},scheme$1u=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1Y,sizes:sizes$1Y},Symbol.toStringTag,{value:"Module"})),ProBadge=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Icon$4,{shape:GemIcon}),jsxRuntimeExports.jsx(Label$6,{children:na("Pro")})]})},theme$3I=withTheme(scheme$1u),ProBadge$1=dt$1(ProBadge).withConfig({displayName:"Pro",componentId:"sc-f3fq52-0"})(["display:inline-flex;align-items:center;padding:2px 4px;transition:all 150ms ease-out;","{margin-bottom:0;margin-left:3px;line-height:14px;text-transform:uppercase;}","{line-height:0;}"," ",""],Label$6,Icon$4,theme$3I.colors((ea,{isHover:na})=>lt$1(["","{color:",";}","{filter:grayscale(",");}background:",";"],Label$6,ea.pro.color,Icon$4,na?0:100,na?ea.pro.hover.background:ea.pro.background)),theme$3I.sizes(ea=>lt$1(["border-radius:",";","{font-size:",";font-weight:",";}"],ea.pro.border,Label$6,ea.pro.fontSize,ea.pro.fontWeight))),badgeData$2={position:{top:"2px",right:"0"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})},ItemHolder=dt$1.div.withConfig({displayName:"SelectWithBadge__ItemHolder",componentId:"sc-1ikuiyq-0"})(["padding:3px 0;"]),SelectWithBadge=ea=>{const{onBadgeClick:na,...ra}=ea,oa=useUserTierAuthCallback(),aa=reactExports.useCallback((la,ca)=>{la?.stopPropagation(),na?.(ca)},[na]),sa=reactExports.useCallback(la=>oa(la.data.tier)?jsxRuntimeExports.jsx(ItemHolder,{children:la.label}):jsxRuntimeExports.jsx(WithBadge,{symbolsData:badgeData$2,onClick:ca=>aa(ca,la.label),children:jsxRuntimeExports.jsx(ItemHolder,{children:la.label})}),[aa,oa]);return jsxRuntimeExports.jsx(SelectLogic$1,{...ra,optionRender:sa})};dt$1(SelectWithBadge).withConfig({displayName:"SelectWithBadge",componentId:"sc-1ikuiyq-1"})(["z-index:6000;position:relative;","{box-shadow:none !important;}"],BadgeSymbolsWrapper$1);const SvgAction=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,viewBox:"0 0 10 19",...ea},reactExports.createElement("path",{id:"action",d:"M3780.384,1905.227H3776l7-11.227-1.385,7.772H3786L3779,1913Z",transform:"translate(-3776 -1894)"})),SvgAdvanced=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16.566,height:16.642,viewBox:"0 0 16.566 16.642",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19815.5,8309.642a2.5,2.5,0,0,1-1.766-4.265l6.359-6.365a2.492,2.492,0,0,1,.5-.407,3.833,3.833,0,0,1-.047-.6,4,4,0,0,1,4-4,3.954,3.954,0,0,1,1.621.344l-2.965,2.971,2.119,2.12,2.932-2.936a4.006,4.006,0,0,1-3.707,5.5V8302a3.965,3.965,0,0,1-.473-.027,2.474,2.474,0,0,1-.369.5.444.444,0,0,1-.08.08l-6.359,6.37a2.5,2.5,0,0,1-1.752.727Zm-.945-2.643a1,1,0,1,0,1-1A1,1,0,0,0,19814.555,8307Z",transform:"translate(-19812.502 -8293.5)"})),SvgAnimation=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",...ea},reactExports.createElement("g",{id:"animation",transform:"translate(0 4)"},reactExports.createElement("path",{id:"Path_1089_1_",d:"M13.5-4A5.5,5.5,0,1,1,8,1.5,5.5,5.5,0,0,1,13.5-4Z"}),reactExports.createElement("path",{id:"Subtraction_89_1_",d:"M9.5,11A5.5,5.5,0,0,1,7.18.51,6.262,6.262,0,0,0,7,2v.03a4.277,4.277,0,0,0,5,6.94A4.462,4.462,0,0,0,12.97,8H13a5.8,5.8,0,0,0,1.49-.19A5.538,5.538,0,0,1,9.5,11Z"}),reactExports.createElement("path",{id:"Subtraction_90_1_",d:"M5.5,15A5.5,5.5,0,0,1,3.18,4.51,6.262,6.262,0,0,0,3,6v.03a4.277,4.277,0,0,0,5,6.94A4.462,4.462,0,0,0,8.97,12H9a5.8,5.8,0,0,0,1.49-.19A5.538,5.538,0,0,1,5.5,15Z"}))),SvgBack$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:12.021,viewBox:"0 0 14 12.021",...ea},reactExports.createElement("g",{id:"back",transform:"translate(0)"},reactExports.createElement("g",{id:"Group_236","data-name":"Group 236",transform:"translate(-205.952 -562.673) rotate(45)"},reactExports.createElement("path",{id:"Rectangle_540","data-name":"Rectangle 540",d:"M.75,0h0A.75.75,0,0,1,1.5.75v6.5a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V.75A.75.75,0,0,1,.75,0Z",transform:"translate(556.25 254.99) rotate(90)"}),reactExports.createElement("path",{id:"Rectangle_674","data-name":"Rectangle 674",d:"M.75,0h0A.75.75,0,0,1,1.5.75V8.5a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V.75A.75.75,0,0,1,.75,0Z",transform:"translate(547.75 247.99)"})),reactExports.createElement("rect",{id:"Rectangle_673","data-name":"Rectangle 673",width:1.5,height:12,rx:.75,transform:"translate(14 5.25) rotate(90)"}))),SvgBackArrow=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:6.919,height:11.664,viewBox:"0 0 6.919 11.664",...ea},reactExports.createElement("g",{id:"Group_236","data-name":"Group 236",transform:"translate(-589.284 -279.071)"},reactExports.createElement("path",{id:"Rectangle_540","data-name":"Rectangle 540",d:"M595.979,290.51h0a.767.767,0,0,1-1.085,0h0l-4.7-4.7h0l1.084-1.085h0l4.7,4.7a.767.767,0,0,1,0,1.084Z"}),reactExports.createElement("path",{id:"Rectangle_674","data-name":"Rectangle 674",d:"M595.978,279.3h0a.767.767,0,0,1,0,1.085h0l-5.609,5.609h0l-1.085-1.084h0l5.609-5.61a.768.768,0,0,1,1.085,0Z"}))),SvgCallbacks=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16.957,height:19.46,viewBox:"0 0 16.957 19.46",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19813,8304.472h1.891a6.112,6.112,0,1,0,7.1-6.5V8301l-5-3.5,5-3.5v2.067a8,8,0,1,1-8.986,8.4Z",transform:"translate(-19812.469 -8293.041)"})),SvgCarouselFill=ea=>reactExports.createElement("svg",{width:68,height:50,viewBox:"0 0 68 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 16H8V34H27V16ZM55 16H36V34H55V16ZM66 16H64V34H66V16ZM29 14V36H6V14H29ZM57 14V36H34V14H57ZM62 14V36H68V14H62Z"}),reactExports.createElement("path",{d:"M1 0C0.447715 0 0 0.447715 0 1C0 1.55228 0.447715 2 1 2C1.55228 2 2 1.55228 2 1C2 0.447715 1.55228 0 1 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 0C6.44772 0 6 0.447715 6 1C6 1.55228 6.44772 2 7 2C7.55228 2 8 1.55228 8 1C8 0.447715 7.55228 0 7 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 1C12 0.447715 12.4477 0 13 0C13.5523 0 14 0.447715 14 1C14 1.55228 13.5523 2 13 2C12.4477 2 12 1.55228 12 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 6C0.447715 6 0 6.44772 0 7C0 7.55228 0.447715 8 1 8C1.55228 8 2 7.55228 2 7C2 6.44772 1.55228 6 1 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 13C0 12.4477 0.447715 12 1 12C1.55228 12 2 12.4477 2 13C2 13.5523 1.55228 14 1 14C0.447715 14 0 13.5523 0 13Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 18C0.447715 18 0 18.4477 0 19C0 19.5523 0.447715 20 1 20C1.55228 20 2 19.5523 2 19C2 18.4477 1.55228 18 1 18Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 25C0 24.4477 0.447715 24 1 24C1.55228 24 2 24.4477 2 25C2 25.5523 1.55228 26 1 26C0.447715 26 0 25.5523 0 25Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 30C0.447715 30 0 30.4477 0 31C0 31.5523 0.447715 32 1 32C1.55228 32 2 31.5523 2 31C2 30.4477 1.55228 30 1 30Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 37C0 36.4477 0.447715 36 1 36C1.55228 36 2 36.4477 2 37C2 37.5523 1.55228 38 1 38C0.447715 38 0 37.5523 0 37Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 6C6.44772 6 6 6.44772 6 7C6 7.55228 6.44772 8 7 8C7.55228 8 8 7.55228 8 7C8 6.44772 7.55228 6 7 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 7.55228 13.5523 8 13 8C12.4477 8 12 7.55228 12 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 42C0.447715 42 0 42.4477 0 43C0 43.5523 0.447715 44 1 44C1.55228 44 2 43.5523 2 43C2 42.4477 1.55228 42 1 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M6 43C6 42.4477 6.44772 42 7 42C7.55228 42 8 42.4477 8 43C8 43.5523 7.55228 44 7 44C6.44772 44 6 43.5523 6 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M13 42C12.4477 42 12 42.4477 12 43C12 43.5523 12.4477 44 13 44C13.5523 44 14 43.5523 14 43C14 42.4477 13.5523 42 13 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 49C0 48.4477 0.447715 48 1 48C1.55228 48 2 48.4477 2 49C2 49.5523 1.55228 50 1 50C0.447715 50 0 49.5523 0 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 48C6.44772 48 6 48.4477 6 49C6 49.5523 6.44772 50 7 50C7.55228 50 8 49.5523 8 49C8 48.4477 7.55228 48 7 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 49C12 48.4477 12.4477 48 13 48C13.5523 48 14 48.4477 14 49C14 49.5523 13.5523 50 13 50C12.4477 50 12 49.5523 12 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 0C18.4477 0 18 0.447715 18 1C18 1.55228 18.4477 2 19 2C19.5523 2 20 1.55228 20 1C20 0.447715 19.5523 0 19 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 1C24 0.447715 24.4477 0 25 0C25.5523 0 26 0.447715 26 1C26 1.55228 25.5523 2 25 2C24.4477 2 24 1.55228 24 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 0C30.4477 0 30 0.447715 30 1C30 1.55228 30.4477 2 31 2C31.5523 2 32 1.55228 32 1C32 0.447715 31.5523 0 31 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 7C18 6.44772 18.4477 6 19 6C19.5523 6 20 6.44772 20 7C20 7.55228 19.5523 8 19 8C18.4477 8 18 7.55228 18 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 6C24.4477 6 24 6.44772 24 7C24 7.55228 24.4477 8 25 8C25.5523 8 26 7.55228 26 7C26 6.44772 25.5523 6 25 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 7C30 6.44772 30.4477 6 31 6C31.5523 6 32 6.44772 32 7C32 7.55228 31.5523 8 31 8C30.4477 8 30 7.55228 30 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 42C18.4477 42 18 42.4477 18 43C18 43.5523 18.4477 44 19 44C19.5523 44 20 43.5523 20 43C20 42.4477 19.5523 42 19 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 43C24 42.4477 24.4477 42 25 42C25.5523 42 26 42.4477 26 43C26 43.5523 25.5523 44 25 44C24.4477 44 24 43.5523 24 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 42C30.4477 42 30 42.4477 30 43C30 43.5523 30.4477 44 31 44C31.5523 44 32 43.5523 32 43C32 42.4477 31.5523 42 31 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 49C18 48.4477 18.4477 48 19 48C19.5523 48 20 48.4477 20 49C20 49.5523 19.5523 50 19 50C18.4477 50 18 49.5523 18 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 48C24.4477 48 24 48.4477 24 49C24 49.5523 24.4477 50 25 50C25.5523 50 26 49.5523 26 49C26 48.4477 25.5523 48 25 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 49C30 48.4477 30.4477 48 31 48C31.5523 48 32 48.4477 32 49C32 49.5523 31.5523 50 31 50C30.4477 50 30 49.5523 30 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 0C36.4477 0 36 0.447715 36 1C36 1.55228 36.4477 2 37 2C37.5523 2 38 1.55228 38 1C38 0.447715 37.5523 0 37 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 1C42 0.447715 42.4477 0 43 0C43.5523 0 44 0.447715 44 1C44 1.55228 43.5523 2 43 2C42.4477 2 42 1.55228 42 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 0C48.4477 0 48 0.447715 48 1C48 1.55228 48.4477 2 49 2C49.5523 2 50 1.55228 50 1C50 0.447715 49.5523 0 49 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 7C36 6.44772 36.4477 6 37 6C37.5523 6 38 6.44772 38 7C38 7.55228 37.5523 8 37 8C36.4477 8 36 7.55228 36 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 6C42.4477 6 42 6.44772 42 7C42 7.55228 42.4477 8 43 8C43.5523 8 44 7.55228 44 7C44 6.44772 43.5523 6 43 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 7C48 6.44772 48.4477 6 49 6C49.5523 6 50 6.44772 50 7C50 7.55228 49.5523 8 49 8C48.4477 8 48 7.55228 48 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 42C36.4477 42 36 42.4477 36 43C36 43.5523 36.4477 44 37 44C37.5523 44 38 43.5523 38 43C38 42.4477 37.5523 42 37 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 43C42 42.4477 42.4477 42 43 42C43.5523 42 44 42.4477 44 43C44 43.5523 43.5523 44 43 44C42.4477 44 42 43.5523 42 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 42C48.4477 42 48 42.4477 48 43C48 43.5523 48.4477 44 49 44C49.5523 44 50 43.5523 50 43C50 42.4477 49.5523 42 49 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 49C36 48.4477 36.4477 48 37 48C37.5523 48 38 48.4477 38 49C38 49.5523 37.5523 50 37 50C36.4477 50 36 49.5523 36 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 48C42.4477 48 42 48.4477 42 49C42 49.5523 42.4477 50 43 50C43.5523 50 44 49.5523 44 49C44 48.4477 43.5523 48 43 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 49C48 48.4477 48.4477 48 49 48C49.5523 48 50 48.4477 50 49C50 49.5523 49.5523 50 49 50C48.4477 50 48 49.5523 48 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 0C54.4477 0 54 0.447715 54 1C54 1.55228 54.4477 2 55 2C55.5523 2 56 1.55228 56 1C56 0.447715 55.5523 0 55 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 1C60 0.447715 60.4477 0 61 0C61.5523 0 62 0.447715 62 1C62 1.55228 61.5523 2 61 2C60.4477 2 60 1.55228 60 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 0C66.4477 0 66 0.447715 66 1C66 1.55228 66.4477 2 67 2C67.5523 2 68 1.55228 68 1C68 0.447715 67.5523 0 67 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 7C54 6.44772 54.4477 6 55 6C55.5523 6 56 6.44772 56 7C56 7.55228 55.5523 8 55 8C54.4477 8 54 7.55228 54 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 6C60.4477 6 60 6.44772 60 7C60 7.55228 60.4477 8 61 8C61.5523 8 62 7.55228 62 7C62 6.44772 61.5523 6 61 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 7C66 6.44772 66.4477 6 67 6C67.5523 6 68 6.44772 68 7C68 7.55228 67.5523 8 67 8C66.4477 8 66 7.55228 66 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 42C54.4477 42 54 42.4477 54 43C54 43.5523 54.4477 44 55 44C55.5523 44 56 43.5523 56 43C56 42.4477 55.5523 42 55 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 43C60 42.4477 60.4477 42 61 42C61.5523 42 62 42.4477 62 43C62 43.5523 61.5523 44 61 44C60.4477 44 60 43.5523 60 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 42C66.4477 42 66 42.4477 66 43C66 43.5523 66.4477 44 67 44C67.5523 44 68 43.5523 68 43C68 42.4477 67.5523 42 67 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 49C54 48.4477 54.4477 48 55 48C55.5523 48 56 48.4477 56 49C56 49.5523 55.5523 50 55 50C54.4477 50 54 49.5523 54 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 48C60.4477 48 60 48.4477 60 49C60 49.5523 60.4477 50 61 50C61.5523 50 62 49.5523 62 49C62 48.4477 61.5523 48 61 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 49C66 48.4477 66.4477 48 67 48C67.5523 48 68 48.4477 68 49C68 49.5523 67.5523 50 67 50C66.4477 50 66 49.5523 66 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M27 16H8V34H27V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 16H55V34H36V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M68 16H64V34H68V16Z",fillOpacity:.5})),SvgCarouselFocus=ea=>reactExports.createElement("svg",{width:68,height:50,viewBox:"0 0 68 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M47 16H21V34H47V16ZM19 14V36H49V14H19Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 36H14V14H0V16H12V34H0V36Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M68 14H54V36H68V34H56V16H68V14Z"}),reactExports.createElement("path",{d:"M0 1C0 0.447715 0.447715 0 1 0C1.55228 0 2 0.447715 2 1C2 1.55228 1.55228 2 1 2C0.447715 2 0 1.55228 0 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M6 1C6 0.447715 6.44772 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C6.44772 2 6 1.55228 6 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M13 0C12.4477 0 12 0.447715 12 1C12 1.55228 12.4477 2 13 2C13.5523 2 14 1.55228 14 1C14 0.447715 13.5523 0 13 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 7C0 6.44772 0.447715 6 1 6C1.55228 6 2 6.44772 2 7C2 7.55228 1.55228 8 1 8C0.447715 8 0 7.55228 0 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 6C6.44772 6 6 6.44772 6 7C6 7.55228 6.44772 8 7 8C7.55228 8 8 7.55228 8 7C8 6.44772 7.55228 6 7 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 7.55228 13.5523 8 13 8C12.4477 8 12 7.55228 12 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 0C18.4477 0 18 0.447715 18 1C18 1.55228 18.4477 2 19 2C19.5523 2 20 1.55228 20 1C20 0.447715 19.5523 0 19 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 1C24 0.447715 24.4477 0 25 0C25.5523 0 26 0.447715 26 1C26 1.55228 25.5523 2 25 2C24.4477 2 24 1.55228 24 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 0C30.4477 0 30 0.447715 30 1C30 1.55228 30.4477 2 31 2C31.5523 2 32 1.55228 32 1C32 0.447715 31.5523 0 31 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 7C18 6.44772 18.4477 6 19 6C19.5523 6 20 6.44772 20 7C20 7.55228 19.5523 8 19 8C18.4477 8 18 7.55228 18 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 6C24.4477 6 24 6.44772 24 7C24 7.55228 24.4477 8 25 8C25.5523 8 26 7.55228 26 7C26 6.44772 25.5523 6 25 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 7C30 6.44772 30.4477 6 31 6C31.5523 6 32 6.44772 32 7C32 7.55228 31.5523 8 31 8C30.4477 8 30 7.55228 30 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 0C36.4477 0 36 0.447715 36 1C36 1.55228 36.4477 2 37 2C37.5523 2 38 1.55228 38 1C38 0.447715 37.5523 0 37 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 1C42 0.447715 42.4477 0 43 0C43.5523 0 44 0.447715 44 1C44 1.55228 43.5523 2 43 2C42.4477 2 42 1.55228 42 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 0C48.4477 0 48 0.447715 48 1C48 1.55228 48.4477 2 49 2C49.5523 2 50 1.55228 50 1C50 0.447715 49.5523 0 49 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 7C36 6.44772 36.4477 6 37 6C37.5523 6 38 6.44772 38 7C38 7.55228 37.5523 8 37 8C36.4477 8 36 7.55228 36 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 6C42.4477 6 42 6.44772 42 7C42 7.55228 42.4477 8 43 8C43.5523 8 44 7.55228 44 7C44 6.44772 43.5523 6 43 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 7C48 6.44772 48.4477 6 49 6C49.5523 6 50 6.44772 50 7C50 7.55228 49.5523 8 49 8C48.4477 8 48 7.55228 48 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 0C54.4477 0 54 0.447715 54 1C54 1.55228 54.4477 2 55 2C55.5523 2 56 1.55228 56 1C56 0.447715 55.5523 0 55 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 1C60 0.447715 60.4477 0 61 0C61.5523 0 62 0.447715 62 1C62 1.55228 61.5523 2 61 2C60.4477 2 60 1.55228 60 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 0C66.4477 0 66 0.447715 66 1C66 1.55228 66.4477 2 67 2C67.5523 2 68 1.55228 68 1C68 0.447715 67.5523 0 67 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 7C54 6.44772 54.4477 6 55 6C55.5523 6 56 6.44772 56 7C56 7.55228 55.5523 8 55 8C54.4477 8 54 7.55228 54 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 6C60.4477 6 60 6.44772 60 7C60 7.55228 60.4477 8 61 8C61.5523 8 62 7.55228 62 7C62 6.44772 61.5523 6 61 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 7C66 6.44772 66.4477 6 67 6C67.5523 6 68 6.44772 68 7C68 7.55228 67.5523 8 67 8C66.4477 8 66 7.55228 66 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 43C0 42.4477 0.447715 42 1 42C1.55228 42 2 42.4477 2 43C2 43.5523 1.55228 44 1 44C0.447715 44 0 43.5523 0 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M6 43C6 42.4477 6.44772 42 7 42C7.55228 42 8 42.4477 8 43C8 43.5523 7.55228 44 7 44C6.44772 44 6 43.5523 6 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M13 42C12.4477 42 12 42.4477 12 43C12 43.5523 12.4477 44 13 44C13.5523 44 14 43.5523 14 43C14 42.4477 13.5523 42 13 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 49C0 48.4477 0.447715 48 1 48C1.55228 48 2 48.4477 2 49C2 49.5523 1.55228 50 1 50C0.447715 50 0 49.5523 0 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 48C6.44772 48 6 48.4477 6 49C6 49.5523 6.44772 50 7 50C7.55228 50 8 49.5523 8 49C8 48.4477 7.55228 48 7 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 49C12 48.4477 12.4477 48 13 48C13.5523 48 14 48.4477 14 49C14 49.5523 13.5523 50 13 50C12.4477 50 12 49.5523 12 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 42C18.4477 42 18 42.4477 18 43C18 43.5523 18.4477 44 19 44C19.5523 44 20 43.5523 20 43C20 42.4477 19.5523 42 19 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 43C24 42.4477 24.4477 42 25 42C25.5523 42 26 42.4477 26 43C26 43.5523 25.5523 44 25 44C24.4477 44 24 43.5523 24 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 42C30.4477 42 30 42.4477 30 43C30 43.5523 30.4477 44 31 44C31.5523 44 32 43.5523 32 43C32 42.4477 31.5523 42 31 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 49C18 48.4477 18.4477 48 19 48C19.5523 48 20 48.4477 20 49C20 49.5523 19.5523 50 19 50C18.4477 50 18 49.5523 18 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 48C24.4477 48 24 48.4477 24 49C24 49.5523 24.4477 50 25 50C25.5523 50 26 49.5523 26 49C26 48.4477 25.5523 48 25 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 49C30 48.4477 30.4477 48 31 48C31.5523 48 32 48.4477 32 49C32 49.5523 31.5523 50 31 50C30.4477 50 30 49.5523 30 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 42C36.4477 42 36 42.4477 36 43C36 43.5523 36.4477 44 37 44C37.5523 44 38 43.5523 38 43C38 42.4477 37.5523 42 37 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 43C42 42.4477 42.4477 42 43 42C43.5523 42 44 42.4477 44 43C44 43.5523 43.5523 44 43 44C42.4477 44 42 43.5523 42 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 42C48.4477 42 48 42.4477 48 43C48 43.5523 48.4477 44 49 44C49.5523 44 50 43.5523 50 43C50 42.4477 49.5523 42 49 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 49C36 48.4477 36.4477 48 37 48C37.5523 48 38 48.4477 38 49C38 49.5523 37.5523 50 37 50C36.4477 50 36 49.5523 36 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 48C42.4477 48 42 48.4477 42 49C42 49.5523 42.4477 50 43 50C43.5523 50 44 49.5523 44 49C44 48.4477 43.5523 48 43 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 49C48 48.4477 48.4477 48 49 48C49.5523 48 50 48.4477 50 49C50 49.5523 49.5523 50 49 50C48.4477 50 48 49.5523 48 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 42C54.4477 42 54 42.4477 54 43C54 43.5523 54.4477 44 55 44C55.5523 44 56 43.5523 56 43C56 42.4477 55.5523 42 55 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 43C60 42.4477 60.4477 42 61 42C61.5523 42 62 42.4477 62 43C62 43.5523 61.5523 44 61 44C60.4477 44 60 43.5523 60 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 42C66.4477 42 66 42.4477 66 43C66 43.5523 66.4477 44 67 44C67.5523 44 68 43.5523 68 43C68 42.4477 67.5523 42 67 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 49C54 48.4477 54.4477 48 55 48C55.5523 48 56 48.4477 56 49C56 49.5523 55.5523 50 55 50C54.4477 50 54 49.5523 54 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 48C60.4477 48 60 48.4477 60 49C60 49.5523 60.4477 50 61 50C61.5523 50 62 49.5523 62 49C62 48.4477 61.5523 48 61 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 49C66 48.4477 66.4477 48 67 48C67.5523 48 68 48.4477 68 49C68 49.5523 67.5523 50 67 50C66.4477 50 66 49.5523 66 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M47 16H21V34H47V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 16V34H0V16H12Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M68 16H56V34H68V16Z",fillOpacity:.5})),SvgCarouselFlex=ea=>reactExports.createElement("svg",{width:68,height:50,viewBox:"0 0 68 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 14V36H18V14H0ZM16 16H2V34H16V16Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 14V36H42V14H24ZM40 16H26V34H40V16Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 14H68V36H49V14ZM51 16H66V34H51V16Z"}),reactExports.createElement("path",{d:"M0 1C0 0.447715 0.447715 0 1 0C1.55228 0 2 0.447715 2 1C2 1.55228 1.55228 2 1 2C0.447715 2 0 1.55228 0 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M2 16H16V34H2V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M26 16H40V34H26V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 16H51V34H66V16Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 0C6.44772 0 6 0.447715 6 1C6 1.55228 6.44772 2 7 2C7.55228 2 8 1.55228 8 1C8 0.447715 7.55228 0 7 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 1C12 0.447715 12.4477 0 13 0C13.5523 0 14 0.447715 14 1C14 1.55228 13.5523 2 13 2C12.4477 2 12 1.55228 12 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 6C0.447715 6 0 6.44772 0 7C0 7.55228 0.447715 8 1 8C1.55228 8 2 7.55228 2 7C2 6.44772 1.55228 6 1 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M6 7C6 6.44772 6.44772 6 7 6C7.55228 6 8 6.44772 8 7C8 7.55228 7.55228 8 7 8C6.44772 8 6 7.55228 6 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M13 6C12.4477 6 12 6.44772 12 7C12 7.55228 12.4477 8 13 8C13.5523 8 14 7.55228 14 7C14 6.44772 13.5523 6 13 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M0 43C0 42.4477 0.447715 42 1 42C1.55228 42 2 42.4477 2 43C2 43.5523 1.55228 44 1 44C0.447715 44 0 43.5523 0 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M7 42C6.44772 42 6 42.4477 6 43C6 43.5523 6.44772 44 7 44C7.55228 44 8 43.5523 8 43C8 42.4477 7.55228 42 7 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M12 43C12 42.4477 12.4477 42 13 42C13.5523 42 14 42.4477 14 43C14 43.5523 13.5523 44 13 44C12.4477 44 12 43.5523 12 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M1 48C0.447715 48 0 48.4477 0 49C0 49.5523 0.447715 50 1 50C1.55228 50 2 49.5523 2 49C2 48.4477 1.55228 48 1 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M6 49C6 48.4477 6.44772 48 7 48C7.55228 48 8 48.4477 8 49C8 49.5523 7.55228 50 7 50C6.44772 50 6 49.5523 6 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M13 48C12.4477 48 12 48.4477 12 49C12 49.5523 12.4477 50 13 50C13.5523 50 14 49.5523 14 49C14 48.4477 13.5523 48 13 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 1C18 0.447715 18.4477 0 19 0C19.5523 0 20 0.447715 20 1C20 1.55228 19.5523 2 19 2C18.4477 2 18 1.55228 18 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 0C24.4477 0 24 0.447715 24 1C24 1.55228 24.4477 2 25 2C25.5523 2 26 1.55228 26 1C26 0.447715 25.5523 0 25 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 1C30 0.447715 30.4477 0 31 0C31.5523 0 32 0.447715 32 1C32 1.55228 31.5523 2 31 2C30.4477 2 30 1.55228 30 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 6C18.4477 6 18 6.44772 18 7C18 7.55228 18.4477 8 19 8C19.5523 8 20 7.55228 20 7C20 6.44772 19.5523 6 19 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 7C24 6.44772 24.4477 6 25 6C25.5523 6 26 6.44772 26 7C26 7.55228 25.5523 8 25 8C24.4477 8 24 7.55228 24 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 6C30.4477 6 30 6.44772 30 7C30 7.55228 30.4477 8 31 8C31.5523 8 32 7.55228 32 7C32 6.44772 31.5523 6 31 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M18 43C18 42.4477 18.4477 42 19 42C19.5523 42 20 42.4477 20 43C20 43.5523 19.5523 44 19 44C18.4477 44 18 43.5523 18 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M25 42C24.4477 42 24 42.4477 24 43C24 43.5523 24.4477 44 25 44C25.5523 44 26 43.5523 26 43C26 42.4477 25.5523 42 25 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M30 43C30 42.4477 30.4477 42 31 42C31.5523 42 32 42.4477 32 43C32 43.5523 31.5523 44 31 44C30.4477 44 30 43.5523 30 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M19 48C18.4477 48 18 48.4477 18 49C18 49.5523 18.4477 50 19 50C19.5523 50 20 49.5523 20 49C20 48.4477 19.5523 48 19 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M24 49C24 48.4477 24.4477 48 25 48C25.5523 48 26 48.4477 26 49C26 49.5523 25.5523 50 25 50C24.4477 50 24 49.5523 24 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M31 48C30.4477 48 30 48.4477 30 49C30 49.5523 30.4477 50 31 50C31.5523 50 32 49.5523 32 49C32 48.4477 31.5523 48 31 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 1C36 0.447715 36.4477 0 37 0C37.5523 0 38 0.447715 38 1C38 1.55228 37.5523 2 37 2C36.4477 2 36 1.55228 36 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 0C42.4477 0 42 0.447715 42 1C42 1.55228 42.4477 2 43 2C43.5523 2 44 1.55228 44 1C44 0.447715 43.5523 0 43 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 1C48 0.447715 48.4477 0 49 0C49.5523 0 50 0.447715 50 1C50 1.55228 49.5523 2 49 2C48.4477 2 48 1.55228 48 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 6C36.4477 6 36 6.44772 36 7C36 7.55228 36.4477 8 37 8C37.5523 8 38 7.55228 38 7C38 6.44772 37.5523 6 37 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 7C42 6.44772 42.4477 6 43 6C43.5523 6 44 6.44772 44 7C44 7.55228 43.5523 8 43 8C42.4477 8 42 7.55228 42 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 6C48.4477 6 48 6.44772 48 7C48 7.55228 48.4477 8 49 8C49.5523 8 50 7.55228 50 7C50 6.44772 49.5523 6 49 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M36 43C36 42.4477 36.4477 42 37 42C37.5523 42 38 42.4477 38 43C38 43.5523 37.5523 44 37 44C36.4477 44 36 43.5523 36 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M43 42C42.4477 42 42 42.4477 42 43C42 43.5523 42.4477 44 43 44C43.5523 44 44 43.5523 44 43C44 42.4477 43.5523 42 43 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M48 43C48 42.4477 48.4477 42 49 42C49.5523 42 50 42.4477 50 43C50 43.5523 49.5523 44 49 44C48.4477 44 48 43.5523 48 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M37 48C36.4477 48 36 48.4477 36 49C36 49.5523 36.4477 50 37 50C37.5523 50 38 49.5523 38 49C38 48.4477 37.5523 48 37 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M42 49C42 48.4477 42.4477 48 43 48C43.5523 48 44 48.4477 44 49C44 49.5523 43.5523 50 43 50C42.4477 50 42 49.5523 42 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M49 48C48.4477 48 48 48.4477 48 49C48 49.5523 48.4477 50 49 50C49.5523 50 50 49.5523 50 49C50 48.4477 49.5523 48 49 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 1C54 0.447715 54.4477 0 55 0C55.5523 0 56 0.447715 56 1C56 1.55228 55.5523 2 55 2C54.4477 2 54 1.55228 54 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 0C60.4477 0 60 0.447715 60 1C60 1.55228 60.4477 2 61 2C61.5523 2 62 1.55228 62 1C62 0.447715 61.5523 0 61 0Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 1C66 0.447715 66.4477 0 67 0C67.5523 0 68 0.447715 68 1C68 1.55228 67.5523 2 67 2C66.4477 2 66 1.55228 66 1Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 6C54.4477 6 54 6.44772 54 7C54 7.55228 54.4477 8 55 8C55.5523 8 56 7.55228 56 7C56 6.44772 55.5523 6 55 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 7C60 6.44772 60.4477 6 61 6C61.5523 6 62 6.44772 62 7C62 7.55228 61.5523 8 61 8C60.4477 8 60 7.55228 60 7Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 6C66.4477 6 66 6.44772 66 7C66 7.55228 66.4477 8 67 8C67.5523 8 68 7.55228 68 7C68 6.44772 67.5523 6 67 6Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M54 43C54 42.4477 54.4477 42 55 42C55.5523 42 56 42.4477 56 43C56 43.5523 55.5523 44 55 44C54.4477 44 54 43.5523 54 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M61 42C60.4477 42 60 42.4477 60 43C60 43.5523 60.4477 44 61 44C61.5523 44 62 43.5523 62 43C62 42.4477 61.5523 42 61 42Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M66 43C66 42.4477 66.4477 42 67 42C67.5523 42 68 42.4477 68 43C68 43.5523 67.5523 44 67 44C66.4477 44 66 43.5523 66 43Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M55 48C54.4477 48 54 48.4477 54 49C54 49.5523 54.4477 50 55 50C55.5523 50 56 49.5523 56 49C56 48.4477 55.5523 48 55 48Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M60 49C60 48.4477 60.4477 48 61 48C61.5523 48 62 48.4477 62 49C62 49.5523 61.5523 50 61 50C60.4477 50 60 49.5523 60 49Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M67 48C66.4477 48 66 48.4477 66 49C66 49.5523 66.4477 50 67 50C67.5523 50 68 49.5523 68 49C68 48.4477 67.5523 48 67 48Z",fillOpacity:.5})),SvgCarouselGrowSpace=ea=>reactExports.createElement("svg",{width:69,height:50,viewBox:"0 0 69 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 1.00195C54 0.449668 54.4477 0.00195312 55 0.00195312C55.5523 0.00195312 56 0.449668 56 1.00195C56 1.55424 55.5523 2.00195 55 2.00195C54.4477 2.00195 54 1.55424 54 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 1.00195C60 0.449668 60.4477 0.00195312 61 0.00195312C61.5523 0.00195312 62 0.449668 62 1.00195C62 1.55424 61.5523 2.00195 61 2.00195C60.4477 2.00195 60 1.55424 60 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 1.00195C66 0.449668 66.4477 0.00195312 67 0.00195312C67.5523 0.00195312 68 0.449668 68 1.00195C68 1.55424 67.5523 2.00195 67 2.00195C66.4477 2.00195 66 1.55424 66 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 7.00195C54 6.44967 54.4477 6.00195 55 6.00195C55.5523 6.00195 56 6.44967 56 7.00195C56 7.55424 55.5523 8.00195 55 8.00195C54.4477 8.00195 54 7.55424 54 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 7.00195C60 6.44967 60.4477 6.00195 61 6.00195C61.5523 6.00195 62 6.44967 62 7.00195C62 7.55424 61.5523 8.00195 61 8.00195C60.4477 8.00195 60 7.55424 60 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 7.00195C66 6.44967 66.4477 6.00195 67 6.00195C67.5523 6.00195 68 6.44967 68 7.00195C68 7.55424 67.5523 8.00195 67 8.00195C66.4477 8.00195 66 7.55424 66 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 13.002C60 12.4497 60.4477 12.002 61 12.002C61.5523 12.002 62 12.4497 62 13.002C62 13.5542 61.5523 14.002 61 14.002C60.4477 14.002 60 13.5542 60 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 13.002C54 12.4497 54.4477 12.002 55 12.002C55.5523 12.002 56 12.4497 56 13.002C56 13.5542 55.5523 14.002 55 14.002C54.4477 14.002 54 13.5542 54 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 13.002C66 12.4497 66.4477 12.002 67 12.002C67.5523 12.002 68 12.4497 68 13.002C68 13.5542 67.5523 14.002 67 14.002C66.4477 14.002 66 13.5542 66 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 19.002C60 18.4497 60.4477 18.002 61 18.002C61.5523 18.002 62 18.4497 62 19.002C62 19.5542 61.5523 20.002 61 20.002C60.4477 20.002 60 19.5542 60 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 19.002C54 18.4497 54.4477 18.002 55 18.002C55.5523 18.002 56 18.4497 56 19.002C56 19.5542 55.5523 20.002 55 20.002C54.4477 20.002 54 19.5542 54 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 19.002C66 18.4497 66.4477 18.002 67 18.002C67.5523 18.002 68 18.4497 68 19.002C68 19.5542 67.5523 20.002 67 20.002C66.4477 20.002 66 19.5542 66 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 25.002C60 24.4497 60.4477 24.002 61 24.002C61.5523 24.002 62 24.4497 62 25.002C62 25.5542 61.5523 26.002 61 26.002C60.4477 26.002 60 25.5542 60 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 25.002C54 24.4497 54.4477 24.002 55 24.002C55.5523 24.002 56 24.4497 56 25.002C56 25.5542 55.5523 26.002 55 26.002C54.4477 26.002 54 25.5542 54 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 25.002C66 24.4497 66.4477 24.002 67 24.002C67.5523 24.002 68 24.4497 68 25.002C68 25.5542 67.5523 26.002 67 26.002C66.4477 26.002 66 25.5542 66 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 31.002C60 30.4497 60.4477 30.002 61 30.002C61.5523 30.002 62 30.4497 62 31.002C62 31.5542 61.5523 32.002 61 32.002C60.4477 32.002 60 31.5542 60 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 31.002C66 30.4497 66.4477 30.002 67 30.002C67.5523 30.002 68 30.4497 68 31.002C68 31.5542 67.5523 32.002 67 32.002C66.4477 32.002 66 31.5542 66 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 37.002C60 36.4497 60.4477 36.002 61 36.002C61.5523 36.002 62 36.4497 62 37.002C62 37.5542 61.5523 38.002 61 38.002C60.4477 38.002 60 37.5542 60 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 37.002C66 36.4497 66.4477 36.002 67 36.002C67.5523 36.002 68 36.4497 68 37.002C68 37.5542 67.5523 38.002 67 38.002C66.4477 38.002 66 37.5542 66 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 43.002C54 42.4497 54.4477 42.002 55 42.002C55.5523 42.002 56 42.4497 56 43.002C56 43.5542 55.5523 44.002 55 44.002C54.4477 44.002 54 43.5542 54 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 37.002C54 36.4497 54.4477 36.002 55 36.002C55.5523 36.002 56 36.4497 56 37.002C56 37.5542 55.5523 38.002 55 38.002C54.4477 38.002 54 37.5542 54 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 31.002C54 30.4497 54.4477 30.002 55 30.002C55.5523 30.002 56 30.4497 56 31.002C56 31.5542 55.5523 32.002 55 32.002C54.4477 32.002 54 31.5542 54 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 43.002C60 42.4497 60.4477 42.002 61 42.002C61.5523 42.002 62 42.4497 62 43.002C62 43.5542 61.5523 44.002 61 44.002C60.4477 44.002 60 43.5542 60 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 43.002C66 42.4497 66.4477 42.002 67 42.002C67.5523 42.002 68 42.4497 68 43.002C68 43.5542 67.5523 44.002 67 44.002C66.4477 44.002 66 43.5542 66 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 49.002C54 48.4497 54.4477 48.002 55 48.002C55.5523 48.002 56 48.4497 56 49.002C56 49.5542 55.5523 50.002 55 50.002C54.4477 50.002 54 49.5542 54 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 49.002C60 48.4497 60.4477 48.002 61 48.002C61.5523 48.002 62 48.4497 62 49.002C62 49.5542 61.5523 50.002 61 50.002C60.4477 50.002 60 49.5542 60 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 49.002C66 48.4497 66.4477 48.002 67 48.002C67.5523 48.002 68 48.4497 68 49.002C68 49.5542 67.5523 50.002 67 50.002C66.4477 50.002 66 49.5542 66 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.00195C0 0.449668 0.447715 0.00195312 1 0.00195312C1.55228 0.00195312 2 0.449668 2 1.00195C2 1.55424 1.55228 2.00195 1 2.00195C0.447715 2.00195 0 1.55424 0 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1.00195C6 0.449668 6.44772 0.00195312 7 0.00195312C7.55228 0.00195312 8 0.449668 8 1.00195C8 1.55424 7.55228 2.00195 7 2.00195C6.44772 2.00195 6 1.55424 6 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.00195C12 0.449668 12.4477 0.00195312 13 0.00195312C13.5523 0.00195312 14 0.449668 14 1.00195C14 1.55424 13.5523 2.00195 13 2.00195C12.4477 2.00195 12 1.55424 12 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.00195C0 6.44967 0.447715 6.00195 1 6.00195C1.55228 6.00195 2 6.44967 2 7.00195C2 7.55424 1.55228 8.00195 1 8.00195C0.447715 8.00195 0 7.55424 0 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7.00195C6 6.44967 6.44772 6.00195 7 6.00195C7.55228 6.00195 8 6.44967 8 7.00195C8 7.55424 7.55228 8.00195 7 8.00195C6.44772 8.00195 6 7.55424 6 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 7.00195C12 6.44967 12.4477 6.00195 13 6.00195C13.5523 6.00195 14 6.44967 14 7.00195C14 7.55424 13.5523 8.00195 13 8.00195C12.4477 8.00195 12 7.55424 12 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 13.002C6 12.4497 6.44772 12.002 7 12.002C7.55228 12.002 8 12.4497 8 13.002C8 13.5542 7.55228 14.002 7 14.002C6.44772 14.002 6 13.5542 6 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 13.002C0 12.4497 0.447715 12.002 1 12.002C1.55228 12.002 2 12.4497 2 13.002C2 13.5542 1.55228 14.002 1 14.002C0.447715 14.002 0 13.5542 0 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 13.002C12 12.4497 12.4477 12.002 13 12.002C13.5523 12.002 14 12.4497 14 13.002C14 13.5542 13.5523 14.002 13 14.002C12.4477 14.002 12 13.5542 12 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 19.002C6 18.4497 6.44772 18.002 7 18.002C7.55228 18.002 8 18.4497 8 19.002C8 19.5542 7.55228 20.002 7 20.002C6.44772 20.002 6 19.5542 6 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 19.002C0 18.4497 0.447715 18.002 1 18.002C1.55228 18.002 2 18.4497 2 19.002C2 19.5542 1.55228 20.002 1 20.002C0.447715 20.002 0 19.5542 0 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19.002C12 18.4497 12.4477 18.002 13 18.002C13.5523 18.002 14 18.4497 14 19.002C14 19.5542 13.5523 20.002 13 20.002C12.4477 20.002 12 19.5542 12 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 25.002C6 24.4497 6.44772 24.002 7 24.002C7.55228 24.002 8 24.4497 8 25.002C8 25.5542 7.55228 26.002 7 26.002C6.44772 26.002 6 25.5542 6 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 25.002C12 24.4497 12.4477 24.002 13 24.002C13.5523 24.002 14 24.4497 14 25.002C14 25.5542 13.5523 26.002 13 26.002C12.4477 26.002 12 25.5542 12 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 31.002C6 30.4497 6.44772 30.002 7 30.002C7.55228 30.002 8 30.4497 8 31.002C8 31.5542 7.55228 32.002 7 32.002C6.44772 32.002 6 31.5542 6 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 31.002C12 30.4497 12.4477 30.002 13 30.002C13.5523 30.002 14 30.4497 14 31.002C14 31.5542 13.5523 32.002 13 32.002C12.4477 32.002 12 31.5542 12 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 37.002C6 36.4497 6.44772 36.002 7 36.002C7.55228 36.002 8 36.4497 8 37.002C8 37.5542 7.55228 38.002 7 38.002C6.44772 38.002 6 37.5542 6 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 37.002C12 36.4497 12.4477 36.002 13 36.002C13.5523 36.002 14 36.4497 14 37.002C14 37.5542 13.5523 38.002 13 38.002C12.4477 38.002 12 37.5542 12 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 43.002C0 42.4497 0.447715 42.002 1 42.002C1.55228 42.002 2 42.4497 2 43.002C2 43.5542 1.55228 44.002 1 44.002C0.447715 44.002 0 43.5542 0 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 37.002C0 36.4497 0.447715 36.002 1 36.002C1.55228 36.002 2 36.4497 2 37.002C2 37.5542 1.55228 38.002 1 38.002C0.447715 38.002 0 37.5542 0 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 31.002C0 30.4497 0.447715 30.002 1 30.002C1.55228 30.002 2 30.4497 2 31.002C2 31.5542 1.55228 32.002 1 32.002C0.447715 32.002 0 31.5542 0 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 43.002C6 42.4497 6.44772 42.002 7 42.002C7.55228 42.002 8 42.4497 8 43.002C8 43.5542 7.55228 44.002 7 44.002C6.44772 44.002 6 43.5542 6 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 43.002C12 42.4497 12.4477 42.002 13 42.002C13.5523 42.002 14 42.4497 14 43.002C14 43.5542 13.5523 44.002 13 44.002C12.4477 44.002 12 43.5542 12 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 49.002C0 48.4497 0.447715 48.002 1 48.002C1.55228 48.002 2 48.4497 2 49.002C2 49.5542 1.55228 50.002 1 50.002C0.447715 50.002 0 49.5542 0 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 49.002C6 48.4497 6.44772 48.002 7 48.002C7.55228 48.002 8 48.4497 8 49.002C8 49.5542 7.55228 50.002 7 50.002C6.44772 50.002 6 49.5542 6 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 49.002C12 48.4497 12.4477 48.002 13 48.002C13.5523 48.002 14 48.4497 14 49.002C14 49.5542 13.5523 50.002 13 50.002C12.4477 50.002 12 49.5542 12 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M38 40.002H24V42.002H38V40.002Z"}),reactExports.createElement("path",{d:"M24 34.002H42V36.002H24V34.002Z"}),reactExports.createElement("path",{d:"M44 6.00195H24V28.002H44V6.00195Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.00195312H50V50.002H18V0.00195312ZM20 2.00195H48V48.002H20V2.00195Z"}),reactExports.createElement("path",{d:"M0 25.002L5 28.002L5 26.002H15V24.002H5V22.002L0 25.002Z"}),reactExports.createElement("path",{d:"M69 25.002L64 28.002V26.002H54V24.002H64V22.002L69 25.002Z"})),SvgCarouselGrowContent=ea=>reactExports.createElement("svg",{width:68,height:50,viewBox:"0 0 68 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M68 50.0034L0 50.0024V0H68V50.0034ZM1.94141 2.177V47.8259H66.0576V2.177H1.94141Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 40.002H30V42.002H6V40.002Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 34.002H45V36.002H6V34.002Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M62 6.00195H6V17.002V28.002H62V17.002V6.00195ZM62 17.002L57 14.002V16.002H11V14.002L6 17.002L11 20.002V18.002H57V20.002L62 17.002Z"})),SvgCarouselKeepRatio=ea=>reactExports.createElement("svg",{width:68,height:50,viewBox:"0 0 68 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 1.00195C54 0.449668 54.4477 0.00195312 55 0.00195312C55.5523 0.00195312 56 0.449668 56 1.00195C56 1.55424 55.5523 2.00195 55 2.00195C54.4477 2.00195 54 1.55424 54 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 1.00195C60 0.449668 60.4477 0.00195312 61 0.00195312C61.5523 0.00195312 62 0.449668 62 1.00195C62 1.55424 61.5523 2.00195 61 2.00195C60.4477 2.00195 60 1.55424 60 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 1.00195C66 0.449668 66.4477 0.00195312 67 0.00195312C67.5523 0.00195312 68 0.449668 68 1.00195C68 1.55424 67.5523 2.00195 67 2.00195C66.4477 2.00195 66 1.55424 66 1.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 7.00195C54 6.44967 54.4477 6.00195 55 6.00195C55.5523 6.00195 56 6.44967 56 7.00195C56 7.55424 55.5523 8.00195 55 8.00195C54.4477 8.00195 54 7.55424 54 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 7.00195C60 6.44967 60.4477 6.00195 61 6.00195C61.5523 6.00195 62 6.44967 62 7.00195C62 7.55424 61.5523 8.00195 61 8.00195C60.4477 8.00195 60 7.55424 60 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 7.00195C66 6.44967 66.4477 6.00195 67 6.00195C67.5523 6.00195 68 6.44967 68 7.00195C68 7.55424 67.5523 8.00195 67 8.00195C66.4477 8.00195 66 7.55424 66 7.00195Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 13.002C60 12.4497 60.4477 12.002 61 12.002C61.5523 12.002 62 12.4497 62 13.002C62 13.5542 61.5523 14.002 61 14.002C60.4477 14.002 60 13.5542 60 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 13.002C54 12.4497 54.4477 12.002 55 12.002C55.5523 12.002 56 12.4497 56 13.002C56 13.5542 55.5523 14.002 55 14.002C54.4477 14.002 54 13.5542 54 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 13.002C66 12.4497 66.4477 12.002 67 12.002C67.5523 12.002 68 12.4497 68 13.002C68 13.5542 67.5523 14.002 67 14.002C66.4477 14.002 66 13.5542 66 13.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 19.002C60 18.4497 60.4477 18.002 61 18.002C61.5523 18.002 62 18.4497 62 19.002C62 19.5542 61.5523 20.002 61 20.002C60.4477 20.002 60 19.5542 60 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 19.002C54 18.4497 54.4477 18.002 55 18.002C55.5523 18.002 56 18.4497 56 19.002C56 19.5542 55.5523 20.002 55 20.002C54.4477 20.002 54 19.5542 54 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 19.002C66 18.4497 66.4477 18.002 67 18.002C67.5523 18.002 68 18.4497 68 19.002C68 19.5542 67.5523 20.002 67 20.002C66.4477 20.002 66 19.5542 66 19.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 25.002C60 24.4497 60.4477 24.002 61 24.002C61.5523 24.002 62 24.4497 62 25.002C62 25.5542 61.5523 26.002 61 26.002C60.4477 26.002 60 25.5542 60 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 25.002C54 24.4497 54.4477 24.002 55 24.002C55.5523 24.002 56 24.4497 56 25.002C56 25.5542 55.5523 26.002 55 26.002C54.4477 26.002 54 25.5542 54 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 25.002C66 24.4497 66.4477 24.002 67 24.002C67.5523 24.002 68 24.4497 68 25.002C68 25.5542 67.5523 26.002 67 26.002C66.4477 26.002 66 25.5542 66 25.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 31.002C60 30.4497 60.4477 30.002 61 30.002C61.5523 30.002 62 30.4497 62 31.002C62 31.5542 61.5523 32.002 61 32.002C60.4477 32.002 60 31.5542 60 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 31.002C66 30.4497 66.4477 30.002 67 30.002C67.5523 30.002 68 30.4497 68 31.002C68 31.5542 67.5523 32.002 67 32.002C66.4477 32.002 66 31.5542 66 31.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 37.002C60 36.4497 60.4477 36.002 61 36.002C61.5523 36.002 62 36.4497 62 37.002C62 37.5542 61.5523 38.002 61 38.002C60.4477 38.002 60 37.5542 60 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 37.002C66 36.4497 66.4477 36.002 67 36.002C67.5523 36.002 68 36.4497 68 37.002C68 37.5542 67.5523 38.002 67 38.002C66.4477 38.002 66 37.5542 66 37.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 43.002C0 42.4497 0.447715 42.002 1 42.002C1.55228 42.002 2 42.4497 2 43.002C2 43.5542 1.55228 44.002 1 44.002C0.447715 44.002 0 43.5542 0 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 43.002C6 42.4497 6.44772 42.002 7 42.002C7.55228 42.002 8 42.4497 8 43.002C8 43.5542 7.55228 44.002 7 44.002C6.44772 44.002 6 43.5542 6 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 43.002C12 42.4497 12.4477 42.002 13 42.002C13.5523 42.002 14 42.4497 14 43.002C14 43.5542 13.5523 44.002 13 44.002C12.4477 44.002 12 43.5542 12 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 43.002C18 42.4497 18.4477 42.002 19 42.002C19.5523 42.002 20 42.4497 20 43.002C20 43.5542 19.5523 44.002 19 44.002C18.4477 44.002 18 43.5542 18 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 43.002C24 42.4497 24.4477 42.002 25 42.002C25.5523 42.002 26 42.4497 26 43.002C26 43.5542 25.5523 44.002 25 44.002C24.4477 44.002 24 43.5542 24 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 43.002C30 42.4497 30.4477 42.002 31 42.002C31.5523 42.002 32 42.4497 32 43.002C32 43.5542 31.5523 44.002 31 44.002C30.4477 44.002 30 43.5542 30 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36 43.002C36 42.4497 36.4477 42.002 37 42.002C37.5523 42.002 38 42.4497 38 43.002C38 43.5542 37.5523 44.002 37 44.002C36.4477 44.002 36 43.5542 36 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 43.002C42 42.4497 42.4477 42.002 43 42.002C43.5523 42.002 44 42.4497 44 43.002C44 43.5542 43.5523 44.002 43 44.002C42.4477 44.002 42 43.5542 42 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 43.002C48 42.4497 48.4477 42.002 49 42.002C49.5523 42.002 50 42.4497 50 43.002C50 43.5542 49.5523 44.002 49 44.002C48.4477 44.002 48 43.5542 48 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 43.002C54 42.4497 54.4477 42.002 55 42.002C55.5523 42.002 56 42.4497 56 43.002C56 43.5542 55.5523 44.002 55 44.002C54.4477 44.002 54 43.5542 54 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 43.002C60 42.4497 60.4477 42.002 61 42.002C61.5523 42.002 62 42.4497 62 43.002C62 43.5542 61.5523 44.002 61 44.002C60.4477 44.002 60 43.5542 60 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 43.002C66 42.4497 66.4477 42.002 67 42.002C67.5523 42.002 68 42.4497 68 43.002C68 43.5542 67.5523 44.002 67 44.002C66.4477 44.002 66 43.5542 66 43.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 49.002C0 48.4497 0.447715 48.002 1 48.002C1.55228 48.002 2 48.4497 2 49.002C2 49.5542 1.55228 50.002 1 50.002C0.447715 50.002 0 49.5542 0 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 49.002C6 48.4497 6.44772 48.002 7 48.002C7.55228 48.002 8 48.4497 8 49.002C8 49.5542 7.55228 50.002 7 50.002C6.44772 50.002 6 49.5542 6 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 49.002C12 48.4497 12.4477 48.002 13 48.002C13.5523 48.002 14 48.4497 14 49.002C14 49.5542 13.5523 50.002 13 50.002C12.4477 50.002 12 49.5542 12 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 49.002C18 48.4497 18.4477 48.002 19 48.002C19.5523 48.002 20 48.4497 20 49.002C20 49.5542 19.5523 50.002 19 50.002C18.4477 50.002 18 49.5542 18 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 49.002C24 48.4497 24.4477 48.002 25 48.002C25.5523 48.002 26 48.4497 26 49.002C26 49.5542 25.5523 50.002 25 50.002C24.4477 50.002 24 49.5542 24 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 49.002C30 48.4497 30.4477 48.002 31 48.002C31.5523 48.002 32 48.4497 32 49.002C32 49.5542 31.5523 50.002 31 50.002C30.4477 50.002 30 49.5542 30 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36 49.002C36 48.4497 36.4477 48.002 37 48.002C37.5523 48.002 38 48.4497 38 49.002C38 49.5542 37.5523 50.002 37 50.002C36.4477 50.002 36 49.5542 36 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 49.002C42 48.4497 42.4477 48.002 43 48.002C43.5523 48.002 44 48.4497 44 49.002C44 49.5542 43.5523 50.002 43 50.002C42.4477 50.002 42 49.5542 42 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 49.002C48 48.4497 48.4477 48.002 49 48.002C49.5523 48.002 50 48.4497 50 49.002C50 49.5542 49.5523 50.002 49 50.002C48.4477 50.002 48 49.5542 48 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54 49.002C54 48.4497 54.4477 48.002 55 48.002C55.5523 48.002 56 48.4497 56 49.002C56 49.5542 55.5523 50.002 55 50.002C54.4477 50.002 54 49.5542 54 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 49.002C60 48.4497 60.4477 48.002 61 48.002C61.5523 48.002 62 48.4497 62 49.002C62 49.5542 61.5523 50.002 61 50.002C60.4477 50.002 60 49.5542 60 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66 49.002C66 48.4497 66.4477 48.002 67 48.002C67.5523 48.002 68 48.4497 68 49.002C68 49.5542 67.5523 50.002 67 50.002C66.4477 50.002 66 49.5542 66 49.002Z",fillOpacity:.5}),reactExports.createElement("path",{d:"M2 2.00195H48V25.002H50V0.00195312H0V38.002H44V36.002H2V2.00195Z"}),reactExports.createElement("path",{d:"M6 26.002H32V28.002H6V26.002Z"}),reactExports.createElement("path",{d:"M6 31.002H22V33.002H6V31.002Z"}),reactExports.createElement("path",{d:"M50.3144 37.4686L56.1246 37.9595L53.8235 32.6018L52.6538 34.2241L44.7192 28.503L45.8558 26.9266L40.0456 26.4357L42.3467 31.7934L43.5495 30.1253L51.484 35.8464L50.3144 37.4686Z"}),reactExports.createElement("path",{d:"M44 6.00195H6V23.002H44V6.00195Z"})),SvgChevronDown=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:7.07,height:4.744,viewBox:"0 0 7.07 4.744",...ea},reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"a"},reactExports.createElement("rect",{className:"a",width:7.07,height:4.744}))),reactExports.createElement("g",{className:"b"},reactExports.createElement("path",{className:"c",d:"M15553.5,9462.451h0l-3.532-3.537,1.206-1.207,2.327,2.327,2.33-2.327,1.207,1.207-3.536,3.537Z",transform:"translate(-15549.965 -9457.707)"}))),SvgCrop=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:11.997,viewBox:"0 0 12 11.997",...ea},reactExports.createElement("path",{id:"crop",d:"M20859.838,14222v-1.893h1.264V14222Zm-5.049-1.895a1.9,1.9,0,0,1-1.895-1.892V14210h1.262v8.211a.635.635,0,0,0,.633.63H20863v1.262Zm.053-2.078a.316.316,0,0,1,0-.446l4.422-4.42-.057,0h-3.789v-1.263h3.789a1.873,1.873,0,0,1,1.023.3l1.311-1.313a.317.317,0,0,1,.447.448l-1.291,1.29a1.883,1.883,0,0,1,.4,1.17v3.786l-1.264,0v-3.79a.6.6,0,0,0-.055-.258l-4.5,4.494a.3.3,0,0,1-.221.092A.313.313,0,0,1,20854.842,14218.025Zm-3.844-4.869v-1.26h1.9v1.26Z",transform:"translate(-20850.998 -14210.001)"})),SvgCross=ea=>reactExports.createElement("svg",{id:"cross",xmlns:"http://www.w3.org/2000/svg",width:12.142,height:12.021,viewBox:"0 0 12.142 12.021",...ea},reactExports.createElement("rect",{id:"Rectangle_1883","data-name":"Rectangle 1883",width:1,height:16,rx:.5,transform:"translate(0.121 0.707) rotate(-45)"}),reactExports.createElement("rect",{id:"Rectangle_1884","data-name":"Rectangle 1884",width:1,height:16,rx:.5,transform:"translate(11.314 0) rotate(45)"})),SvgCrossMedium=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9.313,height:9.192,viewBox:"0 0 9.313 9.192",...ea},reactExports.createElement("g",{id:"Group_681","data-name":"Group 681",transform:"translate(-5 -5.121)"},reactExports.createElement("rect",{id:"Rectangle_1883","data-name":"Rectangle 1883",width:1,height:12,rx:.5,transform:"translate(5.121 5.828) rotate(-45)"}),reactExports.createElement("rect",{id:"Rectangle_1884","data-name":"Rectangle 1884",width:1,height:12,rx:.5,transform:"translate(13.485 5.121) rotate(45)"}))),SvgDataSources=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:19,viewBox:"0 0 17 19",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19813,8309h1c0,.815,2.727,2,7,2s7-1.185,7-2h1c0,1.971-4.027,3-8,3S19813,8310.972,19813,8309Zm11,.5a.5.5,0,1,1,.5.5A.5.5,0,0,1,19824,8309.5Zm4-.5v-2.464c-1.441.966-4.234,1.468-7,1.468s-5.559-.5-7-1.468V8309h-1v-12c0-1.966,4.025-3,8-3s8,1.03,8,3v12Zm-14-4c0,.815,2.727,2,7,2s7-1.185,7-2v-2.469c-1.441.966-4.234,1.468-7,1.468s-5.559-.5-7-1.468Zm0-4c0,.815,2.727,2,7,2s7-1.185,7-2v-2.469c-1.441.966-4.234,1.468-7,1.468s-5.553-.5-7-1.468Zm0-4c0,.815,2.727,2,7,2s7-1.185,7-2-2.727-2-7-2S19814,8296.187,19814,8297Zm10,8.5a.5.5,0,1,1,.5.5A.5.5,0,0,1,19824,8305.5Zm0-4a.5.5,0,1,1,1,0,.5.5,0,0,1-1,0Z",transform:"translate(-19812.5 -8293.502)"})),SvgDelete$2=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",...ea},reactExports.createElement("g",{id:"delete",transform:"translate(0 4)"},reactExports.createElement("path",{id:"Subtraction_37_1_",d:"M13,13H4a2.006,2.006,0,0,1-2-2V0H15V11A2.006,2.006,0,0,1,13,13ZM3,1V11a1,1,0,0,0,1,1h9a1,1,0,0,0,1-1V1Z"}),reactExports.createElement("path",{id:"Subtraction_38_1_",d:"M6-1H5V-3A1,1,0,0,1,6-4h5a1,1,0,0,1,1,1v2H11V-2.5a.5.5,0,0,0-.5-.5h-4a.5.5,0,0,0-.5.5Z"}),reactExports.createElement("path",{id:"Rectangle_714_1_",d:"M.5,0h16a.5.5,0,0,1,.5.5h0a.5.5,0,0,1-.5.5H.5A.5.5,0,0,1,0,.5H0A.5.5,0,0,1,.5,0Z"}),reactExports.createElement("path",{id:"Rectangle_718_1_",d:"M6.5,4h0a.5.5,0,0,1,.5.5v5a.5.5,0,0,1-.5.5h0A.5.5,0,0,1,6,9.5v-5A.5.5,0,0,1,6.5,4Z"}),reactExports.createElement("path",{id:"Rectangle_719_1_",d:"M10.5,4h0a.5.5,0,0,1,.5.5v5a.5.5,0,0,1-.5.5h0a.5.5,0,0,1-.5-.5v-5A.5.5,0,0,1,10.5,4Z"}))),SvgDesign=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.111,height:15.997,viewBox:"0 0 12.111 15.997",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M18795,8219a5,5,0,0,1-5-5v-1.18h10.021v4a2.177,2.177,0,0,0,2.09,2.181Zm-4.906-7v-1a2,2,0,0,1,2-2h2v-5a1,1,0,1,1,2,0v5h2a2,2,0,0,1,2,2v1Z",transform:"translate(-18790 -8202.999)"})),SvgDesktop=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:16,viewBox:"0 0 18 16",...ea},reactExports.createElement("g",{id:"desktop",transform:"translate(100.41)"},reactExports.createElement("path",{id:"Subtraction_11_1_",d:"M-84.41,13h-14a2.006,2.006,0,0,1-2-2V2a2.006,2.006,0,0,1,2-2h14a2.006,2.006,0,0,1,2,2v9A2.006,2.006,0,0,1-84.41,13ZM-98.13,2.18v8.64H-84.7V2.18Z"}),reactExports.createElement("path",{id:"Rectangle_547_1_",d:"M-94.41,14h6a1,1,0,0,1,1,1h0a1,1,0,0,1-1,1h-6a1,1,0,0,1-1-1h0A1,1,0,0,1-94.41,14Z"}),reactExports.createElement("path",{id:"Rectangle_1788_1_",d:"M-91.41,12h0a1,1,0,0,1,1,1v1a1,1,0,0,1-1,1h0a1,1,0,0,1-1-1V13A1,1,0,0,1-91.41,12Z"}))),SvgDesktopSmall=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5557 10.0005H1.4443C0.647913 10.0005 0 9.31042 0 8.46221V1.53829C0 0.690085 0.647913 0 1.4443 0H11.5557C12.3521 0 13 0.690077 13 1.53829V8.46221C13 9.31042 12.3521 10.0005 11.5557 10.0005ZM1.65039 1.67871V8.32213H11.349V1.67871H1.65039Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 11.4477 3.44772 11 4 11H9C9.55228 11 10 11.4477 10 12C10 12.5523 9.55228 13 9 13H4C3.44772 13 3 12.5523 3 12Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10C5 9.44772 5.44772 9 6 9H7C7.55228 9 8 9.44772 8 10V11C8 11.5523 7.55228 12 7 12H6C5.44772 12 5 11.5523 5 11V10Z"})),SvgDrag=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:6,height:10,viewBox:"0 0 6 10",...ea},reactExports.createElement("g",{id:"drag",transform:"translate(-19219 11405)"},reactExports.createElement("rect",{id:"Rectangle_5676","data-name":"Rectangle 5676",width:2,height:2,rx:1,transform:"translate(19219 -11405)"}),reactExports.createElement("rect",{id:"Rectangle_5675","data-name":"Rectangle 5675",width:2,height:2,rx:1,transform:"translate(19223 -11405)"}),reactExports.createElement("rect",{id:"Rectangle_5677","data-name":"Rectangle 5677",width:2,height:2,rx:1,transform:"translate(19219 -11401)"}),reactExports.createElement("rect",{id:"Rectangle_5678","data-name":"Rectangle 5678",width:2,height:2,rx:1,transform:"translate(19223 -11401)"}),reactExports.createElement("rect",{id:"Rectangle_5680","data-name":"Rectangle 5680",width:2,height:2,rx:1,transform:"translate(19219 -11397)"}),reactExports.createElement("rect",{id:"Rectangle_5679","data-name":"Rectangle 5679",width:2,height:2,rx:1,transform:"translate(19223 -11397)"}))),SvgEmptyPost=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:49.002,height:53.001,viewBox:"0 0 49.002 53.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-915.999 -2321.999)"},reactExports.createElement("path",{className:"a",d:"M15562,3621h-27a2,2,0,0,1-2-2v-5.473a17.022,17.022,0,0,0,12.739-13.526H15562a2,2,0,0,1,2,2v17A2,2,0,0,1,15562,3621Z",transform:"translate(-14599 -1261)"}),reactExports.createElement("rect",{className:"a",width:19,height:3,rx:1.5,transform:"translate(940 2364)"}),reactExports.createElement("rect",{className:"a",width:31,height:2,rx:1,transform:"translate(934 2369)"}),reactExports.createElement("rect",{className:"a",width:9,height:2,rx:1,transform:"translate(945 2373)"}),reactExports.createElement("g",{transform:"translate(-19 17)"},reactExports.createElement("path",{className:"a",d:"M-10344-4636a13.908,13.908,0,0,1-9.9-4.1,13.907,13.907,0,0,1-4.1-9.9,13.907,13.907,0,0,1,4.1-9.9,13.908,13.908,0,0,1,9.9-4.1,13.911,13.911,0,0,1,9.9,4.1,13.907,13.907,0,0,1,4.1,9.9,13.907,13.907,0,0,1-4.1,9.9A13.911,13.911,0,0,1-10344-4636Zm0-25a10.928,10.928,0,0,0-7.778,3.221A10.924,10.924,0,0,0-10355-4650a11.013,11.013,0,0,0,11,11,10.925,10.925,0,0,0,7.777-3.222A10.934,10.934,0,0,0-10333-4650a10.928,10.928,0,0,0-3.222-7.777A10.924,10.924,0,0,0-10344-4661Z",transform:"translate(11293 6969)"}),reactExports.createElement("rect",{className:"a",width:4,height:11,rx:2,transform:"translate(947 2311)"}),reactExports.createElement("rect",{className:"a",width:4,height:4,rx:2,transform:"translate(947 2324)"})))),SvgEye=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.042,height:9,viewBox:"0 0 12.042 9",...ea},reactExports.createElement("path",{id:"preview",d:"M0,4A5.689,5.689,0,0,1,5.5,0,5.688,5.688,0,0,1,11,4,5.689,5.689,0,0,1,5.5,8,5.69,5.69,0,0,1,0,4ZM1.053,4A4.725,4.725,0,0,0,5.5,7,4.723,4.723,0,0,0,9.947,4,4.723,4.723,0,0,0,5.5,1,4.724,4.724,0,0,0,1.053,4ZM3.5,4a2,2,0,1,1,2,2A2,2,0,0,1,3.5,4Z",transform:"translate(0.521 0.5)",strokeWidth:1})),SvgEyeDropper=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.947,height:14.09,viewBox:"0 0 13.947 14.09",...ea},reactExports.createElement("path",{id:"eyedrop",d:"M19224,14217.8l1.033-1.033a1.988,1.988,0,0,1,.391-2.255l5.143-5.146,2.8,2.811-5.143,5.137a1.979,1.979,0,0,1-2.26.391l-1.033,1.033Zm2.361-2.355a.657.657,0,0,0,0,.937.666.666,0,0,0,.936,0l4.205-4.205-.936-.937Zm7.926-3.254-3.736-3.742a.659.659,0,0,1,.932-.932l.469.464,1.4-1.4v0a1.985,1.985,0,0,1,2.8,2.81l-1.4,1.4.469.463a.668.668,0,0,1,0,.938.654.654,0,0,1-.467.2A.667.667,0,0,1,19234.285,14212.189Z",transform:"translate(-19223.291 -14205.353)",strokeWidth:1})),SvgGeneral=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20.002,height:20.003,viewBox:"0 0 20.002 20.003",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19828,8312v-6.173a3,3,0,0,1,0-5.655V8295a1,1,0,0,1,2,0v5.174a3,3,0,0,1,0,5.655V8312a1,1,0,1,1-2,0Zm-.5-9a1.5,1.5,0,1,0,1.5-1.5A1.5,1.5,0,0,0,19827.5,8303Zm-6,9v-1.171a3,3,0,0,1,0-5.656V8295a1,1,0,0,1,2,0v10.175a3,3,0,0,1,0,5.656V8312a1,1,0,1,1-2,0Zm-.5-4a1.5,1.5,0,1,0,1.5-1.5A1.5,1.5,0,0,0,19821,8308Zm-6,4v-9.17a3,3,0,0,1,0-5.66V8295a1,1,0,0,1,2,0v2.172a3,3,0,0,1,0,5.66V8312a1,1,0,1,1-2,0Zm-.5-12a1.5,1.5,0,1,0,1.5-1.5A1.5,1.5,0,0,0,19814.5,8300Z",transform:"translate(-19812.498 -8293.498)"})),SvgHidden=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18.397,height:15.91,viewBox:"0 0 18.397 15.91",...ea},reactExports.createElement("g",{id:"show_hidden_items","data-name":"show hidden items",transform:"translate(-955.766 -481.098)"},reactExports.createElement("path",{id:"Path_1256","data-name":"Path 1256",d:"M964.959,485.968a3,3,0,1,1-3,3A3,3,0,0,1,964.959,485.968Z",strokeMiterlimit:10,strokeWidth:1}),reactExports.createElement("path",{id:"Path_1275","data-name":"Path 1275",d:"M964.964,484.141a6.953,6.953,0,0,0-4.268,1.446,7.071,7.071,0,0,0-2.306,3.111,7.071,7.071,0,0,0,2.307,3.113,7.02,7.02,0,0,0,8.536,0,7.073,7.073,0,0,0,2.308-3.112,7.081,7.081,0,0,0-2.307-3.111,6.956,6.956,0,0,0-4.27-1.446m0-2a9.021,9.021,0,0,1,8.68,6.557,9.022,9.022,0,0,1-17.358,0A9.021,9.021,0,0,1,964.964,482.141Z",strokeMiterlimit:10,strokeWidth:1}),reactExports.createElement("path",{id:"Rectangle_2845","data-name":"Rectangle 2845",d:"M957.747,481.981h0a1,1,0,0,1,1.414,0l12.728,12.728a1,1,0,0,1,0,1.415h0a1,1,0,0,1-1.414,0L957.747,483.4A1,1,0,0,1,957.747,481.981Z",strokeMiterlimit:10,strokeWidth:1}))),SvgHover=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15.1,height:14.719,viewBox:"0 0 15.1 14.719",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19729.648,6994.684l-1.912,1.912-2.475-7.423,7.422,2.476-1.619,1.619,2.035,2.036-1.416,1.417ZM19718,6988.5a6.5,6.5,0,0,1,13,0c0,.1,0,.2,0,.307l-1.254-.416a5.243,5.243,0,1,0-5.238,5.354h0l.416,1.243c-.148.01-.287.015-.42.015A6.511,6.511,0,0,1,19718,6988.5Z",transform:"translate(-19718 -6982)"})),SvgInfo$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-513 -1673)"},reactExports.createElement("circle",{className:"a",cx:7,cy:7,r:7,transform:"translate(513 1673)"}),reactExports.createElement("rect",{className:"b",width:2,height:5,transform:"translate(519 1679)"}),reactExports.createElement("rect",{className:"b",width:2,height:1,transform:"translate(518 1679)"}),reactExports.createElement("rect",{className:"b",width:2,height:2,rx:1,transform:"translate(519 1676)"}))),SvgLink$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.265,height:13.265,viewBox:"0 0 13.265 13.265",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3777.182,1905.083a3.975,3.975,0,0,1-.044-5.613l1.458-1.459,1.257,1.257-1.375,1.375a2.222,2.222,0,0,0,3.143,3.142l1.375-1.375,1.257,1.257-1.459,1.458a3.973,3.973,0,0,1-5.613-.043Zm2.121-2.122a1,1,0,0,1,0-1.414l4.242-4.242a1,1,0,0,1,1.414,1.414l-4.241,4.242a1,1,0,0,1-1.415,0Zm5.107-1.964,1.376-1.377a2.222,2.222,0,0,0-3.142-3.142l-1.377,1.377-1.257-1.258,1.459-1.458a4,4,0,0,1,5.656,5.656l-1.458,1.458Z",transform:"translate(-3775.5 -1893.5)"})),SvgMobile=ea=>reactExports.createElement("svg",{id:"mobile",xmlns:"http://www.w3.org/2000/svg",width:8,height:13,viewBox:"0 0 8 13",...ea},reactExports.createElement("path",{id:"mobile-2_1_",d:"M7,13H1a1,1,0,0,1-1-1V1A1,1,0,0,1,1,0H7A1,1,0,0,1,8,1V12A1,1,0,0,1,7,13ZM2,1A1,1,0,0,0,1,2v8a1,1,0,0,0,1,1H6a1,1,0,0,0,1-1V2A1,1,0,0,0,6,1Z"})),SvgMore=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21.001,height:4.999,viewBox:"0 0 21.001 4.999",...ea},reactExports.createElement("path",{id:"more",d:"M-394,1.5A2.5,2.5,0,0,1-391.5-1,2.5,2.5,0,0,1-389,1.5,2.5,2.5,0,0,1-391.5,4,2.5,2.5,0,0,1-394,1.5Zm-8,0A2.5,2.5,0,0,1-399.5-1,2.5,2.5,0,0,1-397,1.5,2.5,2.5,0,0,1-399.5,4,2.5,2.5,0,0,1-402,1.5Zm-8,0A2.5,2.5,0,0,1-407.5-1,2.5,2.5,0,0,1-405,1.5,2.5,2.5,0,0,1-407.5,4,2.5,2.5,0,0,1-410,1.5Z",transform:"translate(410 1)"})),SvgMoreSmall=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:2,viewBox:"0 0 10 2",...ea},reactExports.createElement("g",{id:"more",transform:"translate(-3 -7)"},reactExports.createElement("rect",{id:"Rectangle_675","data-name":"Rectangle 675",width:2,height:2,rx:1,transform:"translate(3 7)"}),reactExports.createElement("rect",{id:"Rectangle_678","data-name":"Rectangle 678",width:2,height:2,rx:1,transform:"translate(7 7)"}),reactExports.createElement("rect",{id:"Rectangle_1759","data-name":"Rectangle 1759",width:2,height:2,rx:1,transform:"translate(11 7)"}))),SvgNavigation=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19.209,height:19.708,viewBox:"0 0 19.209 19.708",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19827,8304l4,4-4,4Zm-8,5h-3a3,3,0,1,1,0-6h8a1,1,0,0,0,0-2h-8a3,3,0,1,1,0-6h5v2h-5a1,1,0,0,0,0,2h8a3,3,0,0,1,0,6h-8a1,1,0,0,0,0,2h11v2Zm2-12v-2h3a1,1,0,0,0,1-1h2a3,3,0,0,1-3,3Z",transform:"translate(-19812.498 -8293.498)"})),SvgOptions$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15.998,height:14.997,viewBox:"0 0 15.998 14.997",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M18798.5,8215a2,2,0,1,1,2,2A2,2,0,0,1,18798.5,8215Zm1,0a1,1,0,1,0,1-1A1,1,0,0,0,18799.5,8215Zm4.992.015-1-.02a.5.5,0,0,1-.49-.5.5.5,0,0,1,.51-.5l1,.019a.5.5,0,0,1-.01,1Zm-13.992-.02a.5.5,0,0,1,0-1h7a.5.5,0,0,1,0,1Zm3-5a2,2,0,1,1,2,2A2,2,0,0,1,18793.5,8210Zm1,0a1,1,0,1,0,1-1A1,1,0,0,0,18794.5,8210Zm4,0a.5.5,0,0,1,0-1h6a.5.5,0,0,1,0,1Zm-8,0a.5.5,0,0,1,0-1h2a.5.5,0,1,1,0,1Zm6.5-5a2,2,0,1,1,2,2A2,2,0,0,1,18797,8205Zm1,0a1,1,0,1,0,1-1A1,1,0,0,0,18798,8205Zm4.5,0a.5.5,0,1,1,0-1h2a.5.5,0,1,1,0,1Zm-12,0a.5.5,0,0,1,0-1h5a.5.5,0,1,1,0,1Z",transform:"translate(-18789.502 -8202.502)"})),SvgPhotos=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:11,viewBox:"0 0 12 11",...ea},reactExports.createElement("path",{id:"Path_1562","data-name":"Path 1562",d:"M16933,14220a2,2,0,0,1-2-2v-6a2,2,0,0,1,2-2h7a2.006,2.006,0,0,1,2,2v6a2.007,2.007,0,0,1-2,2Zm-1-8v6a1,1,0,0,0,1,1h7a1.006,1.006,0,0,0,1-1v-6a1,1,0,0,0-1-1h-7A1,1,0,0,0,16932,14212Zm3,6h-2l1.5-2,.953,1.27,2.045-3.272,2.5,4Zm-1-5a1,1,0,1,1,1,1A1,1,0,0,1,16934,14213Z",transform:"translate(-16930.502 -14209.501)",strokeWidth:1})),SvgPlay=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:8,height:9,viewBox:"0 0 8 9",...ea},reactExports.createElement("g",{id:"Group_426","data-name":"Group 426",transform:"translate(7.998 0.004) rotate(90)"},reactExports.createElement("path",{id:"Path_990","data-name":"Path 990",d:"M5.173.479a.713.713,0,0,0-1.349,0L.155,6.829C-.218,7.472.088,8,.83,8H8.164c.742,0,1.043-.526.675-1.168Z",transform:"translate(0 0)"}))),SvgPublish=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.508,height:10.649,viewBox:"0 0 10.508 10.649",...ea},reactExports.createElement("path",{id:"publish",d:"M20854,14220.647a3,3,0,0,1-3-3v-4a3,3,0,0,1,3-3v1a2,2,0,0,0-2,2v4a2,2,0,0,0,2,2h4a2,2,0,0,0,2-2h1a3,3,0,0,1-3,3Zm.078-3.22a.5.5,0,0,1,0-.707l5.723-5.723h-3.043a.5.5,0,1,1,0-1h4.75v4.5a.5.5,0,0,1-1,0v-2.791l-5.717,5.723a.507.507,0,0,1-.713,0Z",transform:"translate(-20851 -14209.998)"})),SvgRedo=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.002,height:11,viewBox:"0 0 13.002 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M15568,3504v-2a6.01,6.01,0,0,1,6-6h0v2a4,4,0,0,0-4,4v2Zm9-6h-3v-2h3v-3l4,4-4,4Z",transform:"translate(-15567.998 -3493)"})),SvgRemove$2=ea=>reactExports.createElement("svg",{id:"small_close","data-name":"small close",xmlns:"http://www.w3.org/2000/svg",width:5.658,height:5.657,viewBox:"0 0 5.658 5.657",...ea},reactExports.createElement("rect",{id:"Rectangle_928","data-name":"Rectangle 928",width:1,height:7,transform:"translate(5.657 4.95) rotate(135)"}),reactExports.createElement("rect",{id:"Rectangle_929","data-name":"Rectangle 929",width:1,height:7,transform:"translate(4.951 0) rotate(45)"})),SvgReplay=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.635,height:8.997,viewBox:"0 0 10.635 8.997",...ea},reactExports.createElement("path",{id:"replay",d:"M21264.018,8207.867a4.5,4.5,0,0,1,8.654-2.052l1.965-.714-1.463,4.778-4.18-2.729,2.043-.742h-.078a2.681,2.681,0,1,0-2.51,3.769h.047a.916.916,0,0,1,.818.967.9.9,0,0,1-.818.845V8212A4.491,4.491,0,0,1,21264.018,8207.867Z",transform:"translate(-21264.002 -8203.002)"})),SvgSearch=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",width:16.46,height:16.46,viewBox:"0 0 16.46 16.46",...ea},reactExports.createElement("g",{id:"search",transform:"translate(-838 -621)"},reactExports.createElement("g",{id:"Ellipse_53_1_",transform:"translate(838 621)"},reactExports.createElement("circle",{id:"Ellipse_172","data-name":"Ellipse 172",cx:6.5,cy:6.5,r:6.5,fill:"none"}),reactExports.createElement("path",{id:"Path_1075","data-name":"Path 1075",d:"M6.5,13A6.5,6.5,0,1,1,13,6.5,6.513,6.513,0,0,1,6.5,13Zm0-12A5.5,5.5,0,1,0,12,6.5,5.51,5.51,0,0,0,6.5,1Z"})),reactExports.createElement("path",{id:"Rectangle_517_1_",d:"M12.06,12.06h0a.5.5,0,0,1,.71,0l3.54,3.54a.5.5,0,0,1,0,.71h0a.5.5,0,0,1-.71,0l-3.54-3.54A.513.513,0,0,1,12.06,12.06Z",transform:"translate(838 621)"}))),SvgSearchMedium=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.24,height:12.24,viewBox:"0 0 12.24 12.24",...ea},reactExports.createElement("g",{id:"search",transform:"translate(-838 -621)"},reactExports.createElement("g",{id:"Ellipse_53_1_",transform:"translate(838 621)"},reactExports.createElement("circle",{id:"Ellipse_172","data-name":"Ellipse 172",cx:4.834,cy:4.834,r:4.834,fill:"none"}),reactExports.createElement("path",{id:"Path_1075","data-name":"Path 1075",d:"M4.834,9.667A4.834,4.834,0,1,1,9.667,4.834,4.843,4.843,0,0,1,4.834,9.667Zm0-8.923a4.09,4.09,0,1,0,4.09,4.09A4.1,4.1,0,0,0,4.834.744Z"})),reactExports.createElement("path",{id:"Rectangle_517_1_",d:"M12.023,12.022h0a.368.368,0,0,1,.528,0l2.632,2.632a.368.368,0,0,1,0,.528h0a.368.368,0,0,1-.528,0L12.023,12.55A.382.382,0,0,1,12.023,12.022Z",transform:"translate(834.945 617.947)"}))),SvgSectionTransition=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20.002,height:20.003,viewBox:"0 0 20.002 20.003",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19821,8307.5a5.5,5.5,0,1,1,5.5,5.5A5.5,5.5,0,0,1,19821,8307.5Zm4.4,2.747,3.3-2.747-3.3-2.752Zm-3.594,1.752h.006Zm-1.807,0a3,3,0,0,1-3-3v-9a3,3,0,0,1,3-3h6a3,3,0,0,1,3,3v1.5a6.592,6.592,0,0,0-1.5-.418V8300a1.5,1.5,0,0,0-1.5-1.5h-6a1.5,1.5,0,0,0-1.5,1.5v9a1.5,1.5,0,0,0,1.5,1.5h.736a6.508,6.508,0,0,0,1.07,1.5Zm-7-6v-9a3,3,0,0,1,3-3h6a3.018,3.018,0,0,1,2.826,2h-1.713a1.493,1.493,0,0,0-1.113-.5h-6a1.5,1.5,0,0,0-1.5,1.5v9a1.5,1.5,0,0,0,1.5,1.5v1.5A3,3,0,0,1,19813,8306Z",transform:"translate(-19812.498 -8293.498)"})),SvgSettings=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",...ea},reactExports.createElement("g",{id:"settings",transform:"translate(100.42)"},reactExports.createElement("path",{id:"setting_1_",d:"M-90.91,18h-1a1,1,0,0,1-1-1V15.84a7.234,7.234,0,0,1-2.28-.94l-.82.82a.99.99,0,0,1-.71.29.99.99,0,0,1-.71-.29l-.71-.71a.99.99,0,0,1-.29-.71.99.99,0,0,1,.29-.71l.82-.82a6.832,6.832,0,0,1-.94-2.27h-1.16a1,1,0,0,1-1-1v-1a1,1,0,0,1,1-1h1.16a6.868,6.868,0,0,1,.94-2.27l-.82-.82a1,1,0,0,1,0-1.41h0l.71-.71A.99.99,0,0,1-96.72,2a.99.99,0,0,1,.71.29l.82.82a6.832,6.832,0,0,1,2.27-.94V1a1,1,0,0,1,1-1h1a1,1,0,0,1,1,1V2.16a7.086,7.086,0,0,1,2.27.94l.82-.82a.99.99,0,0,1,.71-.29.99.99,0,0,1,.71.29l.71.71a.99.99,0,0,1,.29.71.99.99,0,0,1-.29.71l-.82.82a6.8,6.8,0,0,1,.94,2.28h1.16a1,1,0,0,1,1,1v1a1,1,0,0,1-1,1h-1.16a7.234,7.234,0,0,1-.94,2.28l.82.82a1,1,0,0,1,0,1.41h0l-.71.71a.99.99,0,0,1-.71.29.99.99,0,0,1-.71-.29l-.82-.82a6.832,6.832,0,0,1-2.27.94V17a.988.988,0,0,1-.99,1Zm-.5-12a3,3,0,0,0-3,3,3,3,0,0,0,3,3,3,3,0,0,0,3-3A3,3,0,0,0-91.41,6Z"}))),SvgSliderLoading=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19813,8302.5a8.5,8.5,0,1,1,8.5,8.5A8.511,8.511,0,0,1,19813,8302.5Zm2,0a6.5,6.5,0,1,0,6.5-6.5A6.51,6.51,0,0,0,19815,8302.5Zm8.963,3.234-2.6-1.5a.98.98,0,0,1-.363-.362,1,1,0,0,1-.5-.867v-5a1,1,0,1,1,2,0v4.576l2.465,1.426a1,1,0,0,1-1,1.731Z",transform:"translate(-19812.5 -8293.498)"})),SvgSmallDataSources=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:7,height:10.5,viewBox:"0 0 7 10.5",...ea},reactExports.createElement("g",{id:"data_source","data-name":"data source",transform:"translate(-519 -943)"},reactExports.createElement("ellipse",{id:"Ellipse_240","data-name":"Ellipse 240",cx:3.5,cy:1.5,rx:3.5,ry:1.5,transform:"translate(519 943)"}),reactExports.createElement("path",{id:"Subtraction_168","data-name":"Subtraction 168",d:"M3.5,3C1.57,3,0,2.422,0,1.713V.02c.03.7,1.6,1.266,3.5,1.266C5.43,1.286,7,.709,7,0V1.713C7,2.422,5.43,3,3.5,3ZM5,1.285a.5.5,0,1,0,.5.5A.5.5,0,0,0,5,1.285Z",transform:"translate(519 945.5)"}),reactExports.createElement("path",{id:"Subtraction_169","data-name":"Subtraction 169",d:"M3.5,3C1.57,3,0,2.422,0,1.713V.02c.03.7,1.6,1.266,3.5,1.266C5.43,1.286,7,.709,7,0V1.713C7,2.422,5.43,3,3.5,3ZM5,1.285a.5.5,0,1,0,.5.5A.5.5,0,0,0,5,1.285Z",transform:"translate(519 948)"}),reactExports.createElement("path",{id:"Subtraction_170","data-name":"Subtraction 170",d:"M3.5,3C1.57,3,0,2.422,0,1.713V.02c.03.7,1.6,1.266,3.5,1.266C5.43,1.286,7,.709,7,0V1.713C7,2.422,5.43,3,3.5,3ZM5,1.285a.5.5,0,1,0,.5.5A.5.5,0,0,0,5,1.285Z",transform:"translate(519 950.5)"}))),SvgBehavior=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19.938,height:20.26,viewBox:"0 0 19.938 20.26",...ea},reactExports.createElement("path",{id:"behavior",d:"M24665.561,23214l-2.824,2.83-3.893-11.664,11.67,3.887-2.83,2.824,2.83,2.83-2.123,2.123Zm-10.562-3a3,3,0,0,1-3-3v-7a3,3,0,0,1,3-3h7a3,3,0,0,1,3,3v3a14.779,14.779,0,0,1-1.5,0v-3a1.5,1.5,0,0,0-1.5-1.5h-7a1.5,1.5,0,0,0-1.5,1.5v7a1.5,1.5,0,0,0,1.5,1.506h2v1.5Z",transform:"translate(-24651.502 -23197.5)",strokeWidth:1})),SvgSmallTrash=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"small_trash","data-name":"small trash",width:13,height:12,viewBox:"0 0 13 12",...ea},reactExports.createElement("path",{id:"Subtraction_37","data-name":"Subtraction 37",d:"M2-1146H-3a2,2,0,0,1-2-2v-8H4v8A2,2,0,0,1,2-1146Zm-6-9v7a1,1,0,0,0,1,1H2a1,1,0,0,0,1-1v-7Z",transform:"translate(7 1158)"}),reactExports.createElement("path",{id:"Subtraction_38","data-name":"Subtraction 38",d:"M-2-1149H-3v-1a1,1,0,0,1,1-1H1a1,1,0,0,1,1,1v1H1v-.5a.5.5,0,0,0-.5-.5h-2a.5.5,0,0,0-.5.5v.5Z",transform:"translate(7 1151)"}),reactExports.createElement("rect",{id:"Rectangle_714","data-name":"Rectangle 714",width:13,height:1,rx:.5,transform:"translate(0 2)"}),reactExports.createElement("rect",{id:"Rectangle_718","data-name":"Rectangle 718",width:1,height:4,rx:.5,transform:"translate(5 5)"}),reactExports.createElement("rect",{id:"Rectangle_719","data-name":"Rectangle 719",width:1,height:4,rx:.5,transform:"translate(7 5)"})),SvgStop=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:9,viewBox:"0 0 9 9",...ea},reactExports.createElement("defs",null),reactExports.createElement("rect",{className:"a",width:9,height:9,rx:2})),SvgTablet=ea=>reactExports.createElement("svg",{id:"tablet",xmlns:"http://www.w3.org/2000/svg",width:14,height:16,viewBox:"0 0 14 16",...ea},reactExports.createElement("path",{id:"Subtraction_12_1_",d:"M12,16H2a2.006,2.006,0,0,1-2-2V2A2.006,2.006,0,0,1,2,0H12a2.006,2.006,0,0,1,2,2V14A2.006,2.006,0,0,1,12,16ZM3,2A1,1,0,0,0,2,3v9a1,1,0,0,0,1,1h8a1,1,0,0,0,1-1V3a1,1,0,0,0-1-1Z"})),SvgToggleArrowLeft=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5,height:7,viewBox:"0 0 5 7",...ea},reactExports.createElement("path",{id:"Polygon_4","data-name":"Polygon 4",d:"M3.5,0,7,5H0Z",transform:"translate(0 7) rotate(-90)"})),SvgToggleArrowRight=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5,height:7,viewBox:"0 0 5 7",...ea},reactExports.createElement("path",{id:"Polygon_4","data-name":"Polygon 4",d:"M3.5,0,7,5H0Z",transform:"translate(5) rotate(90)"})),SvgTrash=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11.004,height:11.004,viewBox:"0 0 11.004 11.004",...ea},reactExports.createElement("path",{id:"trash_small","data-name":"trash small",d:"M19784,8262a2,2,0,0,1-2-2v-5h-.5a.5.5,0,1,1,0-1h2.5v-1a1,1,0,0,1,1-1h2a1.007,1.007,0,0,1,1,1v1h2.5a.5.5,0,1,1,0,1h-.5v5a2,2,0,0,1-2,2Zm-1-2a1,1,0,0,0,1,1h4a1,1,0,0,0,1-1v-5h-6Zm4-6v-.5a.5.5,0,0,0-.5-.5h-1a.5.5,0,0,0-.5.5v.5Z",transform:"translate(-19780.498 -8251.497)",strokeWidth:1})),SvgUndo=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.002,height:11,viewBox:"0 0 13.002 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M15579,3504v-2a4.005,4.005,0,0,0-4-4h-3v-2h3a6.008,6.008,0,0,1,6,6v2Zm-11-7,4-4v8Z",transform:"translate(-15567.998 -3493)"})),SvgUnlink=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3787,1910.5v-2a.5.5,0,0,1,1,0v2a.5.5,0,0,1-1,0Zm3.439-1.353-1.415-1.415a.5.5,0,0,1,.707-.707l1.415,1.415a.5.5,0,0,1-.707.707Zm-10.89-1.7a3.975,3.975,0,0,1-.044-5.614l1.459-1.457,1.257,1.257-1.375,1.375a2.222,2.222,0,0,0,3.141,3.141l1.375-1.375,1.257,1.256-1.458,1.458a3.974,3.974,0,0,1-5.614-.043Zm10.95-1.45a.5.5,0,0,1,0-1h2a.5.5,0,1,1,0,1Zm-3.722-2.636,1.376-1.376a2.223,2.223,0,0,0-3.142-3.143l-1.376,1.377-1.257-1.258,1.459-1.457a4,4,0,0,1,5.656,5.656l-1.458,1.458ZM3776.5,1900a.5.5,0,0,1,0-1h2a.5.5,0,1,1,0,1Zm2.768-2.026-1.414-1.414a.5.5,0,0,1,.706-.707l1.415,1.415a.5.5,0,1,1-.707.706ZM3781,1896.5v-2a.5.5,0,0,1,1,0v2a.5.5,0,1,1-1,0Z",transform:"translate(-3775.5 -1893.5)"})),SvgUpload=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.001,height:18.061,viewBox:"0 0 13.001 18.061",...ea},reactExports.createElement("g",{id:"upload",transform:"translate(-322.999 -77)"},reactExports.createElement("path",{id:"Path_1571","data-name":"Path 1571",d:"M2.559,4.595h0a.75.75,0,0,1,0-1.061L5.034,1.059,6.095,2.12,3.62,4.595a.75.75,0,0,1-1.061,0",transform:"translate(323.5 77)"}),reactExports.createElement("path",{id:"Path_1572","data-name":"Path 1572",d:"M9.446,4.419h0a.75.75,0,0,1-1.061,0L5.027,1.06,6.087,0,9.446,3.358a.75.75,0,0,1,0,1.061",transform:"translate(323.5 77)"}),reactExports.createElement("path",{id:"Path_1573","data-name":"Path 1573",d:"M6.1,12.06h0a.7.7,0,0,1-.75-.635V1.695A.7.7,0,0,1,6.1,1.06a.7.7,0,0,1,.75.635v9.731a.7.7,0,0,1-.75.635",transform:"translate(323.5 77)"}),reactExports.createElement("path",{id:"Subtraction_248","data-name":"Subtraction 248",d:"M-12354,4094.561h-6a3,3,0,0,1-3-3v-5a3,3,0,0,1,3-3h1v1.5h-1a1.5,1.5,0,0,0-1.5,1.5v5a1.5,1.5,0,0,0,1.5,1.5h6a1.5,1.5,0,0,0,1.5-1.5v-5a1.5,1.5,0,0,0-1.5-1.5h-1v-1.5h1a3,3,0,0,1,3,3v5A3,3,0,0,1-12354,4094.561Z",transform:"translate(12686.5 -4000)",strokeWidth:1}))),SvgWordPress=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",...ea},reactExports.createElement("g",{id:"Group_1468","data-name":"Group 1468",transform:"translate(-84 -8)"},reactExports.createElement("path",{id:"Path_1563","data-name":"Path 1563",d:"M41.7,32.11A9.594,9.594,0,1,0,51.3,41.7,9.6,9.6,0,0,0,41.7,32.11ZM33.078,41.7a8.593,8.593,0,0,1,.747-3.51L37.94,49.466A8.626,8.626,0,0,1,33.078,41.7ZM41.7,50.33a8.619,8.619,0,0,1-2.437-.351l2.588-7.52,2.651,7.264a.81.81,0,0,0,.062.119A8.61,8.61,0,0,1,41.7,50.33Zm1.189-12.67c.519-.027.987-.082.987-.082a.357.357,0,0,0-.055-.711s-1.4.11-2.3.11c-.848,0-2.272-.11-2.272-.11a.357.357,0,0,0-.055.711s.44.055.9.082l1.344,3.682L39.56,47l-3.141-9.343c.52-.027.987-.082.987-.082a.357.357,0,0,0-.055-.711s-1.4.11-2.3.11c-.162,0-.353,0-.555-.01a8.623,8.623,0,0,1,13.032-1.623c-.037,0-.073-.007-.112-.007a1.494,1.494,0,0,0-1.449,1.531,4.04,4.04,0,0,0,.847,2.023,4.543,4.543,0,0,1,.711,2.379,10.444,10.444,0,0,1-.656,2.788l-.861,2.875Zm6.38-.094A8.627,8.627,0,0,1,46.04,49.159l2.635-7.617a8.145,8.145,0,0,0,.656-3.089A6.623,6.623,0,0,0,49.273,37.566Z",transform:"translate(52.296 -23.703)"}),reactExports.createElement("g",{id:"Ellipse_256","data-name":"Ellipse 256",transform:"translate(84 8)",fill:"none",strokeWidth:1},reactExports.createElement("circle",{cx:10,cy:10,r:10,stroke:"none"}),reactExports.createElement("circle",{cx:10,cy:10,r:9.5,fill:"none"})))),SvgDrop=ea=>reactExports.createElement("svg",{width:15,height:27,viewBox:"0 0 15 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.69336 1.5C5.69336 0.671573 6.36493 0 7.19336 0C8.02179 0 8.69336 0.671573 8.69336 1.5V22.5C8.69336 23.3284 8.02179 24 7.19336 24C6.36493 24 5.69336 23.3284 5.69336 22.5V1.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.06066 20.9899C0.474874 20.4041 0.474874 19.4543 1.06066 18.8685C1.64645 18.2828 2.59619 18.2828 3.18198 18.8685L9.19239 24.8789L7.07107 27.0003L1.06066 20.9899Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.202 18.8685C11.7878 18.2827 12.7376 18.2827 13.3234 18.8685C13.9091 19.4543 13.9091 20.4041 13.3234 20.9898L7.31295 27.0002L5.19163 24.8789L11.202 18.8685Z"})),SvgClock=ea=>reactExports.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 8.5C2 12.0899 4.91015 15 8.5 15C12.0899 15 15 12.0899 15 8.5C15 4.91015 12.0899 2 8.5 2C4.91015 2 2 4.91015 2 8.5ZM8.5 0C3.80558 0 0 3.80558 0 8.5C0 13.1944 3.80558 17 8.5 17C13.1944 17 17 13.1944 17 8.5C17 3.80558 13.1944 0 8.5 0ZM7.5 4C7.5 3.44772 7.94772 3 8.5 3C9.05228 3 9.5 3.44772 9.5 4V8.57794L11.963 9.99997C12.4413 10.2761 12.6052 10.8877 12.3291 11.366C12.0529 11.8443 11.4413 12.0082 10.963 11.732L8.36496 10.232C8.20689 10.1408 8.08316 10.0129 7.9983 9.86523C7.70034 9.69209 7.5 9.36944 7.5 9V4Z"})),SvgMagic=ea=>reactExports.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M5.5 1L7.17231 4.82769L11 6.5L7.17231 8.17231L5.5 12L3.82769 8.17231L0 6.5L3.82769 4.82769L5.5 1Z"}),reactExports.createElement("path",{d:"M12.5 9L13.5889 11.4111L16 12.5L13.5889 13.5889L12.5 16L11.4111 13.5889L9 12.5L11.4111 11.4111L12.5 9Z"}),reactExports.createElement("path",{d:"M13 0L13.8697 2.13026L16 3L13.8697 3.86974L13 6L12.1303 3.86974L10 3L12.1303 2.13026L13 0Z"})),SvgLayers=ea=>reactExports.createElement("svg",{width:19,height:17,viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.44816 9L1.28418 10.2493C0.56673 10.6635 0.56673 11.335 1.28418 11.7492L8.66105 16.0078C9.37851 16.422 10.5417 16.422 11.2592 16.0078L17.6861 12.2976C18.4035 11.8834 18.4035 11.2119 17.6861 10.7977L15.523 9.54899L11.6932 11.76C10.7366 12.3122 9.1856 12.3122 8.22899 11.76L3.44816 9Z"}),reactExports.createElement("rect",{width:10.4209,height:11.5179,rx:1.5,transform:"matrix(0.866044 -0.499967 0.866044 0.499967 0 5.20996)"})),SvgWizard=ea=>reactExports.createElement("svg",{width:19,height:17,viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M7.57324 6.73633C8.35425 5.95532 9.62031 5.9554 10.4014 6.73633L10.5898 6.92383C11.3708 7.70479 11.3706 8.9709 10.5898 9.75195L8.01172 12.3301C7.88803 12.4538 7.75062 12.5551 7.60645 12.6396H7.60742L3.45996 16.7871C3.16281 17.0839 2.26794 16.6703 1.46094 15.8633C0.653957 15.0563 0.240282 14.1614 0.537109 13.8643L4.68457 9.7168C4.68541 9.71597 4.68666 9.71562 4.6875 9.71484C4.77161 9.5721 4.8735 9.43607 4.99609 9.31348L7.57324 6.73633ZM16.2578 10.0664L18.3242 11L16.2578 11.9336L15.3242 14L14.3906 11.9336L12.3242 11L14.3906 10.0664L15.3242 8L16.2578 10.0664ZM9.34082 7.79688C9.14555 7.60173 8.82901 7.60165 8.63379 7.79688L6.05664 10.375C5.86146 10.5703 5.86141 10.8868 6.05664 11.082L6.24414 11.2695C6.43938 11.4647 6.75592 11.4647 6.95117 11.2695L9.5293 8.69141C9.72426 8.49614 9.72442 8.17955 9.5293 7.98438L9.34082 7.79688ZM6.58398 1.74023L8.32422 2.5L6.58398 3.25977L5.82422 5L5.06348 3.25977L3.32422 2.5L5.06348 1.74023L5.82422 0L6.58398 1.74023ZM15.6064 2.41992L17.0273 3L15.6064 3.58008L15.0273 5L14.4473 3.58008L13.0273 3L14.4473 2.41992L15.0273 1L15.6064 2.41992Z"})),SvgArrowLeft$2=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5,height:8,viewBox:"0 0 5 8",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4.0006L0.000433902 4.00015L0 3.9997L3.86347 0L5 1.17652L2.27214 4.00015L5 6.82378L3.86347 8L0 4.0006Z"})),SvgHiddenEye=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:13,viewBox:"0 0 14 13",...ea},reactExports.createElement("path",{d:"M1.46094 1.00195C1.76591 0.697243 2.26045 0.697262 2.56543 1.00195L3.5459 1.98242C4.57315 1.40518 5.74954 1.0782 6.99902 1.07812C10.329 1.07812 13.1367 3.40368 14 6.57812C13.611 8.0084 12.8256 9.26433 11.7773 10.2148L12.4541 10.8916C12.759 11.1967 12.7591 11.6911 12.4541 11.9961C12.1491 12.3008 11.6546 12.3009 11.3496 11.9961L10.499 11.1455C9.46043 11.7392 8.26799 12.0781 6.99902 12.0781C3.67044 12.0779 0.863443 9.75265 0 6.57812C0.39368 5.13064 1.19162 3.85976 2.25879 2.90527L1.46094 2.10742C1.1559 1.80238 1.1559 1.30699 1.46094 1.00195ZM3.32129 3.96777C2.53801 4.64743 1.92537 5.54275 1.56934 6.57715C2.38213 8.94044 4.5336 10.5779 6.99902 10.5781C7.84648 10.5781 8.6562 10.3838 9.3877 10.0342L8.14941 8.7959C7.805 8.97476 7.4149 9.07812 7 9.07812C5.61929 9.07812 4.5 7.95883 4.5 6.57812C4.5 6.16308 4.60226 5.77223 4.78125 5.42773L3.32129 3.96777ZM6.99902 2.57812C6.17106 2.57819 5.37852 2.76291 4.66016 3.09766L5.89844 4.33594C6.23103 4.17223 6.60425 4.07812 7 4.07812C8.3807 4.07812 9.49999 5.19743 9.5 6.57812C9.5 6.97371 9.40479 7.34622 9.24121 7.67871L10.7148 9.15234C11.4797 8.47653 12.0796 7.59495 12.4297 6.57715C11.6166 4.21512 9.46546 2.57812 6.99902 2.57812Z"})),MultipleSelect=ea=>jsxRuntimeExports.jsx(SelectLogic$1,{mode:"multiple",removeIcon:SvgRemove$2,...ea}),theme$3H=withTheme(Scheme$k),MultipleSelect$1=dt$1(MultipleSelect).withConfig({displayName:"MultipleSelect",componentId:"sc-6dgkqs-0"})([".rc-select{.rc-select-selection-overflow{gap:5px;align-items:center;width:auto !important;.rc-select-selection-item{display:flex;align-items:center;padding:0;margin:0;border-radius:0;}.rc-select-selection-item-content{display:inline-block;margin-right:3px;}.rc-select-selection-item-remove{position:relative;display:flex;top:1px;cursor:pointer;}}}"," ",""],theme$3H.colors(ea=>lt$1([".rc-select{.rc-select-selection-overflow{.rc-select-selection-item{background:",";}.rc-select-selection-item-remove svg{fill:",";}.rc-select-selection-item:hover{background:",";}}&.rc-select-disabled .rc-select-selection-overflow .rc-select-selection-item{background:"," !important;}}"],ea.multiple.background,ea.multiple.removeIcon,ea.multiple.hover.background,ea.multiple.background)),theme$3H.sizes((ea,{size:na="small"})=>lt$1([".rc-select{.rc-select-selection-overflow{.rc-select-selection-item{padding:",";border-radius:",";}}}"],ea[na].multiple.padding,ea[na].multiple.border))),useInputValidation=ea=>{const na=reactExports.useRef(null),ra=reactExports.useCallback(sa=>ea?typeof ea=="string"?RegExp(ea).test(sa??""):typeof ea=="object"?ea.test(sa??""):ea(sa):!0,[ea]),oa=reactExports.useCallback(()=>{na.current?.setCustomValidity("");const sa=na.current?.value,la=ra(sa);return na.current?.validity.valid&&la?(na.current?.setCustomValidity(""),!0):(na.current?.setCustomValidity("invalid"),!1)},[ra]),aa=reactExports.useCallback(sa=>{na.current=sa},[]);return{checkValidity:oa,setInputRef:aa}},useInputProps=(ea,na)=>{const{value:ra,defaultValue:oa,preventChange:aa,onBlurChange:sa,onEnterKeyChange:la=!0,pattern:ca,validationOn:ua,revertCorrectValue:da,onChange:pa,onBlur:ha,onFocus:ga,onKeyDown:fa,onInput:ma,length:va,...xa}=ea,[ya,Aa]=reactExports.useState(ra||""),Ca=ra!==void 0||pa!==void 0,Sa=isIndeterminate(ya),{setInputRef:wa,checkValidity:ba}=useInputValidation(ca),[Ea,$a]=reactExports.useState(!0);reactExports.useEffect(()=>{Aa(ra||"")},[ra]),reactExports.useEffect(()=>{!Ea&&da&&Aa(ra||"")},[Ea,ra,da]);const Ma=reactExports.useCallback(Fa=>{Fa&&(assignRef$1(Fa,na),wa(Fa))},[wa,na]),Ia=reactExports.useCallback((Fa="")=>{!aa&&ba()&&(!va||Fa.length<=va)&&pa?.(Fa)},[aa,ba,va,pa]),Oa=reactExports.useCallback(Fa=>{Ca&&(Aa(Fa.target.value),sa||Ia(Fa.target.value))},[Ca,sa,Ia]),Da=reactExports.useCallback(Fa=>{Ca&&sa&&(Aa(Fa.target.value),Ia(Fa.target.value)),ua==="blur"&&$a(ba()),ha?.(Fa)},[Ca,sa,ua,ba,Ia,ha]),Ta=reactExports.useCallback(Fa=>{Ca&&Sa&&(Aa(""),Ia("")),ga?.(Fa)},[Sa,Ca,Ia,ga]),_a=reactExports.useCallback(Fa=>{la&&["Enter"].includes(Fa.key)&&(Aa(Fa.currentTarget.value),Ia(Fa.currentTarget.value)),fa?.(Fa)},[la,Ia,fa]),La=reactExports.useCallback(Fa=>{Fa.preventDefault()},[]),Na=reactExports.useCallback(Fa=>{Aa(Fa.currentTarget.value),ua==="input"&&$a(ba()),ma?.(Fa)},[ua,ba,ma]),za=reactExports.useCallback(()=>{ua==="submit"&&$a(ba())},[ua,ba]);return reactExports.useEffect(()=>{const Fa=na.current?.form;return Fa&&ua==="submit"?(Fa.addEventListener("submit",za),()=>{Fa.removeEventListener("submit",za)}):()=>{}},[ua,na,za]),{isValid:Ea,inputValue:ya,onBlur:Da,onFocus:Ta,onKeyDown:_a,ref:Ma,onInvalid:La,onInput:Na,...Ca?{value:Sa?"—":ya,onChange:Oa}:{defaultValue:oa},...xa}},SvgInvalid=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,viewBox:"0 0 14 14",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-513 -1673)"},reactExports.createElement("circle",{className:"a",cx:7,cy:7,r:7,transform:"translate(513 1673)"}),reactExports.createElement("rect",{className:"b",width:2,height:5,transform:"translate(519 1679)"}),reactExports.createElement("rect",{className:"b",width:2,height:1,transform:"translate(518 1679)"}),reactExports.createElement("rect",{className:"b",width:2,height:2,rx:1,transform:"translate(519 1676)"})));function _inheritsLoose(ea,na){ea.prototype=Object.create(na.prototype),ea.prototype.constructor=ea,_setPrototypeOf$1(ea,na)}const config={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(na){return na.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(ea){_inheritsLoose(na,ea);function na(oa,aa){var sa;sa=ea.call(this,oa,aa)||this;var la=aa,ca=la&&!la.isMounting?oa.enter:oa.appear,ua;return sa.appearStatus=null,oa.in?ca?(ua=EXITED,sa.appearStatus=ENTERING):ua=ENTERED:oa.unmountOnExit||oa.mountOnEnter?ua=UNMOUNTED:ua=EXITED,sa.state={status:ua},sa.nextCallback=null,sa}na.getDerivedStateFromProps=function(aa,sa){var la=aa.in;return la&&sa.status===UNMOUNTED?{status:EXITED}:null};var ra=na.prototype;return ra.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ra.componentDidUpdate=function(aa){var sa=null;if(aa!==this.props){var la=this.state.status;this.props.in?la!==ENTERING&&la!==ENTERED&&(sa=ENTERING):(la===ENTERING||la===ENTERED)&&(sa=EXITING)}this.updateStatus(!1,sa)},ra.componentWillUnmount=function(){this.cancelNextCallback()},ra.getTimeouts=function(){var aa=this.props.timeout,sa,la,ca;return sa=la=ca=aa,aa!=null&&typeof aa!="number"&&(sa=aa.exit,la=aa.enter,ca=aa.appear!==void 0?aa.appear:la),{exit:sa,enter:la,appear:ca}},ra.updateStatus=function(aa,sa){if(aa===void 0&&(aa=!1),sa!==null)if(this.cancelNextCallback(),sa===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var la=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);la&&forceReflow(la)}this.performEnter(aa)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},ra.performEnter=function(aa){var sa=this,la=this.props.enter,ca=this.context?this.context.isMounting:aa,ua=this.props.nodeRef?[ca]:[ReactDOM.findDOMNode(this),ca],da=ua[0],pa=ua[1],ha=this.getTimeouts(),ga=ca?ha.appear:ha.enter;if(!aa&&!la||config.disabled){this.safeSetState({status:ENTERED},function(){sa.props.onEntered(da)});return}this.props.onEnter(da,pa),this.safeSetState({status:ENTERING},function(){sa.props.onEntering(da,pa),sa.onTransitionEnd(ga,function(){sa.safeSetState({status:ENTERED},function(){sa.props.onEntered(da,pa)})})})},ra.performExit=function(){var aa=this,sa=this.props.exit,la=this.getTimeouts(),ca=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!sa||config.disabled){this.safeSetState({status:EXITED},function(){aa.props.onExited(ca)});return}this.props.onExit(ca),this.safeSetState({status:EXITING},function(){aa.props.onExiting(ca),aa.onTransitionEnd(la.exit,function(){aa.safeSetState({status:EXITED},function(){aa.props.onExited(ca)})})})},ra.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},ra.safeSetState=function(aa,sa){sa=this.setNextCallback(sa),this.setState(aa,sa)},ra.setNextCallback=function(aa){var sa=this,la=!0;return this.nextCallback=function(ca){la&&(la=!1,sa.nextCallback=null,aa(ca))},this.nextCallback.cancel=function(){la=!1},this.nextCallback},ra.onTransitionEnd=function(aa,sa){this.setNextCallback(sa);var la=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ca=aa==null&&!this.props.addEndListener;if(!la||ca){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ua=this.props.nodeRef?[this.nextCallback]:[la,this.nextCallback],da=ua[0],pa=ua[1];this.props.addEndListener(da,pa)}aa!=null&&setTimeout(this.nextCallback,aa)},ra.render=function(){var aa=this.state.status;if(aa===UNMOUNTED)return null;var sa=this.props,la=sa.children;sa.in,sa.mountOnEnter,sa.unmountOnExit,sa.appear,sa.enter,sa.exit,sa.timeout,sa.addEndListener,sa.onEnter,sa.onEntering,sa.onEntered,sa.onExit,sa.onExiting,sa.onExited,sa.nodeRef;var ca=_objectWithoutPropertiesLoose$3(sa,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof la=="function"?la(aa,ca):React.cloneElement(React.Children.only(la),ca))},na}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$1(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$1,onEntering:noop$1,onEntered:noop$1,onExit:noop$1,onExiting:noop$1,onExited:noop$1};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function r$1(ea){var na,ra,oa="";if(typeof ea=="string"||typeof ea=="number")oa+=ea;else if(typeof ea=="object")if(Array.isArray(ea))for(na=0;na<ea.length;na++)ea[na]&&(ra=r$1(ea[na]))&&(oa&&(oa+=" "),oa+=ra);else for(na in ea)ea[na]&&(oa&&(oa+=" "),oa+=na);return oa}function clsx(){for(var ea,na,ra=0,oa="";ra<arguments.length;)(ea=arguments[ra++])&&(na=r$1(ea))&&(oa&&(oa+=" "),oa+=na);return oa}function _extends$3(){return _extends$3=Object.assign||function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends$3.apply(this,arguments)}function _objectWithoutPropertiesLoose$2(ea,na){if(ea==null)return{};var ra={},oa=Object.keys(ea),aa,sa;for(sa=0;sa<oa.length;sa++)aa=oa[sa],!(na.indexOf(aa)>=0)&&(ra[aa]=ea[aa]);return ra}function isNum(ea){return typeof ea=="number"&&!isNaN(ea)}function isBool(ea){return typeof ea=="boolean"}function isStr(ea){return typeof ea=="string"}function isFn(ea){return typeof ea=="function"}function parseClassName(ea){return isStr(ea)||isFn(ea)?ea:null}function hasToastId(ea){return ea===0||ea}function getAutoCloseDelay(ea,na){return ea===!1||isNum(ea)&&ea>0?ea:na}var canUseDom=!!(typeof window<"u"&&window.document&&window.document.createElement);function canBeRendered(ea){return reactExports.isValidElement(ea)||isStr(ea)||isFn(ea)||isNum(ea)}var POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function collapseToast(ea,na,ra){ra===void 0&&(ra=300);var oa=ea.scrollHeight,aa=ea.style;requestAnimationFrame(function(){aa.minHeight="initial",aa.height=oa+"px",aa.transition="all "+ra+"ms",requestAnimationFrame(function(){aa.height="0",aa.padding="0",aa.margin="0",setTimeout(function(){return na()},ra)})})}function cssTransition(ea){var na=ea.enter,ra=ea.exit,oa=ea.duration,aa=oa===void 0?750:oa,sa=ea.appendPosition,la=sa===void 0?!1:sa,ca=ea.collapse,ua=ca===void 0?!0:ca,da=ea.collapseDuration,pa=da===void 0?300:da,ha,ga;return Array.isArray(aa)&&aa.length===2?(ha=aa[0],ga=aa[1]):ha=ga=aa,function(ma){var va=ma.children,xa=ma.position,ya=ma.preventExitTransition,Aa=ma.done,Ca=_objectWithoutPropertiesLoose$2(ma,["children","position","preventExitTransition","done"]),Sa=la?na+"--"+xa:na,wa=la?ra+"--"+xa:ra,ba=function(){var Oa=Ca.nodeRef.current;Oa&&(Oa.classList.add(Sa),Oa.style.animationFillMode="forwards",Oa.style.animationDuration=ha+"ms")},Ea=function(){var Oa=Ca.nodeRef.current;Oa&&(Oa.classList.remove(Sa),Oa.style.removeProperty("animationFillMode"),Oa.style.removeProperty("animationDuration"))},$a=function Ia(){var Oa=Ca.nodeRef.current;Oa&&(Oa.removeEventListener("animationend",Ia),ua?collapseToast(Oa,Aa,pa):Aa())},Ma=function(){var Oa=Ca.nodeRef.current;Oa&&(Oa.classList.add(wa),Oa.style.animationFillMode="forwards",Oa.style.animationDuration=ga+"ms",Oa.addEventListener("animationend",$a))};return reactExports.createElement(Transition,Object.assign({},Ca,{timeout:ya?ua?pa:50:{enter:ha,exit:ua?ga+pa:ga+50},onEnter:ba,onEntered:Ea,onExit:ya?$a:Ma,unmountOnExit:!0}),va)}}var eventManager={list:new Map,emitQueue:new Map,on:function(na,ra){return this.list.has(na)||this.list.set(na,[]),this.list.get(na).push(ra),this},off:function(na,ra){if(ra){var oa=this.list.get(na).filter(function(aa){return aa!==ra});return this.list.set(na,oa),this}return this.list.delete(na),this},cancelEmit:function(na){var ra=this.emitQueue.get(na);return ra&&(ra.forEach(function(oa){return clearTimeout(oa)}),this.emitQueue.delete(na)),this},emit:function(na){for(var ra=this,oa=arguments.length,aa=new Array(oa>1?oa-1:0),sa=1;sa<oa;sa++)aa[sa-1]=arguments[sa];this.list.has(na)&&this.list.get(na).forEach(function(la){var ca=setTimeout(function(){la.apply(void 0,aa)},0);ra.emitQueue.has(na)||ra.emitQueue.set(na,[]),ra.emitQueue.get(na).push(ca)})}};function useKeeper(ea,na){na===void 0&&(na=!1);var ra=reactExports.useRef(ea);return reactExports.useEffect(function(){na&&(ra.current=ea)}),ra.current}function reducer$6(ea,na){switch(na.type){case"ADD":return[].concat(ea,[na.toastId]).filter(function(ra){return ra!==na.staleId});case"REMOVE":return hasToastId(na.toastId)?ea.filter(function(ra){return ra!==na.toastId}):[]}}function useToastContainer(ea){var na=reactExports.useReducer(function(Sa){return Sa+1},0),ra=na[1],oa=reactExports.useReducer(reducer$6,[]),aa=oa[0],sa=oa[1],la=reactExports.useRef(null),ca=useKeeper(0),ua=useKeeper([]),da=useKeeper({}),pa=useKeeper({toastKey:1,displayedToast:0,props:ea,containerId:null,isToastActive:ha,getToast:function(wa){return da[wa]||null}});reactExports.useEffect(function(){return pa.containerId=ea.containerId,eventManager.cancelEmit(3).on(0,xa).on(1,function(Sa){return la.current&&fa(Sa)}).on(5,ga).emit(2,pa),function(){return eventManager.emit(3,pa)}},[]),reactExports.useEffect(function(){pa.isToastActive=ha,pa.displayedToast=aa.length,eventManager.emit(4,aa.length,ea.containerId)},[aa]),reactExports.useEffect(function(){pa.props=ea});function ha(Sa){return aa.indexOf(Sa)!==-1}function ga(Sa){var wa=Sa.containerId,ba=pa.props,Ea=ba.limit,$a=ba.enableMultiContainer;Ea&&(!wa||pa.containerId===wa&&$a)&&(ca-=ua.length,ua=[])}function fa(Sa){var wa=ua.length;if(ca=hasToastId(Sa)?ca-1:ca-pa.displayedToast,ca<0&&(ca=0),wa>0){var ba=hasToastId(Sa)?1:pa.props.limit;if(wa===1||ba===1)pa.displayedToast++,ma();else{var Ea=ba>wa?wa:ba;pa.displayedToast=Ea;for(var $a=0;$a<Ea;$a++)ma()}}sa({type:"REMOVE",toastId:Sa})}function ma(){var Sa=ua.shift(),wa=Sa.toastContent,ba=Sa.toastProps,Ea=Sa.staleId;setTimeout(function(){ya(wa,ba,Ea)},500)}function va(Sa){var wa=Sa.containerId,ba=Sa.toastId,Ea=Sa.updateId;return!!(!la.current||pa.props.enableMultiContainer&&wa!==pa.props.containerId||pa.isToastActive(ba)&&Ea==null)}function xa(Sa,wa){var ba=wa.delay,Ea=wa.staleId,$a=_objectWithoutPropertiesLoose$2(wa,["delay","staleId"]);if(!(!canBeRendered(Sa)||va($a))){var Ma=$a.toastId,Ia=$a.updateId,Oa=pa.props,Da=pa.isToastActive,Ta=function(){return fa(Ma)},_a=!Da(Ma);_a&&ca++;var La={toastId:Ma,updateId:Ia,key:$a.key||pa.toastKey++,type:$a.type,closeToast:Ta,closeButton:$a.closeButton,rtl:Oa.rtl,position:$a.position||Oa.position,transition:$a.transition||Oa.transition,className:parseClassName($a.className||Oa.toastClassName),bodyClassName:parseClassName($a.bodyClassName||Oa.bodyClassName),style:$a.style||Oa.toastStyle,bodyStyle:$a.bodyStyle||Oa.bodyStyle,onClick:$a.onClick||Oa.onClick,pauseOnHover:isBool($a.pauseOnHover)?$a.pauseOnHover:Oa.pauseOnHover,pauseOnFocusLoss:isBool($a.pauseOnFocusLoss)?$a.pauseOnFocusLoss:Oa.pauseOnFocusLoss,draggable:isBool($a.draggable)?$a.draggable:Oa.draggable,draggablePercent:isNum($a.draggablePercent)?$a.draggablePercent:Oa.draggablePercent,closeOnClick:isBool($a.closeOnClick)?$a.closeOnClick:Oa.closeOnClick,progressClassName:parseClassName($a.progressClassName||Oa.progressClassName),progressStyle:$a.progressStyle||Oa.progressStyle,autoClose:getAutoCloseDelay($a.autoClose,Oa.autoClose),hideProgressBar:isBool($a.hideProgressBar)?$a.hideProgressBar:Oa.hideProgressBar,progress:$a.progress,role:isStr($a.role)?$a.role:Oa.role,deleteToast:function(){Aa(Ma)}};isFn($a.onOpen)&&(La.onOpen=$a.onOpen),isFn($a.onClose)&&(La.onClose=$a.onClose);var Na=Oa.closeButton;$a.closeButton===!1||canBeRendered($a.closeButton)?Na=$a.closeButton:$a.closeButton===!0&&(Na=canBeRendered(Oa.closeButton)?Oa.closeButton:!0),La.closeButton=Na;var za=Sa;reactExports.isValidElement(Sa)&&!isStr(Sa.type)?za=reactExports.cloneElement(Sa,{closeToast:Ta,toastProps:La}):isFn(Sa)&&(za=Sa({closeToast:Ta,toastProps:La})),Oa.limit&&Oa.limit>0&&ca>Oa.limit&&_a?ua.push({toastContent:za,toastProps:La,staleId:Ea}):isNum(ba)&&ba>0?setTimeout(function(){ya(za,La,Ea)},ba):ya(za,La,Ea)}}function ya(Sa,wa,ba){var Ea=wa.toastId;da[Ea]={content:Sa,props:wa},sa({type:"ADD",toastId:Ea,staleId:ba})}function Aa(Sa){delete da[Sa],ra()}function Ca(Sa){for(var wa={},ba=ea.newestOnTop?Object.keys(da).reverse():Object.keys(da),Ea=0;Ea<ba.length;Ea++){var $a=da[ba[Ea]],Ma=$a.props.position;wa[Ma]||(wa[Ma]=[]),wa[Ma].push($a)}return Object.keys(wa).map(function(Ia){return Sa(Ia,wa[Ia])})}return{getToastToRender:Ca,collection:da,containerRef:la,isToastActive:ha}}function getX(ea){return ea.targetTouches&&ea.targetTouches.length>=1?ea.targetTouches[0].clientX:ea.clientX}function getY(ea){return ea.targetTouches&&ea.targetTouches.length>=1?ea.targetTouches[0].clientY:ea.clientY}function useToast$1(ea){var na=reactExports.useState(!0),ra=na[0],oa=na[1],aa=reactExports.useState(!1),sa=aa[0],la=aa[1],ca=reactExports.useRef(null),ua=useKeeper({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),da=useKeeper(ea,!0),pa=ea.autoClose,ha=ea.pauseOnHover,ga=ea.closeToast,fa=ea.onClick,ma=ea.closeOnClick;reactExports.useEffect(function(){return isFn(ea.onOpen)&&ea.onOpen(reactExports.isValidElement(ea.children)&&ea.children.props),function(){isFn(da.onClose)&&da.onClose(reactExports.isValidElement(da.children)&&da.children.props)}},[]),reactExports.useEffect(function(){return ea.draggable&&wa(),function(){ea.draggable&&ba()}},[ea.draggable]),reactExports.useEffect(function(){return ea.pauseOnFocusLoss&&Ca(),function(){ea.pauseOnFocusLoss&&Sa()}},[ea.pauseOnFocusLoss]);function va(Ia){var Oa=ca.current;ua.canCloseOnClick=!0,ua.canDrag=!0,ua.boundingRect=Oa.getBoundingClientRect(),Oa.style.transition="",ua.start=ua.x=getX(Ia.nativeEvent),ua.removalDistance=Oa.offsetWidth*(ea.draggablePercent/100)}function xa(){if(ua.boundingRect){var Ia=ua.boundingRect,Oa=Ia.top,Da=Ia.bottom,Ta=Ia.left,_a=Ia.right;ea.pauseOnHover&&ua.x>=Ta&&ua.x<=_a&&ua.y>=Oa&&ua.y<=Da?Aa():ya()}}function ya(){oa(!0)}function Aa(){oa(!1)}function Ca(){window.addEventListener("focus",ya),window.addEventListener("blur",Aa)}function Sa(){window.removeEventListener("focus",ya),window.removeEventListener("blur",Aa)}function wa(){document.addEventListener("mousemove",Ea),document.addEventListener("mouseup",$a),document.addEventListener("touchmove",Ea),document.addEventListener("touchend",$a)}function ba(){document.removeEventListener("mousemove",Ea),document.removeEventListener("mouseup",$a),document.removeEventListener("touchmove",Ea),document.removeEventListener("touchend",$a)}function Ea(Ia){Ia.preventDefault();var Oa=ca.current;ua.canDrag&&(ra&&Aa(),ua.x=getX(Ia),ua.deltaX=ua.x-ua.start,ua.y=getY(Ia),ua.start!==ua.x&&(ua.canCloseOnClick=!1),Oa.style.transform="translateX("+ua.deltaX+"px)",Oa.style.opacity=""+(1-Math.abs(ua.deltaX/ua.removalDistance)))}function $a(){var Ia=ca.current;if(ua.canDrag){if(ua.canDrag=!1,Math.abs(ua.deltaX)>ua.removalDistance){la(!0),ea.closeToast();return}Ia.style.transition="transform 0.2s, opacity 0.2s",Ia.style.transform="translateX(0)",Ia.style.opacity="1"}}var Ma={onMouseDown:va,onTouchStart:va,onMouseUp:xa,onTouchEnd:xa};return pa&&ha&&(Ma.onMouseEnter=Aa,Ma.onMouseLeave=ya),ma&&(Ma.onClick=function(Ia){fa&&fa(Ia),ua.canCloseOnClick&&ga()}),{playToast:ya,pauseToast:Aa,isRunning:ra,preventExitTransition:sa,toastRef:ca,eventHandlers:Ma}}function CloseButton$4(ea){var na=ea.closeToast,ra=ea.type,oa=ea.ariaLabel,aa=oa===void 0?"close":oa;return reactExports.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+ra,type:"button",onClick:function(la){la.stopPropagation(),na(la)},"aria-label":aa},reactExports.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},reactExports.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ProgressBar$1(ea){var na,ra,oa=ea.delay,aa=ea.isRunning,sa=ea.closeToast,la=ea.type,ca=ea.hide,ua=ea.className,da=ea.style,pa=ea.controlledProgress,ha=ea.progress,ga=ea.rtl,fa=ea.isIn,ma=_extends$3({},da,{animationDuration:oa+"ms",animationPlayState:aa?"running":"paused",opacity:ca?0:1});pa&&(ma.transform="scaleX("+ha+")");var va=["Toastify__progress-bar",pa?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+la,(na={},na["Toastify__progress-bar--rtl"]=ga,na)],xa=isFn(ua)?ua({rtl:ga,type:la,defaultClassName:clsx.apply(void 0,va)}):clsx.apply(void 0,[].concat(va,[ua])),ya=(ra={},ra[pa&&ha>=1?"onTransitionEnd":"onAnimationEnd"]=pa&&ha<1?null:function(){fa&&sa()},ra);return reactExports.createElement("div",Object.assign({className:xa,style:ma},ya))}ProgressBar$1.defaultProps={type:TYPE.DEFAULT,hide:!1};var Toast=function(na){var ra,oa=useToast$1(na),aa=oa.isRunning,sa=oa.preventExitTransition,la=oa.toastRef,ca=oa.eventHandlers,ua=na.closeButton,da=na.children,pa=na.autoClose,ha=na.onClick,ga=na.type,fa=na.hideProgressBar,ma=na.closeToast,va=na.transition,xa=na.position,ya=na.className,Aa=na.style,Ca=na.bodyClassName,Sa=na.bodyStyle,wa=na.progressClassName,ba=na.progressStyle,Ea=na.updateId,$a=na.role,Ma=na.progress,Ia=na.rtl,Oa=na.toastId,Da=na.deleteToast,Ta=["Toastify__toast","Toastify__toast--"+ga,(ra={},ra["Toastify__toast--rtl"]=Ia,ra)],_a=isFn(ya)?ya({rtl:Ia,position:xa,type:ga,defaultClassName:clsx.apply(void 0,Ta)}):clsx.apply(void 0,[].concat(Ta,[ya])),La=!!Ma;function Na(za){if(za){var Fa={closeToast:ma,type:ga};if(isFn(za))return za(Fa);if(reactExports.isValidElement(za))return reactExports.cloneElement(za,Fa)}}return reactExports.createElement(va,{in:na.in,appear:!0,done:Da,position:xa,preventExitTransition:sa,nodeRef:la},reactExports.createElement("div",Object.assign({id:Oa,onClick:ha,className:_a||void 0},ca,{style:Aa,ref:la}),reactExports.createElement("div",Object.assign({},na.in&&{role:$a},{className:isFn(Ca)?Ca({type:ga}):clsx("Toastify__toast-body",Ca),style:Sa}),da),Na(ua),(pa||La)&&reactExports.createElement(ProgressBar$1,Object.assign({},Ea&&!La?{key:"pb-"+Ea}:{},{rtl:Ia,delay:pa,isRunning:aa,isIn:na.in,closeToast:ma,hide:fa,type:ga,style:ba,className:wa,controlledProgress:La,progress:Ma}))))},Bounce=cssTransition({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),ToastPositioner=function(na){var ra=na.children,oa=na.className,aa=na.style,sa=_objectWithoutPropertiesLoose$2(na,["children","className","style"]);return delete sa.in,reactExports.createElement("div",{className:oa,style:aa},reactExports.Children.map(ra,function(la){return reactExports.cloneElement(la,sa)}))},ToastContainer=function(na){var ra=useToastContainer(na),oa=ra.getToastToRender,aa=ra.containerRef,sa=ra.isToastActive,la=na.className,ca=na.style,ua=na.rtl,da=na.containerId;return reactExports.createElement("div",{ref:aa,className:"Toastify",id:da},oa(function(pa,ha){var ga,fa,ma={className:isFn(la)?la({position:pa,rtl:ua,defaultClassName:clsx("Toastify__toast-container","Toastify__toast-container--"+pa,(ga={},ga["Toastify__toast-container--rtl"]=ua,ga))}):clsx("Toastify__toast-container","Toastify__toast-container--"+pa,(fa={},fa["Toastify__toast-container--rtl"]=ua,fa),parseClassName(la)),style:ha.length===0?_extends$3({},ca,{pointerEvents:"none"}):_extends$3({},ca)};return reactExports.createElement(ToastPositioner,Object.assign({},ma,{key:"container-"+pa}),ha.map(function(va){var xa=va.content,ya=va.props;return reactExports.createElement(Toast,Object.assign({},ya,{in:sa(ya.toastId),key:"toast-"+ya.key,closeButton:ya.closeButton===!0?CloseButton$4:ya.closeButton}),xa)}))}))};ToastContainer.defaultProps={position:POSITION.TOP_RIGHT,transition:Bounce,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:CloseButton$4,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,role:"alert"};var containers=new Map,latestInstance,containerDomNode,containerConfig,queue=[],lazy=!1;function isAnyContainerMounted(){return containers.size>0}function getContainer(ea){return isAnyContainerMounted()?containers.get(ea||latestInstance):null}function getToast(ea,na){var ra=na.containerId,oa=getContainer(ra);return oa?oa.getToast(ea):null}function generateToastId(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function getToastId(ea){return ea&&(isStr(ea.toastId)||isNum(ea.toastId))?ea.toastId:generateToastId()}function dispatchToast(ea,na){return isAnyContainerMounted()?eventManager.emit(0,ea,na):(queue.push({content:ea,options:na}),lazy&&canUseDom&&(lazy=!1,containerDomNode=document.createElement("div"),document.body.appendChild(containerDomNode),reactDomExports.render(reactExports.createElement(ToastContainer,Object.assign({},containerConfig)),containerDomNode))),na.toastId}function mergeOptions$1(ea,na){return _extends$3({},na,{type:na&&na.type||ea,toastId:getToastId(na)})}var toast=function(na,ra){return dispatchToast(na,mergeOptions$1(TYPE.DEFAULT,ra))};toast.success=function(ea,na){return dispatchToast(ea,mergeOptions$1(TYPE.SUCCESS,na))};toast.info=function(ea,na){return dispatchToast(ea,mergeOptions$1(TYPE.INFO,na))};toast.error=function(ea,na){return dispatchToast(ea,mergeOptions$1(TYPE.ERROR,na))};toast.warning=function(ea,na){return dispatchToast(ea,mergeOptions$1(TYPE.WARNING,na))};toast.dark=function(ea,na){return dispatchToast(ea,mergeOptions$1(TYPE.DARK,na))};toast.warn=toast.warning;toast.dismiss=function(ea){return isAnyContainerMounted()&&eventManager.emit(1,ea)};toast.clearWaitingQueue=function(ea){return ea===void 0&&(ea={}),isAnyContainerMounted()&&eventManager.emit(5,ea)};toast.isActive=function(ea){var na=!1;return containers.forEach(function(ra){ra.isToastActive&&ra.isToastActive(ea)&&(na=!0)}),na};toast.update=function(ea,na){na===void 0&&(na={}),setTimeout(function(){var ra=getToast(ea,na);if(ra){var oa=ra.props,aa=ra.content,sa=_extends$3({},oa,na,{toastId:na.toastId||ea,updateId:generateToastId()});sa.toastId!==ea&&(sa.staleId=ea);var la=typeof sa.render<"u"?sa.render:aa;delete sa.render,dispatchToast(la,sa)}},0)};toast.done=function(ea){toast.update(ea,{progress:1})};toast.onChange=function(ea){return isFn(ea)&&eventManager.on(4,ea),function(){isFn(ea)&&eventManager.off(4,ea)}};toast.configure=function(ea){ea===void 0&&(ea={}),lazy=!0,containerConfig=ea};toast.POSITION=POSITION;toast.TYPE=TYPE;eventManager.on(2,function(ea){latestInstance=ea.containerId||ea,containers.set(latestInstance,ea),queue.forEach(function(na){eventManager.emit(0,na.content,na.options)}),queue=[]}).on(3,function(ea){containers.delete(ea.containerId||ea),containers.size===0&&eventManager.off(0).off(1).off(5),canUseDom&&containerDomNode&&document.body.removeChild(containerDomNode)});const defaultColors$1X={color:"#FFF",iconColor:"#FFF",shadow:"rgba(0, 0, 0, 0.25)",success:{accent:"#01D06F",bg:"#222222"},warning:{accent:"#FFB913",bg:"#222222"},info:{accent:"#7361E8",bg:"#222222"},error:{accent:"#FF504A",bg:"#222222"},custom:{accent:"#000000",bg:"#222222"}},colors$1X={dark:defaultColors$1X,light:{color:"#000000",iconColor:"#FFF",shadow:"rgba(0, 0, 0, 0)",success:{accent:"#01D06F",bg:"rgba(1, 208, 111, 0.1)"},warning:{accent:"#FFB913",bg:"rgba(255, 185, 19, 0.1)"},info:{accent:"#7361E8",bg:"rgba(115, 97, 232, 0.1)"},error:{accent:"#FF504A",bg:"rgba(255, 80, 74, 0.1)"},custom:{accent:"#000000",bg:"#FDFDFD"}}},defaultSizing$1H={width:"320px",border:"5px",padding:"10px",title:{size:"13px",weight:"600"},content:{size:"13px",weight:"400"},top:"50px",left:"50px",right:"50px",bottom:"50px"},sizes$1X={default:defaultSizing$1H},scheme$1t=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1X,sizes:sizes$1X},Symbol.toStringTag,{value:"Module"})),Close=`<svg id="small_close" data-name="small close" xmlns="http://www.w3.org/2000/svg" width="5.658" height="5.657" viewBox="0 0 5.658 5.657">
  <rect id="Rectangle_928" data-name="Rectangle 928" width="1" height="7" transform="translate(5.657 4.95) rotate(135)" fill="#fff"/>
  <rect id="Rectangle_929" data-name="Rectangle 929" width="1" height="7" transform="translate(4.951 0) rotate(45)" fill="#fff"/>
</svg>
`,Fade=cssTransition({enter:"fade-in",exit:"fade-out",duration:[500,800]}),Flags=ea=>jsxRuntimeExports.jsx(ToastContainer,{transition:Fade,...ea}),theme$3G=withTheme(scheme$1t),FlagsContainer=withDefaultProps(dt$1(Flags).withConfig({displayName:"FlagsContainer",componentId:"sc-6a8fmp-0"})(["&.Toastify__toast-container{position:fixed;z-index:9999;}.Toastify__toast{position:relative;margin-top:10px;&.fade-in{animation-name:fadeIn;}&.fade-out{animation-name:fadeOut;}}.Toastify__close-button{position:absolute;top:3px;right:10px;background-image:url('","');background-color:transparent;border:none;background-repeat:no-repeat;background-position:center;padding:5px 10px;cursor:pointer;}&.Toastify__close-button > svg{display:none;}"," @keyframes fadeIn{0%{opacity:0;}100%{opacity:1;}}@keyframes fadeOut{0%{opacity:1;}100%{opacity:0;}}"],encodeSvg(Close),theme$3G.sizes(ea=>lt$1(["&.Toastify__toast-container--top-left{top:",";left:",";}&.Toastify__toast-container--top-center{top:",";left:50%;transform:translateX(-50%);}&.Toastify__toast-container--top-right{top:",";right:",";}&.Toastify__toast-container--bottom-left{bottom:",";left:",";}&.Toastify__toast-container--bottom-center{bottom:",";left:50%;transform:translateX(-50%);}&.Toastify__toast-container--bottom-right{bottom:",";right:",";}"],ea.top,ea.left,ea.top,ea.top,ea.right,ea.bottom,ea.left,ea.bottom,ea.bottom,ea.right))),{closeOnClick:!1,autoClose:3e3,position:"bottom-left"}),SvgSuccess=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",...ea},reactExports.createElement("g",{id:"success",transform:"translate(-1055 -2259)"},reactExports.createElement("circle",{id:"Ellipse_82","data-name":"Ellipse 82",cx:8.5,cy:8.5,r:8.5,transform:"translate(1055 2259)"}),reactExports.createElement("g",{id:"Group_283","data-name":"Group 283",transform:"translate(437.067 1371.36) rotate(30)"},reactExports.createElement("rect",{id:"Rectangle_795","data-name":"Rectangle 795",width:8.5,height:2,rx:1,transform:"translate(992.5 458) rotate(90)"}),reactExports.createElement("rect",{id:"Rectangle_797","data-name":"Rectangle 797",width:2,height:4.5,rx:1,transform:"translate(992.5 465) rotate(90)"})))),SvgWarning=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",...ea},reactExports.createElement("g",{id:"warning",transform:"translate(-1055 -2171)"},reactExports.createElement("g",{id:"Group_297","data-name":"Group 297",transform:"translate(1054.999 2171.002)"},reactExports.createElement("path",{id:"Path_989","data-name":"Path 989",d:"M10.092,1.272c-.876-1.7-2.308-1.7-3.184,0L.374,13.92C-.5,15.619.215,17,1.966,17H15.035c1.751,0,2.467-1.388,1.592-3.078Z",transform:"translate(0)"})),reactExports.createElement("rect",{id:"Rectangle_2118","data-name":"Rectangle 2118",width:7,height:2,rx:1,transform:"translate(1064.5 2175.5) rotate(90)"}),reactExports.createElement("rect",{id:"Rectangle_2119","data-name":"Rectangle 2119",width:2,height:2,rx:1,transform:"translate(1064.5 2183.5) rotate(90)"}))),SvgInfo=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",...ea},reactExports.createElement("g",{id:"info",transform:"translate(-1055 -2084)"},reactExports.createElement("circle",{id:"Ellipse_210","data-name":"Ellipse 210",cx:8.5,cy:8.5,r:8.5,transform:"translate(1055 2084)"}),reactExports.createElement("rect",{id:"Rectangle_2120","data-name":"Rectangle 2120",width:7,height:2,rx:1,transform:"translate(1062.5 2097.5) rotate(-90)"}),reactExports.createElement("rect",{id:"Rectangle_2121","data-name":"Rectangle 2121",width:2,height:2,rx:1,transform:"translate(1062.5 2089.5) rotate(-90)"}))),SvgAlert$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:17,viewBox:"0 0 19 17",...ea},reactExports.createElement("g",{id:"alert",transform:"translate(-1055 -2084)"},reactExports.createElement("circle",{id:"Ellipse_210","data-name":"Ellipse 210",cx:8.5,cy:8.5,r:8.5,transform:"translate(1055 2084)"}),reactExports.createElement("rect",{id:"Rectangle_795","data-name":"Rectangle 795",width:7,height:2,rx:1,transform:"translate(1064.5 2087.5) rotate(90)"}),reactExports.createElement("rect",{id:"Rectangle_797","data-name":"Rectangle 797",width:2,height:2,rx:1,transform:"translate(1064.5 2095.5) rotate(90)"}))),closeIcon="data:image/svg+xml,%3csvg%20id='small_close'%20data-name='small%20close'%20xmlns='http://www.w3.org/2000/svg'%20width='5.658'%20height='5.657'%20viewBox='0%200%205.658%205.657'%3e%3crect%20id='Rectangle_928'%20data-name='Rectangle%20928'%20width='1'%20height='7'%20transform='translate(5.657%204.95)%20rotate(135)'%20fill='%23fff'/%3e%3crect%20id='Rectangle_929'%20data-name='Rectangle%20929'%20width='1'%20height='7'%20transform='translate(4.951%200)%20rotate(45)'%20fill='%23fff'/%3e%3c/svg%3e",Title$B=dt$1.span.withConfig({displayName:"Flag__Title",componentId:"sc-gkcdcx-0"})([""]),IconHolder$2=dt$1.div.withConfig({displayName:"Flag__IconHolder",componentId:"sc-gkcdcx-1"})([""]),Content$h=dt$1.div.withConfig({displayName:"Flag__Content",componentId:"sc-gkcdcx-2"})([""]),CloseButton$3=dt$1.img.withConfig({displayName:"Flag__CloseButton",componentId:"sc-gkcdcx-3"})([""]),Flag=({className:ea,title:na,type:ra,children:oa,icon:aa,htmlContent:sa,close:la,onClose:ca})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(IconHolder$2,{children:[ra==="success"&&jsxRuntimeExports.jsx(SvgSuccess,{}),ra==="warning"&&jsxRuntimeExports.jsx(SvgWarning,{}),ra==="info"&&jsxRuntimeExports.jsx(SvgInfo,{}),ra==="error"&&jsxRuntimeExports.jsx(SvgAlert$1,{}),ra==="custom"&&aa]}),jsxRuntimeExports.jsxs(Content$h,{children:[na&&jsxRuntimeExports.jsx(Title$B,{children:na}),oa,sa&&jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:sa}}),la&&jsxRuntimeExports.jsx(CloseButton$3,{src:closeIcon,onClick:ca})]})]}),theme$3F=withTheme(scheme$1t),Flag$1=dt$1(Flag).withConfig({displayName:"Flag",componentId:"sc-gkcdcx-4"})(["display:flex;flex-direction:row;column-gap:5px;","{margin-bottom:-3px;}","{flex:1;display:flex;flex-direction:column;row-gap:10px;position:relative;}","{svg{display:block;}}","{position:absolute;top:3px;right:10px;cursor:pointer;}"," ",""],Title$B,Content$h,IconHolder$2,CloseButton$3,theme$3F.colors((ea,{type:na})=>lt$1(["background:",";color:",";border:1px solid ",";","{","}"],ea[na].bg,ea.color,ea[na].accent,IconHolder$2,na!=="custom"&&lt$1(["svg{circle,path{fill:",";}rect{fill:",";}}"],ea[na].accent,ea.iconColor))),theme$3F.sizes(ea=>lt$1(["border-radius:",";padding:",";","{font-size:",";font-weight:",";}> div{font-size:",";font-weight:",";}"],ea.border,ea.padding,Title$B,ea.title.size,ea.title.weight,ea.content.size,ea.content.weight))),defaultColors$1W={normal:{background:"#222222",border:"#6A6A6A",color:"#FFFFFF",iconColor:"#AAAAAA"},hover:{background:"#222222",border:"#AAAAAA"},focus:{background:"#222222",border:"#4980F5"},disable:{background:"#444444",border:"#6A6A6A",color:"#6A6A6A"},error:{background:"#F14C46",color:"#FFFFFF",border:"#F14C46",icon:"#FF504A"},clearButton:{color:"#AAAAAA",hover:{background:"#3C3C3C",color:"white"}}},lightColors$3={normal:{background:"#FDFDFD",border:"#CACACA",color:"#000000",iconColor:"#3D3d3d"},hover:{background:"#FDFDFD",border:"#4F4F4F"},focus:{background:"#FDFDFD",border:"#4F4F4F"},disable:{background:"#FDFDFD",border:"#CACACA",color:"#CACACA"},error:{background:"#FF504A",color:"#FFFFFF",border:"red",icon:"#FF504A"},clearButton:{color:"#3C3C3C",hover:{background:"#3C3C3C",color:"white"}},copyButton:{color:"#AAAAAA",hover:"#FFFFFF"}},colors$1W={dark:defaultColors$1W,light:lightColors$3},defaultSizing$1G={medium:{fontSize:"15px",lengthFontSize:"13px",padding:"10px 15px",border:"1px",borderRadius:"5px",height:"37px",clearIcon:{width:"22px",height:"22px",padding:"6px"}},small:{fontSize:"12px",lengthFontSize:"11px",padding:"8px 9px",border:"1px",borderRadius:"5px",height:"31px",clearIcon:{width:"20px",height:"20px",padding:"6px"}},tiny:{fontSize:"11px",lengthFontSize:"10px",padding:"6px 9px",border:"1px",borderRadius:"5px",height:"25px",clearIcon:{width:"20px",height:"20px",padding:"6px"}}},sizes$1W={default:defaultSizing$1G},scheme$1s=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1W,sizes:sizes$1W},Symbol.toStringTag,{value:"Module"})),SvgClear=ea=>reactExports.createElement("svg",{id:"cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.142 12.021",...ea},reactExports.createElement("rect",{id:"Rectangle_1883","data-name":"Rectangle 1883",width:1,height:16,rx:.5,transform:"translate(0.121 0.707) rotate(-45)"}),reactExports.createElement("rect",{id:"Rectangle_1884","data-name":"Rectangle 1884",width:1,height:16,rx:.5,transform:"translate(11.314 0) rotate(45)"})),InputClearButton=ea=>{const{className:na,onClick:ra}=ea;return jsxRuntimeExports.jsx("div",{className:na,onClick:ra,children:jsxRuntimeExports.jsx(SvgClear,{})})},theme$3E=withTheme(scheme$1s),InputClearButton$1=dt$1(InputClearButton).withConfig({displayName:"InputClearButton",componentId:"sc-1cwxulf-0"})(["position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;&::after{content:'';display:block;width:100%;height:100%;border-radius:50%;position:absolute;opacity:0;transition:opacity 100ms;}&:hover::after{opacity:1;}svg{position:relative;width:100%;height:100%;z-index:1;}",";",""],theme$3E.colors(ea=>lt$1(["fill:",";&:hover{fill:",";}&::after{background-color:",";}"],ea.clearButton.color,ea.clearButton.hover.color,ea.clearButton.hover.background)),theme$3E.sizes((ea,{variant:na="medium"})=>lt$1(["width:",";height:",";padding:",";"],ea[na].clearIcon.width,ea[na].clearIcon.height,ea[na].clearIcon.padding))),SvgCopy$1=ea=>reactExports.createElement("svg",{id:"copy_to_clipboard","data-name":"copy to clipboard",xmlns:"http://www.w3.org/2000/svg",width:11.002,height:15.003,viewBox:"0 0 11.002 15.003",...ea},reactExports.createElement("path",{id:"Subtraction_151","data-name":"Subtraction 151",d:"M-19769,8215h-6a1,1,0,0,1-1-1v-10a1,1,0,0,1,1-1h6a1,1,0,0,1,1,1v10A1,1,0,0,1-19769,8215Zm-5-11a1,1,0,0,0-1,1v8a1,1,0,0,0,1,1h4a1,1,0,0,0,1-1v-8a1,1,0,0,0-1-1Z",transform:"translate(19776.002 -8199.996)"}),reactExports.createElement("path",{id:"Subtraction_152","data-name":"Subtraction 152",d:"M-19765,8215h-1v-1a1,1,0,0,0,1-1v-8a1,1,0,0,0-1-1h-4a1,1,0,0,0-1,1l-1,0v-1a1,1,0,0,1,1-1h6a1,1,0,0,1,1,1v10A1,1,0,0,1-19765,8215Z",transform:"translate(19775.002 -8202.998)"}));var toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var ea=document.getSelection();if(!ea.rangeCount)return function(){};for(var na=document.activeElement,ra=[],oa=0;oa<ea.rangeCount;oa++)ra.push(ea.getRangeAt(oa));switch(na.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":na.blur();break;default:na=null;break}return ea.removeAllRanges(),function(){ea.type==="Caret"&&ea.removeAllRanges(),ea.rangeCount||ra.forEach(function(aa){ea.addRange(aa)}),na&&na.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var ea=requireToggleSelection(),na={"text/plain":"Text","text/html":"Url",default:"Text"},ra="Copy to clipboard: #{key}, Enter";function oa(sa){var la=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return sa.replace(/#{\s*key\s*}/g,la)}function aa(sa,la){var ca,ua,da,pa,ha,ga,fa=!1;la||(la={}),ca=la.debug||!1;try{da=ea(),pa=document.createRange(),ha=document.getSelection(),ga=document.createElement("span"),ga.textContent=sa,ga.ariaHidden="true",ga.style.all="unset",ga.style.position="fixed",ga.style.top=0,ga.style.clip="rect(0, 0, 0, 0)",ga.style.whiteSpace="pre",ga.style.webkitUserSelect="text",ga.style.MozUserSelect="text",ga.style.msUserSelect="text",ga.style.userSelect="text",ga.addEventListener("copy",function(va){if(va.stopPropagation(),la.format)if(va.preventDefault(),typeof va.clipboardData>"u"){ca&&console.warn("unable to use e.clipboardData"),ca&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var xa=na[la.format]||na.default;window.clipboardData.setData(xa,sa)}else va.clipboardData.clearData(),va.clipboardData.setData(la.format,sa);la.onCopy&&(va.preventDefault(),la.onCopy(va.clipboardData))}),document.body.appendChild(ga),pa.selectNodeContents(ga),ha.addRange(pa);var ma=document.execCommand("copy");if(!ma)throw new Error("copy command was unsuccessful");fa=!0}catch(va){ca&&console.error("unable to copy using execCommand: ",va),ca&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(la.format||"text",sa),la.onCopy&&la.onCopy(window.clipboardData),fa=!0}catch(xa){ca&&console.error("unable to copy using clipboardData: ",xa),ca&&console.error("falling back to prompt"),ua=oa("message"in la?la.message:ra),window.prompt(ua,sa)}}finally{ha&&(typeof ha.removeRange=="function"?ha.removeRange(pa):ha.removeAllRanges()),ga&&document.body.removeChild(ga),da()}return fa}return copyToClipboard=aa,copyToClipboard}var copyToClipboardExports=requireCopyToClipboard();const copy=getDefaultExportFromCjs(copyToClipboardExports),CopyButton=ea=>{const{className:na,value:ra}=ea,[oa,aa]=reactExports.useState(!1),{t:sa}=useTranslation();useDynamicTooltip([oa]);const la=reactExports.useMemo(()=>({content:`${sa(oa?"Copied":"Copy")}`,options:{id:"workspace",place:"top"}}),[oa,sa]),ca=reactExports.useCallback(()=>{copy(ra||""),aa(!0),setTimeout(()=>{aa(!1)},2e3)},[ra]);return ReactTooltip.rebuild(),jsxRuntimeExports.jsx(IconButton,{className:na,icon:jsxRuntimeExports.jsx(SvgCopy$1,{}),disabled:!ra,tooltip:la,onClick:ca})},CopyButton$1=dt$1(CopyButton).withConfig({displayName:"CopyButton",componentId:"sc-dewnze-0"})([""]),SvgLink=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.265,height:13.265,viewBox:"0 0 13.265 13.265",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3777.182,1905.083a3.975,3.975,0,0,1-.044-5.613l1.458-1.459,1.257,1.257-1.375,1.375a2.222,2.222,0,0,0,3.143,3.142l1.375-1.375,1.257,1.257-1.459,1.458a3.973,3.973,0,0,1-5.613-.043Zm2.121-2.122a1,1,0,0,1,0-1.414l4.242-4.242a1,1,0,0,1,1.414,1.414l-4.241,4.242a1,1,0,0,1-1.415,0Zm5.107-1.964,1.376-1.377a2.222,2.222,0,0,0-3.142-3.142l-1.377,1.377-1.257-1.258,1.459-1.458a4,4,0,0,1,5.656,5.656l-1.458,1.458Z",transform:"translate(-3775.5 -1893.5)"})),AnchorButton=ea=>{const{className:na,value:ra}=ea;return jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgLink,{}),className:na,disabled:!ra,href:ra,target:"blank"})},AnchorButton$1=dt$1(AnchorButton).withConfig({displayName:"AnchorButton",componentId:"sc-1gdk7rv-0"})([""]),InputComponent=dt$1.input.withConfig({displayName:"Input__InputComponent",componentId:"sc-18bnm4n-0"})([""]),TextAreaComponent=dt$1.textarea.withConfig({displayName:"Input__TextAreaComponent",componentId:"sc-18bnm4n-1"})([""]),InputWrapper=dt$1.div.withConfig({displayName:"Input__InputWrapper",componentId:"sc-18bnm4n-2"})([""]),RightIconsWrapper=dt$1.div.withConfig({displayName:"Input__RightIconsWrapper",componentId:"sc-18bnm4n-3"})([""]),LeftIconsWrapper=dt$1.div.withConfig({displayName:"Input__LeftIconsWrapper",componentId:"sc-18bnm4n-4"})([""]),LengthSpan=dt$1.span.withConfig({displayName:"Input__LengthSpan",componentId:"sc-18bnm4n-5"})(["margin-right:3px;"]),Input$1=ea=>{const{className:na,variant:ra="medium",validationMessage:oa,showValidationFlag:aa,showValidationTooltip:sa=!0,tooltipProps:la={place:"top"},clearAble:ca,copyAble:ua,anchorAble:da,inputType:pa="input",icon:ha,iconWidth:ga,...fa}=ea,ma=reactExports.useRef(null),{isValid:va,inputValue:xa,...ya}=useInputProps(fa,ma),Aa=reactExports.useCallback(()=>{ma?.current&&(ma.current.value="",ma.current.dispatchEvent(new Event("input",{bubbles:!0})))},[]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsxs(InputWrapper,{children:[ha&&jsxRuntimeExports.jsx(LeftIconsWrapper,{children:jsxRuntimeExports.jsx(ha,{})}),pa==="textArea"?jsxRuntimeExports.jsx(TextAreaComponent,{"data-valid":va,...ya}):jsxRuntimeExports.jsx(InputComponent,{"data-valid":va,...ya}),jsxRuntimeExports.jsxs(RightIconsWrapper,{children:[!va&&sa&&jsxRuntimeExports.jsx(StyledTooltipWrap,{tooltipProps:la,tooltip:oa,children:jsxRuntimeExports.jsx(SvgInvalid,{})}),ca&&xa&&jsxRuntimeExports.jsx(InputClearButton$1,{onClick:Aa,variant:ra}),ua&&jsxRuntimeExports.jsx(CopyButton$1,{value:xa}),da&&jsxRuntimeExports.jsx(AnchorButton$1,{value:xa}),fa.length&&jsxRuntimeExports.jsx(LengthSpan,{children:`${fa.value?.length||0}/${fa.length}`})]})]}),!va&&aa&&jsxRuntimeExports.jsx(Flag$1,{type:"error",children:oa})]})},theme$3D=withTheme(scheme$1s),Input$2=dt$1(Input$1).withConfig({displayName:"Input",componentId:"sc-18bnm4n-6"})(["",",","{display:block;border-style:solid;transition:all 150ms ease-out;width:100%;height:100%;resize:none;&:focus{outline-style:none;box-shadow:none;border-color:transparent;}&:-webkit-autofill,&:-webkit-autofill:focus{transition:background-color 0s 600000s,color 0s 600000s;}}","{display:inline-block;width:100%;position:relative;svg{display:block;}}",",","{position:absolute;display:flex;flex-direction:row-reverse;align-items:center;right:5px;top:0;column-gap:3px;}","{right:auto;height:100%;left:10px;svg{fill:currentColor;}}","{margin-top:10px;}","{padding:5px 5px;cursor:pointer;}"," ",""],InputComponent,TextAreaComponent,InputWrapper,RightIconsWrapper,LeftIconsWrapper,LeftIconsWrapper,Flag$1,StyledTooltipWrap,theme$3D.colors((ea,{disabled:na})=>lt$1(["",",",",","{color:",";}",",","{background:",";border-color:",";color:",";&:hover{background:",";border-color:",";}&:focus{background:",";border-color:",";}&:disabled{background:",";border-color:",";color:",";}&[data-valid='false']{border-color:",";}}","{svg{fill:",";}}","{+ div{border:none;background:"," !important;color:"," !important;}svg{circle{fill:",";}rect{fill:currentColor;}}}"],AnchorButton$1,CopyButton$1,LengthSpan,na?ea.disable.color:ea.normal.color,InputComponent,TextAreaComponent,ea.normal.background,ea.normal.border,ea.normal.color,ea.hover.background,ea.hover.border,ea.focus.background,ea.focus.border,ea.disable.background,ea.disable.border,ea.disable.color,ea.error.border,LeftIconsWrapper,ea.normal.iconColor,StyledTooltipWrap,ea.error.background,ea.error.color,ea.error.icon)),theme$3D.sizes((ea,{variant:na="medium",inputType:ra="input",icon:oa,iconWidth:aa=32})=>lt$1(["",",","{"," ","{font-size:",";}font-size:",";padding:",";",";border-radius:",";border-width:",";}","{height:",";}"],InputComponent,TextAreaComponent,ra==="input"&&lt$1(["height:",";"],ea[na].height),LengthSpan,ea[na].lengthFontSize,ea[na].fontSize,ea[na].padding,oa?`padding-left: ${aa}px`:"",ea[na].borderRadius,ea[na].border,RightIconsWrapper,ea[na].height))),SvgArrow=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:7.07,height:4.744,viewBox:"0 0 7.07 4.744",...ea},reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"a"},reactExports.createElement("rect",{className:"a",width:7.07,height:4.744}))),reactExports.createElement("g",{className:"b"},reactExports.createElement("path",{className:"c",d:"M15553.5,9462.451h0l-3.532-3.537,1.206-1.207,2.327,2.327,2.33-2.327,1.207,1.207-3.536,3.537Z",transform:"translate(-15549.965 -9457.707)"}))),SvgCheck$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:6.364,height:4.95,viewBox:"0 0 6.364 4.95",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-109.025 -606.354)"},reactExports.createElement("path",{className:"a",d:"M.5,0h0A.5.5,0,0,1,1,.5V2A0,0,0,0,1,1,2H0A0,0,0,0,1,0,2V.5A.5.5,0,0,1,.5,0Z",transform:"translate(109.025 609.182) rotate(-45)"}),reactExports.createElement("path",{className:"a",d:"M0,0H5.5A.5.5,0,0,1,6,.5v0a.5.5,0,0,1-.5.5H.5A.5.5,0,0,1,0,.5V0A0,0,0,0,1,0,0Z",transform:"translate(110.439 610.596) rotate(-45)"}))),defaultColors$1V={units:{button:{color:"#AAAAAA",specialValueColor:"#fff",hover:{background:"#6A6A6A",color:"#FFF"}},popover:{background:"#222222",border:"#6A6A6A"},option:{color:"#FFFFFF",hover:{background:"#4980F5"},selected:{color:"#AAAAAA"}},singleUnit:{color:"#AAAAAA"},disabled:{singleUnit:{color:"#6A6A6A"}}}},colors$1V={dark:defaultColors$1V},defaultSizing$1F={units:{button:{borderRadius:"2px",fontSize:"11px",padding:"0 3px"},option:{fontSize:"11px",fontWeight:"600",padding:"4px 8px"},singleUnit:{padding:"0 8px 0 0",fontSize:"11px",fontWeight:"400"}}},sizes$1V={default:defaultSizing$1F},scheme$1r=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1V,sizes:sizes$1V},Symbol.toStringTag,{value:"Module"})),useOnClickOutside=(ea,na,ra,oa=!0)=>{reactExports.useEffect(()=>{const aa=sa=>{!ea.current||ea.current.contains(sa.target)||ra&&sa.target&&sa.target.closest(ra)||na(sa)};return oa?document.addEventListener("mousedown",aa):document.removeEventListener("mousedown",aa),()=>{document.removeEventListener("mousedown",aa)}},[ea,na,ra,oa])},defaultColors$1U={background:"#363636",shadow:"rgba(0, 0, 0, 0.25)",editColor:"rgba(73, 128, 245, 0.87)",editHoverColor:"white"},colors$1U={dark:defaultColors$1U},defaultSizing$1E={width:"265px",border:"5px",padding:"15px 10px"},sizes$1U={default:defaultSizing$1E},scheme$1q=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1U,sizes:sizes$1U},Symbol.toStringTag,{value:"Module"})),windowRect=()=>({height:window.innerHeight||document.documentElement.clientHeight,width:window.innerWidth||document.documentElement.clientWidth,bottom:(window.innerHeight||document.documentElement.clientHeight)+window.scrollY,right:(window.innerWidth||document.documentElement.clientWidth)+window.scrollX,left:0,top:0,x:0,y:0}),xAxisPlacements=["left","right","insideLeft","insideRight","center"],yAxisPlacements=["top","bottom","insideTop","insideBottom","center"],calcElementPlacement=({target:ea,element:na,container:ra,space:oa})=>{const aa={top:ea.top-ra.top>=na.height+(oa?.top||0),bottom:ra.bottom-ea.bottom>=na.height+(oa?.bottom||0),insideTop:ra.bottom-ea.top>=na.height+(oa?.top||0),insideBottom:ea.bottom-ra.top>=na.height+(oa?.bottom||0),left:ea.left-ra.left>=na.width+(oa?.left||0),right:ra.right-ea.right>=na.width+(oa?.right||0),insideLeft:ra.right-ea.left>=na.width+(oa?.left||0),insideRight:ea.right-ra.left>=na.width+(oa?.right||0),center:!0};return{xPlacements:xAxisPlacements.filter(sa=>aa[sa]),yPlacements:yAxisPlacements.filter(sa=>aa[sa])}},inViewport=(ea,na,ra=windowRect(),oa)=>{const{xPlacement:aa="insideLeft",yPlacement:sa="bottom",space:la={},fallbackXPlacement:ca,fallbackYPlacement:ua}=oa,{xPlacements:da,yPlacements:pa}=calcElementPlacement({container:ra,element:na,target:ea,space:la}),ha=da.includes(aa)?aa:ca||da[0],ga=pa.includes(sa)?sa:ua||pa[0],{top:fa=0,right:ma=0,bottom:va=0,left:xa=0}=la,ya={};switch(ga){case"top":ya.top=-na.height+fa;break;case"bottom":ya.bottom=-na.height+va;break;case"insideTop":ya.top=fa;break;case"insideBottom":ya.bottom=va;break;case"center":ya.top=-(na.height/2)+ea.height/2;break}switch(ha){case"left":ya.left=-na.width+xa;break;case"right":ya.right=-na.width+ma;break;case"insideLeft":ya.left=xa;break;case"insideRight":ya.right=ma;break;case"center":ya.left=-(na.width/2)+ea.width/2;break}return ya},observeElementResize=(ea,na)=>{const ra=new ResizeObserver(oa=>{oa.forEach(aa=>{const{width:sa,height:la}=aa.contentRect;na(sa,la)})});return ra.observe(ea),ra},useBoundingRect=ea=>{const na=reactExports.useRef(null),[ra,oa]=reactExports.useState(windowRect()),aa=reactExports.useCallback(la=>{na.current=la},[]),sa=reactExports.useCallback(()=>{oa(na&&na.current?na.current.getBoundingClientRect():windowRect())},[]);return reactExports.useEffect(()=>{sa();let la;return window.addEventListener("resize",sa),na.current&&(la=observeElementResize(na.current,sa)),()=>{window.removeEventListener("resize",sa),la?.disconnect()}},[ea,sa]),[aa,ra]},PopoverWrapper$1=dt$1.div.attrs({className:"depicter-popover-wrapper"}).withConfig({displayName:"Popover__PopoverWrapper",componentId:"sc-1e9baba-0"})([""]),Popover$2=({className:ea,children:na,open:ra,handler:oa,preventCloseOnOutside:aa,viewportContainer:sa,inViewportOptions:la,onOutsideClick:ca,onClose:ua,onOpen:da})=>{const[pa,ha]=reactExports.useState({left:0,top:0}),ga=reactExports.useRef(),fa=reactExports.useRef(),[ma,va]=useBoundingRect(ra),[xa,ya]=useBoundingRect(ra),[Aa,Ca]=useBoundingRect(ra);return useOnClickOutside(ga,()=>aa!==!0&&ca?.(),`.dp-keep-popover ${typeof aa=="string"?`,${aa}`:""}`,ra),reactExports.useLayoutEffect(()=>{Aa(sa||null)},[Aa,sa]),reactExports.useLayoutEffect(()=>{if(!ra)return;const Sa=inViewport(va,ya,Ca,la||{});ha(Sa)},[ra,va,ya,Ca,la]),reactExports.useEffect(()=>{ra?da?.():ua?.()},[ra,ua,da]),reactExports.useEffect(()=>()=>{ua?.()},[ua]),jsxRuntimeExports.jsxs("div",{className:ea,ref:Sa=>{Sa&&(ma(Sa),ga.current=Sa)},children:[oa,na&&ra&&jsxRuntimeExports.jsx(PopoverWrapper$1,{ref:Sa=>{Sa&&(xa(Sa),fa.current=Sa)},style:pa,children:na})]})},theme$3C=withTheme(scheme$1q),Popover$3=dt$1(Popover$2).withConfig({displayName:"Popover",componentId:"sc-1e9baba-1"})(["position:relative;","{position:absolute;z-index:999;}"," ",""],PopoverWrapper$1,theme$3C.colors(ea=>lt$1(["","{background:",";box-shadow:0 0 25px ",";}"],PopoverWrapper$1,ea.background,ea.shadow)),theme$3C.sizes(ea=>lt$1(["","{width:",";border-radius:",";padding:",";}"],PopoverWrapper$1,ea.width,ea.border,ea.padding))),Option$1=dt$1.div.withConfig({displayName:"NumberUnitsPopover__Option",componentId:"sc-jsmmoo-0"})([""]),NumberUnitButton=dt$1.div.withConfig({displayName:"NumberUnitsPopover__NumberUnitButton",componentId:"sc-jsmmoo-1"})([""]),NumberUnitsPopover=({className:ea,value:na,options:ra,inViewportOptions:oa,disabled:aa,specialValues:sa,onChange:la})=>{const[ca,ua]=reactExports.useState(!1),da=()=>{aa||ua(!ca)},pa=ga=>{aa||(ua(!1),la&&la(ga))},ha=ga=>{const fa=na===ga.value;return jsxRuntimeExports.jsxs(Option$1,{className:`${fa?"depicter-option-selected":""}`,onClick:()=>pa(ga),children:[ga.label,fa&&jsxRuntimeExports.jsx(SvgCheck$1,{})]},ga.value)};return jsxRuntimeExports.jsx(Popover$3,{className:`${ea} ${ca?"depicter-popover-open":""}`,open:ca,handler:jsxRuntimeExports.jsxs(NumberUnitButton,{style:{width:sa?.includes(na)?"100%":""},onClick:da,children:[jsxRuntimeExports.jsx("span",{children:ra.find(ga=>ga.value===na)?.label}),jsxRuntimeExports.jsx(SvgArrow,{})]}),onOutsideClick:()=>ua(!1),inViewportOptions:oa,children:ra.map(ha)})},theme$3B=withTheme(scheme$1r),NumberUnitsPopover$1=dt$1(NumberUnitsPopover).withConfig({displayName:"NumberUnitsPopover",componentId:"sc-jsmmoo-2"})([""," width:100%;height:100%;","{display:flex;height:100%;align-items:center;justify-content:space-between;column-gap:3px;}","{padding:4px 0px;width:auto;min-width:95px;}","{display:flex;align-items:center;justify-content:space-between;&.depicter-option-selected{background:transparent !important;}}"," ",""],ea=>ea.disabled?"cursor: initial;":"cursor: pointer;",NumberUnitButton,PopoverWrapper$1,Option$1,theme$3B.colors((ea,na)=>lt$1(["","{color:",";> svg{fill:",";}","}","{background:",";border:1px solid ",";}","{color:",";> svg path{fill:",";}&.depicter-option-selected{color:",";> svg path{fill:",";}}&:hover{background:",";}}"],NumberUnitButton,ea.units.button.color,ea.units.button.color,!na.disabled&&lt$1(["&:hover,.depicter-popover-open&{background:",";color:",";> svg{fill:",";}}"],ea.units.button.hover.background,ea.units.button.hover.color,ea.units.button.hover.color),PopoverWrapper$1,ea.units.popover.background,ea.units.popover.border,Option$1,ea.units.option.color,ea.units.option.color,ea.units.option.selected.color,ea.units.option.selected.color,ea.units.option.hover.background)),theme$3B.sizes(ea=>lt$1(["","{padding:",";font-size:",";border-radius:",";}","{font-size:",";font-weight:",";padding:",";}"],NumberUnitButton,ea.units.button.padding,ea.units.button.fontSize,ea.units.button.borderRadius,Option$1,ea.units.option.fontSize,ea.units.option.fontWeight,ea.units.option.padding))),SingleUnit=dt$1.span.withConfig({displayName:"Number__SingleUnit",componentId:"sc-1w3p4w4-0"})([""]),UnitsWrapper=dt$1.div.withConfig({displayName:"Number__UnitsWrapper",componentId:"sc-1w3p4w4-1"})([""]),numberRegex=/^-?\d+(\.\d+)?([eE][-+]?\d+)?$/,popoverPlacement$7={yPlacement:"bottom",xPlacement:"insideLeft",fallbackXPlacement:"insideRight",space:{bottom:-7,left:0}},Number$1=React.memo(ea=>{const{className:na,value:ra,multiply:oa=1,disabled:aa,step:sa=1,floatRange:la,NaNValue:ca="NaN",units:ua,valueType:da,onChange:pa,variant:ha="small",specialValues:ga,...fa}=ea,ma=isIndeterminate(ra);let{unit:va="px",value:xa=ra}=typeof ra=="object"?ra:{};xa==null&&(xa="NaN",console.warn("Number input value is not set"));const ya=ga?.includes(xa.toString());typeof xa=="number"&&(xa=+(xa*oa).toPrecision(12)),ya&&(va=xa.toString());const Aa=reactExports.useCallback((Ea,$a)=>{if(ga?.includes(Ea))pa?.(Ea);else{const Ma=Ea==="NaN"?ca:la?limitFloatRange$2(parseFloat(Ea),la)/oa:parseFloat(Ea)/oa;pa?.(da?da==="number"?Ma:{value:Ma,unit:$a}:!ua||!Array.isArray(ua)?Ma:{value:Ma,unit:$a})}},[ga,pa,ca,la,oa,da,ua]),Ca=reactExports.useCallback(Ea=>{if(Ea.target instanceof HTMLInputElement){if(!["ArrowUp","ArrowDown"].includes(Ea.key)||ya||xa==="NaN")return;let $a=typeof xa=="number"?xa:parseFloat(ma?"0":xa.toString());const Ma=Ea.shiftKey?sa*10:Ea.altKey?sa/10:sa;switch(Ea.key){case"ArrowUp":$a=Math.floor($a)+Ma;break;case"ArrowDown":$a=Math.ceil($a)-Ma;break}Aa($a.toString(),va)}},[ya,xa,ma,sa,Aa,va]),Sa=reactExports.useCallback(Ea=>{Ea&&(numberRegex.test(Ea)||ga?.includes(Ea))&&Aa(Ea,va)},[ga,Aa,va]),wa=reactExports.useCallback(({value:Ea})=>{ga?.includes(Ea)?Aa(Ea,Ea):Aa(ga?.includes(xa.toString())?"NaN":xa.toString(),Ea)},[Aa,ga,xa]),ba=reactExports.useCallback(Ea=>Ea?ga?.includes(va)||Ea===ca||numberRegex.test(Ea):!1,[ca,ga,va]);return jsxRuntimeExports.jsxs("div",{className:na+(ya?" dp-has-special-value":""),children:[jsxRuntimeExports.jsx(Input$2,{...fa,variant:ha,value:ya?"":xa.toString(),pattern:ba,onChange:Sa,onKeyDown:Ca,validationOn:"blur",showValidationTooltip:!1,disabled:aa,revertCorrectValue:!0}),ua&&jsxRuntimeExports.jsx(UnitsWrapper,{children:Array.isArray(ua)?jsxRuntimeExports.jsx(NumberUnitsPopover$1,{value:va,specialValues:ga,options:ua,disabled:aa,onChange:wa,inViewportOptions:popoverPlacement$7}):jsxRuntimeExports.jsx(SingleUnit,{children:ua})})]})}),theme$3A=withTheme(scheme$1r),Number$2=dt$1(Number$1).withConfig({displayName:"Number",componentId:"sc-1w3p4w4-2"})(["position:relative;","{position:absolute;top:5px;right:5px;bottom:5px;&.dpc-full{left:5px;}}&.dp-has-special-value{","{left:5px;}","{pointer-events:none;}}"," "," ",""],UnitsWrapper,UnitsWrapper,Input$2,ea=>ea.units&&lt$1(["input{padding-right:25px !important;}"]),theme$3A.colors((ea,{disabled:na})=>lt$1(["","{color:",";}&.dp-has-special-value{","{color:",";}}",""],SingleUnit,ea.units.singleUnit.color,NumberUnitButton,ea.units.button.specialValueColor,na&&lt$1(["","{color:"," !important;}"],SingleUnit,ea.units.disabled.singleUnit.color))),theme$3A.sizes(ea=>lt$1(["","{padding:",";font-size:",";font-weight:",";}"],SingleUnit,ea.units.singleUnit.padding,ea.units.singleUnit.fontSize,ea.units.singleUnit.fontWeight))),defaultColors$1T={label:"#AAAAAA",checked:{borderColor:"#4980f5",background:"#4980f5",pointerBackground:"#FFF",iconColor:"#FFF",disabled:{borderColor:"#444444",background:"#444444",pointerBackground:"#6A6A6A",iconColor:"#6A6A6A"}},unChecked:{borderColor:"#C4C4C4",background:"transparent",pointerBackground:"#C4C4C4",iconColor:"#C4C4C4",disabled:{borderColor:"#444444",background:"#363636",pointerBackground:"#6A6A6A",iconColor:"#6A6A6A"}},indeterminate:{background:"#444444",pointerBackground:"#FFF",borderColor:"transparent"}},colors$1T={dark:defaultColors$1T,light:{label:"#222",checked:{borderColor:"#2F80ED",background:"#2F80ED",pointerBackground:"#FFF",iconColor:"#FFF",disabled:{borderColor:"#444444",background:"#444444",pointerBackground:"#6A6A6A",iconColor:"#6A6A6A"}},unChecked:{borderColor:"#4F4F4F",background:"white",pointerBackground:"#4F4F4F",iconColor:"#4F4F4F",disabled:{borderColor:"#444444",background:"white",pointerBackground:"#6A6A6A",iconColor:"#6A6A6A"}},indeterminate:{background:"#444444",pointerBackground:"#FFF",borderColor:"transparent"}}},defaultSizing$1D={label:{fontSize:"12px"},small:{width:"27px",height:"15px",border:"1px",pointerWidth:"8px",pointerHeight:"8px",pointerGap:"3px",iconGap:"5px"},large:{width:"42px",height:"24px",border:"2px",pointerWidth:"16px",pointerHeight:"16px",pointerGap:"4px",iconGap:"4px"}},sizes$1T={default:defaultSizing$1D},scheme$1p=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1T,sizes:sizes$1T},Symbol.toStringTag,{value:"Module"})),useCheckboxProps=ea=>{const{value:na=!1,defaultChecked:ra,disabled:oa,onChange:aa,invertValue:sa=!1,...la}=ea,ca=isIndeterminate(na),ua=na!==void 0&&aa!==void 0,da=ca?na:sa?!na:na,[pa,ha]=reactExports.useState(ca?!1:da),ga=reactExports.useRef(null),fa=reactExports.useCallback(xa=>{ha(xa.target.checked)},[]);reactExports.useEffect(()=>{ha(ca?!1:da)},[ca,da]);const ma=reactExports.useCallback(xa=>{const ya=sa?!xa.target.checked:xa.target.checked;aa?.(ya)},[aa,sa]),va=reactExports.useCallback(xa=>{xa&&assignRef$1(xa,ga)},[ga]);return reactExports.useEffect(()=>{ga.current&&(ga.current.indeterminate=ca,ga.current.checked=pa)},[ga,ca,pa]),reactExports.useEffect(()=>{const xa=ga.current;return xa&&!ua&&xa.addEventListener("input",fa),()=>{xa&&!ua&&xa.removeEventListener("input",fa)}},[ua,fa]),{type:"checkbox",disabled:oa,indeterminate:ca,inputValue:pa,ref:va,...ua?{checked:pa,onChange:ma}:{defaultChecked:ra},...la}},SvgChecked$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:6.364,height:4.95,viewBox:"0 0 6.364 4.95",...ea},reactExports.createElement("g",{id:"check",transform:"translate(-109.025 -606.354)"},reactExports.createElement("path",{id:"Rectangle_1868","data-name":"Rectangle 1868",d:"M.5,0h0A.5.5,0,0,1,1,.5V2A0,0,0,0,1,1,2H0A0,0,0,0,1,0,2V.5A.5.5,0,0,1,.5,0Z",transform:"translate(109.025 609.182) rotate(-45)"}),reactExports.createElement("path",{id:"Rectangle_1869","data-name":"Rectangle 1869",d:"M0,0H5.5A.5.5,0,0,1,6,.5v0a.5.5,0,0,1-.5.5H.5A.5.5,0,0,1,0,.5V0A0,0,0,0,1,0,0Z",transform:"translate(110.439 610.596) rotate(-45)"}))),SvgUnchecked=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:4.95,height:4.95,viewBox:"0 0 4.95 4.95",...ea},reactExports.createElement("g",{id:"check",transform:"translate(-108.439 -606.354)"},reactExports.createElement("rect",{id:"Rectangle_1869","data-name":"Rectangle 1869",width:6,height:1,rx:.5,transform:"translate(108.439 610.596) rotate(-45)"}),reactExports.createElement("rect",{id:"Rectangle_1894","data-name":"Rectangle 1894",width:6,height:1,rx:.5,transform:"translate(109.146 606.354) rotate(45)"}))),InputCheckbox$1=dt$1.input.withConfig({displayName:"SwitchBox__InputCheckbox",componentId:"sc-1ypjqa9-0"})([""]),CheckboxContainer$1=dt$1.div.withConfig({displayName:"SwitchBox__CheckboxContainer",componentId:"sc-1ypjqa9-1"})([""]),Pointer$5=dt$1.span.withConfig({displayName:"SwitchBox__Pointer",componentId:"sc-1ypjqa9-2"})([""]),SwitchBox=ea=>{const{className:na,children:ra,size:oa="small",label:aa,tooltip:sa,displayIcons:la=!0,...ca}=ea,{inputValue:ua,indeterminate:da,id:pa=nanoid(),...ha}=useCheckboxProps(ca);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsxs(CheckboxContainer$1,{children:[jsxRuntimeExports.jsx(InputCheckbox$1,{id:pa,...ha}),jsxRuntimeExports.jsx(Pointer$5,{}),la&&(ua?jsxRuntimeExports.jsx(SvgChecked$1,{}):jsxRuntimeExports.jsx(SvgUnchecked,{}))]}),jsxRuntimeExports.jsxs(Label$6,{tooltip:sa,htmlFor:pa,children:[aa,ra]})]})},theme$3z=withTheme(scheme$1p),SwitchBox$1=dt$1(SwitchBox).withConfig({displayName:"SwitchBox",componentId:"sc-1ypjqa9-3"})(["position:relative;display:flex;align-items:center;cursor:",";> label{width:100%;margin:0;padding-left:8px;}> label,","{cursor:",";}","{display:block;-webkit-appearance:none;appearance:none;background-color:transparent;margin:0;border-radius:50em;~ svg{right:5px;}&:indeterminate{+ ","{left:50%;transform:translate(-50%,-50%);}~ svg{display:none;}}}","{position:relative;> svg{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;}}","{position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;transition:all 150ms ease-out;pointer-events:none;}"," ",""],ea=>ea.disabled?"initial":"pointer",InputCheckbox$1,ea=>ea.disabled?"initial":"pointer",InputCheckbox$1,Pointer$5,CheckboxContainer$1,Pointer$5,theme$3z.colors(ea=>lt$1(["label{color:",";}","{background-color:",";border-color:",";+ ","{background-color:",";}~ svg{fill:",";}&:disabled{background-color:",";border-color:",";+ ","{background-color:",";}~ svg{fill:",";}}&:checked{background-color:",";border-color:",";+ ","{background-color:",";}~ svg{fill:",";}&:disabled{background-color:",";border-color:",";+ ","{background-color:",";}~ svg{fill:",";}}}&:indeterminate{background-color:",";border-color:",";+ ","{background-color:",";}}}"],ea.label,InputCheckbox$1,ea.unChecked.background,ea.unChecked.borderColor,Pointer$5,ea.unChecked.pointerBackground,ea.unChecked.iconColor,ea.unChecked.disabled.background,ea.unChecked.disabled.borderColor,Pointer$5,ea.unChecked.disabled.pointerBackground,ea.unChecked.disabled.iconColor,ea.checked.background,ea.checked.borderColor,Pointer$5,ea.checked.pointerBackground,ea.checked.iconColor,ea.checked.disabled.background,ea.checked.disabled.borderColor,Pointer$5,ea.checked.disabled.pointerBackground,ea.checked.disabled.iconColor,ea.indeterminate.background,ea.indeterminate.borderColor,Pointer$5,ea.indeterminate.pointerBackground)),theme$3z.sizes((ea,{size:na="small"})=>lt$1(["label{font-size:",";}","{width:",";height:",";border-width:",";border-style:solid;+ ","{left:",";}~ svg{right:",";}&:checked{+ ","{left:calc(100% - "," - ",");}~ svg{left:",";}}}","{width:",";height:",";}"],ea.label.fontSize,InputCheckbox$1,ea[na].width,ea[na].height,ea[na].border,Pointer$5,ea[na].pointerGap,ea[na].iconGap,Pointer$5,ea[na].pointerWidth,ea[na].pointerGap,ea[na].iconGap,Pointer$5,ea[na].pointerWidth,ea[na].pointerHeight))),directionOptions=[{value:"top",label:i18next.t("Top")},{value:"left",label:i18next.t("Left")},{value:"bottom",label:i18next.t("Bottom")},{value:"right",label:i18next.t("Right")},{value:"custom",label:i18next.t("Custom")}],getAnimationMoveOptionControls=(ea,na,ra)=>[{id:"animationMoveOptions",border:"bottom",label:i18next.t("Movement"),optionControls:[[createOptionControl({id:"animationMoveDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:directionOptions},selector:ra(`${ea}.data.$bp.params.direction`),action:na(`${ea}.data.$bp.params.direction`)}),createOptionControl({id:"animationMovement",label:i18next.t("Movement"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:ra(`${ea}.data.$bp.params.movement`),action:na(`${ea}.data.$bp.params.movement`),dependency:oa=>ra(`${ea}.data.$bp.params.direction`)(oa)!=="custom"})],[createOptionControl({id:"animationMovementX",label:i18next.t("X Movement"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:ra(`${ea}.data.$bp.params.x`),action:na(`${ea}.data.$bp.params.x`),dependency:oa=>ra(`${ea}.data.$bp.params.direction`)(oa)==="custom"}),createOptionControl({id:"animationMovementY",label:i18next.t("Y Movement"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:ra(`${ea}.data.$bp.params.y`),action:na(`${ea}.data.$bp.params.y`),dependency:oa=>ra(`${ea}.data.$bp.params.direction`)(oa)==="custom"})],[createOptionControl({id:"animationMovementZ",label:i18next.t("Z Movement"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:ra(`${ea}.data.$bp.params.z`),action:na(`${ea}.data.$bp.params.z`),dependency:oa=>ra(`${ea}.data.$bp.params.direction`)(oa)==="custom"}),createOptionControl({id:"animationMovementPerspective",label:i18next.t("Perspective"),control:Number$2,controlProps:{units:"px"},selector:ra(`${ea}.data.$bp.params.perspective`),action:na(`${ea}.data.$bp.params.perspective`),dependency:oa=>ra(`${ea}.data.$bp.params.direction`)(oa)==="custom"})],[createOptionControl({id:"animationMovementFade",control:SwitchBox$1,controlProps:{label:i18next.t("Fade animation")},selector:ra(`${ea}.data.$bp.params.fade`),action:na(`${ea}.data.$bp.params.fade`)})]]}];console.log("DocType",DocType);const initialState$b={assetDragLayerVisibility:!0,sectionsPanel:"close",sectionsSnapshots:{},documentFonts:[],activeElementOptionsTab:void 0,activeSectionOptionsTab:void 0,hoveredElementId:null,sectionsDataSourcesData:{},provisionalAnimations:[],sectionPreviewState:"deactivated",overSectionControlsVisibility:"visible",activeAction:{type:"url",trigger:"click"},activeOptionsPanel:"default",unsavedChanges:0,remoteAssetsContentStatus:{},user:{userTier:editorEnv.user.tier},openDocumentInfo:{loadingStatus:{status:"idle"},savingStatus:{status:"idle"},updatingInfoStatus:{status:"idle"},name:"",id:editorEnv.documentId,slug:"",publishedAt:"",draftLastSaveAt:"",author:{id:"",name:"",avatar:""}},isPanning:!1,workspaceZoom:"fit",transformToolData:{frames:{},state:"end",configs:{},boundaries:null},contextMenuData:{open:!1,anchorPoint:{x:0,y:0}},uploadedMediaInfo:{},dataURLs:{},assetPanelActiveTab:"images",layersPanel:{isActive:!1},displayRulesConfig:null},editorOptions$1=createSlice({name:"editorOptions",initialState:DocType.configs.configEditorState?.(initialState$b)||initialState$b,reducers:{setAssetDragLayerVisibility(ea,na){ea.assetDragLayerVisibility=na.payload},updateSectionPreviewState(ea,{payload:na}){ea.sectionPreviewState=na},updateOverSectionControlVisibility(ea,{payload:na}){ea.overSectionControlsVisibility=na},toggleSectionsPanel(ea){ea.sectionsPanel=ea.sectionsPanel==="open"?"close":"open"},openSectionsPanel(ea){ea.sectionsPanel="open"},closeSectionsPanel(ea){ea.sectionsPanel="close"},updateSectionSnapshot(ea,{payload:na}){const{id:ra,url:oa}=na;ea.sectionsSnapshots[ra]&&URL.revokeObjectURL(ea.sectionsSnapshots[ra]),ea.sectionsSnapshots[ra]=oa},updateSectionsSnapshot(ea,{payload:na}){const{values:ra}=na;Object.entries(ra).forEach(([oa,aa])=>{ea.sectionsSnapshots[oa]&&URL.revokeObjectURL(ea.sectionsSnapshots[oa]),ea.sectionsSnapshots[oa]=aa})},updateActiveElementOptionsTab(ea,na){ea.activeElementOptionsTab=na.payload},updateActiveSectionOptionsTab(ea,na){ea.activeSectionOptionsTab=na.payload},addSectionsDataSourcesData(ea,na){const{id:ra,status:oa,data:aa}=na.payload;ea.sectionsDataSourcesData[ra]={status:oa,data:aa}},removeSectionsDataSourcesData(ea,na){const ra=na.payload;delete ea.sectionsDataSourcesData[ra]},setHoveredElement(ea,na){ea.hoveredElementId=na.payload},setProvisionalAnimations(ea,na){ea.provisionalAnimations=na.payload,ea.overSectionControlsVisibility="hidden"},removeProvisionalAnimation(ea){ea.provisionalAnimations=[],ea.overSectionControlsVisibility="visible"},updateActiveAction(ea,na){ea.activeAction=na.payload},addToDocumentFonts(ea,na){ea.documentFonts.includes(na.payload)||(ea.documentFonts=[...ea.documentFonts,na.payload])},updateActiveOptionsPanel(ea,na){ea.activeOptionsPanel=na.payload},updateLoadingDocumentStatus(ea,na){ea.openDocumentInfo.loadingStatus=na.payload},updateSavingDocumentStatus(ea,na){ea.openDocumentInfo.savingStatus=na.payload},updateDocumentInfoUpdatingStatus(ea,na){ea.openDocumentInfo.savingStatus=na.payload},updateDocumentName(ea,na){ea.openDocumentInfo.name=na.payload},updateDocumentSlug(ea,na){ea.openDocumentInfo.slug=na.payload},setDocumentId(ea,na){ea.openDocumentInfo.id=na.payload},incrementUnsavedChanges(ea){ea.unsavedChanges+=1},resetUnsavedChanges(ea){ea.unsavedChanges=0},updateRemoteAssetsContentStatus(ea,na){const{contentType:ra,status:oa}=na.payload;ea.remoteAssetsContentStatus[ra]=oa},updateDocumentLastPublishTime(ea,na){ea.openDocumentInfo.publishedAt=na.payload},updateDocumentAuthor(ea,na){ea.openDocumentInfo.author=na.payload},updateDocumentDraftLastSaveTime(ea,na){ea.openDocumentInfo.draftLastSaveAt=na.payload},setCropperActiveMediaId(ea,na){ea.activeMediaCropperId=na.payload},updateTransformToolFrames(ea,na){ea.transformToolData.frames={...ea.transformToolData.frames,...na.payload}},clearTransformToolFrames(ea){ea.transformToolData.frames={}},updateTransformToolBoundaries(ea,na){ea.transformToolData.boundaries=na.payload},setTransformToolConfig(ea,na){const{id:ra,config:oa}=na.payload;ea.transformToolData.configs[ra]={...ea.transformToolData.configs[ra],...oa}},removeTransformToolConfig(ea,na){delete ea.transformToolData.configs[na.payload]},updateTransformState(ea,na){ea.transformToolData.state=na.payload},setPanningStartStatus(ea,na){ea.isPanning=na.payload},setWorkspaceZoom(ea,na){ea.workspaceZoom=na.payload},setWorkspaceComputedZoom(ea,na){ea.workspaceComputedZoom=na.payload},updateWorkspacePanAndZoom(ea,na){na.payload.computedZoom!==void 0&&(ea.workspaceComputedZoom=na.payload.computedZoom),na.payload.zoom!==void 0&&(ea.workspaceZoom=na.payload.zoom),ea.workspacePan=na.payload.pan},setContextMenuData(ea,na){ea.contextMenuData=na.payload},setUploadedMediaInfo(ea,na){const{id:ra}=na.payload;ea.uploadedMediaInfo[ra]=na.payload},updateUploadedMediaStatus(ea,{payload:na}){const{id:ra,value:oa}=na,aa=ea.uploadedMediaInfo[ra];ea.uploadedMediaInfo[ra]={...aa,status:oa}},updateUploadedMediaProgress(ea,{payload:na}){const{id:ra,value:oa}=na,aa=ea.uploadedMediaInfo[ra];ea.uploadedMediaInfo[ra]={...aa,progress:oa}},updateUploadedMediaID(ea,{payload:na}){const{id:ra,value:oa}=na,aa=ea.uploadedMediaInfo[ra];ea.uploadedMediaInfo[ra]={...aa,id:oa}},addDataURL(ea,{payload:na}){const{value:ra,id:oa}=na;ea.dataURLs[oa]=ra},updateUserTier(ea,{payload:na}){userTiers.has(na)&&(ea.user.userTier=na)},setAssetPanelTab(ea,{payload:na}){ea.assetPanelActiveTab=na},setLayersPanelActiveStatus(ea,{payload:na}){ea.layersPanel.isActive=na},setLayersPanelPosition(ea,{payload:na}){ea.layersPanel.position=na},setDisplayRulesConfig(ea,{payload:na}){ea.displayRulesConfig=na}},extraReducers:ea=>{ea.addCase(removeSection,(na,ra)=>{const{payload:{id:oa}}=ra;na.sectionsSnapshots[oa]&&(URL.revokeObjectURL(na.sectionsSnapshots[oa]),delete na.sectionsSnapshots[oa])}),ea.addCase(addElement,na=>{na.activeElementOptionsTab="design"})}}),{updateTransformState,setAssetDragLayerVisibility,toggleSectionsPanel,addToDocumentFonts,closeSectionsPanel,updateSectionSnapshot,updateActiveElementOptionsTab,updateActiveSectionOptionsTab,addSectionsDataSourcesData,removeSectionsDataSourcesData,setHoveredElement,setProvisionalAnimations,removeProvisionalAnimation,updateSectionPreviewState,updateActiveOptionsPanel,updateLoadingDocumentStatus,updateSavingDocumentStatus,incrementUnsavedChanges,resetUnsavedChanges,updateDocumentName,updateDocumentSlug,updateDocumentInfoUpdatingStatus,updateRemoteAssetsContentStatus,updateDocumentLastPublishTime,updateDocumentDraftLastSaveTime,setCropperActiveMediaId,updateTransformToolFrames,clearTransformToolFrames,updateOverSectionControlVisibility,setPanningStartStatus,setWorkspaceZoom,updateWorkspacePanAndZoom,setTransformToolConfig,updateSectionsSnapshot,removeTransformToolConfig,updateUserTier,setUploadedMediaInfo,updateUploadedMediaStatus,updateUploadedMediaProgress,updateUploadedMediaID,addDataURL,updateDocumentAuthor,setAssetPanelTab,setLayersPanelActiveStatus,setLayersPanelPosition,setDisplayRulesConfig}=editorOptions$1.actions,editor=editorOptions$1.reducer;var axios$7={exports:{}},bind,hasRequiredBind;function requireBind(){return hasRequiredBind||(hasRequiredBind=1,bind=function(na,ra){return function(){for(var aa=new Array(arguments.length),sa=0;sa<aa.length;sa++)aa[sa]=arguments[sa];return na.apply(ra,aa)}}),bind}var utils$3,hasRequiredUtils$3;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1;var ea=requireBind(),na=Object.prototype.toString;function ra($a){return na.call($a)==="[object Array]"}function oa($a){return typeof $a>"u"}function aa($a){return $a!==null&&!oa($a)&&$a.constructor!==null&&!oa($a.constructor)&&typeof $a.constructor.isBuffer=="function"&&$a.constructor.isBuffer($a)}function sa($a){return na.call($a)==="[object ArrayBuffer]"}function la($a){return typeof FormData<"u"&&$a instanceof FormData}function ca($a){var Ma;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?Ma=ArrayBuffer.isView($a):Ma=$a&&$a.buffer&&$a.buffer instanceof ArrayBuffer,Ma}function ua($a){return typeof $a=="string"}function da($a){return typeof $a=="number"}function pa($a){return $a!==null&&typeof $a=="object"}function ha($a){if(na.call($a)!=="[object Object]")return!1;var Ma=Object.getPrototypeOf($a);return Ma===null||Ma===Object.prototype}function ga($a){return na.call($a)==="[object Date]"}function fa($a){return na.call($a)==="[object File]"}function ma($a){return na.call($a)==="[object Blob]"}function va($a){return na.call($a)==="[object Function]"}function xa($a){return pa($a)&&va($a.pipe)}function ya($a){return typeof URLSearchParams<"u"&&$a instanceof URLSearchParams}function Aa($a){return $a.trim?$a.trim():$a.replace(/^\s+|\s+$/g,"")}function Ca(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Sa($a,Ma){if(!($a===null||typeof $a>"u"))if(typeof $a!="object"&&($a=[$a]),ra($a))for(var Ia=0,Oa=$a.length;Ia<Oa;Ia++)Ma.call(null,$a[Ia],Ia,$a);else for(var Da in $a)Object.prototype.hasOwnProperty.call($a,Da)&&Ma.call(null,$a[Da],Da,$a)}function wa(){var $a={};function Ma(Da,Ta){ha($a[Ta])&&ha(Da)?$a[Ta]=wa($a[Ta],Da):ha(Da)?$a[Ta]=wa({},Da):ra(Da)?$a[Ta]=Da.slice():$a[Ta]=Da}for(var Ia=0,Oa=arguments.length;Ia<Oa;Ia++)Sa(arguments[Ia],Ma);return $a}function ba($a,Ma,Ia){return Sa(Ma,function(Da,Ta){Ia&&typeof Da=="function"?$a[Ta]=ea(Da,Ia):$a[Ta]=Da}),$a}function Ea($a){return $a.charCodeAt(0)===65279&&($a=$a.slice(1)),$a}return utils$3={isArray:ra,isArrayBuffer:sa,isBuffer:aa,isFormData:la,isArrayBufferView:ca,isString:ua,isNumber:da,isObject:pa,isPlainObject:ha,isUndefined:oa,isDate:ga,isFile:fa,isBlob:ma,isFunction:va,isStream:xa,isURLSearchParams:ya,isStandardBrowserEnv:Ca,forEach:Sa,merge:wa,extend:ba,trim:Aa,stripBOM:Ea},utils$3}var buildURL,hasRequiredBuildURL;function requireBuildURL(){if(hasRequiredBuildURL)return buildURL;hasRequiredBuildURL=1;var ea=requireUtils$3();function na(ra){return encodeURIComponent(ra).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return buildURL=function(oa,aa,sa){if(!aa)return oa;var la;if(sa)la=sa(aa);else if(ea.isURLSearchParams(aa))la=aa.toString();else{var ca=[];ea.forEach(aa,function(pa,ha){pa===null||typeof pa>"u"||(ea.isArray(pa)?ha=ha+"[]":pa=[pa],ea.forEach(pa,function(fa){ea.isDate(fa)?fa=fa.toISOString():ea.isObject(fa)&&(fa=JSON.stringify(fa)),ca.push(na(ha)+"="+na(fa))}))}),la=ca.join("&")}if(la){var ua=oa.indexOf("#");ua!==-1&&(oa=oa.slice(0,ua)),oa+=(oa.indexOf("?")===-1?"?":"&")+la}return oa},buildURL}var InterceptorManager_1,hasRequiredInterceptorManager;function requireInterceptorManager(){if(hasRequiredInterceptorManager)return InterceptorManager_1;hasRequiredInterceptorManager=1;var ea=requireUtils$3();function na(){this.handlers=[]}return na.prototype.use=function(oa,aa,sa){return this.handlers.push({fulfilled:oa,rejected:aa,synchronous:sa?sa.synchronous:!1,runWhen:sa?sa.runWhen:null}),this.handlers.length-1},na.prototype.eject=function(oa){this.handlers[oa]&&(this.handlers[oa]=null)},na.prototype.forEach=function(oa){ea.forEach(this.handlers,function(sa){sa!==null&&oa(sa)})},InterceptorManager_1=na,InterceptorManager_1}var normalizeHeaderName,hasRequiredNormalizeHeaderName;function requireNormalizeHeaderName(){if(hasRequiredNormalizeHeaderName)return normalizeHeaderName;hasRequiredNormalizeHeaderName=1;var ea=requireUtils$3();return normalizeHeaderName=function(ra,oa){ea.forEach(ra,function(sa,la){la!==oa&&la.toUpperCase()===oa.toUpperCase()&&(ra[oa]=sa,delete ra[la])})},normalizeHeaderName}var enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(na,ra,oa,aa,sa){return na.config=ra,oa&&(na.code=oa),na.request=aa,na.response=sa,na.isAxiosError=!0,na.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},na}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var ea=requireEnhanceError();return createError=function(ra,oa,aa,sa,la){var ca=new Error(ra);return ea(ca,oa,aa,sa,la)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var ea=requireCreateError();return settle=function(ra,oa,aa){var sa=aa.config.validateStatus;!aa.status||!sa||sa(aa.status)?ra(aa):oa(ea("Request failed with status code "+aa.status,aa.config,null,aa.request,aa))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var ea=requireUtils$3();return cookies=ea.isStandardBrowserEnv()?function(){return{write:function(oa,aa,sa,la,ca,ua){var da=[];da.push(oa+"="+encodeURIComponent(aa)),ea.isNumber(sa)&&da.push("expires="+new Date(sa).toGMTString()),ea.isString(la)&&da.push("path="+la),ea.isString(ca)&&da.push("domain="+ca),ua===!0&&da.push("secure"),document.cookie=da.join("; ")},read:function(oa){var aa=document.cookie.match(new RegExp("(^|;\\s*)("+oa+")=([^;]*)"));return aa?decodeURIComponent(aa[3]):null},remove:function(oa){this.write(oa,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL$1,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL$1=function(na){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(na)}),isAbsoluteURL$1}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(na,ra){return ra?na.replace(/\/+$/,"")+"/"+ra.replace(/^\/+/,""):na}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var ea=requireIsAbsoluteURL(),na=requireCombineURLs();return buildFullPath=function(oa,aa){return oa&&!ea(aa)?na(oa,aa):aa},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var ea=requireUtils$3(),na=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(oa){var aa={},sa,la,ca;return oa&&ea.forEach(oa.split(`
`),function(da){if(ca=da.indexOf(":"),sa=ea.trim(da.substr(0,ca)).toLowerCase(),la=ea.trim(da.substr(ca+1)),sa){if(aa[sa]&&na.indexOf(sa)>=0)return;sa==="set-cookie"?aa[sa]=(aa[sa]?aa[sa]:[]).concat([la]):aa[sa]=aa[sa]?aa[sa]+", "+la:la}}),aa},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var ea=requireUtils$3();return isURLSameOrigin=ea.isStandardBrowserEnv()?function(){var ra=/(msie|trident)/i.test(navigator.userAgent),oa=document.createElement("a"),aa;function sa(la){var ca=la;return ra&&(oa.setAttribute("href",ca),ca=oa.href),oa.setAttribute("href",ca),{href:oa.href,protocol:oa.protocol?oa.protocol.replace(/:$/,""):"",host:oa.host,search:oa.search?oa.search.replace(/^\?/,""):"",hash:oa.hash?oa.hash.replace(/^#/,""):"",hostname:oa.hostname,port:oa.port,pathname:oa.pathname.charAt(0)==="/"?oa.pathname:"/"+oa.pathname}}return aa=sa(window.location.href),function(ca){var ua=ea.isString(ca)?sa(ca):ca;return ua.protocol===aa.protocol&&ua.host===aa.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var ea=requireUtils$3(),na=requireSettle(),ra=requireCookies(),oa=requireBuildURL(),aa=requireBuildFullPath(),sa=requireParseHeaders(),la=requireIsURLSameOrigin(),ca=requireCreateError();return xhr=function(da){return new Promise(function(ha,ga){var fa=da.data,ma=da.headers,va=da.responseType;ea.isFormData(fa)&&delete ma["Content-Type"];var xa=new XMLHttpRequest;if(da.auth){var ya=da.auth.username||"",Aa=da.auth.password?unescape(encodeURIComponent(da.auth.password)):"";ma.Authorization="Basic "+btoa(ya+":"+Aa)}var Ca=aa(da.baseURL,da.url);xa.open(da.method.toUpperCase(),oa(Ca,da.params,da.paramsSerializer),!0),xa.timeout=da.timeout;function Sa(){if(xa){var ba="getAllResponseHeaders"in xa?sa(xa.getAllResponseHeaders()):null,Ea=!va||va==="text"||va==="json"?xa.responseText:xa.response,$a={data:Ea,status:xa.status,statusText:xa.statusText,headers:ba,config:da,request:xa};na(ha,ga,$a),xa=null}}if("onloadend"in xa?xa.onloadend=Sa:xa.onreadystatechange=function(){!xa||xa.readyState!==4||xa.status===0&&!(xa.responseURL&&xa.responseURL.indexOf("file:")===0)||setTimeout(Sa)},xa.onabort=function(){xa&&(ga(ca("Request aborted",da,"ECONNABORTED",xa)),xa=null)},xa.onerror=function(){ga(ca("Network Error",da,null,xa)),xa=null},xa.ontimeout=function(){var Ea="timeout of "+da.timeout+"ms exceeded";da.timeoutErrorMessage&&(Ea=da.timeoutErrorMessage),ga(ca(Ea,da,da.transitional&&da.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",xa)),xa=null},ea.isStandardBrowserEnv()){var wa=(da.withCredentials||la(Ca))&&da.xsrfCookieName?ra.read(da.xsrfCookieName):void 0;wa&&(ma[da.xsrfHeaderName]=wa)}"setRequestHeader"in xa&&ea.forEach(ma,function(Ea,$a){typeof fa>"u"&&$a.toLowerCase()==="content-type"?delete ma[$a]:xa.setRequestHeader($a,Ea)}),ea.isUndefined(da.withCredentials)||(xa.withCredentials=!!da.withCredentials),va&&va!=="json"&&(xa.responseType=da.responseType),typeof da.onDownloadProgress=="function"&&xa.addEventListener("progress",da.onDownloadProgress),typeof da.onUploadProgress=="function"&&xa.upload&&xa.upload.addEventListener("progress",da.onUploadProgress),da.cancelToken&&da.cancelToken.promise.then(function(Ea){xa&&(xa.abort(),ga(Ea),xa=null)}),fa||(fa=null),xa.send(fa)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var ea=requireUtils$3(),na=requireNormalizeHeaderName(),ra=requireEnhanceError(),oa={"Content-Type":"application/x-www-form-urlencoded"};function aa(ua,da){!ea.isUndefined(ua)&&ea.isUndefined(ua["Content-Type"])&&(ua["Content-Type"]=da)}function sa(){var ua;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(ua=requireXhr()),ua}function la(ua,da,pa){if(ea.isString(ua))try{return(da||JSON.parse)(ua),ea.trim(ua)}catch(ha){if(ha.name!=="SyntaxError")throw ha}return(pa||JSON.stringify)(ua)}var ca={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:sa(),transformRequest:[function(da,pa){return na(pa,"Accept"),na(pa,"Content-Type"),ea.isFormData(da)||ea.isArrayBuffer(da)||ea.isBuffer(da)||ea.isStream(da)||ea.isFile(da)||ea.isBlob(da)?da:ea.isArrayBufferView(da)?da.buffer:ea.isURLSearchParams(da)?(aa(pa,"application/x-www-form-urlencoded;charset=utf-8"),da.toString()):ea.isObject(da)||pa&&pa["Content-Type"]==="application/json"?(aa(pa,"application/json"),la(da)):da}],transformResponse:[function(da){var pa=this.transitional,ha=pa&&pa.silentJSONParsing,ga=pa&&pa.forcedJSONParsing,fa=!ha&&this.responseType==="json";if(fa||ga&&ea.isString(da)&&da.length)try{return JSON.parse(da)}catch(ma){if(fa)throw ma.name==="SyntaxError"?ra(ma,this,"E_JSON_PARSE"):ma}return da}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(da){return da>=200&&da<300}};return ca.headers={common:{Accept:"application/json, text/plain, */*"}},ea.forEach(["delete","get","head"],function(da){ca.headers[da]={}}),ea.forEach(["post","put","patch"],function(da){ca.headers[da]=ea.merge(oa)}),defaults_1=ca,defaults_1}var transformData,hasRequiredTransformData;function requireTransformData(){if(hasRequiredTransformData)return transformData;hasRequiredTransformData=1;var ea=requireUtils$3(),na=requireDefaults();return transformData=function(oa,aa,sa){var la=this||na;return ea.forEach(sa,function(ua){oa=ua.call(la,oa,aa)}),oa},transformData}var isCancel,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel=function(na){return!!(na&&na.__CANCEL__)}),isCancel}var dispatchRequest,hasRequiredDispatchRequest;function requireDispatchRequest(){if(hasRequiredDispatchRequest)return dispatchRequest;hasRequiredDispatchRequest=1;var ea=requireUtils$3(),na=requireTransformData(),ra=requireIsCancel(),oa=requireDefaults();function aa(sa){sa.cancelToken&&sa.cancelToken.throwIfRequested()}return dispatchRequest=function(la){aa(la),la.headers=la.headers||{},la.data=na.call(la,la.data,la.headers,la.transformRequest),la.headers=ea.merge(la.headers.common||{},la.headers[la.method]||{},la.headers),ea.forEach(["delete","get","head","post","put","patch","common"],function(da){delete la.headers[da]});var ca=la.adapter||oa.adapter;return ca(la).then(function(da){return aa(la),da.data=na.call(la,da.data,da.headers,la.transformResponse),da},function(da){return ra(da)||(aa(la),da&&da.response&&(da.response.data=na.call(la,da.response.data,da.response.headers,la.transformResponse))),Promise.reject(da)})},dispatchRequest}var mergeConfig,hasRequiredMergeConfig;function requireMergeConfig(){if(hasRequiredMergeConfig)return mergeConfig;hasRequiredMergeConfig=1;var ea=requireUtils$3();return mergeConfig=function(ra,oa){oa=oa||{};var aa={},sa=["url","method","data"],la=["headers","auth","proxy","params"],ca=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ua=["validateStatus"];function da(fa,ma){return ea.isPlainObject(fa)&&ea.isPlainObject(ma)?ea.merge(fa,ma):ea.isPlainObject(ma)?ea.merge({},ma):ea.isArray(ma)?ma.slice():ma}function pa(fa){ea.isUndefined(oa[fa])?ea.isUndefined(ra[fa])||(aa[fa]=da(void 0,ra[fa])):aa[fa]=da(ra[fa],oa[fa])}ea.forEach(sa,function(ma){ea.isUndefined(oa[ma])||(aa[ma]=da(void 0,oa[ma]))}),ea.forEach(la,pa),ea.forEach(ca,function(ma){ea.isUndefined(oa[ma])?ea.isUndefined(ra[ma])||(aa[ma]=da(void 0,ra[ma])):aa[ma]=da(void 0,oa[ma])}),ea.forEach(ua,function(ma){ma in oa?aa[ma]=da(ra[ma],oa[ma]):ma in ra&&(aa[ma]=da(void 0,ra[ma]))});var ha=sa.concat(la).concat(ca).concat(ua),ga=Object.keys(ra).concat(Object.keys(oa)).filter(function(ma){return ha.indexOf(ma)===-1});return ea.forEach(ga,pa),aa},mergeConfig}const version="0.21.4",require$$0={version};var validator,hasRequiredValidator;function requireValidator(){if(hasRequiredValidator)return validator;hasRequiredValidator=1;var ea=require$$0,na={};["object","boolean","number","function","string","symbol"].forEach(function(la,ca){na[la]=function(da){return typeof da===la||"a"+(ca<1?"n ":" ")+la}});var ra={},oa=ea.version.split(".");function aa(la,ca){for(var ua=ca?ca.split("."):oa,da=la.split("."),pa=0;pa<3;pa++){if(ua[pa]>da[pa])return!0;if(ua[pa]<da[pa])return!1}return!1}na.transitional=function(ca,ua,da){var pa=ua&&aa(ua);function ha(ga,fa){return"[Axios v"+ea.version+"] Transitional option '"+ga+"'"+fa+(da?". "+da:"")}return function(ga,fa,ma){if(ca===!1)throw new Error(ha(fa," has been removed in "+ua));return pa&&!ra[fa]&&(ra[fa]=!0,console.warn(ha(fa," has been deprecated since v"+ua+" and will be removed in the near future"))),ca?ca(ga,fa,ma):!0}};function sa(la,ca,ua){if(typeof la!="object")throw new TypeError("options must be an object");for(var da=Object.keys(la),pa=da.length;pa-- >0;){var ha=da[pa],ga=ca[ha];if(ga){var fa=la[ha],ma=fa===void 0||ga(fa,ha,la);if(ma!==!0)throw new TypeError("option "+ha+" must be "+ma);continue}if(ua!==!0)throw Error("Unknown option "+ha)}}return validator={isOlderVersion:aa,assertOptions:sa,validators:na},validator}var Axios_1,hasRequiredAxios$2;function requireAxios$2(){if(hasRequiredAxios$2)return Axios_1;hasRequiredAxios$2=1;var ea=requireUtils$3(),na=requireBuildURL(),ra=requireInterceptorManager(),oa=requireDispatchRequest(),aa=requireMergeConfig(),sa=requireValidator(),la=sa.validators;function ca(ua){this.defaults=ua,this.interceptors={request:new ra,response:new ra}}return ca.prototype.request=function(da){typeof da=="string"?(da=arguments[1]||{},da.url=arguments[0]):da=da||{},da=aa(this.defaults,da),da.method?da.method=da.method.toLowerCase():this.defaults.method?da.method=this.defaults.method.toLowerCase():da.method="get";var pa=da.transitional;pa!==void 0&&sa.assertOptions(pa,{silentJSONParsing:la.transitional(la.boolean,"1.0.0"),forcedJSONParsing:la.transitional(la.boolean,"1.0.0"),clarifyTimeoutError:la.transitional(la.boolean,"1.0.0")},!1);var ha=[],ga=!0;this.interceptors.request.forEach(function(Sa){typeof Sa.runWhen=="function"&&Sa.runWhen(da)===!1||(ga=ga&&Sa.synchronous,ha.unshift(Sa.fulfilled,Sa.rejected))});var fa=[];this.interceptors.response.forEach(function(Sa){fa.push(Sa.fulfilled,Sa.rejected)});var ma;if(!ga){var va=[oa,void 0];for(Array.prototype.unshift.apply(va,ha),va=va.concat(fa),ma=Promise.resolve(da);va.length;)ma=ma.then(va.shift(),va.shift());return ma}for(var xa=da;ha.length;){var ya=ha.shift(),Aa=ha.shift();try{xa=ya(xa)}catch(Ca){Aa(Ca);break}}try{ma=oa(xa)}catch(Ca){return Promise.reject(Ca)}for(;fa.length;)ma=ma.then(fa.shift(),fa.shift());return ma},ca.prototype.getUri=function(da){return da=aa(this.defaults,da),na(da.url,da.params,da.paramsSerializer).replace(/^\?/,"")},ea.forEach(["delete","get","head","options"],function(da){ca.prototype[da]=function(pa,ha){return this.request(aa(ha||{},{method:da,url:pa,data:(ha||{}).data}))}}),ea.forEach(["post","put","patch"],function(da){ca.prototype[da]=function(pa,ha,ga){return this.request(aa(ga||{},{method:da,url:pa,data:ha}))}}),Axios_1=ca,Axios_1}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function ea(na){this.message=na}return ea.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},ea.prototype.__CANCEL__=!0,Cancel_1=ea,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var ea=requireCancel();function na(ra){if(typeof ra!="function")throw new TypeError("executor must be a function.");var oa;this.promise=new Promise(function(la){oa=la});var aa=this;ra(function(la){aa.reason||(aa.reason=new ea(la),oa(aa.reason))})}return na.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},na.source=function(){var oa,aa=new na(function(la){oa=la});return{token:aa,cancel:oa}},CancelToken_1=na,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(na){return function(oa){return na.apply(null,oa)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(na){return typeof na=="object"&&na.isAxiosError===!0}),isAxiosError}var hasRequiredAxios$1;function requireAxios$1(){if(hasRequiredAxios$1)return axios$7.exports;hasRequiredAxios$1=1;var ea=requireUtils$3(),na=requireBind(),ra=requireAxios$2(),oa=requireMergeConfig(),aa=requireDefaults();function sa(ca){var ua=new ra(ca),da=na(ra.prototype.request,ua);return ea.extend(da,ra.prototype,ua),ea.extend(da,ua),da}var la=sa(aa);return la.Axios=ra,la.create=function(ua){return sa(oa(la.defaults,ua))},la.Cancel=requireCancel(),la.CancelToken=requireCancelToken(),la.isCancel=requireIsCancel(),la.all=function(ua){return Promise.all(ua)},la.spread=requireSpread(),la.isAxiosError=requireIsAxiosError(),axios$7.exports=la,axios$7.exports.default=la,axios$7.exports}var axios$6,hasRequiredAxios;function requireAxios(){return hasRequiredAxios||(hasRequiredAxios=1,axios$6=requireAxios$1()),axios$6}var axiosExports=requireAxios();const Axios=getDefaultExportFromCjs(axiosExports);var cache$3={exports:{}},hasRequiredCache;function requireCache(){return hasRequiredCache||(hasRequiredCache=1,function(ea,na){(function(oa,aa){ea.exports=aa(requireAxios())})(window,function(ra){return function(oa){var aa={};function sa(la){if(aa[la])return aa[la].exports;var ca=aa[la]={i:la,l:!1,exports:{}};return oa[la].call(ca.exports,ca,ca.exports,sa),ca.l=!0,ca.exports}return sa.m=oa,sa.c=aa,sa.d=function(la,ca,ua){sa.o(la,ca)||Object.defineProperty(la,ca,{enumerable:!0,get:ua})},sa.r=function(la){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(la,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(la,"__esModule",{value:!0})},sa.t=function(la,ca){if(ca&1&&(la=sa(la)),ca&8||ca&4&&typeof la=="object"&&la&&la.__esModule)return la;var ua=Object.create(null);if(sa.r(ua),Object.defineProperty(ua,"default",{enumerable:!0,value:la}),ca&2&&typeof la!="string")for(var da in la)sa.d(ua,da,function(pa){return la[pa]}.bind(null,da));return ua},sa.n=function(la){var ca=la&&la.__esModule?function(){return la.default}:function(){return la};return sa.d(ca,"a",ca),ca},sa.o=function(la,ca){return Object.prototype.hasOwnProperty.call(la,ca)},sa.p="",sa(sa.s="./src/index.js")}({"./node_modules/cache-control-esm/index.js":function(oa,aa,sa){sa.r(aa),sa.d(aa,"CacheControl",function(){return Ca}),sa.d(aa,"parse",function(){return Sa}),sa.d(aa,"format",function(){return wa}),sa("./node_modules/core-js/modules/es6.array.from.js"),sa("./node_modules/core-js/modules/es6.function.name.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js"),sa("./node_modules/core-js/modules/web.dom.iterable.js"),sa("./node_modules/core-js/modules/es7.symbol.async-iterator.js"),sa("./node_modules/core-js/modules/es6.symbol.js"),sa("./node_modules/core-js/modules/es6.regexp.split.js"),sa("./node_modules/core-js/modules/es6.number.is-finite.js");function la(ba,Ea){return ha(ba)||pa(ba,Ea)||ua(ba,Ea)||ca()}function ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ua(ba,Ea){if(ba){if(typeof ba=="string")return da(ba,Ea);var $a=Object.prototype.toString.call(ba).slice(8,-1);if($a==="Object"&&ba.constructor&&($a=ba.constructor.name),$a==="Map"||$a==="Set")return Array.from(ba);if($a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($a))return da(ba,Ea)}}function da(ba,Ea){(Ea==null||Ea>ba.length)&&(Ea=ba.length);for(var $a=0,Ma=new Array(Ea);$a<Ea;$a++)Ma[$a]=ba[$a];return Ma}function pa(ba,Ea){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ba)))){var $a=[],Ma=!0,Ia=!1,Oa=void 0;try{for(var Da=ba[Symbol.iterator](),Ta;!(Ma=(Ta=Da.next()).done)&&($a.push(Ta.value),!(Ea&&$a.length===Ea));Ma=!0);}catch(_a){Ia=!0,Oa=_a}finally{try{!Ma&&Da.return!=null&&Da.return()}finally{if(Ia)throw Oa}}return $a}}function ha(ba){if(Array.isArray(ba))return ba}function ga(ba,Ea){if(!(ba instanceof Ea))throw new TypeError("Cannot call a class as a function")}function fa(ba,Ea){for(var $a=0;$a<Ea.length;$a++){var Ma=Ea[$a];Ma.enumerable=Ma.enumerable||!1,Ma.configurable=!0,"value"in Ma&&(Ma.writable=!0),Object.defineProperty(ba,Ma.key,Ma)}}function ma(ba,Ea,$a){return Ea&&fa(ba.prototype,Ea),ba}var va=/([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g,xa={maxAge:"max-age",sharedMaxAge:"s-maxage",maxStale:"max-stale",minFresh:"min-fresh",immutable:"immutable",mustRevalidate:"must-revalidate",noCache:"no-cache",noStore:"no-store",noTransform:"no-transform",onlyIfCached:"only-if-cached",private:"private",proxyRevalidate:"proxy-revalidate",public:"public"};function ya(ba){return ba===null}function Aa(ba){if(!ba)return null;var Ea=parseInt(ba,10);return!Number.isFinite(Ea)||Ea<0?null:Ea}var Ca=function(){function ba(){ga(this,ba),this.maxAge=null,this.sharedMaxAge=null,this.maxStale=null,this.maxStaleDuration=null,this.minFresh=null,this.immutable=null,this.mustRevalidate=null,this.noCache=null,this.noStore=null,this.noTransform=null,this.onlyIfCached=null,this.private=null,this.proxyRevalidate=null,this.public=null}return ma(ba,[{key:"parse",value:function($a){if(!$a||$a.length===0)return this;var Ma={},Ia=$a.match(va)||[];return Array.prototype.forEach.call(Ia,function(Oa){var Da=Oa.split("=",2),Ta=la(Da,1),_a=Ta[0],La=null;Da.length>1&&(La=Da[1].trim()),Ma[_a.toLowerCase()]=La}),this.maxAge=Aa(Ma[xa.maxAge]),this.sharedMaxAge=Aa(Ma[xa.sharedMaxAge]),this.maxStale=ya(Ma[xa.maxStale]),this.maxStaleDuration=Aa(Ma[xa.maxStale]),this.maxStaleDuration&&(this.maxStale=!0),this.minFresh=Aa(Ma[xa.minFresh]),this.immutable=ya(Ma[xa.immutable]),this.mustRevalidate=ya(Ma[xa.mustRevalidate]),this.noCache=ya(Ma[xa.noCache]),this.noStore=ya(Ma[xa.noStore]),this.noTransform=ya(Ma[xa.noTransform]),this.onlyIfCached=ya(Ma[xa.onlyIfCached]),this.private=ya(Ma[xa.private]),this.proxyRevalidate=ya(Ma[xa.proxyRevalidate]),this.public=ya(Ma[xa.public]),this}},{key:"format",value:function(){var $a=[];return this.maxAge&&$a.push("".concat(xa.maxAge,"=").concat(this.maxAge)),this.sharedMaxAge&&$a.push("".concat(xa.sharedMaxAge,"=").concat(this.sharedMaxAge)),this.maxStale&&(this.maxStaleDuration?$a.push("".concat(xa.maxStale,"=").concat(this.maxStaleDuration)):$a.push(xa.maxStale)),this.minFresh&&$a.push("".concat(xa.minFresh,"=").concat(this.minFresh)),this.immutable&&$a.push(xa.immutable),this.mustRevalidate&&$a.push(xa.mustRevalidate),this.noCache&&$a.push(xa.noCache),this.noStore&&$a.push(xa.noStore),this.noTransform&&$a.push(xa.noTransform),this.onlyIfCached&&$a.push(xa.onlyIfCached),this.private&&$a.push(xa.private),this.proxyRevalidate&&$a.push(xa.proxyRevalidate),this.public&&$a.push(xa.public),$a.join(", ")}}]),ba}();function Sa(ba){var Ea=new Ca;return Ea.parse(ba)}function wa(ba){return ba instanceof Ca?ba.format():Ca.prototype.format.call(ba)}aa.default={CacheControl:Ca,parse:Sa,format:wa}},"./node_modules/charenc/charenc.js":function(oa,aa){var sa={utf8:{stringToBytes:function(la){return sa.bin.stringToBytes(unescape(encodeURIComponent(la)))},bytesToString:function(la){return decodeURIComponent(escape(sa.bin.bytesToString(la)))}},bin:{stringToBytes:function(la){for(var ca=[],ua=0;ua<la.length;ua++)ca.push(la.charCodeAt(ua)&255);return ca},bytesToString:function(la){for(var ca=[],ua=0;ua<la.length;ua++)ca.push(String.fromCharCode(la[ua]));return ca.join("")}}};oa.exports=sa},"./node_modules/core-js/modules/_a-function.js":function(oa,aa){oa.exports=function(sa){if(typeof sa!="function")throw TypeError(sa+" is not a function!");return sa}},"./node_modules/core-js/modules/_add-to-unscopables.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_wks.js")("unscopables"),ca=Array.prototype;ca[la]==null&&sa("./node_modules/core-js/modules/_hide.js")(ca,la,{}),oa.exports=function(ua){ca[la][ua]=!0}},"./node_modules/core-js/modules/_advance-string-index.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_string-at.js")(!0);oa.exports=function(ca,ua,da){return ua+(da?la(ca,ua).length:1)}},"./node_modules/core-js/modules/_an-object.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-object.js");oa.exports=function(ca){if(!la(ca))throw TypeError(ca+" is not an object!");return ca}},"./node_modules/core-js/modules/_array-includes.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_to-iobject.js"),ca=sa("./node_modules/core-js/modules/_to-length.js"),ua=sa("./node_modules/core-js/modules/_to-absolute-index.js");oa.exports=function(da){return function(pa,ha,ga){var fa=la(pa),ma=ca(fa.length),va=ua(ga,ma),xa;if(da&&ha!=ha){for(;ma>va;)if(xa=fa[va++],xa!=xa)return!0}else for(;ma>va;va++)if((da||va in fa)&&fa[va]===ha)return da||va||0;return!da&&-1}}},"./node_modules/core-js/modules/_classof.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_cof.js"),ca=sa("./node_modules/core-js/modules/_wks.js")("toStringTag"),ua=la(function(){return arguments}())=="Arguments",da=function(pa,ha){try{return pa[ha]}catch{}};oa.exports=function(pa){var ha,ga,fa;return pa===void 0?"Undefined":pa===null?"Null":typeof(ga=da(ha=Object(pa),ca))=="string"?ga:ua?la(ha):(fa=la(ha))=="Object"&&typeof ha.callee=="function"?"Arguments":fa}},"./node_modules/core-js/modules/_cof.js":function(oa,aa){var sa={}.toString;oa.exports=function(la){return sa.call(la).slice(8,-1)}},"./node_modules/core-js/modules/_core.js":function(oa,aa){var sa=oa.exports={version:"2.6.12"};typeof __e=="number"&&(__e=sa)},"./node_modules/core-js/modules/_create-property.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-dp.js"),ca=sa("./node_modules/core-js/modules/_property-desc.js");oa.exports=function(ua,da,pa){da in ua?la.f(ua,da,ca(0,pa)):ua[da]=pa}},"./node_modules/core-js/modules/_ctx.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_a-function.js");oa.exports=function(ca,ua,da){if(la(ca),ua===void 0)return ca;switch(da){case 1:return function(pa){return ca.call(ua,pa)};case 2:return function(pa,ha){return ca.call(ua,pa,ha)};case 3:return function(pa,ha,ga){return ca.call(ua,pa,ha,ga)}}return function(){return ca.apply(ua,arguments)}}},"./node_modules/core-js/modules/_defined.js":function(oa,aa){oa.exports=function(sa){if(sa==null)throw TypeError("Can't call method on  "+sa);return sa}},"./node_modules/core-js/modules/_descriptors.js":function(oa,aa,sa){oa.exports=!sa("./node_modules/core-js/modules/_fails.js")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/modules/_dom-create.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-object.js"),ca=sa("./node_modules/core-js/modules/_global.js").document,ua=la(ca)&&la(ca.createElement);oa.exports=function(da){return ua?ca.createElement(da):{}}},"./node_modules/core-js/modules/_enum-bug-keys.js":function(oa,aa){oa.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"./node_modules/core-js/modules/_enum-keys.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-keys.js"),ca=sa("./node_modules/core-js/modules/_object-gops.js"),ua=sa("./node_modules/core-js/modules/_object-pie.js");oa.exports=function(da){var pa=la(da),ha=ca.f;if(ha)for(var ga=ha(da),fa=ua.f,ma=0,va;ga.length>ma;)fa.call(da,va=ga[ma++])&&pa.push(va);return pa}},"./node_modules/core-js/modules/_export.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_global.js"),ca=sa("./node_modules/core-js/modules/_core.js"),ua=sa("./node_modules/core-js/modules/_hide.js"),da=sa("./node_modules/core-js/modules/_redefine.js"),pa=sa("./node_modules/core-js/modules/_ctx.js"),ha="prototype",ga=function(fa,ma,va){var xa=fa&ga.F,ya=fa&ga.G,Aa=fa&ga.S,Ca=fa&ga.P,Sa=fa&ga.B,wa=ya?la:Aa?la[ma]||(la[ma]={}):(la[ma]||{})[ha],ba=ya?ca:ca[ma]||(ca[ma]={}),Ea=ba[ha]||(ba[ha]={}),$a,Ma,Ia,Oa;ya&&(va=ma);for($a in va)Ma=!xa&&wa&&wa[$a]!==void 0,Ia=(Ma?wa:va)[$a],Oa=Sa&&Ma?pa(Ia,la):Ca&&typeof Ia=="function"?pa(Function.call,Ia):Ia,wa&&da(wa,$a,Ia,fa&ga.U),ba[$a]!=Ia&&ua(ba,$a,Oa),Ca&&Ea[$a]!=Ia&&(Ea[$a]=Ia)};la.core=ca,ga.F=1,ga.G=2,ga.S=4,ga.P=8,ga.B=16,ga.W=32,ga.U=64,ga.R=128,oa.exports=ga},"./node_modules/core-js/modules/_fails-is-regexp.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_wks.js")("match");oa.exports=function(ca){var ua=/./;try{"/./"[ca](ua)}catch{try{return ua[la]=!1,!"/./"[ca](ua)}catch{}}return!0}},"./node_modules/core-js/modules/_fails.js":function(oa,aa){oa.exports=function(sa){try{return!!sa()}catch{return!0}}},"./node_modules/core-js/modules/_fix-re-wks.js":function(oa,aa,sa){sa("./node_modules/core-js/modules/es6.regexp.exec.js");var la=sa("./node_modules/core-js/modules/_redefine.js"),ca=sa("./node_modules/core-js/modules/_hide.js"),ua=sa("./node_modules/core-js/modules/_fails.js"),da=sa("./node_modules/core-js/modules/_defined.js"),pa=sa("./node_modules/core-js/modules/_wks.js"),ha=sa("./node_modules/core-js/modules/_regexp-exec.js"),ga=pa("species"),fa=!ua(function(){var va=/./;return va.exec=function(){var xa=[];return xa.groups={a:"7"},xa},"".replace(va,"$<a>")!=="7"}),ma=function(){var va=/(?:)/,xa=va.exec;va.exec=function(){return xa.apply(this,arguments)};var ya="ab".split(va);return ya.length===2&&ya[0]==="a"&&ya[1]==="b"}();oa.exports=function(va,xa,ya){var Aa=pa(va),Ca=!ua(function(){var Ma={};return Ma[Aa]=function(){return 7},""[va](Ma)!=7}),Sa=Ca?!ua(function(){var Ma=!1,Ia=/a/;return Ia.exec=function(){return Ma=!0,null},va==="split"&&(Ia.constructor={},Ia.constructor[ga]=function(){return Ia}),Ia[Aa](""),!Ma}):void 0;if(!Ca||!Sa||va==="replace"&&!fa||va==="split"&&!ma){var wa=/./[Aa],ba=ya(da,Aa,""[va],function(Ia,Oa,Da,Ta,_a){return Oa.exec===ha?Ca&&!_a?{done:!0,value:wa.call(Oa,Da,Ta)}:{done:!0,value:Ia.call(Da,Oa,Ta)}:{done:!1}}),Ea=ba[0],$a=ba[1];la(String.prototype,va,Ea),ca(RegExp.prototype,Aa,xa==2?function(Ma,Ia){return $a.call(Ma,this,Ia)}:function(Ma){return $a.call(Ma,this)})}}},"./node_modules/core-js/modules/_flags.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_an-object.js");oa.exports=function(){var ca=la(this),ua="";return ca.global&&(ua+="g"),ca.ignoreCase&&(ua+="i"),ca.multiline&&(ua+="m"),ca.unicode&&(ua+="u"),ca.sticky&&(ua+="y"),ua}},"./node_modules/core-js/modules/_function-to-string.js":function(oa,aa,sa){oa.exports=sa("./node_modules/core-js/modules/_shared.js")("native-function-to-string",Function.toString)},"./node_modules/core-js/modules/_global.js":function(oa,aa){var sa=oa.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=sa)},"./node_modules/core-js/modules/_has.js":function(oa,aa){var sa={}.hasOwnProperty;oa.exports=function(la,ca){return sa.call(la,ca)}},"./node_modules/core-js/modules/_hide.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-dp.js"),ca=sa("./node_modules/core-js/modules/_property-desc.js");oa.exports=sa("./node_modules/core-js/modules/_descriptors.js")?function(ua,da,pa){return la.f(ua,da,ca(1,pa))}:function(ua,da,pa){return ua[da]=pa,ua}},"./node_modules/core-js/modules/_html.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_global.js").document;oa.exports=la&&la.documentElement},"./node_modules/core-js/modules/_ie8-dom-define.js":function(oa,aa,sa){oa.exports=!sa("./node_modules/core-js/modules/_descriptors.js")&&!sa("./node_modules/core-js/modules/_fails.js")(function(){return Object.defineProperty(sa("./node_modules/core-js/modules/_dom-create.js")("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/modules/_iobject.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_cof.js");oa.exports=Object("z").propertyIsEnumerable(0)?Object:function(ca){return la(ca)=="String"?ca.split(""):Object(ca)}},"./node_modules/core-js/modules/_is-array-iter.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_iterators.js"),ca=sa("./node_modules/core-js/modules/_wks.js")("iterator"),ua=Array.prototype;oa.exports=function(da){return da!==void 0&&(la.Array===da||ua[ca]===da)}},"./node_modules/core-js/modules/_is-array.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_cof.js");oa.exports=Array.isArray||function(ua){return la(ua)=="Array"}},"./node_modules/core-js/modules/_is-object.js":function(oa,aa){oa.exports=function(sa){return typeof sa=="object"?sa!==null:typeof sa=="function"}},"./node_modules/core-js/modules/_is-regexp.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-object.js"),ca=sa("./node_modules/core-js/modules/_cof.js"),ua=sa("./node_modules/core-js/modules/_wks.js")("match");oa.exports=function(da){var pa;return la(da)&&((pa=da[ua])!==void 0?!!pa:ca(da)=="RegExp")}},"./node_modules/core-js/modules/_iter-call.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_an-object.js");oa.exports=function(ca,ua,da,pa){try{return pa?ua(la(da)[0],da[1]):ua(da)}catch(ga){var ha=ca.return;throw ha!==void 0&&la(ha.call(ca)),ga}}},"./node_modules/core-js/modules/_iter-create.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-create.js"),ca=sa("./node_modules/core-js/modules/_property-desc.js"),ua=sa("./node_modules/core-js/modules/_set-to-string-tag.js"),da={};sa("./node_modules/core-js/modules/_hide.js")(da,sa("./node_modules/core-js/modules/_wks.js")("iterator"),function(){return this}),oa.exports=function(pa,ha,ga){pa.prototype=la(da,{next:ca(1,ga)}),ua(pa,ha+" Iterator")}},"./node_modules/core-js/modules/_iter-define.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_library.js"),ca=sa("./node_modules/core-js/modules/_export.js"),ua=sa("./node_modules/core-js/modules/_redefine.js"),da=sa("./node_modules/core-js/modules/_hide.js"),pa=sa("./node_modules/core-js/modules/_iterators.js"),ha=sa("./node_modules/core-js/modules/_iter-create.js"),ga=sa("./node_modules/core-js/modules/_set-to-string-tag.js"),fa=sa("./node_modules/core-js/modules/_object-gpo.js"),ma=sa("./node_modules/core-js/modules/_wks.js")("iterator"),va=!([].keys&&"next"in[].keys()),xa="@@iterator",ya="keys",Aa="values",Ca=function(){return this};oa.exports=function(Sa,wa,ba,Ea,$a,Ma,Ia){ha(ba,wa,Ea);var Oa=function(Wa){if(!va&&Wa in La)return La[Wa];switch(Wa){case ya:return function(){return new ba(this,Wa)};case Aa:return function(){return new ba(this,Wa)}}return function(){return new ba(this,Wa)}},Da=wa+" Iterator",Ta=$a==Aa,_a=!1,La=Sa.prototype,Na=La[ma]||La[xa]||$a&&La[$a],za=Na||Oa($a),Fa=$a?Ta?Oa("entries"):za:void 0,Ha=wa=="Array"&&La.entries||Na,Va,Ua,Qa;if(Ha&&(Qa=fa(Ha.call(new Sa)),Qa!==Object.prototype&&Qa.next&&(ga(Qa,Da,!0),!la&&typeof Qa[ma]!="function"&&da(Qa,ma,Ca))),Ta&&Na&&Na.name!==Aa&&(_a=!0,za=function(){return Na.call(this)}),(!la||Ia)&&(va||_a||!La[ma])&&da(La,ma,za),pa[wa]=za,pa[Da]=Ca,$a)if(Va={values:Ta?za:Oa(Aa),keys:Ma?za:Oa(ya),entries:Fa},Ia)for(Ua in Va)Ua in La||ua(La,Ua,Va[Ua]);else ca(ca.P+ca.F*(va||_a),wa,Va);return Va}},"./node_modules/core-js/modules/_iter-detect.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_wks.js")("iterator"),ca=!1;try{var ua=[7][la]();ua.return=function(){ca=!0},Array.from(ua,function(){throw 2})}catch{}oa.exports=function(da,pa){if(!pa&&!ca)return!1;var ha=!1;try{var ga=[7],fa=ga[la]();fa.next=function(){return{done:ha=!0}},ga[la]=function(){return fa},da(ga)}catch{}return ha}},"./node_modules/core-js/modules/_iter-step.js":function(oa,aa){oa.exports=function(sa,la){return{value:la,done:!!sa}}},"./node_modules/core-js/modules/_iterators.js":function(oa,aa){oa.exports={}},"./node_modules/core-js/modules/_library.js":function(oa,aa){oa.exports=!1},"./node_modules/core-js/modules/_meta.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_uid.js")("meta"),ca=sa("./node_modules/core-js/modules/_is-object.js"),ua=sa("./node_modules/core-js/modules/_has.js"),da=sa("./node_modules/core-js/modules/_object-dp.js").f,pa=0,ha=Object.isExtensible||function(){return!0},ga=!sa("./node_modules/core-js/modules/_fails.js")(function(){return ha(Object.preventExtensions({}))}),fa=function(Aa){da(Aa,la,{value:{i:"O"+ ++pa,w:{}}})},ma=function(Aa,Ca){if(!ca(Aa))return typeof Aa=="symbol"?Aa:(typeof Aa=="string"?"S":"P")+Aa;if(!ua(Aa,la)){if(!ha(Aa))return"F";if(!Ca)return"E";fa(Aa)}return Aa[la].i},va=function(Aa,Ca){if(!ua(Aa,la)){if(!ha(Aa))return!0;if(!Ca)return!1;fa(Aa)}return Aa[la].w},xa=function(Aa){return ga&&ya.NEED&&ha(Aa)&&!ua(Aa,la)&&fa(Aa),Aa},ya=oa.exports={KEY:la,NEED:!1,fastKey:ma,getWeak:va,onFreeze:xa}},"./node_modules/core-js/modules/_object-create.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_an-object.js"),ca=sa("./node_modules/core-js/modules/_object-dps.js"),ua=sa("./node_modules/core-js/modules/_enum-bug-keys.js"),da=sa("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),pa=function(){},ha="prototype",ga=function(){var fa=sa("./node_modules/core-js/modules/_dom-create.js")("iframe"),ma=ua.length,va="<",xa=">",ya;for(fa.style.display="none",sa("./node_modules/core-js/modules/_html.js").appendChild(fa),fa.src="javascript:",ya=fa.contentWindow.document,ya.open(),ya.write(va+"script"+xa+"document.F=Object"+va+"/script"+xa),ya.close(),ga=ya.F;ma--;)delete ga[ha][ua[ma]];return ga()};oa.exports=Object.create||function(ma,va){var xa;return ma!==null?(pa[ha]=la(ma),xa=new pa,pa[ha]=null,xa[da]=ma):xa=ga(),va===void 0?xa:ca(xa,va)}},"./node_modules/core-js/modules/_object-dp.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_an-object.js"),ca=sa("./node_modules/core-js/modules/_ie8-dom-define.js"),ua=sa("./node_modules/core-js/modules/_to-primitive.js"),da=Object.defineProperty;aa.f=sa("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperty:function(ha,ga,fa){if(la(ha),ga=ua(ga,!0),la(fa),ca)try{return da(ha,ga,fa)}catch{}if("get"in fa||"set"in fa)throw TypeError("Accessors not supported!");return"value"in fa&&(ha[ga]=fa.value),ha}},"./node_modules/core-js/modules/_object-dps.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-dp.js"),ca=sa("./node_modules/core-js/modules/_an-object.js"),ua=sa("./node_modules/core-js/modules/_object-keys.js");oa.exports=sa("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperties:function(pa,ha){ca(pa);for(var ga=ua(ha),fa=ga.length,ma=0,va;fa>ma;)la.f(pa,va=ga[ma++],ha[va]);return pa}},"./node_modules/core-js/modules/_object-gopd.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-pie.js"),ca=sa("./node_modules/core-js/modules/_property-desc.js"),ua=sa("./node_modules/core-js/modules/_to-iobject.js"),da=sa("./node_modules/core-js/modules/_to-primitive.js"),pa=sa("./node_modules/core-js/modules/_has.js"),ha=sa("./node_modules/core-js/modules/_ie8-dom-define.js"),ga=Object.getOwnPropertyDescriptor;aa.f=sa("./node_modules/core-js/modules/_descriptors.js")?ga:function(ma,va){if(ma=ua(ma),va=da(va,!0),ha)try{return ga(ma,va)}catch{}if(pa(ma,va))return ca(!la.f.call(ma,va),ma[va])}},"./node_modules/core-js/modules/_object-gopn-ext.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_to-iobject.js"),ca=sa("./node_modules/core-js/modules/_object-gopn.js").f,ua={}.toString,da=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pa=function(ha){try{return ca(ha)}catch{return da.slice()}};oa.exports.f=function(ga){return da&&ua.call(ga)=="[object Window]"?pa(ga):ca(la(ga))}},"./node_modules/core-js/modules/_object-gopn.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-keys-internal.js"),ca=sa("./node_modules/core-js/modules/_enum-bug-keys.js").concat("length","prototype");aa.f=Object.getOwnPropertyNames||function(da){return la(da,ca)}},"./node_modules/core-js/modules/_object-gops.js":function(oa,aa){aa.f=Object.getOwnPropertySymbols},"./node_modules/core-js/modules/_object-gpo.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_has.js"),ca=sa("./node_modules/core-js/modules/_to-object.js"),ua=sa("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),da=Object.prototype;oa.exports=Object.getPrototypeOf||function(pa){return pa=ca(pa),la(pa,ua)?pa[ua]:typeof pa.constructor=="function"&&pa instanceof pa.constructor?pa.constructor.prototype:pa instanceof Object?da:null}},"./node_modules/core-js/modules/_object-keys-internal.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_has.js"),ca=sa("./node_modules/core-js/modules/_to-iobject.js"),ua=sa("./node_modules/core-js/modules/_array-includes.js")(!1),da=sa("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO");oa.exports=function(pa,ha){var ga=ca(pa),fa=0,ma=[],va;for(va in ga)va!=da&&la(ga,va)&&ma.push(va);for(;ha.length>fa;)la(ga,va=ha[fa++])&&(~ua(ma,va)||ma.push(va));return ma}},"./node_modules/core-js/modules/_object-keys.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-keys-internal.js"),ca=sa("./node_modules/core-js/modules/_enum-bug-keys.js");oa.exports=Object.keys||function(da){return la(da,ca)}},"./node_modules/core-js/modules/_object-pie.js":function(oa,aa){aa.f={}.propertyIsEnumerable},"./node_modules/core-js/modules/_own-keys.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-gopn.js"),ca=sa("./node_modules/core-js/modules/_object-gops.js"),ua=sa("./node_modules/core-js/modules/_an-object.js"),da=sa("./node_modules/core-js/modules/_global.js").Reflect;oa.exports=da&&da.ownKeys||function(ha){var ga=la.f(ua(ha)),fa=ca.f;return fa?ga.concat(fa(ha)):ga}},"./node_modules/core-js/modules/_property-desc.js":function(oa,aa){oa.exports=function(sa,la){return{enumerable:!(sa&1),configurable:!(sa&2),writable:!(sa&4),value:la}}},"./node_modules/core-js/modules/_redefine.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_global.js"),ca=sa("./node_modules/core-js/modules/_hide.js"),ua=sa("./node_modules/core-js/modules/_has.js"),da=sa("./node_modules/core-js/modules/_uid.js")("src"),pa=sa("./node_modules/core-js/modules/_function-to-string.js"),ha="toString",ga=(""+pa).split(ha);sa("./node_modules/core-js/modules/_core.js").inspectSource=function(fa){return pa.call(fa)},(oa.exports=function(fa,ma,va,xa){var ya=typeof va=="function";ya&&(ua(va,"name")||ca(va,"name",ma)),fa[ma]!==va&&(ya&&(ua(va,da)||ca(va,da,fa[ma]?""+fa[ma]:ga.join(String(ma)))),fa===la?fa[ma]=va:xa?fa[ma]?fa[ma]=va:ca(fa,ma,va):(delete fa[ma],ca(fa,ma,va)))})(Function.prototype,ha,function(){return typeof this=="function"&&this[da]||pa.call(this)})},"./node_modules/core-js/modules/_regexp-exec-abstract.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_classof.js"),ca=RegExp.prototype.exec;oa.exports=function(ua,da){var pa=ua.exec;if(typeof pa=="function"){var ha=pa.call(ua,da);if(typeof ha!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return ha}if(la(ua)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return ca.call(ua,da)}},"./node_modules/core-js/modules/_regexp-exec.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_flags.js"),ca=RegExp.prototype.exec,ua=String.prototype.replace,da=ca,pa="lastIndex",ha=function(){var ma=/a/,va=/b*/g;return ca.call(ma,"a"),ca.call(va,"a"),ma[pa]!==0||va[pa]!==0}(),ga=/()??/.exec("")[1]!==void 0,fa=ha||ga;fa&&(da=function(va){var xa=this,ya,Aa,Ca,Sa;return ga&&(Aa=new RegExp("^"+xa.source+"$(?!\\s)",la.call(xa))),ha&&(ya=xa[pa]),Ca=ca.call(xa,va),ha&&Ca&&(xa[pa]=xa.global?Ca.index+Ca[0].length:ya),ga&&Ca&&Ca.length>1&&ua.call(Ca[0],Aa,function(){for(Sa=1;Sa<arguments.length-2;Sa++)arguments[Sa]===void 0&&(Ca[Sa]=void 0)}),Ca}),oa.exports=da},"./node_modules/core-js/modules/_set-to-string-tag.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-dp.js").f,ca=sa("./node_modules/core-js/modules/_has.js"),ua=sa("./node_modules/core-js/modules/_wks.js")("toStringTag");oa.exports=function(da,pa,ha){da&&!ca(da=ha?da:da.prototype,ua)&&la(da,ua,{configurable:!0,value:pa})}},"./node_modules/core-js/modules/_shared-key.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_shared.js")("keys"),ca=sa("./node_modules/core-js/modules/_uid.js");oa.exports=function(ua){return la[ua]||(la[ua]=ca(ua))}},"./node_modules/core-js/modules/_shared.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_core.js"),ca=sa("./node_modules/core-js/modules/_global.js"),ua="__core-js_shared__",da=ca[ua]||(ca[ua]={});(oa.exports=function(pa,ha){return da[pa]||(da[pa]=ha!==void 0?ha:{})})("versions",[]).push({version:la.version,mode:sa("./node_modules/core-js/modules/_library.js")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/modules/_species-constructor.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_an-object.js"),ca=sa("./node_modules/core-js/modules/_a-function.js"),ua=sa("./node_modules/core-js/modules/_wks.js")("species");oa.exports=function(da,pa){var ha=la(da).constructor,ga;return ha===void 0||(ga=la(ha)[ua])==null?pa:ca(ga)}},"./node_modules/core-js/modules/_string-at.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_to-integer.js"),ca=sa("./node_modules/core-js/modules/_defined.js");oa.exports=function(ua){return function(da,pa){var ha=String(ca(da)),ga=la(pa),fa=ha.length,ma,va;return ga<0||ga>=fa?ua?"":void 0:(ma=ha.charCodeAt(ga),ma<55296||ma>56319||ga+1===fa||(va=ha.charCodeAt(ga+1))<56320||va>57343?ua?ha.charAt(ga):ma:ua?ha.slice(ga,ga+2):(ma-55296<<10)+(va-56320)+65536)}}},"./node_modules/core-js/modules/_string-context.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-regexp.js"),ca=sa("./node_modules/core-js/modules/_defined.js");oa.exports=function(ua,da,pa){if(la(da))throw TypeError("String#"+pa+" doesn't accept regex!");return String(ca(ua))}},"./node_modules/core-js/modules/_to-absolute-index.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_to-integer.js"),ca=Math.max,ua=Math.min;oa.exports=function(da,pa){return da=la(da),da<0?ca(da+pa,0):ua(da,pa)}},"./node_modules/core-js/modules/_to-integer.js":function(oa,aa){var sa=Math.ceil,la=Math.floor;oa.exports=function(ca){return isNaN(ca=+ca)?0:(ca>0?la:sa)(ca)}},"./node_modules/core-js/modules/_to-iobject.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_iobject.js"),ca=sa("./node_modules/core-js/modules/_defined.js");oa.exports=function(ua){return la(ca(ua))}},"./node_modules/core-js/modules/_to-length.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_to-integer.js"),ca=Math.min;oa.exports=function(ua){return ua>0?ca(la(ua),9007199254740991):0}},"./node_modules/core-js/modules/_to-object.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_defined.js");oa.exports=function(ca){return Object(la(ca))}},"./node_modules/core-js/modules/_to-primitive.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-object.js");oa.exports=function(ca,ua){if(!la(ca))return ca;var da,pa;if(ua&&typeof(da=ca.toString)=="function"&&!la(pa=da.call(ca))||typeof(da=ca.valueOf)=="function"&&!la(pa=da.call(ca))||!ua&&typeof(da=ca.toString)=="function"&&!la(pa=da.call(ca)))return pa;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/modules/_uid.js":function(oa,aa){var sa=0,la=Math.random();oa.exports=function(ca){return"Symbol(".concat(ca===void 0?"":ca,")_",(++sa+la).toString(36))}},"./node_modules/core-js/modules/_wks-define.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_global.js"),ca=sa("./node_modules/core-js/modules/_core.js"),ua=sa("./node_modules/core-js/modules/_library.js"),da=sa("./node_modules/core-js/modules/_wks-ext.js"),pa=sa("./node_modules/core-js/modules/_object-dp.js").f;oa.exports=function(ha){var ga=ca.Symbol||(ca.Symbol=ua?{}:la.Symbol||{});ha.charAt(0)!="_"&&!(ha in ga)&&pa(ga,ha,{value:da.f(ha)})}},"./node_modules/core-js/modules/_wks-ext.js":function(oa,aa,sa){aa.f=sa("./node_modules/core-js/modules/_wks.js")},"./node_modules/core-js/modules/_wks.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_shared.js")("wks"),ca=sa("./node_modules/core-js/modules/_uid.js"),ua=sa("./node_modules/core-js/modules/_global.js").Symbol,da=typeof ua=="function",pa=oa.exports=function(ha){return la[ha]||(la[ha]=da&&ua[ha]||(da?ua:ca)("Symbol."+ha))};pa.store=la},"./node_modules/core-js/modules/core.get-iterator-method.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_classof.js"),ca=sa("./node_modules/core-js/modules/_wks.js")("iterator"),ua=sa("./node_modules/core-js/modules/_iterators.js");oa.exports=sa("./node_modules/core-js/modules/_core.js").getIteratorMethod=function(da){if(da!=null)return da[ca]||da["@@iterator"]||ua[la(da)]}},"./node_modules/core-js/modules/es6.array.from.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_ctx.js"),ca=sa("./node_modules/core-js/modules/_export.js"),ua=sa("./node_modules/core-js/modules/_to-object.js"),da=sa("./node_modules/core-js/modules/_iter-call.js"),pa=sa("./node_modules/core-js/modules/_is-array-iter.js"),ha=sa("./node_modules/core-js/modules/_to-length.js"),ga=sa("./node_modules/core-js/modules/_create-property.js"),fa=sa("./node_modules/core-js/modules/core.get-iterator-method.js");ca(ca.S+ca.F*!sa("./node_modules/core-js/modules/_iter-detect.js")(function(ma){Array.from(ma)}),"Array",{from:function(va){var xa=ua(va),ya=typeof this=="function"?this:Array,Aa=arguments.length,Ca=Aa>1?arguments[1]:void 0,Sa=Ca!==void 0,wa=0,ba=fa(xa),Ea,$a,Ma,Ia;if(Sa&&(Ca=la(Ca,Aa>2?arguments[2]:void 0,2)),ba!=null&&!(ya==Array&&pa(ba)))for(Ia=ba.call(xa),$a=new ya;!(Ma=Ia.next()).done;wa++)ga($a,wa,Sa?da(Ia,Ca,[Ma.value,wa],!0):Ma.value);else for(Ea=ha(xa.length),$a=new ya(Ea);Ea>wa;wa++)ga($a,wa,Sa?Ca(xa[wa],wa):xa[wa]);return $a.length=wa,$a}})},"./node_modules/core-js/modules/es6.array.iterator.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_add-to-unscopables.js"),ca=sa("./node_modules/core-js/modules/_iter-step.js"),ua=sa("./node_modules/core-js/modules/_iterators.js"),da=sa("./node_modules/core-js/modules/_to-iobject.js");oa.exports=sa("./node_modules/core-js/modules/_iter-define.js")(Array,"Array",function(pa,ha){this._t=da(pa),this._i=0,this._k=ha},function(){var pa=this._t,ha=this._k,ga=this._i++;return!pa||ga>=pa.length?(this._t=void 0,ca(1)):ha=="keys"?ca(0,ga):ha=="values"?ca(0,pa[ga]):ca(0,[ga,pa[ga]])},"values"),ua.Arguments=ua.Array,la("keys"),la("values"),la("entries")},"./node_modules/core-js/modules/es6.function.name.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_object-dp.js").f,ca=Function.prototype,ua=/^\s*function ([^ (]*)/,da="name";da in ca||sa("./node_modules/core-js/modules/_descriptors.js")&&la(ca,da,{configurable:!0,get:function(){try{return(""+this).match(ua)[1]}catch{return""}}})},"./node_modules/core-js/modules/es6.number.is-finite.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_export.js"),ca=sa("./node_modules/core-js/modules/_global.js").isFinite;la(la.S,"Number",{isFinite:function(da){return typeof da=="number"&&ca(da)}})},"./node_modules/core-js/modules/es6.object.to-string.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_classof.js"),ca={};ca[sa("./node_modules/core-js/modules/_wks.js")("toStringTag")]="z",ca+""!="[object z]"&&sa("./node_modules/core-js/modules/_redefine.js")(Object.prototype,"toString",function(){return"[object "+la(this)+"]"},!0)},"./node_modules/core-js/modules/es6.regexp.exec.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_regexp-exec.js");sa("./node_modules/core-js/modules/_export.js")({target:"RegExp",proto:!0,forced:la!==/./.exec},{exec:la})},"./node_modules/core-js/modules/es6.regexp.split.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_is-regexp.js"),ca=sa("./node_modules/core-js/modules/_an-object.js"),ua=sa("./node_modules/core-js/modules/_species-constructor.js"),da=sa("./node_modules/core-js/modules/_advance-string-index.js"),pa=sa("./node_modules/core-js/modules/_to-length.js"),ha=sa("./node_modules/core-js/modules/_regexp-exec-abstract.js"),ga=sa("./node_modules/core-js/modules/_regexp-exec.js"),fa=sa("./node_modules/core-js/modules/_fails.js"),ma=Math.min,va=[].push,xa="split",ya="length",Aa="lastIndex",Ca=4294967295,Sa=!fa(function(){});sa("./node_modules/core-js/modules/_fix-re-wks.js")("split",2,function(wa,ba,Ea,$a){var Ma;return"abbc"[xa](/(b)*/)[1]=="c"||"test"[xa](/(?:)/,-1)[ya]!=4||"ab"[xa](/(?:ab)*/)[ya]!=2||"."[xa](/(.?)(.?)/)[ya]!=4||"."[xa](/()()/)[ya]>1||""[xa](/.?/)[ya]?Ma=function(Ia,Oa){var Da=String(this);if(Ia===void 0&&Oa===0)return[];if(!la(Ia))return Ea.call(Da,Ia,Oa);for(var Ta=[],_a=(Ia.ignoreCase?"i":"")+(Ia.multiline?"m":"")+(Ia.unicode?"u":"")+(Ia.sticky?"y":""),La=0,Na=Oa===void 0?Ca:Oa>>>0,za=new RegExp(Ia.source,_a+"g"),Fa,Ha,Va;(Fa=ga.call(za,Da))&&(Ha=za[Aa],!(Ha>La&&(Ta.push(Da.slice(La,Fa.index)),Fa[ya]>1&&Fa.index<Da[ya]&&va.apply(Ta,Fa.slice(1)),Va=Fa[0][ya],La=Ha,Ta[ya]>=Na)));)za[Aa]===Fa.index&&za[Aa]++;return La===Da[ya]?(Va||!za.test(""))&&Ta.push(""):Ta.push(Da.slice(La)),Ta[ya]>Na?Ta.slice(0,Na):Ta}:"0"[xa](void 0,0)[ya]?Ma=function(Ia,Oa){return Ia===void 0&&Oa===0?[]:Ea.call(this,Ia,Oa)}:Ma=Ea,[function(Oa,Da){var Ta=wa(this),_a=Oa?.[ba];return _a!==void 0?_a.call(Oa,Ta,Da):Ma.call(String(Ta),Oa,Da)},function(Ia,Oa){var Da=$a(Ma,Ia,this,Oa,Ma!==Ea);if(Da.done)return Da.value;var Ta=ca(Ia),_a=String(this),La=ua(Ta,RegExp),Na=Ta.unicode,za=(Ta.ignoreCase?"i":"")+(Ta.multiline?"m":"")+(Ta.unicode?"u":"")+(Sa?"y":"g"),Fa=new La(Sa?Ta:"^(?:"+Ta.source+")",za),Ha=Oa===void 0?Ca:Oa>>>0;if(Ha===0)return[];if(_a.length===0)return ha(Fa,_a)===null?[_a]:[];for(var Va=0,Ua=0,Qa=[];Ua<_a.length;){Fa.lastIndex=Sa?Ua:0;var Wa=ha(Fa,Sa?_a:_a.slice(Ua)),Za;if(Wa===null||(Za=ma(pa(Fa.lastIndex+(Sa?0:Ua)),_a.length))===Va)Ua=da(_a,Ua,Na);else{if(Qa.push(_a.slice(Va,Ua)),Qa.length===Ha)return Qa;for(var Xa=1;Xa<=Wa.length-1;Xa++)if(Qa.push(Wa[Xa]),Qa.length===Ha)return Qa;Ua=Va=Za}}return Qa.push(_a.slice(Va)),Qa}]})},"./node_modules/core-js/modules/es6.string.includes.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_export.js"),ca=sa("./node_modules/core-js/modules/_string-context.js"),ua="includes";la(la.P+la.F*sa("./node_modules/core-js/modules/_fails-is-regexp.js")(ua),"String",{includes:function(pa){return!!~ca(this,pa,ua).indexOf(pa,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es6.symbol.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_global.js"),ca=sa("./node_modules/core-js/modules/_has.js"),ua=sa("./node_modules/core-js/modules/_descriptors.js"),da=sa("./node_modules/core-js/modules/_export.js"),pa=sa("./node_modules/core-js/modules/_redefine.js"),ha=sa("./node_modules/core-js/modules/_meta.js").KEY,ga=sa("./node_modules/core-js/modules/_fails.js"),fa=sa("./node_modules/core-js/modules/_shared.js"),ma=sa("./node_modules/core-js/modules/_set-to-string-tag.js"),va=sa("./node_modules/core-js/modules/_uid.js"),xa=sa("./node_modules/core-js/modules/_wks.js"),ya=sa("./node_modules/core-js/modules/_wks-ext.js"),Aa=sa("./node_modules/core-js/modules/_wks-define.js"),Ca=sa("./node_modules/core-js/modules/_enum-keys.js"),Sa=sa("./node_modules/core-js/modules/_is-array.js"),wa=sa("./node_modules/core-js/modules/_an-object.js"),ba=sa("./node_modules/core-js/modules/_is-object.js"),Ea=sa("./node_modules/core-js/modules/_to-object.js"),$a=sa("./node_modules/core-js/modules/_to-iobject.js"),Ma=sa("./node_modules/core-js/modules/_to-primitive.js"),Ia=sa("./node_modules/core-js/modules/_property-desc.js"),Oa=sa("./node_modules/core-js/modules/_object-create.js"),Da=sa("./node_modules/core-js/modules/_object-gopn-ext.js"),Ta=sa("./node_modules/core-js/modules/_object-gopd.js"),_a=sa("./node_modules/core-js/modules/_object-gops.js"),La=sa("./node_modules/core-js/modules/_object-dp.js"),Na=sa("./node_modules/core-js/modules/_object-keys.js"),za=Ta.f,Fa=La.f,Ha=Da.f,Va=la.Symbol,Ua=la.JSON,Qa=Ua&&Ua.stringify,Wa="prototype",Za=xa("_hidden"),Xa=xa("toPrimitive"),tl={}.propertyIsEnumerable,il=fa("symbol-registry"),Ja=fa("symbols"),nl=fa("op-symbols"),Ya=Object[Wa],rl=typeof Va=="function"&&!!_a.f,sl=la.QObject,dl=!sl||!sl[Wa]||!sl[Wa].findChild,pl=ua&&ga(function(){return Oa(Fa({},"a",{get:function(){return Fa(this,"a",{value:7}).a}})).a!=7})?function(Sl,$l,Bl){var Ul=za(Ya,$l);Ul&&delete Ya[$l],Fa(Sl,$l,Bl),Ul&&Sl!==Ya&&Fa(Ya,$l,Ul)}:Fa,ml=function(Sl){var $l=Ja[Sl]=Oa(Va[Wa]);return $l._k=Sl,$l},Rl=rl&&typeof Va.iterator=="symbol"?function(Sl){return typeof Sl=="symbol"}:function(Sl){return Sl instanceof Va},Tl=function($l,Bl,Ul){return $l===Ya&&Tl(nl,Bl,Ul),wa($l),Bl=Ma(Bl,!0),wa(Ul),ca(Ja,Bl)?(Ul.enumerable?(ca($l,Za)&&$l[Za][Bl]&&($l[Za][Bl]=!1),Ul=Oa(Ul,{enumerable:Ia(0,!1)})):(ca($l,Za)||Fa($l,Za,Ia(1,{})),$l[Za][Bl]=!0),pl($l,Bl,Ul)):Fa($l,Bl,Ul)},Il=function($l,Bl){wa($l);for(var Ul=Ca(Bl=$a(Bl)),ec=0,Kl=Ul.length,rc;Kl>ec;)Tl($l,rc=Ul[ec++],Bl[rc]);return $l},Ol=function($l,Bl){return Bl===void 0?Oa($l):Il(Oa($l),Bl)},Fl=function($l){var Bl=tl.call(this,$l=Ma($l,!0));return this===Ya&&ca(Ja,$l)&&!ca(nl,$l)?!1:Bl||!ca(this,$l)||!ca(Ja,$l)||ca(this,Za)&&this[Za][$l]?Bl:!0},Vl=function($l,Bl){if($l=$a($l),Bl=Ma(Bl,!0),!($l===Ya&&ca(Ja,Bl)&&!ca(nl,Bl))){var Ul=za($l,Bl);return Ul&&ca(Ja,Bl)&&!(ca($l,Za)&&$l[Za][Bl])&&(Ul.enumerable=!0),Ul}},Wl=function($l){for(var Bl=Ha($a($l)),Ul=[],ec=0,Kl;Bl.length>ec;)!ca(Ja,Kl=Bl[ec++])&&Kl!=Za&&Kl!=ha&&Ul.push(Kl);return Ul},vl=function($l){for(var Bl=$l===Ya,Ul=Ha(Bl?nl:$a($l)),ec=[],Kl=0,rc;Ul.length>Kl;)ca(Ja,rc=Ul[Kl++])&&(!Bl||ca(Ya,rc))&&ec.push(Ja[rc]);return ec};rl||(Va=function(){if(this instanceof Va)throw TypeError("Symbol is not a constructor!");var $l=va(arguments.length>0?arguments[0]:void 0),Bl=function(Ul){this===Ya&&Bl.call(nl,Ul),ca(this,Za)&&ca(this[Za],$l)&&(this[Za][$l]=!1),pl(this,$l,Ia(1,Ul))};return ua&&dl&&pl(Ya,$l,{configurable:!0,set:Bl}),ml($l)},pa(Va[Wa],"toString",function(){return this._k}),Ta.f=Vl,La.f=Tl,sa("./node_modules/core-js/modules/_object-gopn.js").f=Da.f=Wl,sa("./node_modules/core-js/modules/_object-pie.js").f=Fl,_a.f=vl,ua&&!sa("./node_modules/core-js/modules/_library.js")&&pa(Ya,"propertyIsEnumerable",Fl,!0),ya.f=function(Sl){return ml(xa(Sl))}),da(da.G+da.W+da.F*!rl,{Symbol:Va});for(var kl="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),zl=0;kl.length>zl;)xa(kl[zl++]);for(var Al=Na(xa.store),gl=0;Al.length>gl;)Aa(Al[gl++]);da(da.S+da.F*!rl,"Symbol",{for:function(Sl){return ca(il,Sl+="")?il[Sl]:il[Sl]=Va(Sl)},keyFor:function($l){if(!Rl($l))throw TypeError($l+" is not a symbol!");for(var Bl in il)if(il[Bl]===$l)return Bl},useSetter:function(){dl=!0},useSimple:function(){dl=!1}}),da(da.S+da.F*!rl,"Object",{create:Ol,defineProperty:Tl,defineProperties:Il,getOwnPropertyDescriptor:Vl,getOwnPropertyNames:Wl,getOwnPropertySymbols:vl});var xl=ga(function(){_a.f(1)});da(da.S+da.F*xl,"Object",{getOwnPropertySymbols:function($l){return _a.f(Ea($l))}}),Ua&&da(da.S+da.F*(!rl||ga(function(){var Sl=Va();return Qa([Sl])!="[null]"||Qa({a:Sl})!="{}"||Qa(Object(Sl))!="{}"})),"JSON",{stringify:function($l){for(var Bl=[$l],Ul=1,ec,Kl;arguments.length>Ul;)Bl.push(arguments[Ul++]);if(Kl=ec=Bl[1],!(!ba(ec)&&$l===void 0||Rl($l)))return Sa(ec)||(ec=function(rc,wl){if(typeof Kl=="function"&&(wl=Kl.call(this,rc,wl)),!Rl(wl))return wl}),Bl[1]=ec,Qa.apply(Ua,Bl)}}),Va[Wa][Xa]||sa("./node_modules/core-js/modules/_hide.js")(Va[Wa],Xa,Va[Wa].valueOf),ma(Va,"Symbol"),ma(Math,"Math",!0),ma(la.JSON,"JSON",!0)},"./node_modules/core-js/modules/es7.array.includes.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_export.js"),ca=sa("./node_modules/core-js/modules/_array-includes.js")(!0);la(la.P,"Array",{includes:function(da){return ca(this,da,arguments.length>1?arguments[1]:void 0)}}),sa("./node_modules/core-js/modules/_add-to-unscopables.js")("includes")},"./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js":function(oa,aa,sa){var la=sa("./node_modules/core-js/modules/_export.js"),ca=sa("./node_modules/core-js/modules/_own-keys.js"),ua=sa("./node_modules/core-js/modules/_to-iobject.js"),da=sa("./node_modules/core-js/modules/_object-gopd.js"),pa=sa("./node_modules/core-js/modules/_create-property.js");la(la.S,"Object",{getOwnPropertyDescriptors:function(ga){for(var fa=ua(ga),ma=da.f,va=ca(fa),xa={},ya=0,Aa,Ca;va.length>ya;)Ca=ma(fa,Aa=va[ya++]),Ca!==void 0&&pa(xa,Aa,Ca);return xa}})},"./node_modules/core-js/modules/es7.symbol.async-iterator.js":function(oa,aa,sa){sa("./node_modules/core-js/modules/_wks-define.js")("asyncIterator")},"./node_modules/core-js/modules/web.dom.iterable.js":function(oa,aa,sa){for(var la=sa("./node_modules/core-js/modules/es6.array.iterator.js"),ca=sa("./node_modules/core-js/modules/_object-keys.js"),ua=sa("./node_modules/core-js/modules/_redefine.js"),da=sa("./node_modules/core-js/modules/_global.js"),pa=sa("./node_modules/core-js/modules/_hide.js"),ha=sa("./node_modules/core-js/modules/_iterators.js"),ga=sa("./node_modules/core-js/modules/_wks.js"),fa=ga("iterator"),ma=ga("toStringTag"),va=ha.Array,xa={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},ya=ca(xa),Aa=0;Aa<ya.length;Aa++){var Ca=ya[Aa],Sa=xa[Ca],wa=da[Ca],ba=wa&&wa.prototype,Ea;if(ba&&(ba[fa]||pa(ba,fa,va),ba[ma]||pa(ba,ma,Ca),ha[Ca]=va,Sa))for(Ea in la)ba[Ea]||ua(ba,Ea,la[Ea],!0)}},"./node_modules/crypt/crypt.js":function(oa,aa){(function(){var sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",la={rotl:function(ca,ua){return ca<<ua|ca>>>32-ua},rotr:function(ca,ua){return ca<<32-ua|ca>>>ua},endian:function(ca){if(ca.constructor==Number)return la.rotl(ca,8)&16711935|la.rotl(ca,24)&4278255360;for(var ua=0;ua<ca.length;ua++)ca[ua]=la.endian(ca[ua]);return ca},randomBytes:function(ca){for(var ua=[];ca>0;ca--)ua.push(Math.floor(Math.random()*256));return ua},bytesToWords:function(ca){for(var ua=[],da=0,pa=0;da<ca.length;da++,pa+=8)ua[pa>>>5]|=ca[da]<<24-pa%32;return ua},wordsToBytes:function(ca){for(var ua=[],da=0;da<ca.length*32;da+=8)ua.push(ca[da>>>5]>>>24-da%32&255);return ua},bytesToHex:function(ca){for(var ua=[],da=0;da<ca.length;da++)ua.push((ca[da]>>>4).toString(16)),ua.push((ca[da]&15).toString(16));return ua.join("")},hexToBytes:function(ca){for(var ua=[],da=0;da<ca.length;da+=2)ua.push(parseInt(ca.substr(da,2),16));return ua},bytesToBase64:function(ca){for(var ua=[],da=0;da<ca.length;da+=3)for(var pa=ca[da]<<16|ca[da+1]<<8|ca[da+2],ha=0;ha<4;ha++)da*8+ha*6<=ca.length*8?ua.push(sa.charAt(pa>>>6*(3-ha)&63)):ua.push("=");return ua.join("")},base64ToBytes:function(ca){ca=ca.replace(/[^A-Z0-9+\/]/ig,"");for(var ua=[],da=0,pa=0;da<ca.length;pa=++da%4)pa!=0&&ua.push((sa.indexOf(ca.charAt(da-1))&Math.pow(2,-2*pa+8)-1)<<pa*2|sa.indexOf(ca.charAt(da))>>>6-pa*2);return ua}};oa.exports=la})()},"./node_modules/is-buffer/index.js":function(oa,aa){/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */oa.exports=function(ca){return ca!=null&&(sa(ca)||la(ca)||!!ca._isBuffer)};function sa(ca){return!!ca.constructor&&typeof ca.constructor.isBuffer=="function"&&ca.constructor.isBuffer(ca)}function la(ca){return typeof ca.readFloatLE=="function"&&typeof ca.slice=="function"&&sa(ca.slice(0,0))}},"./node_modules/md5/md5.js":function(oa,aa,sa){(function(){var la=sa("./node_modules/crypt/crypt.js"),ca=sa("./node_modules/charenc/charenc.js").utf8,ua=sa("./node_modules/is-buffer/index.js"),da=sa("./node_modules/charenc/charenc.js").bin,pa=function(ha,ga){ha.constructor==String?ga&&ga.encoding==="binary"?ha=da.stringToBytes(ha):ha=ca.stringToBytes(ha):ua(ha)?ha=Array.prototype.slice.call(ha,0):!Array.isArray(ha)&&ha.constructor!==Uint8Array&&(ha=ha.toString());for(var fa=la.bytesToWords(ha),ma=ha.length*8,va=1732584193,xa=-271733879,ya=-1732584194,Aa=271733878,Ca=0;Ca<fa.length;Ca++)fa[Ca]=(fa[Ca]<<8|fa[Ca]>>>24)&16711935|(fa[Ca]<<24|fa[Ca]>>>8)&4278255360;fa[ma>>>5]|=128<<ma%32,fa[(ma+64>>>9<<4)+14]=ma;for(var Sa=pa._ff,wa=pa._gg,ba=pa._hh,Ea=pa._ii,Ca=0;Ca<fa.length;Ca+=16){var $a=va,Ma=xa,Ia=ya,Oa=Aa;va=Sa(va,xa,ya,Aa,fa[Ca+0],7,-680876936),Aa=Sa(Aa,va,xa,ya,fa[Ca+1],12,-389564586),ya=Sa(ya,Aa,va,xa,fa[Ca+2],17,606105819),xa=Sa(xa,ya,Aa,va,fa[Ca+3],22,-1044525330),va=Sa(va,xa,ya,Aa,fa[Ca+4],7,-176418897),Aa=Sa(Aa,va,xa,ya,fa[Ca+5],12,1200080426),ya=Sa(ya,Aa,va,xa,fa[Ca+6],17,-1473231341),xa=Sa(xa,ya,Aa,va,fa[Ca+7],22,-45705983),va=Sa(va,xa,ya,Aa,fa[Ca+8],7,1770035416),Aa=Sa(Aa,va,xa,ya,fa[Ca+9],12,-1958414417),ya=Sa(ya,Aa,va,xa,fa[Ca+10],17,-42063),xa=Sa(xa,ya,Aa,va,fa[Ca+11],22,-1990404162),va=Sa(va,xa,ya,Aa,fa[Ca+12],7,1804603682),Aa=Sa(Aa,va,xa,ya,fa[Ca+13],12,-40341101),ya=Sa(ya,Aa,va,xa,fa[Ca+14],17,-1502002290),xa=Sa(xa,ya,Aa,va,fa[Ca+15],22,1236535329),va=wa(va,xa,ya,Aa,fa[Ca+1],5,-165796510),Aa=wa(Aa,va,xa,ya,fa[Ca+6],9,-1069501632),ya=wa(ya,Aa,va,xa,fa[Ca+11],14,643717713),xa=wa(xa,ya,Aa,va,fa[Ca+0],20,-373897302),va=wa(va,xa,ya,Aa,fa[Ca+5],5,-701558691),Aa=wa(Aa,va,xa,ya,fa[Ca+10],9,38016083),ya=wa(ya,Aa,va,xa,fa[Ca+15],14,-660478335),xa=wa(xa,ya,Aa,va,fa[Ca+4],20,-405537848),va=wa(va,xa,ya,Aa,fa[Ca+9],5,568446438),Aa=wa(Aa,va,xa,ya,fa[Ca+14],9,-1019803690),ya=wa(ya,Aa,va,xa,fa[Ca+3],14,-187363961),xa=wa(xa,ya,Aa,va,fa[Ca+8],20,1163531501),va=wa(va,xa,ya,Aa,fa[Ca+13],5,-1444681467),Aa=wa(Aa,va,xa,ya,fa[Ca+2],9,-51403784),ya=wa(ya,Aa,va,xa,fa[Ca+7],14,1735328473),xa=wa(xa,ya,Aa,va,fa[Ca+12],20,-1926607734),va=ba(va,xa,ya,Aa,fa[Ca+5],4,-378558),Aa=ba(Aa,va,xa,ya,fa[Ca+8],11,-2022574463),ya=ba(ya,Aa,va,xa,fa[Ca+11],16,1839030562),xa=ba(xa,ya,Aa,va,fa[Ca+14],23,-35309556),va=ba(va,xa,ya,Aa,fa[Ca+1],4,-1530992060),Aa=ba(Aa,va,xa,ya,fa[Ca+4],11,1272893353),ya=ba(ya,Aa,va,xa,fa[Ca+7],16,-155497632),xa=ba(xa,ya,Aa,va,fa[Ca+10],23,-1094730640),va=ba(va,xa,ya,Aa,fa[Ca+13],4,681279174),Aa=ba(Aa,va,xa,ya,fa[Ca+0],11,-358537222),ya=ba(ya,Aa,va,xa,fa[Ca+3],16,-722521979),xa=ba(xa,ya,Aa,va,fa[Ca+6],23,76029189),va=ba(va,xa,ya,Aa,fa[Ca+9],4,-640364487),Aa=ba(Aa,va,xa,ya,fa[Ca+12],11,-421815835),ya=ba(ya,Aa,va,xa,fa[Ca+15],16,530742520),xa=ba(xa,ya,Aa,va,fa[Ca+2],23,-995338651),va=Ea(va,xa,ya,Aa,fa[Ca+0],6,-198630844),Aa=Ea(Aa,va,xa,ya,fa[Ca+7],10,1126891415),ya=Ea(ya,Aa,va,xa,fa[Ca+14],15,-1416354905),xa=Ea(xa,ya,Aa,va,fa[Ca+5],21,-57434055),va=Ea(va,xa,ya,Aa,fa[Ca+12],6,1700485571),Aa=Ea(Aa,va,xa,ya,fa[Ca+3],10,-1894986606),ya=Ea(ya,Aa,va,xa,fa[Ca+10],15,-1051523),xa=Ea(xa,ya,Aa,va,fa[Ca+1],21,-2054922799),va=Ea(va,xa,ya,Aa,fa[Ca+8],6,1873313359),Aa=Ea(Aa,va,xa,ya,fa[Ca+15],10,-30611744),ya=Ea(ya,Aa,va,xa,fa[Ca+6],15,-1560198380),xa=Ea(xa,ya,Aa,va,fa[Ca+13],21,1309151649),va=Ea(va,xa,ya,Aa,fa[Ca+4],6,-145523070),Aa=Ea(Aa,va,xa,ya,fa[Ca+11],10,-1120210379),ya=Ea(ya,Aa,va,xa,fa[Ca+2],15,718787259),xa=Ea(xa,ya,Aa,va,fa[Ca+9],21,-343485551),va=va+$a>>>0,xa=xa+Ma>>>0,ya=ya+Ia>>>0,Aa=Aa+Oa>>>0}return la.endian([va,xa,ya,Aa])};pa._ff=function(ha,ga,fa,ma,va,xa,ya){var Aa=ha+(ga&fa|~ga&ma)+(va>>>0)+ya;return(Aa<<xa|Aa>>>32-xa)+ga},pa._gg=function(ha,ga,fa,ma,va,xa,ya){var Aa=ha+(ga&ma|fa&~ma)+(va>>>0)+ya;return(Aa<<xa|Aa>>>32-xa)+ga},pa._hh=function(ha,ga,fa,ma,va,xa,ya){var Aa=ha+(ga^fa^ma)+(va>>>0)+ya;return(Aa<<xa|Aa>>>32-xa)+ga},pa._ii=function(ha,ga,fa,ma,va,xa,ya){var Aa=ha+(fa^(ga|~ma))+(va>>>0)+ya;return(Aa<<xa|Aa>>>32-xa)+ga},pa._blocksize=16,pa._digestsize=16,oa.exports=function(ha,ga){if(ha==null)throw new Error("Illegal argument "+ha);var fa=la.wordsToBytes(pa(ha,ga));return ga&&ga.asBytes?fa:ga&&ga.asString?da.bytesToString(fa):la.bytesToHex(fa)}})()},"./node_modules/regenerator-runtime/runtime.js":function(oa,aa,sa){var la=function(ca){var ua=Object.prototype,da=ua.hasOwnProperty,pa,ha=typeof Symbol=="function"?Symbol:{},ga=ha.iterator||"@@iterator",fa=ha.asyncIterator||"@@asyncIterator",ma=ha.toStringTag||"@@toStringTag";function va(Wa,Za,Xa){return Object.defineProperty(Wa,Za,{value:Xa,enumerable:!0,configurable:!0,writable:!0}),Wa[Za]}try{va({},"")}catch{va=function(Za,Xa,tl){return Za[Xa]=tl}}function xa(Wa,Za,Xa,tl){var il=Za&&Za.prototype instanceof Ea?Za:Ea,Ja=Object.create(il.prototype),nl=new Va(tl||[]);return Ja._invoke=Na(Wa,Xa,nl),Ja}ca.wrap=xa;function ya(Wa,Za,Xa){try{return{type:"normal",arg:Wa.call(Za,Xa)}}catch(tl){return{type:"throw",arg:tl}}}var Aa="suspendedStart",Ca="suspendedYield",Sa="executing",wa="completed",ba={};function Ea(){}function $a(){}function Ma(){}var Ia={};Ia[ga]=function(){return this};var Oa=Object.getPrototypeOf,Da=Oa&&Oa(Oa(Ua([])));Da&&Da!==ua&&da.call(Da,ga)&&(Ia=Da);var Ta=Ma.prototype=Ea.prototype=Object.create(Ia);$a.prototype=Ta.constructor=Ma,Ma.constructor=$a,$a.displayName=va(Ma,ma,"GeneratorFunction");function _a(Wa){["next","throw","return"].forEach(function(Za){va(Wa,Za,function(Xa){return this._invoke(Za,Xa)})})}ca.isGeneratorFunction=function(Wa){var Za=typeof Wa=="function"&&Wa.constructor;return Za?Za===$a||(Za.displayName||Za.name)==="GeneratorFunction":!1},ca.mark=function(Wa){return Object.setPrototypeOf?Object.setPrototypeOf(Wa,Ma):(Wa.__proto__=Ma,va(Wa,ma,"GeneratorFunction")),Wa.prototype=Object.create(Ta),Wa},ca.awrap=function(Wa){return{__await:Wa}};function La(Wa,Za){function Xa(Ja,nl,Ya,rl){var sl=ya(Wa[Ja],Wa,nl);if(sl.type==="throw")rl(sl.arg);else{var dl=sl.arg,pl=dl.value;return pl&&typeof pl=="object"&&da.call(pl,"__await")?Za.resolve(pl.__await).then(function(ml){Xa("next",ml,Ya,rl)},function(ml){Xa("throw",ml,Ya,rl)}):Za.resolve(pl).then(function(ml){dl.value=ml,Ya(dl)},function(ml){return Xa("throw",ml,Ya,rl)})}}var tl;function il(Ja,nl){function Ya(){return new Za(function(rl,sl){Xa(Ja,nl,rl,sl)})}return tl=tl?tl.then(Ya,Ya):Ya()}this._invoke=il}_a(La.prototype),La.prototype[fa]=function(){return this},ca.AsyncIterator=La,ca.async=function(Wa,Za,Xa,tl,il){il===void 0&&(il=Promise);var Ja=new La(xa(Wa,Za,Xa,tl),il);return ca.isGeneratorFunction(Za)?Ja:Ja.next().then(function(nl){return nl.done?nl.value:Ja.next()})};function Na(Wa,Za,Xa){var tl=Aa;return function(Ja,nl){if(tl===Sa)throw new Error("Generator is already running");if(tl===wa){if(Ja==="throw")throw nl;return Qa()}for(Xa.method=Ja,Xa.arg=nl;;){var Ya=Xa.delegate;if(Ya){var rl=za(Ya,Xa);if(rl){if(rl===ba)continue;return rl}}if(Xa.method==="next")Xa.sent=Xa._sent=Xa.arg;else if(Xa.method==="throw"){if(tl===Aa)throw tl=wa,Xa.arg;Xa.dispatchException(Xa.arg)}else Xa.method==="return"&&Xa.abrupt("return",Xa.arg);tl=Sa;var sl=ya(Wa,Za,Xa);if(sl.type==="normal"){if(tl=Xa.done?wa:Ca,sl.arg===ba)continue;return{value:sl.arg,done:Xa.done}}else sl.type==="throw"&&(tl=wa,Xa.method="throw",Xa.arg=sl.arg)}}}function za(Wa,Za){var Xa=Wa.iterator[Za.method];if(Xa===pa){if(Za.delegate=null,Za.method==="throw"){if(Wa.iterator.return&&(Za.method="return",Za.arg=pa,za(Wa,Za),Za.method==="throw"))return ba;Za.method="throw",Za.arg=new TypeError("The iterator does not provide a 'throw' method")}return ba}var tl=ya(Xa,Wa.iterator,Za.arg);if(tl.type==="throw")return Za.method="throw",Za.arg=tl.arg,Za.delegate=null,ba;var il=tl.arg;if(!il)return Za.method="throw",Za.arg=new TypeError("iterator result is not an object"),Za.delegate=null,ba;if(il.done)Za[Wa.resultName]=il.value,Za.next=Wa.nextLoc,Za.method!=="return"&&(Za.method="next",Za.arg=pa);else return il;return Za.delegate=null,ba}_a(Ta),va(Ta,ma,"Generator"),Ta[ga]=function(){return this},Ta.toString=function(){return"[object Generator]"};function Fa(Wa){var Za={tryLoc:Wa[0]};1 in Wa&&(Za.catchLoc=Wa[1]),2 in Wa&&(Za.finallyLoc=Wa[2],Za.afterLoc=Wa[3]),this.tryEntries.push(Za)}function Ha(Wa){var Za=Wa.completion||{};Za.type="normal",delete Za.arg,Wa.completion=Za}function Va(Wa){this.tryEntries=[{tryLoc:"root"}],Wa.forEach(Fa,this),this.reset(!0)}ca.keys=function(Wa){var Za=[];for(var Xa in Wa)Za.push(Xa);return Za.reverse(),function tl(){for(;Za.length;){var il=Za.pop();if(il in Wa)return tl.value=il,tl.done=!1,tl}return tl.done=!0,tl}};function Ua(Wa){if(Wa){var Za=Wa[ga];if(Za)return Za.call(Wa);if(typeof Wa.next=="function")return Wa;if(!isNaN(Wa.length)){var Xa=-1,tl=function il(){for(;++Xa<Wa.length;)if(da.call(Wa,Xa))return il.value=Wa[Xa],il.done=!1,il;return il.value=pa,il.done=!0,il};return tl.next=tl}}return{next:Qa}}ca.values=Ua;function Qa(){return{value:pa,done:!0}}return Va.prototype={constructor:Va,reset:function(Wa){if(this.prev=0,this.next=0,this.sent=this._sent=pa,this.done=!1,this.delegate=null,this.method="next",this.arg=pa,this.tryEntries.forEach(Ha),!Wa)for(var Za in this)Za.charAt(0)==="t"&&da.call(this,Za)&&!isNaN(+Za.slice(1))&&(this[Za]=pa)},stop:function(){this.done=!0;var Wa=this.tryEntries[0],Za=Wa.completion;if(Za.type==="throw")throw Za.arg;return this.rval},dispatchException:function(Wa){if(this.done)throw Wa;var Za=this;function Xa(rl,sl){return Ja.type="throw",Ja.arg=Wa,Za.next=rl,sl&&(Za.method="next",Za.arg=pa),!!sl}for(var tl=this.tryEntries.length-1;tl>=0;--tl){var il=this.tryEntries[tl],Ja=il.completion;if(il.tryLoc==="root")return Xa("end");if(il.tryLoc<=this.prev){var nl=da.call(il,"catchLoc"),Ya=da.call(il,"finallyLoc");if(nl&&Ya){if(this.prev<il.catchLoc)return Xa(il.catchLoc,!0);if(this.prev<il.finallyLoc)return Xa(il.finallyLoc)}else if(nl){if(this.prev<il.catchLoc)return Xa(il.catchLoc,!0)}else if(Ya){if(this.prev<il.finallyLoc)return Xa(il.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Wa,Za){for(var Xa=this.tryEntries.length-1;Xa>=0;--Xa){var tl=this.tryEntries[Xa];if(tl.tryLoc<=this.prev&&da.call(tl,"finallyLoc")&&this.prev<tl.finallyLoc){var il=tl;break}}il&&(Wa==="break"||Wa==="continue")&&il.tryLoc<=Za&&Za<=il.finallyLoc&&(il=null);var Ja=il?il.completion:{};return Ja.type=Wa,Ja.arg=Za,il?(this.method="next",this.next=il.finallyLoc,ba):this.complete(Ja)},complete:function(Wa,Za){if(Wa.type==="throw")throw Wa.arg;return Wa.type==="break"||Wa.type==="continue"?this.next=Wa.arg:Wa.type==="return"?(this.rval=this.arg=Wa.arg,this.method="return",this.next="end"):Wa.type==="normal"&&Za&&(this.next=Za),ba},finish:function(Wa){for(var Za=this.tryEntries.length-1;Za>=0;--Za){var Xa=this.tryEntries[Za];if(Xa.finallyLoc===Wa)return this.complete(Xa.completion,Xa.afterLoc),Ha(Xa),ba}},catch:function(Wa){for(var Za=this.tryEntries.length-1;Za>=0;--Za){var Xa=this.tryEntries[Za];if(Xa.tryLoc===Wa){var tl=Xa.completion;if(tl.type==="throw"){var il=tl.arg;Ha(Xa)}return il}}throw new Error("illegal catch attempt")},delegateYield:function(Wa,Za,Xa){return this.delegate={iterator:Ua(Wa),resultName:Za,nextLoc:Xa},this.method==="next"&&(this.arg=pa),ba}},ca}(oa.exports);try{regeneratorRuntime=la}catch{Function("r","regeneratorRuntime = r")(la)}},"./src/api.js":function(oa,aa,sa){sa.r(aa),sa.d(aa,"setup",function(){return Sa}),sa.d(aa,"setupCache",function(){return Ca}),sa("./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js"),sa("./node_modules/core-js/modules/es6.symbol.js"),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js"),sa("./node_modules/regenerator-runtime/runtime.js");var la=sa("axios"),ca=sa.n(la),ua=sa("./src/request.js"),da=sa("./src/cache.js");sa.d(aa,"serializeQuery",function(){return da.serializeQuery});var pa=sa("./src/config.js"),ha=sa("./src/utilities.js");function ga(wa,ba){if(wa==null)return{};var Ea=fa(wa,ba),$a,Ma;if(Object.getOwnPropertySymbols){var Ia=Object.getOwnPropertySymbols(wa);for(Ma=0;Ma<Ia.length;Ma++)$a=Ia[Ma],!(ba.indexOf($a)>=0)&&Object.prototype.propertyIsEnumerable.call(wa,$a)&&(Ea[$a]=wa[$a])}return Ea}function fa(wa,ba){if(wa==null)return{};var Ea={},$a=Object.keys(wa),Ma,Ia;for(Ia=0;Ia<$a.length;Ia++)Ma=$a[Ia],!(ba.indexOf(Ma)>=0)&&(Ea[Ma]=wa[Ma]);return Ea}function ma(wa,ba){var Ea=Object.keys(wa);if(Object.getOwnPropertySymbols){var $a=Object.getOwnPropertySymbols(wa);ba&&($a=$a.filter(function(Ma){return Object.getOwnPropertyDescriptor(wa,Ma).enumerable})),Ea.push.apply(Ea,$a)}return Ea}function va(wa){for(var ba=1;ba<arguments.length;ba++){var Ea=arguments[ba]!=null?arguments[ba]:{};ba%2?ma(Object(Ea),!0).forEach(function($a){xa(wa,$a,Ea[$a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(wa,Object.getOwnPropertyDescriptors(Ea)):ma(Object(Ea)).forEach(function($a){Object.defineProperty(wa,$a,Object.getOwnPropertyDescriptor(Ea,$a))})}return wa}function xa(wa,ba,Ea){return ba in wa?Object.defineProperty(wa,ba,{value:Ea,enumerable:!0,configurable:!0,writable:!0}):wa[ba]=Ea,wa}function ya(wa,ba,Ea,$a,Ma,Ia,Oa){try{var Da=wa[Ia](Oa),Ta=Da.value}catch(_a){Ea(_a);return}Da.done?ba(Ta):Promise.resolve(Ta).then($a,Ma)}function Aa(wa){return function(){var ba=this,Ea=arguments;return new Promise(function($a,Ma){var Ia=wa.apply(ba,Ea);function Oa(Ta){ya(Ia,$a,Ma,Oa,Da,"next",Ta)}function Da(Ta){ya(Ia,$a,Ma,Oa,Da,"throw",Ta)}Oa(void 0)})}}function Ca(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};wa=Object(pa.makeConfig)(wa);function ba($a){return Ea.apply(this,arguments)}function Ea(){return Ea=Aa(regeneratorRuntime.mark(function $a(Ma){var Ia,Oa,Da,Ta,_a;return regeneratorRuntime.wrap(function(Na){for(;;)switch(Na.prev=Na.next){case 0:return Ia=Object(pa.mergeRequestConfig)(wa,Ma),Na.next=3,Object(ua.default)(Ia,Ma);case 3:if(Oa=Na.sent,Da=Oa.next,Object(ha.isFunction)(Da)){Na.next=7;break}return Na.abrupt("return",Da);case 7:return Na.prev=7,Na.next=10,Ia.adapter(Ma);case 10:Oa=Na.sent,Na.next=16;break;case 13:Na.prev=13,Na.t0=Na.catch(7),Ta=Na.t0;case 16:if(!Ta){Na.next=31;break}if(_a=Object(ha.isFunction)(Ia.readOnError)?Ia.readOnError(Ta,Ma):Ia.readOnError,!_a){Na.next=30;break}return Na.prev=19,Ia.acceptStale=!0,Na.next=23,Object(ua.default)(Ia,Ma);case 23:return Oa=Na.sent,Oa.next.request.stale=!0,Na.abrupt("return",Oa.next);case 28:Na.prev=28,Na.t1=Na.catch(19);case 30:throw Ta;case 31:return Na.abrupt("return",Da(Oa));case 32:case"end":return Na.stop()}},$a,null,[[7,13],[19,28]])})),Ea.apply(this,arguments)}return{adapter:ba,config:wa,store:wa.store}}function Sa(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ba=va(va(va({},pa.defaults.axios),wa),{},{cache:va(va({},pa.defaults.axios.cache),wa.cache)}),Ea=Ca(ba.cache);ba.cache;var $a=ga(ba,["cache"]),Ma=ca.a.create(va(va({},$a),{},{adapter:Ea.adapter}));return Ma.cache=Ea.store,Ma}aa.default={setup:Sa,setupCache:Ca,serializeQuery:da.serializeQuery}},"./src/cache.js":function(oa,aa,sa){sa.r(aa),sa.d(aa,"read",function(){return ma}),sa.d(aa,"write",function(){return ga}),sa.d(aa,"key",function(){return xa}),sa.d(aa,"invalidate",function(){return Ca}),sa.d(aa,"serializeQuery",function(){return Sa}),sa("./node_modules/core-js/modules/es7.array.includes.js"),sa("./node_modules/core-js/modules/es6.string.includes.js"),sa("./node_modules/regenerator-runtime/runtime.js"),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");var la=sa("./src/utilities.js"),ca=sa("./node_modules/md5/md5.js"),ua=sa.n(ca),da=sa("./src/serialize.js");function pa(wa,ba,Ea,$a,Ma,Ia,Oa){try{var Da=wa[Ia](Oa),Ta=Da.value}catch(_a){Ea(_a);return}Da.done?ba(Ta):Promise.resolve(Ta).then($a,Ma)}function ha(wa){return function(){var ba=this,Ea=arguments;return new Promise(function($a,Ma){var Ia=wa.apply(ba,Ea);function Oa(Ta){pa(Ia,$a,Ma,Oa,Da,"next",Ta)}function Da(Ta){pa(Ia,$a,Ma,Oa,Da,"throw",Ta)}Oa(void 0)})}}function ga(wa,ba,Ea){return fa.apply(this,arguments)}function fa(){return fa=ha(regeneratorRuntime.mark(function wa(ba,Ea,$a){var Ma;return regeneratorRuntime.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return Oa.prev=0,Ma={expires:ba.expires,data:Object(da.default)(ba,Ea,$a)},Oa.next=4,ba.store.setItem(ba.uuid,Ma);case 4:Oa.next=19;break;case 6:if(Oa.prev=6,Oa.t0=Oa.catch(0),ba.debug("Could not store response",Oa.t0),!ba.clearOnError){Oa.next=18;break}return Oa.prev=10,Oa.next=13,ba.store.clear();case 13:Oa.next=18;break;case 15:Oa.prev=15,Oa.t1=Oa.catch(10),ba.debug("Could not clear store",Oa.t1);case 18:return Oa.abrupt("return",!1);case 19:return Oa.abrupt("return",!0);case 20:case"end":return Oa.stop()}},wa,null,[[0,6],[10,15]])})),fa.apply(this,arguments)}function ma(wa,ba){return va.apply(this,arguments)}function va(){return va=ha(regeneratorRuntime.mark(function wa(ba,Ea){var $a,Ma,Ia,Oa,Da,Ta,_a,La;return regeneratorRuntime.wrap(function(za){for(;;)switch(za.prev=za.next){case 0:return $a=ba.uuid,Ma=ba.ignoreCache,za.next=3,ba.store.getItem($a);case 3:if(Ia=za.sent,!(Ma||!Ia||!Ia.data)){za.next=10;break}throw ba.debug("cache-miss",Ea.url),Oa=new Error,Oa.reason="cache-miss",Oa.message="Entry not found from cache",Oa;case 10:if(Da=Ia.expires,Ta=Ia.data,_a=typeof navigator<"u"&&"onLine"in navigator&&!navigator.onLine,!(!_a&&!ba.acceptStale&&Da!==0&&Da<Date.now())){za.next=18;break}throw ba.debug("cache-stale",Ea.url),La=new Error,La.reason="cache-stale",La.message="Entry is stale",La;case 18:return ba.debug(ba.acceptStale?"cache-hit-stale":"cache-hit",Ea.url),za.abrupt("return",Ta);case 20:case"end":return za.stop()}},wa)})),va.apply(this,arguments)}function xa(wa){if(Object(la.isFunction)(wa.key))return wa.key;var ba;return Object(la.isString)(wa.key)?ba=function($a){var Ma="".concat($a.baseURL?$a.baseURL:"").concat($a.url),Ia="".concat(wa.key,"/").concat(Ma).concat(Sa($a));return $a.data?Ia+ua()($a.data):Ia}:ba=function($a){var Ma="".concat($a.baseURL?$a.baseURL:"").concat($a.url),Ia=Ma+Sa($a);return $a.data?Ia+ua()($a.data):Ia},ba}function ya(wa,ba){return Aa.apply(this,arguments)}function Aa(){return Aa=ha(regeneratorRuntime.mark(function wa(ba,Ea){var $a;return regeneratorRuntime.wrap(function(Ia){for(;;)switch(Ia.prev=Ia.next){case 0:if($a=Ea.method.toLowerCase(),!ba.exclude.methods.includes($a)){Ia.next=4;break}return Ia.next=4,ba.store.removeItem(ba.uuid);case 4:case"end":return Ia.stop()}},wa)})),Aa.apply(this,arguments)}function Ca(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object(la.isFunction)(wa.invalidate)?wa.invalidate:ya}function Sa(wa){if(!wa.params)return"";if(typeof URLSearchParams>"u")return JSON.stringify(wa.params);var ba=wa.params,Ea=wa.params instanceof URLSearchParams;return Ea||(ba=new URLSearchParams,Object.keys(wa.params).forEach(function($a){return ba.append($a,wa.params[$a])})),"?".concat(ba.toString())}aa.default={read:ma,write:ga,key:xa,invalidate:Ca,serializeQuery:Sa}},"./src/config.js":function(oa,aa,sa){sa.r(aa),sa.d(aa,"defaults",function(){return va}),sa.d(aa,"makeConfig",function(){return ya}),sa.d(aa,"mergeRequestConfig",function(){return Aa}),sa("./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js"),sa("./node_modules/core-js/modules/es6.symbol.js"),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");var la=sa("axios"),ca=sa.n(la),ua=sa("./src/memory.js"),da=sa("./src/cache.js");function pa(Ca,Sa){var wa=Object.keys(Ca);if(Object.getOwnPropertySymbols){var ba=Object.getOwnPropertySymbols(Ca);Sa&&(ba=ba.filter(function(Ea){return Object.getOwnPropertyDescriptor(Ca,Ea).enumerable})),wa.push.apply(wa,ba)}return wa}function ha(Ca){for(var Sa=1;Sa<arguments.length;Sa++){var wa=arguments[Sa]!=null?arguments[Sa]:{};Sa%2?pa(Object(wa),!0).forEach(function(ba){ga(Ca,ba,wa[ba])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ca,Object.getOwnPropertyDescriptors(wa)):pa(Object(wa)).forEach(function(ba){Object.defineProperty(Ca,ba,Object.getOwnPropertyDescriptor(wa,ba))})}return Ca}function ga(Ca,Sa,wa){return Sa in Ca?Object.defineProperty(Ca,Sa,{value:wa,enumerable:!0,configurable:!0,writable:!0}):Ca[Sa]=wa,Ca}var fa=function(){},ma=function(){for(var Sa,wa=arguments.length,ba=new Array(wa),Ea=0;Ea<wa;Ea++)ba[Ea]=arguments[Ea];return(Sa=console).log.apply(Sa,["[axios-cache-adapter]"].concat(ba))},va={cache:{maxAge:0,limit:!1,store:null,key:null,invalidate:null,exclude:{paths:[],query:!0,filter:null,methods:["post","patch","put","delete"]},adapter:ca.a.defaults.adapter,clearOnStale:!0,clearOnError:!0,readOnError:!1,readHeaders:!1,debug:!1,ignoreCache:!1},axios:{cache:{maxAge:15*60*1e3}}},xa=["limit","store","adapter","uuid","acceptStale"],ya=function(){var Sa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},wa=ha(ha(ha({},va.cache),Sa),{},{exclude:ha(ha({},va.cache.exclude),Sa.exclude)});return wa.key=Object(da.key)(wa),wa.invalidate=Object(da.invalidate)(wa),wa.debug!==!1?wa.debug=typeof wa.debug=="function"?wa.debug:ma:wa.debug=fa,wa.store||(wa.store=new ua.default),wa.debug("Global cache config",wa),wa},Aa=function(Sa,wa){var ba=wa.cache||{};ba&&xa.forEach(function($a){return ba[$a]?delete ba[$a]:void 0});var Ea=ha(ha(ha({},Sa),ba),{},{exclude:ha(ha({},Sa.exclude),ba.exclude)});return Ea.debug===!0&&(Ea.debug=ma),ba.key&&(Ea.key=Object(da.key)(ba)),Ea.uuid=Ea.key(wa),Sa.debug("Request config for ".concat(wa.url),Ea),Ea};aa.default={defaults:va,makeConfig:ya,mergeRequestConfig:Aa}},"./src/exclude.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js"),sa("./node_modules/core-js/modules/es7.array.includes.js"),sa("./node_modules/core-js/modules/es6.string.includes.js");var la=sa("./src/utilities.js");function ca(){var ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},da=arguments.length>1?arguments[1]:void 0,pa=ua.exclude,ha=pa===void 0?{}:pa,ga=ua.debug,fa=da.method.toLowerCase();if(fa==="head"||ha.methods.includes(fa))return ga("Excluding request by HTTP method ".concat(da.url)),!0;if(typeof ha.filter=="function"&&ha.filter(da))return ga("Excluding request by filter ".concat(da.url)),!0;var ma=/\?.*$/.test(da.url)||Object(la.isObject)(da.params)&&Object.keys(da.params).length!==0||typeof URLSearchParams<"u"&&da.params instanceof URLSearchParams;if(ha.query&&ma)return ga("Excluding request by query ".concat(da.url)),!0;var va=ha.paths||[],xa=va.some(function(ya){return da.url.match(ya)});return xa?(ga("Excluding request by url match ".concat(da.url)),!0):!1}aa.default=ca},"./src/index.js":function(oa,aa,sa){sa.r(aa);var la=sa("./src/api.js");sa.d(aa,"setup",function(){return la.setup}),sa.d(aa,"setupCache",function(){return la.setupCache}),sa.d(aa,"serializeQuery",function(){return la.serializeQuery}),sa.d(aa,"default",function(){return la.default})},"./src/limit.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/regenerator-runtime/runtime.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");function la(pa,ha,ga,fa,ma,va,xa){try{var ya=pa[va](xa),Aa=ya.value}catch(Ca){ga(Ca);return}ya.done?ha(Aa):Promise.resolve(Aa).then(fa,ma)}function ca(pa){return function(){var ha=this,ga=arguments;return new Promise(function(fa,ma){var va=pa.apply(ha,ga);function xa(Aa){la(va,fa,ma,xa,ya,"next",Aa)}function ya(Aa){la(va,fa,ma,xa,ya,"throw",Aa)}xa(void 0)})}}function ua(pa){return da.apply(this,arguments)}function da(){return da=ca(regeneratorRuntime.mark(function pa(ha){var ga,fa;return regeneratorRuntime.wrap(function(va){for(;;)switch(va.prev=va.next){case 0:return va.next=2,ha.store.length();case 2:if(ga=va.sent,!(ga<ha.limit)){va.next=5;break}return va.abrupt("return");case 5:return ha.debug("Current store size: ".concat(ga)),va.next=8,ha.store.iterate(function(xa,ya){fa||(fa={value:xa,key:ya}),xa.expires<fa.value.expires&&(fa={value:xa,key:ya})});case 8:if(!fa){va.next=12;break}return ha.debug("Removing item: ".concat(fa.key)),va.next=12,ha.store.removeItem(fa.key);case 12:case"end":return va.stop()}},pa)})),da.apply(this,arguments)}aa.default=ua},"./src/memory.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js"),sa("./node_modules/regenerator-runtime/runtime.js");var la=sa("./src/utilities.js");function ca(fa,ma,va,xa,ya,Aa,Ca){try{var Sa=fa[Aa](Ca),wa=Sa.value}catch(ba){va(ba);return}Sa.done?ma(wa):Promise.resolve(wa).then(xa,ya)}function ua(fa){return function(){var ma=this,va=arguments;return new Promise(function(xa,ya){var Aa=fa.apply(ma,va);function Ca(wa){ca(Aa,xa,ya,Ca,Sa,"next",wa)}function Sa(wa){ca(Aa,xa,ya,Ca,Sa,"throw",wa)}Ca(void 0)})}}function da(fa,ma){if(!(fa instanceof ma))throw new TypeError("Cannot call a class as a function")}function pa(fa,ma){for(var va=0;va<ma.length;va++){var xa=ma[va];xa.enumerable=xa.enumerable||!1,xa.configurable=!0,"value"in xa&&(xa.writable=!0),Object.defineProperty(fa,xa.key,xa)}}function ha(fa,ma,va){return ma&&pa(fa.prototype,ma),fa}var ga=function(){function fa(){da(this,fa),this.store={}}return ha(fa,[{key:"getItem",value:function(){var ma=ua(regeneratorRuntime.mark(function xa(ya){var Aa;return regeneratorRuntime.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Aa=this.store[ya]||null,Sa.abrupt("return",JSON.parse(Aa));case 2:case"end":return Sa.stop()}},xa,this)}));function va(xa){return ma.apply(this,arguments)}return va}()},{key:"setItem",value:function(){var ma=ua(regeneratorRuntime.mark(function xa(ya,Aa){return regeneratorRuntime.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return this.store[ya]=JSON.stringify(Aa),Sa.abrupt("return",Aa);case 2:case"end":return Sa.stop()}},xa,this)}));function va(xa,ya){return ma.apply(this,arguments)}return va}()},{key:"removeItem",value:function(){var ma=ua(regeneratorRuntime.mark(function xa(ya){return regeneratorRuntime.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:delete this.store[ya];case 1:case"end":return Ca.stop()}},xa,this)}));function va(xa){return ma.apply(this,arguments)}return va}()},{key:"clear",value:function(){var ma=ua(regeneratorRuntime.mark(function xa(){return regeneratorRuntime.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:this.store={};case 1:case"end":return Aa.stop()}},xa,this)}));function va(){return ma.apply(this,arguments)}return va}()},{key:"length",value:function(){var ma=ua(regeneratorRuntime.mark(function xa(){return regeneratorRuntime.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.abrupt("return",Object.keys(this.store).length);case 1:case"end":return Aa.stop()}},xa,this)}));function va(){return ma.apply(this,arguments)}return va}()},{key:"iterate",value:function(va){return Promise.all(Object(la.mapObject)(this.store,va))}}]),fa}();aa.default=ga},"./src/request.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/regenerator-runtime/runtime.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");var la=sa("./src/response.js"),ca=sa("./src/exclude.js"),ua=sa("./src/cache.js");function da(fa,ma,va,xa,ya,Aa,Ca){try{var Sa=fa[Aa](Ca),wa=Sa.value}catch(ba){va(ba);return}Sa.done?ma(wa):Promise.resolve(wa).then(xa,ya)}function pa(fa){return function(){var ma=this,va=arguments;return new Promise(function(xa,ya){var Aa=fa.apply(ma,va);function Ca(wa){da(Aa,xa,ya,Ca,Sa,"next",wa)}function Sa(wa){da(Aa,xa,ya,Ca,Sa,"throw",wa)}Ca(void 0)})}}function ha(fa,ma){return ga.apply(this,arguments)}function ga(){return ga=pa(regeneratorRuntime.mark(function fa(ma,va){var xa,ya,Aa;return regeneratorRuntime.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Aa=function(){return ma.excludeFromCache=!0,{config:ma,next:xa}},ma.debug("uuid",ma.uuid),xa=function(){for(var ba=arguments.length,Ea=new Array(ba),$a=0;$a<ba;$a++)Ea[$a]=arguments[$a];return la.default.apply(void 0,[ma,va].concat(Ea))},Sa.next=5,ma.invalidate(ma,va);case 5:if(!Object(ca.default)(ma,va)){Sa.next=7;break}return Sa.abrupt("return",Aa());case 7:return Sa.prev=7,Sa.next=10,Object(ua.read)(ma,va);case 10:return ya=Sa.sent,ya.config=va,ya.request={fromCache:!0},Sa.abrupt("return",{config:ma,next:ya});case 16:if(Sa.prev=16,Sa.t0=Sa.catch(7),!(ma.clearOnStale&&Sa.t0.reason==="cache-stale")){Sa.next=21;break}return Sa.next=21,ma.store.removeItem(ma.uuid);case 21:return Sa.abrupt("return",{config:ma,next:xa});case 22:case"end":return Sa.stop()}},fa,null,[[7,16]])})),ga.apply(this,arguments)}aa.default=ha},"./src/response.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/regenerator-runtime/runtime.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");var la=sa("./src/limit.js"),ca=sa("./src/cache.js"),ua=sa("./node_modules/cache-control-esm/index.js");function da(fa,ma,va,xa,ya,Aa,Ca){try{var Sa=fa[Aa](Ca),wa=Sa.value}catch(ba){va(ba);return}Sa.done?ma(wa):Promise.resolve(wa).then(xa,ya)}function pa(fa){return function(){var ma=this,va=arguments;return new Promise(function(xa,ya){var Aa=fa.apply(ma,va);function Ca(wa){da(Aa,xa,ya,Ca,Sa,"next",wa)}function Sa(wa){da(Aa,xa,ya,Ca,Sa,"throw",wa)}Ca(void 0)})}}function ha(fa,ma,va){return ga.apply(this,arguments)}function ga(){return ga=pa(regeneratorRuntime.mark(function fa(ma,va,xa){var ya,Aa,Ca,Sa,wa;return regeneratorRuntime.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(ya=xa.request,Aa=ya===void 0?{}:ya,Ca=xa.headers,Sa=Ca===void 0?{}:Ca,!(["arraybuffer","blob"].indexOf(Aa.responseType)>-1)){Ea.next=3;break}return Ea.abrupt("return",xa);case 3:if(wa={},ma.readHeaders&&(Sa["cache-control"]?(wa=Object(ua.parse)(Sa["cache-control"]),(wa.noCache||wa.noStore)&&(ma.excludeFromCache=!0)):Sa.expires?ma.expires=new Date(Sa.expires).getTime():ma.expires=new Date().getTime()),ma.excludeFromCache){Ea.next=15;break}if(wa.maxAge||wa.maxAge===0?ma.expires=Date.now()+wa.maxAge*1e3:ma.readHeaders||(ma.expires=ma.maxAge===0?Date.now():Date.now()+ma.maxAge),!ma.limit){Ea.next=11;break}return ma.debug("Detected limit: ".concat(ma.limit)),Ea.next=11,Object(la.default)(ma);case 11:return Ea.next=13,Object(ca.write)(ma,va,xa);case 13:Ea.next=16;break;case 15:xa.request.excludedFromCache=!0;case 16:return Ea.abrupt("return",xa);case 17:case"end":return Ea.stop()}},fa)})),ga.apply(this,arguments)}aa.default=ha},"./src/serialize.js":function(oa,aa,sa){sa.r(aa),sa("./node_modules/core-js/modules/es6.symbol.js"),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");function la(da,pa){if(da==null)return{};var ha=ca(da,pa),ga,fa;if(Object.getOwnPropertySymbols){var ma=Object.getOwnPropertySymbols(da);for(fa=0;fa<ma.length;fa++)ga=ma[fa],!(pa.indexOf(ga)>=0)&&Object.prototype.propertyIsEnumerable.call(da,ga)&&(ha[ga]=da[ga])}return ha}function ca(da,pa){if(da==null)return{};var ha={},ga=Object.keys(da),fa,ma;for(ma=0;ma<ga.length;ma++)fa=ga[ma],!(pa.indexOf(fa)>=0)&&(ha[fa]=da[fa]);return ha}function ua(da,pa,ha){if(ha.data)try{ha.data=JSON.parse(ha.data)}catch(fa){da.debug("Could not parse data as JSON",fa)}ha.request,ha.config;var ga=la(ha,["request","config"]);return ga}aa.default=ua},"./src/utilities.js":function(oa,aa,sa){sa.r(aa),sa.d(aa,"isObject",function(){return ca}),sa.d(aa,"getTag",function(){return ua}),sa.d(aa,"isFunction",function(){return da}),sa.d(aa,"isString",function(){return pa}),sa.d(aa,"mapObject",function(){return ha}),sa("./node_modules/core-js/modules/es7.symbol.async-iterator.js"),sa("./node_modules/core-js/modules/es6.symbol.js"),sa("./node_modules/core-js/modules/es6.array.iterator.js"),sa("./node_modules/core-js/modules/es6.object.to-string.js");function la(ga){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?la=function(ma){return typeof ma}:la=function(ma){return ma&&typeof Symbol=="function"&&ma.constructor===Symbol&&ma!==Symbol.prototype?"symbol":typeof ma},la(ga)}function ca(ga){var fa=la(ga);return ga!=null&&(fa==="object"||fa==="function")}function ua(ga){return ga===null?ga===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(ga)}function da(ga){if(!ca(ga))return!1;var fa=ua(ga);return fa==="[object Function]"||fa==="[object AsyncFunction]"||fa==="[object GeneratorFunction]"||fa==="[object Proxy]"}function pa(ga){var fa=la(ga);return fa==="string"||fa==="object"&&ga!=null&&!Array.isArray(ga)&&ua(ga)==="[object String]"}function ha(ga,fa){return ca(ga)?Object.keys(ga).map(function(ma){return fa(ga[ma],ma)}):[]}},axios:function(oa,aa){oa.exports=ra}})})}(cache$3)),cache$3.exports}var cacheExports=requireCache();const cache$2=cacheExports.setupCache({maxAge:15*60*1e3}),axios$5=Axios.create({adapter:cache$2.adapter,timeout:15e4,headers:{"X-DEPICTER-CSRF":editorEnv.csrfToken,"X-DEPICTER-CKEY":editorEnv.clientKey}}),load$2=async()=>{const ea={ID:editorEnv.documentId},{data:{hits:{content:na,id:ra,name:oa,slug:aa,publishedAt:sa,modifiedAt:la,sectionThumbnails:ca,type:ua="slider",author:da}}}=await axios$5.request(loadDocument(ea));return na?{state:JSON.parse(na),newDocument:!1,documentInfo:{slug:aa,type:ua,name:oa,id:ra,publishedAt:sa,modifiedAt:la,author:da},sectionThumbnails:ca}:{newDocument:!0,documentInfo:{type:ua,slug:aa,name:oa,id:ra,publishedAt:sa,modifiedAt:la,author:da},sectionThumbnails:ca}};let cancelTokenSource$1=null;const save$2=async(ea,na="draft",ra={})=>{cancelTokenSource$1&&cancelTokenSource$1.cancel("New request initiated."),cancelTokenSource$1=Axios.CancelToken.source();const oa=JSON.stringify(ea),{previewImages:aa}=ra;try{const{data:{success:sa}}=await axios$5.request({...saveDocument$1({editor:oa,ID:editorEnv.documentId,status:na},aa),cancelToken:cancelTokenSource$1.token}),la=new Date().toISOString().replace(/T/," ").replace(/\..+/,""),ca={success:sa,modifiedAt:la};return na==="published"?{...ca,publishedAt:la}:ca}catch(sa){throw console.error(sa),sa}},rename=async ea=>(await axios$5.request(renameDocument$1({ID:editorEnv.documentId,name:ea})),!0),changeSlug=async ea=>{const{data:{success:na}}=await axios$5.request(changeDocumentSlug$1({ID:editorEnv.documentId,slug:ea}));return na},checkSlug=async ea=>{try{return await axios$5.request(checkDocumentSlug({slug:ea})),!0}catch{return!1}},getPreviewSrc=(ea,na)=>getPreviewSrc$1(na||editorEnv.documentId,ea),revert$1=async(ea=1)=>{try{return await axios$5.request(revertDocument({ID:editorEnv.documentId,to:`~${ea}`})),!0}catch{return!1}},upload=async(ea,na)=>{try{const{data:{hits:ra}}=await axios$5.request(uploadDocumentMedia({file:ea,onUploadProgress:na}));return`${Object.values(ra)[0].attachment}`}catch{return!1}},adapter$5={save:save$2,load:load$2,check:()=>!0,rename,changeSlug,checkSlug,getPreviewSrc,revert:revert$1,upload,remove:async()=>!1};class LocalStorageStore{storeKey;serializedStore;store;constructor(na){this.storeKey=na,this.serializedStore=localStorage.getItem(this.storeKey),this.store=this.serializedStore?this.parseValue(this.serializedStore):null}serializeValue=na=>{try{return JSON.stringify(na)}catch(ra){return console.log(ra),""}};parseValue=na=>{try{return JSON.parse(na)}catch(ra){return console.log(ra),{}}};getItem=na=>localStorage.getItem(na);addItem=(na,ra)=>(localStorage.setItem(na,ra),ra);removeItem=na=>localStorage.removeItem(na);async addDocumentStore(na,ra){this.store={...this.store,[na]:ra},this.serializedStore=this.serializeValue(this.store),this.addItem(this.storeKey,this.serializedStore)}async removeDocumentStore(na){this.store&&(this.store=omit$2(this.store,[na]),this.serializedStore=this.serializeValue(this.store),this.addItem(this.storeKey,this.serializedStore))}getDocumentStore(na){return this.store?this.store[na]:null}isDocumentStored(na){return this.store?!!this.store[na]:!1}}const localStorageStore=new LocalStorageStore(`${editorEnv.documentId}_local_data`),load$1=async()=>{const ea=localStorageStore.getDocumentStore(editorEnv.documentId),na=new Date().toISOString().replace(/T/," ").replace(/\..+/,"");return ea?(localStorageStore.removeDocumentStore(editorEnv.documentId),{state:ea.state,history:ea.history,newDocument:!1,documentInfo:{slug:ea.slug,name:ea.name,id:editorEnv.documentId,publishedAt:ea.publishedAt,modifiedAt:ea.modifiedAt}}):{newDocument:!0,documentInfo:{slug:"document-1",name:`Untitled ${DocType.getLabel("document",!0)}`,id:editorEnv.documentId,publishedAt:na,modifiedAt:na}}},save$1=async(ea,na="draft",ra={})=>{const oa=new Date().toISOString().replace(/T/," ").replace(/\..+/,""),aa={state:ea,history:ra?.history,slug:ra?.slug,name:ra?.name,publishedAt:ra?.publishedAt,modifiedAt:ra?.modifiedAt};let sa={success:!0,modifiedAt:oa};return na==="published"?(aa.publishedAt=oa,sa={...sa,publishedAt:oa}):aa.modifiedAt=oa,localStorageStore.addDocumentStore(editorEnv.documentId,aa),sa},remove$3=async ea=>(localStorageStore.removeDocumentStore(ea),!0),adapter$4={save:save$1,load:load$1,check:()=>localStorageStore.isDocumentStored(editorEnv.documentId),rename:async()=>!1,changeSlug:async()=>!1,checkSlug:async()=>!1,getPreviewSrc:()=>"",revert:async()=>!1,upload:async()=>!1,remove:remove$3},adapters$2=new Map,registerAdapter=(ea,na,ra)=>{adapters$2.set(ea,{adapter:na,priority:ra})},documentAPI=()=>Array.from(adapters$2.values()).sort((ea,na)=>ea.priority>na.priority?-1:1).map(ea=>ea.adapter).find(ea=>ea.check());registerAdapter("localStorage",adapter$4,10);registerAdapter("wpPlugin",adapter$5,9);var define_process_env_default$3={EDITOR_VERSION:"4.7.1"};const initialState$a={createdBy:define_process_env_default$3.EDITOR_VERSION,modifiedBy:define_process_env_default$3.EDITOR_VERSION,documentType:"slider",modifiedByTier:Tiers.FREE},metaSlice=createSlice({name:"meta",initialState:initialState$a,reducers:{updateDocumentMeta(ea,na){return{...ea,...na.payload}}}}),{updateDocumentMeta}=metaSlice.actions,meta=metaSlice.reducer,getCreatedBy=ea=>ea.document.meta.createdBy,getModifiedBy=ea=>ea.document.meta.modifiedBy,getDocumentMeta=ea=>ea.document.meta,getDocument$1=ea=>ea.document,getSections=ea=>ea.document.sections,getElements=ea=>ea.document.elements,getAllElementsData=ea=>ea.document.elements,getDocumentType=ea=>ea.document.meta.documentType||"custom",getSectionsList=ea=>ea.document.sectionsList,activeSection=ea=>ea.document.env.activeSection,getFilteredSectionsList=createSelector([getSectionsList,getSections],(ea,na)=>ea.filter(ra=>na[ra].type!=="teaser")),getActiveSectionIndex=createSelector([getFilteredSectionsList,activeSection],(ea,na)=>ea.indexOf(na)),getNextSection=createSelector([getActiveSectionIndex,getFilteredSectionsList],(ea,na)=>{if(ea<na.length)return na[ea+1]}),getPreviousSection=createSelector([getActiveSectionIndex,getFilteredSectionsList],(ea,na)=>{if(ea!==0)return na[ea-1]}),getSectionsDataOrderedList=createSelector([getSectionsList,getSections],(ea,na)=>ea.map(ra=>na[ra])),getHistoryRecords=ea=>ea.document.history.records,getHistoryIndex=ea=>ea.document.history.index;createSelector([getHistoryRecords],ea=>ea.length);const getHasUndo=ea=>ea.document.history.index!==ea.document.history.records.length-1,getHasRedo=ea=>!!ea.document.history.index,getSectionsWithType=ea=>createSelector([getSections],na=>{const ra=[];return Object.keys(na).forEach(oa=>{na[oa].type===ea&&ra.push(na[oa])}),ra}),dataSourcesMap=new Map,registerDataSource=ea=>{if(dataSourcesMap.has(ea.type)){console.error(`This Data Source is already registered: "${ea.type}"`);return}dataSourcesMap.set(ea.type,ea)},getDataSourcesType=()=>[...dataSourcesMap.keys()],getDataSourceIcon=ea=>dataSourcesMap.get(ea).icon,getDataSourceName=ea=>dataSourcesMap.get(ea).name,getDataSourceOptionControls=ea=>dataSourcesMap.get(ea).optionControls||[],getDataSourceOptions=ea=>dataSourcesMap.get(ea).defaultOptions||{},getDataSourceFallbackOptions=ea=>dataSourcesMap.get(ea).fallbackOptions||[],getDataSourceAssetBarData=ea=>dataSourcesMap.get(ea).assetBarData||{},getDataSourceHandler=ea=>dataSourcesMap.get(ea).handler,getDataSourceHasIntegrations=ea=>dataSourcesMap.get(ea).hasIntegrations??!0,getDataSourceAllowedTier=ea=>dataSourcesMap.get(ea).allowedTier||"",getDataSourceComingSoonStatus=ea=>!!dataSourcesMap.get(ea).comingSoon,getDataSourceDocumentType=ea=>ea?dataSourcesMap.get(ea).documentType:"slider",getAssetDragLayerVisibility=ea=>ea.editor.assetDragLayerVisibility,getSectionPanelIsOpen=ea=>ea.editor.sectionsPanel==="open",getSectionSnapshotsList=ea=>ea.editor.sectionsSnapshots,getActiveElementOptionsTab=ea=>ea.editor.activeElementOptionsTab,getActiveSectionOptionsTab=ea=>ea.editor.activeSectionOptionsTab,getHoveredElement=ea=>ea.editor.hoveredElementId,getSectionsDataSourcesData=ea=>ea.editor.sectionsDataSourcesData,getProvisionalAnimations=ea=>ea.editor.provisionalAnimations,getSectionPreviewState=ea=>ea.editor.sectionPreviewState,getOverSectionControlsVisibility=ea=>ea.editor.overSectionControlsVisibility,getActiveOptionsPanel=ea=>ea.editor.activeOptionsPanel,getUserTierFromStore=ea=>ea.editor.user.userTier,getDocumentLoadingStatus=ea=>ea.editor.openDocumentInfo.loadingStatus,getDocumentSavingStatus=ea=>ea.editor.openDocumentInfo.savingStatus,getDocumentName=ea=>ea.editor.openDocumentInfo.name,getDocumentSlug=ea=>ea.editor.openDocumentInfo.slug,getDocumentId=ea=>ea.editor.openDocumentInfo.id,getDocumentInfoUpdatingStatus=ea=>ea.editor.openDocumentInfo.updatingInfoStatus,getUnsavedChanges=ea=>ea.editor.unsavedChanges,getDisplayRulesConfig=ea=>ea.editor.displayRulesConfig,getRemoteContentStatus=ea=>na=>na.editor.remoteAssetsContentStatus[ea]||"updated",getDocumentLastPublishTime=ea=>ea.editor.openDocumentInfo.publishedAt,getDocumentLastSaveDraftTime=ea=>ea.editor.openDocumentInfo.draftLastSaveAt,getUnpublishedChangesStatus=ea=>ea.editor.openDocumentInfo.publishedAt!==ea.editor.openDocumentInfo.draftLastSaveAt,getDocumentAuthor=ea=>ea.editor.openDocumentInfo.author,getActiveOptionsPanelTab=ea=>createSelector([getActiveElementOptionsTab,getActiveSectionOptionsTab],(na="",ra="")=>ea?na.split("/")[0]:ra.split("/")[0]),getActiveOptionsPanelTabPath=ea=>createSelector([getActiveElementOptionsTab,getActiveSectionOptionsTab],(na="",ra="")=>ra),getActiveMediaCropperId=ea=>ea.editor.activeMediaCropperId,getWorkspacePanningStatus=ea=>ea.editor.isPanning,getWorkspaceComputedZoom=ea=>ea.editor.workspaceComputedZoom||1,getWorkspaceZoom=ea=>typeof ea.editor.workspaceZoom=="number"?limitFloatRange$1(ea.editor.workspaceZoom||1,2):ea.editor.workspaceZoom||1,getWorkspacePan=ea=>ea.editor.workspacePan,getWorkspaceZoomAndPan=ea=>({pan:ea.editor.workspacePan,computedZoom:ea.editor.workspaceComputedZoom||1,zoom:ea.editor.workspaceZoom}),getDocumentFonts=ea=>ea.editor.documentFonts,getDataURLValues=ea=>ea.editor.dataURLs,getAssetPanelActiveTab=ea=>ea.editor.assetPanelActiveTab,getLayersPanelStatus=ea=>ea.editor.layersPanel.isActive,getLayersPanelPosition=ea=>ea.editor.layersPanel.position,getActiveSectionAssetTabs=ea=>createSelector([getDocumentType,getActiveSectionHasAForm,getActiveSectionDataSourceType],(na,ra,oa)=>{let aa=[...ea];return na==="survey"?aa=["survey",...aa.filter(sa=>!["controls"].includes(sa))]:(ra&&(aa=[...aa,"form"]),oa&&getDataSourceHasIntegrations(oa)&&(aa=[...aa,"dataSource"])),aa});let cancelTokenSource;const saveDisplayRulesRequest=(ea=Axios,na,ra)=>{const{visibilitySchedule:oa,triggers:aa,afterClose:sa,displayConditions:la}=ra;cancelTokenSource?.cancel("Request canceled because a new request is being made."),cancelTokenSource=Axios.CancelToken.source();const ca=cancelTokenSource.token;return ea.request({...saveDisplayRules({content:JSON.stringify({visibilitySchedule:oa,triggers:aa,afterClose:sa,displayConditions:la}),ID:na}),cancelToken:ca})};var define_process_env_default$2={EDITOR_VERSION:"4.7.1"};const saveRestoreData=(ea,na)=>(ra,oa)=>{const aa=oa(),{createdBy:sa,modifiedBy:la}=getDocumentMeta(aa);reactDomExports.unstable_batchedUpdates(()=>{ra(updateLastID(getLastIdNumber()||1)),la!==define_process_env_default$2.EDITOR_VERSION&&ra(updateDocumentMeta({modifiedBy:define_process_env_default$2.EDITOR_VERSION,createdBy:sa||define_process_env_default$2.EDITOR_VERSION}));const{history:ca,...ua}=oa().document,da={...ea};na&&(da.history=ca),adapter$4.save(ua,"draft",da).then(()=>{ra(resetUnsavedChanges())}).catch(()=>{})})},openDocument=ea=>na=>{const{state:ra,history:oa,documentInfo:aa,sectionThumbnails:sa}=ea;reactDomExports.unstable_batchedUpdates(()=>{if(ra){const la=Object.keys(ra.elements),ca=Object.keys(ra.sections),ua=Math.max(...la.map(pa=>parseInt(pa.split("-")[1],10))),da=Math.max(...ca.map(pa=>parseInt(pa.split("-")[1],10)));if(setId(Math.max(ua,da,ra.lastId)),ra.env.selectedElements=ra.env.selectedElements.filter(pa=>la.includes(pa)),na(injectDocument({preloadedState:ra,clearHistory:!0})),oa&&na(injectHistory({history:oa})),sa){const pa={};ra.sectionsList.forEach((ha,ga)=>{pa[ha]=sa[ga]}),na(updateSectionsSnapshot({values:pa}))}}na(updateLastID(getLastIdNumber()||1)),na(updateLoadingDocumentStatus({status:"succeed"})),na(updateDocumentName(aa.name)),na(updateDocumentSlug(aa.slug)),na(updateDocumentLastPublishTime(aa.publishedAt)),na(updateDocumentDraftLastSaveTime(aa.modifiedAt)),na(updateDocumentAuthor(aa.author))})},saveDocument=(ea,na,ra,oa)=>async(aa,sa)=>{const la=sa(),{createdBy:ca,modifiedBy:ua,modifiedByTier:da}=getDocumentMeta(la),{status:pa}=getDocumentSavingStatus(la),ha=la.editor.user.userTier,ga=getSectionSnapshotsList(la),fa=getSectionsList(la);if(pa==="inprogress")return;reactDomExports.unstable_batchedUpdates(()=>{aa(updateLastID(getLastIdNumber()||1)),(ua!==define_process_env_default$2.EDITOR_VERSION||da!==ha)&&aa(updateDocumentMeta({modifiedBy:define_process_env_default$2.EDITOR_VERSION,createdBy:ca||define_process_env_default$2.EDITOR_VERSION,modifiedByTier:ha})),aa(updateSavingDocumentStatus({status:"inprogress"}))});const{document:{history:ma,...va}}=sa();try{const xa=await Promise.all(fa.map(Ca=>fetch(ga[Ca]).then(Sa=>Sa.blob()))),{modifiedAt:ya,publishedAt:Aa}=await documentAPI().save(va,ea,{previewImages:xa,...na});ra&&DocType.isNot(["banner-bar","popup"])&&await saveDisplayRulesRequest(axios$5,editorEnv.documentId,ra),reactDomExports.unstable_batchedUpdates(()=>{aa(resetUnsavedChanges()),aa(updateDocumentDraftLastSaveTime(ya)),ea==="published"&&Aa?aa(updateDocumentLastPublishTime(Aa)):ea==="unpublished"&&aa(updateDocumentLastPublishTime(void 0)),aa(updateSavingDocumentStatus({status:"succeed"}))}),oa?.()}catch(xa){console.log(xa),aa(updateSavingDocumentStatus({status:"failed"}))}},renameDocument=ea=>(na,ra)=>{const oa=ra(),{status:aa}=getDocumentInfoUpdatingStatus(oa);aa!=="inprogress"&&(na(updateDocumentInfoUpdatingStatus({status:"inprogress"})),documentAPI().rename(ea).then(sa=>{sa&&reactDomExports.unstable_batchedUpdates(()=>{na(updateDocumentInfoUpdatingStatus({status:"succeed"})),na(updateDocumentName(ea)),document.title=`Depicter | ${ea}`})}))},changeDocumentSlug=ea=>(na,ra)=>{const oa=ra(),{status:aa}=getDocumentInfoUpdatingStatus(oa);aa!=="inprogress"&&(na(updateDocumentInfoUpdatingStatus({status:"inprogress"})),documentAPI().changeSlug(ea).then(()=>{reactDomExports.unstable_batchedUpdates(()=>{na(updateDocumentInfoUpdatingStatus({status:"succeed"})),na(updateDocumentSlug(ea))})}).catch(async()=>{await i18nInit,na(updateDocumentInfoUpdatingStatus({status:"failed",message:i18next.t("This slug is already in use.")}))}))},uploadMedia=(ea,na,ra)=>oa=>{const{name:aa,size:sa,type:la}=na;reactDomExports.unstable_batchedUpdates(()=>{oa(setUploadedMediaInfo({id:ea,name:aa,size:sa,type:la,status:"pending",progress:0})),documentAPI().upload(na,ca=>{oa(updateUploadedMediaProgress({id:ea,value:ca*100}))}).then(ca=>{ca?(oa(updateUploadedMediaStatus({id:ea,value:"success"})),oa(updateUploadedMediaProgress({id:ea,value:100})),oa(updateUploadedMediaID({id:ea,value:ca}))):oa(updateUploadedMediaStatus({id:ea,value:"failure"}))})})},changeProvisionalAnimation=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa),sa=getActiveSection(oa),la=aa?.[0]||sa;na(setProvisionalAnimations([{target:la,data:ea}]))};var defaultInstanceSettings={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},defaultTweenSettings={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},validTransforms=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],cache$1={CSS:{},springs:{}};function minMax(ea,na,ra){return Math.min(Math.max(ea,na),ra)}function stringContains(ea,na){return ea.indexOf(na)>-1}function applyArguments(ea,na){return ea.apply(null,na)}var is$1={arr:function(ea){return Array.isArray(ea)},obj:function(ea){return stringContains(Object.prototype.toString.call(ea),"Object")},pth:function(ea){return is$1.obj(ea)&&ea.hasOwnProperty("totalLength")},svg:function(ea){return ea instanceof SVGElement},inp:function(ea){return ea instanceof HTMLInputElement},dom:function(ea){return ea.nodeType||is$1.svg(ea)},str:function(ea){return typeof ea=="string"},fnc:function(ea){return typeof ea=="function"},und:function(ea){return typeof ea>"u"},nil:function(ea){return is$1.und(ea)||ea===null},hex:function(ea){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(ea)},rgb:function(ea){return/^rgb/.test(ea)},hsl:function(ea){return/^hsl/.test(ea)},col:function(ea){return is$1.hex(ea)||is$1.rgb(ea)||is$1.hsl(ea)},key:function(ea){return!defaultInstanceSettings.hasOwnProperty(ea)&&!defaultTweenSettings.hasOwnProperty(ea)&&ea!=="targets"&&ea!=="keyframes"}};function parseEasingParameters(ea){var na=/\(([^)]+)\)/.exec(ea);return na?na[1].split(",").map(function(ra){return parseFloat(ra)}):[]}function spring(ea,na){var ra=parseEasingParameters(ea),oa=minMax(is$1.und(ra[0])?1:ra[0],.1,100),aa=minMax(is$1.und(ra[1])?100:ra[1],.1,100),sa=minMax(is$1.und(ra[2])?10:ra[2],.1,100),la=minMax(is$1.und(ra[3])?0:ra[3],.1,100),ca=Math.sqrt(aa/oa),ua=sa/(2*Math.sqrt(aa*oa)),da=ua<1?ca*Math.sqrt(1-ua*ua):0,pa=1,ha=ua<1?(ua*ca+-la)/da:-la+ca;function ga(ma){var va=na?na*ma/1e3:ma;return ua<1?va=Math.exp(-va*ua*ca)*(pa*Math.cos(da*va)+ha*Math.sin(da*va)):va=(pa+ha*va)*Math.exp(-va*ca),ma===0||ma===1?ma:1-va}function fa(){var ma=cache$1.springs[ea];if(ma)return ma;for(var va=1/6,xa=0,ya=0;;)if(xa+=va,ga(xa)===1){if(ya++,ya>=16)break}else ya=0;var Aa=xa*va*1e3;return cache$1.springs[ea]=Aa,Aa}return na?ga:fa}function steps(ea){return ea===void 0&&(ea=10),function(na){return Math.ceil(minMax(na,1e-6,1)*ea)*(1/ea)}}var bezier=function(){var ea=11,na=1/(ea-1);function ra(pa,ha){return 1-3*ha+3*pa}function oa(pa,ha){return 3*ha-6*pa}function aa(pa){return 3*pa}function sa(pa,ha,ga){return((ra(ha,ga)*pa+oa(ha,ga))*pa+aa(ha))*pa}function la(pa,ha,ga){return 3*ra(ha,ga)*pa*pa+2*oa(ha,ga)*pa+aa(ha)}function ca(pa,ha,ga,fa,ma){var va,xa,ya=0;do xa=ha+(ga-ha)/2,va=sa(xa,fa,ma)-pa,va>0?ga=xa:ha=xa;while(Math.abs(va)>1e-7&&++ya<10);return xa}function ua(pa,ha,ga,fa){for(var ma=0;ma<4;++ma){var va=la(ha,ga,fa);if(va===0)return ha;var xa=sa(ha,ga,fa)-pa;ha-=xa/va}return ha}function da(pa,ha,ga,fa){if(!(0<=pa&&pa<=1&&0<=ga&&ga<=1))return;var ma=new Float32Array(ea);if(pa!==ha||ga!==fa)for(var va=0;va<ea;++va)ma[va]=sa(va*na,pa,ga);function xa(ya){for(var Aa=0,Ca=1,Sa=ea-1;Ca!==Sa&&ma[Ca]<=ya;++Ca)Aa+=na;--Ca;var wa=(ya-ma[Ca])/(ma[Ca+1]-ma[Ca]),ba=Aa+wa*na,Ea=la(ba,pa,ga);return Ea>=.001?ua(ya,ba,pa,ga):Ea===0?ba:ca(ya,Aa,Aa+na,pa,ga)}return function(ya){return pa===ha&&ga===fa||ya===0||ya===1?ya:sa(xa(ya),ha,fa)}}return da}(),penner=function(){var ea={linear:function(){return function(oa){return oa}}},na={Sine:function(){return function(oa){return 1-Math.cos(oa*Math.PI/2)}},Expo:function(){return function(oa){return oa?Math.pow(2,10*oa-10):0}},Circ:function(){return function(oa){return 1-Math.sqrt(1-oa*oa)}},Back:function(){return function(oa){return oa*oa*(3*oa-2)}},Bounce:function(){return function(oa){for(var aa,sa=4;oa<((aa=Math.pow(2,--sa))-1)/11;);return 1/Math.pow(4,3-sa)-7.5625*Math.pow((aa*3-2)/22-oa,2)}},Elastic:function(oa,aa){oa===void 0&&(oa=1),aa===void 0&&(aa=.5);var sa=minMax(oa,1,10),la=minMax(aa,.1,2);return function(ca){return ca===0||ca===1?ca:-sa*Math.pow(2,10*(ca-1))*Math.sin((ca-1-la/(Math.PI*2)*Math.asin(1/sa))*(Math.PI*2)/la)}}},ra=["Quad","Cubic","Quart","Quint"];return ra.forEach(function(oa,aa){na[oa]=function(){return function(sa){return Math.pow(sa,aa+2)}}}),Object.keys(na).forEach(function(oa){var aa=na[oa];ea["easeIn"+oa]=aa,ea["easeOut"+oa]=function(sa,la){return function(ca){return 1-aa(sa,la)(1-ca)}},ea["easeInOut"+oa]=function(sa,la){return function(ca){return ca<.5?aa(sa,la)(ca*2)/2:1-aa(sa,la)(ca*-2+2)/2}},ea["easeOutIn"+oa]=function(sa,la){return function(ca){return ca<.5?(1-aa(sa,la)(1-ca*2))/2:(aa(sa,la)(ca*2-1)+1)/2}}}),ea}();function parseEasings(ea,na){if(is$1.fnc(ea))return ea;var ra=ea.split("(")[0],oa=penner[ra],aa=parseEasingParameters(ea);switch(ra){case"spring":return spring(ea,na);case"cubicBezier":return applyArguments(bezier,aa);case"steps":return applyArguments(steps,aa);default:return applyArguments(oa,aa)}}function selectString(ea){try{var na=document.querySelectorAll(ea);return na}catch{return}}function filterArray(ea,na){for(var ra=ea.length,oa=arguments.length>=2?arguments[1]:void 0,aa=[],sa=0;sa<ra;sa++)if(sa in ea){var la=ea[sa];na.call(oa,la,sa,ea)&&aa.push(la)}return aa}function flattenArray(ea){return ea.reduce(function(na,ra){return na.concat(is$1.arr(ra)?flattenArray(ra):ra)},[])}function toArray$1(ea){return is$1.arr(ea)?ea:(is$1.str(ea)&&(ea=selectString(ea)||ea),ea instanceof NodeList||ea instanceof HTMLCollection?[].slice.call(ea):[ea])}function arrayContains(ea,na){return ea.some(function(ra){return ra===na})}function cloneObject(ea){var na={};for(var ra in ea)na[ra]=ea[ra];return na}function replaceObjectProps(ea,na){var ra=cloneObject(ea);for(var oa in ea)ra[oa]=na.hasOwnProperty(oa)?na[oa]:ea[oa];return ra}function mergeObjects(ea,na){var ra=cloneObject(ea);for(var oa in na)ra[oa]=is$1.und(ea[oa])?na[oa]:ea[oa];return ra}function rgbToRgba(ea){var na=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(ea);return na?"rgba("+na[1]+",1)":ea}function hexToRgba(ea){var na=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ra=ea.replace(na,function(ca,ua,da,pa){return ua+ua+da+da+pa+pa}),oa=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ra),aa=parseInt(oa[1],16),sa=parseInt(oa[2],16),la=parseInt(oa[3],16);return"rgba("+aa+","+sa+","+la+",1)"}function hslToRgba(ea){var na=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(ea)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(ea),ra=parseInt(na[1],10)/360,oa=parseInt(na[2],10)/100,aa=parseInt(na[3],10)/100,sa=na[4]||1;function la(ga,fa,ma){return ma<0&&(ma+=1),ma>1&&(ma-=1),ma<1/6?ga+(fa-ga)*6*ma:ma<1/2?fa:ma<2/3?ga+(fa-ga)*(2/3-ma)*6:ga}var ca,ua,da;if(oa==0)ca=ua=da=aa;else{var pa=aa<.5?aa*(1+oa):aa+oa-aa*oa,ha=2*aa-pa;ca=la(ha,pa,ra+1/3),ua=la(ha,pa,ra),da=la(ha,pa,ra-1/3)}return"rgba("+ca*255+","+ua*255+","+da*255+","+sa+")"}function colorToRgb(ea){if(is$1.rgb(ea))return rgbToRgba(ea);if(is$1.hex(ea))return hexToRgba(ea);if(is$1.hsl(ea))return hslToRgba(ea)}function getUnit(ea){var na=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(ea);if(na)return na[1]}function getTransformUnit(ea){if(stringContains(ea,"translate")||ea==="perspective")return"px";if(stringContains(ea,"rotate")||stringContains(ea,"skew"))return"deg"}function getFunctionValue(ea,na){return is$1.fnc(ea)?ea(na.target,na.id,na.total):ea}function getAttribute(ea,na){return ea.getAttribute(na)}function convertPxToUnit(ea,na,ra){var oa=getUnit(na);if(arrayContains([ra,"deg","rad","turn"],oa))return na;var aa=cache$1.CSS[na+ra];if(!is$1.und(aa))return aa;var sa=100,la=document.createElement(ea.tagName),ca=ea.parentNode&&ea.parentNode!==document?ea.parentNode:document.body;ca.appendChild(la),la.style.position="absolute",la.style.width=sa+ra;var ua=sa/la.offsetWidth;ca.removeChild(la);var da=ua*parseFloat(na);return cache$1.CSS[na+ra]=da,da}function getCSSValue(ea,na,ra){if(na in ea.style){var oa=na.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),aa=ea.style[na]||getComputedStyle(ea).getPropertyValue(oa)||"0";return ra?convertPxToUnit(ea,aa,ra):aa}}function getAnimationType(ea,na){if(is$1.dom(ea)&&!is$1.inp(ea)&&(!is$1.nil(getAttribute(ea,na))||is$1.svg(ea)&&ea[na]))return"attribute";if(is$1.dom(ea)&&arrayContains(validTransforms,na))return"transform";if(is$1.dom(ea)&&na!=="transform"&&getCSSValue(ea,na))return"css";if(ea[na]!=null)return"object"}function getElementTransforms(ea){if(is$1.dom(ea)){for(var na=ea.style.transform||"",ra=/(\w+)\(([^)]*)\)/g,oa=new Map,aa;aa=ra.exec(na);)oa.set(aa[1],aa[2]);return oa}}function getTransformValue(ea,na,ra,oa){var aa=stringContains(na,"scale")?1:0+getTransformUnit(na),sa=getElementTransforms(ea).get(na)||aa;return ra&&(ra.transforms.list.set(na,sa),ra.transforms.last=na),oa?convertPxToUnit(ea,sa,oa):sa}function getOriginalTargetValue(ea,na,ra,oa){switch(getAnimationType(ea,na)){case"transform":return getTransformValue(ea,na,oa,ra);case"css":return getCSSValue(ea,na,ra);case"attribute":return getAttribute(ea,na);default:return ea[na]||0}}function getRelativeValue(ea,na){var ra=/^(\*=|\+=|-=)/.exec(ea);if(!ra)return ea;var oa=getUnit(ea)||0,aa=parseFloat(na),sa=parseFloat(ea.replace(ra[0],""));switch(ra[0][0]){case"+":return aa+sa+oa;case"-":return aa-sa+oa;case"*":return aa*sa+oa}}function validateValue(ea,na){if(is$1.col(ea))return colorToRgb(ea);if(/\s/g.test(ea))return ea;var ra=getUnit(ea),oa=ra?ea.substr(0,ea.length-ra.length):ea;return na?oa+na:oa}function getDistance(ea,na){return Math.sqrt(Math.pow(na.x-ea.x,2)+Math.pow(na.y-ea.y,2))}function getCircleLength(ea){return Math.PI*2*getAttribute(ea,"r")}function getRectLength(ea){return getAttribute(ea,"width")*2+getAttribute(ea,"height")*2}function getLineLength(ea){return getDistance({x:getAttribute(ea,"x1"),y:getAttribute(ea,"y1")},{x:getAttribute(ea,"x2"),y:getAttribute(ea,"y2")})}function getPolylineLength(ea){for(var na=ea.points,ra=0,oa,aa=0;aa<na.numberOfItems;aa++){var sa=na.getItem(aa);aa>0&&(ra+=getDistance(oa,sa)),oa=sa}return ra}function getPolygonLength(ea){var na=ea.points;return getPolylineLength(ea)+getDistance(na.getItem(na.numberOfItems-1),na.getItem(0))}function getTotalLength(ea){if(ea.getTotalLength)return ea.getTotalLength();switch(ea.tagName.toLowerCase()){case"circle":return getCircleLength(ea);case"rect":return getRectLength(ea);case"line":return getLineLength(ea);case"polyline":return getPolylineLength(ea);case"polygon":return getPolygonLength(ea)}}function setDashoffset(ea){var na=getTotalLength(ea);return ea.setAttribute("stroke-dasharray",na),na}function getParentSvgEl(ea){for(var na=ea.parentNode;is$1.svg(na)&&is$1.svg(na.parentNode);)na=na.parentNode;return na}function getParentSvg(ea,na){var ra=na||{},oa=ra.el||getParentSvgEl(ea),aa=oa.getBoundingClientRect(),sa=getAttribute(oa,"viewBox"),la=aa.width,ca=aa.height,ua=ra.viewBox||(sa?sa.split(" "):[0,0,la,ca]);return{el:oa,viewBox:ua,x:ua[0]/1,y:ua[1]/1,w:la,h:ca,vW:ua[2],vH:ua[3]}}function getPath(ea,na){var ra=is$1.str(ea)?selectString(ea)[0]:ea,oa=na||100;return function(aa){return{property:aa,el:ra,svg:getParentSvg(ra),totalLength:getTotalLength(ra)*(oa/100)}}}function getPathProgress(ea,na,ra){function oa(pa){pa===void 0&&(pa=0);var ha=na+pa>=1?na+pa:0;return ea.el.getPointAtLength(ha)}var aa=getParentSvg(ea.el,ea.svg),sa=oa(),la=oa(-1),ca=oa(1),ua=ra?1:aa.w/aa.vW,da=ra?1:aa.h/aa.vH;switch(ea.property){case"x":return(sa.x-aa.x)*ua;case"y":return(sa.y-aa.y)*da;case"angle":return Math.atan2(ca.y-la.y,ca.x-la.x)*180/Math.PI}}function decomposeValue(ea,na){var ra=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,oa=validateValue(is$1.pth(ea)?ea.totalLength:ea,na)+"";return{original:oa,numbers:oa.match(ra)?oa.match(ra).map(Number):[0],strings:is$1.str(ea)||na?oa.split(ra):[]}}function parseTargets(ea){var na=ea?flattenArray(is$1.arr(ea)?ea.map(toArray$1):toArray$1(ea)):[];return filterArray(na,function(ra,oa,aa){return aa.indexOf(ra)===oa})}function getAnimatables(ea){var na=parseTargets(ea);return na.map(function(ra,oa){return{target:ra,id:oa,total:na.length,transforms:{list:getElementTransforms(ra)}}})}function normalizePropertyTweens(ea,na){var ra=cloneObject(na);if(/^spring/.test(ra.easing)&&(ra.duration=spring(ra.easing)),is$1.arr(ea)){var oa=ea.length,aa=oa===2&&!is$1.obj(ea[0]);aa?ea={value:ea}:is$1.fnc(na.duration)||(ra.duration=na.duration/oa)}var sa=is$1.arr(ea)?ea:[ea];return sa.map(function(la,ca){var ua=is$1.obj(la)&&!is$1.pth(la)?la:{value:la};return is$1.und(ua.delay)&&(ua.delay=ca?0:na.delay),is$1.und(ua.endDelay)&&(ua.endDelay=ca===sa.length-1?na.endDelay:0),ua}).map(function(la){return mergeObjects(la,ra)})}function flattenKeyframes(ea){for(var na=filterArray(flattenArray(ea.map(function(sa){return Object.keys(sa)})),function(sa){return is$1.key(sa)}).reduce(function(sa,la){return sa.indexOf(la)<0&&sa.push(la),sa},[]),ra={},oa=function(sa){var la=na[sa];ra[la]=ea.map(function(ca){var ua={};for(var da in ca)is$1.key(da)?da==la&&(ua.value=ca[da]):ua[da]=ca[da];return ua})},aa=0;aa<na.length;aa++)oa(aa);return ra}function getProperties(ea,na){var ra=[],oa=na.keyframes;oa&&(na=mergeObjects(flattenKeyframes(oa),na));for(var aa in na)is$1.key(aa)&&ra.push({name:aa,tweens:normalizePropertyTweens(na[aa],ea)});return ra}function normalizeTweenValues(ea,na){var ra={};for(var oa in ea){var aa=getFunctionValue(ea[oa],na);is$1.arr(aa)&&(aa=aa.map(function(sa){return getFunctionValue(sa,na)}),aa.length===1&&(aa=aa[0])),ra[oa]=aa}return ra.duration=parseFloat(ra.duration),ra.delay=parseFloat(ra.delay),ra}function normalizeTweens(ea,na){var ra;return ea.tweens.map(function(oa){var aa=normalizeTweenValues(oa,na),sa=aa.value,la=is$1.arr(sa)?sa[1]:sa,ca=getUnit(la),ua=getOriginalTargetValue(na.target,ea.name,ca,na),da=ra?ra.to.original:ua,pa=is$1.arr(sa)?sa[0]:da,ha=getUnit(pa)||getUnit(ua),ga=ca||ha;return is$1.und(la)&&(la=da),aa.from=decomposeValue(pa,ga),aa.to=decomposeValue(getRelativeValue(la,pa),ga),aa.start=ra?ra.end:0,aa.end=aa.start+aa.delay+aa.duration+aa.endDelay,aa.easing=parseEasings(aa.easing,aa.duration),aa.isPath=is$1.pth(sa),aa.isPathTargetInsideSVG=aa.isPath&&is$1.svg(na.target),aa.isColor=is$1.col(aa.from.original),aa.isColor&&(aa.round=1),ra=aa,aa})}var setProgressValue={css:function(ea,na,ra){return ea.style[na]=ra},attribute:function(ea,na,ra){return ea.setAttribute(na,ra)},object:function(ea,na,ra){return ea[na]=ra},transform:function(ea,na,ra,oa,aa){if(oa.list.set(na,ra),na===oa.last||aa){var sa="";oa.list.forEach(function(la,ca){sa+=ca+"("+la+") "}),ea.style.transform=sa}}};function setTargetsValue(ea,na){var ra=getAnimatables(ea);ra.forEach(function(oa){for(var aa in na){var sa=getFunctionValue(na[aa],oa),la=oa.target,ca=getUnit(sa),ua=getOriginalTargetValue(la,aa,ca,oa),da=ca||getUnit(ua),pa=getRelativeValue(validateValue(sa,da),ua),ha=getAnimationType(la,aa);setProgressValue[ha](la,aa,pa,oa.transforms,!0)}})}function createAnimation(ea,na){var ra=getAnimationType(ea.target,na.name);if(ra){var oa=normalizeTweens(na,ea),aa=oa[oa.length-1];return{type:ra,property:na.name,animatable:ea,tweens:oa,duration:aa.end,delay:oa[0].delay,endDelay:aa.endDelay}}}function getAnimations(ea,na){return filterArray(flattenArray(ea.map(function(ra){return na.map(function(oa){return createAnimation(ra,oa)})})),function(ra){return!is$1.und(ra)})}function getInstanceTimings(ea,na){var ra=ea.length,oa=function(sa){return sa.timelineOffset?sa.timelineOffset:0},aa={};return aa.duration=ra?Math.max.apply(Math,ea.map(function(sa){return oa(sa)+sa.duration})):na.duration,aa.delay=ra?Math.min.apply(Math,ea.map(function(sa){return oa(sa)+sa.delay})):na.delay,aa.endDelay=ra?aa.duration-Math.max.apply(Math,ea.map(function(sa){return oa(sa)+sa.duration-sa.endDelay})):na.endDelay,aa}var instanceID=0;function createNewInstance(ea){var na=replaceObjectProps(defaultInstanceSettings,ea),ra=replaceObjectProps(defaultTweenSettings,ea),oa=getProperties(ra,ea),aa=getAnimatables(ea.targets),sa=getAnimations(aa,oa),la=getInstanceTimings(sa,ra),ca=instanceID;return instanceID++,mergeObjects(na,{id:ca,children:[],animatables:aa,animations:sa,duration:la.duration,delay:la.delay,endDelay:la.endDelay})}var activeInstances=[],engine=function(){var ea;function na(){!ea&&(!isDocumentHidden()||!anime.suspendWhenDocumentHidden)&&activeInstances.length>0&&(ea=requestAnimationFrame(ra))}function ra(aa){for(var sa=activeInstances.length,la=0;la<sa;){var ca=activeInstances[la];ca.paused?(activeInstances.splice(la,1),sa--):(ca.tick(aa),la++)}ea=la>0?requestAnimationFrame(ra):void 0}function oa(){anime.suspendWhenDocumentHidden&&(isDocumentHidden()?ea=cancelAnimationFrame(ea):(activeInstances.forEach(function(aa){return aa._onDocumentVisibility()}),engine()))}return typeof document<"u"&&document.addEventListener("visibilitychange",oa),na}();function isDocumentHidden(){return!!document&&document.hidden}function anime(ea){ea===void 0&&(ea={});var na=0,ra=0,oa=0,aa,sa=0,la=null;function ca(Aa){var Ca=window.Promise&&new Promise(function(Sa){return la=Sa});return Aa.finished=Ca,Ca}var ua=createNewInstance(ea);ca(ua);function da(){var Aa=ua.direction;Aa!=="alternate"&&(ua.direction=Aa!=="normal"?"normal":"reverse"),ua.reversed=!ua.reversed,aa.forEach(function(Ca){return Ca.reversed=ua.reversed})}function pa(Aa){return ua.reversed?ua.duration-Aa:Aa}function ha(){na=0,ra=pa(ua.currentTime)*(1/anime.speed)}function ga(Aa,Ca){Ca&&Ca.seek(Aa-Ca.timelineOffset)}function fa(Aa){if(ua.reversePlayback)for(var Sa=sa;Sa--;)ga(Aa,aa[Sa]);else for(var Ca=0;Ca<sa;Ca++)ga(Aa,aa[Ca])}function ma(Aa){for(var Ca=0,Sa=ua.animations,wa=Sa.length;Ca<wa;){var ba=Sa[Ca],Ea=ba.animatable,$a=ba.tweens,Ma=$a.length-1,Ia=$a[Ma];Ma&&(Ia=filterArray($a,function(tl){return Aa<tl.end})[0]||Ia);for(var Oa=minMax(Aa-Ia.start-Ia.delay,0,Ia.duration)/Ia.duration,Da=isNaN(Oa)?1:Ia.easing(Oa),Ta=Ia.to.strings,_a=Ia.round,La=[],Na=Ia.to.numbers.length,za=void 0,Fa=0;Fa<Na;Fa++){var Ha=void 0,Va=Ia.to.numbers[Fa],Ua=Ia.from.numbers[Fa]||0;Ia.isPath?Ha=getPathProgress(Ia.value,Da*Va,Ia.isPathTargetInsideSVG):Ha=Ua+Da*(Va-Ua),_a&&(Ia.isColor&&Fa>2||(Ha=Math.round(Ha*_a)/_a)),La.push(Ha)}var Qa=Ta.length;if(!Qa)za=La[0];else{za=Ta[0];for(var Wa=0;Wa<Qa;Wa++){Ta[Wa];var Za=Ta[Wa+1],Xa=La[Wa];isNaN(Xa)||(Za?za+=Xa+Za:za+=Xa+" ")}}setProgressValue[ba.type](Ea.target,ba.property,za,Ea.transforms),ba.currentValue=za,Ca++}}function va(Aa){ua[Aa]&&!ua.passThrough&&ua[Aa](ua)}function xa(){ua.remaining&&ua.remaining!==!0&&ua.remaining--}function ya(Aa){var Ca=ua.duration,Sa=ua.delay,wa=Ca-ua.endDelay,ba=pa(Aa);ua.progress=minMax(ba/Ca*100,0,100),ua.reversePlayback=ba<ua.currentTime,aa&&fa(ba),!ua.began&&ua.currentTime>0&&(ua.began=!0,va("begin")),!ua.loopBegan&&ua.currentTime>0&&(ua.loopBegan=!0,va("loopBegin")),ba<=Sa&&ua.currentTime!==0&&ma(0),(ba>=wa&&ua.currentTime!==Ca||!Ca)&&ma(Ca),ba>Sa&&ba<wa?(ua.changeBegan||(ua.changeBegan=!0,ua.changeCompleted=!1,va("changeBegin")),va("change"),ma(ba)):ua.changeBegan&&(ua.changeCompleted=!0,ua.changeBegan=!1,va("changeComplete")),ua.currentTime=minMax(ba,0,Ca),ua.began&&va("update"),Aa>=Ca&&(ra=0,xa(),ua.remaining?(na=oa,va("loopComplete"),ua.loopBegan=!1,ua.direction==="alternate"&&da()):(ua.paused=!0,ua.completed||(ua.completed=!0,va("loopComplete"),va("complete"),!ua.passThrough&&"Promise"in window&&(la(),ca(ua)))))}return ua.reset=function(){var Aa=ua.direction;ua.passThrough=!1,ua.currentTime=0,ua.progress=0,ua.paused=!0,ua.began=!1,ua.loopBegan=!1,ua.changeBegan=!1,ua.completed=!1,ua.changeCompleted=!1,ua.reversePlayback=!1,ua.reversed=Aa==="reverse",ua.remaining=ua.loop,aa=ua.children,sa=aa.length;for(var Ca=sa;Ca--;)ua.children[Ca].reset();(ua.reversed&&ua.loop!==!0||Aa==="alternate"&&ua.loop===1)&&ua.remaining++,ma(ua.reversed?ua.duration:0)},ua._onDocumentVisibility=ha,ua.set=function(Aa,Ca){return setTargetsValue(Aa,Ca),ua},ua.tick=function(Aa){oa=Aa,na||(na=oa),ya((oa+(ra-na))*anime.speed)},ua.seek=function(Aa){ya(pa(Aa))},ua.pause=function(){ua.paused=!0,ha()},ua.play=function(){ua.paused&&(ua.completed&&ua.reset(),ua.paused=!1,activeInstances.push(ua),ha(),engine())},ua.reverse=function(){da(),ua.completed=!ua.reversed,ha()},ua.restart=function(){ua.reset(),ua.play()},ua.remove=function(Aa){var Ca=parseTargets(Aa);removeTargetsFromInstance(Ca,ua)},ua.reset(),ua.autoplay&&ua.play(),ua}function removeTargetsFromAnimations(ea,na){for(var ra=na.length;ra--;)arrayContains(ea,na[ra].animatable.target)&&na.splice(ra,1)}function removeTargetsFromInstance(ea,na){var ra=na.animations,oa=na.children;removeTargetsFromAnimations(ea,ra);for(var aa=oa.length;aa--;){var sa=oa[aa],la=sa.animations;removeTargetsFromAnimations(ea,la),!la.length&&!sa.children.length&&oa.splice(aa,1)}!ra.length&&!oa.length&&na.pause()}function removeTargetsFromActiveInstances(ea){for(var na=parseTargets(ea),ra=activeInstances.length;ra--;){var oa=activeInstances[ra];removeTargetsFromInstance(na,oa)}}function stagger(ea,na){na===void 0&&(na={});var ra=na.direction||"normal",oa=na.easing?parseEasings(na.easing):null,aa=na.grid,sa=na.axis,la=na.from||0,ca=la==="first",ua=la==="center",da=la==="last",pa=is$1.arr(ea),ha=parseFloat(pa?ea[0]:ea),ga=pa?parseFloat(ea[1]):0,fa=getUnit(pa?ea[1]:ea)||0,ma=na.start||0+(pa?ha:0),va=[],xa=0;return function(ya,Aa,Ca){if(ca&&(la=0),ua&&(la=(Ca-1)/2),da&&(la=Ca-1),!va.length){for(var Sa=0;Sa<Ca;Sa++){if(!aa)va.push(Math.abs(la-Sa));else{var wa=ua?(aa[0]-1)/2:la%aa[0],ba=ua?(aa[1]-1)/2:Math.floor(la/aa[0]),Ea=Sa%aa[0],$a=Math.floor(Sa/aa[0]),Ma=wa-Ea,Ia=ba-$a,Oa=Math.sqrt(Ma*Ma+Ia*Ia);sa==="x"&&(Oa=-Ma),sa==="y"&&(Oa=-Ia),va.push(Oa)}xa=Math.max.apply(Math,va)}oa&&(va=va.map(function(Ta){return oa(Ta/xa)*xa})),ra==="reverse"&&(va=va.map(function(Ta){return sa?Ta<0?Ta*-1:-Ta:Math.abs(xa-Ta)}))}var Da=pa?(ga-ha)/xa:ha;return ma+Da*(Math.round(va[Aa]*100)/100)+fa}}function timeline(ea){ea===void 0&&(ea={});var na=anime(ea);return na.duration=0,na.add=function(ra,oa){var aa=activeInstances.indexOf(na),sa=na.children;aa>-1&&activeInstances.splice(aa,1);function la(ga){ga.passThrough=!0}for(var ca=0;ca<sa.length;ca++)la(sa[ca]);var ua=mergeObjects(ra,replaceObjectProps(defaultTweenSettings,ea));ua.targets=ua.targets||ea.targets;var da=na.duration;ua.autoplay=!1,ua.direction=na.direction,ua.timelineOffset=is$1.und(oa)?da:getRelativeValue(oa,da),la(na),na.seek(ua.timelineOffset);var pa=anime(ua);la(pa),sa.push(pa);var ha=getInstanceTimings(sa,ea);return na.delay=ha.delay,na.endDelay=ha.endDelay,na.duration=ha.duration,na.seek(0),na.reset(),na.autoplay&&na.play(),na},na}anime.version="3.2.1";anime.speed=1;anime.suspendWhenDocumentHidden=!0;anime.running=activeInstances;anime.remove=removeTargetsFromActiveInstances;anime.get=getOriginalTargetValue;anime.set=setTargetsValue;anime.convertPx=convertPxToUnit;anime.path=getPath;anime.setDashoffset=setDashoffset;anime.stagger=stagger;anime.timeline=timeline;anime.easing=parseEasings;anime.penner=penner;anime.random=function(ea,na){return Math.floor(Math.random()*(na-ea+1))+ea};const PreviewAnimationButton=({value:ea,disableAnimOnChange:na,onBeforeAnimationStart:ra,onAfterAnimationEnd:oa,onChange:aa,...sa})=>{const{params:{easing:la,duration:ca},phase:ua,type:da,timelineOptions:pa}=ea,ha=useDispatch(),ga=reactExports.useRef(null),fa=reactExports.useRef(ea.params),ma=reactExports.useRef([]),va=reactExports.useRef(""),xa=reactExports.useCallback(ba=>{ga.current&&anime({targets:ga.current,easing:la||"linear",duration:ca||1e3,delay:0,backgroundPosition:["100% 100%","0% 100%"],loop:!0,loopComplete:()=>{ba?.()}}),ha(changeProvisionalAnimation({type:da,params:{...ea.params,delay:0},phase:ua,timelineOptions:pa}))},[ha,ca,la,ua,pa,da,ea.params]),ya=reactExports.useCallback(()=>{ga.current&&(anime.remove(ga.current),ga.current.style.backgroundPosition="right bottom"),ha(removeProvisionalAnimation())},[ha]),Aa=useSelector(getSelectedElements),Ca=useSelector(getActiveBreakpoint);reactExports.useEffect(()=>()=>{ya()},[ya]),reactExports.useEffect(()=>{!na&&!isEqual$1(ea.params,fa.current)&&isEqual$1(ma.current,Aa)&&Ca===va.current&&(xa(ya),fa.current=ea.params),va.current=Ca,ma.current=Aa},[ea.params,xa,ya,Aa,Ca,na]);const Sa=reactExports.useCallback(()=>{ra?.(),xa()},[ra,xa]),wa=reactExports.useCallback(()=>{ya(),oa?.()},[oa,ya]);return jsxRuntimeExports.jsx(OutlineButton$1,{onMouseEnter:Sa,onMouseLeave:wa,ref:ba=>{ba&&(ga.current=ba)},size:"small",...sa,children:i18next.t("Preview Animation")})},PreviewAnimationButton$1=dt$1(PreviewAnimationButton).withConfig({displayName:"PreviewAnimationButton",componentId:"sc-3ihqnb-0"})(["width:100%;justify-content:center;background:linear-gradient(to right,rgba(73,128,245,1) 50%,transparent 50%);background-size:200% 100%;background-position:right bottom;text-transform:uppercase;&:hover{span{color:#fff !important;}background-color:transparent !important;}"]),ClearAnimationButton=({onChange:ea,...na})=>{const ra=()=>{ea&&ea(void 0)};return jsxRuntimeExports.jsx(OutlineButton$1,{onClick:ra,size:"small",...na,children:i18next.t("Clear Animation")})},ClearAnimationButton$1=dt$1(ClearAnimationButton).withConfig({displayName:"ClearAnimationButton",componentId:"sc-uuxb7t-0"})(["width:100%;justify-content:center;text-transform:uppercase;"]),PreviewAllAnimationButton=({value:ea,onChange:na,...ra})=>{const oa=useDispatch(),aa=reactExports.useRef(null),sa=()=>{aa.current&&anime({targets:aa.current,easing:"easeOutQuad",duration:800,delay:0,direction:"alternate",loop:!0,background:["rgba(73,128,245,1)","rgba(73,128,245,0.7)"]}),oa(updateSectionPreviewState("activated"))},la=()=>{aa.current&&(anime.remove(aa.current),aa.current.style.background="transparent"),oa(updateSectionPreviewState("deactivated"))};return jsxRuntimeExports.jsx(OutlineButton$1,{onMouseEnter:sa,onMouseLeave:la,ref:ca=>{ca&&(aa.current=ca)},onClick:ca=>{ca.stopPropagation()},size:"small",...ra,children:i18next.t("Preview All Animations")})},PreviewAllAnimationButton$1=dt$1(PreviewAllAnimationButton).withConfig({displayName:"PreviewAllAnimationButton",componentId:"sc-1fys9m1-0"})(["width:100%;justify-content:center;text-transform:uppercase;&:hover{span{color:#fff;}border-color:transparent;}"]);/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function isObject$2(ea){return Object.prototype.toString.call(ea)==="[object Object]"}function isPlainObject$2(ea){var na,ra;return isObject$2(ea)===!1?!1:(na=ea.constructor,na===void 0?!0:(ra=na.prototype,!(isObject$2(ra)===!1||ra.hasOwnProperty("isPrototypeOf")===!1)))}const breakpoints={default:Number.MAX_VALUE,tablet:1024,mobile:767},breakpointKeys=Object.keys(breakpoints),breakpointBoxes={default:null,tablet:{width:breakpoints.tablet,height:768},mobile:{width:breakpoints.mobile,height:800}},breakpointsOrder=Object.keys(breakpoints).sort((ea,na)=>breakpoints[ea]-breakpoints[na]),orderedBreakpointBoxes=breakpointsOrder.map(ea=>{const na=breakpointBoxes[ea];return na?{name:ea,width:na.width,height:na.height}:{name:ea}}),getResponsiveValue=(ea,na,ra=!0)=>{if(!isPlainObject$2(ea))return ea;let oa;const aa=ea;return breakpointsOrder.slice(breakpointsOrder.indexOf(na)).every((sa,la,ca)=>Object.hasOwn(aa,sa)?(oa=aa[sa],ra&&isPlainObject$2(oa)&&(oa=ca.slice(la).reduceRight((ua,da)=>({...ua,...aa[da]}),oa)),!1):!0),oa},setResponsiveValue=(ea,na,ra,oa=!1,aa,sa=!1)=>{const la={};if(na==null||isEmptyObject(na))la.default=ea;else if(!oa)la[ra]=ea;else{const ca=getResponsiveValue(na,ra);isPlainObject$2(ca)&&isPlainObject$2(ea)?la[ra]=deepmerge(ca,ea,{arrayMerge:(ua,da)=>da}):la[ra]=ea}return sa?{...na,...la}:la},changeResponsiveValue=(ea,na)=>{const ra={};return Object.keys(ea).forEach(oa=>{ra[oa]=na(ea[oa])}),ra};var kindOf,hasRequiredKindOf;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var ea=Object.prototype.toString;kindOf=function(ha){if(ha===void 0)return"undefined";if(ha===null)return"null";var ga=typeof ha;if(ga==="boolean")return"boolean";if(ga==="string")return"string";if(ga==="number")return"number";if(ga==="symbol")return"symbol";if(ga==="function")return la(ha)?"generatorfunction":"function";if(ra(ha))return"array";if(da(ha))return"buffer";if(ua(ha))return"arguments";if(aa(ha))return"date";if(oa(ha))return"error";if(sa(ha))return"regexp";switch(na(ha)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(ca(ha))return"generator";switch(ga=ea.call(ha),ga){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return ga.slice(8,-1).toLowerCase().replace(/\s/g,"")};function na(pa){return typeof pa.constructor=="function"?pa.constructor.name:null}function ra(pa){return Array.isArray?Array.isArray(pa):pa instanceof Array}function oa(pa){return pa instanceof Error||typeof pa.message=="string"&&pa.constructor&&typeof pa.constructor.stackTraceLimit=="number"}function aa(pa){return pa instanceof Date?!0:typeof pa.toDateString=="function"&&typeof pa.getDate=="function"&&typeof pa.setDate=="function"}function sa(pa){return pa instanceof RegExp?!0:typeof pa.flags=="string"&&typeof pa.ignoreCase=="boolean"&&typeof pa.multiline=="boolean"&&typeof pa.global=="boolean"}function la(pa,ha){return na(pa)==="GeneratorFunction"}function ca(pa){return typeof pa.throw=="function"&&typeof pa.return=="function"&&typeof pa.next=="function"}function ua(pa){try{if(typeof pa.length=="number"&&typeof pa.callee=="function")return!0}catch(ha){if(ha.message.indexOf("callee")!==-1)return!0}return!1}function da(pa){return pa.constructor&&typeof pa.constructor.isBuffer=="function"?pa.constructor.isBuffer(pa):!1}return kindOf}/*!
 * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
 *
 * Copyright (c) 2015-present, Jon Schlinkert.
 * Released under the MIT License.
 */var shallowClone,hasRequiredShallowClone;function requireShallowClone(){if(hasRequiredShallowClone)return shallowClone;hasRequiredShallowClone=1;const ea=Symbol.prototype.valueOf,na=requireKindOf();function ra(ua,da){switch(na(ua)){case"array":return ua.slice();case"object":return Object.assign({},ua);case"date":return new ua.constructor(Number(ua));case"map":return new Map(ua);case"set":return new Set(ua);case"buffer":return la(ua);case"symbol":return ca(ua);case"arraybuffer":return aa(ua);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return sa(ua);case"regexp":return oa(ua);case"error":return Object.create(ua);default:return ua}}function oa(ua){const da=ua.flags!==void 0?ua.flags:/\w+$/.exec(ua)||void 0,pa=new ua.constructor(ua.source,da);return pa.lastIndex=ua.lastIndex,pa}function aa(ua){const da=new ua.constructor(ua.byteLength);return new Uint8Array(da).set(new Uint8Array(ua)),da}function sa(ua,da){return new ua.constructor(ua.buffer,ua.byteOffset,ua.length)}function la(ua){const da=ua.length,pa=Buffer.allocUnsafe?Buffer.allocUnsafe(da):Buffer.from(da);return ua.copy(pa),pa}function ca(ua){return ea?Object(ea.call(ua)):{}}return shallowClone=ra,shallowClone}/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var isobject,hasRequiredIsobject;function requireIsobject(){return hasRequiredIsobject||(hasRequiredIsobject=1,isobject=function(na){return na!=null&&typeof na=="object"&&Array.isArray(na)===!1}),isobject}/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var isPlainObject$1,hasRequiredIsPlainObject$1;function requireIsPlainObject$1(){if(hasRequiredIsPlainObject$1)return isPlainObject$1;hasRequiredIsPlainObject$1=1;var ea=requireIsobject();function na(ra){return ea(ra)===!0&&Object.prototype.toString.call(ra)==="[object Object]"}return isPlainObject$1=function(oa){var aa,sa;return!(na(oa)===!1||(aa=oa.constructor,typeof aa!="function")||(sa=aa.prototype,na(sa)===!1)||sa.hasOwnProperty("isPrototypeOf")===!1)},isPlainObject$1}var cloneDeep_1$1,hasRequiredCloneDeep$1;function requireCloneDeep$1(){if(hasRequiredCloneDeep$1)return cloneDeep_1$1;hasRequiredCloneDeep$1=1;const ea=requireShallowClone(),na=requireKindOf(),ra=requireIsPlainObject$1();function oa(la,ca){switch(na(la)){case"object":return aa(la,ca);case"array":return sa(la,ca);default:return ea(la)}}function aa(la,ca){if(typeof ca=="function")return ca(la);if(ca||ra(la)){const ua=new la.constructor;for(let da in la)ua[da]=oa(la[da],ca);return ua}return la}function sa(la,ca){const ua=new la.constructor(la.length);for(let da=0;da<la.length;da++)ua[da]=oa(la[da],ca);return ua}return cloneDeep_1$1=oa,cloneDeep_1$1}var cloneDeepExports=requireCloneDeep$1();const cloneDeep=getDefaultExportFromCjs(cloneDeepExports),specialSizeValues=["auto","fit-content","fill-parent"],cloneElement=(ea,na,ra,oa,aa,sa)=>{const la=cloneDeep(ea[na]),ca=ra||generateId("element");return la.parent=oa,sa&&(la.section=sa),la.id=ca,la.locked=!1,increaseMaxTypeCount(la.type),la.name=generateName(la.type,getElementName(la.type)),aa&&(la.position=changeResponsiveValue(la.position,ua=>(ua.x.value+=ua.x.unit==="px"?30:3,ua.y.value+=ua.y.unit==="px"?30:3,ua))),la.children=la.children?.map(ua=>cloneElement(ea,ua,void 0,ca,!1,sa)),isElement(oa)&&ea[oa]&&(ea[oa].children||(ea[oa].children=[]),ea[oa].children.includes(ca)||ea[oa].children.push(ca)),ea[ca]=la,ca},delElement=(ea,na,ra)=>{ea[na].children?.slice().forEach(oa=>delElement(ea,oa,na)),isElement(ra)&&removeArrayIndex(ea[ra].children,na),delete ea[na]},getGroupOffset=(ea,na,ra,oa)=>{const aa=na.map(ua=>ra[ua].boundaries),sa={x:{value:Math.min(...aa.map(ua=>ua.x))-oa.x,unit:"px"},y:{value:Math.min(...aa.map(ua=>ua.y))-oa.y,unit:"px"},origin:"tl",autoOrigin:!0},la={width:{value:Math.max(...aa.map(ua=>ua.right-oa.x))-sa.x?.value,unit:"px"},height:{value:Math.max(...aa.map(ua=>ua.bottom-oa.y))-sa.y?.value,unit:"px"}},ca={x:sa.x.value,y:sa.y.value,left:sa.x.value,top:sa.y.value,width:la.width.value,height:la.height.value};return ca.bottom=ca.y+ca.height,ca.right=ca.x+ca.width,{size:la,position:sa,boundaries:ca,depth:Math.max(...na.map(ua=>ea[ua].depth))}},mapPosition=(ea,na,ra)=>{const oa=ra.origin?.charAt(0)||"t",aa=ra.origin?.charAt(1)||"l",sa={...ea},la={...na},ca={...ra};if(ra.x.unit==="%")ca.x=ra.x;else switch(aa){case"l":default:ca.x={unit:"px",value:ra.x.value+(sa.x-la.x)};break;case"r":ca.x={unit:"px",value:ra.x.value-(sa.x+sa.width-(la.x+la.width))};break;case"c":ca.x={unit:"px",value:ra.x.value+(sa.x+sa.width/2-(la.x+la.width/2))}}if(ra.y.unit==="%")ca.y=ra.y;else switch(oa){case"t":default:ca.y={unit:"px",value:ra.y.value+(sa.y-la.y)};break;case"b":ca.y={unit:"px",value:ra.y.value-(sa.y+sa.height-(la.y+la.height))};break;case"m":ca.y={unit:"px",value:ra.y.value+(sa.y+sa.height/2-(la.y+la.height/2))}}return ca},findNearOriginPoint=(ea,na,ra)=>{const{x:oa,y:aa}=ea,{width:sa,height:la}=na,{width:ca,height:ua}=ra,da=["m"],pa=["l","c","r"],ha=[Math.abs(ua/2-aa-la/2)],ga=[oa,Math.abs(ca/2-oa-sa/2),Math.abs(ca-oa-sa)];return da[ha.indexOf(Math.min(...ha))]+pa[ga.indexOf(Math.min(...ga))]},calcElementPosition=(ea,na,ra,oa,aa)=>{const{autoOrigin:sa=!1,x:{unit:la},y:{unit:ca}}=ea;let{origin:ua}=ea;sa?ua=aa||findNearOriginPoint(na,ra,oa):ua||(ua="tl");const[da,pa]=ua.split(""),{width:ha,height:ga}=oa,{width:fa,height:ma}=ra,va={origin:ua,autoOrigin:sa,x:{unit:la,value:na.x},y:{unit:ca,value:na.y}};return pa==="r"?va.x.value=ha-na.x-fa:pa==="c"&&(va.x.value=na.x-Math.round(ha/2-fa/2)),la==="%"?va.x.value=limitFloatRange$1(va.x.value/ha*100,2):va.x.value=Math.round(va.x.value),da==="b"?va.y.value=ga-na.y-ma:da==="m"&&(va.y.value=na.y-Math.round(ga/2-ma/2)),ca==="%"?va.y.value=limitFloatRange$1(va.y.value/ga*100,2):va.y.value=Math.round(va.y.value),va},mapPositionToOrigin=(ea,na,ra,oa,aa)=>na===ea.origin?ea:calcElementPosition({...ea,origin:na,autoOrigin:!1},ra,oa,aa),calcElementSize=(ea,na,ra,oa,aa)=>{const{width:sa,height:la}=ea,{width:ca,height:ua}=oa,{width:da,height:pa}=na,ha=typeof sa=="string"&&specialSizeValues.includes(sa),ga=typeof la=="string"&&specialSizeValues.includes(la),fa={width:ha&&Math.abs(ca-da)<1?sa:sa?.unit==="%"?{value:limitFloatRange$1(da/ra.width*100,2),unit:"%"}:{unit:"px",value:da}};return aa&&(fa.height=ga&&Math.abs(ua-pa)<1?la:la?.unit==="%"?{value:limitFloatRange$1(pa/ra.height*100,2),unit:"%"}:{value:pa,unit:"px"}),fa},calcElementPositionByAlignment=(ea,na,ra,oa)=>{const aa=["left","center","right"].includes(ea)?"x":"y",{width:sa,height:la}=na;let ca=oa?na[aa]:0;switch(ea){case"left":case"top":break;case"right":ca+=sa-ra.width;break;case"center":ca+=(sa-ra.width)/2;break;case"bottom":ca+=la-ra.height;break;case"middle":ca+=(la-ra.height)/2;break}return[ca,aa]},getActiveSection$1=ea=>ea.document.env.activeSection,getSectionsComputedValues=ea=>ea.computedValues.sections,getSectionComputedValues=ea=>createSelector([getSectionsComputedValues],na=>na[ea]),getSectionBoundaries=ea=>createSelector([getSectionsComputedValues],na=>na[ea]?.boundaries),getSectionWrapperBoundaries=ea=>createSelector([getSectionsComputedValues],na=>na[ea]?.wrapperBoundaries),getActiveSectionComputedValues=createSelector([getActiveSection$1,getSectionsComputedValues],(ea,na)=>na[ea]||{}),getActiveSectionBoundaries=createSelector([getActiveSection$1,getSectionsComputedValues],(ea,na)=>na[ea].boundaries),getActiveSectionRelativeWrapperBoundaries=createSelector([getActiveSectionComputedValues],ea=>{const{wrapperBoundaries:na,boundaries:ra}=ea;if(!(!na||!ra))return{...na,x:na.x-ra.x,y:na.y-ra.y,left:na.left-ra.left,top:na.top-ra.top,right:na.x-ra.x+na.width,bottom:na.y-ra.y+na.height}}),getSelectedElements$1=ea=>ea.document.env.selectedElements,getSelectedElementsData$1=createSelector([getSelectedElements$1,getElements],(ea,na)=>{const ra={};return ea.map(oa=>na[oa]).forEach(oa=>{ra[oa.id]=oa}),ra}),getElementsComputedValues=ea=>ea.computedValues.elements,getElementComputedValues=ea=>createSelector([getElementsComputedValues],na=>na[ea]),getElementBoundaries=ea=>createSelector([getElementsComputedValues],na=>na[ea]?.boundaries),getElementComputedSize=createSelector([getElementsComputedValues],ea=>na=>{if(ea[na])return ea[na].size}),getElementParentBoundaries=ea=>createSelector([getElements,getActiveSection$1,getSectionsComputedValues,getElementsComputedValues],(na,ra,oa,aa)=>{const{parent:sa,wrap:la}=na[ea];let ca;if(isSection(sa)){const ua=oa[sa];ua&&(ca=la?ua.wrapperBoundaries:ua.boundaries)}else isForeground(sa)?ca=la?oa[ra]?.wrapperBoundaries:oa[ra]?.boundaries:ca=aa[sa]?.boundaries;return ca}),getSelectedElementsComputedValues=createSelector([getSelectedElements$1,getElementsComputedValues],(ea,na)=>{const ra={};return ea.forEach(oa=>{na[oa]&&(ra[oa]=na[oa])}),ra}),findElementParentSize=(ea,na,ra,oa)=>{const{parent:aa,wrap:sa}=ea;let la;if(aa){if(isSection(aa)){const ca=na[aa];if(!ca)return;const{wrapperBoundaries:ua,boundaries:da}=ca;la=sa?ua:da}else if(isForeground(aa)){const{wrapperBoundaries:ca,boundaries:ua}=na[oa];la=sa?ca:ua}else{const ca=ra[aa];if(!ca)return;la=ca.size}if(la)return la}},getSelectedElementsParentSizes=createSelector([getSelectedElementsData$1,getElementsComputedValues,getSectionsComputedValues,getActiveSection$1],(ea,na,ra,oa)=>{const aa={};return Object.keys(ea).forEach(la=>{aa[la]=findElementParentSize(ea[la],ra,na,oa)}),aa});createSelector([getSelectedElementsComputedValues],ea=>{if(Object.values(ea).length)return unionBoundaries(Object.values(ea).map(na=>na.boundaries))});const getSelectedElementsTLOriginPosition=createSelector([getSelectedElementsData$1,getElementsComputedValues,getSelectedElementsParentSizes],(ea,na,ra)=>objectMap(ea,(oa,aa)=>objectMap(oa.position,(sa,la)=>na[aa]&&ra[aa]&&sa?mapPositionToOrigin(getResponsiveValue(oa.position,la),"tl",na[aa].position,na[aa].boundaries,ra[aa]):sa))),getForegroundElements=ea=>ea.document.foregroundElements,getForegroundElementsData=createSelector([getForegroundElements,getAllElementsData],(ea,na)=>{const ra={};return ea.forEach(oa=>{ra[oa]=na[oa]}),ra}),getForegroundElementsDataWithChildren=createSelector([getForegroundElements,getAllElementsData],(ea,na)=>{const ra={},oa=aa=>{const sa=na[aa];!sa||ra[aa]||(ra[aa]=sa,sa.children?.forEach(la=>{oa(la)}))};return ea.forEach(aa=>{oa(aa)}),ra}),getSectionData=ea=>createSelector([getSections],na=>na[ea]),getSectionNamesMap=createSelector([getSections],ea=>{const na=new Map;return Object.values(ea).forEach(ra=>na.set(ra.id,ra.name||ra.id)),na}),getSectionCropperToolData=ea=>na=>{if(!ea)return;const{background:ra,options:oa}=getSectionData(ea)(na),aa=getSectionComputedValues(ea)(na),sa=aa?.clientSize,la=getActiveBreakpoint(na),ca=getResponsiveValue(ra?.image?.cropData,la),ua=getResponsiveValue(ra.image?.src,la);if(!aa||!sa||!ca)return;const da=0,pa={...sa};return{cropData:{...ca,cropSize:pa,offset:{x:0,y:0},rotation:da},source:ua,hasDynamicTag:oa?.hasDynamicTag,type:"image",id:ea,target:"section"}},getKenBurnsCropperToolData=ea=>na=>{if(!ea)return;const ra=getActiveBreakpoint(na),oa=getSectionCropperToolData(ea)(na),aa=getResponsiveValue(getActiveSectionKenBurnsData(na),ra);if(!oa||!aa)return;const{params:sa,mediaSize:la}=aa;return{...oa,cropData:{...oa?.cropData,mediaSize:la||oa.cropData.mediaSize,focalPoint:sa?.focalPoint||oa.cropData.focalPoint}}},getElementData=ea=>createSelector([getElements],na=>na[ea]),getElementsData=ea=>na=>{const ra={};return ea.forEach(oa=>{ra[oa]=na.document.elements[oa]}),ra},getChildrenElementsData=ea=>na=>{const ra=getElementData(ea)(na).children||[];return getElementsData(ra)(na)},getElementParentData=ea=>na=>{const ra=getElements(na),{parent:oa}=ra[ea];let aa;if(isElement(oa)?aa=ra[oa]:isForeground(oa)?aa=getActiveSectionData(na):aa=getSectionData(oa)(na),!aa)throw new Error("Could not find the element's parent.");return aa},getChildren=ea=>na=>isSection(ea)?getSectionData(ea)(na).elements:isForeground(ea)?getForegroundElements(na):getElements(na)[ea].children,getSiblings=ea=>na=>{const{parent:ra}=getElementData(ea)(na);return getChildren(ra)(na)},getSiblingsDepthArray=ea=>na=>{const ra=getSiblings(ea)(na),oa=getElements(na);return ra?ra.slice().sort((aa,sa)=>{const la=oa[aa],ca=oa[sa];if(ca.depth!==la.depth)return la.depth-ca.depth;const[,ua]=la.id.split("-"),[,da]=ca.id.split("-");return parseInt(ua,10)-parseInt(da,10)}):[]},getElementExportedData=(ea,na)=>ra=>{const oa=getElementData(ea)(ra);let aa=["position","depth","parent","section","locked","wrap","id","children","name"];aa=aa.filter(la=>na?la:la!=="position");const sa=omit$2(oa,aa);if(oa.type==="group"){const la=getChildrenElementsData(oa.id)(ra),ca=oa.children?.map(ua=>{const da=omit$2(la[ua],aa.filter(pa=>!["position","depth"].includes(pa)));return cloneDeep$1(da)});return{group:{...cloneDeep$1(sa)},children:ca}}return cloneDeep$1(sa)},getElementCropperToolData=ea=>na=>{if(!ea)return;const ra=getElementData(ea)(na),oa=getElementBoundaries(ea)(na),aa=getElementComputedSize(na)(ea),sa=getActiveBreakpoint(na),la=getResponsiveValue(ra?.cropData,sa);if(!la)return;const ca=getResponsiveValue(ra.styles?.transform,sa),{focalPoint:ua,mediaSize:da}=la,pa=ca?.rotate||0,ha={...aa},ga={x:oa?.x,y:oa?.y};return{cropData:{mediaSize:da,focalPoint:ua,cropSize:ha,offset:ga,rotation:pa},source:ra.options?.source,hasDynamicTag:ra.options?.hasDynamicTag,type:ra.type,id:ea,target:"element"}},getElementsExportedData=(ea,na=!0)=>ra=>{const oa=ea.map(aa=>getElementExportedData(aa,na)(ra));if(!oa.length)return[];if(oa.length<=1){const[aa]=oa;return"group"in aa?{groupData:aa}:{elementData:aa}}return{groupData:oa}},getElementExportedAnimatorData=(ea,na)=>ra=>{const oa=getElementData(ea)(ra),aa=getActiveBreakpoint(ra),sa=oa?.animation?.[na]?.data;if(!sa)return{};const la=getResponsiveValue(sa,aa);return omit$2(la,["phase"])},getElementsExportedAnimatorData=(ea,na)=>ra=>{const oa=ea.map(aa=>getElementExportedAnimatorData(aa,na)(ra));return oa.length?oa.length===1?oa[0]:oa:[]},getElementDepth=ea=>na=>getElementData(ea)(na).depth||1,getElementsDepth=ea=>na=>ea.map(ra=>getElementDepth(ra)(na)),getElementCropData=ea=>na=>getElementData(ea)(na).cropData,getElementAutoLayoutData=ea=>na=>isElement(ea)?getElementData(ea)(na).autoLayout:void 0,getClosestElementByType=(ea,na)=>ra=>{const oa=getElements(ra);let aa=oa[ea];for(;aa;){if(aa.type===na)return aa.id;aa=oa[aa.parent]}},getClosestSelectedElementByType=ea=>na=>{const ra=getSelectedElements(na)[0];if(ra)return getClosestElementByType(ra,ea)(na)},getElementActionsList=(ea,na=[])=>ra=>{let oa=ea.filter(aa=>!na.includes(aa.type));return oa=oa.filter(aa=>{const{dependency:sa=()=>!0}=aa;return sa(ra)}),oa},getHasFormElement=createSelector([getElements],ea=>Object.values(ea).some(na=>na.type==="form")),getFormInputElements=createSelector([getDocumentType,getElements],(ea,na)=>{let ra=Object.values(na);if(ea!=="survey"){const aa=ra.find(sa=>sa.type==="form");ra=aa?ra.filter(sa=>(aa.children||[]).includes(sa.id)):[]}const oa=["hiddenInput","form:input","survey:input","dpcChoice","dpcMediaChoice","dpcOpinionScale"];return ra.filter(aa=>oa.includes(aa.type))}),ExportAnimation=({phase:ea,...na})=>{const{addToModalsStack:ra}=useModal(),oa=useSelector(getSelectedElements),aa=useSelector(getElementsExportedAnimatorData(oa,ea),equal),sa=reactExports.useMemo(()=>Array.isArray(aa)?null:jsxRuntimeExports.jsxs("div",{style:{marginBottom:"30px"},children:[jsxRuntimeExports.jsx("b",{children:"Animation type:"}),jsxRuntimeExports.jsx("code",{children:aa.type})]}),[aa]),la=reactExports.useCallback(()=>{ra([{id:"contentCreator",options:{dataObject:Array.isArray(aa)?aa:aa.params,additionalInfo:sa}}])},[ra,sa,aa]);return jsxRuntimeExports.jsx(OutlineButton$1,{onClick:la,size:"small",...na,children:i18next.t("Export Data")})},ExportAnimation$1=dt$1(ExportAnimation).withConfig({displayName:"ExportAnimation",componentId:"sc-l2815m-0"})(["width:100%;justify-content:center;"]),getAnimationPreviewOptionControls=(ea,na,ra)=>[{id:"animationPreviewOptions",optionControls:[[createOptionControl({id:"animationPreviewButton",control:PreviewAnimationButton$1,selector:ra(`${ea}.data.$bp`)})],[createOptionControl({id:"animationPreviewAllButton",control:PreviewAllAnimationButton$1,selector:ra(`${ea}.data.$bp`)})],[createOptionControl({id:"animationClearButton",control:ClearAnimationButton$1,equalCheck:!1,action:na(ea)})],[createOptionControl({id:"animationExportButton",control:ExportAnimation$1,controlProps:{phase:ea}})]]}],cssEasingList=[{value:"linear",label:"Linear"},{value:"defaultEase",label:"Default Ease"},{value:"ease",label:"Ease"},{value:"sine",label:"Sine"},{value:"quad",label:"Quad"},{value:"cubic",label:"Cubic"},{value:"quart",label:"Quart"},{value:"quint",label:"Quint"},{value:"expo",label:"Expo"},{value:"circ",label:"Circle"},{value:"back",label:"Back"}],jsEasingList=[...cssEasingList.filter(ea=>!["ease","defaultEase"].includes(ea.value)),{value:"bounce",label:"Bounce"},{value:"spring1",label:"Spring 1"},{value:"spring2",label:"Spring 2"},{value:"spring3",label:"Spring 3"}],easingVariations=[{value:"In",label:"In"},{value:"Out",label:"Out"},{value:"InOut",label:"InOut"}],eastingsWithoutType=["linear","defaultEase","spring1","spring2","spring3"],cssEasingFunsMap=new Map;cssEasingFunsMap.set("linear","linear");cssEasingFunsMap.set("defaultEase","ease");cssEasingFunsMap.set("easeIn","ease-in");cssEasingFunsMap.set("easeOut","ease-out");cssEasingFunsMap.set("easeInOut","ease-in-out");cssEasingFunsMap.set("sineIn","cubic-bezier(0.12, 0, 0.39, 0)");cssEasingFunsMap.set("sineOut","cubic-bezier(0.61, 1, 0.88, 1)");cssEasingFunsMap.set("sineInOut","cubic-bezier(0.37, 0, 0.63, 1)");cssEasingFunsMap.set("quadIn","cubic-bezier(0.11, 0, 0.5, 0)");cssEasingFunsMap.set("quadOut","cubic-bezier(0.5, 1, 0.89, 1)");cssEasingFunsMap.set("quadInOut","cubic-bezier(0.45, 0, 0.55, 1)");cssEasingFunsMap.set("cubicIn","cubic-bezier(0.32, 0, 0.67, 0)");cssEasingFunsMap.set("cubicOut","cubic-bezier(0.33, 1, 0.68, 1)");cssEasingFunsMap.set("cubicInOut","cubic-bezier(0.65, 0, 0.35, 1)");cssEasingFunsMap.set("quartIn","cubic-bezier(0.5, 0, 0.75, 0)");cssEasingFunsMap.set("quartOut","cubic-bezier(0.25, 1, 0.5, 1)");cssEasingFunsMap.set("quartInOut","cubic-bezier(0.76, 0, 0.24, 1)");cssEasingFunsMap.set("quintIn","cubic-bezier(0.64, 0, 0.78, 0)");cssEasingFunsMap.set("quintOut","cubic-bezier(0.22, 1, 0.36, 1)");cssEasingFunsMap.set("quintInOut","cubic-bezier(0.83, 0, 0.17, 1)");cssEasingFunsMap.set("expoIn","cubic-bezier(0.7, 0, 0.84, 0)");cssEasingFunsMap.set("expoOut","cubic-bezier(0.16, 1, 0.3, 1)");cssEasingFunsMap.set("expoInOut","cubic-bezier(0.87, 0, 0.13, 1)");cssEasingFunsMap.set("circIn","cubic-bezier(0.55, 0, 1, 0.45)");cssEasingFunsMap.set("circOut","cubic-bezier(0, 0.55, 0.45, 1)");cssEasingFunsMap.set("circInOut","cubic-bezier(0.85, 0, 0.15, 1)");cssEasingFunsMap.set("backIn","cubic-bezier(0.36, 0, 0.66, -0.56)");cssEasingFunsMap.set("backOut","cubic-bezier(0.34, 1.56, 0.64, 1)");cssEasingFunsMap.set("backInOut","cubic-bezier(0.68, -0.6, 0.32, 1.6)");const jsEasingFunsMap=new Map;jsEasingFunsMap.set("linear","linear");jsEasingFunsMap.set("sineIn","easeInSine");jsEasingFunsMap.set("sineOut","easeOutSine");jsEasingFunsMap.set("sineInOut","easeInOutSine");jsEasingFunsMap.set("quadIn","easeInQuad");jsEasingFunsMap.set("quadOut","easeOutQuad");jsEasingFunsMap.set("quadInOut","easeInOutQuad");jsEasingFunsMap.set("cubicIn","easeInCubic");jsEasingFunsMap.set("cubicOut","easeOutCubic");jsEasingFunsMap.set("cubicInOut","easeInOutCubic");jsEasingFunsMap.set("quartIn","easeInQuart");jsEasingFunsMap.set("quartOut","easeOutQuart");jsEasingFunsMap.set("quartInOut","easeInOutQuart");jsEasingFunsMap.set("quintIn","easeInQuint");jsEasingFunsMap.set("quintOut","easeOutQuint");jsEasingFunsMap.set("quintInOut","easeInOutQuint");jsEasingFunsMap.set("expoIn","easeInExpo");jsEasingFunsMap.set("expoOut","easeOutExpo");jsEasingFunsMap.set("expoInOut","easeInOutExpo");jsEasingFunsMap.set("circIn","easeInCirc");jsEasingFunsMap.set("circOut","easeOutCirc");jsEasingFunsMap.set("circInOut","easeInOutCirc");jsEasingFunsMap.set("backIn","easeInBack");jsEasingFunsMap.set("backOut","easeOutBack");jsEasingFunsMap.set("backInOut","easeInOutBack");jsEasingFunsMap.set("bounceIn","easeInBounce");jsEasingFunsMap.set("bounceOut","easeOutBounce");jsEasingFunsMap.set("bounceInOut","easeInOutBounce");jsEasingFunsMap.set("spring1","spring(2, 60, 8, 0)");jsEasingFunsMap.set("spring2","spring(1, 75, 5, 5)");jsEasingFunsMap.set("spring3","spring(1.5, 100, 4, 5)");function parseEasingFunctionName(ea){const na=/^([a-zA-Z]+?)(InOut|In|Out)$/,ra=ea.match(na);if(ra){const oa=ra[1],aa=ra[2];return[oa,aa]}return[ea,null]}const EasingFunctionSelect=ea=>{const{className:na,disabled:ra,value:oa,easingType:aa,onChange:sa}=ea,{t:la}=useTranslation(),ca=aa==="css"?cssEasingFunsMap:jsEasingFunsMap,ua=getMapKeyByValue(ca,oa)||"linear",[da,pa]=parseEasingFunctionName(ua),ha=reactExports.useCallback(fa=>{sa(ca.get(fa+(eastingsWithoutType.includes(fa)?"":pa||"Out"))||"linear")},[ca,sa,pa]),ga=reactExports.useCallback(fa=>{sa(ca.get(da+(eastingsWithoutType.includes(da)?"":fa))||"linear")},[ca,da,sa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Field$1,{label:la("Ease"),children:jsxRuntimeExports.jsx(Select$1,{options:aa==="css"?cssEasingList:jsEasingList,disabled:ra,value:da,size:"small",onChange:ha})}),pa&&jsxRuntimeExports.jsx(Field$1,{label:la("Ease Type"),children:jsxRuntimeExports.jsx(Select$1,{options:easingVariations,disabled:ra,value:pa,size:"small",onChange:ga})})]})},EasingFunctionSelect$1=dt$1(EasingFunctionSelect).withConfig({displayName:"EasingFunctionSelect",componentId:"sc-m9czoh-0"})(["display:flex;column-gap:10px;","{flex:0;flex-basis:50%;}"],Field$1),animationLoopDirection=[{value:"normal",label:i18next.t("Normal")},{value:"reverse",label:i18next.t("Reverse")},{value:"alternate",label:i18next.t("Alternate")}],getAnimationTimingOptionControls=(ea,na,ra)=>[{id:"animatorTimingOptions",border:"bottom",label:i18next.t("Animation Timing"),optionControls:[[createOptionControl({id:"animationLoopDirection",label:i18next.t("Loop Direction"),control:Select$1,defaultValue:"alternate",controlProps:{options:animationLoopDirection},selector:ra(`${ea}.data.$bp.params.timelineOptions.direction`),action:na(`${ea}.data.$bp.params.timelineOptions.direction`),dependency:()=>ea==="loop"})],[createOptionControl({id:"animationDuration",label:i18next.t("Duration"),control:Number$2,controlProps:{units:"ms"},selector:ra(`${ea}.data.$bp.params.duration`),action:na(`${ea}.data.$bp.params.duration`)}),createOptionControl({id:"animationDelay",label:i18next.t("Delay"),control:Number$2,controlProps:{units:"ms"},selector:ra(`${ea}.data.$bp.params.delay`),action:na(`${ea}.data.$bp.params.delay`)})],[createOptionControl({id:"animationEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:ra(`${ea}.data.$bp.params.easing`),action:na(`${ea}.data.$bp.params.easing`)})],[createOptionControl({id:"betweenInAndOut",control:SwitchBox$1,defaultValue:!1,controlProps:{label:i18next.t("Start after animation in")},tooltip:{content:i18next.t("Start the loop animation after the animation in is completed and stop it before the animation out starts."),options:{place:"top",id:"settingsPanel"}},selector:ra(`${ea}.betweenInAndOut`),action:na(`${ea}.betweenInAndOut`),dependency:()=>ea==="loop"})]]}],getAnimationInteractionsOptionControls=(ea,na,ra)=>[{id:"animatorInteractionsOptions",border:"bottom",label:i18next.t("Animation Interactions"),optionControls:[[createOptionControl({id:"animationWaitForAction",control:SwitchBox$1,defaultValue:!1,controlProps:{label:i18next.t("Wait for an action")},selector:ra("waitForAction"),action:na("waitForAction"),dependency:()=>ea!=="loop"})],[createOptionControl({id:"animationInteractive",control:SwitchBox$1,defaultValue:!1,controlProps:{label:i18next.t("Interactive animation"),tooltip:{content:i18next.t("If enabled, the animation will progress forward or backward according to the user interaction by swiping on the screen."),options:{place:"top",id:"settingsPanel"}}},selector:ra(`${ea}.interactive`),action:na(`${ea}.interactive`),dependency:()=>ea!=="loop"})],[createOptionControl({id:"checkWait",control:SwitchBox$1,defaultValue:!1,controlProps:{invertValue:!0,label:i18next.t("Auto start animation out"),tooltip:{content:i18next.t("If enabled, the animation will automatically start the out phase when the animation in is finished."),options:{place:"top",id:"settingsPanel"}}},selector:ra(`${ea}.wait`),action:na(`${ea}.wait`),dependency:()=>ea==="out"})]]}],defaultTimingParams={duration:1e3,delay:0,easing:"linear"},moveDefaultParams$1={...defaultTimingParams,direction:"left",movement:0,x:0,y:0,z:0,perspective:2e3,fade:!0},moveAnimDataToCategory=ea=>{const{movement:na,timelineOptions:ra,rotate:oa,movement:aa}=ea;return ra?oa?"rotation":aa?"movement":"pulse":na?"move":"fade"},generateAnimationMoveOptions=(ea,na,ra)=>[...getAnimationMoveOptionControls(ea,na,ra),...getAnimationTimingOptionControls(ea,na,ra),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)],originsMap$2=new Map;originsMap$2.set("tl","left top");originsMap$2.set("tc","center top");originsMap$2.set("tr","right top");originsMap$2.set("ml","left center");originsMap$2.set("mc","center center");originsMap$2.set("mr","right center");originsMap$2.set("bl","left bottom");originsMap$2.set("bc","center bottom");originsMap$2.set("br","right bottom");const positionMap=new Map;positionMap.set("left top","tl");positionMap.set("right top","tr");positionMap.set("center top","tc");positionMap.set("left center","ml");positionMap.set("center center","mc");positionMap.set("right center","mr");positionMap.set("left bottom","bl");positionMap.set("right bottom","br");positionMap.set("center bottom","bc");const defaultColors$1S={background:"#222222",dot:"#6A6A6A",activeDot:"#4980F5",hover:"#FFF",disabled:"#444444",disabledDot:"#6A6A6A"},colors$1S={dark:defaultColors$1S},defaultSizing$1C={dotWidth:"4px",dotHeight:"4px",activeDotWidth:"8px",activeDotHeight:"8px",width:"48px",height:"48px",border:"5px"},sizes$1S={default:defaultSizing$1C},scheme$1o=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1S,sizes:sizes$1S},Symbol.toStringTag,{value:"Module"})),origins$2=["tl","tc","tr","ml","mc","mr","bl","bc","br"],OriginPicker=({className:ea,value:na,disabled:ra,onChange:oa,valueType:aa="js",flip:sa})=>{let la;aa==="js"?la=na:Array.isArray(na)?na.map(da=>positionMap.get(da)):la=positionMap.get(na);const ca=da=>{ra||oa?.(aa==="js"?da:originsMap$2.get(da))},ua=da=>{const pa=Array.isArray(la)?la.includes(da):la===da;return jsxRuntimeExports.jsx("div",{className:`${pa?"ms-origin-item-selected":""}`,onClick:()=>ca(da),children:jsxRuntimeExports.jsx("span",{})},da)};return jsxRuntimeExports.jsx("div",{style:{transform:sa?"scaleY(-1)":"none"},className:ea,children:origins$2.map(ua)})},theme$3y=withTheme(scheme$1o),OriginPicker$1=dt$1(OriginPicker).withConfig({displayName:"OriginPicker",componentId:"sc-8agtdi-0"})(["display:grid;align-content:space-between;justify-content:space-between;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);padding:6px;> div{display:flex;align-items:center;justify-content:center;cursor:",";&:hover{span{border-radius:2px;}}}span{display:block;border-radius:1px;transition:all 50ms ease-out;}.ms-origin-item-selected{span{border-radius:2px;}}"," ",""],ea=>ea.disabled?"auto":"pointer",theme$3y.colors((ea,na)=>lt$1(["background:",";span{background:",";}> div:hover{span{background:",";}}.ms-origin-item-selected{span{background:",";}}",""],ea.background,ea.dot,ea.hover,ea.activeDot,na.disabled&&lt$1(["background:",";> div:hover{span{background:",";}}.ms-origin-item-selected{span{background:",";}}"],ea.disabled,ea.disabledDot,ea.disabledDot))),theme$3y.sizes((ea,na)=>lt$1(["width:",";height:",";border-radius:",";span{width:",";height:",";}> div{&.ms-origin-item-selected,&:hover{span{width:",";height:",";}}","}"],ea.width,ea.height,ea.border,ea.dotWidth,ea.dotHeight,ea.activeDotWidth,ea.activeDotHeight,na.disabled&&lt$1(["&:hover{span{width:",";height:",";}}&.ms-origin-item-selected{span{width:",";height:",";}}"],ea.dotWidth,ea.dotHeight,ea.activeDotWidth,ea.activeDotHeight)))),horizontalOriginsMap={l:"left",c:"center",r:"right"},verticalOriginsMap={t:"top",b:"bottom",m:"center"},getOriginValue=(ea,na)=>{const ra=na==="vertical"?verticalOriginsMap:horizontalOriginsMap;return Object.keys(ra).filter(oa=>ra[oa]===ea)[0]},TransformOrigin=({value:ea,onChange:na,className:ra})=>{const{t:oa}=useTranslation(),{x:aa="center",y:sa="center",z:la="0px"}=ea||{},ca=getOriginValue(aa,"horizontal"),da=`${getOriginValue(sa,"vertical")}${ca}`,pa=fa=>{const ma=verticalOriginsMap[fa[0]],va=horizontalOriginsMap[fa[1]];na&&na({x:va,y:ma,z:la})},ha=fa=>{na&&na({x:aa,y:sa,z:`${fa||0}px`})},ga=parseInt(la,10)||0;return jsxRuntimeExports.jsxs(FieldsetRow,{className:ra,children:[jsxRuntimeExports.jsx(Field$1,{label:oa("Origin"),children:jsxRuntimeExports.jsx(OriginPicker$1,{value:da,onChange:pa})}),jsxRuntimeExports.jsx(Field$1,{styles:{minWidth:"90px"},label:oa("Z Position"),children:jsxRuntimeExports.jsx(Number$2,{value:{value:ga,unit:"px"},units:"px",valueType:"number",onChange:ha})})]})},TransformOrigin$1=dt$1(TransformOrigin).withConfig({displayName:"TransformOrigin",componentId:"sc-o55b2q-0"})(["align-items:start !important;","{flex:0 0 !important;}"],Field$1),getAnimationTransformOptionControls=(ea,na,ra)=>[{id:"animationTransformOptions",border:"bottom",label:i18next.t("Transform"),optionControls:[[createOptionControl({id:"animationScale",label:i18next.t("Scale"),control:Number$2,controlProps:{units:"%",multiply:100},selector:ra(`${ea}.data.$bp.params.scale`),action:na(`${ea}.data.$bp.params.scale`),styles:{flex:0,flexBasis:"90px"}})],[createOptionControl({id:"animationRotate",label:i18next.t("Rotate"),control:Number$2,controlProps:{units:"°"},selector:ra(`${ea}.data.$bp.params.rotate`),action:na(`${ea}.data.$bp.params.rotate`)}),createOptionControl({id:"animationRotateX",label:i18next.t("Rotate X"),control:Number$2,controlProps:{units:"°"},selector:ra(`${ea}.data.$bp.params.rotate3d.x`),action:na(`${ea}.data.$bp.params.rotate3d.x`)}),createOptionControl({id:"animationRotateY",label:i18next.t("Rotate Y"),control:Number$2,controlProps:{units:"°"},selector:ra(`${ea}.data.$bp.params.rotate3d.y`),action:na(`${ea}.data.$bp.params.rotate3d.y`)})],[createOptionControl({id:"animationSkewX",label:i18next.t("Skew X"),control:Number$2,controlProps:{units:"°"},selector:ra(`${ea}.data.$bp.params.skew.x`),action:na(`${ea}.data.$bp.params.skew.x`),styles:{flex:0,flexBasis:"90px"}}),createOptionControl({id:"animationSkewY",label:i18next.t("Skew Y"),control:Number$2,controlProps:{units:"°"},selector:ra(`${ea}.data.$bp.params.skew.y`),action:na(`${ea}.data.$bp.params.skew.y`),styles:{flex:0,flexBasis:"90px"}})]]},{id:"animationTransformOriginOptions",border:"bottom",label:i18next.t("Transform Origin"),optionControls:[[createOptionControl({id:"animationSkewY",control:TransformOrigin$1,selector:ra(`${ea}.data.$bp.params.transformOrigin`),action:na(`${ea}.data.$bp.params.transformOrigin`)})]]}],moveAndTransformDefaultParams$1={...moveDefaultParams$1,rotate:0,rotate3d:{x:0,y:0},scale:1,skew:{x:0,y:0},transformOrigin:{z:"0",x:"center",y:"center"}},moveAndTransformAnimDataToCategory=ea=>{const na=["scale","rotate","rotate3d"],ra=Object.keys(ea).filter(oa=>na.includes(oa)&&ea[oa]);return ea.timelineOptions?ea.rotate?"rotation":ea.movement?"movement":"pulse":ra.length===1?ra[0]==="rotate3d"?"flip":ra[0]:"custom-transform"},generateAnimationMoveAndTransformOptions=(ea,na,ra)=>[...getAnimationMoveOptionControls(ea,na,ra),...getAnimationTimingOptionControls(ea,na,ra),...getAnimationTransformOptionControls(ea,na,ra),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)],clipTypeOptions=[{value:"rect",label:i18next.t("Rectangle")},{value:"circle",label:i18next.t("Circle")}],clipDirectionOptions=[{value:"left",label:i18next.t("Left")},{value:"right",label:i18next.t("Right")},{value:"top",label:i18next.t("Top")},{value:"bottom",label:i18next.t("Bottom")},{value:"tl",label:i18next.t("Top left")},{value:"tr",label:i18next.t("Top right")},{value:"bl",label:i18next.t("Bottom left")},{value:"br",label:i18next.t("Bottom right")}],circleClipOriginOptions=[{value:"mc",label:i18next.t("Middle center")},{value:"ml",label:i18next.t("Middle left")},{value:"mr",label:i18next.t("Middle right")},{value:"tl",label:i18next.t("Top left")},{value:"tr",label:i18next.t("Top right")},{value:"bl",label:i18next.t("Bottom left")},{value:"br",label:i18next.t("Bottom right")}],getAnimationClipOptionControls=(ea,na,ra)=>[{id:"animationClipOptions",border:"bottom",label:i18next.t("Clipping"),optionControls:[[createOptionControl({id:"animationClipType",label:i18next.t("Clip Type"),control:Select$1,controlProps:{options:clipTypeOptions},selector:ra(`${ea}.data.$bp.params.clipParams.type`),action:na(`${ea}.data.$bp.params.clipParams.type`)}),createOptionControl({id:"animationClipDirection",label:i18next.t("Clip Direction"),control:Select$1,controlProps:{options:clipDirectionOptions},selector:ra(`${ea}.data.$bp.params.clipParams.direction`),action:na(`${ea}.data.$bp.params.clipParams.direction`),dependency:oa=>ra(`${ea}.data.$bp.params.clipParams.type`)(oa)!=="circle"}),createOptionControl({id:"animationClipDirectionCircle",label:i18next.t("Clip Origin"),control:Select$1,controlProps:{options:circleClipOriginOptions},selector:ra(`${ea}.data.$bp.params.clipParams.circleOrigin`),action:na(`${ea}.data.$bp.params.clipParams.circleOrigin`),dependency:oa=>ra(`${ea}.data.$bp.params.clipParams.type`)(oa)==="circle"})]]}],clipDefaultParams$5={...moveAndTransformDefaultParams$1,clipParams:{type:"rect",direction:"left",circleOrigin:"mc"}},clipAnimDataToCategory=ea=>{const{clipParams:{type:na}}=ea;return na==="circle"?"radial-clip":"clip"},generateAnimationClipOptions=(ea,na,ra)=>[...getAnimationClipOptionControls(ea,na,ra),...getAnimationMoveOptionControls(ea,na,ra),...getAnimationTransformOptionControls(ea,na,ra),...getAnimationTimingOptionControls(ea,na,ra),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)],defaultColors$1R={colorButton:{border:"#525252",icon:"#FFFFFF",disabledBackground:"#444444",disabledIcon:"rgba(255,255,255,0.5)",indeterminate:"#6A6A6A"},wrapper:{background:"#222222",border:"#000000",shadow:"rgba(0, 0, 0, 0.25)"},colorTypes:{background:"rgba(7, 7, 7, 0.2)",item:{color:"#D7D7D7",active:"#567FED",activeBackground:"rgba(7, 7, 7, 1)"}},pointer:{border:"#FFFFFF",shadow:"rgba(0, 0, 0, 0.75)"},eyeDropper:{background:"transparent",icon:"#AAAAAA",active:{background:"#070707",icon:"#4980F5"}},repeat:{divider:"#000000"},reverseSteps:{background:"rgba(7, 7, 7, 0.2)",icon:"#AAAAAA",hover:{icon:"#FFFFFF"}}},colors$1R={dark:defaultColors$1R},defaultSizing$1B={colorButton:{medium:{size:"31px",border:"6px",padding:"4px",transparentSize:"21px"},small:{size:"21px",border:"5px",padding:"3px",transparentSize:"13px"}},wrapper:{width:"175px",padding:"10px",border:"5px"},pointer:{border:"1.5px",width:"11px",height:"11px"},saturation:{width:"100%",height:"140px",border:"4px"},hue:{width:"100%",height:"12px",border:"4px"},alpha:{width:"100%",height:"12px",border:"4px"},eyeDropper:{border:"5px",padding:"8px"},reverseSteps:{border:"5px",padding:"7px 8px"}},sizes$1R={default:defaultSizing$1B},scheme$1n=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1R,sizes:sizes$1R},Symbol.toStringTag,{value:"Module"})),SvgCaretBottom=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5.5,height:5.5,viewBox:"0 0 5.5 5.5",...ea},reactExports.createElement("g",{id:"color_picker_arrow","data-name":"color picker arrow",transform:"translate(-208.5 -2520)"},reactExports.createElement("rect",{id:"Rectangle_1598","data-name":"Rectangle 1598",width:5.5,height:5.5,rx:1,transform:"translate(208.5 2520)"}),reactExports.createElement("path",{id:"right_slide","data-name":"right slide",d:"M1.808,0,0,2.567H3.615Z",transform:"translate(213.115 2523.941) rotate(180)"}))),ColorBackgroundWrapper=({value:ea,...na})=>{const ra=reactExports.useMemo(()=>({background:ea==="transparent"?"#FFFFFf":ea}),[ea]);return jsxRuntimeExports.jsx("div",{...na,style:ra})},ColorWrapper=dt$1(ColorBackgroundWrapper).withConfig({displayName:"ColorButton__ColorWrapper",componentId:"sc-a1riyp-0"})([""]),TransparentBackground$1=dt$1.div.withConfig({displayName:"ColorButton__TransparentBackground",componentId:"sc-a1riyp-1"})([`position:absolute;top:0;left:0;width:100%;height:100%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 23 23'%3E%3Cg id='Group_514' data-name='Group 514' transform='translate(-194 -2653)'%3E%3Crect id='Rectangle_2204' data-name='Rectangle 2204' width='8' height='8' transform='translate(201.5 2653)' fill='%23fff'/%3E%3Crect id='Rectangle_2211' data-name='Rectangle 2211' width='8' height='8' transform='translate(201.5 2661)' fill='%23ccc'/%3E%3Crect id='Rectangle_2208' data-name='Rectangle 2208' width='8' height='7' transform='translate(201.5 2669)' fill='%23fff'/%3E%3Cpath id='Rectangle_2210' data-name='Rectangle 2210' d='M3,0H7.5a0,0,0,0,1,0,0V8a0,0,0,0,1,0,0H0A0,0,0,0,1,0,8V3A3,3,0,0,1,3,0Z' transform='translate(194 2653)' fill='%23ccc'/%3E%3Crect id='Rectangle_2212' data-name='Rectangle 2212' width='7.5' height='8' transform='translate(194 2661)' fill='%23fff'/%3E%3Cpath id='Rectangle_2209' data-name='Rectangle 2209' d='M0,0H7.5a0,0,0,0,1,0,0V7a0,0,0,0,1,0,0H3A3,3,0,0,1,0,4V0A0,0,0,0,1,0,0Z' transform='translate(194 2669)' fill='%23ccc'/%3E%3Cpath id='Rectangle_2206' data-name='Rectangle 2206' d='M0,0H4.5a3,3,0,0,1,3,3V8a0,0,0,0,1,0,0H0A0,0,0,0,1,0,8V0A0,0,0,0,1,0,0Z' transform='translate(209.5 2653)' fill='%23ccc'/%3E%3Crect id='Rectangle_2213' data-name='Rectangle 2213' width='7.5' height='8' transform='translate(209.5 2661)' fill='%23fff'/%3E%3Cpath id='Rectangle_2207' data-name='Rectangle 2207' d='M0,0H7.5a0,0,0,0,1,0,0V4a3,3,0,0,1-3,3H0A0,0,0,0,1,0,7V0A0,0,0,0,1,0,0Z' transform='translate(209.5 2669)' fill='%23ccc'/%3E%3C/g%3E%3C/svg%3E%0A");`]),CaretIcon=dt$1(SvgCaretBottom).withConfig({displayName:"ColorButton__CaretIcon",componentId:"sc-a1riyp-2"})([""]),ColorPickerButton=({value:ea,disablePointer:na,indeterminate:ra,...oa})=>jsxRuntimeExports.jsxs(BaseButton$1,{...oa,children:[jsxRuntimeExports.jsx(TransparentBackground$1,{}),jsxRuntimeExports.jsx(ColorWrapper,{value:ea}),!na&&jsxRuntimeExports.jsx(CaretIcon,{})]}),theme$3x=withTheme(scheme$1n),ColorButton=dt$1(ColorPickerButton).withConfig({displayName:"ColorButton",componentId:"sc-a1riyp-3"})(["padding:0;background-color:transparent;"," > span{position:relative;display:block;border-radius:3px;overflow:hidden;height:100%;width:100%;}","{position:absolute;width:100%;height:100%;left:0;top:0;"," ","}","{position:absolute;top:3px;right:3px;}"," ",""],ea=>!ea.disabled&&" cursor: pointer;",ColorWrapper,ea=>ea.value==="transparent"&&lt$1(["&:after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg);width:30px;height:3px;background:#ff0000;}"]),ea=>ea.indeterminate&&lt$1(["&:after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:13px;height:2px;background:#fff;}"]),CaretIcon,theme$3x.colors((ea,{disabled:na,indeterminate:ra})=>lt$1(["border:1px solid ",";"," path{fill:",";}"," ",""],ea.colorButton.border,CaretIcon,ea.colorButton.icon,na&&lt$1(["","{background:"," !important;}"," path{fill:",";}"],ColorWrapper,ea.colorButton.disabledBackground,CaretIcon,ea.colorButton.disabledIcon),ra&&lt$1(["","{background:"," !important;&:after{}}"],ColorWrapper,ea.colorButton.indeterminate))),theme$3x.sizes((ea,{size:na="medium"})=>lt$1(["width:",";height:",";padding:",";border-radius:",";","{background-size:"," ",";}"],ea.colorButton[na].size,ea.colorButton[na].size,ea.colorButton[na].padding,ea.colorButton[na].border,TransparentBackground$1,ea.colorButton[na].transparentSize,ea.colorButton[na].transparentSize))),defaultColors$1Q={button:{background:"#303030",active:{background:"#222222",iconColor:"#4980f5"},disabled:{background:"rgba(68, 68, 68, 1)",iconColor:"#6A6A6A"},indeterminate:{background:"#303030",iconColor:"#AAAAAA"},tooltip:{background:"#222222",color:"#FFFFFF",border:"#000000"}}},colors$1Q={dark:defaultColors$1Q},defaultSizing$1A={border:"5px",button:{width:"29px",height:"29px"}},sizes$1Q={default:defaultSizing$1A},scheme$1m=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1Q,sizes:sizes$1Q},Symbol.toStringTag,{value:"Module"})),ToggleButton$2=ea=>{const{className:na,value:ra,tooltip:oa,iconShape:aa,onChange:sa,disabled:la,label:ca,selected:ua}=ea,da=reactExports.useCallback(()=>{sa&&sa(ra)},[ra,sa]),pa=reactExports.useMemo(()=>({content:ca,...oa}),[ca,oa]);return jsxRuntimeExports.jsx(SolidButton,{className:`${na} ${ua?"depicter-item-selected":""}`,icon:jsxRuntimeExports.jsx(aa,{}),tooltip:pa,onClick:da,disabled:la,color:"transparent",corners:"sharp"})},theme$3w=withTheme(scheme$1m),ToggleButton$3=dt$1(ToggleButton$2).withConfig({displayName:"ToggleButton",componentId:"sc-hk2kxh-0"})(["display:flex;align-items:center;justify-content:center;"," ",""],theme$3w.colors((ea,{selected:na,disabled:ra,indeterminate:oa})=>lt$1(["background-color:",";"," "," ",""],ea.button.background,na&&lt$1(["&,&:hover{background-color:",";svg{fill:"," !important;}}"],ea.button.active.background,ea.button.active.iconColor),ra&&na&&lt$1(["&,&:hover{background-color:",";svg{fill:"," !important;}}"],ea.button.disabled.background,ea.button.disabled.iconColor),oa&&lt$1(["background-color:",";svg{fill:"," !important;}"],ea.button.indeterminate.background,ea.button.indeterminate.iconColor))),theme$3w.sizes(ea=>lt$1(["width:",";height:",";"],ea.button.width,ea.button.height))),ToggleButtons=ea=>{const{className:na,value:ra,buttons:oa,disabled:aa,deselect:sa,tooltip:la,multiple:ca,onChange:ua}=ea,da=isIndeterminate(ra),pa=reactExports.useCallback(ga=>{(ca?ra?.includes(ga):ga===ra)&&sa?ua?.(ca?ra.filter(ma=>ma!==ga):""):(da&&ua?.(ca?[ga]:ga),ua?.(ca?[...ra||[],ga]:ga))},[sa,ra,ca,da,ua]),ha=reactExports.useCallback(ga=>{const fa=Array.isArray(ra)?ra.includes(ga.value):ra===ga.value;return jsxRuntimeExports.jsx(ToggleButton$3,{...ga,tooltip:la,selected:fa,disabled:aa,indeterminate:da,onChange:pa},ga.value)},[ra,la,aa,da,pa]);return jsxRuntimeExports.jsx("div",{className:na,children:oa.map(ha)})},theme$3v=withTheme(scheme$1m),ToggleButtons$1=dt$1(ToggleButtons).withConfig({displayName:"ToggleButtons",componentId:"sc-11co4nj-0"})(["display:inline-flex;flex-flow:row wrap;overflow:hidden;","{"," ","}",""],ToggleButton$3,({buttonHeight:ea})=>ea&&lt$1(["height:",";"],ea),({buttonWidth:ea})=>ea&&lt$1(["width:",";"],ea),theme$3v.sizes(ea=>lt$1(["","{&:first-child{border-radius:"," 0 0 ",";}&:last-child{border-radius:0 "," "," 0;}}"],ToggleButton$3,ea.border,ea.border,ea.border,ea.border))),Solid=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:jsxRuntimeExports.jsxs("g",{id:"solid",transform:"translate(-477 -2457)",children:[jsxRuntimeExports.jsx("rect",{id:"Rectangle_5896","data-name":"Rectangle 5896",width:"15",height:"15",rx:"3",transform:"translate(480 2460)",fill:"currentColor"}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_5897","data-name":"Rectangle 5897",transform:"translate(477 2457)",fill:"none",stroke:"currentColor",strokeWidth:"1",children:[jsxRuntimeExports.jsx("rect",{width:"21",height:"21",rx:"5",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"0.5",y:"0.5",width:"20",height:"20",rx:"4.5",fill:"none"})]})]})}),Radial=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"21",height:"21",viewBox:"0 0 21 21",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("radialGradient",{id:"radial-gradient",cx:"0.5",cy:"0.5",r:"0.5",gradientUnits:"objectBoundingBox",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"currentColor"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"currentColor",stopOpacity:"0.082"})]})}),jsxRuntimeExports.jsxs("g",{id:"radial",transform:"translate(-578 -2460)",children:[jsxRuntimeExports.jsx("rect",{id:"Rectangle_5900","data-name":"Rectangle 5900",width:"15",height:"15",rx:"3",transform:"translate(581 2463)",fill:"url(#radial-gradient)"}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_5901","data-name":"Rectangle 5901",transform:"translate(578 2460)",fill:"none",stroke:"currentColor",strokeWidth:"1",children:[jsxRuntimeExports.jsx("rect",{width:"21",height:"21",rx:"5",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"0.5",y:"0.5",width:"20",height:"20",rx:"4.5",fill:"none"})]})]})]}),Linear=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"21",height:"21",viewBox:"0 0 21 21",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"linear-gradient",y1:"0.438",x2:"1",y2:"0.436",gradientUnits:"objectBoundingBox",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"currentColor"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"currentColor",stopOpacity:"0"})]})}),jsxRuntimeExports.jsxs("g",{id:"linear",transform:"translate(-533 -2459)",children:[jsxRuntimeExports.jsx("rect",{id:"Rectangle_5898","data-name":"Rectangle 5898",width:"15",height:"15",rx:"3",transform:"translate(536 2462)",fill:"url(#linear-gradient)"}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_5899","data-name":"Rectangle 5899",transform:"translate(533 2459)",fill:"none",stroke:"currentColor",strokeWidth:"1",children:[jsxRuntimeExports.jsx("rect",{width:"21",height:"21",rx:"5",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"0.5",y:"0.5",width:"20",height:"20",rx:"4.5",fill:"none"})]})]})]}),ColorPickerTypesButtons=[{value:"solid",label:"Solid",iconShape:Solid},{value:"linear-gradient",label:"Linear gradient",iconShape:Linear},{value:"radial-gradient",label:"Radial gradient",iconShape:Radial}];var node$1={},hasRequiredNode;function requireNode(){if(hasRequiredNode)return node$1;hasRequiredNode=1;var ea=ea||{};ea.stringify=function(){var na={"visit_linear-gradient":function(ra){return na.visit_gradient(ra)},"visit_repeating-linear-gradient":function(ra){return na.visit_gradient(ra)},"visit_radial-gradient":function(ra){return na.visit_gradient(ra)},"visit_repeating-radial-gradient":function(ra){return na.visit_gradient(ra)},visit_gradient:function(ra){var oa=na.visit(ra.orientation);return oa&&(oa+=", "),ra.type+"("+oa+na.visit(ra.colorStops)+")"},visit_shape:function(ra){var oa=ra.value,aa=na.visit(ra.at),sa=na.visit(ra.style);return sa&&(oa+=" "+sa),aa&&(oa+=" at "+aa),oa},"visit_default-radial":function(ra){var oa="",aa=na.visit(ra.at);return aa&&(oa+=aa),oa},"visit_extent-keyword":function(ra){var oa=ra.value,aa=na.visit(ra.at);return aa&&(oa+=" at "+aa),oa},"visit_position-keyword":function(ra){return ra.value},visit_position:function(ra){return na.visit(ra.value.x)+" "+na.visit(ra.value.y)},"visit_%":function(ra){return ra.value+"%"},visit_em:function(ra){return ra.value+"em"},visit_px:function(ra){return ra.value+"px"},visit_literal:function(ra){return na.visit_color(ra.value,ra)},visit_hex:function(ra){return na.visit_color("#"+ra.value,ra)},visit_rgb:function(ra){return na.visit_color("rgb("+ra.value.join(", ")+")",ra)},visit_rgba:function(ra){return na.visit_color("rgba("+ra.value.join(", ")+")",ra)},visit_color:function(ra,oa){var aa=ra,sa=na.visit(oa.length);return sa&&(aa+=" "+sa),aa},visit_angular:function(ra){return ra.value+"deg"},visit_directional:function(ra){return"to "+ra.value},visit_array:function(ra){var oa="",aa=ra.length;return ra.forEach(function(sa,la){oa+=na.visit(sa),la<aa-1&&(oa+=", ")}),oa},visit:function(ra){if(!ra)return"";var oa="";if(ra instanceof Array)return na.visit_array(ra,oa);if(ra.type){var aa=na["visit_"+ra.type];if(aa)return aa(ra);throw Error("Missing visitor visit_"+ra.type)}else throw Error("Invalid node.")}};return function(ra){return na.visit(ra)}}();var ea=ea||{};return ea.parse=function(){var na={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},ra="";function oa(Fa){var Ha=new Error(ra+": "+Fa);throw Ha.source=ra,Ha}function aa(){var Fa=sa();return ra.length>0&&oa("Invalid input not EOF"),Fa}function sa(){return Sa(la)}function la(){return ca("linear-gradient",na.linearGradient,da)||ca("repeating-linear-gradient",na.repeatingLinearGradient,da)||ca("radial-gradient",na.radialGradient,ga)||ca("repeating-radial-gradient",na.repeatingRadialGradient,ga)}function ca(Fa,Ha,Va){return ua(Ha,function(Ua){var Qa=Va();return Qa&&(Na(na.comma)||oa("Missing comma before color stops")),{type:Fa,orientation:Qa,colorStops:Sa(wa)}})}function ua(Fa,Ha){var Va=Na(Fa);if(Va){Na(na.startCall)||oa("Missing (");var Ua=Ha(Va);return Na(na.endCall)||oa("Missing )"),Ua}}function da(){return pa()||ha()}function pa(){return La("directional",na.sideOrCorner,1)}function ha(){return La("angular",na.angleValue,1)}function ga(){var Fa,Ha=fa(),Va;return Ha&&(Fa=[],Fa.push(Ha),Va=ra,Na(na.comma)&&(Ha=fa(),Ha?Fa.push(Ha):ra=Va)),Fa}function fa(){var Fa=ma()||va();if(Fa)Fa.at=ya();else{var Ha=xa();if(Ha){Fa=Ha;var Va=ya();Va&&(Fa.at=Va)}else{var Ua=Aa();Ua&&(Fa={type:"default-radial",at:Ua})}}return Fa}function ma(){var Fa=La("shape",/^(circle)/i,0);return Fa&&(Fa.style=_a()||xa()),Fa}function va(){var Fa=La("shape",/^(ellipse)/i,0);return Fa&&(Fa.style=Da()||xa()),Fa}function xa(){return La("extent-keyword",na.extentKeywords,1)}function ya(){if(La("position",/^at/,0)){var Fa=Aa();return Fa||oa("Missing positioning value"),Fa}}function Aa(){var Fa=Ca();if(Fa.x||Fa.y)return{type:"position",value:Fa}}function Ca(){return{x:Da(),y:Da()}}function Sa(Fa){var Ha=Fa(),Va=[];if(Ha)for(Va.push(Ha);Na(na.comma);)Ha=Fa(),Ha?Va.push(Ha):oa("One extra comma");return Va}function wa(){var Fa=ba();return Fa||oa("Expected color definition"),Fa.length=Da(),Fa}function ba(){return $a()||Ia()||Ma()||Ea()}function Ea(){return La("literal",na.literalColor,0)}function $a(){return La("hex",na.hexColor,1)}function Ma(){return ua(na.rgbColor,function(){return{type:"rgb",value:Sa(Oa)}})}function Ia(){return ua(na.rgbaColor,function(){return{type:"rgba",value:Sa(Oa)}})}function Oa(){return Na(na.number)[1]}function Da(){return La("%",na.percentageValue,1)||Ta()||_a()}function Ta(){return La("position-keyword",na.positionKeywords,1)}function _a(){return La("px",na.pixelValue,1)||La("em",na.emValue,1)}function La(Fa,Ha,Va){var Ua=Na(Ha);if(Ua)return{type:Fa,value:Ua[Va]}}function Na(Fa){var Ha,Va;return Va=/^[\n\r\t\s]+/.exec(ra),Va&&za(Va[0].length),Ha=Fa.exec(ra),Ha&&za(Ha[0].length),Ha}function za(Fa){ra=ra.substr(Fa)}return function(Fa){return ra=Fa.toString(),aa()}}(),node$1.parse=ea.parse,node$1.stringify=ea.stringify,node$1}var nodeExports=requireNode();const gradientParser=getDefaultExportFromCjs(nodeExports);function _typeof(ea){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na},_typeof(ea)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor$2(ea,na){if(ea=ea||"",na=na||{},ea instanceof tinycolor$2)return ea;if(!(this instanceof tinycolor$2))return new tinycolor$2(ea,na);var ra=inputToRGB(ea);this._originalInput=ea,this._r=ra.r,this._g=ra.g,this._b=ra.b,this._a=ra.a,this._roundA=Math.round(100*this._a)/100,this._format=na.format||ra.format,this._gradientType=na.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=ra.ok}tinycolor$2.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 na=this.toRgb();return(na.r*299+na.g*587+na.b*114)/1e3},getLuminance:function(){var na=this.toRgb(),ra,oa,aa,sa,la,ca;return ra=na.r/255,oa=na.g/255,aa=na.b/255,ra<=.03928?sa=ra/12.92:sa=Math.pow((ra+.055)/1.055,2.4),oa<=.03928?la=oa/12.92:la=Math.pow((oa+.055)/1.055,2.4),aa<=.03928?ca=aa/12.92:ca=Math.pow((aa+.055)/1.055,2.4),.2126*sa+.7152*la+.0722*ca},setAlpha:function(na){return this._a=boundAlpha(na),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var na=rgbToHsv(this._r,this._g,this._b);return{h:na.h*360,s:na.s,v:na.v,a:this._a}},toHsvString:function(){var na=rgbToHsv(this._r,this._g,this._b),ra=Math.round(na.h*360),oa=Math.round(na.s*100),aa=Math.round(na.v*100);return this._a==1?"hsv("+ra+", "+oa+"%, "+aa+"%)":"hsva("+ra+", "+oa+"%, "+aa+"%, "+this._roundA+")"},toHsl:function(){var na=rgbToHsl(this._r,this._g,this._b);return{h:na.h*360,s:na.s,l:na.l,a:this._a}},toHslString:function(){var na=rgbToHsl(this._r,this._g,this._b),ra=Math.round(na.h*360),oa=Math.round(na.s*100),aa=Math.round(na.l*100);return this._a==1?"hsl("+ra+", "+oa+"%, "+aa+"%)":"hsla("+ra+", "+oa+"%, "+aa+"%, "+this._roundA+")"},toHex:function(na){return rgbToHex(this._r,this._g,this._b,na)},toHexString:function(na){return"#"+this.toHex(na)},toHex8:function(na){return rgbaToHex(this._r,this._g,this._b,this._a,na)},toHex8String:function(na){return"#"+this.toHex8(na)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(na){var ra="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),oa=ra,aa=this._gradientType?"GradientType = 1, ":"";if(na){var sa=tinycolor$2(na);oa="#"+rgbaToArgbHex(sa._r,sa._g,sa._b,sa._a)}return"progid:DXImageTransform.Microsoft.gradient("+aa+"startColorstr="+ra+",endColorstr="+oa+")"},toString:function(na){var ra=!!na;na=na||this._format;var oa=!1,aa=this._a<1&&this._a>=0,sa=!ra&&aa&&(na==="hex"||na==="hex6"||na==="hex3"||na==="hex4"||na==="hex8"||na==="name");return sa?na==="name"&&this._a===0?this.toName():this.toRgbString():(na==="rgb"&&(oa=this.toRgbString()),na==="prgb"&&(oa=this.toPercentageRgbString()),(na==="hex"||na==="hex6")&&(oa=this.toHexString()),na==="hex3"&&(oa=this.toHexString(!0)),na==="hex4"&&(oa=this.toHex8String(!0)),na==="hex8"&&(oa=this.toHex8String()),na==="name"&&(oa=this.toName()),na==="hsl"&&(oa=this.toHslString()),na==="hsv"&&(oa=this.toHsvString()),oa||this.toHexString())},clone:function(){return tinycolor$2(this.toString())},_applyModification:function(na,ra){var oa=na.apply(null,[this].concat([].slice.call(ra)));return this._r=oa._r,this._g=oa._g,this._b=oa._b,this.setAlpha(oa._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(na,ra){return na.apply(null,[this].concat([].slice.call(ra)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}};tinycolor$2.fromRatio=function(ea,na){if(_typeof(ea)=="object"){var ra={};for(var oa in ea)ea.hasOwnProperty(oa)&&(oa==="a"?ra[oa]=ea[oa]:ra[oa]=convertToPercentage(ea[oa]));ea=ra}return tinycolor$2(ea,na)};function inputToRGB(ea){var na={r:0,g:0,b:0},ra=1,oa=null,aa=null,sa=null,la=!1,ca=!1;return typeof ea=="string"&&(ea=stringInputToObject(ea)),_typeof(ea)=="object"&&(isValidCSSUnit(ea.r)&&isValidCSSUnit(ea.g)&&isValidCSSUnit(ea.b)?(na=rgbToRgb(ea.r,ea.g,ea.b),la=!0,ca=String(ea.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(ea.h)&&isValidCSSUnit(ea.s)&&isValidCSSUnit(ea.v)?(oa=convertToPercentage(ea.s),aa=convertToPercentage(ea.v),na=hsvToRgb(ea.h,oa,aa),la=!0,ca="hsv"):isValidCSSUnit(ea.h)&&isValidCSSUnit(ea.s)&&isValidCSSUnit(ea.l)&&(oa=convertToPercentage(ea.s),sa=convertToPercentage(ea.l),na=hslToRgb(ea.h,oa,sa),la=!0,ca="hsl"),ea.hasOwnProperty("a")&&(ra=ea.a)),ra=boundAlpha(ra),{ok:la,format:ea.format||ca,r:Math.min(255,Math.max(na.r,0)),g:Math.min(255,Math.max(na.g,0)),b:Math.min(255,Math.max(na.b,0)),a:ra}}function rgbToRgb(ea,na,ra){return{r:bound01(ea,255)*255,g:bound01(na,255)*255,b:bound01(ra,255)*255}}function rgbToHsl(ea,na,ra){ea=bound01(ea,255),na=bound01(na,255),ra=bound01(ra,255);var oa=Math.max(ea,na,ra),aa=Math.min(ea,na,ra),sa,la,ca=(oa+aa)/2;if(oa==aa)sa=la=0;else{var ua=oa-aa;switch(la=ca>.5?ua/(2-oa-aa):ua/(oa+aa),oa){case ea:sa=(na-ra)/ua+(na<ra?6:0);break;case na:sa=(ra-ea)/ua+2;break;case ra:sa=(ea-na)/ua+4;break}sa/=6}return{h:sa,s:la,l:ca}}function hslToRgb(ea,na,ra){var oa,aa,sa;ea=bound01(ea,360),na=bound01(na,100),ra=bound01(ra,100);function la(da,pa,ha){return ha<0&&(ha+=1),ha>1&&(ha-=1),ha<1/6?da+(pa-da)*6*ha:ha<1/2?pa:ha<2/3?da+(pa-da)*(2/3-ha)*6:da}if(na===0)oa=aa=sa=ra;else{var ca=ra<.5?ra*(1+na):ra+na-ra*na,ua=2*ra-ca;oa=la(ua,ca,ea+1/3),aa=la(ua,ca,ea),sa=la(ua,ca,ea-1/3)}return{r:oa*255,g:aa*255,b:sa*255}}function rgbToHsv(ea,na,ra){ea=bound01(ea,255),na=bound01(na,255),ra=bound01(ra,255);var oa=Math.max(ea,na,ra),aa=Math.min(ea,na,ra),sa,la,ca=oa,ua=oa-aa;if(la=oa===0?0:ua/oa,oa==aa)sa=0;else{switch(oa){case ea:sa=(na-ra)/ua+(na<ra?6:0);break;case na:sa=(ra-ea)/ua+2;break;case ra:sa=(ea-na)/ua+4;break}sa/=6}return{h:sa,s:la,v:ca}}function hsvToRgb(ea,na,ra){ea=bound01(ea,360)*6,na=bound01(na,100),ra=bound01(ra,100);var oa=Math.floor(ea),aa=ea-oa,sa=ra*(1-na),la=ra*(1-aa*na),ca=ra*(1-(1-aa)*na),ua=oa%6,da=[ra,la,sa,sa,ca,ra][ua],pa=[ca,ra,ra,la,sa,sa][ua],ha=[sa,sa,ca,ra,ra,la][ua];return{r:da*255,g:pa*255,b:ha*255}}function rgbToHex(ea,na,ra,oa){var aa=[pad2(Math.round(ea).toString(16)),pad2(Math.round(na).toString(16)),pad2(Math.round(ra).toString(16))];return oa&&aa[0].charAt(0)==aa[0].charAt(1)&&aa[1].charAt(0)==aa[1].charAt(1)&&aa[2].charAt(0)==aa[2].charAt(1)?aa[0].charAt(0)+aa[1].charAt(0)+aa[2].charAt(0):aa.join("")}function rgbaToHex(ea,na,ra,oa,aa){var sa=[pad2(Math.round(ea).toString(16)),pad2(Math.round(na).toString(16)),pad2(Math.round(ra).toString(16)),pad2(convertDecimalToHex(oa))];return aa&&sa[0].charAt(0)==sa[0].charAt(1)&&sa[1].charAt(0)==sa[1].charAt(1)&&sa[2].charAt(0)==sa[2].charAt(1)&&sa[3].charAt(0)==sa[3].charAt(1)?sa[0].charAt(0)+sa[1].charAt(0)+sa[2].charAt(0)+sa[3].charAt(0):sa.join("")}function rgbaToArgbHex(ea,na,ra,oa){var aa=[pad2(convertDecimalToHex(oa)),pad2(Math.round(ea).toString(16)),pad2(Math.round(na).toString(16)),pad2(Math.round(ra).toString(16))];return aa.join("")}tinycolor$2.equals=function(ea,na){return!ea||!na?!1:tinycolor$2(ea).toRgbString()==tinycolor$2(na).toRgbString()};tinycolor$2.random=function(){return tinycolor$2.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(ea,na){na=na===0?0:na||10;var ra=tinycolor$2(ea).toHsl();return ra.s-=na/100,ra.s=clamp01(ra.s),tinycolor$2(ra)}function _saturate(ea,na){na=na===0?0:na||10;var ra=tinycolor$2(ea).toHsl();return ra.s+=na/100,ra.s=clamp01(ra.s),tinycolor$2(ra)}function _greyscale(ea){return tinycolor$2(ea).desaturate(100)}function _lighten(ea,na){na=na===0?0:na||10;var ra=tinycolor$2(ea).toHsl();return ra.l+=na/100,ra.l=clamp01(ra.l),tinycolor$2(ra)}function _brighten(ea,na){na=na===0?0:na||10;var ra=tinycolor$2(ea).toRgb();return ra.r=Math.max(0,Math.min(255,ra.r-Math.round(255*-(na/100)))),ra.g=Math.max(0,Math.min(255,ra.g-Math.round(255*-(na/100)))),ra.b=Math.max(0,Math.min(255,ra.b-Math.round(255*-(na/100)))),tinycolor$2(ra)}function _darken(ea,na){na=na===0?0:na||10;var ra=tinycolor$2(ea).toHsl();return ra.l-=na/100,ra.l=clamp01(ra.l),tinycolor$2(ra)}function _spin(ea,na){var ra=tinycolor$2(ea).toHsl(),oa=(ra.h+na)%360;return ra.h=oa<0?360+oa:oa,tinycolor$2(ra)}function _complement(ea){var na=tinycolor$2(ea).toHsl();return na.h=(na.h+180)%360,tinycolor$2(na)}function polyad(ea,na){if(isNaN(na)||na<=0)throw new Error("Argument to polyad must be a positive number");for(var ra=tinycolor$2(ea).toHsl(),oa=[tinycolor$2(ea)],aa=360/na,sa=1;sa<na;sa++)oa.push(tinycolor$2({h:(ra.h+sa*aa)%360,s:ra.s,l:ra.l}));return oa}function _splitcomplement(ea){var na=tinycolor$2(ea).toHsl(),ra=na.h;return[tinycolor$2(ea),tinycolor$2({h:(ra+72)%360,s:na.s,l:na.l}),tinycolor$2({h:(ra+216)%360,s:na.s,l:na.l})]}function _analogous(ea,na,ra){na=na||6,ra=ra||30;var oa=tinycolor$2(ea).toHsl(),aa=360/ra,sa=[tinycolor$2(ea)];for(oa.h=(oa.h-(aa*na>>1)+720)%360;--na;)oa.h=(oa.h+aa)%360,sa.push(tinycolor$2(oa));return sa}function _monochromatic(ea,na){na=na||6;for(var ra=tinycolor$2(ea).toHsv(),oa=ra.h,aa=ra.s,sa=ra.v,la=[],ca=1/na;na--;)la.push(tinycolor$2({h:oa,s:aa,v:sa})),sa=(sa+ca)%1;return la}tinycolor$2.mix=function(ea,na,ra){ra=ra===0?0:ra||50;var oa=tinycolor$2(ea).toRgb(),aa=tinycolor$2(na).toRgb(),sa=ra/100,la={r:(aa.r-oa.r)*sa+oa.r,g:(aa.g-oa.g)*sa+oa.g,b:(aa.b-oa.b)*sa+oa.b,a:(aa.a-oa.a)*sa+oa.a};return tinycolor$2(la)};tinycolor$2.readability=function(ea,na){var ra=tinycolor$2(ea),oa=tinycolor$2(na);return(Math.max(ra.getLuminance(),oa.getLuminance())+.05)/(Math.min(ra.getLuminance(),oa.getLuminance())+.05)};tinycolor$2.isReadable=function(ea,na,ra){var oa=tinycolor$2.readability(ea,na),aa,sa;switch(sa=!1,aa=validateWCAG2Parms(ra),aa.level+aa.size){case"AAsmall":case"AAAlarge":sa=oa>=4.5;break;case"AAlarge":sa=oa>=3;break;case"AAAsmall":sa=oa>=7;break}return sa};tinycolor$2.mostReadable=function(ea,na,ra){var oa=null,aa=0,sa,la,ca,ua;ra=ra||{},la=ra.includeFallbackColors,ca=ra.level,ua=ra.size;for(var da=0;da<na.length;da++)sa=tinycolor$2.readability(ea,na[da]),sa>aa&&(aa=sa,oa=tinycolor$2(na[da]));return tinycolor$2.isReadable(ea,oa,{level:ca,size:ua})||!la?oa:(ra.includeFallbackColors=!1,tinycolor$2.mostReadable(ea,["#fff","#000"],ra))};var names=tinycolor$2.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"},hexNames=tinycolor$2.hexNames=flip(names);function flip(ea){var na={};for(var ra in ea)ea.hasOwnProperty(ra)&&(na[ea[ra]]=ra);return na}function boundAlpha(ea){return ea=parseFloat(ea),(isNaN(ea)||ea<0||ea>1)&&(ea=1),ea}function bound01(ea,na){isOnePointZero(ea)&&(ea="100%");var ra=isPercentage(ea);return ea=Math.min(na,Math.max(0,parseFloat(ea))),ra&&(ea=parseInt(ea*na,10)/100),Math.abs(ea-na)<1e-6?1:ea%na/parseFloat(na)}function clamp01(ea){return Math.min(1,Math.max(0,ea))}function parseIntFromHex(ea){return parseInt(ea,16)}function isOnePointZero(ea){return typeof ea=="string"&&ea.indexOf(".")!=-1&&parseFloat(ea)===1}function isPercentage(ea){return typeof ea=="string"&&ea.indexOf("%")!=-1}function pad2(ea){return ea.length==1?"0"+ea:""+ea}function convertToPercentage(ea){return ea<=1&&(ea=ea*100+"%"),ea}function convertDecimalToHex(ea){return Math.round(parseFloat(ea)*255).toString(16)}function convertHexToDecimal(ea){return parseIntFromHex(ea)/255}var matchers=function(){var ea="[-\\+]?\\d+%?",na="[-\\+]?\\d*\\.\\d+%?",ra="(?:"+na+")|(?:"+ea+")",oa="[\\s|\\(]+("+ra+")[,|\\s]+("+ra+")[,|\\s]+("+ra+")\\s*\\)?",aa="[\\s|\\(]+("+ra+")[,|\\s]+("+ra+")[,|\\s]+("+ra+")[,|\\s]+("+ra+")\\s*\\)?";return{CSS_UNIT:new RegExp(ra),rgb:new RegExp("rgb"+oa),rgba:new RegExp("rgba"+aa),hsl:new RegExp("hsl"+oa),hsla:new RegExp("hsla"+aa),hsv:new RegExp("hsv"+oa),hsva:new RegExp("hsva"+aa),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 isValidCSSUnit(ea){return!!matchers.CSS_UNIT.exec(ea)}function stringInputToObject(ea){ea=ea.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var na=!1;if(names[ea])ea=names[ea],na=!0;else if(ea=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ra;return(ra=matchers.rgb.exec(ea))?{r:ra[1],g:ra[2],b:ra[3]}:(ra=matchers.rgba.exec(ea))?{r:ra[1],g:ra[2],b:ra[3],a:ra[4]}:(ra=matchers.hsl.exec(ea))?{h:ra[1],s:ra[2],l:ra[3]}:(ra=matchers.hsla.exec(ea))?{h:ra[1],s:ra[2],l:ra[3],a:ra[4]}:(ra=matchers.hsv.exec(ea))?{h:ra[1],s:ra[2],v:ra[3]}:(ra=matchers.hsva.exec(ea))?{h:ra[1],s:ra[2],v:ra[3],a:ra[4]}:(ra=matchers.hex8.exec(ea))?{r:parseIntFromHex(ra[1]),g:parseIntFromHex(ra[2]),b:parseIntFromHex(ra[3]),a:convertHexToDecimal(ra[4]),format:na?"name":"hex8"}:(ra=matchers.hex6.exec(ea))?{r:parseIntFromHex(ra[1]),g:parseIntFromHex(ra[2]),b:parseIntFromHex(ra[3]),format:na?"name":"hex"}:(ra=matchers.hex4.exec(ea))?{r:parseIntFromHex(ra[1]+""+ra[1]),g:parseIntFromHex(ra[2]+""+ra[2]),b:parseIntFromHex(ra[3]+""+ra[3]),a:convertHexToDecimal(ra[4]+""+ra[4]),format:na?"name":"hex8"}:(ra=matchers.hex3.exec(ea))?{r:parseIntFromHex(ra[1]+""+ra[1]),g:parseIntFromHex(ra[2]+""+ra[2]),b:parseIntFromHex(ra[3]+""+ra[3]),format:na?"name":"hex"}:!1}function validateWCAG2Parms(ea){var na,ra;return ea=ea||{level:"AA",size:"small"},na=(ea.level||"AA").toUpperCase(),ra=(ea.size||"small").toLowerCase(),na!=="AA"&&na!=="AAA"&&(na="AA"),ra!=="small"&&ra!=="large"&&(ra="small"),{level:na,size:ra}}const isValidHexColor=ea=>/^(?:#(?:[A-Fa-f0-9]{3}){1,2}|transparent|aqua(?:marine)?|azure|beige|bisque|black|blanchedalmond|blue(?:violet)?|(?:alice|dodger|cadet|midnight|powder|royal|sky|slate|steel)blue|(?:rosy|saddle|sandy)?brown|burlywood5|chartreuse|chocolate|coral|corn(?:flowerblue|silk)|crimson|cyan|dark(?:(?:slate)?blue|cyan|goldenrod|(?:olive|sea)?green|(?:slate)?gr[ae]y|khaki|magenta|orange|orchid|red|salmon|turquoise|violet)|deep(?:pink|skyblue)|firebrick|fuchsia|gainsboro|gold(?:enrod)?|(?:dim|slate)?gr[ae]y|(?:forest|lawn|spring)?green|greenyellow|honeydew|indigo|ivory|khaki|lavender(?:blush)?|lemonchiffon|light(?:(?:sky|steel)?blue|coral|cyan|goldenrodyellow|(?:slate)?gr[ae]y|green|pink|salmon|seagreen|yellow)|lime(?:green)?|linen|magenta|maroon|medium(?:aquamarine|(?:slate)?blue|orchid|purple|s(?:ea|pring)green|turquoise|violetred)|mintcream|mistyrose|moccasin|navy|oldlace|olive(?:drab)?|orange(?:red)?|orchid|pale(?:goldenrod|green|turquoise|violetred)|papayawhip|peachpuff|peru|(?:hot)?pink|plum|purple|(?:indian)?red|salmon|sea(?:green|shell)|sienna|silver|snow|tan|teal|thistle|tomato|turquoise|violet|wheat|whitesmoke|(?:antique|floral|ghost|navajo)?white|yellow(?:green)?)$/.test(ea),isValidSolidColor=ea=>{const na=new Option().style;return na.backgroundColor=ea,na.backgroundColor!==""},isGradientColor=ea=>ea.includes("gradient"),getColorState=ea=>{const na=tinycolor$2(ea),ra=na.toHsl(),oa=na.toHsv(),aa=na.toRgb();let sa=na.toHex(!0);return ra.s===0&&(ra.h=0,oa.h=0),ea==="transparent"||aa.a===0?sa="transparent":sa=`#${sa}`,{hsl:ra,hex:sa,rgb:aa,hsv:oa}},isEyeDropperSupport=()=>typeof window<"u"&&"EyeDropper"in window,calcStepPosition=(ea,na,ra,oa)=>{const{x:aa}=na.getBoundingClientRect(),sa=ea-aa;return Math.min(Math.max(sa,ra),oa)},parseColor=(ea="#000000",na=!1)=>{const ra=na?"#000000":ea;if(isValidSolidColor(ra)){const oa=[{data:getColorState(ra),position:{value:0,unit:"%"}}];return{type:"solid",steps:oa,activeColorIndex:0,activeColor:oa[0].data,indeterminate:na}}if(isGradientColor(ra)){const{type:oa,colorStops:aa,orientation:sa}=gradientParser.parse(ra)[0],la=oa.includes("repeating"),ca=oa.split("repeating-").filter(pa=>pa)[0],ua=aa.map(pa=>{let ha="";pa.type==="literal"?ha=pa.value:pa.type==="hex"?ha=`#${pa.value}`:pa.type==="rgba"&&(ha=`${pa.type}(${pa.value.join(", ")})`);const ga={value:parseInt(pa.length?.value||"0",10),unit:pa.length?.type||"%"};return{data:getColorState(ha),position:ga}}),da=Array.isArray(sa)?sa[0]:sa;return{type:ca,steps:ua,activeColorIndex:0,activeColor:ua[0].data,repeat:la,orientation:da,isGradient:!0,indeterminate:na}}return parseColor("#000000")},defaultState=parseColor("transparent"),ColorPickerContext=reactExports.createContext({state:defaultState,value:"transparent",palletStorageKey:"dpColorPallets",allowedType:["solid","linear-gradient","radial-gradient"],setType:()=>{},setColorState:()=>{},setActiveColor:()=>{},setActiveStep:()=>{},addStep:()=>{},setStepPosition:()=>{},deleteCurrentStep:()=>{},setRadialOrigin:()=>{},setRepeat:()=>{},setAngle:()=>{},reverseSteps:()=>{},sortSteps:()=>{}}),useGetColorData=()=>reactExports.useContext(ColorPickerContext),ColorTypes=ea=>{const{state:{type:na},setType:ra}=useGetColorData(),oa=reactExports.useCallback(aa=>{ra(aa)},[ra]);return jsxRuntimeExports.jsx(ToggleButtons$1,{multiple:!1,buttons:ColorPickerTypesButtons,value:na,onChange:oa,...ea})},theme$3u=withTheme(scheme$1n),ColorTypes$1=dt$1(ColorTypes).withConfig({displayName:"ColorTypes",componentId:"sc-dy2gp8-0"})(["",""],theme$3u.colors(ea=>lt$1(["background-color:",";svg{color:",";}.depicter-item-selected{background-color:",";svg{color:",";}}"],ea.colorTypes.background,ea.colorTypes.item.color,ea.colorTypes.item.activeBackground,ea.colorTypes.item.active)));var common={},Alpha$1={},lib$4={},flattenNames={},_freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var ea=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1;return _freeGlobal=ea,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var ea=require_freeGlobal(),na=typeof self=="object"&&self&&self.Object===Object&&self,ra=ea||na||Function("return this")();return _root=ra,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var ea=require_root(),na=ea.Symbol;return _Symbol=na,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var ea=require_Symbol(),na=Object.prototype,ra=na.hasOwnProperty,oa=na.toString,aa=ea?ea.toStringTag:void 0;function sa(la){var ca=ra.call(la,aa),ua=la[aa];try{la[aa]=void 0;var da=!0}catch{}var pa=oa.call(la);return da&&(ca?la[aa]=ua:delete la[aa]),pa}return _getRawTag=sa,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var ea=Object.prototype,na=ea.toString;function ra(oa){return na.call(oa)}return _objectToString=ra,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var ea=require_Symbol(),na=require_getRawTag(),ra=require_objectToString(),oa="[object Null]",aa="[object Undefined]",sa=ea?ea.toStringTag:void 0;function la(ca){return ca==null?ca===void 0?aa:oa:sa&&sa in Object(ca)?na(ca):ra(ca)}return _baseGetTag=la,_baseGetTag}var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var ea=Array.isArray;return isArray_1=ea,isArray_1}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function ea(na){return na!=null&&typeof na=="object"}return isObjectLike_1=ea,isObjectLike_1}var isString_1,hasRequiredIsString$1;function requireIsString$1(){if(hasRequiredIsString$1)return isString_1;hasRequiredIsString$1=1;var ea=require_baseGetTag(),na=requireIsArray(),ra=requireIsObjectLike(),oa="[object String]";function aa(sa){return typeof sa=="string"||!na(sa)&&ra(sa)&&ea(sa)==oa}return isString_1=aa,isString_1}var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function ea(na){return function(ra,oa,aa){for(var sa=-1,la=Object(ra),ca=aa(ra),ua=ca.length;ua--;){var da=ca[na?ua:++sa];if(oa(la[da],da,la)===!1)break}return ra}}return _createBaseFor=ea,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var ea=require_createBaseFor(),na=ea();return _baseFor=na,_baseFor}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function ea(na,ra){for(var oa=-1,aa=Array(na);++oa<na;)aa[oa]=ra(oa);return aa}return _baseTimes=ea,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var ea=require_baseGetTag(),na=requireIsObjectLike(),ra="[object Arguments]";function oa(aa){return na(aa)&&ea(aa)==ra}return _baseIsArguments=oa,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var ea=require_baseIsArguments(),na=requireIsObjectLike(),ra=Object.prototype,oa=ra.hasOwnProperty,aa=ra.propertyIsEnumerable,sa=ea(function(){return arguments}())?ea:function(la){return na(la)&&oa.call(la,"callee")&&!aa.call(la,"callee")};return isArguments_1=sa,isArguments_1}var isBuffer$3={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function ea(){return!1}return stubFalse_1=ea,stubFalse_1}isBuffer$3.exports;var hasRequiredIsBuffer$3;function requireIsBuffer$3(){return hasRequiredIsBuffer$3||(hasRequiredIsBuffer$3=1,function(ea,na){var ra=require_root(),oa=requireStubFalse(),aa=na&&!na.nodeType&&na,sa=aa&&!0&&ea&&!ea.nodeType&&ea,la=sa&&sa.exports===aa,ca=la?ra.Buffer:void 0,ua=ca?ca.isBuffer:void 0,da=ua||oa;ea.exports=da}(isBuffer$3,isBuffer$3.exports)),isBuffer$3.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var ea=9007199254740991,na=/^(?:0|[1-9]\d*)$/;function ra(oa,aa){var sa=typeof oa;return aa=aa??ea,!!aa&&(sa=="number"||sa!="symbol"&&na.test(oa))&&oa>-1&&oa%1==0&&oa<aa}return _isIndex=ra,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var ea=9007199254740991;function na(ra){return typeof ra=="number"&&ra>-1&&ra%1==0&&ra<=ea}return isLength_1=na,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var ea=require_baseGetTag(),na=requireIsLength(),ra=requireIsObjectLike(),oa="[object Arguments]",aa="[object Array]",sa="[object Boolean]",la="[object Date]",ca="[object Error]",ua="[object Function]",da="[object Map]",pa="[object Number]",ha="[object Object]",ga="[object RegExp]",fa="[object Set]",ma="[object String]",va="[object WeakMap]",xa="[object ArrayBuffer]",ya="[object DataView]",Aa="[object Float32Array]",Ca="[object Float64Array]",Sa="[object Int8Array]",wa="[object Int16Array]",ba="[object Int32Array]",Ea="[object Uint8Array]",$a="[object Uint8ClampedArray]",Ma="[object Uint16Array]",Ia="[object Uint32Array]",Oa={};Oa[Aa]=Oa[Ca]=Oa[Sa]=Oa[wa]=Oa[ba]=Oa[Ea]=Oa[$a]=Oa[Ma]=Oa[Ia]=!0,Oa[oa]=Oa[aa]=Oa[xa]=Oa[sa]=Oa[ya]=Oa[la]=Oa[ca]=Oa[ua]=Oa[da]=Oa[pa]=Oa[ha]=Oa[ga]=Oa[fa]=Oa[ma]=Oa[va]=!1;function Da(Ta){return ra(Ta)&&na(Ta.length)&&!!Oa[ea(Ta)]}return _baseIsTypedArray=Da,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function ea(na){return function(ra){return na(ra)}}return _baseUnary=ea,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(ea,na){var ra=require_freeGlobal(),oa=na&&!na.nodeType&&na,aa=oa&&!0&&ea&&!ea.nodeType&&ea,sa=aa&&aa.exports===oa,la=sa&&ra.process,ca=function(){try{var ua=aa&&aa.require&&aa.require("util").types;return ua||la&&la.binding&&la.binding("util")}catch{}}();ea.exports=ca}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var ea=require_baseIsTypedArray(),na=require_baseUnary(),ra=require_nodeUtil(),oa=ra&&ra.isTypedArray,aa=oa?na(oa):ea;return isTypedArray_1=aa,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var ea=require_baseTimes(),na=requireIsArguments(),ra=requireIsArray(),oa=requireIsBuffer$3(),aa=require_isIndex(),sa=requireIsTypedArray(),la=Object.prototype,ca=la.hasOwnProperty;function ua(da,pa){var ha=ra(da),ga=!ha&&na(da),fa=!ha&&!ga&&oa(da),ma=!ha&&!ga&&!fa&&sa(da),va=ha||ga||fa||ma,xa=va?ea(da.length,String):[],ya=xa.length;for(var Aa in da)(pa||ca.call(da,Aa))&&!(va&&(Aa=="length"||fa&&(Aa=="offset"||Aa=="parent")||ma&&(Aa=="buffer"||Aa=="byteLength"||Aa=="byteOffset")||aa(Aa,ya)))&&xa.push(Aa);return xa}return _arrayLikeKeys=ua,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var ea=Object.prototype;function na(ra){var oa=ra&&ra.constructor,aa=typeof oa=="function"&&oa.prototype||ea;return ra===aa}return _isPrototype=na,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function ea(na,ra){return function(oa){return na(ra(oa))}}return _overArg=ea,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var ea=require_overArg(),na=ea(Object.keys,Object);return _nativeKeys=na,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var ea=require_isPrototype(),na=require_nativeKeys(),ra=Object.prototype,oa=ra.hasOwnProperty;function aa(sa){if(!ea(sa))return na(sa);var la=[];for(var ca in Object(sa))oa.call(sa,ca)&&ca!="constructor"&&la.push(ca);return la}return _baseKeys=aa,_baseKeys}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function ea(na){var ra=typeof na;return na!=null&&(ra=="object"||ra=="function")}return isObject_1=ea,isObject_1}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var ea=require_baseGetTag(),na=requireIsObject(),ra="[object AsyncFunction]",oa="[object Function]",aa="[object GeneratorFunction]",sa="[object Proxy]";function la(ca){if(!na(ca))return!1;var ua=ea(ca);return ua==oa||ua==aa||ua==ra||ua==sa}return isFunction_1=la,isFunction_1}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var ea=requireIsFunction(),na=requireIsLength();function ra(oa){return oa!=null&&na(oa.length)&&!ea(oa)}return isArrayLike_1=ra,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var ea=require_arrayLikeKeys(),na=require_baseKeys(),ra=requireIsArrayLike();function oa(aa){return ra(aa)?ea(aa):na(aa)}return keys_1=oa,keys_1}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var ea=require_baseFor(),na=requireKeys();function ra(oa,aa){return oa&&ea(oa,aa,na)}return _baseForOwn=ra,_baseForOwn}var identity_1,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity_1;hasRequiredIdentity=1;function ea(na){return na}return identity_1=ea,identity_1}var _castFunction,hasRequired_castFunction;function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var ea=requireIdentity();function na(ra){return typeof ra=="function"?ra:ea}return _castFunction=na,_castFunction}var forOwn_1,hasRequiredForOwn;function requireForOwn(){if(hasRequiredForOwn)return forOwn_1;hasRequiredForOwn=1;var ea=require_baseForOwn(),na=require_castFunction();function ra(oa,aa){return oa&&ea(oa,na(aa))}return forOwn_1=ra,forOwn_1}var _getPrototype,hasRequired_getPrototype;function require_getPrototype(){if(hasRequired_getPrototype)return _getPrototype;hasRequired_getPrototype=1;var ea=require_overArg(),na=ea(Object.getPrototypeOf,Object);return _getPrototype=na,_getPrototype}var isPlainObject_1,hasRequiredIsPlainObject;function requireIsPlainObject(){if(hasRequiredIsPlainObject)return isPlainObject_1;hasRequiredIsPlainObject=1;var ea=require_baseGetTag(),na=require_getPrototype(),ra=requireIsObjectLike(),oa="[object Object]",aa=Function.prototype,sa=Object.prototype,la=aa.toString,ca=sa.hasOwnProperty,ua=la.call(Object);function da(pa){if(!ra(pa)||ea(pa)!=oa)return!1;var ha=na(pa);if(ha===null)return!0;var ga=ca.call(ha,"constructor")&&ha.constructor;return typeof ga=="function"&&ga instanceof ga&&la.call(ga)==ua}return isPlainObject_1=da,isPlainObject_1}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function ea(na,ra){for(var oa=-1,aa=na==null?0:na.length,sa=Array(aa);++oa<aa;)sa[oa]=ra(na[oa],oa,na);return sa}return _arrayMap=ea,_arrayMap}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function ea(){this.__data__=[],this.size=0}return _listCacheClear=ea,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function ea(na,ra){return na===ra||na!==na&&ra!==ra}return eq_1=ea,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var ea=requireEq();function na(ra,oa){for(var aa=ra.length;aa--;)if(ea(ra[aa][0],oa))return aa;return-1}return _assocIndexOf=na,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var ea=require_assocIndexOf(),na=Array.prototype,ra=na.splice;function oa(aa){var sa=this.__data__,la=ea(sa,aa);if(la<0)return!1;var ca=sa.length-1;return la==ca?sa.pop():ra.call(sa,la,1),--this.size,!0}return _listCacheDelete=oa,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var ea=require_assocIndexOf();function na(ra){var oa=this.__data__,aa=ea(oa,ra);return aa<0?void 0:oa[aa][1]}return _listCacheGet=na,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var ea=require_assocIndexOf();function na(ra){return ea(this.__data__,ra)>-1}return _listCacheHas=na,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var ea=require_assocIndexOf();function na(ra,oa){var aa=this.__data__,sa=ea(aa,ra);return sa<0?(++this.size,aa.push([ra,oa])):aa[sa][1]=oa,this}return _listCacheSet=na,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var ea=require_listCacheClear(),na=require_listCacheDelete(),ra=require_listCacheGet(),oa=require_listCacheHas(),aa=require_listCacheSet();function sa(la){var ca=-1,ua=la==null?0:la.length;for(this.clear();++ca<ua;){var da=la[ca];this.set(da[0],da[1])}}return sa.prototype.clear=ea,sa.prototype.delete=na,sa.prototype.get=ra,sa.prototype.has=oa,sa.prototype.set=aa,_ListCache=sa,_ListCache}var _stackClear,hasRequired_stackClear;function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var ea=require_ListCache();function na(){this.__data__=new ea,this.size=0}return _stackClear=na,_stackClear}var _stackDelete,hasRequired_stackDelete;function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;hasRequired_stackDelete=1;function ea(na){var ra=this.__data__,oa=ra.delete(na);return this.size=ra.size,oa}return _stackDelete=ea,_stackDelete}var _stackGet,hasRequired_stackGet;function require_stackGet(){if(hasRequired_stackGet)return _stackGet;hasRequired_stackGet=1;function ea(na){return this.__data__.get(na)}return _stackGet=ea,_stackGet}var _stackHas,hasRequired_stackHas;function require_stackHas(){if(hasRequired_stackHas)return _stackHas;hasRequired_stackHas=1;function ea(na){return this.__data__.has(na)}return _stackHas=ea,_stackHas}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var ea=require_root(),na=ea["__core-js_shared__"];return _coreJsData=na,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var ea=require_coreJsData(),na=function(){var oa=/[^.]+$/.exec(ea&&ea.keys&&ea.keys.IE_PROTO||"");return oa?"Symbol(src)_1."+oa:""}();function ra(oa){return!!na&&na in oa}return _isMasked=ra,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var ea=Function.prototype,na=ea.toString;function ra(oa){if(oa!=null){try{return na.call(oa)}catch{}try{return oa+""}catch{}}return""}return _toSource=ra,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var ea=requireIsFunction(),na=require_isMasked(),ra=requireIsObject(),oa=require_toSource(),aa=/[\\^$.*+?()[\]{}|]/g,sa=/^\[object .+?Constructor\]$/,la=Function.prototype,ca=Object.prototype,ua=la.toString,da=ca.hasOwnProperty,pa=RegExp("^"+ua.call(da).replace(aa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ha(ga){if(!ra(ga)||na(ga))return!1;var fa=ea(ga)?pa:sa;return fa.test(oa(ga))}return _baseIsNative=ha,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function ea(na,ra){return na?.[ra]}return _getValue=ea,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var ea=require_baseIsNative(),na=require_getValue();function ra(oa,aa){var sa=na(oa,aa);return ea(sa)?sa:void 0}return _getNative=ra,_getNative}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var ea=require_getNative(),na=require_root(),ra=ea(na,"Map");return _Map=ra,_Map}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var ea=require_getNative(),na=ea(Object,"create");return _nativeCreate=na,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var ea=require_nativeCreate();function na(){this.__data__=ea?ea(null):{},this.size=0}return _hashClear=na,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function ea(na){var ra=this.has(na)&&delete this.__data__[na];return this.size-=ra?1:0,ra}return _hashDelete=ea,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var ea=require_nativeCreate(),na="__lodash_hash_undefined__",ra=Object.prototype,oa=ra.hasOwnProperty;function aa(sa){var la=this.__data__;if(ea){var ca=la[sa];return ca===na?void 0:ca}return oa.call(la,sa)?la[sa]:void 0}return _hashGet=aa,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var ea=require_nativeCreate(),na=Object.prototype,ra=na.hasOwnProperty;function oa(aa){var sa=this.__data__;return ea?sa[aa]!==void 0:ra.call(sa,aa)}return _hashHas=oa,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var ea=require_nativeCreate(),na="__lodash_hash_undefined__";function ra(oa,aa){var sa=this.__data__;return this.size+=this.has(oa)?0:1,sa[oa]=ea&&aa===void 0?na:aa,this}return _hashSet=ra,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var ea=require_hashClear(),na=require_hashDelete(),ra=require_hashGet(),oa=require_hashHas(),aa=require_hashSet();function sa(la){var ca=-1,ua=la==null?0:la.length;for(this.clear();++ca<ua;){var da=la[ca];this.set(da[0],da[1])}}return sa.prototype.clear=ea,sa.prototype.delete=na,sa.prototype.get=ra,sa.prototype.has=oa,sa.prototype.set=aa,_Hash=sa,_Hash}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var ea=require_Hash(),na=require_ListCache(),ra=require_Map();function oa(){this.size=0,this.__data__={hash:new ea,map:new(ra||na),string:new ea}}return _mapCacheClear=oa,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function ea(na){var ra=typeof na;return ra=="string"||ra=="number"||ra=="symbol"||ra=="boolean"?na!=="__proto__":na===null}return _isKeyable=ea,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var ea=require_isKeyable();function na(ra,oa){var aa=ra.__data__;return ea(oa)?aa[typeof oa=="string"?"string":"hash"]:aa.map}return _getMapData=na,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var ea=require_getMapData();function na(ra){var oa=ea(this,ra).delete(ra);return this.size-=oa?1:0,oa}return _mapCacheDelete=na,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var ea=require_getMapData();function na(ra){return ea(this,ra).get(ra)}return _mapCacheGet=na,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var ea=require_getMapData();function na(ra){return ea(this,ra).has(ra)}return _mapCacheHas=na,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var ea=require_getMapData();function na(ra,oa){var aa=ea(this,ra),sa=aa.size;return aa.set(ra,oa),this.size+=aa.size==sa?0:1,this}return _mapCacheSet=na,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var ea=require_mapCacheClear(),na=require_mapCacheDelete(),ra=require_mapCacheGet(),oa=require_mapCacheHas(),aa=require_mapCacheSet();function sa(la){var ca=-1,ua=la==null?0:la.length;for(this.clear();++ca<ua;){var da=la[ca];this.set(da[0],da[1])}}return sa.prototype.clear=ea,sa.prototype.delete=na,sa.prototype.get=ra,sa.prototype.has=oa,sa.prototype.set=aa,_MapCache=sa,_MapCache}var _stackSet,hasRequired_stackSet;function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var ea=require_ListCache(),na=require_Map(),ra=require_MapCache(),oa=200;function aa(sa,la){var ca=this.__data__;if(ca instanceof ea){var ua=ca.__data__;if(!na||ua.length<oa-1)return ua.push([sa,la]),this.size=++ca.size,this;ca=this.__data__=new ra(ua)}return ca.set(sa,la),this.size=ca.size,this}return _stackSet=aa,_stackSet}var _Stack,hasRequired_Stack;function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var ea=require_ListCache(),na=require_stackClear(),ra=require_stackDelete(),oa=require_stackGet(),aa=require_stackHas(),sa=require_stackSet();function la(ca){var ua=this.__data__=new ea(ca);this.size=ua.size}return la.prototype.clear=na,la.prototype.delete=ra,la.prototype.get=oa,la.prototype.has=aa,la.prototype.set=sa,_Stack=la,_Stack}var _setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var ea="__lodash_hash_undefined__";function na(ra){return this.__data__.set(ra,ea),this}return _setCacheAdd=na,_setCacheAdd}var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function ea(na){return this.__data__.has(na)}return _setCacheHas=ea,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var ea=require_MapCache(),na=require_setCacheAdd(),ra=require_setCacheHas();function oa(aa){var sa=-1,la=aa==null?0:aa.length;for(this.__data__=new ea;++sa<la;)this.add(aa[sa])}return oa.prototype.add=oa.prototype.push=na,oa.prototype.has=ra,_SetCache=oa,_SetCache}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function ea(na,ra){for(var oa=-1,aa=na==null?0:na.length;++oa<aa;)if(ra(na[oa],oa,na))return!0;return!1}return _arraySome=ea,_arraySome}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function ea(na,ra){return na.has(ra)}return _cacheHas=ea,_cacheHas}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var ea=require_SetCache(),na=require_arraySome(),ra=require_cacheHas(),oa=1,aa=2;function sa(la,ca,ua,da,pa,ha){var ga=ua&oa,fa=la.length,ma=ca.length;if(fa!=ma&&!(ga&&ma>fa))return!1;var va=ha.get(la),xa=ha.get(ca);if(va&&xa)return va==ca&&xa==la;var ya=-1,Aa=!0,Ca=ua&aa?new ea:void 0;for(ha.set(la,ca),ha.set(ca,la);++ya<fa;){var Sa=la[ya],wa=ca[ya];if(da)var ba=ga?da(wa,Sa,ya,ca,la,ha):da(Sa,wa,ya,la,ca,ha);if(ba!==void 0){if(ba)continue;Aa=!1;break}if(Ca){if(!na(ca,function(Ea,$a){if(!ra(Ca,$a)&&(Sa===Ea||pa(Sa,Ea,ua,da,ha)))return Ca.push($a)})){Aa=!1;break}}else if(!(Sa===wa||pa(Sa,wa,ua,da,ha))){Aa=!1;break}}return ha.delete(la),ha.delete(ca),Aa}return _equalArrays=sa,_equalArrays}var _Uint8Array,hasRequired_Uint8Array;function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var ea=require_root(),na=ea.Uint8Array;return _Uint8Array=na,_Uint8Array}var _mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function ea(na){var ra=-1,oa=Array(na.size);return na.forEach(function(aa,sa){oa[++ra]=[sa,aa]}),oa}return _mapToArray=ea,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function ea(na){var ra=-1,oa=Array(na.size);return na.forEach(function(aa){oa[++ra]=aa}),oa}return _setToArray=ea,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var ea=require_Symbol(),na=require_Uint8Array(),ra=requireEq(),oa=require_equalArrays(),aa=require_mapToArray(),sa=require_setToArray(),la=1,ca=2,ua="[object Boolean]",da="[object Date]",pa="[object Error]",ha="[object Map]",ga="[object Number]",fa="[object RegExp]",ma="[object Set]",va="[object String]",xa="[object Symbol]",ya="[object ArrayBuffer]",Aa="[object DataView]",Ca=ea?ea.prototype:void 0,Sa=Ca?Ca.valueOf:void 0;function wa(ba,Ea,$a,Ma,Ia,Oa,Da){switch($a){case Aa:if(ba.byteLength!=Ea.byteLength||ba.byteOffset!=Ea.byteOffset)return!1;ba=ba.buffer,Ea=Ea.buffer;case ya:return!(ba.byteLength!=Ea.byteLength||!Oa(new na(ba),new na(Ea)));case ua:case da:case ga:return ra(+ba,+Ea);case pa:return ba.name==Ea.name&&ba.message==Ea.message;case fa:case va:return ba==Ea+"";case ha:var Ta=aa;case ma:var _a=Ma&la;if(Ta||(Ta=sa),ba.size!=Ea.size&&!_a)return!1;var La=Da.get(ba);if(La)return La==Ea;Ma|=ca,Da.set(ba,Ea);var Na=oa(Ta(ba),Ta(Ea),Ma,Ia,Oa,Da);return Da.delete(ba),Na;case xa:if(Sa)return Sa.call(ba)==Sa.call(Ea)}return!1}return _equalByTag=wa,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function ea(na,ra){for(var oa=-1,aa=ra.length,sa=na.length;++oa<aa;)na[sa+oa]=ra[oa];return na}return _arrayPush=ea,_arrayPush}var _baseGetAllKeys,hasRequired_baseGetAllKeys;function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var ea=require_arrayPush(),na=requireIsArray();function ra(oa,aa,sa){var la=aa(oa);return na(oa)?la:ea(la,sa(oa))}return _baseGetAllKeys=ra,_baseGetAllKeys}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function ea(na,ra){for(var oa=-1,aa=na==null?0:na.length,sa=0,la=[];++oa<aa;){var ca=na[oa];ra(ca,oa,na)&&(la[sa++]=ca)}return la}return _arrayFilter=ea,_arrayFilter}var stubArray_1,hasRequiredStubArray;function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;hasRequiredStubArray=1;function ea(){return[]}return stubArray_1=ea,stubArray_1}var _getSymbols,hasRequired_getSymbols;function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var ea=require_arrayFilter(),na=requireStubArray(),ra=Object.prototype,oa=ra.propertyIsEnumerable,aa=Object.getOwnPropertySymbols,sa=aa?function(la){return la==null?[]:(la=Object(la),ea(aa(la),function(ca){return oa.call(la,ca)}))}:na;return _getSymbols=sa,_getSymbols}var _getAllKeys,hasRequired_getAllKeys;function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var ea=require_baseGetAllKeys(),na=require_getSymbols(),ra=requireKeys();function oa(aa){return ea(aa,ra,na)}return _getAllKeys=oa,_getAllKeys}var _equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var ea=require_getAllKeys(),na=1,ra=Object.prototype,oa=ra.hasOwnProperty;function aa(sa,la,ca,ua,da,pa){var ha=ca&na,ga=ea(sa),fa=ga.length,ma=ea(la),va=ma.length;if(fa!=va&&!ha)return!1;for(var xa=fa;xa--;){var ya=ga[xa];if(!(ha?ya in la:oa.call(la,ya)))return!1}var Aa=pa.get(sa),Ca=pa.get(la);if(Aa&&Ca)return Aa==la&&Ca==sa;var Sa=!0;pa.set(sa,la),pa.set(la,sa);for(var wa=ha;++xa<fa;){ya=ga[xa];var ba=sa[ya],Ea=la[ya];if(ua)var $a=ha?ua(Ea,ba,ya,la,sa,pa):ua(ba,Ea,ya,sa,la,pa);if(!($a===void 0?ba===Ea||da(ba,Ea,ca,ua,pa):$a)){Sa=!1;break}wa||(wa=ya=="constructor")}if(Sa&&!wa){var Ma=sa.constructor,Ia=la.constructor;Ma!=Ia&&"constructor"in sa&&"constructor"in la&&!(typeof Ma=="function"&&Ma instanceof Ma&&typeof Ia=="function"&&Ia instanceof Ia)&&(Sa=!1)}return pa.delete(sa),pa.delete(la),Sa}return _equalObjects=aa,_equalObjects}var _DataView,hasRequired_DataView;function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var ea=require_getNative(),na=require_root(),ra=ea(na,"DataView");return _DataView=ra,_DataView}var _Promise,hasRequired_Promise;function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var ea=require_getNative(),na=require_root(),ra=ea(na,"Promise");return _Promise=ra,_Promise}var _Set,hasRequired_Set;function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var ea=require_getNative(),na=require_root(),ra=ea(na,"Set");return _Set=ra,_Set}var _WeakMap,hasRequired_WeakMap;function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var ea=require_getNative(),na=require_root(),ra=ea(na,"WeakMap");return _WeakMap=ra,_WeakMap}var _getTag,hasRequired_getTag;function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var ea=require_DataView(),na=require_Map(),ra=require_Promise(),oa=require_Set(),aa=require_WeakMap(),sa=require_baseGetTag(),la=require_toSource(),ca="[object Map]",ua="[object Object]",da="[object Promise]",pa="[object Set]",ha="[object WeakMap]",ga="[object DataView]",fa=la(ea),ma=la(na),va=la(ra),xa=la(oa),ya=la(aa),Aa=sa;return(ea&&Aa(new ea(new ArrayBuffer(1)))!=ga||na&&Aa(new na)!=ca||ra&&Aa(ra.resolve())!=da||oa&&Aa(new oa)!=pa||aa&&Aa(new aa)!=ha)&&(Aa=function(Ca){var Sa=sa(Ca),wa=Sa==ua?Ca.constructor:void 0,ba=wa?la(wa):"";if(ba)switch(ba){case fa:return ga;case ma:return ca;case va:return da;case xa:return pa;case ya:return ha}return Sa}),_getTag=Aa,_getTag}var _baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var ea=require_Stack(),na=require_equalArrays(),ra=require_equalByTag(),oa=require_equalObjects(),aa=require_getTag(),sa=requireIsArray(),la=requireIsBuffer$3(),ca=requireIsTypedArray(),ua=1,da="[object Arguments]",pa="[object Array]",ha="[object Object]",ga=Object.prototype,fa=ga.hasOwnProperty;function ma(va,xa,ya,Aa,Ca,Sa){var wa=sa(va),ba=sa(xa),Ea=wa?pa:aa(va),$a=ba?pa:aa(xa);Ea=Ea==da?ha:Ea,$a=$a==da?ha:$a;var Ma=Ea==ha,Ia=$a==ha,Oa=Ea==$a;if(Oa&&la(va)){if(!la(xa))return!1;wa=!0,Ma=!1}if(Oa&&!Ma)return Sa||(Sa=new ea),wa||ca(va)?na(va,xa,ya,Aa,Ca,Sa):ra(va,xa,Ea,ya,Aa,Ca,Sa);if(!(ya&ua)){var Da=Ma&&fa.call(va,"__wrapped__"),Ta=Ia&&fa.call(xa,"__wrapped__");if(Da||Ta){var _a=Da?va.value():va,La=Ta?xa.value():xa;return Sa||(Sa=new ea),Ca(_a,La,ya,Aa,Sa)}}return Oa?(Sa||(Sa=new ea),oa(va,xa,ya,Aa,Ca,Sa)):!1}return _baseIsEqualDeep=ma,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var ea=require_baseIsEqualDeep(),na=requireIsObjectLike();function ra(oa,aa,sa,la,ca){return oa===aa?!0:oa==null||aa==null||!na(oa)&&!na(aa)?oa!==oa&&aa!==aa:ea(oa,aa,sa,la,ra,ca)}return _baseIsEqual=ra,_baseIsEqual}var _baseIsMatch,hasRequired_baseIsMatch;function require_baseIsMatch(){if(hasRequired_baseIsMatch)return _baseIsMatch;hasRequired_baseIsMatch=1;var ea=require_Stack(),na=require_baseIsEqual(),ra=1,oa=2;function aa(sa,la,ca,ua){var da=ca.length,pa=da,ha=!ua;if(sa==null)return!pa;for(sa=Object(sa);da--;){var ga=ca[da];if(ha&&ga[2]?ga[1]!==sa[ga[0]]:!(ga[0]in sa))return!1}for(;++da<pa;){ga=ca[da];var fa=ga[0],ma=sa[fa],va=ga[1];if(ha&&ga[2]){if(ma===void 0&&!(fa in sa))return!1}else{var xa=new ea;if(ua)var ya=ua(ma,va,fa,sa,la,xa);if(!(ya===void 0?na(va,ma,ra|oa,ua,xa):ya))return!1}}return!0}return _baseIsMatch=aa,_baseIsMatch}var _isStrictComparable,hasRequired_isStrictComparable;function require_isStrictComparable(){if(hasRequired_isStrictComparable)return _isStrictComparable;hasRequired_isStrictComparable=1;var ea=requireIsObject();function na(ra){return ra===ra&&!ea(ra)}return _isStrictComparable=na,_isStrictComparable}var _getMatchData,hasRequired_getMatchData;function require_getMatchData(){if(hasRequired_getMatchData)return _getMatchData;hasRequired_getMatchData=1;var ea=require_isStrictComparable(),na=requireKeys();function ra(oa){for(var aa=na(oa),sa=aa.length;sa--;){var la=aa[sa],ca=oa[la];aa[sa]=[la,ca,ea(ca)]}return aa}return _getMatchData=ra,_getMatchData}var _matchesStrictComparable,hasRequired_matchesStrictComparable;function require_matchesStrictComparable(){if(hasRequired_matchesStrictComparable)return _matchesStrictComparable;hasRequired_matchesStrictComparable=1;function ea(na,ra){return function(oa){return oa==null?!1:oa[na]===ra&&(ra!==void 0||na in Object(oa))}}return _matchesStrictComparable=ea,_matchesStrictComparable}var _baseMatches,hasRequired_baseMatches;function require_baseMatches(){if(hasRequired_baseMatches)return _baseMatches;hasRequired_baseMatches=1;var ea=require_baseIsMatch(),na=require_getMatchData(),ra=require_matchesStrictComparable();function oa(aa){var sa=na(aa);return sa.length==1&&sa[0][2]?ra(sa[0][0],sa[0][1]):function(la){return la===aa||ea(la,aa,sa)}}return _baseMatches=oa,_baseMatches}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var ea=require_baseGetTag(),na=requireIsObjectLike(),ra="[object Symbol]";function oa(aa){return typeof aa=="symbol"||na(aa)&&ea(aa)==ra}return isSymbol_1=oa,isSymbol_1}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var ea=requireIsArray(),na=requireIsSymbol(),ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oa=/^\w*$/;function aa(sa,la){if(ea(sa))return!1;var ca=typeof sa;return ca=="number"||ca=="symbol"||ca=="boolean"||sa==null||na(sa)?!0:oa.test(sa)||!ra.test(sa)||la!=null&&sa in Object(la)}return _isKey=aa,_isKey}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var ea=require_MapCache(),na="Expected a function";function ra(oa,aa){if(typeof oa!="function"||aa!=null&&typeof aa!="function")throw new TypeError(na);var sa=function(){var la=arguments,ca=aa?aa.apply(this,la):la[0],ua=sa.cache;if(ua.has(ca))return ua.get(ca);var da=oa.apply(this,la);return sa.cache=ua.set(ca,da)||ua,da};return sa.cache=new(ra.Cache||ea),sa}return ra.Cache=ea,memoize_1=ra,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var ea=requireMemoize(),na=500;function ra(oa){var aa=ea(oa,function(la){return sa.size===na&&sa.clear(),la}),sa=aa.cache;return aa}return _memoizeCapped=ra,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var ea=require_memoizeCapped(),na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ra=/\\(\\)?/g,oa=ea(function(aa){var sa=[];return aa.charCodeAt(0)===46&&sa.push(""),aa.replace(na,function(la,ca,ua,da){sa.push(ua?da.replace(ra,"$1"):ca||la)}),sa});return _stringToPath=oa,_stringToPath}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var ea=require_Symbol(),na=require_arrayMap(),ra=requireIsArray(),oa=requireIsSymbol(),aa=ea?ea.prototype:void 0,sa=aa?aa.toString:void 0;function la(ca){if(typeof ca=="string")return ca;if(ra(ca))return na(ca,la)+"";if(oa(ca))return sa?sa.call(ca):"";var ua=ca+"";return ua=="0"&&1/ca==-1/0?"-0":ua}return _baseToString=la,_baseToString}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var ea=require_baseToString();function na(ra){return ra==null?"":ea(ra)}return toString_1=na,toString_1}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var ea=requireIsArray(),na=require_isKey(),ra=require_stringToPath(),oa=requireToString();function aa(sa,la){return ea(sa)?sa:na(sa,la)?[sa]:ra(oa(sa))}return _castPath=aa,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var ea=requireIsSymbol();function na(ra){if(typeof ra=="string"||ea(ra))return ra;var oa=ra+"";return oa=="0"&&1/ra==-1/0?"-0":oa}return _toKey=na,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var ea=require_castPath(),na=require_toKey();function ra(oa,aa){aa=ea(aa,oa);for(var sa=0,la=aa.length;oa!=null&&sa<la;)oa=oa[na(aa[sa++])];return sa&&sa==la?oa:void 0}return _baseGet=ra,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var ea=require_baseGet();function na(ra,oa,aa){var sa=ra==null?void 0:ea(ra,oa);return sa===void 0?aa:sa}return get_1=na,get_1}var _baseHasIn,hasRequired_baseHasIn;function require_baseHasIn(){if(hasRequired_baseHasIn)return _baseHasIn;hasRequired_baseHasIn=1;function ea(na,ra){return na!=null&&ra in Object(na)}return _baseHasIn=ea,_baseHasIn}var _hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var ea=require_castPath(),na=requireIsArguments(),ra=requireIsArray(),oa=require_isIndex(),aa=requireIsLength(),sa=require_toKey();function la(ca,ua,da){ua=ea(ua,ca);for(var pa=-1,ha=ua.length,ga=!1;++pa<ha;){var fa=sa(ua[pa]);if(!(ga=ca!=null&&da(ca,fa)))break;ca=ca[fa]}return ga||++pa!=ha?ga:(ha=ca==null?0:ca.length,!!ha&&aa(ha)&&oa(fa,ha)&&(ra(ca)||na(ca)))}return _hasPath=la,_hasPath}var hasIn_1,hasRequiredHasIn;function requireHasIn(){if(hasRequiredHasIn)return hasIn_1;hasRequiredHasIn=1;var ea=require_baseHasIn(),na=require_hasPath();function ra(oa,aa){return oa!=null&&na(oa,aa,ea)}return hasIn_1=ra,hasIn_1}var _baseMatchesProperty,hasRequired_baseMatchesProperty;function require_baseMatchesProperty(){if(hasRequired_baseMatchesProperty)return _baseMatchesProperty;hasRequired_baseMatchesProperty=1;var ea=require_baseIsEqual(),na=requireGet(),ra=requireHasIn(),oa=require_isKey(),aa=require_isStrictComparable(),sa=require_matchesStrictComparable(),la=require_toKey(),ca=1,ua=2;function da(pa,ha){return oa(pa)&&aa(ha)?sa(la(pa),ha):function(ga){var fa=na(ga,pa);return fa===void 0&&fa===ha?ra(ga,pa):ea(ha,fa,ca|ua)}}return _baseMatchesProperty=da,_baseMatchesProperty}var _baseProperty,hasRequired_baseProperty;function require_baseProperty(){if(hasRequired_baseProperty)return _baseProperty;hasRequired_baseProperty=1;function ea(na){return function(ra){return ra?.[na]}}return _baseProperty=ea,_baseProperty}var _basePropertyDeep,hasRequired_basePropertyDeep;function require_basePropertyDeep(){if(hasRequired_basePropertyDeep)return _basePropertyDeep;hasRequired_basePropertyDeep=1;var ea=require_baseGet();function na(ra){return function(oa){return ea(oa,ra)}}return _basePropertyDeep=na,_basePropertyDeep}var property_1,hasRequiredProperty;function requireProperty(){if(hasRequiredProperty)return property_1;hasRequiredProperty=1;var ea=require_baseProperty(),na=require_basePropertyDeep(),ra=require_isKey(),oa=require_toKey();function aa(sa){return ra(sa)?ea(oa(sa)):na(sa)}return property_1=aa,property_1}var _baseIteratee,hasRequired_baseIteratee;function require_baseIteratee(){if(hasRequired_baseIteratee)return _baseIteratee;hasRequired_baseIteratee=1;var ea=require_baseMatches(),na=require_baseMatchesProperty(),ra=requireIdentity(),oa=requireIsArray(),aa=requireProperty();function sa(la){return typeof la=="function"?la:la==null?ra:typeof la=="object"?oa(la)?na(la[0],la[1]):ea(la):aa(la)}return _baseIteratee=sa,_baseIteratee}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var ea=requireIsArrayLike();function na(ra,oa){return function(aa,sa){if(aa==null)return aa;if(!ea(aa))return ra(aa,sa);for(var la=aa.length,ca=oa?la:-1,ua=Object(aa);(oa?ca--:++ca<la)&&sa(ua[ca],ca,ua)!==!1;);return aa}}return _createBaseEach=na,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var ea=require_baseForOwn(),na=require_createBaseEach(),ra=na(ea);return _baseEach=ra,_baseEach}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var ea=require_baseEach(),na=requireIsArrayLike();function ra(oa,aa){var sa=-1,la=na(oa)?Array(oa.length):[];return ea(oa,function(ca,ua,da){la[++sa]=aa(ca,ua,da)}),la}return _baseMap=ra,_baseMap}var map_1,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map_1;hasRequiredMap=1;var ea=require_arrayMap(),na=require_baseIteratee(),ra=require_baseMap(),oa=requireIsArray();function aa(sa,la){var ca=oa(sa)?ea:ra;return ca(sa,na(la,3))}return map_1=aa,map_1}var hasRequiredFlattenNames;function requireFlattenNames(){if(hasRequiredFlattenNames)return flattenNames;hasRequiredFlattenNames=1,Object.defineProperty(flattenNames,"__esModule",{value:!0}),flattenNames.flattenNames=void 0;var ea=requireIsString$1(),na=ua(ea),ra=requireForOwn(),oa=ua(ra),aa=requireIsPlainObject(),sa=ua(aa),la=requireMap(),ca=ua(la);function ua(pa){return pa&&pa.__esModule?pa:{default:pa}}var da=flattenNames.flattenNames=function pa(){var ha=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ga=[];return(0,ca.default)(ha,function(fa){Array.isArray(fa)?pa(fa).map(function(ma){return ga.push(ma)}):(0,sa.default)(fa)?(0,oa.default)(fa,function(ma,va){ma===!0&&ga.push(va),ga.push(va+"-"+ma)}):(0,na.default)(fa)&&ga.push(fa)}),ga};return flattenNames.default=da,flattenNames}var mergeClasses={},_arrayEach,hasRequired_arrayEach;function require_arrayEach(){if(hasRequired_arrayEach)return _arrayEach;hasRequired_arrayEach=1;function ea(na,ra){for(var oa=-1,aa=na==null?0:na.length;++oa<aa&&ra(na[oa],oa,na)!==!1;);return na}return _arrayEach=ea,_arrayEach}var _defineProperty$5,hasRequired_defineProperty;function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty$5;hasRequired_defineProperty=1;var ea=require_getNative(),na=function(){try{var ra=ea(Object,"defineProperty");return ra({},"",{}),ra}catch{}}();return _defineProperty$5=na,_defineProperty$5}var _baseAssignValue,hasRequired_baseAssignValue;function require_baseAssignValue(){if(hasRequired_baseAssignValue)return _baseAssignValue;hasRequired_baseAssignValue=1;var ea=require_defineProperty();function na(ra,oa,aa){oa=="__proto__"&&ea?ea(ra,oa,{configurable:!0,enumerable:!0,value:aa,writable:!0}):ra[oa]=aa}return _baseAssignValue=na,_baseAssignValue}var _assignValue,hasRequired_assignValue;function require_assignValue(){if(hasRequired_assignValue)return _assignValue;hasRequired_assignValue=1;var ea=require_baseAssignValue(),na=requireEq(),ra=Object.prototype,oa=ra.hasOwnProperty;function aa(sa,la,ca){var ua=sa[la];(!(oa.call(sa,la)&&na(ua,ca))||ca===void 0&&!(la in sa))&&ea(sa,la,ca)}return _assignValue=aa,_assignValue}var _copyObject,hasRequired_copyObject;function require_copyObject(){if(hasRequired_copyObject)return _copyObject;hasRequired_copyObject=1;var ea=require_assignValue(),na=require_baseAssignValue();function ra(oa,aa,sa,la){var ca=!sa;sa||(sa={});for(var ua=-1,da=aa.length;++ua<da;){var pa=aa[ua],ha=la?la(sa[pa],oa[pa],pa,sa,oa):void 0;ha===void 0&&(ha=oa[pa]),ca?na(sa,pa,ha):ea(sa,pa,ha)}return sa}return _copyObject=ra,_copyObject}var _baseAssign,hasRequired_baseAssign;function require_baseAssign(){if(hasRequired_baseAssign)return _baseAssign;hasRequired_baseAssign=1;var ea=require_copyObject(),na=requireKeys();function ra(oa,aa){return oa&&ea(aa,na(aa),oa)}return _baseAssign=ra,_baseAssign}var _nativeKeysIn,hasRequired_nativeKeysIn;function require_nativeKeysIn(){if(hasRequired_nativeKeysIn)return _nativeKeysIn;hasRequired_nativeKeysIn=1;function ea(na){var ra=[];if(na!=null)for(var oa in Object(na))ra.push(oa);return ra}return _nativeKeysIn=ea,_nativeKeysIn}var _baseKeysIn,hasRequired_baseKeysIn;function require_baseKeysIn(){if(hasRequired_baseKeysIn)return _baseKeysIn;hasRequired_baseKeysIn=1;var ea=requireIsObject(),na=require_isPrototype(),ra=require_nativeKeysIn(),oa=Object.prototype,aa=oa.hasOwnProperty;function sa(la){if(!ea(la))return ra(la);var ca=na(la),ua=[];for(var da in la)da=="constructor"&&(ca||!aa.call(la,da))||ua.push(da);return ua}return _baseKeysIn=sa,_baseKeysIn}var keysIn_1,hasRequiredKeysIn;function requireKeysIn(){if(hasRequiredKeysIn)return keysIn_1;hasRequiredKeysIn=1;var ea=require_arrayLikeKeys(),na=require_baseKeysIn(),ra=requireIsArrayLike();function oa(aa){return ra(aa)?ea(aa,!0):na(aa)}return keysIn_1=oa,keysIn_1}var _baseAssignIn,hasRequired_baseAssignIn;function require_baseAssignIn(){if(hasRequired_baseAssignIn)return _baseAssignIn;hasRequired_baseAssignIn=1;var ea=require_copyObject(),na=requireKeysIn();function ra(oa,aa){return oa&&ea(aa,na(aa),oa)}return _baseAssignIn=ra,_baseAssignIn}var _cloneBuffer={exports:{}};_cloneBuffer.exports;var hasRequired_cloneBuffer;function require_cloneBuffer(){return hasRequired_cloneBuffer||(hasRequired_cloneBuffer=1,function(ea,na){var ra=require_root(),oa=na&&!na.nodeType&&na,aa=oa&&!0&&ea&&!ea.nodeType&&ea,sa=aa&&aa.exports===oa,la=sa?ra.Buffer:void 0,ca=la?la.allocUnsafe:void 0;function ua(da,pa){if(pa)return da.slice();var ha=da.length,ga=ca?ca(ha):new da.constructor(ha);return da.copy(ga),ga}ea.exports=ua}(_cloneBuffer,_cloneBuffer.exports)),_cloneBuffer.exports}var _copyArray,hasRequired_copyArray;function require_copyArray(){if(hasRequired_copyArray)return _copyArray;hasRequired_copyArray=1;function ea(na,ra){var oa=-1,aa=na.length;for(ra||(ra=Array(aa));++oa<aa;)ra[oa]=na[oa];return ra}return _copyArray=ea,_copyArray}var _copySymbols,hasRequired_copySymbols;function require_copySymbols(){if(hasRequired_copySymbols)return _copySymbols;hasRequired_copySymbols=1;var ea=require_copyObject(),na=require_getSymbols();function ra(oa,aa){return ea(oa,na(oa),aa)}return _copySymbols=ra,_copySymbols}var _getSymbolsIn,hasRequired_getSymbolsIn;function require_getSymbolsIn(){if(hasRequired_getSymbolsIn)return _getSymbolsIn;hasRequired_getSymbolsIn=1;var ea=require_arrayPush(),na=require_getPrototype(),ra=require_getSymbols(),oa=requireStubArray(),aa=Object.getOwnPropertySymbols,sa=aa?function(la){for(var ca=[];la;)ea(ca,ra(la)),la=na(la);return ca}:oa;return _getSymbolsIn=sa,_getSymbolsIn}var _copySymbolsIn,hasRequired_copySymbolsIn;function require_copySymbolsIn(){if(hasRequired_copySymbolsIn)return _copySymbolsIn;hasRequired_copySymbolsIn=1;var ea=require_copyObject(),na=require_getSymbolsIn();function ra(oa,aa){return ea(oa,na(oa),aa)}return _copySymbolsIn=ra,_copySymbolsIn}var _getAllKeysIn,hasRequired_getAllKeysIn;function require_getAllKeysIn(){if(hasRequired_getAllKeysIn)return _getAllKeysIn;hasRequired_getAllKeysIn=1;var ea=require_baseGetAllKeys(),na=require_getSymbolsIn(),ra=requireKeysIn();function oa(aa){return ea(aa,ra,na)}return _getAllKeysIn=oa,_getAllKeysIn}var _initCloneArray,hasRequired_initCloneArray;function require_initCloneArray(){if(hasRequired_initCloneArray)return _initCloneArray;hasRequired_initCloneArray=1;var ea=Object.prototype,na=ea.hasOwnProperty;function ra(oa){var aa=oa.length,sa=new oa.constructor(aa);return aa&&typeof oa[0]=="string"&&na.call(oa,"index")&&(sa.index=oa.index,sa.input=oa.input),sa}return _initCloneArray=ra,_initCloneArray}var _cloneArrayBuffer,hasRequired_cloneArrayBuffer;function require_cloneArrayBuffer(){if(hasRequired_cloneArrayBuffer)return _cloneArrayBuffer;hasRequired_cloneArrayBuffer=1;var ea=require_Uint8Array();function na(ra){var oa=new ra.constructor(ra.byteLength);return new ea(oa).set(new ea(ra)),oa}return _cloneArrayBuffer=na,_cloneArrayBuffer}var _cloneDataView,hasRequired_cloneDataView;function require_cloneDataView(){if(hasRequired_cloneDataView)return _cloneDataView;hasRequired_cloneDataView=1;var ea=require_cloneArrayBuffer();function na(ra,oa){var aa=oa?ea(ra.buffer):ra.buffer;return new ra.constructor(aa,ra.byteOffset,ra.byteLength)}return _cloneDataView=na,_cloneDataView}var _cloneRegExp,hasRequired_cloneRegExp;function require_cloneRegExp(){if(hasRequired_cloneRegExp)return _cloneRegExp;hasRequired_cloneRegExp=1;var ea=/\w*$/;function na(ra){var oa=new ra.constructor(ra.source,ea.exec(ra));return oa.lastIndex=ra.lastIndex,oa}return _cloneRegExp=na,_cloneRegExp}var _cloneSymbol,hasRequired_cloneSymbol;function require_cloneSymbol(){if(hasRequired_cloneSymbol)return _cloneSymbol;hasRequired_cloneSymbol=1;var ea=require_Symbol(),na=ea?ea.prototype:void 0,ra=na?na.valueOf:void 0;function oa(aa){return ra?Object(ra.call(aa)):{}}return _cloneSymbol=oa,_cloneSymbol}var _cloneTypedArray,hasRequired_cloneTypedArray;function require_cloneTypedArray(){if(hasRequired_cloneTypedArray)return _cloneTypedArray;hasRequired_cloneTypedArray=1;var ea=require_cloneArrayBuffer();function na(ra,oa){var aa=oa?ea(ra.buffer):ra.buffer;return new ra.constructor(aa,ra.byteOffset,ra.length)}return _cloneTypedArray=na,_cloneTypedArray}var _initCloneByTag,hasRequired_initCloneByTag;function require_initCloneByTag(){if(hasRequired_initCloneByTag)return _initCloneByTag;hasRequired_initCloneByTag=1;var ea=require_cloneArrayBuffer(),na=require_cloneDataView(),ra=require_cloneRegExp(),oa=require_cloneSymbol(),aa=require_cloneTypedArray(),sa="[object Boolean]",la="[object Date]",ca="[object Map]",ua="[object Number]",da="[object RegExp]",pa="[object Set]",ha="[object String]",ga="[object Symbol]",fa="[object ArrayBuffer]",ma="[object DataView]",va="[object Float32Array]",xa="[object Float64Array]",ya="[object Int8Array]",Aa="[object Int16Array]",Ca="[object Int32Array]",Sa="[object Uint8Array]",wa="[object Uint8ClampedArray]",ba="[object Uint16Array]",Ea="[object Uint32Array]";function $a(Ma,Ia,Oa){var Da=Ma.constructor;switch(Ia){case fa:return ea(Ma);case sa:case la:return new Da(+Ma);case ma:return na(Ma,Oa);case va:case xa:case ya:case Aa:case Ca:case Sa:case wa:case ba:case Ea:return aa(Ma,Oa);case ca:return new Da;case ua:case ha:return new Da(Ma);case da:return ra(Ma);case pa:return new Da;case ga:return oa(Ma)}}return _initCloneByTag=$a,_initCloneByTag}var _baseCreate,hasRequired_baseCreate;function require_baseCreate(){if(hasRequired_baseCreate)return _baseCreate;hasRequired_baseCreate=1;var ea=requireIsObject(),na=Object.create,ra=function(){function oa(){}return function(aa){if(!ea(aa))return{};if(na)return na(aa);oa.prototype=aa;var sa=new oa;return oa.prototype=void 0,sa}}();return _baseCreate=ra,_baseCreate}var _initCloneObject,hasRequired_initCloneObject;function require_initCloneObject(){if(hasRequired_initCloneObject)return _initCloneObject;hasRequired_initCloneObject=1;var ea=require_baseCreate(),na=require_getPrototype(),ra=require_isPrototype();function oa(aa){return typeof aa.constructor=="function"&&!ra(aa)?ea(na(aa)):{}}return _initCloneObject=oa,_initCloneObject}var _baseIsMap,hasRequired_baseIsMap;function require_baseIsMap(){if(hasRequired_baseIsMap)return _baseIsMap;hasRequired_baseIsMap=1;var ea=require_getTag(),na=requireIsObjectLike(),ra="[object Map]";function oa(aa){return na(aa)&&ea(aa)==ra}return _baseIsMap=oa,_baseIsMap}var isMap_1,hasRequiredIsMap;function requireIsMap(){if(hasRequiredIsMap)return isMap_1;hasRequiredIsMap=1;var ea=require_baseIsMap(),na=require_baseUnary(),ra=require_nodeUtil(),oa=ra&&ra.isMap,aa=oa?na(oa):ea;return isMap_1=aa,isMap_1}var _baseIsSet,hasRequired_baseIsSet;function require_baseIsSet(){if(hasRequired_baseIsSet)return _baseIsSet;hasRequired_baseIsSet=1;var ea=require_getTag(),na=requireIsObjectLike(),ra="[object Set]";function oa(aa){return na(aa)&&ea(aa)==ra}return _baseIsSet=oa,_baseIsSet}var isSet_1,hasRequiredIsSet;function requireIsSet(){if(hasRequiredIsSet)return isSet_1;hasRequiredIsSet=1;var ea=require_baseIsSet(),na=require_baseUnary(),ra=require_nodeUtil(),oa=ra&&ra.isSet,aa=oa?na(oa):ea;return isSet_1=aa,isSet_1}var _baseClone,hasRequired_baseClone;function require_baseClone(){if(hasRequired_baseClone)return _baseClone;hasRequired_baseClone=1;var ea=require_Stack(),na=require_arrayEach(),ra=require_assignValue(),oa=require_baseAssign(),aa=require_baseAssignIn(),sa=require_cloneBuffer(),la=require_copyArray(),ca=require_copySymbols(),ua=require_copySymbolsIn(),da=require_getAllKeys(),pa=require_getAllKeysIn(),ha=require_getTag(),ga=require_initCloneArray(),fa=require_initCloneByTag(),ma=require_initCloneObject(),va=requireIsArray(),xa=requireIsBuffer$3(),ya=requireIsMap(),Aa=requireIsObject(),Ca=requireIsSet(),Sa=requireKeys(),wa=requireKeysIn(),ba=1,Ea=2,$a=4,Ma="[object Arguments]",Ia="[object Array]",Oa="[object Boolean]",Da="[object Date]",Ta="[object Error]",_a="[object Function]",La="[object GeneratorFunction]",Na="[object Map]",za="[object Number]",Fa="[object Object]",Ha="[object RegExp]",Va="[object Set]",Ua="[object String]",Qa="[object Symbol]",Wa="[object WeakMap]",Za="[object ArrayBuffer]",Xa="[object DataView]",tl="[object Float32Array]",il="[object Float64Array]",Ja="[object Int8Array]",nl="[object Int16Array]",Ya="[object Int32Array]",rl="[object Uint8Array]",sl="[object Uint8ClampedArray]",dl="[object Uint16Array]",pl="[object Uint32Array]",ml={};ml[Ma]=ml[Ia]=ml[Za]=ml[Xa]=ml[Oa]=ml[Da]=ml[tl]=ml[il]=ml[Ja]=ml[nl]=ml[Ya]=ml[Na]=ml[za]=ml[Fa]=ml[Ha]=ml[Va]=ml[Ua]=ml[Qa]=ml[rl]=ml[sl]=ml[dl]=ml[pl]=!0,ml[Ta]=ml[_a]=ml[Wa]=!1;function Rl(Tl,Il,Ol,Fl,Vl,Wl){var vl,kl=Il&ba,zl=Il&Ea,Al=Il&$a;if(Ol&&(vl=Vl?Ol(Tl,Fl,Vl,Wl):Ol(Tl)),vl!==void 0)return vl;if(!Aa(Tl))return Tl;var gl=va(Tl);if(gl){if(vl=ga(Tl),!kl)return la(Tl,vl)}else{var xl=ha(Tl),Sl=xl==_a||xl==La;if(xa(Tl))return sa(Tl,kl);if(xl==Fa||xl==Ma||Sl&&!Vl){if(vl=zl||Sl?{}:ma(Tl),!kl)return zl?ua(Tl,aa(vl,Tl)):ca(Tl,oa(vl,Tl))}else{if(!ml[xl])return Vl?Tl:{};vl=fa(Tl,xl,kl)}}Wl||(Wl=new ea);var $l=Wl.get(Tl);if($l)return $l;Wl.set(Tl,vl),Ca(Tl)?Tl.forEach(function(ec){vl.add(Rl(ec,Il,Ol,ec,Tl,Wl))}):ya(Tl)&&Tl.forEach(function(ec,Kl){vl.set(Kl,Rl(ec,Il,Ol,Kl,Tl,Wl))});var Bl=Al?zl?pa:da:zl?wa:Sa,Ul=gl?void 0:Bl(Tl);return na(Ul||Tl,function(ec,Kl){Ul&&(Kl=ec,ec=Tl[Kl]),ra(vl,Kl,Rl(ec,Il,Ol,Kl,Tl,Wl))}),vl}return _baseClone=Rl,_baseClone}var cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var ea=require_baseClone(),na=1,ra=4;function oa(aa){return ea(aa,na|ra)}return cloneDeep_1=oa,cloneDeep_1}var hasRequiredMergeClasses;function requireMergeClasses(){if(hasRequiredMergeClasses)return mergeClasses;hasRequiredMergeClasses=1,Object.defineProperty(mergeClasses,"__esModule",{value:!0}),mergeClasses.mergeClasses=void 0;var ea=requireForOwn(),na=sa(ea),ra=requireCloneDeep(),oa=sa(ra),aa=Object.assign||function(ca){for(var ua=1;ua<arguments.length;ua++){var da=arguments[ua];for(var pa in da)Object.prototype.hasOwnProperty.call(da,pa)&&(ca[pa]=da[pa])}return ca};function sa(ca){return ca&&ca.__esModule?ca:{default:ca}}var la=mergeClasses.mergeClasses=function(ua){var da=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pa=ua.default&&(0,oa.default)(ua.default)||{};return da.map(function(ha){var ga=ua[ha];return ga&&(0,na.default)(ga,function(fa,ma){pa[ma]||(pa[ma]={}),pa[ma]=aa({},pa[ma],ga[ma])}),ha}),pa};return mergeClasses.default=la,mergeClasses}var autoprefix={},hasRequiredAutoprefix;function requireAutoprefix(){if(hasRequiredAutoprefix)return autoprefix;hasRequiredAutoprefix=1,Object.defineProperty(autoprefix,"__esModule",{value:!0}),autoprefix.autoprefix=void 0;var ea=requireForOwn(),na=oa(ea),ra=Object.assign||function(la){for(var ca=1;ca<arguments.length;ca++){var ua=arguments[ca];for(var da in ua)Object.prototype.hasOwnProperty.call(ua,da)&&(la[da]=ua[da])}return la};function oa(la){return la&&la.__esModule?la:{default:la}}var aa={borderRadius:function(ca){return{msBorderRadius:ca,MozBorderRadius:ca,OBorderRadius:ca,WebkitBorderRadius:ca,borderRadius:ca}},boxShadow:function(ca){return{msBoxShadow:ca,MozBoxShadow:ca,OBoxShadow:ca,WebkitBoxShadow:ca,boxShadow:ca}},userSelect:function(ca){return{WebkitTouchCallout:ca,KhtmlUserSelect:ca,MozUserSelect:ca,msUserSelect:ca,WebkitUserSelect:ca,userSelect:ca}},flex:function(ca){return{WebkitBoxFlex:ca,MozBoxFlex:ca,WebkitFlex:ca,msFlex:ca,flex:ca}},flexBasis:function(ca){return{WebkitFlexBasis:ca,flexBasis:ca}},justifyContent:function(ca){return{WebkitJustifyContent:ca,justifyContent:ca}},transition:function(ca){return{msTransition:ca,MozTransition:ca,OTransition:ca,WebkitTransition:ca,transition:ca}},transform:function(ca){return{msTransform:ca,MozTransform:ca,OTransform:ca,WebkitTransform:ca,transform:ca}},absolute:function(ca){var ua=ca&&ca.split(" ");return{position:"absolute",top:ua&&ua[0],right:ua&&ua[1],bottom:ua&&ua[2],left:ua&&ua[3]}},extend:function(ca,ua){var da=ua[ca];return da||{extend:ca}}},sa=autoprefix.autoprefix=function(ca){var ua={};return(0,na.default)(ca,function(da,pa){var ha={};(0,na.default)(da,function(ga,fa){var ma=aa[fa];ma?ha=ra({},ha,ma(ga)):ha[fa]=ga}),ua[pa]=ha}),ua};return autoprefix.default=sa,autoprefix}var hover={},hasRequiredHover;function requireHover(){if(hasRequiredHover)return hover;hasRequiredHover=1,Object.defineProperty(hover,"__esModule",{value:!0}),hover.hover=void 0;var ea=Object.assign||function(ua){for(var da=1;da<arguments.length;da++){var pa=arguments[da];for(var ha in pa)Object.prototype.hasOwnProperty.call(pa,ha)&&(ua[ha]=pa[ha])}return ua},na=requireReact(),ra=oa(na);function oa(ua){return ua&&ua.__esModule?ua:{default:ua}}function aa(ua,da){if(!(ua instanceof da))throw new TypeError("Cannot call a class as a function")}function sa(ua,da){if(!ua)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return da&&(typeof da=="object"||typeof da=="function")?da:ua}function la(ua,da){if(typeof da!="function"&&da!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof da);ua.prototype=Object.create(da&&da.prototype,{constructor:{value:ua,enumerable:!1,writable:!0,configurable:!0}}),da&&(Object.setPrototypeOf?Object.setPrototypeOf(ua,da):ua.__proto__=da)}var ca=hover.hover=function(da){var pa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ha){la(ga,ha);function ga(){var fa,ma,va,xa;aa(this,ga);for(var ya=arguments.length,Aa=Array(ya),Ca=0;Ca<ya;Ca++)Aa[Ca]=arguments[Ca];return xa=(ma=(va=sa(this,(fa=ga.__proto__||Object.getPrototypeOf(ga)).call.apply(fa,[this].concat(Aa))),va),va.state={hover:!1},va.handleMouseOver=function(){return va.setState({hover:!0})},va.handleMouseOut=function(){return va.setState({hover:!1})},va.render=function(){return ra.default.createElement(pa,{onMouseOver:va.handleMouseOver,onMouseOut:va.handleMouseOut},ra.default.createElement(da,ea({},va.props,va.state)))},ma),sa(va,xa)}return ga}(ra.default.Component)};return hover.default=ca,hover}var active={},hasRequiredActive;function requireActive(){if(hasRequiredActive)return active;hasRequiredActive=1,Object.defineProperty(active,"__esModule",{value:!0}),active.active=void 0;var ea=Object.assign||function(ua){for(var da=1;da<arguments.length;da++){var pa=arguments[da];for(var ha in pa)Object.prototype.hasOwnProperty.call(pa,ha)&&(ua[ha]=pa[ha])}return ua},na=requireReact(),ra=oa(na);function oa(ua){return ua&&ua.__esModule?ua:{default:ua}}function aa(ua,da){if(!(ua instanceof da))throw new TypeError("Cannot call a class as a function")}function sa(ua,da){if(!ua)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return da&&(typeof da=="object"||typeof da=="function")?da:ua}function la(ua,da){if(typeof da!="function"&&da!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof da);ua.prototype=Object.create(da&&da.prototype,{constructor:{value:ua,enumerable:!1,writable:!0,configurable:!0}}),da&&(Object.setPrototypeOf?Object.setPrototypeOf(ua,da):ua.__proto__=da)}var ca=active.active=function(da){var pa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ha){la(ga,ha);function ga(){var fa,ma,va,xa;aa(this,ga);for(var ya=arguments.length,Aa=Array(ya),Ca=0;Ca<ya;Ca++)Aa[Ca]=arguments[Ca];return xa=(ma=(va=sa(this,(fa=ga.__proto__||Object.getPrototypeOf(ga)).call.apply(fa,[this].concat(Aa))),va),va.state={active:!1},va.handleMouseDown=function(){return va.setState({active:!0})},va.handleMouseUp=function(){return va.setState({active:!1})},va.render=function(){return ra.default.createElement(pa,{onMouseDown:va.handleMouseDown,onMouseUp:va.handleMouseUp},ra.default.createElement(da,ea({},va.props,va.state)))},ma),sa(va,xa)}return ga}(ra.default.Component)};return active.default=ca,active}var loop={},hasRequiredLoop;function requireLoop(){if(hasRequiredLoop)return loop;hasRequiredLoop=1,Object.defineProperty(loop,"__esModule",{value:!0});var ea=function(ra,oa){var aa={},sa=function(ca){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;aa[ca]=ua};return ra===0&&sa("first-child"),ra===oa-1&&sa("last-child"),(ra===0||ra%2===0)&&sa("even"),Math.abs(ra%2)===1&&sa("odd"),sa("nth-child",ra),aa};return loop.default=ea,loop}var hasRequiredLib$4;function requireLib$4(){if(hasRequiredLib$4)return lib$4;hasRequiredLib$4=1,Object.defineProperty(lib$4,"__esModule",{value:!0}),lib$4.ReactCSS=lib$4.loop=lib$4.handleActive=lib$4.handleHover=lib$4.hover=void 0;var ea=requireFlattenNames(),na=ga(ea),ra=requireMergeClasses(),oa=ga(ra),aa=requireAutoprefix(),sa=ga(aa),la=requireHover(),ca=ga(la),ua=requireActive(),da=ga(ua),pa=requireLoop(),ha=ga(pa);function ga(ma){return ma&&ma.__esModule?ma:{default:ma}}lib$4.hover=ca.default,lib$4.handleHover=ca.default,lib$4.handleActive=da.default,lib$4.loop=ha.default;var fa=lib$4.ReactCSS=function(va){for(var xa=arguments.length,ya=Array(xa>1?xa-1:0),Aa=1;Aa<xa;Aa++)ya[Aa-1]=arguments[Aa];var Ca=(0,na.default)(ya),Sa=(0,oa.default)(va,Ca);return(0,sa.default)(Sa)};return lib$4.default=fa,lib$4}var alpha={},hasRequiredAlpha$1;function requireAlpha$1(){return hasRequiredAlpha$1||(hasRequiredAlpha$1=1,Object.defineProperty(alpha,"__esModule",{value:!0}),alpha.calculateChange=function(na,ra,oa,aa,sa){var la=sa.clientWidth,ca=sa.clientHeight,ua=typeof na.pageX=="number"?na.pageX:na.touches[0].pageX,da=typeof na.pageY=="number"?na.pageY:na.touches[0].pageY,pa=ua-(sa.getBoundingClientRect().left+window.pageXOffset),ha=da-(sa.getBoundingClientRect().top+window.pageYOffset);if(oa==="vertical"){var ga=void 0;if(ha<0?ga=0:ha>ca?ga=1:ga=Math.round(ha*100/ca)/100,ra.a!==ga)return{h:ra.h,s:ra.s,l:ra.l,a:ga,source:"rgb"}}else{var fa=void 0;if(pa<0?fa=0:pa>la?fa=1:fa=Math.round(pa*100/la)/100,aa!==fa)return{h:ra.h,s:ra.s,l:ra.l,a:fa,source:"rgb"}}return null}),alpha}var Checkboard={},checkboard={},hasRequiredCheckboard$1;function requireCheckboard$1(){if(hasRequiredCheckboard$1)return checkboard;hasRequiredCheckboard$1=1,Object.defineProperty(checkboard,"__esModule",{value:!0});var ea={},na=checkboard.render=function(oa,aa,sa,la){if(typeof document>"u"&&!la)return null;var ca=la?new la:document.createElement("canvas");ca.width=sa*2,ca.height=sa*2;var ua=ca.getContext("2d");return ua?(ua.fillStyle=oa,ua.fillRect(0,0,ca.width,ca.height),ua.fillStyle=aa,ua.fillRect(0,0,sa,sa),ua.translate(sa,sa),ua.fillRect(0,0,sa,sa),ca.toDataURL()):null};return checkboard.get=function(oa,aa,sa,la){var ca=oa+"-"+aa+"-"+sa+(la?"-server":"");if(ea[ca])return ea[ca];var ua=na(oa,aa,sa,la);return ea[ca]=ua,ua},checkboard}var hasRequiredCheckboard;function requireCheckboard(){if(hasRequiredCheckboard)return Checkboard;hasRequiredCheckboard=1,Object.defineProperty(Checkboard,"__esModule",{value:!0}),Checkboard.Checkboard=void 0;var ea=Object.assign||function(pa){for(var ha=1;ha<arguments.length;ha++){var ga=arguments[ha];for(var fa in ga)Object.prototype.hasOwnProperty.call(ga,fa)&&(pa[fa]=ga[fa])}return pa},na=requireReact(),ra=ua(na),oa=requireLib$4(),aa=ua(oa),sa=requireCheckboard$1(),la=ca(sa);function ca(pa){if(pa&&pa.__esModule)return pa;var ha={};if(pa!=null)for(var ga in pa)Object.prototype.hasOwnProperty.call(pa,ga)&&(ha[ga]=pa[ga]);return ha.default=pa,ha}function ua(pa){return pa&&pa.__esModule?pa:{default:pa}}var da=Checkboard.Checkboard=function(ha){var ga=ha.white,fa=ha.grey,ma=ha.size,va=ha.renderers,xa=ha.borderRadius,ya=ha.boxShadow,Aa=ha.children,Ca=(0,aa.default)({default:{grid:{borderRadius:xa,boxShadow:ya,absolute:"0px 0px 0px 0px",background:"url("+la.get(ga,fa,ma,va.canvas)+") center left"}}});return(0,na.isValidElement)(Aa)?ra.default.cloneElement(Aa,ea({},Aa.props,{style:ea({},Aa.props.style,Ca.grid)})):ra.default.createElement("div",{style:Ca.grid})};return da.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},Checkboard.default=da,Checkboard}var hasRequiredAlpha;function requireAlpha(){if(hasRequiredAlpha)return Alpha$1;hasRequiredAlpha=1,Object.defineProperty(Alpha$1,"__esModule",{value:!0}),Alpha$1.Alpha=void 0;var ea=Object.assign||function(xa){for(var ya=1;ya<arguments.length;ya++){var Aa=arguments[ya];for(var Ca in Aa)Object.prototype.hasOwnProperty.call(Aa,Ca)&&(xa[Ca]=Aa[Ca])}return xa},na=function(){function xa(ya,Aa){for(var Ca=0;Ca<Aa.length;Ca++){var Sa=Aa[Ca];Sa.enumerable=Sa.enumerable||!1,Sa.configurable=!0,"value"in Sa&&(Sa.writable=!0),Object.defineProperty(ya,Sa.key,Sa)}}return function(ya,Aa,Ca){return Aa&&xa(ya.prototype,Aa),Ca&&xa(ya,Ca),ya}}(),ra=requireReact(),oa=ha(ra),aa=requireLib$4(),sa=ha(aa),la=requireAlpha$1(),ca=pa(la),ua=requireCheckboard(),da=ha(ua);function pa(xa){if(xa&&xa.__esModule)return xa;var ya={};if(xa!=null)for(var Aa in xa)Object.prototype.hasOwnProperty.call(xa,Aa)&&(ya[Aa]=xa[Aa]);return ya.default=xa,ya}function ha(xa){return xa&&xa.__esModule?xa:{default:xa}}function ga(xa,ya){if(!(xa instanceof ya))throw new TypeError("Cannot call a class as a function")}function fa(xa,ya){if(!xa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ya&&(typeof ya=="object"||typeof ya=="function")?ya:xa}function ma(xa,ya){if(typeof ya!="function"&&ya!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ya);xa.prototype=Object.create(ya&&ya.prototype,{constructor:{value:xa,enumerable:!1,writable:!0,configurable:!0}}),ya&&(Object.setPrototypeOf?Object.setPrototypeOf(xa,ya):xa.__proto__=ya)}var va=Alpha$1.Alpha=function(xa){ma(ya,xa);function ya(){var Aa,Ca,Sa,wa;ga(this,ya);for(var ba=arguments.length,Ea=Array(ba),$a=0;$a<ba;$a++)Ea[$a]=arguments[$a];return wa=(Ca=(Sa=fa(this,(Aa=ya.__proto__||Object.getPrototypeOf(ya)).call.apply(Aa,[this].concat(Ea))),Sa),Sa.handleChange=function(Ma){var Ia=ca.calculateChange(Ma,Sa.props.hsl,Sa.props.direction,Sa.props.a,Sa.container);Ia&&typeof Sa.props.onChange=="function"&&Sa.props.onChange(Ia,Ma)},Sa.handleMouseDown=function(Ma){Sa.handleChange(Ma),window.addEventListener("mousemove",Sa.handleChange),window.addEventListener("mouseup",Sa.handleMouseUp)},Sa.handleMouseUp=function(){Sa.unbindEventListeners()},Sa.unbindEventListeners=function(){window.removeEventListener("mousemove",Sa.handleChange),window.removeEventListener("mouseup",Sa.handleMouseUp)},Ca),fa(Sa,wa)}return na(ya,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var Ca=this,Sa=this.props.rgb,wa=(0,sa.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+Sa.r+","+Sa.g+","+Sa.b+`, 0) 0%,
           rgba(`+Sa.r+","+Sa.g+","+Sa.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:Sa.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+Sa.r+","+Sa.g+","+Sa.b+`, 0) 0%,
           rgba(`+Sa.r+","+Sa.g+","+Sa.b+", 1) 100%)"},pointer:{left:0,top:Sa.a*100+"%"}},overwrite:ea({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return oa.default.createElement("div",{style:wa.alpha},oa.default.createElement("div",{style:wa.checkboard},oa.default.createElement(da.default,{renderers:this.props.renderers})),oa.default.createElement("div",{style:wa.gradient}),oa.default.createElement("div",{style:wa.container,ref:function(Ea){return Ca.container=Ea},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},oa.default.createElement("div",{style:wa.pointer},this.props.pointer?oa.default.createElement(this.props.pointer,this.props):oa.default.createElement("div",{style:wa.slider}))))}}]),ya}(ra.PureComponent||ra.Component);return Alpha$1.default=va,Alpha$1}var EditableInput={},hasRequiredEditableInput;function requireEditableInput(){if(hasRequiredEditableInput)return EditableInput;hasRequiredEditableInput=1,Object.defineProperty(EditableInput,"__esModule",{value:!0}),EditableInput.EditableInput=void 0;var ea=function(){function Aa(Ca,Sa){for(var wa=0;wa<Sa.length;wa++){var ba=Sa[wa];ba.enumerable=ba.enumerable||!1,ba.configurable=!0,"value"in ba&&(ba.writable=!0),Object.defineProperty(Ca,ba.key,ba)}}return function(Ca,Sa,wa){return Sa&&Aa(Ca.prototype,Sa),wa&&Aa(Ca,wa),Ca}}(),na=requireReact(),ra=sa(na),oa=requireLib$4(),aa=sa(oa);function sa(Aa){return Aa&&Aa.__esModule?Aa:{default:Aa}}function la(Aa,Ca,Sa){return Ca in Aa?Object.defineProperty(Aa,Ca,{value:Sa,enumerable:!0,configurable:!0,writable:!0}):Aa[Ca]=Sa,Aa}function ca(Aa,Ca){if(!(Aa instanceof Ca))throw new TypeError("Cannot call a class as a function")}function ua(Aa,Ca){if(!Aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ca&&(typeof Ca=="object"||typeof Ca=="function")?Ca:Aa}function da(Aa,Ca){if(typeof Ca!="function"&&Ca!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ca);Aa.prototype=Object.create(Ca&&Ca.prototype,{constructor:{value:Aa,enumerable:!1,writable:!0,configurable:!0}}),Ca&&(Object.setPrototypeOf?Object.setPrototypeOf(Aa,Ca):Aa.__proto__=Ca)}var pa=1,ha=38,ga=40,fa=[ha,ga],ma=function(Ca){return fa.indexOf(Ca)>-1},va=function(Ca){return Number(String(Ca).replace(/%/g,""))},xa=1,ya=EditableInput.EditableInput=function(Aa){da(Ca,Aa);function Ca(Sa){ca(this,Ca);var wa=ua(this,(Ca.__proto__||Object.getPrototypeOf(Ca)).call(this));return wa.handleBlur=function(){wa.state.blurValue&&wa.setState({value:wa.state.blurValue,blurValue:null})},wa.handleChange=function(ba){wa.setUpdatedValue(ba.target.value,ba)},wa.handleKeyDown=function(ba){var Ea=va(ba.target.value);if(!isNaN(Ea)&&ma(ba.keyCode)){var $a=wa.getArrowOffset(),Ma=ba.keyCode===ha?Ea+$a:Ea-$a;wa.setUpdatedValue(Ma,ba)}},wa.handleDrag=function(ba){if(wa.props.dragLabel){var Ea=Math.round(wa.props.value+ba.movementX);Ea>=0&&Ea<=wa.props.dragMax&&wa.props.onChange&&wa.props.onChange(wa.getValueObjectWithLabel(Ea),ba)}},wa.handleMouseDown=function(ba){wa.props.dragLabel&&(ba.preventDefault(),wa.handleDrag(ba),window.addEventListener("mousemove",wa.handleDrag),window.addEventListener("mouseup",wa.handleMouseUp))},wa.handleMouseUp=function(){wa.unbindEventListeners()},wa.unbindEventListeners=function(){window.removeEventListener("mousemove",wa.handleDrag),window.removeEventListener("mouseup",wa.handleMouseUp)},wa.state={value:String(Sa.value).toUpperCase(),blurValue:String(Sa.value).toUpperCase()},wa.inputId="rc-editable-input-"+xa++,wa}return ea(Ca,[{key:"componentDidUpdate",value:function(wa,ba){this.props.value!==this.state.value&&(wa.value!==this.props.value||ba.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(wa){return la({},this.props.label,wa)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||pa}},{key:"setUpdatedValue",value:function(wa,ba){var Ea=this.props.label?this.getValueObjectWithLabel(wa):wa;this.props.onChange&&this.props.onChange(Ea,ba),this.setState({value:wa})}},{key:"render",value:function(){var wa=this,ba=(0,aa.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return ra.default.createElement("div",{style:ba.wrap},ra.default.createElement("input",{id:this.inputId,style:ba.input,ref:function($a){return wa.input=$a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?ra.default.createElement("label",{htmlFor:this.inputId,style:ba.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),Ca}(na.PureComponent||na.Component);return EditableInput.default=ya,EditableInput}var Hue$1={},hue={},hasRequiredHue$1;function requireHue$1(){return hasRequiredHue$1||(hasRequiredHue$1=1,Object.defineProperty(hue,"__esModule",{value:!0}),hue.calculateChange=function(na,ra,oa,aa){var sa=aa.clientWidth,la=aa.clientHeight,ca=typeof na.pageX=="number"?na.pageX:na.touches[0].pageX,ua=typeof na.pageY=="number"?na.pageY:na.touches[0].pageY,da=ca-(aa.getBoundingClientRect().left+window.pageXOffset),pa=ua-(aa.getBoundingClientRect().top+window.pageYOffset);if(ra==="vertical"){var ha=void 0;if(pa<0)ha=359;else if(pa>la)ha=0;else{var ga=-(pa*100/la)+100;ha=360*ga/100}if(oa.h!==ha)return{h:ha,s:oa.s,l:oa.l,a:oa.a,source:"hsl"}}else{var fa=void 0;if(da<0)fa=0;else if(da>sa)fa=359;else{var ma=da*100/sa;fa=360*ma/100}if(oa.h!==fa)return{h:fa,s:oa.s,l:oa.l,a:oa.a,source:"hsl"}}return null}),hue}var hasRequiredHue;function requireHue(){if(hasRequiredHue)return Hue$1;hasRequiredHue=1,Object.defineProperty(Hue$1,"__esModule",{value:!0}),Hue$1.Hue=void 0;var ea=function(){function fa(ma,va){for(var xa=0;xa<va.length;xa++){var ya=va[xa];ya.enumerable=ya.enumerable||!1,ya.configurable=!0,"value"in ya&&(ya.writable=!0),Object.defineProperty(ma,ya.key,ya)}}return function(ma,va,xa){return va&&fa(ma.prototype,va),xa&&fa(ma,xa),ma}}(),na=requireReact(),ra=ua(na),oa=requireLib$4(),aa=ua(oa),sa=requireHue$1(),la=ca(sa);function ca(fa){if(fa&&fa.__esModule)return fa;var ma={};if(fa!=null)for(var va in fa)Object.prototype.hasOwnProperty.call(fa,va)&&(ma[va]=fa[va]);return ma.default=fa,ma}function ua(fa){return fa&&fa.__esModule?fa:{default:fa}}function da(fa,ma){if(!(fa instanceof ma))throw new TypeError("Cannot call a class as a function")}function pa(fa,ma){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ma&&(typeof ma=="object"||typeof ma=="function")?ma:fa}function ha(fa,ma){if(typeof ma!="function"&&ma!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ma);fa.prototype=Object.create(ma&&ma.prototype,{constructor:{value:fa,enumerable:!1,writable:!0,configurable:!0}}),ma&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ma):fa.__proto__=ma)}var ga=Hue$1.Hue=function(fa){ha(ma,fa);function ma(){var va,xa,ya,Aa;da(this,ma);for(var Ca=arguments.length,Sa=Array(Ca),wa=0;wa<Ca;wa++)Sa[wa]=arguments[wa];return Aa=(xa=(ya=pa(this,(va=ma.__proto__||Object.getPrototypeOf(ma)).call.apply(va,[this].concat(Sa))),ya),ya.handleChange=function(ba){var Ea=la.calculateChange(ba,ya.props.direction,ya.props.hsl,ya.container);Ea&&typeof ya.props.onChange=="function"&&ya.props.onChange(Ea,ba)},ya.handleMouseDown=function(ba){ya.handleChange(ba),window.addEventListener("mousemove",ya.handleChange),window.addEventListener("mouseup",ya.handleMouseUp)},ya.handleMouseUp=function(){ya.unbindEventListeners()},xa),pa(ya,Aa)}return ea(ma,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var xa=this,ya=this.props.direction,Aa=ya===void 0?"horizontal":ya,Ca=(0,aa.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:Aa==="vertical"});return ra.default.createElement("div",{style:Ca.hue},ra.default.createElement("div",{className:"hue-"+Aa,style:Ca.container,ref:function(wa){return xa.container=wa},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ra.default.createElement("style",null,`
            .hue-horizontal {
              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to right, #f00 0%, #ff0
                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }

            .hue-vertical {
              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }
          `),ra.default.createElement("div",{style:Ca.pointer},this.props.pointer?ra.default.createElement(this.props.pointer,this.props):ra.default.createElement("div",{style:Ca.slider}))))}}]),ma}(na.PureComponent||na.Component);return Hue$1.default=ga,Hue$1}var Raised={},_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var ea=require_baseAssignValue(),na=requireEq();function ra(oa,aa,sa){(sa!==void 0&&!na(oa[aa],sa)||sa===void 0&&!(aa in oa))&&ea(oa,aa,sa)}return _assignMergeValue=ra,_assignMergeValue}var isArrayLikeObject_1,hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){if(hasRequiredIsArrayLikeObject)return isArrayLikeObject_1;hasRequiredIsArrayLikeObject=1;var ea=requireIsArrayLike(),na=requireIsObjectLike();function ra(oa){return na(oa)&&ea(oa)}return isArrayLikeObject_1=ra,isArrayLikeObject_1}var _safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function ea(na,ra){if(!(ra==="constructor"&&typeof na[ra]=="function")&&ra!="__proto__")return na[ra]}return _safeGet=ea,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var ea=require_copyObject(),na=requireKeysIn();function ra(oa){return ea(oa,na(oa))}return toPlainObject_1=ra,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var ea=require_assignMergeValue(),na=require_cloneBuffer(),ra=require_cloneTypedArray(),oa=require_copyArray(),aa=require_initCloneObject(),sa=requireIsArguments(),la=requireIsArray(),ca=requireIsArrayLikeObject(),ua=requireIsBuffer$3(),da=requireIsFunction(),pa=requireIsObject(),ha=requireIsPlainObject(),ga=requireIsTypedArray(),fa=require_safeGet(),ma=requireToPlainObject();function va(xa,ya,Aa,Ca,Sa,wa,ba){var Ea=fa(xa,Aa),$a=fa(ya,Aa),Ma=ba.get($a);if(Ma){ea(xa,Aa,Ma);return}var Ia=wa?wa(Ea,$a,Aa+"",xa,ya,ba):void 0,Oa=Ia===void 0;if(Oa){var Da=la($a),Ta=!Da&&ua($a),_a=!Da&&!Ta&&ga($a);Ia=$a,Da||Ta||_a?la(Ea)?Ia=Ea:ca(Ea)?Ia=oa(Ea):Ta?(Oa=!1,Ia=na($a,!0)):_a?(Oa=!1,Ia=ra($a,!0)):Ia=[]:ha($a)||sa($a)?(Ia=Ea,sa(Ea)?Ia=ma(Ea):(!pa(Ea)||da(Ea))&&(Ia=aa($a))):Oa=!1}Oa&&(ba.set($a,Ia),Sa(Ia,$a,Ca,wa,ba),ba.delete($a)),ea(xa,Aa,Ia)}return _baseMergeDeep=va,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var ea=require_Stack(),na=require_assignMergeValue(),ra=require_baseFor(),oa=require_baseMergeDeep(),aa=requireIsObject(),sa=requireKeysIn(),la=require_safeGet();function ca(ua,da,pa,ha,ga){ua!==da&&ra(da,function(fa,ma){if(ga||(ga=new ea),aa(fa))oa(ua,da,ma,pa,ca,ha,ga);else{var va=ha?ha(la(ua,ma),fa,ma+"",ua,da,ga):void 0;va===void 0&&(va=fa),na(ua,ma,va)}},sa)}return _baseMerge=ca,_baseMerge}var _apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function ea(na,ra,oa){switch(oa.length){case 0:return na.call(ra);case 1:return na.call(ra,oa[0]);case 2:return na.call(ra,oa[0],oa[1]);case 3:return na.call(ra,oa[0],oa[1],oa[2])}return na.apply(ra,oa)}return _apply=ea,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var ea=require_apply(),na=Math.max;function ra(oa,aa,sa){return aa=na(aa===void 0?oa.length-1:aa,0),function(){for(var la=arguments,ca=-1,ua=na(la.length-aa,0),da=Array(ua);++ca<ua;)da[ca]=la[aa+ca];ca=-1;for(var pa=Array(aa+1);++ca<aa;)pa[ca]=la[ca];return pa[aa]=sa(da),ea(oa,this,pa)}}return _overRest=ra,_overRest}var constant_1,hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant_1;hasRequiredConstant=1;function ea(na){return function(){return na}}return constant_1=ea,constant_1}var _baseSetToString,hasRequired_baseSetToString;function require_baseSetToString(){if(hasRequired_baseSetToString)return _baseSetToString;hasRequired_baseSetToString=1;var ea=requireConstant(),na=require_defineProperty(),ra=requireIdentity(),oa=na?function(aa,sa){return na(aa,"toString",{configurable:!0,enumerable:!1,value:ea(sa),writable:!0})}:ra;return _baseSetToString=oa,_baseSetToString}var _shortOut,hasRequired_shortOut;function require_shortOut(){if(hasRequired_shortOut)return _shortOut;hasRequired_shortOut=1;var ea=800,na=16,ra=Date.now;function oa(aa){var sa=0,la=0;return function(){var ca=ra(),ua=na-(ca-la);if(la=ca,ua>0){if(++sa>=ea)return arguments[0]}else sa=0;return aa.apply(void 0,arguments)}}return _shortOut=oa,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var ea=require_baseSetToString(),na=require_shortOut(),ra=na(ea);return _setToString=ra,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var ea=requireIdentity(),na=require_overRest(),ra=require_setToString();function oa(aa,sa){return ra(na(aa,sa,ea),aa+"")}return _baseRest=oa,_baseRest}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var ea=requireEq(),na=requireIsArrayLike(),ra=require_isIndex(),oa=requireIsObject();function aa(sa,la,ca){if(!oa(ca))return!1;var ua=typeof la;return(ua=="number"?na(ca)&&ra(la,ca.length):ua=="string"&&la in ca)?ea(ca[la],sa):!1}return _isIterateeCall=aa,_isIterateeCall}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var ea=require_baseRest(),na=require_isIterateeCall();function ra(oa){return ea(function(aa,sa){var la=-1,ca=sa.length,ua=ca>1?sa[ca-1]:void 0,da=ca>2?sa[2]:void 0;for(ua=oa.length>3&&typeof ua=="function"?(ca--,ua):void 0,da&&na(sa[0],sa[1],da)&&(ua=ca<3?void 0:ua,ca=1),aa=Object(aa);++la<ca;){var pa=sa[la];pa&&oa(aa,pa,la,ua)}return aa})}return _createAssigner=ra,_createAssigner}var merge_1,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge_1;hasRequiredMerge=1;var ea=require_baseMerge(),na=require_createAssigner(),ra=na(function(oa,aa,sa){ea(oa,aa,sa)});return merge_1=ra,merge_1}var hasRequiredRaised;function requireRaised(){if(hasRequiredRaised)return Raised;hasRequiredRaised=1,Object.defineProperty(Raised,"__esModule",{value:!0}),Raised.Raised=void 0;var ea=requireReact(),na=ua(ea),ra=requirePropTypes(),oa=ua(ra),aa=requireLib$4(),sa=ua(aa),la=requireMerge(),ca=ua(la);function ua(pa){return pa&&pa.__esModule?pa:{default:pa}}var da=Raised.Raised=function(ha){var ga=ha.zDepth,fa=ha.radius,ma=ha.background,va=ha.children,xa=ha.styles,ya=xa===void 0?{}:xa,Aa=(0,sa.default)((0,ca.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+ga+"px "+ga*4+"px rgba(0,0,0,.24)",borderRadius:fa,background:ma}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},ya),{"zDepth-1":ga===1});return na.default.createElement("div",{style:Aa.wrap},na.default.createElement("div",{style:Aa.bg}),na.default.createElement("div",{style:Aa.content},va))};return da.propTypes={background:oa.default.string,zDepth:oa.default.oneOf([0,1,2,3,4,5]),radius:oa.default.number,styles:oa.default.object},da.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},Raised.default=da,Raised}var Saturation$1={},now_1,hasRequiredNow;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var ea=require_root(),na=function(){return ea.Date.now()};return now_1=na,now_1}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var ea=/\s/;function na(ra){for(var oa=ra.length;oa--&&ea.test(ra.charAt(oa)););return oa}return _trimmedEndIndex=na,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var ea=require_trimmedEndIndex(),na=/^\s+/;function ra(oa){return oa&&oa.slice(0,ea(oa)+1).replace(na,"")}return _baseTrim=ra,_baseTrim}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var ea=require_baseTrim(),na=requireIsObject(),ra=requireIsSymbol(),oa=NaN,aa=/^[-+]0x[0-9a-f]+$/i,sa=/^0b[01]+$/i,la=/^0o[0-7]+$/i,ca=parseInt;function ua(da){if(typeof da=="number")return da;if(ra(da))return oa;if(na(da)){var pa=typeof da.valueOf=="function"?da.valueOf():da;da=na(pa)?pa+"":pa}if(typeof da!="string")return da===0?da:+da;da=ea(da);var ha=sa.test(da);return ha||la.test(da)?ca(da.slice(2),ha?2:8):aa.test(da)?oa:+da}return toNumber_1=ua,toNumber_1}var debounce_1,hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var ea=requireIsObject(),na=requireNow(),ra=requireToNumber(),oa="Expected a function",aa=Math.max,sa=Math.min;function la(ca,ua,da){var pa,ha,ga,fa,ma,va,xa=0,ya=!1,Aa=!1,Ca=!0;if(typeof ca!="function")throw new TypeError(oa);ua=ra(ua)||0,ea(da)&&(ya=!!da.leading,Aa="maxWait"in da,ga=Aa?aa(ra(da.maxWait)||0,ua):ga,Ca="trailing"in da?!!da.trailing:Ca);function Sa(Ta){var _a=pa,La=ha;return pa=ha=void 0,xa=Ta,fa=ca.apply(La,_a),fa}function wa(Ta){return xa=Ta,ma=setTimeout($a,ua),ya?Sa(Ta):fa}function ba(Ta){var _a=Ta-va,La=Ta-xa,Na=ua-_a;return Aa?sa(Na,ga-La):Na}function Ea(Ta){var _a=Ta-va,La=Ta-xa;return va===void 0||_a>=ua||_a<0||Aa&&La>=ga}function $a(){var Ta=na();if(Ea(Ta))return Ma(Ta);ma=setTimeout($a,ba(Ta))}function Ma(Ta){return ma=void 0,Ca&&pa?Sa(Ta):(pa=ha=void 0,fa)}function Ia(){ma!==void 0&&clearTimeout(ma),xa=0,pa=va=ha=ma=void 0}function Oa(){return ma===void 0?fa:Ma(na())}function Da(){var Ta=na(),_a=Ea(Ta);if(pa=arguments,ha=this,va=Ta,_a){if(ma===void 0)return wa(va);if(Aa)return clearTimeout(ma),ma=setTimeout($a,ua),Sa(va)}return ma===void 0&&(ma=setTimeout($a,ua)),fa}return Da.cancel=Ia,Da.flush=Oa,Da}return debounce_1=la,debounce_1}var throttle_1,hasRequiredThrottle;function requireThrottle(){if(hasRequiredThrottle)return throttle_1;hasRequiredThrottle=1;var ea=requireDebounce(),na=requireIsObject(),ra="Expected a function";function oa(aa,sa,la){var ca=!0,ua=!0;if(typeof aa!="function")throw new TypeError(ra);return na(la)&&(ca="leading"in la?!!la.leading:ca,ua="trailing"in la?!!la.trailing:ua),ea(aa,sa,{leading:ca,maxWait:sa,trailing:ua})}return throttle_1=oa,throttle_1}var saturation={},hasRequiredSaturation$1;function requireSaturation$1(){return hasRequiredSaturation$1||(hasRequiredSaturation$1=1,Object.defineProperty(saturation,"__esModule",{value:!0}),saturation.calculateChange=function(na,ra,oa){var aa=oa.getBoundingClientRect(),sa=aa.width,la=aa.height,ca=typeof na.pageX=="number"?na.pageX:na.touches[0].pageX,ua=typeof na.pageY=="number"?na.pageY:na.touches[0].pageY,da=ca-(oa.getBoundingClientRect().left+window.pageXOffset),pa=ua-(oa.getBoundingClientRect().top+window.pageYOffset);da<0?da=0:da>sa&&(da=sa),pa<0?pa=0:pa>la&&(pa=la);var ha=da/sa,ga=1-pa/la;return{h:ra.h,s:ha,v:ga,a:ra.a,source:"hsv"}}),saturation}var hasRequiredSaturation;function requireSaturation(){if(hasRequiredSaturation)return Saturation$1;hasRequiredSaturation=1,Object.defineProperty(Saturation$1,"__esModule",{value:!0}),Saturation$1.Saturation=void 0;var ea=function(){function va(xa,ya){for(var Aa=0;Aa<ya.length;Aa++){var Ca=ya[Aa];Ca.enumerable=Ca.enumerable||!1,Ca.configurable=!0,"value"in Ca&&(Ca.writable=!0),Object.defineProperty(xa,Ca.key,Ca)}}return function(xa,ya,Aa){return ya&&va(xa.prototype,ya),Aa&&va(xa,Aa),xa}}(),na=requireReact(),ra=pa(na),oa=requireLib$4(),aa=pa(oa),sa=requireThrottle(),la=pa(sa),ca=requireSaturation$1(),ua=da(ca);function da(va){if(va&&va.__esModule)return va;var xa={};if(va!=null)for(var ya in va)Object.prototype.hasOwnProperty.call(va,ya)&&(xa[ya]=va[ya]);return xa.default=va,xa}function pa(va){return va&&va.__esModule?va:{default:va}}function ha(va,xa){if(!(va instanceof xa))throw new TypeError("Cannot call a class as a function")}function ga(va,xa){if(!va)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xa&&(typeof xa=="object"||typeof xa=="function")?xa:va}function fa(va,xa){if(typeof xa!="function"&&xa!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xa);va.prototype=Object.create(xa&&xa.prototype,{constructor:{value:va,enumerable:!1,writable:!0,configurable:!0}}),xa&&(Object.setPrototypeOf?Object.setPrototypeOf(va,xa):va.__proto__=xa)}var ma=Saturation$1.Saturation=function(va){fa(xa,va);function xa(ya){ha(this,xa);var Aa=ga(this,(xa.__proto__||Object.getPrototypeOf(xa)).call(this,ya));return Aa.handleChange=function(Ca){typeof Aa.props.onChange=="function"&&Aa.throttle(Aa.props.onChange,ua.calculateChange(Ca,Aa.props.hsl,Aa.container),Ca)},Aa.handleMouseDown=function(Ca){Aa.handleChange(Ca);var Sa=Aa.getContainerRenderWindow();Sa.addEventListener("mousemove",Aa.handleChange),Sa.addEventListener("mouseup",Aa.handleMouseUp)},Aa.handleMouseUp=function(){Aa.unbindEventListeners()},Aa.throttle=(0,la.default)(function(Ca,Sa,wa){Ca(Sa,wa)},50),Aa}return ea(xa,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var Aa=this.container,Ca=window;!Ca.document.contains(Aa)&&Ca.parent!==Ca;)Ca=Ca.parent;return Ca}},{key:"unbindEventListeners",value:function(){var Aa=this.getContainerRenderWindow();Aa.removeEventListener("mousemove",this.handleChange),Aa.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var Aa=this,Ca=this.props.style||{},Sa=Ca.color,wa=Ca.white,ba=Ca.black,Ea=Ca.pointer,$a=Ca.circle,Ma=(0,aa.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
            0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:Sa,white:wa,black:ba,pointer:Ea,circle:$a}},{custom:!!this.props.style});return ra.default.createElement("div",{style:Ma.color,ref:function(Oa){return Aa.container=Oa},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ra.default.createElement("style",null,`
          .saturation-white {
            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
            background: linear-gradient(to right, #fff, rgba(255,255,255,0));
          }
          .saturation-black {
            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
            background: linear-gradient(to top, #000, rgba(0,0,0,0));
          }
        `),ra.default.createElement("div",{style:Ma.white,className:"saturation-white"},ra.default.createElement("div",{style:Ma.black,className:"saturation-black"}),ra.default.createElement("div",{style:Ma.pointer},this.props.pointer?ra.default.createElement(this.props.pointer,this.props):ra.default.createElement("div",{style:Ma.circle}))))}}]),xa}(na.PureComponent||na.Component);return Saturation$1.default=ma,Saturation$1}var ColorWrap={},color$1={},forEach_1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1;hasRequiredForEach=1;var ea=require_arrayEach(),na=require_baseEach(),ra=require_castFunction(),oa=requireIsArray();function aa(sa,la){var ca=oa(sa)?ea:na;return ca(sa,ra(la))}return forEach_1=aa,forEach_1}var each,hasRequiredEach;function requireEach(){return hasRequiredEach||(hasRequiredEach=1,each=requireForEach()),each}var tinycolor$1={exports:{}},tinycolor=tinycolor$1.exports,hasRequiredTinycolor;function requireTinycolor(){return hasRequiredTinycolor||(hasRequiredTinycolor=1,function(ea,na){(function(ra,oa){ea.exports=oa()})(tinycolor,function(){function ra(Ja){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nl){return typeof nl}:function(nl){return nl&&typeof Symbol=="function"&&nl.constructor===Symbol&&nl!==Symbol.prototype?"symbol":typeof nl},ra(Ja)}var oa=/^\s+/,aa=/\s+$/;function sa(Ja,nl){if(Ja=Ja||"",nl=nl||{},Ja instanceof sa)return Ja;if(!(this instanceof sa))return new sa(Ja,nl);var Ya=la(Ja);this._originalInput=Ja,this._r=Ya.r,this._g=Ya.g,this._b=Ya.b,this._a=Ya.a,this._roundA=Math.round(100*this._a)/100,this._format=nl.format||Ya.format,this._gradientType=nl.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=Ya.ok}sa.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 nl=this.toRgb();return(nl.r*299+nl.g*587+nl.b*114)/1e3},getLuminance:function(){var nl=this.toRgb(),Ya,rl,sl,dl,pl,ml;return Ya=nl.r/255,rl=nl.g/255,sl=nl.b/255,Ya<=.03928?dl=Ya/12.92:dl=Math.pow((Ya+.055)/1.055,2.4),rl<=.03928?pl=rl/12.92:pl=Math.pow((rl+.055)/1.055,2.4),sl<=.03928?ml=sl/12.92:ml=Math.pow((sl+.055)/1.055,2.4),.2126*dl+.7152*pl+.0722*ml},setAlpha:function(nl){return this._a=_a(nl),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var nl=pa(this._r,this._g,this._b);return{h:nl.h*360,s:nl.s,v:nl.v,a:this._a}},toHsvString:function(){var nl=pa(this._r,this._g,this._b),Ya=Math.round(nl.h*360),rl=Math.round(nl.s*100),sl=Math.round(nl.v*100);return this._a==1?"hsv("+Ya+", "+rl+"%, "+sl+"%)":"hsva("+Ya+", "+rl+"%, "+sl+"%, "+this._roundA+")"},toHsl:function(){var nl=ua(this._r,this._g,this._b);return{h:nl.h*360,s:nl.s,l:nl.l,a:this._a}},toHslString:function(){var nl=ua(this._r,this._g,this._b),Ya=Math.round(nl.h*360),rl=Math.round(nl.s*100),sl=Math.round(nl.l*100);return this._a==1?"hsl("+Ya+", "+rl+"%, "+sl+"%)":"hsla("+Ya+", "+rl+"%, "+sl+"%, "+this._roundA+")"},toHex:function(nl){return ga(this._r,this._g,this._b,nl)},toHexString:function(nl){return"#"+this.toHex(nl)},toHex8:function(nl){return fa(this._r,this._g,this._b,this._a,nl)},toHex8String:function(nl){return"#"+this.toHex8(nl)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"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(La(this._r,255)*100)+"%",g:Math.round(La(this._g,255)*100)+"%",b:Math.round(La(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(La(this._r,255)*100)+"%, "+Math.round(La(this._g,255)*100)+"%, "+Math.round(La(this._b,255)*100)+"%)":"rgba("+Math.round(La(this._r,255)*100)+"%, "+Math.round(La(this._g,255)*100)+"%, "+Math.round(La(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Da[ga(this._r,this._g,this._b,!0)]||!1},toFilter:function(nl){var Ya="#"+ma(this._r,this._g,this._b,this._a),rl=Ya,sl=this._gradientType?"GradientType = 1, ":"";if(nl){var dl=sa(nl);rl="#"+ma(dl._r,dl._g,dl._b,dl._a)}return"progid:DXImageTransform.Microsoft.gradient("+sl+"startColorstr="+Ya+",endColorstr="+rl+")"},toString:function(nl){var Ya=!!nl;nl=nl||this._format;var rl=!1,sl=this._a<1&&this._a>=0,dl=!Ya&&sl&&(nl==="hex"||nl==="hex6"||nl==="hex3"||nl==="hex4"||nl==="hex8"||nl==="name");return dl?nl==="name"&&this._a===0?this.toName():this.toRgbString():(nl==="rgb"&&(rl=this.toRgbString()),nl==="prgb"&&(rl=this.toPercentageRgbString()),(nl==="hex"||nl==="hex6")&&(rl=this.toHexString()),nl==="hex3"&&(rl=this.toHexString(!0)),nl==="hex4"&&(rl=this.toHex8String(!0)),nl==="hex8"&&(rl=this.toHex8String()),nl==="name"&&(rl=this.toName()),nl==="hsl"&&(rl=this.toHslString()),nl==="hsv"&&(rl=this.toHsvString()),rl||this.toHexString())},clone:function(){return sa(this.toString())},_applyModification:function(nl,Ya){var rl=nl.apply(null,[this].concat([].slice.call(Ya)));return this._r=rl._r,this._g=rl._g,this._b=rl._b,this.setAlpha(rl._a),this},lighten:function(){return this._applyModification(Aa,arguments)},brighten:function(){return this._applyModification(Ca,arguments)},darken:function(){return this._applyModification(Sa,arguments)},desaturate:function(){return this._applyModification(va,arguments)},saturate:function(){return this._applyModification(xa,arguments)},greyscale:function(){return this._applyModification(ya,arguments)},spin:function(){return this._applyModification(wa,arguments)},_applyCombination:function(nl,Ya){return nl.apply(null,[this].concat([].slice.call(Ya)))},analogous:function(){return this._applyCombination(Ma,arguments)},complement:function(){return this._applyCombination(ba,arguments)},monochromatic:function(){return this._applyCombination(Ia,arguments)},splitcomplement:function(){return this._applyCombination($a,arguments)},triad:function(){return this._applyCombination(Ea,[3])},tetrad:function(){return this._applyCombination(Ea,[4])}},sa.fromRatio=function(Ja,nl){if(ra(Ja)=="object"){var Ya={};for(var rl in Ja)Ja.hasOwnProperty(rl)&&(rl==="a"?Ya[rl]=Ja[rl]:Ya[rl]=Ua(Ja[rl]));Ja=Ya}return sa(Ja,nl)};function la(Ja){var nl={r:0,g:0,b:0},Ya=1,rl=null,sl=null,dl=null,pl=!1,ml=!1;return typeof Ja=="string"&&(Ja=tl(Ja)),ra(Ja)=="object"&&(Xa(Ja.r)&&Xa(Ja.g)&&Xa(Ja.b)?(nl=ca(Ja.r,Ja.g,Ja.b),pl=!0,ml=String(Ja.r).substr(-1)==="%"?"prgb":"rgb"):Xa(Ja.h)&&Xa(Ja.s)&&Xa(Ja.v)?(rl=Ua(Ja.s),sl=Ua(Ja.v),nl=ha(Ja.h,rl,sl),pl=!0,ml="hsv"):Xa(Ja.h)&&Xa(Ja.s)&&Xa(Ja.l)&&(rl=Ua(Ja.s),dl=Ua(Ja.l),nl=da(Ja.h,rl,dl),pl=!0,ml="hsl"),Ja.hasOwnProperty("a")&&(Ya=Ja.a)),Ya=_a(Ya),{ok:pl,format:Ja.format||ml,r:Math.min(255,Math.max(nl.r,0)),g:Math.min(255,Math.max(nl.g,0)),b:Math.min(255,Math.max(nl.b,0)),a:Ya}}function ca(Ja,nl,Ya){return{r:La(Ja,255)*255,g:La(nl,255)*255,b:La(Ya,255)*255}}function ua(Ja,nl,Ya){Ja=La(Ja,255),nl=La(nl,255),Ya=La(Ya,255);var rl=Math.max(Ja,nl,Ya),sl=Math.min(Ja,nl,Ya),dl,pl,ml=(rl+sl)/2;if(rl==sl)dl=pl=0;else{var Rl=rl-sl;switch(pl=ml>.5?Rl/(2-rl-sl):Rl/(rl+sl),rl){case Ja:dl=(nl-Ya)/Rl+(nl<Ya?6:0);break;case nl:dl=(Ya-Ja)/Rl+2;break;case Ya:dl=(Ja-nl)/Rl+4;break}dl/=6}return{h:dl,s:pl,l:ml}}function da(Ja,nl,Ya){var rl,sl,dl;Ja=La(Ja,360),nl=La(nl,100),Ya=La(Ya,100);function pl(Tl,Il,Ol){return Ol<0&&(Ol+=1),Ol>1&&(Ol-=1),Ol<1/6?Tl+(Il-Tl)*6*Ol:Ol<1/2?Il:Ol<2/3?Tl+(Il-Tl)*(2/3-Ol)*6:Tl}if(nl===0)rl=sl=dl=Ya;else{var ml=Ya<.5?Ya*(1+nl):Ya+nl-Ya*nl,Rl=2*Ya-ml;rl=pl(Rl,ml,Ja+1/3),sl=pl(Rl,ml,Ja),dl=pl(Rl,ml,Ja-1/3)}return{r:rl*255,g:sl*255,b:dl*255}}function pa(Ja,nl,Ya){Ja=La(Ja,255),nl=La(nl,255),Ya=La(Ya,255);var rl=Math.max(Ja,nl,Ya),sl=Math.min(Ja,nl,Ya),dl,pl,ml=rl,Rl=rl-sl;if(pl=rl===0?0:Rl/rl,rl==sl)dl=0;else{switch(rl){case Ja:dl=(nl-Ya)/Rl+(nl<Ya?6:0);break;case nl:dl=(Ya-Ja)/Rl+2;break;case Ya:dl=(Ja-nl)/Rl+4;break}dl/=6}return{h:dl,s:pl,v:ml}}function ha(Ja,nl,Ya){Ja=La(Ja,360)*6,nl=La(nl,100),Ya=La(Ya,100);var rl=Math.floor(Ja),sl=Ja-rl,dl=Ya*(1-nl),pl=Ya*(1-sl*nl),ml=Ya*(1-(1-sl)*nl),Rl=rl%6,Tl=[Ya,pl,dl,dl,ml,Ya][Rl],Il=[ml,Ya,Ya,pl,dl,dl][Rl],Ol=[dl,dl,ml,Ya,Ya,pl][Rl];return{r:Tl*255,g:Il*255,b:Ol*255}}function ga(Ja,nl,Ya,rl){var sl=[Va(Math.round(Ja).toString(16)),Va(Math.round(nl).toString(16)),Va(Math.round(Ya).toString(16))];return rl&&sl[0].charAt(0)==sl[0].charAt(1)&&sl[1].charAt(0)==sl[1].charAt(1)&&sl[2].charAt(0)==sl[2].charAt(1)?sl[0].charAt(0)+sl[1].charAt(0)+sl[2].charAt(0):sl.join("")}function fa(Ja,nl,Ya,rl,sl){var dl=[Va(Math.round(Ja).toString(16)),Va(Math.round(nl).toString(16)),Va(Math.round(Ya).toString(16)),Va(Qa(rl))];return sl&&dl[0].charAt(0)==dl[0].charAt(1)&&dl[1].charAt(0)==dl[1].charAt(1)&&dl[2].charAt(0)==dl[2].charAt(1)&&dl[3].charAt(0)==dl[3].charAt(1)?dl[0].charAt(0)+dl[1].charAt(0)+dl[2].charAt(0)+dl[3].charAt(0):dl.join("")}function ma(Ja,nl,Ya,rl){var sl=[Va(Qa(rl)),Va(Math.round(Ja).toString(16)),Va(Math.round(nl).toString(16)),Va(Math.round(Ya).toString(16))];return sl.join("")}sa.equals=function(Ja,nl){return!Ja||!nl?!1:sa(Ja).toRgbString()==sa(nl).toRgbString()},sa.random=function(){return sa.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function va(Ja,nl){nl=nl===0?0:nl||10;var Ya=sa(Ja).toHsl();return Ya.s-=nl/100,Ya.s=Na(Ya.s),sa(Ya)}function xa(Ja,nl){nl=nl===0?0:nl||10;var Ya=sa(Ja).toHsl();return Ya.s+=nl/100,Ya.s=Na(Ya.s),sa(Ya)}function ya(Ja){return sa(Ja).desaturate(100)}function Aa(Ja,nl){nl=nl===0?0:nl||10;var Ya=sa(Ja).toHsl();return Ya.l+=nl/100,Ya.l=Na(Ya.l),sa(Ya)}function Ca(Ja,nl){nl=nl===0?0:nl||10;var Ya=sa(Ja).toRgb();return Ya.r=Math.max(0,Math.min(255,Ya.r-Math.round(255*-(nl/100)))),Ya.g=Math.max(0,Math.min(255,Ya.g-Math.round(255*-(nl/100)))),Ya.b=Math.max(0,Math.min(255,Ya.b-Math.round(255*-(nl/100)))),sa(Ya)}function Sa(Ja,nl){nl=nl===0?0:nl||10;var Ya=sa(Ja).toHsl();return Ya.l-=nl/100,Ya.l=Na(Ya.l),sa(Ya)}function wa(Ja,nl){var Ya=sa(Ja).toHsl(),rl=(Ya.h+nl)%360;return Ya.h=rl<0?360+rl:rl,sa(Ya)}function ba(Ja){var nl=sa(Ja).toHsl();return nl.h=(nl.h+180)%360,sa(nl)}function Ea(Ja,nl){if(isNaN(nl)||nl<=0)throw new Error("Argument to polyad must be a positive number");for(var Ya=sa(Ja).toHsl(),rl=[sa(Ja)],sl=360/nl,dl=1;dl<nl;dl++)rl.push(sa({h:(Ya.h+dl*sl)%360,s:Ya.s,l:Ya.l}));return rl}function $a(Ja){var nl=sa(Ja).toHsl(),Ya=nl.h;return[sa(Ja),sa({h:(Ya+72)%360,s:nl.s,l:nl.l}),sa({h:(Ya+216)%360,s:nl.s,l:nl.l})]}function Ma(Ja,nl,Ya){nl=nl||6,Ya=Ya||30;var rl=sa(Ja).toHsl(),sl=360/Ya,dl=[sa(Ja)];for(rl.h=(rl.h-(sl*nl>>1)+720)%360;--nl;)rl.h=(rl.h+sl)%360,dl.push(sa(rl));return dl}function Ia(Ja,nl){nl=nl||6;for(var Ya=sa(Ja).toHsv(),rl=Ya.h,sl=Ya.s,dl=Ya.v,pl=[],ml=1/nl;nl--;)pl.push(sa({h:rl,s:sl,v:dl})),dl=(dl+ml)%1;return pl}sa.mix=function(Ja,nl,Ya){Ya=Ya===0?0:Ya||50;var rl=sa(Ja).toRgb(),sl=sa(nl).toRgb(),dl=Ya/100,pl={r:(sl.r-rl.r)*dl+rl.r,g:(sl.g-rl.g)*dl+rl.g,b:(sl.b-rl.b)*dl+rl.b,a:(sl.a-rl.a)*dl+rl.a};return sa(pl)},sa.readability=function(Ja,nl){var Ya=sa(Ja),rl=sa(nl);return(Math.max(Ya.getLuminance(),rl.getLuminance())+.05)/(Math.min(Ya.getLuminance(),rl.getLuminance())+.05)},sa.isReadable=function(Ja,nl,Ya){var rl=sa.readability(Ja,nl),sl,dl;switch(dl=!1,sl=il(Ya),sl.level+sl.size){case"AAsmall":case"AAAlarge":dl=rl>=4.5;break;case"AAlarge":dl=rl>=3;break;case"AAAsmall":dl=rl>=7;break}return dl},sa.mostReadable=function(Ja,nl,Ya){var rl=null,sl=0,dl,pl,ml,Rl;Ya=Ya||{},pl=Ya.includeFallbackColors,ml=Ya.level,Rl=Ya.size;for(var Tl=0;Tl<nl.length;Tl++)dl=sa.readability(Ja,nl[Tl]),dl>sl&&(sl=dl,rl=sa(nl[Tl]));return sa.isReadable(Ja,rl,{level:ml,size:Rl})||!pl?rl:(Ya.includeFallbackColors=!1,sa.mostReadable(Ja,["#fff","#000"],Ya))};var Oa=sa.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"},Da=sa.hexNames=Ta(Oa);function Ta(Ja){var nl={};for(var Ya in Ja)Ja.hasOwnProperty(Ya)&&(nl[Ja[Ya]]=Ya);return nl}function _a(Ja){return Ja=parseFloat(Ja),(isNaN(Ja)||Ja<0||Ja>1)&&(Ja=1),Ja}function La(Ja,nl){Fa(Ja)&&(Ja="100%");var Ya=Ha(Ja);return Ja=Math.min(nl,Math.max(0,parseFloat(Ja))),Ya&&(Ja=parseInt(Ja*nl,10)/100),Math.abs(Ja-nl)<1e-6?1:Ja%nl/parseFloat(nl)}function Na(Ja){return Math.min(1,Math.max(0,Ja))}function za(Ja){return parseInt(Ja,16)}function Fa(Ja){return typeof Ja=="string"&&Ja.indexOf(".")!=-1&&parseFloat(Ja)===1}function Ha(Ja){return typeof Ja=="string"&&Ja.indexOf("%")!=-1}function Va(Ja){return Ja.length==1?"0"+Ja:""+Ja}function Ua(Ja){return Ja<=1&&(Ja=Ja*100+"%"),Ja}function Qa(Ja){return Math.round(parseFloat(Ja)*255).toString(16)}function Wa(Ja){return za(Ja)/255}var Za=function(){var Ja="[-\\+]?\\d+%?",nl="[-\\+]?\\d*\\.\\d+%?",Ya="(?:"+nl+")|(?:"+Ja+")",rl="[\\s|\\(]+("+Ya+")[,|\\s]+("+Ya+")[,|\\s]+("+Ya+")\\s*\\)?",sl="[\\s|\\(]+("+Ya+")[,|\\s]+("+Ya+")[,|\\s]+("+Ya+")[,|\\s]+("+Ya+")\\s*\\)?";return{CSS_UNIT:new RegExp(Ya),rgb:new RegExp("rgb"+rl),rgba:new RegExp("rgba"+sl),hsl:new RegExp("hsl"+rl),hsla:new RegExp("hsla"+sl),hsv:new RegExp("hsv"+rl),hsva:new RegExp("hsva"+sl),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 Xa(Ja){return!!Za.CSS_UNIT.exec(Ja)}function tl(Ja){Ja=Ja.replace(oa,"").replace(aa,"").toLowerCase();var nl=!1;if(Oa[Ja])Ja=Oa[Ja],nl=!0;else if(Ja=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Ya;return(Ya=Za.rgb.exec(Ja))?{r:Ya[1],g:Ya[2],b:Ya[3]}:(Ya=Za.rgba.exec(Ja))?{r:Ya[1],g:Ya[2],b:Ya[3],a:Ya[4]}:(Ya=Za.hsl.exec(Ja))?{h:Ya[1],s:Ya[2],l:Ya[3]}:(Ya=Za.hsla.exec(Ja))?{h:Ya[1],s:Ya[2],l:Ya[3],a:Ya[4]}:(Ya=Za.hsv.exec(Ja))?{h:Ya[1],s:Ya[2],v:Ya[3]}:(Ya=Za.hsva.exec(Ja))?{h:Ya[1],s:Ya[2],v:Ya[3],a:Ya[4]}:(Ya=Za.hex8.exec(Ja))?{r:za(Ya[1]),g:za(Ya[2]),b:za(Ya[3]),a:Wa(Ya[4]),format:nl?"name":"hex8"}:(Ya=Za.hex6.exec(Ja))?{r:za(Ya[1]),g:za(Ya[2]),b:za(Ya[3]),format:nl?"name":"hex"}:(Ya=Za.hex4.exec(Ja))?{r:za(Ya[1]+""+Ya[1]),g:za(Ya[2]+""+Ya[2]),b:za(Ya[3]+""+Ya[3]),a:Wa(Ya[4]+""+Ya[4]),format:nl?"name":"hex8"}:(Ya=Za.hex3.exec(Ja))?{r:za(Ya[1]+""+Ya[1]),g:za(Ya[2]+""+Ya[2]),b:za(Ya[3]+""+Ya[3]),format:nl?"name":"hex"}:!1}function il(Ja){var nl,Ya;return Ja=Ja||{level:"AA",size:"small"},nl=(Ja.level||"AA").toUpperCase(),Ya=(Ja.size||"small").toLowerCase(),nl!=="AA"&&nl!=="AAA"&&(nl="AA"),Ya!=="small"&&Ya!=="large"&&(Ya="small"),{level:nl,size:Ya}}return sa})}(tinycolor$1)),tinycolor$1.exports}var hasRequiredColor;function requireColor(){if(hasRequiredColor)return color$1;hasRequiredColor=1,Object.defineProperty(color$1,"__esModule",{value:!0}),color$1.isvalidColorString=color$1.red=color$1.getContrastingColor=color$1.isValidHex=color$1.toState=color$1.simpleCheckForValidColor=void 0;var ea=requireEach(),na=aa(ea),ra=requireTinycolor(),oa=aa(ra);function aa(la){return la&&la.__esModule?la:{default:la}}color$1.simpleCheckForValidColor=function(ca){var ua=["r","g","b","a","h","s","l","v"],da=0,pa=0;return(0,na.default)(ua,function(ha){if(ca[ha]&&(da+=1,isNaN(ca[ha])||(pa+=1),ha==="s"||ha==="l")){var ga=/^\d+%$/;ga.test(ca[ha])&&(pa+=1)}}),da===pa?ca:!1};var sa=color$1.toState=function(ca,ua){var da=ca.hex?(0,oa.default)(ca.hex):(0,oa.default)(ca),pa=da.toHsl(),ha=da.toHsv(),ga=da.toRgb(),fa=da.toHex();pa.s===0&&(pa.h=ua||0,ha.h=ua||0);var ma=fa==="000000"&&ga.a===0;return{hsl:pa,hex:ma?"transparent":"#"+fa,rgb:ga,hsv:ha,oldHue:ca.h||ua||pa.h,source:ca.source}};return color$1.isValidHex=function(ca){if(ca==="transparent")return!0;var ua=String(ca).charAt(0)==="#"?1:0;return ca.length!==4+ua&&ca.length<7+ua&&(0,oa.default)(ca).isValid()},color$1.getContrastingColor=function(ca){if(!ca)return"#fff";var ua=sa(ca);if(ua.hex==="transparent")return"rgba(0,0,0,0.4)";var da=(ua.rgb.r*299+ua.rgb.g*587+ua.rgb.b*114)/1e3;return da>=128?"#000":"#fff"},color$1.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},color$1.isvalidColorString=function(ca,ua){var da=ca.replace("°","");return(0,oa.default)(ua+" ("+da+")")._ok},color$1}var hasRequiredColorWrap;function requireColorWrap(){if(hasRequiredColorWrap)return ColorWrap;hasRequiredColorWrap=1,Object.defineProperty(ColorWrap,"__esModule",{value:!0}),ColorWrap.ColorWrap=void 0;var ea=Object.assign||function(ma){for(var va=1;va<arguments.length;va++){var xa=arguments[va];for(var ya in xa)Object.prototype.hasOwnProperty.call(xa,ya)&&(ma[ya]=xa[ya])}return ma},na=function(){function ma(va,xa){for(var ya=0;ya<xa.length;ya++){var Aa=xa[ya];Aa.enumerable=Aa.enumerable||!1,Aa.configurable=!0,"value"in Aa&&(Aa.writable=!0),Object.defineProperty(va,Aa.key,Aa)}}return function(va,xa,ya){return xa&&ma(va.prototype,xa),ya&&ma(va,ya),va}}(),ra=requireReact(),oa=da(ra),aa=requireDebounce(),sa=da(aa),la=requireColor(),ca=ua(la);function ua(ma){if(ma&&ma.__esModule)return ma;var va={};if(ma!=null)for(var xa in ma)Object.prototype.hasOwnProperty.call(ma,xa)&&(va[xa]=ma[xa]);return va.default=ma,va}function da(ma){return ma&&ma.__esModule?ma:{default:ma}}function pa(ma,va){if(!(ma instanceof va))throw new TypeError("Cannot call a class as a function")}function ha(ma,va){if(!ma)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return va&&(typeof va=="object"||typeof va=="function")?va:ma}function ga(ma,va){if(typeof va!="function"&&va!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof va);ma.prototype=Object.create(va&&va.prototype,{constructor:{value:ma,enumerable:!1,writable:!0,configurable:!0}}),va&&(Object.setPrototypeOf?Object.setPrototypeOf(ma,va):ma.__proto__=va)}var fa=ColorWrap.ColorWrap=function(va){var xa=function(ya){ga(Aa,ya);function Aa(Ca){pa(this,Aa);var Sa=ha(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this));return Sa.handleChange=function(wa,ba){var Ea=ca.simpleCheckForValidColor(wa);if(Ea){var $a=ca.toState(wa,wa.h||Sa.state.oldHue);Sa.setState($a),Sa.props.onChangeComplete&&Sa.debounce(Sa.props.onChangeComplete,$a,ba),Sa.props.onChange&&Sa.props.onChange($a,ba)}},Sa.handleSwatchHover=function(wa,ba){var Ea=ca.simpleCheckForValidColor(wa);if(Ea){var $a=ca.toState(wa,wa.h||Sa.state.oldHue);Sa.props.onSwatchHover&&Sa.props.onSwatchHover($a,ba)}},Sa.state=ea({},ca.toState(Ca.color,0)),Sa.debounce=(0,sa.default)(function(wa,ba,Ea){wa(ba,Ea)},100),Sa}return na(Aa,[{key:"render",value:function(){var Sa={};return this.props.onSwatchHover&&(Sa.onSwatchHover=this.handleSwatchHover),oa.default.createElement(va,ea({},this.props,this.state,{onChange:this.handleChange},Sa))}}],[{key:"getDerivedStateFromProps",value:function(Sa,wa){return ea({},ca.toState(Sa.color,wa.oldHue))}}]),Aa}(ra.PureComponent||ra.Component);return xa.propTypes=ea({},va.propTypes),xa.defaultProps=ea({},va.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),xa};return ColorWrap.default=fa,ColorWrap}var Swatch={},interaction={},hasRequiredInteraction;function requireInteraction(){if(hasRequiredInteraction)return interaction;hasRequiredInteraction=1,Object.defineProperty(interaction,"__esModule",{value:!0}),interaction.handleFocus=void 0;var ea=Object.assign||function(ua){for(var da=1;da<arguments.length;da++){var pa=arguments[da];for(var ha in pa)Object.prototype.hasOwnProperty.call(pa,ha)&&(ua[ha]=pa[ha])}return ua},na=function(){function ua(da,pa){for(var ha=0;ha<pa.length;ha++){var ga=pa[ha];ga.enumerable=ga.enumerable||!1,ga.configurable=!0,"value"in ga&&(ga.writable=!0),Object.defineProperty(da,ga.key,ga)}}return function(da,pa,ha){return pa&&ua(da.prototype,pa),ha&&ua(da,ha),da}}(),ra=requireReact(),oa=aa(ra);function aa(ua){return ua&&ua.__esModule?ua:{default:ua}}function sa(ua,da){if(!(ua instanceof da))throw new TypeError("Cannot call a class as a function")}function la(ua,da){if(!ua)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return da&&(typeof da=="object"||typeof da=="function")?da:ua}function ca(ua,da){if(typeof da!="function"&&da!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof da);ua.prototype=Object.create(da&&da.prototype,{constructor:{value:ua,enumerable:!1,writable:!0,configurable:!0}}),da&&(Object.setPrototypeOf?Object.setPrototypeOf(ua,da):ua.__proto__=da)}return interaction.handleFocus=function(da){var pa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ha){ca(ga,ha);function ga(){var fa,ma,va,xa;sa(this,ga);for(var ya=arguments.length,Aa=Array(ya),Ca=0;Ca<ya;Ca++)Aa[Ca]=arguments[Ca];return xa=(ma=(va=la(this,(fa=ga.__proto__||Object.getPrototypeOf(ga)).call.apply(fa,[this].concat(Aa))),va),va.state={focus:!1},va.handleFocus=function(){return va.setState({focus:!0})},va.handleBlur=function(){return va.setState({focus:!1})},ma),la(va,xa)}return na(ga,[{key:"render",value:function(){return oa.default.createElement(pa,{onFocus:this.handleFocus,onBlur:this.handleBlur},oa.default.createElement(da,ea({},this.props,this.state)))}}]),ga}(oa.default.Component)},interaction}var hasRequiredSwatch;function requireSwatch(){if(hasRequiredSwatch)return Swatch;hasRequiredSwatch=1,Object.defineProperty(Swatch,"__esModule",{value:!0}),Swatch.Swatch=void 0;var ea=Object.assign||function(ha){for(var ga=1;ga<arguments.length;ga++){var fa=arguments[ga];for(var ma in fa)Object.prototype.hasOwnProperty.call(fa,ma)&&(ha[ma]=fa[ma])}return ha},na=requireReact(),ra=ua(na),oa=requireLib$4(),aa=ua(oa),sa=requireInteraction(),la=requireCheckboard(),ca=ua(la);function ua(ha){return ha&&ha.__esModule?ha:{default:ha}}var da=13,pa=Swatch.Swatch=function(ga){var fa=ga.color,ma=ga.style,va=ga.onClick,xa=va===void 0?function(){}:va,ya=ga.onHover,Aa=ga.title,Ca=Aa===void 0?fa:Aa,Sa=ga.children,wa=ga.focus,ba=ga.focusStyle,Ea=ba===void 0?{}:ba,$a=fa==="transparent",Ma=(0,aa.default)({default:{swatch:ea({background:fa,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},ma,wa?Ea:{})}}),Ia=function(La){return xa(fa,La)},Oa=function(La){return La.keyCode===da&&xa(fa,La)},Da=function(La){return ya(fa,La)},Ta={};return ya&&(Ta.onMouseOver=Da),ra.default.createElement("div",ea({style:Ma.swatch,onClick:Ia,title:Ca,tabIndex:0,onKeyDown:Oa},Ta),Sa,$a&&ra.default.createElement(ca.default,{borderRadius:Ma.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};return Swatch.default=(0,sa.handleFocus)(pa),Swatch}var hasRequiredCommon;function requireCommon(){return hasRequiredCommon||(hasRequiredCommon=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0});var na=requireAlpha();Object.defineProperty(ea,"Alpha",{enumerable:!0,get:function(){return da(na).default}});var ra=requireCheckboard();Object.defineProperty(ea,"Checkboard",{enumerable:!0,get:function(){return da(ra).default}});var oa=requireEditableInput();Object.defineProperty(ea,"EditableInput",{enumerable:!0,get:function(){return da(oa).default}});var aa=requireHue();Object.defineProperty(ea,"Hue",{enumerable:!0,get:function(){return da(aa).default}});var sa=requireRaised();Object.defineProperty(ea,"Raised",{enumerable:!0,get:function(){return da(sa).default}});var la=requireSaturation();Object.defineProperty(ea,"Saturation",{enumerable:!0,get:function(){return da(la).default}});var ca=requireColorWrap();Object.defineProperty(ea,"ColorWrap",{enumerable:!0,get:function(){return da(ca).default}});var ua=requireSwatch();Object.defineProperty(ea,"Swatch",{enumerable:!0,get:function(){return da(ua).default}});function da(pa){return pa&&pa.__esModule?pa:{default:pa}}}(common)),common}var commonExports=requireCommon();const theme$3t=withTheme(scheme$1n),Pointer$4=dt$1.div.withConfig({displayName:"ColorPickerPointer__Pointer",componentId:"sc-ob8pbv-0"})(["border-style:solid;border-radius:50%;cursor:pointer;"," ",""],theme$3t.colors((ea,{selected:na})=>lt$1(["border-color:",";box-shadow:0 1px 1px ",";",""],ea.pointer.border,ea.pointer.shadow,na&&lt$1(["background-color:",";"],ea.pointer.border))),theme$3t.sizes(ea=>lt$1(["width:",";height:",";border-width:",";"],ea.pointer.width,ea.pointer.height,ea.pointer.border))),StyledSaturation=ea=>{const{state:{activeColor:{hsl:na,hsv:ra}},setActiveColor:oa}=useGetColorData(),aa=reactExports.useCallback(sa=>{const la=sa;oa(getColorState({...la,a:la.a||1}))},[oa]);return jsxRuntimeExports.jsx("div",{...ea,children:jsxRuntimeExports.jsx(commonExports.Saturation,{pointer:Pointer$4,hsl:na,hsv:ra,onChange:aa})})},theme$3s=withTheme(scheme$1n),Saturation=dt$1(StyledSaturation).withConfig({displayName:"Saturation",componentId:"sc-1fnrrr9-0"})(["overflow:hidden;","{transform:translate(-50%,-50%);}",""],Pointer$4,theme$3s.sizes(ea=>lt$1(["position:relative;width:",";height:",";> div,> div > div{border-radius:",";}"],ea.saturation.width,ea.saturation.height,ea.saturation.border))),StyledHue=ea=>{const{state:{activeColor:{hsl:na}},setActiveColor:ra}=useGetColorData(),oa=reactExports.useCallback(aa=>{const sa=aa;ra(getColorState({...sa,s:sa.s||1,l:sa.l||.5,a:sa.a||1}))},[ra]);return jsxRuntimeExports.jsx("div",{...ea,children:jsxRuntimeExports.jsx(commonExports.Hue,{pointer:Pointer$4,direction:"horizontal",hsl:na,onChange:oa})})},theme$3r=withTheme(scheme$1n),Hue=dt$1(StyledHue).withConfig({displayName:"Hue",componentId:"sc-51aank-0"})(["position:relative;overflow:hidden;","{transform:translate(-50%,0);}",""],Pointer$4,theme$3r.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.hue.width,ea.hue.height,ea.hue.border))),StyledAlpha=ea=>{const{state:{activeColor:{rgb:na,hsl:ra}},setActiveColor:oa}=useGetColorData(),aa=reactExports.useCallback(sa=>{oa(getColorState(sa))},[oa]);return jsxRuntimeExports.jsx("div",{...ea,children:jsxRuntimeExports.jsx(commonExports.Alpha,{pointer:Pointer$4,direction:"horizontal",hsl:ra,a:na.a,rgb:na,onChange:aa})})},theme$3q=withTheme(scheme$1n),Alpha=dt$1(StyledAlpha).withConfig({displayName:"Alpha",componentId:"sc-d2q8pv-0"})(["position:relative;background:#ffffff;overflow:hidden;","{transform:translate(-50%,0);}div{margin:0 !important;}",""],Pointer$4,theme$3q.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.alpha.width,ea.alpha.height,ea.alpha.border))),EyeDropperButton=({className:ea})=>{const{setActiveColor:na}=useGetColorData(),[ra,oa]=reactExports.useState(!1),aa=reactExports.useCallback(async()=>{const sa=new window.EyeDropper;oa(!0);try{const{sRGBHex:la}=await sa.open();na(getColorState(la))}catch(la){console.log(la)}finally{oa(!1)}},[na]);return jsxRuntimeExports.jsx(BaseButton$1,{className:`${ea} ${ra?"depicter-eyedropper":""}`,onClick:aa,icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgEyeDropper})})},theme$3p=withTheme(scheme$1n),EyeDropper=dt$1(EyeDropperButton).withConfig({displayName:"EyeDropper",componentId:"sc-pnc8t-0"})(["border:none;cursor:pointer;&:hover,&.depicter-eyedropper{transition:all 150ms ease-out;svg{transition:all 150ms ease-out;}}"," ",";"],theme$3p.colors(ea=>lt$1(["background-color:",";svg{fill:",";}&:hover,&.depicter-eyedropper{background-color:",";svg{fill:",";}}"],ea.eyeDropper.background,ea.eyeDropper.icon,ea.eyeDropper.active.background,ea.eyeDropper.active.icon)),theme$3p.sizes(ea=>lt$1(["border-radius:",";padding:",";"],ea.eyeDropper.border,ea.eyeDropper.padding))),AlphaInput=dt$1(Input$2).withConfig({displayName:"ColorInput__AlphaInput",componentId:"sc-du3e6o-0"})([""]),HexInput=dt$1(Input$2).withConfig({displayName:"ColorInput__HexInput",componentId:"sc-du3e6o-1"})([""]),StyledColorInput=({showHex:ea,showAlpha:na,disabled:ra,...oa})=>{const{state:{activeColor:{hex:aa,rgb:sa}},setActiveColor:la}=useGetColorData(),ca=reactExports.useMemo(()=>`${Math.round(sa.a*100)}%`,[sa.a]),ua=reactExports.useCallback(ga=>/^\d+\.?\d*?%$/.test(ga||""),[]),da=reactExports.useCallback(ga=>{ga&&la(getColorState({...sa,a:parseInt(ga.split("%")[0],10)/100}))},[sa,la]),pa=reactExports.useCallback(ga=>isValidHexColor(ga||""),[]),ha=reactExports.useCallback(ga=>{ga&&la(getColorState(ga))},[la]);return jsxRuntimeExports.jsxs("div",{...oa,children:[ea&&jsxRuntimeExports.jsx(HexInput,{type:"text",variant:"small",value:aa,disabled:ra,pattern:pa,onChange:ha,showValidationTooltip:!1,validationOn:"blur"}),na&&jsxRuntimeExports.jsx(AlphaInput,{type:"text",variant:"small",value:ca,disabled:ra,pattern:ua,onChange:da,validationOn:"blur",showValidationTooltip:!1})]})},ColorInput=dt$1(StyledColorInput).withConfig({displayName:"ColorInput",componentId:"sc-du3e6o-2"})(["display:flex;justify-content:space-between;flex:1;","{margin-right:9px;flex:1;input{padding:8px 6px;}}","{flex:0.7;input{padding:8px 6px;}}"],HexInput,AlphaInput),presetColors=["transparent","#EE0606","#FA8702","#EED306","#06EE68","#06B0EE","#0644EE","#9506EE","#EE0668","#007745","#5200A3","#A20089","#000000","#343434","#626262","#9A9A9A","#EBEBEB","#FFFFFF"],PresetsWrapper=dt$1.div.withConfig({displayName:"Presets__PresetsWrapper",componentId:"sc-1ttharm-0"})([""]),StyledPresets=({className:ea})=>{const{setColorState:na,setActiveColor:ra,palletStorageKey:oa="dpColorPallets",allowedType:aa}=useGetColorData(),sa=reactExports.useMemo(()=>{const ha=localStorage.getItem(oa),ga=ha?JSON.parse(ha):[];return uniq(aa==="solid"?ga.filter(fa=>!fa.includes("gradient")):ga)},[oa,aa]),{t:la}=useTranslation(),ca=reactExports.useCallback(ha=>{ra(getColorState(ha))},[ra]),ua=reactExports.useCallback(ha=>{na(ha)},[na]),da=ha=>jsxRuntimeExports.jsx(ColorButton,{size:"small",disablePointer:!0,value:ha,onClick:()=>ca(ha)},ha),pa=ha=>jsxRuntimeExports.jsx(ColorButton,{size:"small",disablePointer:!0,value:ha,onClick:()=>ua(ha)},ha);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(PresetsWrapper,{children:presetColors.map(da)}),sa.length?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Label$6,{children:la("Recent colors")}),jsxRuntimeExports.jsx(PresetsWrapper,{children:sa.map(pa)})]}):null]})},Presets$1=dt$1(StyledPresets).withConfig({displayName:"Presets",componentId:"sc-1ttharm-1"})(["","{display:flex;flex-flow:row wrap;gap:5px;align-items:center;}","{margin-top:5px;}"],PresetsWrapper,Label$6),generateSolidColorStr=ea=>{const{rgb:na,hex:ra}=ea;return ra==="transparent"||na.a===0?"transparent":na.a<1?`rgba(${na.r}, ${na.g}, ${na.b}, ${na.a})`:ra.toUpperCase()},generateLinearGradientColorStr=ea=>{const{steps:na,orientation:ra,repeat:oa}=ea,{value:aa="0"}=ra;return`${oa?"repeating-":""}linear-gradient(${aa}deg, ${na.map(sa=>`${generateSolidColorStr(sa.data)} ${withUnit$2(sa.position)}`).join(", ")})`},generateRadialGradientColorStr=ea=>{const{steps:na,orientation:ra,repeat:oa}=ea,{value:aa="circle",style:{value:sa="center"}={}}=ra;return`${oa?"repeating-":""}radial-gradient(${aa} at ${sa}, ${na.map(la=>`${generateSolidColorStr(la.data)} ${withUnit$2(la.position)}`).join(", ")})`},generateColorStateToStr=ea=>{const{type:na,activeColor:ra}=ea;switch(na){case"solid":return generateSolidColorStr(ra);case"linear-gradient":return generateLinearGradientColorStr(ea);case"radial-gradient":return generateRadialGradientColorStr(ea);default:return generateSolidColorStr(ra)}},CANVAS_WIDTH=130,CANVAS_HEIGHT=14,HANDLER_WIDTH=11,TransparentBackground=dt$1.div.withConfig({displayName:"GradientBar__TransparentBackground",componentId:"sc-qryzd1-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(45deg,#b3b3b3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#b3b3b3 75%),linear-gradient(45deg,transparent 75%,#b3b3b3 75%),linear-gradient(45deg,#b3b3b3 25%,#fff 25%);background-size:12px 12px;background-position:0 0,0 0,-6px -6px,6px 6px;"]),GradientBar=dt$1.div.withConfig({displayName:"GradientBar",componentId:"sc-qryzd1-1"})([""]),StyledGradientBar=({className:ea,...na})=>{const{state:ra,setActiveStep:oa,addStep:aa,setStepPosition:sa,deleteCurrentStep:la,sortSteps:ca}=useGetColorData(),{steps:ua,activeColorIndex:da}=ra,pa=reactExports.useRef(null),[ha,ga]=reactExports.useState(!1),fa=reactExports.useMemo(()=>ua.length>2,[ua]);reactExports.useLayoutEffect(()=>{if(pa.current){const Sa=pa.current.getContext("2d");Sa.clearRect(0,0,CANVAS_WIDTH,CANVAS_HEIGHT);const wa=Sa.createLinearGradient(0,0,CANVAS_WIDTH,0);ua.forEach(ba=>{wa.addColorStop(ba.position.value/100,generateSolidColorStr(ba.data))}),Sa.fillStyle=wa,Sa.fillRect(0,0,CANVAS_WIDTH,CANVAS_HEIGHT)}},[ua]);const ma=reactExports.useCallback(Sa=>{oa(Sa),ga(!0)},[oa]),va=reactExports.useCallback(Sa=>{if(!pa.current)return;let wa=calcStepPosition(Sa.clientX,pa.current,0,CANVAS_WIDTH-HANDLER_WIDTH);wa=Math.ceil(wa/(CANVAS_WIDTH-HANDLER_WIDTH)*100);const ba=pa.current.getContext("2d").getImageData(wa,0,1,1);aa({value:wa,unit:"%"},getColorState(`rgb(${ba.data[0]}, ${ba.data[1]}, ${ba.data[2]})`))},[aa]),xa=reactExports.useCallback(Sa=>{if(ha&&pa.current){let wa=calcStepPosition(Sa.clientX,pa.current,0,CANVAS_WIDTH-HANDLER_WIDTH);wa=Math.ceil(wa/(CANVAS_WIDTH-HANDLER_WIDTH)*100),sa({value:wa,unit:"%"}),ca()}},[ha,sa,ca]),ya=reactExports.useCallback(()=>{ga(!1)},[]),Aa=reactExports.useCallback(()=>{la()},[la]);reactExports.useEffect(()=>(window.addEventListener("mousemove",xa),window.addEventListener("mouseup",ya),()=>{window.removeEventListener("mousemove",xa),window.removeEventListener("mouseup",ya)}),[xa,ya]);const Ca=(Sa,wa)=>{const{position:ba}=Sa,Ea=ba.value/100*(CANVAS_WIDTH-HANDLER_WIDTH);return jsxRuntimeExports.jsx(Pointer$4,{style:{left:`${Ea}px`},selected:da===wa,onMouseDown:()=>ma(wa)},`${Ea}${wa}`)};return jsxRuntimeExports.jsxs("div",{className:`${ea} ${ha?"depicter-is-dragging":""}`,...na,children:[jsxRuntimeExports.jsxs(GradientBar,{children:[jsxRuntimeExports.jsx(TransparentBackground,{}),jsxRuntimeExports.jsx("canvas",{ref:pa,onMouseDown:va}),ua.map(Ca)]}),jsxRuntimeExports.jsx(IconButton,{disabled:!fa,icon:jsxRuntimeExports.jsx(SvgSmallTrash,{}),onClick:Aa})]})},GradientBar$1=dt$1(StyledGradientBar).withConfig({displayName:"GradientBar",componentId:"sc-qryzd1-2"})(["display:flex;align-items:center;justify-content:space-between;width:100%;","{display:inline-block;position:relative;width:130px;height:12px;border-radius:4px;overflow:hidden;cursor:copy;}&.depicter-is-dragging ",",&.depicter-is-dragging ","{cursor:grab;}","{display:inline-flex;padding:0;}canvas{position:absolute;top:0;left:0;}","{position:absolute;top:0;}"],GradientBar,GradientBar,Pointer$4,IconButton,Pointer$4),radialGradientLocations=[{value:"center",label:"Center"},{value:"top",label:"Top"},{value:"left",label:"Left"},{value:"right",label:"Right"},{value:"bottom",label:"Bottom"}],StyledLocation=ea=>{const{t:na}=useTranslation(),{state:{orientation:ra},setRadialOrigin:oa}=useGetColorData(),aa=reactExports.useMemo(()=>ra?.style?.value||"center",[ra]),sa=reactExports.useCallback(la=>{oa(la)},[oa]);return jsxRuntimeExports.jsxs("div",{...ea,children:[jsxRuntimeExports.jsx(Label$6,{children:na("Location")}),jsxRuntimeExports.jsx(Select$1,{size:"small",options:radialGradientLocations,onChange:sa,value:aa})]})},Location=dt$1(StyledLocation).withConfig({displayName:"Location",componentId:"sc-fnf7vh-0"})(["width:100%;","{width:100%;}"],Select$1),StyledRepeat=ea=>{const{t:na}=useTranslation(),{state:{repeat:ra},setRepeat:oa}=useGetColorData(),aa=reactExports.useCallback(sa=>{oa(sa)},[oa]);return jsxRuntimeExports.jsxs("div",{...ea,children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:!!ra,label:na("Repeat"),onChange:aa}),jsxRuntimeExports.jsx(Divider,{})]})},theme$3o=withTheme(scheme$1n),Repeat=dt$1(StyledRepeat).withConfig({displayName:"Repeat",componentId:"sc-1vmrub9-0"})(["width:100%;","{margin-top:10px;margin-left:-10px;margin-right:-10px;width:calc(100% + 20px);}","{display:flex;align-items:center;}",""],Divider,SwitchBox$1,theme$3o.colors(ea=>lt$1(["","{background-color:",";}"],Divider,ea.repeat.divider))),defaultColors$1P={background:"#D7D7D7",trackBar:"#4980F5",pointer:"#4980F5",pointerBorder:"#363636",disabled:{background:"#444444",trackBar:"transparent",pointer:"#444444"}},colors$1P={dark:defaultColors$1P},defaultSizing$1z={height:"4px",border:"15px",pointerSize:"12px"},sizes$1P={default:defaultSizing$1z},scheme$1l=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1P,sizes:sizes$1P},Symbol.toStringTag,{value:"Module"})),Pointer$3=dt$1.div.withConfig({displayName:"Slider__Pointer",componentId:"sc-mfe5gf-0"})([""]),Tracker=dt$1.div.withConfig({displayName:"Slider__Tracker",componentId:"sc-mfe5gf-1"})([""]),TrackBar=dt$1.div.withConfig({displayName:"Slider__TrackBar",componentId:"sc-mfe5gf-2"})([""]),Slider=ea=>{const{className:na,min:ra=0,max:oa=100,floatRange:aa=1,value:sa=0,disabled:la,multiply:ca=1,onChange:ua,onChangeValueFilter:da,valueFilter:pa}=ea,ha=reactExports.useRef(null),ga=isIndeterminate(sa),fa=ra<0,ma=ca*reactExports.useMemo(()=>ga?0:pa?pa(sa):sa,[sa,ga,pa]),va=reactExports.useCallback(ba=>{ba&&assignRef$1(ba,ha)},[]),xa=reactExports.useCallback(ba=>{if(!ha.current)return;const Ea=ha.current.getBoundingClientRect(),$a=Ea.width,Ma=ba-Ea.left,Ia=Math.min(Math.max(Ma/$a,0),1),Oa=ra+(oa-ra)*Ia,Da=limitFloatRange$2(Oa,aa);ua?.((da?.(Da)||Da)/ca)},[ra,oa,aa,ua,da,ca]),ya=reactExports.useCallback(ba=>{xa(ba.clientX)},[xa]),Aa=reactExports.useCallback(()=>{document.removeEventListener("mousemove",ya),document.removeEventListener("mouseup",Aa)},[ya]),Ca=reactExports.useCallback(ba=>{la||(ba.preventDefault(),xa(ba.clientX),document.addEventListener("mousemove",ya),document.addEventListener("mouseup",Aa))},[la,Aa,ya,xa]),Sa=reactExports.useMemo(()=>({left:`${Math.max(fa?-100:0,Math.min(100,(ma-ra)/(oa-ra)*100))}%`}),[fa,ma,ra,oa]),wa=reactExports.useMemo(()=>{const ba=Math.min(100,(ma-ra)/(oa-ra)*100);if(!fa)return{width:`${ba}%`};const Ea=-ra/(oa-ra)*100;return ba<=Ea?{left:`${ba}%`,right:`${100-Ea}%`}:{left:`${Ea}%`,width:`${ba-Ea}%`}},[ma,ra,oa,fa]);return jsxRuntimeExports.jsx("div",{className:na,ref:va,onMouseDown:Ca,children:jsxRuntimeExports.jsxs(Tracker,{children:[jsxRuntimeExports.jsx(Pointer$3,{style:Sa}),jsxRuntimeExports.jsx(TrackBar,{style:wa})]})})},theme$3n=withTheme(scheme$1l),Slider$1=dt$1(Slider).withConfig({displayName:"Slider",componentId:"sc-mfe5gf-3"})(["position:relative;width:100%;cursor:",";","{position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;&:after{content:'';position:absolute;top:50%;left:50%;width:3px;height:3px;transform:translate(-50%,-50%);border-radius:50%;}z-index:4;}","{position:relative;width:100%;height:100%;}","{height:100%;position:absolute;top:0;left:0;z-index:3;}&:hover{","{&:after{width:5px;height:5px;}}}"," ",""],ea=>ea.disabled?"initial":"pointer",Pointer$3,Tracker,TrackBar,Pointer$3,theme$3n.colors((ea,{disabled:na})=>lt$1(["background:",";","{background-color:",";box-shadow:0 0 0 2px ",";&:after{background:",";}}","{background:",";}",""],ea.background,Pointer$3,ea.pointer,ea.pointerBorder,ea.pointerBorder,TrackBar,ea.trackBar,na&&lt$1(["background-color:",";","{background-color:",";}","{background:",";}"],ea.disabled.background,Pointer$3,ea.disabled.pointer,TrackBar,ea.disabled.trackBar))),theme$3n.sizes(ea=>lt$1(["height:",";border-radius:",";padding-right:",";","{width:",";height:",";}"],ea.height,ea.border,ea.pointerSize,Pointer$3,ea.pointerSize,ea.pointerSize))),SliderWithUnit=({className:ea,value:na,numberProps:ra,onChange:oa,multiply:aa,...sa})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Slider$1,{...sa,multiply:aa,value:na,onChange:oa}),jsxRuntimeExports.jsx(Number$2,{...ra,disabled:sa.disabled,value:na,multiply:aa,onChange:la=>{oa?.(la)},floatRange:-1,valueType:"number"})]}),SliderWithNumber=dt$1(SliderWithUnit).withConfig({displayName:"SliderWithNumber",componentId:"sc-hys1oj-0"})(["display:flex;align-items:center;margin-top:-8px;","{flex:1;margin-right:10px;}","{flex:0.4;}"],Slider$1,Number$2),StyledAngle=ea=>{const{t:na}=useTranslation(),{state:{orientation:ra},setAngle:oa}=useGetColorData(),aa=reactExports.useMemo(()=>parseInt(ra.value,10)||0,[ra]);return jsxRuntimeExports.jsxs("div",{...ea,children:[jsxRuntimeExports.jsx(Label$6,{children:na("Angle")}),jsxRuntimeExports.jsx(SliderWithNumber,{min:-360,max:360,value:aa,numberProps:{valueType:"number",units:"°"},onChange:oa})]})},Angle=dt$1(StyledAngle).withConfig({displayName:"Angle",componentId:"sc-1du0zh7-0"})(["display:flex;flex-direction:column;width:100%;","{margin-bottom:8px;}","{margin-top:-13px;","{flex:0.85;}}"],Label$6,SliderWithNumber,Number$2),SvgFlipHorizontal=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:15,viewBox:"0 0 14 15",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3782,1908v-2h1v2Zm2-7,5-4v8Zm-2,4v-2h1v2Zm-6-8,5,4-5,4Zm1,5.92,2.4-1.92-2.4-1.919Zm5-.92v-2h1v2Zm0-3v-2h1v2Zm0-3v-2h1v2Z",transform:"translate(-3775.5 -1893.5)"})),SvgFlipVertical=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:14,viewBox:"0 0 15 14",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3779,1907l4-5,4,5Zm9-6v-1h2v1Zm-3,0v-1h2v1Zm-3,0v-1h2v1Zm-3,0v-1h2v1Zm-3,0v-1h2v1Zm3-7h8l-4,5Zm4,3.4,1.92-2.4h-3.839Z",transform:"translate(-3775.5 -1893.5)"})),ReverseSteps=ea=>{const{reverseSteps:na}=useGetColorData(),ra=reactExports.useCallback(()=>{na()},[na]);return jsxRuntimeExports.jsx(BaseButton$1,{...ea,onClick:ra,icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgFlipHorizontal})})},theme$3m=withTheme(scheme$1n),ReverseSteps$1=dt$1(ReverseSteps).withConfig({displayName:"ReverseSteps",componentId:"sc-g1010i-0"})(["border:none;cursor:pointer;&:hover{transition:all 150ms ease-out;svg{transition:all 150ms ease-out;}}"," ",";"],theme$3m.colors(ea=>lt$1(["background-color:",";svg{fill:",";}&:hover{svg{fill:",";}}"],ea.reverseSteps.background,ea.reverseSteps.icon,ea.reverseSteps.hover.icon)),theme$3m.sizes(ea=>lt$1(["border-radius:",";padding:",";"],ea.reverseSteps.border,ea.reverseSteps.padding))),ColorPickerContent=ea=>{const{state:{type:na,isGradient:ra},allowedType:oa}=useGetColorData();return jsxRuntimeExports.jsxs("div",{...ea,children:[Array.isArray(oa)&&oa.length>1&&jsxRuntimeExports.jsx(ColorTypes$1,{}),ra&&jsxRuntimeExports.jsx(ReverseSteps$1,{}),ra&&jsxRuntimeExports.jsx(GradientBar$1,{}),jsxRuntimeExports.jsx(Saturation,{}),jsxRuntimeExports.jsx(Hue,{}),jsxRuntimeExports.jsx(Alpha,{}),isEyeDropperSupport()&&jsxRuntimeExports.jsx(EyeDropper,{}),jsxRuntimeExports.jsx(ColorInput,{showHex:!0,showAlpha:!0}),ra&&na==="linear-gradient"&&jsxRuntimeExports.jsx(Angle,{}),ra&&na==="radial-gradient"&&jsxRuntimeExports.jsx(Location,{}),ra&&jsxRuntimeExports.jsx(Repeat,{}),jsxRuntimeExports.jsx(Presets$1,{})]})},theme$3l=withTheme(scheme$1n),ColorPickerContent$1=dt$1(ColorPickerContent).withConfig({displayName:"ColorPickerContent",componentId:"sc-1q4wmr8-0"})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;",",",",",",",",",",",",",",",",",",",",","{margin-bottom:10px;}","{margin-right:5px;}"," ",""],ColorTypes$1,Saturation,Hue,Alpha,ColorInput,EyeDropper,GradientBar$1,Location,Repeat,Angle,ReverseSteps$1,EyeDropper,theme$3l.colors(ea=>lt$1(["background-color:",";border:1px solid ",";box-shadow:2px 10px 25px ",";"],ea.wrapper.background,ea.wrapper.border,ea.wrapper.shadow)),theme$3l.sizes(ea=>lt$1(["width:",";padding:",";border-radius:",";"],ea.wrapper.width,ea.wrapper.padding,ea.wrapper.border))),OuterColorInput=dt$1(ColorInput).withConfig({displayName:"ColorPickerManager__OuterColorInput",componentId:"sc-nh9ovc-0"})([""]),ColorPickerManager=ea=>{const{className:na,disabled:ra,inViewportOptions:oa={xPlacement:"insideLeft",yPlacement:"bottom",fallbackXPlacement:"insideRight",space:{top:-5,right:0,bottom:-5,left:0}},showAlpha:aa,showHex:sa,popoverContainer:la}=ea,[ca,ua]=reactExports.useState(!1),{palletStorageKey:da,value:pa,state:{isGradient:ha,indeterminate:ga}}=useGetColorData(),fa=reactExports.useCallback(Aa=>{const Ca=localStorage.getItem(da),Sa=Ca?JSON.parse(Ca):[];localStorage.setItem(da,JSON.stringify(uniq([Aa,...Sa.slice(0,11)])))},[da]),ma=reactExports.useCallback(()=>{ca&&fa(pa),ua(!ca)},[ca,pa,fa]),va=reactExports.useCallback(()=>{ca&&fa(pa),ua(!1)},[ca,pa,fa]),xa=reactExports.useMemo(()=>jsxRuntimeExports.jsx(ColorButton,{value:pa,onClick:ma,disabled:ra,indeterminate:ga}),[pa,ra,ma,ga]),ya=reactExports.useMemo(()=>la?document.querySelector(la):void 0,[la]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Popover$3,{handler:xa,open:ca,onOutsideClick:va,inViewportOptions:oa,viewportContainer:ya,children:jsxRuntimeExports.jsx(ColorPickerContent$1,{})}),!ha&&jsxRuntimeExports.jsx(OuterColorInput,{disabled:ra,showHex:sa,showAlpha:aa})]})},ColorPickerComponent=dt$1(ColorPickerManager).withConfig({displayName:"ColorPickerManager",componentId:"sc-nh9ovc-1"})(["display:flex;flex-flow:row wrap;align-items:center;","{width:auto;padding:0;}","{flex:0.7;}",""],PopoverWrapper$1,OuterColorInput,ea=>ea.showHex&&lt$1(["> ","{margin-right:10px;}"],Popover$3)),ColorPickerProvider=({children:ea,value:na})=>jsxRuntimeExports.jsx(ColorPickerContext.Provider,{value:na,children:ea}),useColorPickerState=(ea,na)=>{const{palletStorageKey:ra,allowedType:oa,onChange:aa}=na,sa=reactExports.useMemo(()=>isIndeterminate(ea),[ea]),[la,ca]=reactExports.useState(parseColor(ea,sa));reactExports.useLayoutEffect(()=>{ca(Ea=>!sa&&ea!==generateColorStateToStr(Ea)?parseColor(ea,sa):{...Ea,indeterminate:sa})},[ea,sa]),reactExports.useLayoutEffect(()=>{la.indeterminate||aa?.(generateColorStateToStr(la))},[la]);const ua=reactExports.useCallback(Ea=>{ca(parseColor(Ea,!1))},[]),da=reactExports.useCallback(()=>{ca(Ea=>({type:"solid",steps:[Ea.steps[0]],activeColor:Ea.steps[0].data,activeColorIndex:0,indeterminate:!1}))},[]),pa=reactExports.useCallback(()=>{ca(Ea=>{const $a=Ea.steps.length>1?Ea.steps:[Ea.steps[0],{data:getColorState("#000"),position:{value:100,unit:"%"}}];return{...Ea,type:"linear-gradient",steps:$a,activeColor:$a[0].data,activeColorIndex:0,orientation:{value:"90",type:"angular"},isGradient:!0,indeterminate:!1}})},[]),ha=reactExports.useCallback(()=>{ca(Ea=>{const $a=Ea.steps.length>1?Ea.steps:[Ea.steps[0],{data:getColorState("#000"),position:{value:100,unit:"%"}}];return{...Ea,type:"radial-gradient",steps:$a,activeColor:$a[0].data,activeColorIndex:0,orientation:{value:"circle",type:"shape",style:{type:"position-keyword",value:"center"}},isGradient:!0,indeterminate:!1}})},[]),ga=reactExports.useCallback(Ea=>{switch(Ea){case"solid":da();break;case"linear-gradient":pa();break;case"radial-gradient":ha();break;default:da();break}},[pa,da,ha]),fa=reactExports.useCallback(Ea=>{ca($a=>{const{steps:Ma,activeColorIndex:Ia}=$a,Oa=Ma.map((Da,Ta)=>Ta===Ia?{...Da,data:Ea}:Da);return{...$a,activeColor:Ea,steps:Oa,indeterminate:!1}})},[]),ma=reactExports.useCallback(Ea=>{ca($a=>$a.activeColorIndex===Ea?$a:{...$a,activeColor:$a.steps[Ea].data,activeColorIndex:Ea,indeterminate:!1})},[]),va=reactExports.useCallback((Ea,$a)=>{ca(Ma=>{const Ia=sortBy([...Ma.steps,{data:$a,position:Ea}],Da=>Da.position.value),Oa=Ia.findIndex(Da=>isEqual$1(Da.data,$a));return{...Ma,steps:Ia,activeColor:Ia[Oa].data,activeColorIndex:Oa,indeterminate:!1}})},[]),xa=reactExports.useCallback(Ea=>{ca($a=>{const Ma=$a.steps.map((Ia,Oa)=>Oa===$a.activeColorIndex?{...Ia,position:Ea}:Ia);return{...$a,steps:Ma,indeterminate:!1}})},[]),ya=reactExports.useCallback(()=>{ca(Ea=>{const $a=Ea.steps.filter((Ma,Ia)=>Ia!==Ea.activeColorIndex);return{...Ea,steps:$a,activeColor:$a[$a.length-1].data,activeColorIndex:$a.length-1,indeterminate:!1}})},[]),Aa=reactExports.useCallback(Ea=>{ca($a=>{const{orientation:Ma}=$a;return{...$a,orientation:{...Ma,style:{...Ma.style,value:Ea}},indeterminate:!1}})},[]),Ca=reactExports.useCallback(Ea=>{ca($a=>({...$a,repeat:Ea,indeterminate:!1}))},[]),Sa=reactExports.useCallback(Ea=>{ca($a=>({...$a,orientation:{...$a.orientation,value:`${Ea}`},indeterminate:!1}))},[]),wa=reactExports.useCallback(()=>{ca(Ea=>{let $a=Ea.steps.map(Ia=>({...Ia,position:{value:100-Ia.position.value,unit:Ia.position.unit}}));$a=sortBy($a,Ia=>Ia.position.value);const Ma=$a.findIndex(Ia=>isEqual$1(Ia.data,Ea.activeColor));return{...Ea,steps:$a,activeColorIndex:Ma,activeColor:$a[Ma].data,indeterminate:!1}})},[]),ba=reactExports.useCallback(()=>{ca(Ea=>{const $a=sortBy(Ea.steps,Ia=>Ia.position.value),Ma=$a.findIndex(Ia=>isEqual$1(Ia.data,Ea.activeColor));return{...Ea,steps:$a,activeColorIndex:Ma,activeColor:$a[Ma].data,indeterminate:!1}})},[]);return{state:la,value:ea,palletStorageKey:ra,allowedType:oa,setColorState:ua,setType:ga,setActiveColor:fa,setActiveStep:ma,addStep:va,setStepPosition:xa,deleteCurrentStep:ya,setRadialOrigin:Aa,setRepeat:Ca,setAngle:Sa,reverseSteps:wa,sortSteps:ba}},ColorPicker$1=ea=>{const{value:na,palletStorageKey:ra="dpColorPallets",allowedType:oa=["solid","linear-gradient","radial-gradient"],onChange:aa,...sa}=ea,la=reactExports.useMemo(()=>({palletStorageKey:ra,allowedType:oa,onChange:aa}),[ra,oa,aa]),ca=useColorPickerState(na,la);return jsxRuntimeExports.jsx(ColorPickerProvider,{value:ca,children:jsxRuntimeExports.jsx(ColorPickerComponent,{...sa})})},leftDirMove={type:"move",easing:"easeInOutQuint",direction:"left",movement:{value:101,unit:"%"},fade:!1},rightDirMove={...leftDirMove,direction:"right"},topDirMove={...leftDirMove,direction:"top"},bottomDirMove={...leftDirMove,direction:"bottom"},scaleUp={type:"moveAndTransform",easing:"easeInOutQuint",direction:"custom",scale:1.4,fade:!1},scaleDown={type:"moveAndTransform",easing:"easeInOutQuint",direction:"custom",scale:.6,fade:!1},coverInPresets=[{value:"coverFromLeft",params:{...leftDirMove,presetId:"coverFromLeft"},label:i18next.t("Move from left")},{value:"coverFromRight",params:{...rightDirMove,presetId:"coverFromRight"},label:i18next.t("Move from right")},{value:"coverFromTop",params:{...topDirMove,presetId:"coverFromTop"},label:i18next.t("Move from top")},{value:"coverFromBottom",params:{...bottomDirMove,presetId:"coverFromBottom"},label:i18next.t("Move from bottom")}],coverOutPresets=[{value:"coverToLeft",params:{...leftDirMove,presetId:"coverToLeft"},label:i18next.t("Move to left")},{value:"coverToRight",params:{...rightDirMove,presetId:"coverToRight"},label:i18next.t("Move to right")},{value:"coverToTop",params:{...topDirMove,presetId:"coverToTop"},label:i18next.t("Move to top")},{value:"coverToBottom",params:{...bottomDirMove,presetId:"coverToBottom"},label:i18next.t("Move to bottom")}],contentPresets=[{value:"none",params:{type:"none",presetId:"none"},label:i18next.t("None")},{value:"contentFromLeft",params:{...leftDirMove,presetId:"contentFromLeft"},label:i18next.t("Move from left")},{value:"contentFromRight",params:{...rightDirMove,presetId:"contentFromRight"},label:i18next.t("Move from right")},{value:"contentFromTop",params:{...topDirMove,presetId:"contentFromTop"},label:i18next.t("Move from top")},{value:"contentFromBottom",params:{...bottomDirMove,presetId:"contentFromBottom"},label:i18next.t("Move from bottom")},{value:"contentScaleUp",params:{...scaleDown,presetId:"contentScaleUp"},label:i18next.t("Scale up")},{value:"contentScaleDown",params:{...scaleUp,presetId:"contentScaleDown"},label:i18next.t("Scale down")}],findPreset$1=(ea,na)=>na.find(ra=>ra.value===ea),getAnimationRevealOptionControls=(ea,na,ra)=>[{id:"animationRevealCoverColor",border:"bottom",optionControls:[[createOptionControl({id:"animationRevealCoverColorControl",label:i18next.t("Cover Color"),control:ColorPicker$1,controlProps:{showHex:!0},selector:ra(`${ea}.data.$bp.params.coverColor`),action:na(`${ea}.data.$bp.params.coverColor`)})]]},{id:"animationRevealCoverAnimationIn",label:i18next.t("Cover Animation In"),border:"bottom",optionControls:[[createOptionControl({id:"animationRevealAnimationInType",label:i18next.t("Animation type"),control:Select$1,controlProps:{options:coverInPresets},valueFilter:oa=>findPreset$1(oa?.presetId,coverInPresets)?.value,onChangeValueFilter:oa=>findPreset$1(oa,coverInPresets)?.params,selector:ra(`${ea}.data.$bp.params.coverInAnim`),action:na(`${ea}.data.$bp.params.coverInAnim`)})],[createOptionControl({id:"animationRevealAnimationInEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:ra(`${ea}.data.$bp.params.coverInAnim.easing`),action:na(`${ea}.data.$bp.params.coverInAnim.easing`)})]]},{id:"animationRevealCoverAnimationOut",label:i18next.t("Cover Animation Out"),border:"bottom",optionControls:[[createOptionControl({id:"animationRevealAnimationOutType",label:i18next.t("Animation type"),control:Select$1,controlProps:{options:coverOutPresets},valueFilter:oa=>findPreset$1(oa?.presetId,coverOutPresets)?.value,onChangeValueFilter:oa=>findPreset$1(oa,coverOutPresets)?.params,selector:ra(`${ea}.data.$bp.params.coverOutAnim`),action:na(`${ea}.data.$bp.params.coverOutAnim`)})],[createOptionControl({id:"animationRevealAnimationOutEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:ra(`${ea}.data.$bp.params.coverOutAnim.easing`),action:na(`${ea}.data.$bp.params.coverOutAnim.easing`)})]]},{id:"animationRevealContentAnimation",label:i18next.t("Content Animation"),border:"bottom",optionControls:[[createOptionControl({id:"animationRevealContentAnimationType",label:i18next.t("Animation type"),control:Select$1,controlProps:{options:contentPresets},valueFilter:oa=>findPreset$1(oa?.presetId,contentPresets)?.value,onChangeValueFilter:oa=>findPreset$1(oa,contentPresets)?.params,selector:ra(`${ea}.data.$bp.params.targetAnim`),action:na(`${ea}.data.$bp.params.targetAnim`)})],[createOptionControl({id:"animationRevealAnimationContentEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:ra(`${ea}.data.$bp.params.targetAnim.easing`),action:na(`${ea}.data.$bp.params.targetAnim.easing`)})]]}],revealDefaultParams$1={...moveAndTransformDefaultParams$1,coverColor:"#000000",coverInAnim:coverInPresets[0],coverOutAnim:coverOutPresets[0],targetAnim:contentPresets[0]},generateAnimationRevealOptions=(ea,na,ra)=>[...getAnimationRevealOptionControls(ea,na,ra),...excludeControls(getAnimationTimingOptionControls(ea,na,ra),["animationEase"]),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)],textSegmentationOptions=[{value:"letter",label:i18next.t("Letter")},{value:"word",label:i18next.t("Word")},{value:"line",label:i18next.t("Line")}],textSegmentationDirection=[{value:"left",label:i18next.t("Left to right")},{value:"right",label:i18next.t("Right to left")},{value:"shuffle",label:i18next.t("Shuffle")}],getAnimationTextOptionControls=(ea,na,ra)=>[{id:"animationTextSegmentationOptions",border:"bottom",label:i18next.t("Text Splitting"),optionControls:[[createOptionControl({id:"animationTextSegmentationType",label:i18next.t("Split text by"),control:Select$1,controlProps:{options:textSegmentationOptions},selector:ra(`${ea}.data.$bp.params.segmentBy`),action:na(`${ea}.data.$bp.params.segmentBy`)}),createOptionControl({id:"animationTextSegmentationDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:textSegmentationDirection},selector:ra(`${ea}.data.$bp.params.staggerDirection`),action:na(`${ea}.data.$bp.params.staggerDirection`)})]]},{id:"animationTextOverlappingOptions",border:"bottom",optionControls:[[createOptionControl({id:"animationTextMask",control:SwitchBox$1,controlProps:{label:i18next.t("Mask segments")},valueFilter:oa=>oa==="maskAndTransform",onChangeValueFilter:oa=>oa?"maskAndTransform":"moveAndTransform",selector:ra(`${ea}.data.$bp.params.segmentAnimType`),action:na(`${ea}.data.$bp.params.segmentAnimType`)})],[createOptionControl({id:"animationTextOverlap",label:i18next.t("Overlapping"),control:Number$2,controlProps:{units:"%",multiply:100},selector:ra(`${ea}.data.$bp.params.overlap`),action:na(`${ea}.data.$bp.params.overlap`),styles:{flex:.5}})]]}],textAnimationDefaultParams={...moveAndTransformDefaultParams$1,overlap:.03,segmentBy:"letter",staggerDirection:"left",segmentAnimType:"moveAndTransform"},generateAnimationTextOptions=(ea,na,ra)=>[...getAnimationTextOptionControls(ea,na,ra),...getAnimationMoveOptionControls(ea,na,ra),...getAnimationTransformOptionControls(ea,na,ra),...getAnimationTimingOptionControls(ea,na,ra),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)],revealTextAnimationDefaultParams={...revealDefaultParams$1,overlap:.03,segmentBy:"letter",staggerDirection:"left",segmentAnimType:"moveAndTransform"},generateAnimationRevealTextOptions=(ea,na,ra)=>[...excludeControls(getAnimationTextOptionControls(ea,na,ra),["animationTextMask"]),...getAnimationRevealOptionControls(ea,na,ra),...excludeControls(getAnimationTimingOptionControls(ea,na,ra),["animationEase"]),...getAnimationInteractionsOptionControls(ea,na,ra),...getAnimationPreviewOptionControls(ea,na,ra)];class AnimationWizardModule{elements;sortedElements;options;animations;phase;constructor(na={overlap:1,initialDelay:0,totalDuration:3e3,direction:"left-to-right"}){this.elements=[],this.sortedElements=[],this.options=na,this.phase="in",this.sort()}setOptions(na){this.options={...this.options,...na};const{totalDuration:ra,defaultElementsCount:oa,elementsCount:aa}=this.options,sa=oa&&aa?ra/oa*aa:ra;return this.options.totalDuration=sa,this}setAnimations(na){return this.animations=na,this}setPhase(na){return this.phase=na,this}setData(na){return this.elements=na,this.sortedElements=na,this}sort(){const{direction:na}=this.options;switch(na){case"left-to-right":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>ra.position.x,"depth"]);break;case"right-to-left":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>-ra.position.x,"depth"]);break;case"top-to-bottom":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>ra.position.y,"depth"]);break;case"bottom-to-top":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>-ra.position.y,"depth"]);break;case"top-left-to-bottom-right":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>ra.position.x+ra.position.y,"depth"]);break;case"bottom-right-to-top-left":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>-(ra.position.x+ra.position.y),"depth"]);break;case"top-right-to-bottom-left":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>-(ra.position.x-ra.position.y),"depth"]);break;case"bottom-left-to-top-right":this.sortedElements=lodashExports.sortBy(this.elements,[ra=>ra.position.x-ra.position.y,"depth"]);break;default:this.sortedElements=lodashExports.sortBy(this.elements,[ra=>ra.position.x,"depth"])}return this}getElements(){return this.sortedElements}getAnimateParams(){if(!this.animations)return console.error("No animations available for elements."),{};const na={},ra=this.sortedElements.length,{totalDuration:oa,overlap:aa=.5,initialDelay:sa=0}=this.options,la=Math.round((oa-sa)/(1+(ra-1)*aa)),ca=[];let ua=sa;for(let da=0;da<ra;da+=1)ca.push({duration:la,delay:ua}),ua+=Math.round(la*aa);return this.sortedElements.forEach((da,pa)=>{const{id:ha,type:ga}=da,{type:fa,params:ma}=this.animations[ga]||this.animations.default;na[ha]={type:fa,params:{...ma,duration:ca[pa].duration,delay:ca[pa].delay},phase:this.phase,appliedBy:"wizard"}}),na}getOptions(){return{...this.options,type:"wizard"}}}const PreviewAnimationWizard=ea=>{const{className:na,value:ra}=ea,{phase:oa,params:{animations:aa,...sa}}=ra,la=useSelector(getActiveSectionAnimationWizardData(oa)),ca=useDispatch(),ua=reactExports.useRef(sa),da=reactExports.useRef(""),pa=useSelector(getActiveBreakpoint),ha=reactExports.useMemo(()=>new AnimationWizardModule().setOptions(sa).setData(Object.values(la)).setAnimations(aa).sort(),[la,aa,sa]),ga=reactExports.useRef(null),fa=reactExports.useRef(null),ma=reactExports.useCallback(xa=>{ca(removeProvisionalAnimation()),xa&&(anime.remove(ga.current),ga.current&&(ga.current.style.backgroundPosition="right bottom"),fa.current&&(clearInterval(fa.current),fa.current=null))},[ca]),va=reactExports.useCallback((xa=!0)=>{ma(!0);const ya=Object.entries(ha.getAnimateParams()).map(([Sa,wa])=>({target:Sa,data:wa,loop:!1})),Aa=ya[ya.length-1],Ca=Aa.data.params.duration+Aa.data.params.delay;anime({targets:ga.current,easing:"linear",duration:Ca,delay:0,backgroundPosition:["100% 100%","0% 100%"],loop:!0}),ca(setProvisionalAnimations(ya)),xa?fa.current=setInterval(()=>{ma(!1),ca(setProvisionalAnimations(ya))},Ca):setTimeout(()=>{ma(!0)},Ca)},[ma,ha,ca]);return reactExports.useEffect(()=>()=>{ma(!0)},[ma]),reactExports.useEffect(()=>{!isEqual$1(ra.params,ua.current)&&pa===da.current&&(va(!1),ua.current=ra.params),da.current=pa},[pa,ma,va,ra.params]),jsxRuntimeExports.jsx(OutlineButton$1,{className:na,onMouseEnter:va,onMouseLeave:()=>ma(!0),ref:ga,size:"small",children:i18next.t("Preview Animation")})},PreviewAnimation=dt$1(PreviewAnimationWizard).withConfig({displayName:"PreviewAnimation",componentId:"sc-xgyzpl-0"})(["width:100%;justify-content:center;background:linear-gradient(to right,rgba(73,128,245,1) 50%,transparent 50%);background-size:200% 100%;background-position:right bottom;text-transform:uppercase;&:hover{span{color:#fff !important;}background-color:transparent !important;}"]);i18next.use(Backend).use(initReactI18next).init({debug:!1,fallbackLng:"en",lng:"en",keySeparator:!1,nsSeparator:!1,interpolation:{escapeValue:!1},react:{useSuspense:!1},backend:{loadPath:`${browserEnv.pluginAPI}?action=depicter-document-localization`,customHeaders:{"X-DEPICTER-CSRF":browserEnv.csrfToken,"X-DEPICTER-CKEY":browserEnv.clientKey}}});const modalHandlers={confirm:(ea,na,ra,oa)=>{const{title:aa,content:sa,confirmLabel:la,cancelLabel:ca,icon:ua=WarningLargeIcon}=ea;return{title:aa,content:sa,icon:ua,buttons:[{label:la||i18next.t("Confirm"),action:"confirm",primary:!0},{label:ca||i18next.t("Cancel"),action:"cancel"}],onAction:da=>{da==="confirm"?na(!0):da==="cancel"&&(oa?na(!1):ra())},onClose:()=>ra()}},alert:(ea,na)=>{const{title:ra,content:oa,okLabel:aa}=ea;return{title:ra,content:oa,icon:AlertIcon,buttons:[{label:aa||i18next.t("Ok"),action:"confirm",primary:!0}],onAction:()=>na(!0),onClose:()=>na(!0)}},info:(ea,na)=>{const{title:ra,content:oa,okLabel:aa}=ea;return{title:ra,content:oa,icon:InfoLargeIcon,buttons:[{label:aa||i18next.t("Ok"),action:"confirm",primary:!0}],onAction:()=>na(!0),onClose:()=>na(!0)}},warning:(ea,na,ra)=>{const{title:oa,content:aa,okLabel:sa,cancelLabel:la}=ea;return{title:oa,content:aa,icon:WarningLargeIcon,buttons:[{label:sa||i18next.t("Ok"),action:"confirm",primary:!0},{label:la||i18next.t("Cancel"),action:"cancel"}],onAction:ca=>{ca==="confirm"?na(!0):ra()},onClose:()=>ra()}}},useOpenNotice=(ea,na=!1)=>{const{addToModalsStack:ra}=useModal();return reactExports.useCallback(oa=>new Promise((aa,sa)=>{const la=modalHandlers[ea];if(!la)return console.error(`No handler found for modal type: ${ea}`),sa();const ca=la(oa,aa,sa,na);return ra([{id:"notice",options:ca}]),!0}),[ra,na,ea])},useToast=()=>{const[ea,na]=reactExports.useState(null);return reactExports.useEffect(()=>{ea&&toast(jsxRuntimeExports.jsx(Flag$1,{...ea,children:ea.message}),{autoClose:1e4,pauseOnHover:!0})},[ea]),{addToast:na}},ApplyAnimationWizard=ea=>{const{className:na,value:ra}=ea,{phase:oa,params:{animations:aa,...sa}}=ra,la=useSelector(getActiveSectionAnimationWizardData(oa)),ca=useDispatch(),{addToast:ua}=useToast(),{t:da}=useTranslation(),pa=reactExports.useMemo(()=>new AnimationWizardModule().setPhase(oa).setOptions(sa).setData(Object.values(la)).setAnimations(aa).sort(),[la,aa,oa,sa]),ha=reactExports.useCallback(()=>ua({type:"success",title:da("Success"),message:da("Animations applied to elements successfully.")}),[ua,da]),ga=useOpenNotice("confirm"),fa=reactExports.useCallback(()=>{const ma=Object.entries(pa.getAnimateParams()),va=Object.values(la).some(Aa=>!Aa.canApply),xa=ma.map(([Aa])=>Aa),ya=ma.map(([,Aa])=>Aa);va?ga({title:da("Override Existing Animation"),content:da("Some of elements already has a custom animation. Applying this preset will replace the existing animation settings. Do you want to proceed?"),confirmLabel:da("Apply Preset"),cancelLabel:da("Keep Existing")}).then(Aa=>Aa?(ca(updateElementsByPath({ids:xa,path:`animation.${oa}.data.$bp`,values:ya})),ha(),!0):!1):(ca(updateElementsByPath({ids:xa,path:`animation.${oa}.data.$bp`,values:ya})),ha())},[la,pa,ca,ga,oa,ha,da]);return jsxRuntimeExports.jsx(SolidButton,{className:na,size:"small",onClick:fa,children:i18next.t("Apply Animation")})},ApplyAnimation=dt$1(ApplyAnimationWizard).withConfig({displayName:"ApplyAnimation",componentId:"sc-zbav2j-0"})(["width:100%;justify-content:center;text-transform:uppercase;"]),getAnimationWizardOptionControls=(ea,na,ra)=>[{id:"animationWizardOptions",border:"bottom",optionControls:[[createOptionControl({id:"animationWizardDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:[{label:i18next.t("Left to Right"),value:"left-to-right"},{label:i18next.t("Right to Left"),value:"right-to-left"},{label:i18next.t("Top to Bottom"),value:"top-to-bottom"},{label:i18next.t("Bottom to Top"),value:"bottom-to-top"},{label:i18next.t("Top Left to Bottom Right"),value:"top-left-to-bottom-right"},{label:i18next.t("Bottom Right to Top Left"),value:"bottom-right-to-top-left"},{label:i18next.t("Top Right to Bottom Left"),value:"top-right-to-bottom-left"},{label:i18next.t("Bottom Left to Top Right"),value:"bottom-left-to-top-right"}]},selector:ra(`${ea}.data.$bp.params.direction`),action:na(`${ea}.data.$bp.params.direction`)})],[createOptionControl({id:"animationWizardOverlap",label:i18next.t("Overlapping"),control:Number$2,controlProps:{units:"%",multiply:100},selector:ra(`${ea}.data.$bp.params.overlap`),action:na(`${ea}.data.$bp.params.overlap`)}),createOptionControl({id:"animationDuration",label:i18next.t("Total duration"),control:Number$2,controlProps:{units:"ms"},selector:ra(`${ea}.data.$bp.params.totalDuration`),action:na(`${ea}.data.$bp.params.totalDuration`)})],[createOptionControl({id:"animationDelay",label:i18next.t("Initial delay"),control:Number$2,controlProps:{units:"ms"},selector:ra(`${ea}.data.$bp.params.initialDelay`),action:na(`${ea}.data.$bp.params.initialDelay`),styles:{flex:"0 0 112px"}})]]},{id:"animationWizardPreviewOptions",optionControls:[[createOptionControl({id:"animationWizardPreviewButton",control:PreviewAnimation,equalCheck:!1,selector:ra(`${ea}.data.$bp`)})],[createOptionControl({id:"animationWizardApplyButton",control:ApplyAnimation,equalCheck:!1,selector:ra(`${ea}.data.$bp`)})]]}],generateAnimationWizardOptions=(ea,na,ra)=>[...getAnimationWizardOptionControls(ea,na,ra)],animatorsConfig=new Map;animatorsConfig.set("move",{options:generateAnimationMoveOptions,defaultParams:moveDefaultParams$1,categoryResolver:moveAnimDataToCategory});animatorsConfig.set("moveAndTransform",{options:generateAnimationMoveAndTransformOptions,defaultParams:moveAndTransformDefaultParams$1,categoryResolver:moveAndTransformAnimDataToCategory});animatorsConfig.set("mask",{options:generateAnimationMoveOptions,defaultParams:moveDefaultParams$1,categoryResolver:()=>"slide"});animatorsConfig.set("maskAndTransform",{options:generateAnimationMoveAndTransformOptions,defaultParams:moveAndTransformDefaultParams$1,categoryResolver:()=>"custom-transform"});animatorsConfig.set("clip",{options:generateAnimationClipOptions,defaultParams:clipDefaultParams$5,categoryResolver:clipAnimDataToCategory});animatorsConfig.set("clipAndTransform",{options:generateAnimationClipOptions,defaultParams:clipDefaultParams$5,categoryResolver:clipAnimDataToCategory});animatorsConfig.set("text",{options:generateAnimationTextOptions,defaultParams:textAnimationDefaultParams,categoryResolver:()=>"text-animation"});animatorsConfig.set("revealText",{options:generateAnimationRevealTextOptions,defaultParams:revealTextAnimationDefaultParams,categoryResolver:()=>"text-reveal"});animatorsConfig.set("reveal",{options:generateAnimationRevealOptions,defaultParams:revealDefaultParams$1,categoryResolver:()=>"reveal"});animatorsConfig.set("wizard",{options:generateAnimationWizardOptions,defaultParams:{},categoryResolver:()=>"wizard"});const configureAccessor=({breakpointSelector:ea,breakpoints:na})=>{let ra="";const oa=(la,ca,ua)=>{const da=ca.split(".").reduce(({value:pa,respPath:ha},ga)=>pa==null?{value:void 0,respPath:`${ha}.${ga}`}:pa[ga]===void 0&&intersectArrays(Object.keys(pa),na).length?{value:getResponsiveValue(pa,ua||ra)[ga],respPath:`${ha}.$bp.${ga}`}:isPlainObject$5(pa[ga])&&intersectArrays(Object.keys(pa[ga]),na).length?{value:getResponsiveValue(pa[ga],ua||ra),respPath:`${ha}.${ga}.$bp`}:{value:pa[ga],respPath:`${ha}.${ga}`},{value:la,respPath:""});return da.respPath.charAt(0)==="."&&(da.respPath=da.respPath.slice(1,da.respPath.length)),da};return{get:(la,ca,ua)=>ca.includes("$bp")?get$5(la,ca.replace("$bp",ua||ra)):ca.includes("$resp")?get$5(la,ca.replace(".$resp","")):oa(la,ca,ua).value,set:(la,ca,ua,da,pa)=>{const ha=ca.replace("$bp",pa||ra).replace(".$resp","");set$4(la,ha.split("."),da&&isPlainObject$5(ua)?{...get$5(la,ha),...ua}:ua)},getRespPathAndValue:oa,middleware:la=>ca=>ua=>{const da=ca(ua);return ra=ea(la.getState()),da}}},StoreAccessor=configureAccessor({breakpoints:breakpointKeys,breakpointSelector:ea=>ea.document.env.activeBreakpoint}),addToForegroundElement=ea=>(na,ra)=>{const oa=ra(),{parent:aa,type:sa,children:la}=getElementData(ea)(oa);reactDomExports.unstable_batchedUpdates(()=>{sa==="group"&&la?.length&&na(updateElements({ids:la,values:{section:"foreground"}})),na(moveElement({id:ea,target:"foreground",current:aa}))})},removeFromForegroundElement=ea=>(na,ra)=>{const oa=ra(),aa=getActiveSection(oa),{type:sa,children:la}=getElementData(ea)(oa);reactDomExports.unstable_batchedUpdates(()=>{sa==="group"&&la?.length&&na(updateElements({ids:la,values:{section:aa}})),na(moveElement({id:ea,current:"foreground",target:aa}))})},getDocumentOptions=ea=>ea.document.options,getSectionLayout=ea=>ea.document.options.sectionLayout,getDocumentWrapperSize=ea=>ea.document.options.wrapperSize,getDocumentWrapperSideSpace=ea=>ea.document.options.wrapperSideSpace;createSelector([getDocumentOptions],ea=>ea?.general||{});createSelector([getDocumentOptions],ea=>ea?.navigation||{});createSelector([getDocumentOptions],ea=>ea.sectionTransition.options);const getSectionTransitionType=createSelector([getDocumentOptions],({sectionTransition:{type:ea}})=>ea),getNavigatorOptions=createSelector([getDocumentOptions],({navigator:ea})=>ea);createSelector([getDocumentOptions],ea=>ea?.loading||{});createSelector([getDocumentOptions],ea=>ea?.advanced||{});createSelector([getDocumentOptions],ea=>ea?.callbacks||[]);createSelector([getDocumentOptions],ea=>ea?.controls||[]);const getDocumentIntegrations=createSelector([getDocumentOptions],ea=>ea?.integrations||{}),getDocumentOptionsByPathAndPrefix=(ea,na)=>ra=>createSelector([getDocumentOptions],oa=>{const aa=`${ea?`${ea}.`:""}${ra}`,sa=DocType.configs.defaultDocumentOptions??defaultDocumentOptions,la=StoreAccessor.get(sa,aa,na),ca=StoreAccessor.get(oa,aa,na);return lodashExports.isPlainObject(la)&&lodashExports.isPlainObject(ca)?{...la,...ca}:ca??la}),calcSafeSize=(ea,na,ra=1,oa)=>{if(!oa)return{width:ea,height:na};const{width:aa,height:sa}=oa;if(ea<=aa&&na<=sa)return{width:ea,height:na};const la=ea/na,ca=aa/sa;return la>ca?{width:Math.round(aa*ra),height:Math.round(aa/la*ra)}:{width:Math.round(sa*la*ra),height:Math.round(sa*ra)}},useCalcSafeSize=(ea,na,ra=1)=>{const oa=useSelector(getActiveSectionBoundaries,shallowEqual$2);return calcSafeSize(ea,na,ra,oa)},commonElementInitialState={wrap:!0,locked:!1,visible:{default:!0}};function pointToElementPosition(ea){return{default:{x:{value:Math.round(ea.x),unit:"px"},y:{value:Math.round(ea.y),unit:"px"},origin:"tl"}}}function fillElementState(ea){const{parent:na,section:ra,position:oa,elementData:aa}=ea,sa={section:ra,parent:na,...deepmerge(commonElementInitialState,aa),...deepmerge(getElementInitialState(aa.type)||{},aa)};if(oa&&!sa.position?sa.position=pointToElementPosition(oa):sa.position||(sa.position=pointToElementPosition({x:0,y:0})),sa.position.default.autoOrigin??=!0,sa.size){const la=getActiveSectionBoundaries(store.getState()),{width:ca,height:ua}=sa.size.default,da=calcSafeSize(ca!=="auto"&&ca?.value||0,ua!=="auto"&&ua?.value||0,.8,la);ca&&ca!=="auto"&&ca.unit==="px"&&ua&&ua!=="auto"&&ua.unit==="px"&&(sa.size={default:{width:{value:da.width,unit:"px"},height:{value:da.height,unit:"px"}}})}return sa}function getNewElementPayloadData(ea){const na=fillElementState(ea);return{parent:na.parent||ea.parent,generateId:!0,data:na}}const changeElementDepth=ea=>(na,ra)=>{const{id:oa,to:aa}=ea,sa=ra(),la=getSiblingsDepthArray(oa)(sa);let ca=la.slice();const ua=la.indexOf(oa);if(!(ua===-1||la.length===1)){switch(aa){case"front":ca=arrayMove$1(ca,ua,la.length-1);break;case"back":ca=arrayMove$1(ca,ua,0);break;case"forward":ua+1<=la.length&&(ca=arrayMove$1(ca,ua,ua+1));break;case"backward":ua-1>=0&&(ca=arrayMove$1(ca,ua,ua-1));break;default:throw new Error("the to value is not valid")}equalArray(ca,la)||reactDomExports.unstable_batchedUpdates(()=>{na(updateElements({ids:ca,values:ca.map((da,pa)=>({depth:pa+1}))})),na(addToHistory())})}},groupElements=ea=>(na,ra)=>{let oa=ra();const{parent:aa}=getElementData(ea.elements[0])(oa),sa=getActiveSection(oa),la=isForeground(aa)?sa:aa;let ca,ua,da;if(isSection(la)){const fa=getActiveSectionRelativeWrapperBoundaries(oa);ua=fa,da=moveBoundaries(fa,{x:0,y:0})}else{const{boundaries:fa}=getElementComputedValues(la)(oa);ua=fa,da=moveBoundaries(fa,{x:0,y:0}),ca=getElementData(aa)(oa).autoLayout?.enable}const pa=getGroupOffset(getElements(oa),ea.elements,getElementsComputedValues(oa),ua),ha=getActiveBreakpoint(oa);ca&&(pa.position.positionType="static"),na(innerGroupElements({...ea,groupOffset:pa,parentBoundaries:da,breakpoint:ha,parent:aa,groupData:{autoLayout:{enable:ca}},section:isForeground(aa)?"foreground":sa})),oa=ra();const ga=getElements(oa)[ea.elements[0]].parent;na(selectElement({id:ga,clear:!0}))},ungroupElements=ea=>(na,ra)=>{const oa=ra(),aa=getElements(oa)[ea],{parent:sa}=aa,la=getActiveBreakpoint(oa),ca=getElementComputedValues(ea)(oa),ua=isSection(sa)?getActiveSectionRelativeWrapperBoundaries(oa):getElementComputedValues(ea)(oa).boundaries;ua&&na(innerUngroupElements({breakpoint:la,computedValues:ca,parentBoundaries:moveBoundaries(ua,{x:0,y:0}),parent:aa.parent,id:ea,children:aa.children}))},removeElementsById=ea=>(na,ra)=>{const oa=ra(),aa=getElements(oa);na(removeElements(ea.map(sa=>({id:sa,parent:aa[sa].parent}))))},duplicateElementsById=ea=>(na,ra)=>{const oa=ra(),aa=getElements(oa),{ids:sa,shiftElements:la=!0,autoSelectNewElements:ca=!0}=ea,ua=[];reactDomExports.unstable_batchedUpdates(()=>{na(duplicateElements(sa.map(da=>{const pa=generateId("element");return ua.push(pa),{id:da,parent:aa[da].parent,newId:pa,shiftElements:la}}))),ca&&na(selectElement({id:ua,clear:!0}))})},updateElementAutoOrigin=ea=>(na,ra)=>{const{id:oa}=ea,aa=ra(),{position:sa}=getElementData(oa)(aa),la=getActiveBreakpoint(aa),ca=getResponsiveValue(sa,la);if(!ca?.autoOrigin)return;const ua=!isSection(getElementParentData(oa)(aa).id),da=getDocumentOptionsByPathAndPrefix("general")("keepAspect")(aa),pa=getElementComputedValues(oa)(aa),ha=getElementParentBoundaries(oa)(aa);if(pa?.size===void 0||pa?.position===void 0||!ha)return;const ga=calcElementPosition(ca,pa.position,pa.size,ha,da&&!ua?"tl":void 0);equal(ga,ca)||na(updateElement({id:oa,values:{position:setResponsiveValue(ga,sa,la,!0)}}))},changeElementsOrigin=ea=>(na,ra)=>{const oa=ra(),{value:aa,ids:sa=getSelectedElements(oa)}=ea,la=getActiveBreakpoint(oa),ca=getElements(oa),ua=getElementsComputedValues(oa),da=sa.map(pa=>{const ha=ca[pa],ga=ua[pa],fa=getResponsiveValue(ha.position,la),ma=getElementParentBoundaries(pa)(oa);if(!ma||!ga)return"";const va=calcElementPosition({...fa,origin:aa,autoOrigin:!1},ga.position,ga.boundaries,ma);return equal(va,fa)?"":{position:setResponsiveValue(va,ha.position,la,!0)}}).filter((pa,ha)=>{const ga=typeof pa!="string";return ga||sa.splice(ha,1),ga});da.length&&na(updateElements({ids:sa,values:da}))},changeElementsPosition=ea=>(na,ra)=>{const oa=ra(),{axis:aa,value:sa,ids:la=getSelectedElements(oa)}=ea,ca=getActiveBreakpoint(oa),ua=getElements(oa),da=getElementsComputedValues(oa),pa=getDocumentOptionsByPathAndPrefix("general")("keepAspect")(oa),ha=[...la],ga=ha.map(fa=>{const ma=ua[fa],va=da[fa],xa=getResponsiveValue(ma.position,ca),ya=getElementParentBoundaries(fa)(oa),Aa=!isSection(getElementParentData(fa)(oa).id);if(!ya||!va)return"";const Ca=ya[aa==="x"?"width":"height"],Sa=xa[aa];if(Sa.unit!==sa.unit)return{...xa,[aa]:{unit:sa.unit,value:sa.unit==="%"?limitFloatRange$1(Sa.value/Ca*100,2):Math.round(Sa.value*Ca/100)}};const wa=calcElementPosition(xa,{...va.position,[aa]:sa.value*(sa.unit==="%"?Ca/100:1)},va.boundaries,ya,pa&&!Aa?"tl":void 0);return equal(wa,xa)?"":wa}).filter((fa,ma)=>{const va=typeof fa!="string";return va||ha.splice(ma,1),va});ga.length&&na(updateElementsByPath({values:ga,ids:ha,path:`position.${ca}`}))},changeElementsSize=ea=>(na,ra)=>{const oa=ra(),{dimension:aa,value:sa,ids:la=getSelectedElements(oa)}=ea,ca=getElementsData(la)(oa),ua=getActiveBreakpoint(oa),da=[...la],pa=typeof sa=="string"&&specialSizeValues.includes(sa),{unit:ha,value:ga}=sa,fa=da.map(ma=>{if(pa)return sa==="fill-parent"?{[aa]:{value:100,unit:"%"}}:{[aa]:sa};const va=ca[ma],xa=getElementParentBoundaries(ma)(oa),ya=getResponsiveValue(va.size,ua)||{},{height:Aa="auto",width:Ca="auto"}=ya,Sa=aa==="height"?Aa:Ca,wa=typeof Sa=="string"&&specialSizeValues.includes(Sa),ba=getElementComputedValues(ma)(oa).size?.[aa]||0;if(ga==="NaN")return ha==="px"?{[aa]:{value:ba,unit:"px"}}:{[aa]:{value:ba/xa[aa],unit:"%"}};if(wa)return{[aa]:sa};let Ea=null;const $a=xa[aa],{value:Ma,unit:Ia}=Sa;Ia!==ha?Ea={[aa]:{value:ha==="%"?limitFloatRange$1(Ma/$a*100,2):ba,unit:ha}}:Ea={[aa]:sa};const Oa=aa==="height"?"width":"height",Da=ya[Oa]||"auto",Ta=typeof Da=="string"&&specialSizeValues.includes(Da),{value:_a,unit:La}=Da;if(va.keepAspectRatio&&!Ta&&La===ha){const Na=limitFloatRange$1(_a/Ma*ga,2);Ea={...Ea,[Oa]:{value:Na,unit:ha}}}return Ea});na(updateElementsByPath({values:fa,ids:da,path:`size.${ua}`,merge:!0}))},duplicateSelectedElements=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra);reactDomExports.unstable_batchedUpdates(()=>{ea(clearSelectedElements()),ea(duplicateElementsById({ids:oa}))})},removeSelectedElements=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra);reactDomExports.unstable_batchedUpdates(()=>{ea(clearSelectedElements()),ea(removeElementsById(oa))})},changeSelectedElementsDepth=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa);reactDomExports.unstable_batchedUpdates(()=>{aa.forEach(sa=>{na(changeElementDepth({id:sa,to:ea}))})})},toggleSelectedElementsShowOnAllSlides=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa);reactDomExports.unstable_batchedUpdates(()=>{aa.forEach(sa=>{na(ea?removeFromForegroundElement(sa):addToForegroundElement(sa))})})},toggleSelectedElementHideOnActiveSlide=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa)[0],sa=getActiveSection(oa),{hideOnSections:la}=getSelectedElementsData(oa)[aa];if(!ea)na(updateElement({id:aa,values:{hideOnSections:[...la||[],sa]}}));else{const ca=[...la];removeArrayIndex(ca,sa),na(updateElement({id:aa,values:{hideOnSections:ca}}))}},groupSelectedElements=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra);reactDomExports.unstable_batchedUpdates(()=>{ea(clearSelectedElements()),ea(groupElements({elements:oa,generateId:!0}))})},ungroupSelectedElements=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra),aa=getSelectedElementsParents(ra),sa=getSelectedElementsType(ra);reactDomExports.unstable_batchedUpdates(()=>{ea(clearSelectedElements());const[la]=aa,[ca]=oa,[ua]=sa;ea(ungroupElements(ua!=="group"?la:ca))})},toggleSelectedElementsLock=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa);na(toggleLockElements({ids:aa,locked:ea}))},updateElementCropData=(ea,na)=>(ra,oa)=>{const aa=oa(),sa=getActiveBreakpoint(aa),la=getElementCropData(ea)(aa);ra(updateElement({id:ea,values:{cropData:setResponsiveValue(na,la,sa,!0)}}))},setElementAutoLayout=ea=>(na,ra)=>{const{value:oa}=ea,aa=ra(),sa=getSelectedElements(aa),la=getElements(aa),ca=getActiveBreakpoint(aa);na(updateElementsByPath({value:oa,ids:sa,path:"autoLayout.enable"})),sa.forEach(ua=>{const{children:da}=la[ua];da?.forEach(pa=>{const ha=la[pa],ga=getResponsiveValue(ha.position,ca,!0);ga&&(ga.positionType=oa?"static":"absolute",na(updateElementsByPath({value:ga,ids:[pa],path:`position.${ca}`})))})})},changeElementHierarchyThunk=ea=>(na,ra)=>{const{soft:oa,id:aa,overridePosition:sa,target:la,index:ca}=ea,ua=ra(),da=getElementData(aa)(ua).parent;aa===la||ca===void 0&&la===da||(na(moveElement({...ea,current:da})),sa&&na(updateElement({id:aa,values:{position:pointToElementPosition(sa)},merge:!1})),na(na(updateTransformState("end"))),oa||na(addToHistory()))},reorderSiblingElements=ea=>(na,ra)=>{const{from:oa,to:aa,insert:sa}=ea,la=ra(),ca=[...getSiblingsDepthArray(aa.id)(la)].reverse(),ua=moveArrayItem(ca,oa.id,aa.id,sa);na(updateElements({ids:ua,values:ua.map((da,pa)=>({depth:ua.length-pa}))}))},reorderAutoLayoutElements=ea=>(na,ra)=>{const{from:oa,to:aa,insert:sa}=ea,la=ra(),ca=getElementParentData(oa.id)(la);if(!(ca.autoLayout?.enable??!1)||!ca.children)return;const da=[...getSiblingsDepthArray(aa.id)(la)],pa=moveArrayItem(da,oa.id,aa.id,sa);na(updateElements({ids:pa,values:pa.map((ha,ga)=>({depth:ga+1}))}))},reorderElement=ea=>(na,ra)=>{const{from:oa,to:aa}=ea,sa=ra(),la=getElementParentData(oa.id)(sa),ca=getElementParentData(aa.id)(sa),ua=getActiveSection(sa);if(la.id===ca.id){const da=isElement(la.id),pa=la.autoLayout?.enable??!1;!da||!pa?na(reorderSiblingElements(ea)):pa&&na(reorderAutoLayoutElements(ea))}else{const da=isForeground(ca.id)?ua:ca.id,pa=getElementComputedValues(oa.id)(sa);if(isSection(da)){const ha=getActiveSectionRelativeWrapperBoundaries(sa);reactDomExports.unstable_batchedUpdates(()=>{na(changeElementHierarchyThunk({id:oa.id,target:da,index:0,overridePosition:{x:pa.boundaries.x-ha.x,y:pa.boundaries.y-ha.y},soft:!0})),na(reorderSiblingElements(ea))})}else{const{boundaries:ha}=getElementComputedValues(da)(sa),ga=ca.autoLayout?.enable??!1;reactDomExports.unstable_batchedUpdates(()=>{na(changeElementHierarchyThunk({id:oa.id,target:da,index:0,overridePosition:{x:pa.boundaries.x-ha.x,y:pa.boundaries.y-ha.y},soft:!0})),na(ga?reorderAutoLayoutElements(ea):reorderSiblingElements(ea))})}}},parallaxScrollDefaultParams={enabled:!0,type:"scroll",dir:"bottom",movement:300,scale:1,rotate:0,fade:!1,smooth:!0,twoWay:!0},generateParallaxScrollOptions=()=>[{id:"parallaxScrollControls",optionControls:[[createOptionControl({id:"parallaxScrollDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:[{value:"top",label:i18next.t("Top")},{value:"bottom",label:i18next.t("Bottom")},{value:"right",label:i18next.t("Right")},{value:"left",label:i18next.t("Left")}]},selector:getActiveParallaxDataByPath("dir"),action:updateActiveParallax("dir")})],[createOptionControl({id:"parallaxScrollMovement",label:i18next.t("Movement"),control:SliderWithNumber,controlProps:{min:-400,max:400,numberProps:{units:"px"}},selector:getActiveParallaxDataByPath("movement"),action:updateActiveParallax("movement")})],[createOptionControl({id:"parallaxScrollScale",label:i18next.t("Scale"),control:SliderWithNumber,controlProps:{min:30,max:300,floatRange:-1,multiply:100,numberProps:{units:"%"}},selector:getActiveParallaxDataByPath("scale"),action:updateActiveParallax("scale")})],[createOptionControl({id:"parallaxScrollRotation",label:i18next.t("Rotation"),control:SliderWithNumber,controlProps:{min:-360,max:300,floatRange:-1,numberProps:{units:"°"}},selector:getActiveParallaxDataByPath("rotate"),action:updateActiveParallax("rotate")})],[createOptionControl({id:"parallaxScrollFade",control:SwitchBox$1,controlProps:{label:i18next.t("Fade")},selector:getActiveParallaxDataByPath("fade"),action:updateActiveParallax("fade")})],[createOptionControl({id:"parallaxScrollTwoWay",control:SwitchBox$1,controlProps:{label:i18next.t("Two way movement")},selector:getActiveParallaxDataByPath("twoWay"),action:updateActiveParallax("twoWay")})],...generateParallaxCommonOptions()]}],sectionDefaultCommonState={background:{color:{default:"#FFF"},image:{fitMode:{default:"cover"},position:{default:"center center"},alt:"",src:{default:""}},video:{fitMode:{default:"cover"},position:{default:"center center"},muted:!0,loop:!0,goNextSlide:!1,pause:!1},overlay:{default:"transparent"},filter:{default:{enable:!1}}},parallax:{...parallaxScrollDefaultParams,enabled:!1},kenBurns:{default:{enable:!1,params:{duration:5e3,delay:0,easing:"linear",focalPoint:{x:.5,y:.5},set:{focalPoint:{x:.5,y:.5}}}}},wrapperSize:{default:{width:void 0,height:void 0}},options:{pauseSlideshow:!1,url:{enable:!1,openInNewTab:!0,path:""},customStyle:""},className:"",visibility:"visible"},selectAllElements=()=>(ea,na)=>{const ra=na(),oa=getActiveSectionAndForegroundElementsIds(ra);reactDomExports.unstable_batchedUpdates(()=>{ea(selectElement({id:oa,clear:!0})),ea(addToHistory())})},updateSelectedElementsPosition=ea=>na=>(ra,oa)=>{const aa=oa(),sa=getSelectedElements(aa);ra(changeElementsPosition({...na,axis:ea,ids:sa}))},updateSelectedElementsSize=ea=>na=>(ra,oa)=>{const aa=oa(),sa=getSelectedElements(aa);ra(changeElementsSize({...na,dimension:ea,ids:sa}))},updateSelectedElementsValueByPathAndPrefix=(ea="")=>(na,ra)=>oa=>(aa,sa)=>{const la=sa(),ca=getSelectedElements(la),ua=getSelectedElementsType(la),{respPath:da}=StoreAccessor.getRespPathAndValue(ca.length===1?getElementDefaultState(ua[0]):elementDefaultCommonState,ea?`${ea?`${ea}.`:""}${na}`:na,getActiveBreakpoint(la));aa(updateElementsByPath({...oa,ids:ca,merge:ra,path:da}))},updateActiveSectionValueByPathAndPrefix=(ea="")=>(na,ra=!1,oa)=>aa=>(sa,la)=>{const ca=la(),ua=getActiveSection(ca),{respPath:da}=StoreAccessor.getRespPathAndValue(sectionDefaultCommonState,ea?`${ea?`${ea}.`:""}${na}`:na,getActiveBreakpoint(ca));sa(updateSectionByPath({...aa,merge:ra,id:ua,path:da,breakpoint:oa}))},updateActiveAnimation=ea=>na=>(ra,oa)=>{const aa=oa(),sa=getSelectedElements(aa);sa.length?ra(updateElementsByPath({...na,ids:sa,path:`animation.${ea}`})):ra(updateSectionByPath({...na,id:getActiveSection(aa),path:`animation.${ea}`}))},updateActiveParallax=ea=>na=>(ra,oa)=>{const aa=oa(),sa=getSelectedElements(aa);sa.length?ra(updateElementsByPath({...na,ids:sa,path:`parallax.$bp.${ea}`})):ra(updateSectionByPath({...na,id:getActiveSection(aa),path:`parallax.${ea}`}))},removeAction=ea=>(na,ra)=>{const{actionId:oa}=ea,aa=ra(),sa=getSelectedElements(aa);sa.length?na(removeElementAction({id:sa[0],actionID:oa})):na(removeSectionAction({id:sa[0],actionID:oa}))},updateActiveSectionDataSource=(ea,na=!1)=>ra=>(oa,aa)=>{const sa=aa(),la=getActiveSection(sa);oa(updateSectionByPath({...ra,id:la,path:`dataSource.${ea}`,merge:na}))},addActiveAction=ea=>(na,ra)=>{const{value:{type:oa,trigger:aa,defaultParams:sa,actionId:la}}=ea,ca=ra(),ua=getSelectedElements(ca);ua.length&&na(updateElementsByPath({value:{type:oa,trigger:aa,options:sa},ids:ua,path:`actions.${la}`}))},updateActiveActionByPath=ea=>na=>ra=>(oa,aa)=>{const sa=aa(),la=getSelectedElements(sa);la.length&&oa(updateElementsByPath({...ra,ids:la,path:`actions.${ea?`${ea}.`:""}${na}`}))},resetSelectedElementsPosition=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa);na(updateElementsByPath({value:{x:{value:0,unit:"px"},y:{value:0,unit:"px"},origin:ea.value},ids:aa,path:"position.$bp"}))},generateParallaxCommonOptions=()=>[[createOptionControl({id:"parallaxSmooth",control:SwitchBox$1,controlProps:{label:i18next.t("Smooth")},selector:getActiveParallaxDataByPath("smooth"),action:updateActiveParallax("smooth")})],[createOptionControl({id:"parallaxTarget",control:SwitchBox$1,controlProps:{label:i18next.t("Active on entire page")},tooltip:{content:i18next.t("If enabled, the parallax effect will be reacted to the entire page, not just the {{document}} itself",{document:DocType.getLabel("document")}),options:{place:"top",id:"workspace"}},selector:getActiveParallaxDataByPath("useEntirePage"),action:updateActiveParallax("useEntirePage"),dependency:ea=>{const na=getActiveParallaxDataByPath("type")(ea);return["2d","3d"].includes(na)}})]],generateParallaxMovementOptions=()=>[[createOptionControl({id:"parallaxMovementX",label:i18next.t("Movement X"),control:SliderWithNumber,controlProps:{min:-100,max:100,floatRange:-1,multiply:100,numberProps:{units:"%"}},selector:getActiveParallaxDataByPath("x"),action:updateActiveParallax("x")})],[createOptionControl({id:"parallaxMovementY",label:i18next.t("Movement Y"),control:SliderWithNumber,controlProps:{min:-100,max:100,floatRange:-1,multiply:100,numberProps:{units:"%"}},selector:getActiveParallaxDataByPath("y"),action:updateActiveParallax("y")})]],generateParallaxRotationOptions=()=>[[createOptionControl({id:"parallaxRotationX",label:i18next.t("Rotation X"),control:SliderWithNumber,controlProps:{min:-100,max:100,floatRange:-1,numberProps:{units:"°"}},selector:getActiveParallaxDataByPath("rx"),action:updateActiveParallax("rx")})],[createOptionControl({id:"parallaxRotationY",label:i18next.t("Rotation Y"),control:SliderWithNumber,controlProps:{min:-100,max:100,floatRange:-1,numberProps:{units:"°"}},selector:getActiveParallaxDataByPath("ry"),action:updateActiveParallax("ry")})]],parallax2dDefaultParams={enabled:!0,type:"2d",x:.1,y:.1,smooth:!0},generateParallax2dOptions=()=>[{id:"parallax2dControls",optionControls:[...generateParallaxMovementOptions(),...generateParallaxCommonOptions()]}],parallax3dDefaultParams={enabled:!0,type:"3d",x:0,y:0,rx:15,ry:15,zOrigin:100,smooth:!0},generateParallax3dOptions=()=>[{id:"parallax3dControls",optionControls:[...generateParallaxMovementOptions(),...generateParallaxRotationOptions(),[createOptionControl({id:"parallax3dDepth",label:i18next.t("Depth"),control:SliderWithNumber,controlProps:{min:-500,max:500,numberProps:{units:"px"}},selector:getActiveParallaxDataByPath("zOrigin"),action:updateActiveParallax("zOrigin")})],...generateParallaxCommonOptions()]}],parallaxViewScrollDefaultParams={enabled:!0,type:"viewScroll",dir:"left",movement:100,scale:1,rotate:0,fade:!1,smooth:!0},generateParallaxViewScrollOptions=()=>[...excludeControls(generateParallaxScrollOptions(),["parallaxScrollTwoWay"])],parallaxConfig=new Map,getParallaxTypes=()=>Array.from(parallaxConfig).map(([ea,{label:na}])=>({value:ea,label:na}));parallaxConfig.set("2d",{label:i18next.t("Follow mouse 2D"),options:generateParallax2dOptions,defaultParams:parallax2dDefaultParams});parallaxConfig.set("3d",{label:i18next.t("Follow mouse 3D"),options:generateParallax3dOptions,defaultParams:parallax3dDefaultParams});parallaxConfig.set("scroll",{label:i18next.t("Follow page scroll"),options:generateParallaxScrollOptions,defaultParams:parallaxScrollDefaultParams});parallaxConfig.set("viewScroll",{label:i18next.t("Sync with {{section}} transition",{section:DocType.getLabel("section")}),options:generateParallaxViewScrollOptions,defaultParams:parallaxViewScrollDefaultParams});const unifyValues=(ea,na=ra=>ra)=>{const ra=Object.values(ea).filter(aa=>aa!==void 0).map(aa=>na(aa)),oa=ra.every(aa=>shallowEqual$2(aa,ra[0]));return{value:oa?ra[0]:void 0,values:ra,determinate:oa}},getImageNeutralSize=ea=>new Promise((na,ra)=>{const oa=new Image;oa.onload=()=>na({width:oa.naturalWidth,height:oa.naturalHeight}),oa.onerror=ra,oa.src=ea}),toggleSectionUseCustomWrapperSize=({id:ea,breakpoint:na,enable:ra})=>(oa,aa)=>{const sa=aa();if(na??=getActiveBreakpoint(sa),ra){const la=getDocumentWrapperSize(sa);oa(updateSection({id:ea,value:{wrapperSize:{[na]:la[na]}}}))}else oa(clearSectionWrapperSize({id:ea,breakpoint:na}))},cropSection=({mediaSize:ea,focalPoint:na},ra)=>(oa,aa)=>{const sa=aa(),la=getSectionData(ra)(sa),ca=getActiveBreakpoint(sa),ua=getResponsiveValue(la?.kenBurns,ca)||{};reactDomExports.unstable_batchedUpdates(()=>{oa(updateSection({id:ra,value:{background:{image:{cropData:setResponsiveValue({mediaSize:ea,focalPoint:na},la.background.image?.cropData,ca,!0)}}}})),ua&&oa(updateSection({id:ra,value:{kenBurns:setResponsiveValue({params:{scale:ua?.mediaSize?limitFloatRange$1(ua.mediaSize.width/ea.width,2):1,set:{focalPoint:na},focalPoint:ua?.params?.focalPoint||na},mediaSize:ua?.mediaSize||ea},la?.kenBurns,ca,!0)}}))})},cropKenBurns=({mediaSize:ea,focalPoint:na},ra)=>(oa,aa)=>{const sa=aa(),la=getSectionData(ra)(sa),ca=getActiveBreakpoint(sa),ua=getResponsiveValue(la.background.image?.cropData,ca),da={mediaSize:ea,params:{focalPoint:na,scale:limitFloatRange$1(ea.width/ua?.mediaSize.width,2),set:{focalPoint:ua?.focalPoint}}};oa(updateSection({id:ra,value:{kenBurns:setResponsiveValue(da,la.kenBurns,ca,!0)}}))},bgAction=updateActiveSectionValueByPathAndPrefix("background"),optionAction=updateActiveSectionValueByPathAndPrefix("options"),resetActiveSectionCropData=ea=>(na,ra)=>{const oa=ra(),aa=getActiveSection(oa),sa=getActiveBreakpoint(oa),la=getActiveSectionWrapperSize(oa),{src:ca}=getActiveSectionBackgroundImageData(oa),{clientSize:ua}=getSectionComputedValues(aa)(oa),da=getResponsiveValue(ca,sa);if(!ua)return;const pa=Object.keys(la);pa.slice(pa.indexOf(sa)).forEach(async ga=>{const fa=getResponsiveValue(la,ga),ma=getResponsiveValue(ca,ga);let va=ea;if(!va&&ma)try{const xa=getImageSrc(ma);va=await getImageNeutralSize(xa)}catch(xa){console.error("Error while getting image neutral size",xa)}if(va&&ma===da){const xa={focalPoint:{x:.5,y:.5},mediaSize:fitToBox$1("cover",fa.width.value,fa.height.value,va.width,va.height)};na(bgAction("image.cropData.$bp",!0,ga)({value:xa}))}})},removeSectionBackgroundImage=()=>ea=>{reactDomExports.unstable_batchedUpdates(()=>{ea(bgAction("image.src")({value:void 0})),ea(bgAction("image.fitMode")({value:"cover"})),ea(bgAction("image.cropData.$bp")({value:void 0}))})},removeSectionsBackgroundImage=()=>(ea,na)=>{const ra=na(),oa=getActiveSection(ra),aa={default:""},sa={};reactDomExports.unstable_batchedUpdates(()=>{ea(updateSection({id:oa,assignTarget:"background.image.src",value:aa,merge:!1})),ea(updateSection({id:oa,assignTarget:"background.image.cropData",value:sa,merge:!1}))})},removeSectionBackgroundVideo=()=>ea=>{reactDomExports.unstable_batchedUpdates(()=>{ea(bgAction("video.src")({value:void 0})),ea(bgAction("video.type")({value:void 0})),ea(bgAction("video.embedType")({value:void 0}))})},setSectionBackgroundImage=ea=>(na,ra)=>{const{src:oa,hasDynamicTag:aa,size:sa}=ea,la=ra(),ca=getActiveSection(la),{hasDynamicTag:ua}=getActiveSectionOptions(la);reactDomExports.unstable_batchedUpdates(()=>{na(removeSectionBackgroundVideo()),na(aa||ua?updateSection({id:ca,assignTarget:"background.image.src",value:{default:oa},merge:!1}):bgAction("image.src",!1)({value:oa})),na(optionAction("hasDynamicTag")({value:aa})),sa&&na(resetActiveSectionCropData())})},setSectionBackgroundVideo=ea=>na=>{const{src:ra,hasDynamicTag:oa,sourceType:aa}=ea;let sa="selfHostedVideo",la;aa&&["embedYoutube","embedVimeo"].includes(aa)&&(sa="embedVideo",aa==="embedYoutube"?la="youtube":aa==="embedVimeo"&&(la="vimeo")),reactDomExports.unstable_batchedUpdates(()=>{na(removeSectionsBackgroundImage()),na(bgAction("video.src")({value:ra})),na(bgAction("video.type")({value:sa})),na(bgAction("video.embedType")({value:la})),na(optionAction("hasDynamicTag")({value:oa}))})},removeSectionMediaSource=ea=>na=>{reactDomExports.unstable_batchedUpdates(()=>{na(removeSectionBackgroundImage()),na(removeSectionBackgroundVideo()),na(bgAction("overlay")({value:"transparent"})),na(optionAction("hasDynamicTag")({value:!1})),na(updateSection({id:ea,value:{kenBurns:void 0}}))})},changeSectionImageBackgroundFitMode=(ea,na)=>(ra,oa)=>{const aa=oa(),sa=getSectionData(ea)(aa),la=getActiveBreakpoint(aa),ca=sa.background.image?.fitMode,ua=sa.background.image?.cropData;reactDomExports.unstable_batchedUpdates(()=>{ra(updateSection({id:ea,value:{background:{image:{fitMode:setResponsiveValue(na,ca,la,!0)}}}})),ua||ra(resetActiveSectionCropData())})},setSelectedElementMediaAsBackground=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra),aa=getSelectedElementsOptions(ra)[oa[0]],sa=getSelectedElementsType(ra)[0],{size:la}=getSelectedElementsComputedValues(ra)[oa[0]];if(!la)return;const ca=["embedVideo","video"].includes(sa),da=sa==="image"&&!ca?"image":"video";let pa;sa==="embedVideo"&&aa?.type&&(aa.type==="youtube"?pa="embedYoutube":aa.type==="vimeo"&&(pa="embedVimeo")),reactDomExports.unstable_batchedUpdates(()=>{ea(clearSelectedElements()),ea(removeElementsById(oa)),ea(da==="image"?setSectionBackgroundImage({src:aa.source,size:{width:la.width,height:la.height},hasDynamicTag:aa?.hasDynamicTag}):setSectionBackgroundVideo({src:aa.source,size:{width:la.width,height:la.height},hasDynamicTag:aa?.hasDynamicTag,sourceType:pa}))})},duplicateActiveSection=()=>(ea,na)=>{const ra=na(),oa=getActiveSection(ra);ea(duplicateSection({id:oa}))},removeActiveSection=()=>(ea,na)=>{const ra=na(),oa=getActiveSection(ra);ea(removeSection({id:oa}))},removeActiveSectionBackground=()=>(ea,na)=>{const ra=na(),oa=getActiveSection(ra);ea(removeSectionMediaSource(oa))},addElementWithDepth=ea=>(na,ra)=>{const oa=ra();let{depth:aa}=ea.data;if(!aa){const ua=getChildren(ea.parent)(oa);if(ua&&ua.length){const da=getElementsDepth(ua)(oa);aa=Math.max(...da)}else aa=1}const{parent:sa}=ea;oa.document.elements[sa]?.autoLayout?.enable&&(ea.data.position.default.positionType="static"),na(addElement({...ea,data:{...ea.data,depth:aa}}))},addAndSelectElement=ea=>na=>{reactDomExports.unstable_batchedUpdates(()=>{na(addElementWithDepth(ea)),na(selectElement({id:getId(getLastIdNumber(),"element"),clear:!0}))})},addGroupedElements=ea=>na=>{const{data:{group:ra,children:oa},parent:aa,position:sa}=ea;reactDomExports.unstable_batchedUpdates(()=>{na(addElementWithDepth(getNewElementPayloadData({parent:aa,section:aa,position:sa,elementData:ra})));const la=getId(getLastIdNumber(),"element");oa.forEach(ca=>{na(addElementWithDepth(getNewElementPayloadData({parent:la,section:aa,elementData:ca})))}),na(selectElement({id:la,clear:!0}))})},createElementsFromAssetPayload=(ea,na,ra)=>oa=>{const{groupData:aa,elementData:sa}=ea;aa?Array.isArray(aa)?reactDomExports.unstable_batchedUpdates(()=>{aa.forEach((la,ca)=>{const ua=ca===aa.length-1;if(la.group)oa(addGroupedElements({parent:na,data:la,position:ra}));else{const da=getNewElementPayloadData({parent:na,section:na,position:ra,elementData:la});oa(ua?addAndSelectElement(da):addElementWithDepth(da))}})}):oa(addGroupedElements({parent:na,data:aa,position:ra})):sa&&oa(addAndSelectElement(getNewElementPayloadData({parent:na,section:na,position:ra,elementData:sa})))},createElementOnActiveSection=ea=>(na,ra)=>{const oa=ra(),aa=getActiveSection(oa);na(createElementsFromAssetPayload(ea,aa,{x:0,y:0}))},youtubeRegex=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\\-]+\?v=|embed\/|v\/)?)([\w\\-]+)(\S+)?$/,vimeoRegex=/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/,Youtube$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='41'%20height='28.7'%20viewBox='0%200%2041%2028.7'%3e%3cdefs%3e%3cstyle%3e.a{fill:red;}.b{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cpath%20class='a'%20d='M124.693,89.521a5.135,5.135,0,0,0-3.625-3.625c-3.2-.857-16.018-.857-16.018-.857s-12.821,0-16.018.857a5.135,5.135,0,0,0-3.625,3.625c-.857,3.2-.857,9.869-.857,9.869s0,6.671.857,9.869a5.135,5.135,0,0,0,3.625,3.625c3.2.857,16.018.857,16.018.857s12.821,0,16.018-.857a5.135,5.135,0,0,0,3.625-3.625c.857-3.2.857-9.869.857-9.869S125.55,92.718,124.693,89.521Z'%20transform='translate(-84.55%20-85.039)'/%3e%3cpath%20class='b'%20d='M133.144,121.66l10.672-6.162-10.672-6.162Z'%20transform='translate(-116.755%20-101.148)'/%3e%3c/svg%3e",Vimeo$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='86.646'%20height='24.497'%20viewBox='0%200%2086.646%2024.497'%3e%3cdefs%3e%3cstyle%3e.a{fill:%2300adef;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-227.009%20-243.24)'%3e%3cpath%20class='a'%20d='M246.379,320.008q-.13,2.831-3.952,7.751-3.952,5.139-6.688,5.139-1.694,0-2.866-3.13l-1.564-5.738q-.871-3.128-1.867-3.13a5.972,5.972,0,0,0-1.521.913l-.912-1.175q1.434-1.261,2.828-2.523a6.406,6.406,0,0,1,2.871-1.741q2.262-.217,2.785,3.094.565,3.573.783,4.443.652,2.964,1.436,2.963.608,0,1.827-1.923a7.579,7.579,0,0,0,1.3-2.927q.174-1.66-1.3-1.661a3.627,3.627,0,0,0-1.434.318q1.429-4.681,5.458-4.55Q246.551,316.219,246.379,320.008Z'%20transform='translate(0%20-65.242)'/%3e%3cpath%20class='a'%20d='M410.95,260.879a14.665,14.665,0,0,1-3.351,4.174,8.959,8.959,0,0,1-5.831,2.522,2.527,2.527,0,0,1-2.068-.87,3.271,3.271,0,0,1-.674-2.261,20.511,20.511,0,0,1,.892-4.436q.85-3,.85-3.219,0-1.129-.783-1.131a4.792,4.792,0,0,0-1.48.913l-1-1.175,2.785-2.523a6.278,6.278,0,0,1,2.786-1.741,2.131,2.131,0,0,1,2.11.846,3.641,3.641,0,0,1,.5,2.536q-.566,2.646-1.22,6.719-.044,1.866,1.349,1.864a4.806,4.806,0,0,0,2.176-1.288,18.172,18.172,0,0,0,2.132-2.018ZM407.164,245.4a3.067,3.067,0,0,1-1.088,2.079,3.891,3.891,0,0,1-2.785,1.125q-2.48,0-2.393-2.164a3.025,3.025,0,0,1,1.326-2.166,4.427,4.427,0,0,1,2.851-1.038,1.924,1.924,0,0,1,1.523.715A2.039,2.039,0,0,1,407.164,245.4Z'%20transform='translate(-152.61%200)'/%3e%3cpath%20class='a'%20d='M509.219,328.182a14.664,14.664,0,0,1-3.351,4.174,8.959,8.959,0,0,1-5.831,2.522q-2.831,0-2.742-3.131a15.762,15.762,0,0,1,.543-3.348,15.725,15.725,0,0,0,.544-3.044q.044-1.652-1-1.653-1.135,0-2.706,2.7a12.031,12.031,0,0,0-1.791,5.482,6.433,6.433,0,0,0,.366,2.873q-3.037.088-4.251-1a3.829,3.829,0,0,1-1-3.177,11.732,11.732,0,0,1,.427-2.785,11.166,11.166,0,0,0,.427-2.481q.088-1.61-1.176-1.61-1.091,0-2.354,2.481a12.641,12.641,0,0,0-1.394,5.178,9.033,9.033,0,0,0,.312,3.394q-2.987.088-4.242-1.259a4.628,4.628,0,0,1-.953-3.427,24.55,24.55,0,0,1,.4-3.146,24.757,24.757,0,0,0,.4-3.146q.086-.78-.392-.781a4.835,4.835,0,0,0-1.48.88L476.93,322.7q.217-.172,2.742-2.523,1.827-1.7,2.48-1.74a1.922,1.922,0,0,1,1.827.935,4.112,4.112,0,0,1,.7,2.372,3.854,3.854,0,0,1-.086.827,8.01,8.01,0,0,1,1.523-1.741,7.739,7.739,0,0,1,4.482-1.958,3.269,3.269,0,0,1,3.047,1,4.243,4.243,0,0,1,.7,2.742c.2-.173.421-.362.654-.566a11.554,11.554,0,0,1,1.957-1.871,6.458,6.458,0,0,1,3.351-1.306,3.215,3.215,0,0,1,3,1,3.9,3.9,0,0,1,.7,2.73,20.088,20.088,0,0,1-.587,3.534,22.621,22.621,0,0,0-.544,2.665,2.337,2.337,0,0,0,.174,1.258c.145.231.492.346,1.044.346a4.806,4.806,0,0,0,2.176-1.288,18.182,18.182,0,0,0,2.133-2.018Z'%20transform='translate(-223.704%20-67.303)'/%3e%3cpath%20class='a'%20d='M766.127,329.583a13.316,13.316,0,0,1-4.961,4.171,18.573,18.573,0,0,1-9.356,2.65q-3.525,0-5.049-2.349a6.442,6.442,0,0,1-1.044-3.829,9.731,9.731,0,0,1,3.133-6.7,10.826,10.826,0,0,1,8.007-3.48q4.265,0,4.526,3.473.174,2.213-2.436,4.558a13.259,13.259,0,0,1-7.007,3.255,2.7,2.7,0,0,0,2.35,1.085,17.405,17.405,0,0,0,6.833-1.593A18.19,18.19,0,0,0,765.3,328.5Zm-9.878-4.544q.042-1.167-.957-1.169-1.3,0-2.65,1.8a6.1,6.1,0,0,0-1.39,3.441,2.393,2.393,0,0,0,0,.563,9.794,9.794,0,0,0,3.693-2.381A4.207,4.207,0,0,0,756.248,325.04Z'%20transform='translate(-464.294%20-68.749)'/%3e%3cpath%20class='a'%20d='M911.668,324.584a10.348,10.348,0,0,1-2.959,6.909,9.185,9.185,0,0,1-6.919,2.911,6.307,6.307,0,0,1-5.221-2.216,7.076,7.076,0,0,1-1.436-4.126,9.041,9.041,0,0,1,2.7-6.866,10.153,10.153,0,0,1,7.876-3.475,5.456,5.456,0,0,1,4.612,2.042A7.006,7.006,0,0,1,911.668,324.584Zm-4.917-.164a5.475,5.475,0,0,0-.327-2.158q-.37-.981-1.066-.982a4.207,4.207,0,0,0-3.655,2.4,8.422,8.422,0,0,0-1.306,4.185,3.736,3.736,0,0,0,.392,1.919,1.475,1.475,0,0,0,1.349.959q1.957,0,3.351-2.311A8.248,8.248,0,0,0,906.751,324.42Z'%20transform='translate(-598.024%20-66.667)'/%3e%3c/g%3e%3c/svg%3e",defaultEmbedVideoElementData={children:[],type:"embedVideo",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:721,unit:"px"},height:{value:426,unit:"px"}}},options:{autoPause:!0,controls:!0}},videoItemAssetContents=[{id:nanoid$1(),type:"element",title:i18next.t("YouTube"),tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultEmbedVideoElementData,{options:{type:"youtube"}})},sourceType:"embedYoutube",previewOptions:{width:179,height:110,icon:{src:Youtube$1,width:"41px",height:"28px"},iconSpace:"12px"}},{id:nanoid$1(),type:"element",title:i18next.t("Vimeo"),tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultEmbedVideoElementData,{options:{type:"vimeo"}})},sourceType:"embedVimeo",previewOptions:{width:179,height:110,icon:{src:Vimeo$1,width:"87px",height:"25px"},iconSpace:"12px"}}],defaultTextElementData$2={children:[],type:"text",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto"}},styles:{backgroundColor:{default:"transparent"},typography:{default:{font:"Open Sans",lineHeight:120,color:"#000000"}}}},textItemAssetContent=[{id:nanoid$1(),type:"element",previewOptions:{dragMeta:{textColor:"black",positionRefine:{x:20,y:5.5}}},payload:{elementData:deepmerge(defaultTextElementData$2,{styles:{typography:{default:{fontSize:34,fontVariant:600}}},options:{content:i18next.t("Add Heading Text"),tag:"h2"}})}},{id:nanoid$1(),type:"element",previewOptions:{dragMeta:{textColor:"black",positionRefine:{x:20,y:14}}},payload:{elementData:deepmerge(defaultTextElementData$2,{styles:{typography:{default:{fontSize:23,fontVariant:500}}},options:{content:i18next.t("Add Subheading Text"),tag:"h3"}})}},{id:nanoid$1(),type:"element",previewOptions:{dragMeta:{textColor:"black",positionRefine:{x:20,y:20}}},payload:{elementData:deepmerge(defaultTextElementData$2,{styles:{typography:{default:{fontSize:15,fontVariant:"regular"}}},options:{content:i18next.t("Add a body paragraph text"),tag:"p"}})}}],copyElements=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra),aa=getElementsExportedData(oa,!1)(ra);oa.length&&localStorageStore.addItem("dpCopiedElements",JSON.stringify(aa,null,2))},pasteElements=ea=>(na,ra)=>{const oa=ra(),aa=getActiveSection(oa),sa=localStorageStore.getItem("dpCopiedElements");let la={};if(sa)la=JSON.parse(sa),localStorageStore.removeItem("dpCopiedElements");else if(ea){const ca={default:{x:{value:0,unit:"px"},y:{value:0,unit:"px"},origin:"tl"}};if(ea.types.includes("text/plain")){const ua=ea.getData("text/plain");ua.match(youtubeRegex)?la={elementData:deepmerge(defaultEmbedVideoElementData,{position:ca,options:{type:"youtube",source:ua}})}:ua.match(vimeoRegex)?la={elementData:deepmerge(defaultEmbedVideoElementData,{position:ca,options:{type:"vimeo",source:ua}})}:la={elementData:deepmerge(defaultTextElementData$2,{position:ca,styles:{typography:{default:{fontSize:15}}},options:{content:ua,tag:"p"}})}}}na(createElementsFromAssetPayload(la,aa))},copySelectedElementStyles=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getElementExportedData(oa,!0)(ra),{size:sa,styles:la,innerStyles:ca}="group"in aa?aa.group:aa,ua={size:sa,styles:la,innerStyles:ca};localStorageStore.addItem("dpCopiedStyle",JSON.stringify(ua,null,2))},pasteSelectedElementStyles=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=localStorageStore.getItem("dpCopiedStyle");if(!aa)return;const sa=JSON.parse(aa);ea(updateElement({id:oa,values:{...sa}}))},copySelectedElementPosition=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getElementExportedData(oa,!1)(ra),sa=getActiveBreakpoint(ra),la="group"in aa?aa.group.position:aa.position;localStorageStore.addItem("dpCopiedPosition",JSON.stringify(getResponsiveValue(la,sa),null,2))},pasteSelectedElementPosition=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getActiveBreakpoint(ra),sa=getSelectedElementsPosition(ra)[oa],la=localStorageStore.getItem("dpCopiedPosition");if(!la)return;const ca=JSON.parse(la);ea(updateElement({id:oa,values:{position:setResponsiveValue(ca,sa,aa,!0)}}))},copySelectedElementAnimation=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getElementExportedData(oa,!1)(ra),sa="group"in aa?aa.group.animation:aa.animation;localStorageStore.addItem("dpCopiedAnimation",JSON.stringify(sa||{},null,2))},pasteSelectedElementAnimation=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=localStorageStore.getItem("dpCopiedAnimation");if(!aa)return;const sa=JSON.parse(aa);ea(updateElement({id:oa,values:{animation:sa}}))},MediaCropperToolContext=React.createContext({setCropperData:()=>{}}),useMediaCropperTool=ea=>{const na=useDispatch(),{cropperData:ra,setCropperData:oa}=reactExports.useContext(MediaCropperToolContext),aa=ra?.id===ea,sa=reactExports.useCallback(ua=>{oa(ua),reactDomExports.unstable_batchedUpdates(()=>{na(updateOverSectionControlVisibility("hidden")),na(setCropperActiveMediaId(ua.id))})},[na,oa]),la=reactExports.useCallback(()=>{oa(void 0),reactDomExports.unstable_batchedUpdates(()=>{na(updateOverSectionControlVisibility("visible")),na(setCropperActiveMediaId(void 0))})},[na,oa]),ca=reactExports.useCallback(ua=>{oa(ua)},[oa]);return{openCropTool:sa,closeCropperTool:la,updateCropperData:ca,cropperData:ra,isCropping:aa}},CropSection=ea=>{const{label:na,size:ra="medium",...oa}=ea,aa=useSelector(getActiveSection),{openCropTool:sa}=useMediaCropperTool(aa),la=useSelector(getSectionCropperToolData(aa)),ca=reactExports.useCallback(()=>{la&&sa({...la,update:cropSection})},[la,sa]);return jsxRuntimeExports.jsx(MenuItem,{size:ra,value:"crop",...oa,onClick:ca,children:na})},CropSection$1=dt$1(CropSection).withConfig({displayName:"CropSection",componentId:"sc-1eobvuw-0"})([""]),useLimitedAccess=(ea,na)=>{const{tiers:ra,userTier:oa}=reactExports.useContext(UserTiersContext),aa=ra.get(ea);return ra.get(oa)<=aa&&na()};var LimitedAccess=(ea=>(ea[ea.MAX_PUBLISH_COUNT=2]="MAX_PUBLISH_COUNT",ea[ea.MAX_DEFAULT_SECTIONS_COUNT=3]="MAX_DEFAULT_SECTIONS_COUNT",ea[ea.MAX_POPUP_SECTIONS_COUNT=2]="MAX_POPUP_SECTIONS_COUNT",ea[ea.MAX_BANNER_BAR_SECTIONS_COUNT=2]="MAX_BANNER_BAR_SECTIONS_COUNT",ea))(LimitedAccess||{});const useLimitedAccessSections=()=>{const{addToModalsStack:ea}=useModal(),na=useSelector(getDocumentType),oa=useSelector(getFilteredSectionsList).length,aa=reactExports.useMemo(()=>{switch(na){case"popup":return LimitedAccess.MAX_POPUP_SECTIONS_COUNT;case"banner-bar":return LimitedAccess.MAX_BANNER_BAR_SECTIONS_COUNT;default:return LimitedAccess.MAX_DEFAULT_SECTIONS_COUNT}},[na]),sa=reactExports.useCallback(()=>oa>=aa,[oa,aa]),la=useLimitedAccess(Tiers.FREE,sa),ca=reactExports.useCallback(()=>{ea([{id:"limitedSections",options:{count:aa}}])},[ea,aa]);return{isLimited:la,openModal:ca}},DuplicateSection=ea=>{const{label:na,size:ra="medium",...oa}=ea,aa=useDispatchAndToHistory(),{isLimited:sa,openModal:la}=useLimitedAccessSections(),ca=reactExports.useCallback(()=>{if(sa){la();return}aa(duplicateActiveSection())},[aa,sa,la]);return jsxRuntimeExports.jsx(MenuItem,{size:ra,value:"duplicateSection",...oa,onClick:ca,children:na})},DuplicateSection$1=dt$1(DuplicateSection).withConfig({displayName:"DuplicateSection",componentId:"sc-18exwqt-0"})([""]);i18next.t("Copy selected elements");const pasteElementsItem$1={id:"pasteElementsItem",label:i18next.t("Paste element here"),dispatcher:{thunk:pasteElements},disabledWhen:()=>!localStorageStore.getItem("dpCopiedElements")},duplicateSectionItem={id:"duplicateSectionItem",label:i18next.t("Duplicate {{section}}",{section:DocType.getLabel("section")}),dependency:ea=>getActiveSectionType(ea)!=="teaser",UIItem:DuplicateSection$1},removeSectionItem={id:"removeSectionItem",label:i18next.t("Remove {{section}}",{section:DocType.getLabel("section")}),dispatcher:{thunk:removeActiveSection},dependency:ea=>getActiveSectionType(ea)!=="teaser"},removeSectionBackgroundItem={id:"removeSectionBackgroundItem",label:i18next.t("Remove background"),dispatcher:{thunk:removeActiveSectionBackground},disabledWhen:ea=>!getActiveSectionHasBackground(ea)},cropSectionItem={id:"cropSectionItem",label:i18next.t("Crop"),UIItem:CropSection$1,dependency:ea=>getActiveSectionHasBackgroundImage(ea)&&getActiveSectionValueByPathAndPrefix("background.image")("fitMode")(ea)==="custom"},getActiveBreakpoint=ea=>ea.document.env.activeBreakpoint,getActiveSection=ea=>ea.document.env.activeSection,getSelectedElements=ea=>ea.document.env.selectedElements,getShowHiddenItems=ea=>ea.document.env.showHiddenItems,getActiveSectionName=createSelector([getSections,getActiveSection],(ea,na)=>ea[na].name),getActiveSectionHasBackgroundImage=createSelector([getSections,getActiveSection],(ea,na)=>!!ea[na].background?.image?.src),getActiveSectionAnimation=createSelector([getActiveSection,getSections],(ea,na)=>na[ea].animation),getSelectedElementsData=createSelector([getSelectedElements,getElements],(ea,na)=>{const ra={};return ea.map(oa=>na[oa]).forEach(oa=>{ra[oa.id]=oa}),ra}),getElementsName=createSelector([getElements],ea=>{const na=[];return Object.keys(ea).forEach(ra=>{na.push({value:ea[ra].id,label:ea[ra].name})}),na});createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.name||""));const getSelectedElementsParent=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.parent)),getSelectedElementsForegroundStatus=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>({enabled:isForeground(na?.parent),hideOnSections:na.hideOnSections}))),getSelectedElementsHasLocked=createSelector([getSelectedElementsData],ea=>Object.values(ea).some(na=>na.locked)),getSelectedElementsAllLocked=createSelector([getSelectedElementsData],ea=>Object.values(ea).every(na=>na.locked));createSelector([getSelectedElementsData],ea=>{const na={default:!0};return objectMap(ea,ra=>ra.visible||na)});const getSelectedElementsAnimation=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na.animation)),getSelectedElementsParallax=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na.parallax)),getSelectedElementsIsGroupable=createSelector([getSelectedElementsData],ea=>{const na=Object.values(ea);return na.every(ra=>ra.parent===na[0].parent)}),getSelectedElementsIsGrouped=createSelector([getSelectedElementsData],ea=>Object.values(ea).every(ra=>ra.type==="group"||isElement(ra.parent))),getAnySelectedElementsAreInGroup=createSelector([getSelectedElementsData],ea=>Object.values(ea).some(na=>isElement(na.parent))),getSelectedElementsAreOnForeground=createSelector([getSelectedElementsData,getElements],(ea,na)=>Object.values(ea).every(ra=>{let oa=ra;for(;oa;){if(isForeground(oa.parent))return!0;oa=na[oa.parent]}return!1})),getSelectedElementsOptions=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.options||{})),getSelectedElementsStyles=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.styles||{})),getSelectedElementsActions=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.actions||{})),getSelectedElementsType=createSelector([getSelectedElements,getElements],(ea,na)=>ea.map(ra=>na[ra].type)),getActiveSectionData=createSelector([getActiveSection,getSections],(ea,na)=>na[ea]),getActiveSectionActions=createSelector([getActiveSectionData],({actions:ea})=>ea),getActionSectionHasCustomWrapperSize=createSelector([getActiveSectionData,getActiveBreakpoint],(ea,na)=>!!ea.wrapperSize?.[na]),getActiveSectionBackgroundData=createSelector([getActiveSectionData],ea=>ea.background||{});createSelector([getActiveSectionData],ea=>ea?.visibility);createSelector([getActiveSectionData],ea=>ea?.visibilitySchedule||{});const getActiveSectionBackgroundImageData=createSelector([getActiveSectionBackgroundData],ea=>ea.image||{}),getActiveSectionBackgroundVideoData=createSelector([getActiveSectionBackgroundData],ea=>ea.video||{}),getActiveSectionBackgroundVideoType=createSelector([getActiveSectionBackgroundVideoData],ea=>ea?.type||"selfHostedVideo"),getActiveSectionBackgroundVideoEmbedType=createSelector([getActiveSectionBackgroundVideoData],ea=>ea?.embedType||"");createSelector([getActiveSectionBackgroundVideoEmbedType],ea=>ea==="youtube");const getActiveSectionHasBackgroundVideo=createSelector([getSections,getActiveSection,getActiveSectionBackgroundVideoEmbedType],(ea,na,ra)=>!!ea[na].background?.video?.src||!!ra),getActiveSectionHasBackground=createSelector([getActiveSectionHasBackgroundImage,getActiveSectionHasBackgroundVideo],(ea,na)=>ea||na),getActiveSectionOptions=createSelector([getActiveSectionData],ea=>ea.options||{}),getActiveSectionElementsData=createSelector([getActiveSectionData,getElements],(ea,na)=>{const ra={};return ea.elements.forEach(oa=>{ra[oa]=na[oa]}),ra}),getActiveSectionElementsDataWithChildren=createSelector([getActiveSectionData,getElements],(ea,na)=>{const ra={};return ea.elements.forEach(oa=>{const aa=na[oa];ra[oa]=aa,aa.children?.forEach(sa=>{ra[sa]=na[sa]})}),ra}),getActiveSectionWrapperSizeValue=createSelector([getActiveSectionData],({wrapperSize:ea})=>ea),getActiveSectionWrapperSize=createSelector([getActiveSectionWrapperSizeValue,getDocumentWrapperSize,getActiveSectionData],(ea,na,ra)=>ra?.type==="teaser"&&ea?deepmerge({},ea):deepmerge(na,ea||{})),getActiveSectionWrapperResponsiveSize=createSelector([getActiveSectionWrapperSize,getActiveBreakpoint],(ea,na)=>getResponsiveValue(ea,na)),getActiveSectionWrapperDefaultSize=createSelector([getActiveSectionWrapperSize],ea=>ea.default),getSectionsName=createSelector([getSections],ea=>{const na=[];return Object.keys(ea).forEach(ra=>{na.push({value:ea[ra].id,label:ea[ra].name})}),na}),getActiveSectionAndForegroundElementsData=createSelector([getActiveSectionElementsData,getForegroundElementsData],(ea,na)=>({...ea,...na})),getActiveSectionAndForegroundElementsIds=createSelector([getActiveSectionAndForegroundElementsData],ea=>Object.keys(ea)),getActiveSectionAndForegroundElementsDataWithChildren=createSelector([getActiveSectionElementsDataWithChildren,getForegroundElementsDataWithChildren],(ea,na)=>({...ea,...na})),getActiveSectionKenBurnsData=createSelector([getActiveSectionData],ea=>ea.kenBurns||{default:{}}),getActiveSectionElementsAnimationData=createSelector([getActiveSectionAndForegroundElementsDataWithChildren,getActiveSection,getActiveSectionAnimation,getActiveSectionData],(ea,na,ra,oa)=>{const aa=Object.keys(ea),sa={};return aa.forEach(la=>{ea[la].animation&&(sa[la]=ea[la].animation)}),ra&&(sa[na]=ra),oa.kenBurns&&(sa[na]={...sa[na],kenBurns:oa.kenBurns}),sa}),getActiveSectionDataSourceConfig=createSelector([getActiveSectionData],ea=>ea.dataSource),getActiveSectionDataSourceType=createSelector([getActiveSectionDataSourceConfig],ea=>ea?.type);createSelector([getActiveSectionDataSourceType],ea=>!!ea);const getActiveSectionDataSourceParams=createSelector([getActiveSectionDataSourceConfig],ea=>ea?.params||{}),getActiveSectionDataSourceData=createSelector([getActiveSection,getSectionsDataSourcesData],(ea,na)=>na?.[ea]||void 0),getSectionsDataSource=createSelector([getSections],ea=>objectMap(ea,na=>na.dataSource)),getFirstSectionWithDataSource=createSelector([getSectionsDataSource,getSectionsList],(ea,na)=>{const ra=na.find(oa=>ea[oa]?.params);if(ra)return ea[ra]}),getFirstSectionWithDataSourceType=createSelector([getFirstSectionWithDataSource],ea=>ea?.type),getSelectedElementsParents=createSelector([getSelectedElementsData],ea=>Object.values(ea).map(na=>na.parent));createSelector([getActiveSectionElementsDataWithChildren,getElementsComputedValues],(ea,na)=>{const ra={};return Object.keys(ea).forEach(oa=>{ra[oa]=na[oa]}),ra});const getActiveSectionOverlappedElements=ea=>createSelector([getElements],na=>{const ra=document.elementsFromPoint(ea?.x||0,ea?.y||0).filter(aa=>/^element-\d+$/.test(aa.id)).map(aa=>aa.id),oa={};return ra.forEach(aa=>{oa[aa]=na[aa]}),oa});createSelector([getActiveSectionOverlappedElements],ea=>objectMap(ea,na=>na.name));const getActiveSectionParallax=createSelector([getActiveSectionData],ea=>ea.parallax);createSelector([getSelectedElementsStyles],ea=>objectMap(ea,na=>na?.transform||{}));const getSelectedElementsPosition=createSelector([getSelectedElementsData],ea=>objectMap(ea,na=>na?.position||{})),getSelectedElementsValueByPathAndPrefix=ea=>na=>createSelector([getSelectedElementsData,getActiveBreakpoint],(ra,oa)=>{const{value:aa,determinate:sa}=unifyValues(objectMap(ra,ua=>StoreAccessor.get(ua,`${ea?`${ea}.`:""}${na}`,oa))),{type:la}=Object.values(ra)[0]||{};if(!la)return;const ca=StoreAccessor.get(getElementDefaultState(la),`${ea?`${ea}.`:""}${na}`,oa);if(sa&&isPlainObject$5(aa)){const ua={...aa};return Object.keys(ca).forEach(da=>{da in ua||(ua[da]=ca[da])}),ua}return sa?aa??ca:INDETERMINATE_VALUE}),getSelectedElementsTLOriginPositionValue=ea=>createSelector([getSelectedElementsTLOriginPosition,getActiveBreakpoint],(na,ra)=>{const{value:oa=StoreAccessor.get(elementDefaultCommonState,`position.${ea}`,ra),determinate:aa}=unifyValues(objectMap(na,sa=>StoreAccessor.get(sa,ea,ra)));return aa?oa:INDETERMINATE_VALUE}),getActiveAnimation=createSelector([getSelectedElementsAnimation,getActiveSectionAnimation],(ea,na)=>Object.keys(ea).length?Object.values(ea)[0]:na),getActiveAnimationByPath=ea=>createSelector([getActiveAnimation,getActiveBreakpoint],(na={},ra)=>{if(ea.includes(".params.")){const[oa,aa]=ea.split(".params."),sa=StoreAccessor.get(na,`${oa}.type`,ra);return StoreAccessor.get(na,ea,ra)??StoreAccessor.get(animatorsConfig.get(sa)?.defaultParams||{},aa.replace(".$bp",""),ra)}return StoreAccessor.get(na,ea,ra)}),geAnimationByPath=(ea,na,ra)=>createSelector([na,getActiveBreakpoint],(oa={},aa)=>{if(ea.includes(".params.")){const[sa,la]=ea.split(".params."),ca=StoreAccessor.get(oa,`${sa}.type`,ra);return StoreAccessor.get(oa,ea,ra)??StoreAccessor.get(animatorsConfig.get(ca)?.defaultParams||{},la.replace(".$bp",""),ra)}return StoreAccessor.get(oa,ea,ra)}),getActiveSectionValueByPathAndPrefix=ea=>na=>createSelector([getActiveSectionData,getActiveBreakpoint],(ra,oa)=>StoreAccessor.get(ra,`${ea?`${ea}.`:""}${na}`,oa)??StoreAccessor.get(sectionDefaultCommonState,`${ea?`${ea}.`:""}${na}`,oa)),getActiveParallaxData=createSelector([getSelectedElementsParallax,getActiveSectionParallax],(ea,na)=>Object.keys(ea).length?Object.values(ea)[0]:na),getActiveParallaxDataByPath=ea=>createSelector([getActiveParallaxData,getSelectedElements,getActiveBreakpoint],(na,ra,oa)=>{if(!na)return null;const aa=StoreAccessor.get(na,"type",oa)??StoreAccessor.get(ra.length?elementDefaultCommonState:sectionDefaultCommonState,"parallax.type",oa);return StoreAccessor.get(na,ea,oa)??StoreAccessor.get(parallaxConfig.get(aa)?.defaultParams||{},ea,oa)}),getActiveActionData=createSelector([getSelectedElementsActions,getActiveSectionActions],(ea,na)=>Object.keys(ea).length?Object.values(ea)[0]:na),getActiveActionValueByPathAndPrefix=(ea,na)=>ra=>createSelector([getActiveActionData,getActiveBreakpoint],(oa={},aa)=>StoreAccessor.get(oa,`${ea?`${ea}.`:""}${ra}`,aa)??StoreAccessor.get(na,ra,aa)),getActiveSectionDataSourceByPath=getActiveSectionValueByPathAndPrefix("dataSource"),getSelectedElementAutoLayoutModes=createSelector([getSelectedElementsIsGrouped,getSelectedElementsParent,getElements,getActiveBreakpoint],(ea,na,ra,oa)=>{if(!ea)return{isFlexItem:!1,isGridItem:!1};const aa=na[Object.keys(na)[0]],{autoLayout:sa}=ra[aa];if(!sa||!sa.enable)return{isFlexItem:!1,isGridItem:!1};const la=getResponsiveValue(sa.mode,oa);return{isFlexItem:la==="flex",isGridItem:la==="grid"}}),getSelectedElementIsFlexItem=createSelector([getSelectedElementAutoLayoutModes],ea=>ea.isFlexItem);createSelector([getSelectedElementAutoLayoutModes],ea=>ea.isGridItem);const getActiveSectionElementsType=createSelector([getActiveSectionElementsData],ea=>objectMap(ea,na=>na.type)),getActiveSectionHasAForm=createSelector([getActiveSectionElementsType],ea=>Object.values(ea).some(na=>na==="form")),getForegroundLayers=createSelector([getForegroundElementsDataWithChildren],ea=>Object.values(ea).map(ra=>({id:ra.id,parent:ra.parent,order:ra.depth,type:ra.type,locked:ra.locked,isAutoLayout:ra.autoLayout?.enable??!1,name:["text"].includes(ra.type)?ra?.options?.content||"":ra.name,isGroup:["group","form"].includes(ra.type)}))),getActiveSectionLayers=createSelector([getElements,getActiveSection],(ea,na)=>Object.values(ea).filter(oa=>!isForeground(oa.parent)&&oa.section===na).map(oa=>({id:oa.id,parent:oa.parent,order:oa.depth,type:oa.type,locked:oa.locked,isAutoLayout:oa.autoLayout?.enable??!1,name:["text"].includes(oa.type)?oa?.options?.content||"":oa.name,isGroup:["group","form"].includes(oa.type)}))),getActiveSectionLayersPanelData=createSelector([getForegroundLayers,getActiveSectionLayers,getActiveSectionData],(ea,na,ra)=>({layers:na,foregroundLayers:ra?.type==="teaser"?[]:ea})),getActiveSectionAnimationWizardData=ea=>createSelector([getActiveSectionElementsData,getElementsComputedValues,getActiveBreakpoint],(na,ra,oa)=>isEmpty(na)||isEmpty(ra)?{}:objectMap(na,aa=>{const{position:sa,size:la}=ra[aa.id],ca=aa.animation||{},ua=getResponsiveValue(ca[ea]?.data,oa);return{id:aa.id,type:aa.type,depth:aa.depth,position:{x:sa.x+la.width/2,y:sa.y+la.height/2},canApply:ua?(ua.appliedBy??"user")==="wizard":!0}})),getActiveSectionElementsId=createSelector([getActiveSectionElementsData],ea=>Object.keys(ea)),getActiveSectionType=createSelector([getActiveSectionData],ea=>ea.type||"section"),getContextMenuItems=createSelector([getSelectedElementsData,getActiveSectionType],(ea,na)=>{const ra=Object.values(ea).map(la=>({type:la.type,inGroup:isElement(la.parent),id:la.id}));if(!ra.length){const la=na==="teaser",ca=[{id:"sectionCommonItemsGroup",items:[pasteElementsItem$1]}];return la||ca.push({id:"sectionModifyItems",divider:"both",items:[duplicateSectionItem,removeSectionItem]}),ca.push({id:"sectionStyleItems",items:[removeSectionBackgroundItem,cropSectionItem]}),ca}const oa=ra.length>1,aa=ra.map(la=>getElementContextMenu(la.type)||[]);let sa=[];return oa?sa=intersectNestedObjects(aa,"id","items"):sa=[...aa[0]],sa}),OverlappedElements=ea=>{const{label:na,size:ra="medium",anchorPoint:oa}=ea,aa=useDispatch(),sa=useSelector(getSelectedElements)[0],la=useSelector(getActiveSectionOverlappedElements(oa)),ca=reactExports.useCallback(({value:da})=>{aa(selectElement({id:da,clear:!0}))},[aa]),ua=([da,pa])=>jsxRuntimeExports.jsx(MenuItem,{size:ra,value:da,type:"checkbox",onClick:ca,checked:da===sa,children:pa.name},da);return jsxRuntimeExports.jsx(SubMenu,{label:na,size:ra,children:Object.entries(la).map(ua)})},OverlappedElements$1=dt$1(OverlappedElements).withConfig({displayName:"OverlappedElements",componentId:"sc-1y4sl64-0"})([""]),selectElements={id:"selectedElementsItem",label:i18next.t("Select element"),UIItem:OverlappedElements$1},selectElementsGroup={id:"selectElementsGroup",divider:"after",items:[selectElements]},copyElementsItem={id:"copyElementsItem",label:i18next.t("Copy"),dispatcher:{thunk:copyElements},shortcuts:["Mod","C"]},pasteElementsItem={id:"pasteElementsItem",label:i18next.t("Paste"),dispatcher:{thunk:pasteElements},disabledWhen:()=>!localStorageStore.getItem("dpCopiedElements"),shortcuts:["Mod","V"]},copyElementsStyleItem={id:"copyElementsStyleItem",label:i18next.t("Copy styles"),dispatcher:{thunk:copySelectedElementStyles}},pasteElementsStyleItem={id:"pasteElementsStyleItem",label:i18next.t("Paste styles"),dispatcher:{thunk:pasteSelectedElementStyles}},copyElementsPositionItem={id:"copyElementsPositionItem",label:i18next.t("Copy position"),dispatcher:{thunk:copySelectedElementPosition}},pasteElementsPositionItem={id:"pasteElementsPositionItem",label:i18next.t("Paste position"),dispatcher:{thunk:pasteSelectedElementPosition}},copyElementsAnimationItem={id:"copyElementsAnimationItem",label:i18next.t("Copy animation"),dispatcher:{thunk:copySelectedElementAnimation}},pasteElementsAnimationItem={id:"pasteElementsAnimationItem",label:i18next.t("Paste animation"),dispatcher:{thunk:pasteSelectedElementAnimation}},duplicateElementsItem={id:"duplicateElementItem",label:i18next.t("Duplicate"),dispatcher:{thunk:duplicateSelectedElements},shortcuts:["Mod","D"]},removeElementsItem={id:"removeElementsItem",label:i18next.t("Delete"),dispatcher:{thunk:removeSelectedElements},shortcuts:["Del"]},modifyElementsItemsGroup={id:"modifyElementsItemsGroup",divider:"after",items:[copyElementsItem,pasteElementsItem,{id:"copyAndPasteSpecial",label:i18next.t("Copy/Paste special"),items:[copyElementsStyleItem,pasteElementsStyleItem,copyElementsPositionItem,pasteElementsPositionItem,copyElementsAnimationItem,pasteElementsAnimationItem],dependency:ea=>getSelectedElements(ea).length===1},duplicateElementsItem,removeElementsItem]},lockElementsItem={id:"lockElementsItem",label:i18next.t("Lock"),dispatcher:{thunk:()=>toggleSelectedElementsLock(!0)},dependency:ea=>!getSelectedElementsAllLocked(ea),shortcuts:["Mod","K"]},unlockElementsItem={id:"unlockElementsItem",label:i18next.t("Unlock"),dispatcher:{thunk:()=>toggleSelectedElementsLock(!1)},dependency:getSelectedElementsAllLocked,shortcuts:["Mod","K"]},lockAndUnlockItemsGroup={id:"lockAndUnlockItemsGroup",items:[lockElementsItem,unlockElementsItem]},groupElementsItem={id:"groupElementsItem",label:i18next.t("Group"),dispatcher:{thunk:groupSelectedElements},dependency:ea=>getSelectedElementsIsGroupable(ea)&&getSelectedElements(ea).length>1,shortcuts:["Mod","G"]},ungroupElementsItem={id:"ungroupElementsItem",label:i18next.t("Ungroup"),dispatcher:{thunk:ungroupSelectedElements},dependency:ea=>getSelectedElementsIsGrouped(ea)&&getSelectedElements(ea).length===1,shortcuts:["Mod","G"]},groupAndUngroupItemsGroup={id:"groupAndUngroupItemsGroup",items:[groupElementsItem,ungroupElementsItem],divider:"after"},bringForwardElementsItem={id:"bringForwardElementsItem",label:i18next.t("Bring forward"),dispatcher:{thunk:()=>changeSelectedElementsDepth("forward")},shortcuts:["Mod","]"]},bringFrontElementsItem={id:"bringFrontElementsItem",label:i18next.t("Bring to front"),dispatcher:{thunk:()=>changeSelectedElementsDepth("front")}},sendBackwardElementsItem={id:"sendBackwardElementsItem",label:i18next.t("Send backward"),dispatcher:{thunk:()=>changeSelectedElementsDepth("backward")},shortcuts:["Mod","["]},sendBackElementsItem={id:"sendBackElementsItem",label:i18next.t(" Send to back"),dispatcher:{thunk:()=>changeSelectedElementsDepth("back")}},arrangeElementsDepthItemsGroup={id:"arrangeElementsDepthItemsGroup",items:[bringForwardElementsItem,bringFrontElementsItem,sendBackwardElementsItem,sendBackElementsItem],divider:"after"},getSelectedElementsIsForeground=createSelector([getSelectedElementsData],ea=>Object.values(ea).some(na=>isForeground(na?.parent))),getSelectedElementsIsHideOnSection=createSelector([getSelectedElementsData,getActiveSection],(ea,na)=>Object.values(ea).some(ra=>ra.hideOnSections?.includes(na))),showElementsOnAllSlidesItem={id:"showElementsOnAllSlidesItem",label:i18next.t("Show on all {{sections}}",{sections:DocType.getLabel("sections")}),selector:getSelectedElementsIsForeground,defaultValue:!1,type:"checkbox",dispatcher:{thunk:toggleSelectedElementsShowOnAllSlides},dependency:ea=>getSelectedElements(ea).length===1},hideElementsOverSlideItem={id:"hideElementsOverSlideItem",label:i18next.t("Hide over this {{section}} ",{section:DocType.getLabel("section")}),selector:getSelectedElementsIsHideOnSection,defaultValue:!1,type:"checkbox",dispatcher:{thunk:toggleSelectedElementHideOnActiveSlide},dependency:ea=>getSelectedElementsIsForeground(ea)},foregroundItemsGroup={id:"foregroundItemsGroup",items:[showElementsOnAllSlidesItem,hideElementsOverSlideItem]},resetSelectedElementResponsivePosition=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getSelectedElementsPosition(ra),sa=getResponsiveValue(aa[oa],"default");ea(resetElements({ids:[oa],path:"position",value:{default:sa}}))},resetSelectedElementResponsiveSize=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],{cropData:aa,size:sa}=getSelectedElementsData(ra)[oa],la=getResponsiveValue(sa,"default");reactDomExports.unstable_batchedUpdates(()=>{if(ea(resetElements({ids:[oa],path:"size",value:{default:la}})),aa){const ca=getResponsiveValue(aa,"default");ea(resetElements({ids:[oa],path:"cropData",value:{default:ca}}))}})},resetSelectedElementResponsiveAnimation=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],aa=getSelectedElementsAnimation(ra),sa=aa[oa]?.in?.data,la=aa[oa]?.out?.data;reactDomExports.unstable_batchedUpdates(()=>{if(sa){const ca=getResponsiveValue(sa,"default");ea(resetElements({ids:[oa],path:"animation.in.data",value:{default:ca}}))}if(la){const ca=getResponsiveValue(la,"default");ea(resetElements({ids:[oa],path:"animation.out.data",value:{default:ca}}))}})},resetElementsPositionItem={id:"resetElementsPositionItem",label:i18next.t("Reset responsive positions"),dispatcher:{thunk:resetSelectedElementResponsivePosition}},resetElementsSizesItem={id:"resetElementsSizesItem",label:i18next.t("Reset responsive sizes"),dispatcher:{thunk:resetSelectedElementResponsiveSize}},resetElementsAnimationsItem={id:"resetElementsAnimationsItem",label:i18next.t("Reset responsive animations"),dispatcher:{thunk:resetSelectedElementResponsiveAnimation}},responsiveItemsGroup={id:"responsiveItemsGroup",items:[{id:"responsiveResets",label:i18next.t("Responsive"),items:[resetElementsPositionItem,resetElementsSizesItem,resetElementsAnimationsItem]}]},elementCommonContextMenuItems=[selectElementsGroup,modifyElementsItemsGroup,lockAndUnlockItemsGroup,groupAndUngroupItemsGroup,arrangeElementsDepthItemsGroup,foregroundItemsGroup,responsiveItemsGroup],SvgButton=ea=>reactExports.createElement("svg",{width:15,height:10,viewBox:"0 0 15 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M1.16804 0.996425C1.50399 0.738007 1.95052 0.589844 2.42716 0.589844H12.409C12.8856 0.589844 13.3322 0.738006 13.6681 0.996426C14.0045 1.25519 14.2463 1.64115 14.2463 2.0981V4.84038C14.2463 5.06755 14.0622 5.25172 13.835 5.25172C13.6078 5.25172 13.4236 5.06755 13.4236 4.84038V2.0981C13.4236 1.94924 13.3462 1.78674 13.1665 1.6485C12.9864 1.50992 12.7199 1.41253 12.409 1.41253H2.42716C2.11626 1.41253 1.84981 1.50992 1.66964 1.6485C1.48993 1.78675 1.41253 1.94925 1.41253 2.0981V5.38883C1.41253 5.53769 1.48993 5.70019 1.66964 5.83843C1.8498 5.97701 2.11625 6.0744 2.42716 6.0744H7.41808C7.64526 6.0744 7.82942 6.25856 7.82942 6.48574C7.82942 6.71292 7.64526 6.89708 7.41808 6.89708H2.42716C1.95052 6.89708 1.50399 6.74893 1.16805 6.49051C0.831655 6.23175 0.589844 5.84579 0.589844 5.38883V2.0981C0.589844 1.64114 0.831657 1.25519 1.16804 0.996425Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.1323 4.82337C9.8815 4.70467 9.59122 4.69882 9.35593 4.82555C9.10196 4.96236 8.93443 5.25345 9.02403 5.58932L9.91905 8.94369C10.0113 9.2893 10.3119 9.47835 10.5631 9.53983C10.8059 9.59923 11.1942 9.57827 11.4103 9.24432L12.1218 8.14496L13.7515 8.00288C13.9181 7.98833 14.0801 7.92698 14.2063 7.80732C14.3333 7.68686 14.4019 7.52761 14.4106 7.36378C14.4281 7.03547 14.216 6.7558 13.9239 6.61759L10.1323 4.82337ZM9.88242 5.61527L10.7103 8.71814C10.7194 8.72553 10.7359 8.7348 10.7566 8.7402L11.6497 7.36032L13.2713 7.21893L9.88242 5.61527Z"}),reactExports.createElement("path",{d:"M9.55511 4.15276C9.78228 4.15248 9.96622 3.9681 9.96595 3.74092C9.96567 3.51374 9.78128 3.3298 9.5541 3.33008L4.56318 3.33617C4.33601 3.33644 4.15207 3.52083 4.15234 3.74801C4.15262 3.97519 4.33701 4.15913 4.56419 4.15885L9.55511 4.15276Z"})),SvgControl=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M6.65841 0L9.05315 2.73684H4.26367L6.65841 0Z"}),reactExports.createElement("path",{d:"M6.65841 9.05315C7.98099 9.05315 9.05315 7.98099 9.05315 6.65841C9.05315 5.33583 7.98099 4.26367 6.65841 4.26367C5.33583 4.26367 4.26367 5.33583 4.26367 6.65841C4.26367 7.98099 5.33583 9.05315 6.65841 9.05315Z"}),reactExports.createElement("path",{d:"M2.73684 4.26326L0 6.658L2.73684 9.05273V4.26326Z"}),reactExports.createElement("path",{d:"M13 6.65841L10.2632 9.05315V4.26367L13 6.65841Z"}),reactExports.createElement("path",{d:"M4.26326 10.2632L6.658 13L9.05273 10.2632H4.26326Z"})),SvgElement$1=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9474 1.02632H2.05263C1.48581 1.02632 1.02632 1.48581 1.02632 2.05263V10.9474C1.02632 11.5142 1.48581 11.9737 2.05263 11.9737H10.9474C11.5142 11.9737 11.9737 11.5142 11.9737 10.9474V2.05263C11.9737 1.48581 11.5142 1.02632 10.9474 1.02632ZM2.05263 0C0.918995 0 0 0.918994 0 2.05263V10.9474C0 12.081 0.918994 13 2.05263 13H10.9474C12.081 13 13 12.081 13 10.9474V2.05263C13 0.918995 12.081 0 10.9474 0H2.05263ZM6.5 4C6.77614 4 7 4.22386 7 4.5V6H8.5C8.77614 6 9 6.22386 9 6.5C9 6.77614 8.77614 7 8.5 7H7V8.5C7 8.77614 6.77614 9 6.5 9C6.22386 9 6 8.77614 6 8.5V7H4.5C4.22386 7 4 6.77614 4 6.5C4 6.22386 4.22386 6 4.5 6H6V4.5C6 4.22386 6.22386 4 6.5 4Z"})),SvgGroup=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8.72368H1V10.9474C1 11.5287 1.47128 12 2.05263 12H4.27632V13H2.05263C0.918994 13 0 12.081 0 10.9474V8.72368ZM0 4.27632H1V2.05263C1 1.47128 1.47128 1 2.05263 1H4.27632V0H2.05263C0.918995 0 0 0.918994 0 2.05263V4.27632ZM8.72368 0V1H10.9474C11.5287 1 12 1.47128 12 2.05263V4.27632H13V2.05263C13 0.918995 12.081 0 10.9474 0H8.72368ZM13 8.72368H12V10.9474C12 11.5287 11.5287 12 10.9474 12H8.72368V13H10.9474C12.081 13 13 12.081 13 10.9474V8.72368Z"})),SvgImage=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.05263 1.02632H10.9474C11.5142 1.02632 11.9737 1.48581 11.9737 2.05263V10.9474C11.9737 11.5142 11.5142 11.9737 10.9474 11.9737H2.05263C1.48581 11.9737 1.02632 11.5142 1.02632 10.9474V2.05263C1.02632 1.48581 1.48581 1.02632 2.05263 1.02632ZM0 2.05263C0 0.918994 0.918995 0 2.05263 0H10.9474C12.081 0 13 0.918995 13 2.05263V10.9474C13 12.081 12.081 13 10.9474 13H2.05263C0.918994 13 0 12.081 0 10.9474V2.05263ZM5.42105 9.92044L5.42099 9.92033H10.8962L7.81723 5.13086L5.08444 9.38186L3.71053 7.18359L2 9.92044H5.42105ZM6.79019 4.10506C6.79019 5.04976 6.02436 5.81558 5.07967 5.81558C4.13497 5.81558 3.36914 5.04976 3.36914 4.10506C3.36914 3.16036 4.13497 2.39453 5.07967 2.39453C6.02436 2.39453 6.79019 3.16036 6.79019 4.10506Z"})),SvgText=ea=>reactExports.createElement("svg",{width:12,height:14,viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3484 0.500007L11.5 3.54868H11.116C11.0419 3.01181 10.9408 2.62833 10.8128 2.39823C10.604 2.02753 10.3261 1.7543 9.97912 1.57854C9.63216 1.40278 9.17573 1.3149 8.60983 1.3149H6.67969V11.2471C6.67969 12.046 6.77064 12.5445 6.95254 12.7426C7.20855 13.0111 7.60266 13.1453 8.13488 13.1453H8.60984V13.5H2.79921V13.1453H3.28427C3.86365 13.1453 4.2746 12.9791 4.51714 12.6468C4.66535 12.4422 4.73945 11.9757 4.73945 11.2471V1.3149H3.09226C2.45225 1.3149 1.99751 1.35964 1.72803 1.44912C1.37771 1.57055 1.07791 1.80384 0.828648 2.14897C0.579377 2.4941 0.431166 2.96067 0.384009 3.54867H0L0.16169 0.5L11.3484 0.500007Z"})),SvgVideo=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M2.2241 1.71094C1.94069 1.71094 1.71094 1.94069 1.71094 2.2241C1.71094 2.5075 1.94069 2.73725 2.2241 2.73725H3.25041C3.53382 2.73725 3.76357 2.5075 3.76357 2.2241C3.76357 1.94069 3.53382 1.71094 3.25041 1.71094H2.2241Z"}),reactExports.createElement("path",{d:"M1.71094 10.7768C1.71094 10.4934 1.94069 10.2637 2.2241 10.2637H3.25041C3.53382 10.2637 3.76357 10.4934 3.76357 10.7768C3.76357 11.0602 3.53382 11.29 3.25041 11.29H2.2241C1.94069 11.29 1.71094 11.0602 1.71094 10.7768Z"}),reactExports.createElement("path",{d:"M4.96238 1.71094C4.67897 1.71094 4.44922 1.94069 4.44922 2.2241C4.44922 2.5075 4.67897 2.73725 4.96238 2.73725H7.35711C7.64052 2.73725 7.87027 2.5075 7.87027 2.2241C7.87027 1.94069 7.64052 1.71094 7.35711 1.71094H4.96238Z"}),reactExports.createElement("path",{d:"M4.44922 10.7768C4.44922 10.4934 4.67897 10.2637 4.96238 10.2637H7.35711C7.64052 10.2637 7.87027 10.4934 7.87027 10.7768C7.87027 11.0602 7.64052 11.29 7.35711 11.29H4.96238C4.67897 11.29 4.44922 11.0602 4.44922 10.7768Z"}),reactExports.createElement("path",{d:"M9.06394 1.71094C8.78053 1.71094 8.55078 1.94069 8.55078 2.2241C8.55078 2.5075 8.78053 2.73725 9.06394 2.73725H10.5376C10.821 2.73725 11.0508 2.5075 11.0508 2.2241C11.0508 1.94069 10.821 1.71094 10.5376 1.71094H9.06394Z"}),reactExports.createElement("path",{d:"M8.55078 10.7768C8.55078 10.4934 8.78053 10.2637 9.06394 10.2637H10.5376C10.821 10.2637 11.0508 10.4934 11.0508 10.7768C11.0508 11.0602 10.821 11.29 10.5376 11.29H9.06394C8.78053 11.29 8.55078 11.0602 8.55078 10.7768Z"}),reactExports.createElement("path",{d:"M8.49342 6.45391C8.71973 6.3219 8.71973 5.99492 8.49342 5.86291L5.40922 4.06379C5.18115 3.93075 4.89474 4.09526 4.89474 4.35929V7.95753C4.89474 8.22156 5.18115 8.38607 5.40922 8.25303L8.49342 6.45391Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.05263C0 0.918994 0.918995 0 2.05263 0H10.9474C12.081 0 13 0.918995 13 2.05263V10.9474C13 12.081 12.081 13 10.9474 13H2.05263C0.918994 13 0 12.081 0 10.9474V2.05263ZM2.05263 1.02632H10.9474C11.5142 1.02632 11.9737 1.48581 11.9737 2.05263V10.9474C11.9737 11.5142 11.5142 11.9737 10.9474 11.9737H2.05263C1.48581 11.9737 1.02632 11.5142 1.02632 10.9474V2.05263C1.02632 1.48581 1.48581 1.02632 2.05263 1.02632Z"})),elementsMap=new Map,registerElement=ea=>{const{type:na}=ea;elementsMap.has(na)&&console.error(`This element is already registered: "${na}"`),elementsMap.set(na,ea)};function getElementComponent(ea){return elementsMap.has(ea)?elementsMap.get(ea).component:getElementComponent("text")}function getElementOptionControls(ea){return elementsMap.get(ea)?.optionControls}function getElementContextMenu(ea){return elementsMap.get(ea)?.contextMenu||elementCommonContextMenuItems}function getElement(ea,na){const ra=getElementComponent(ea),{id:oa}=na;return reactExports.createElement(ra,{...na,key:oa})}function getElementDefaultState(ea){return elementsMap.get(ea)?.defaultStateValues||elementDefaultCommonState}function getElementInitialState(ea){return elementsMap.get(ea)?.initialStateValues}function getElementName(ea){return elementsMap.get(ea).name}function getElementIcon(ea){return elementsMap.get(ea)?.icon||SvgElement$1}const initialState$9={},elements=createReducer(initialState$9,ea=>{ea.addCase(addElement,(na,{payload:ra})=>{const{data:oa,parent:aa,generatedId:sa=0}=ra,la=getId(sa,"element");increaseMaxTypeCount(oa.type),oa.parent=aa,oa.id=la,oa.name=generateName(oa.type,getElementName(oa.type)),isElement(aa)&&(na[aa].children||(na[aa].children=[]),na[aa].children.push(la)),na[la]=oa}),ea.addCase(removeElement,(na,{payload:ra})=>{const{id:oa,parent:aa}=ra;delElement(na,oa,aa)}),ea.addCase(removeElements,(na,{payload:ra})=>{ra.forEach(({id:oa,parent:aa})=>delElement(na,oa,aa))}),ea.addCase(duplicateElement,(na,{payload:ra})=>{cloneElement(na,ra.id,ra.newId,ra.parent,ra.shiftElements)}),ea.addCase(duplicateElements,(na,{payload:ra})=>{ra.forEach(({id:oa,parent:aa,newId:sa,shiftElements:la})=>cloneElement(na,oa,sa,aa,la))}),ea.addCase(updateElement,(na,{payload:ra})=>{const{id:oa,values:aa,assignTarget:sa,merge:la=!0}=ra;let ca=aa;if(sa&&!la){na[oa]=setWith(na[oa],sa,aa,Object);return}sa&&(ca=setWith({},sa,aa,Object)),na[oa]=deepmerge(na[oa],ca,{arrayMerge:(ua,da)=>da})}),ea.addCase(updateElements,(na,{payload:ra})=>{const{ids:oa,values:aa}=ra;oa.forEach((sa,la)=>{const ca=Array.isArray(aa)?aa[la]:aa;na[sa]=deepmerge(na[sa],ca,{arrayMerge:(ua,da)=>da})})}),ea.addCase(updateElementsByPath,(na,{payload:ra})=>{const{ids:oa,value:aa,values:sa,path:la,merge:ca}=ra;oa.forEach((ua,da)=>StoreAccessor.set(na[ua],la,Array.isArray(sa)?sa[da]:aa,ca))}),ea.addCase(toggleLockElements,(na,{payload:ra})=>{const{ids:oa,locked:aa}=ra,sa=la=>{na[la].locked=aa,na[la].children&&na[la].children.length>0&&na[la].children.forEach(ca=>{sa(ca)})};oa.forEach(la=>{sa(la)})}),ea.addCase(moveElement,(na,{payload:ra})=>{const{id:oa,target:aa,current:sa,index:la}=ra,ca=na[oa];let ua=-1;if(isElement(sa)&&(ua=na[sa].children.indexOf(oa),ua!==-1&&na[sa].children?.splice(ua,1)),isElement(aa)){const da=na[aa];da.children??=[],Object.values(ca.position).forEach(pa=>{pa.positionType=da.autoLayout?.enable?"static":"absolute"}),la===void 0?na[aa].children.push(oa):na[aa].children?.splice(ua!==-1&&ua<la?la-1:la,0,oa),na[aa].children?.forEach((pa,ha)=>{na[pa].depth=ha})}else(isSection(aa)||isForeground(aa))&&(na[oa].section=aa,Object.values(ca.position).forEach(da=>{da.positionType="absolute"}));na[oa].parent=aa}),ea.addCase(innerGroupElements,(na,{payload:ra})=>{const{elements:oa,parent:aa,generatedId:sa,section:la,parentBoundaries:ca,breakpoint:ua,groupOffset:da}=ra;let{groupData:pa={}}=ra;const ha=Object.keys(na),ga=[...oa];if(ga.sort((Ca,Sa)=>ha.indexOf(Ca)-ha.indexOf(Sa)),oa.includes(aa))throw new Error(`Parent ${aa} element is subset of the selected elements`);if(sa===void 0)throw new Error("An id is required for grouping layers");const fa=getId(sa,"element"),ma=`Group${fa.replace(/element-/g," ")}`;pa.id=fa,pa.parent=aa,pa.type="group",pa.children=[],pa.section=la,pa.wrap=!0,pa.visible={default:!0},pa.locked=!1,pa.name=ma.charAt(0).toUpperCase()+ma.slice(1);const{size:va,position:xa,boundaries:ya,depth:Aa}=da;pa.depth=Aa,pa.size={default:va},pa.position={default:xa},pa=deepmerge(pa,getElementInitialState("group")),isElement(aa)&&(na[aa].children||(na[aa].children=[]),na[aa].children.push(fa),oa.forEach(Ca=>{removeArrayIndex(na[aa].children,Ca)})),ga.forEach(Ca=>{pa.children.push(Ca);const Sa=na[Ca];Sa.parent=fa,Sa.hideOnSections=void 0,Sa.position={default:mapPosition(ca,ya,getResponsiveValue(Sa.position,ua))},Sa.wrap=!0}),na[fa]=pa}),ea.addCase(innerUngroupElements,(na,{payload:ra})=>{const{id:oa,parentBoundaries:aa,breakpoint:sa,computedValues:la,children:ca}=ra,ua=na[oa],{children:da=[],parent:pa}=ua,{position:ha,size:ga}=la;if(!ha||!ga)return;const fa=createBoundariesObject(ha,ga);if(ua.type!=="group")throw new Error("The given parent element is not a group");da.map(ma=>na[ma]).forEach(ma=>{ma.parent=pa,ma.position={default:{...mapPosition(fa,aa,getResponsiveValue(ma.position,sa)),positionType:"absolute"}}}),isElement(pa)&&(removeArrayIndex(na[pa].children,oa),na[pa].children.push(...ca)),delete na[oa]}),ea.addCase(resetElements,(na,{payload:ra})=>{const{ids:oa,path:aa,value:sa}=ra;oa.forEach(la=>{na[la]=setWith(na[la],aa,sa,Object)})}),ea.addCase(removeElementAction,(na,{payload:ra})=>{const{id:oa,actionID:aa}=ra,sa=na[oa];sa.actions&&delete sa.actions[aa]}),ea.addCase(updateUploadedMediaID,(na,{payload:ra})=>{const{id:oa,value:aa}=ra,la=Object.keys(na).find(ca=>na[ca]?.options?.source===oa);na[la]=deepmerge(na[la],{options:{source:`${aa}`}})})}),initialState$8={},sections=createReducer(initialState$8,ea=>{ea.addCase(addSection,(na,{payload:ra})=>{const oa=generateId("section");increaseMaxTypeCount("section"),ra.id=oa,ra.name=generateName("section","Slide"),ra.type="section",na[oa]=ra}).addCase(renameSection,(na,{payload:ra})=>{const{name:oa,id:aa}=ra;na[aa].name=oa}).addCase(updateSectionThumbnail,(na,{payload:ra})=>{const{id:oa,thumbnail:aa}=ra;na[oa].thumbnail={...na[oa].thumbnail,...aa}}).addCase(removeSectionThumbnail,(na,{payload:ra})=>{const{id:oa}=ra;delete na[oa].thumbnail}).addCase(clearSectionWrapperSize,(na,{payload:ra})=>{const{id:oa,breakpoint:aa}=ra;delete na[oa].wrapperSize?.[aa]}).addCase(addElement,(na,{payload:ra})=>{const{parent:oa,generatedId:aa=0}=ra;isSection(oa)&&na[oa].elements.push(getId(aa,"element"))}).addCase(removeElement,(na,{payload:ra})=>{const{parent:oa,id:aa}=ra;isSection(oa)&&removeArrayIndex(na[oa].elements,aa)}).addCase(removeElements,(na,{payload:ra})=>{ra.forEach(({id:oa,parent:aa})=>{isSection(aa)&&removeArrayIndex(na[aa].elements,oa)})}).addCase(moveElement,(na,{payload:ra})=>{const{id:oa,target:aa,current:sa,index:la}=ra;let ca=-1;isSection(sa)&&(ca=na[sa].elements.indexOf(oa),ca!==-1&&na[sa].elements?.splice(ca,1)),isSection(aa)&&(la===void 0?na[aa].elements.push(oa):na[aa].elements?.splice(ca<la?la-1:la,0,oa))}).addCase(duplicateElement,(na,{payload:ra})=>{const{parent:oa,newId:aa}=ra;isSection(oa)&&na[oa].elements.push(aa)}).addCase(duplicateElements,(na,{payload:ra})=>{ra.forEach(({parent:oa,newId:aa})=>{isSection(oa)&&na[oa].elements.push(aa)})}).addCase(innerGroupElements,(na,{payload:ra})=>{const{elements:oa,parent:aa,generatedId:sa=0}=ra;isSection(aa)&&(na[aa].elements.push(getId(sa,"element")),oa.forEach(la=>{removeArrayIndex(na[aa].elements,la)}))}).addCase(innerUngroupElements,(na,{payload:ra})=>{const{parent:oa,id:aa,children:sa}=ra;isSection(oa)&&(removeArrayIndex(na[oa].elements,aa),na[oa].elements.push(...sa))}).addCase(updateSection,(na,{payload:ra})=>{const{id:oa,value:aa,assignTarget:sa,merge:la=!0}=ra;let ca=aa;if(sa&&!la){na[oa]=setWith(na[oa],sa,aa,Object);return}sa&&(ca=setWith({},sa,aa,Object)),na[oa]=deepmerge(na[oa],ca,{arrayMerge:(ua,da)=>da})}).addCase(updateSectionByPath,(na,{payload:ra})=>{const{id:oa,value:aa,path:sa,merge:la,breakpoint:ca}=ra;StoreAccessor.set(na[oa],sa,aa,la,ca)}).addCase(removeSectionAction,(na,{payload:ra})=>{const{id:oa,actionID:aa}=ra,sa=na[oa];sa.actions&&delete sa.actions[aa]}).addCase(removeDataSource,(na,{payload:ra})=>{const{id:oa}=ra,aa=na[oa];aa.dataSource&&delete aa.dataSource})}),initialState$7={sectionLayout:"boxed",wrapperSize:{},wrapperSideSpace:0,general:{},navigator:{},sectionTransition:{type:"basic",options:{}}},optionsSlice=createSlice({name:"options",initialState:initialState$7,reducers:{updateDocumentOptionsByPath(ea,na){const{value:ra,path:oa,merge:aa,bp:sa}=na.payload;StoreAccessor.set(ea,oa,ra,aa,sa)}}}),{updateDocumentOptionsByPath}=optionsSlice.actions,options$a=optionsSlice.reducer,initialState$6=[],foregroundElementsSlice=createSlice({name:"fixedElements",initialState:initialState$6,reducers:{},extraReducers:ea=>{ea.addCase(addElement,(na,{payload:ra})=>{const{parent:oa,generatedId:aa=0}=ra;isForeground(oa)&&na.push(getId(aa,"element"))}).addCase(moveElement,(na,{payload:ra})=>{const{id:oa,target:aa,current:sa}=ra;isForeground(sa)&&removeArrayIndex(na,oa),isForeground(aa)&&na.push(oa)}).addCase(removeElement,(na,{payload:ra})=>{const{parent:oa,id:aa}=ra;isForeground(oa)&&removeArrayIndex(na,aa)}).addCase(removeElements,(na,{payload:ra})=>{ra.forEach(({id:oa,parent:aa})=>{isForeground(aa)&&removeArrayIndex(na,oa)})}).addCase(duplicateElement,(na,{payload:ra})=>{const{parent:oa,newId:aa}=ra;isForeground(oa)&&na.push(aa)}).addCase(duplicateElements,(na,{payload:ra})=>{ra.forEach(({parent:oa,newId:aa})=>{isForeground(oa)&&na.push(aa)})}).addCase(innerGroupElements,(na,{payload:ra})=>{const{elements:oa,parent:aa,generatedId:sa=0}=ra;isForeground(aa)&&na.push(getId(sa,"element")),oa.forEach(la=>{removeArrayIndex(na,la)})}).addCase(innerUngroupElements,(na,{payload:ra})=>{const{parent:oa,id:aa,children:sa}=ra;isForeground(oa)&&(removeArrayIndex(na,aa),na.push(...sa))})}}),foregroundElements=foregroundElementsSlice.reducer,injectDocument=createAction("document/injectDocument"),updateDocument=createAction("document/updateDocument"),updateDocumentType=createAction("document/updateDocumentType"),{initialState:initialState$5}=DocType.configs,lastIdSlice=createSlice({name:"lastId",initialState:0,reducers:{updateLastID(ea,{payload:na}){return na}}}),sectionsListSlice=createSlice({name:"sectionList",initialState:[],reducers:{addToSectionList(ea,{payload:na}){ea.push(na)},reorderSectionList(ea,{payload:na}){return na},removeFromSectionList(ea,{payload:na}){removeArrayIndex(ea,na)}}}),reducer$5=combineReducers({lastId:lastIdSlice.reducer,sectionsList:sectionsListSlice.reducer,elements,sections,foregroundElements,options:options$a,meta,env}),documentReducer=createReducer(initialState$5,ea=>{ea.addCase(duplicateSection,(na,{payload:ra})=>{const{id:oa}=ra,aa=generateId("section");increaseMaxTypeCount("section");const sa=na.sections[oa],la={...deepmerge({},sa),id:aa,name:generateName("section","Slide")};la.elements=la.elements.map(ca=>cloneElement(na.elements,ca,void 0,aa,!1,aa)),na.sections[aa]=la,na.sectionsList.splice(na.sectionsList.indexOf(oa)+1,0,aa),na.env.activeSection=aa}).addCase(removeSection,(na,{payload:ra})=>{const{id:oa}=ra,aa=na.sections[oa];aa.elements.forEach(ca=>delElement(na.elements,ca,aa.id)),delete na.sections[oa];const sa=na.sectionsList.indexOf(oa);if(na.sectionsList.filter(ca=>ca!==oa&&na.sections[ca]&&na.sections[ca].type!=="teaser").length===0){const ca=generateId("section");increaseMaxTypeCount("section");const ua={...emptySectionState,id:ca,name:generateName("section","Slide"),wrapperSize:{...na.options.wrapperSize}};na.sections[ca]=ua,na.env.activeSection=ca,removeArrayIndex(na.sectionsList,oa);const da=na.sectionsList.filter(pa=>na.sections[pa]&&na.sections[pa].type==="teaser");da.length>0?na.sectionsList=[...da,ca]:na.sectionsList=[ca]}else{const ca=na.sectionsList.filter(da=>da!==oa),ua=ca.findIndex(da=>na.sections[da]&&na.sections[da].type!=="teaser");ua>=0?na.env.activeSection=ca[ua]:sa>0?na.env.activeSection=na.sectionsList[sa-1]:sa<na.sectionsList.length-1&&(na.env.activeSection=na.sectionsList[sa+1]),removeArrayIndex(na.sectionsList,oa)}}).addCase(injectDocument,(na,{payload:ra})=>{const{preloadedState:oa}=ra;return fillTypeCounts(Object.values(oa.elements).map(({name:aa="Element 1",type:sa})=>({name:aa,type:sa}))),fillTypeCounts(Object.values(oa.sections).map(({name:aa=`${DocType.getLabel("section",!0)} 1`})=>({name:aa,type:"section"}))),oa}).addCase(updateDocument,(na,{payload:ra})=>{const{value:oa}=ra;return deepmerge(na,oa,{arrayMerge:(aa,sa)=>sa})}).addCase(updateDocumentType,(na,{payload:ra})=>{na.meta.documentType=ra})}),{updateLastID}=lastIdSlice.actions,{addToSectionList,reorderSectionList}=sectionsListSlice.actions,documentSlice=(ea=initialState$5,na)=>{na?.payload?.generateId&&(na.payload.generatedId=generateId("number"));const ra=documentReducer(ea,na);return reducer$5(ra,na)},rootReducer=combineReducers({document:reundo(documentSlice,{limit:50,skipUnchanged:!0,filter:ea=>!!ea?.payload?.undoable}),editor,computedValues}),store=configureStore({reducer:rootReducer,devTools:!1,middleware:ea=>[...ea({immutableCheck:!1}),StoreAccessor.middleware]});setId(store.getState().document.lastId);window.getState=()=>store.getState();window.accessor=StoreAccessor;const initialData$1={isLoading:!1,isChanged:!1,page:"displayConditions",visibilitySchedule:{enable:!1},triggers:{click:{enable:!1,name:"interact",params:{event:"click",selector:""}},waitForHover:{enable:!1,name:"waitForHover",params:{selector:"",time:0}},scroll:{enable:!1,name:"scroll",params:{percentage:0}},scrollToElement:{enable:!1,name:"scrollToElement",params:{selector:""}},wait:{enable:!1,name:"wait",params:{duration:0}},inactivity:{enable:!1,name:"inactivity",params:{duration:0}},exitIntent:{enable:!1,name:"exitIntent"}},afterClose:{displayAgain:"never",displayAgainPeriod:0,displayAgainPeriodType:"m"},displayConditions:{[nanoid$1()]:{matchingMode:"all",order:1,operator:"and",conditions:{}}},conditions:{},lastHistory:{}},reducer$4=(ea,{type:na,payload:ra})=>{let oa;switch(na){case"setIsChanged":oa={...ea,isChanged:ra};break;case"setIsLoading":oa={...ea,isLoading:ra};break;case"load":oa={...ea,...ra.displayRules,conditions:ra.conditions||{},lastHistory:isEmpty(ra.displayRules)?{triggers:initialData$1.triggers,afterClose:initialData$1.afterClose,visibilitySchedule:initialData$1.visibilitySchedule,displayConditions:initialData$1.displayConditions}:ra.displayRules};break;case"updatePage":oa={...ea,page:ra};break;case"updateVisibilitySchedule":oa={...ea,visibilitySchedule:{...ea.visibilitySchedule,...ra},isChanged:!0};break;case"updateTriggers":oa={...ea,triggers:{...ea.triggers,[ra.type]:merge$1({},ea.triggers[ra.type],ra.value)},isChanged:!0};break;case"updateAfterClose":oa={...ea,afterClose:{...ea.afterClose,...ra},isChanged:!0};break;case"updateDisplayConditionGroup":oa={...ea,displayConditions:{...ea.displayConditions,[ra.id]:{...ea.displayConditions[ra.id],...ra.value}},isChanged:!0};break;case"addConditionGroup":{const aa=Object.keys(ea.displayConditions).length+1;oa={...ea,displayConditions:{...ea.displayConditions,[ra]:{matchingMode:"all",order:aa+1,operator:"and",conditions:{}}},isChanged:!0}}break;case"deleteConditionGroup":{const aa={...ea.displayConditions};delete aa[ra];const sa=Object.keys(aa).length;oa={...ea,displayConditions:sa===0?{[nanoid$1()]:{matchingMode:"all",order:1,operator:"and",conditions:{}}}:aa,isChanged:!0}}break;case"addCondition":{const aa=ea.displayConditions[ra.groupId];aa.conditions[ra.id]={id:ra.id,selectionMode:"include",slug:""},oa={...ea,displayConditions:{...ea.displayConditions,[ra.groupId]:aa},isChanged:!0}}break;case"deleteCondition":{const aa=ea.displayConditions[ra.groupId];delete aa.conditions[ra.id],oa={...ea,displayConditions:{...ea.displayConditions,[ra.groupId]:aa},isChanged:!0}}break;case"updateConditionData":{const aa=ea.displayConditions[ra.groupId];let sa=aa.conditions[ra.id];sa={...sa,...ra.value},oa={...ea,displayConditions:{...ea.displayConditions,[ra.groupId]:{...aa,conditions:{...aa.conditions,[ra.id]:sa}}},isChanged:!0}}break;case"discardData":oa={...ea,...ra,isChanged:!1};break;case"updateLastHistoryData":oa={...ea,lastHistory:ra};break;default:oa=ea}return oa},DisplayRulesContext=reactExports.createContext([initialData$1,()=>{}]),RequestContext=reactExports.createContext(null),useRequest=(ea,na={})=>{const{initialStatus:ra="loading",onSuccess:oa,onError:aa,customAxiosInstance:sa,onRequest:la,errorHandling:ca=!1,successDelay:ua=0}=na,da=reactExports.useContext(RequestContext),pa=sa||da,[ha,ga]=reactExports.useState(ra),[fa,ma]=reactExports.useState(void 0),[va,xa]=reactExports.useState(void 0),[ya,Aa]=reactExports.useState(null),Ca=reactExports.useMemo(()=>({status:ha,data:fa,error:va}),[ha,fa,va]),Sa=reactExports.useCallback(wa=>{ga("loading");const ba=Axios.CancelToken.source();Aa(ba);const Ea={...ea(wa),cancelToken:ba.token,skipErrorHandling:ca};return la?.(),pa?.request(Ea).then($a=>{ma($a.data),oa&&oa($a.data,wa),setTimeout(()=>{ga("success")},ua)}).catch($a=>{Axios.isCancel($a)||(xa($a),aa&&aa($a),ga("failed"))})},[ea,ca,la,pa,oa,ua,aa]);return reactExports.useEffect(()=>()=>{ya&&ya.cancel()},[ya]),[Sa,Ca]},DisplayRulesProvider=ea=>{const{children:na,documentId:ra}=ea,[oa,aa]=reactExports.useReducer(reducer$4,initialData$1),sa=reactExports.useMemo(()=>[oa,aa],[oa]),la=reactExports.useCallback(da=>{aa({type:"load",payload:da})},[]),[ca,{status:ua}]=useRequest(loadDisplayRules,{onSuccess:la,onError:console.log});return reactExports.useEffect(()=>{aa({type:"setIsLoading",payload:ua!=="success"})},[ua]),reactExports.useEffect(()=>{ca({ID:ra})},[ra,ca]),jsxRuntimeExports.jsx(DisplayRulesContext.Provider,{value:sa,children:na})},ModalsManager$1=({children:ea})=>{const[na,ra]=reactExports.useState([]);return jsxRuntimeExports.jsx(ModalContext.Provider,{value:{modalsStack:na,setModalsStack:ra},children:ea})},scriptRel="modulepreload",assetsURL=function(ea,na){return new URL(ea,na).href},seen={},__vitePreload=function(na,ra,oa){let aa=Promise.resolve();if(ra&&ra.length>0){const la=document.getElementsByTagName("link"),ca=document.querySelector("meta[property=csp-nonce]"),ua=ca?.nonce||ca?.getAttribute("nonce");aa=Promise.allSettled(ra.map(da=>{if(da=assetsURL(da,oa),da in seen)return;seen[da]=!0;const pa=da.endsWith(".css"),ha=pa?'[rel="stylesheet"]':"";if(!!oa)for(let ma=la.length-1;ma>=0;ma--){const va=la[ma];if(va.href===da&&(!pa||va.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${da}"]${ha}`))return;const fa=document.createElement("link");if(fa.rel=pa?"stylesheet":scriptRel,pa||(fa.as="script"),fa.crossOrigin="",fa.href=da,ua&&fa.setAttribute("nonce",ua),document.head.appendChild(fa),pa)return new Promise((ma,va)=>{fa.addEventListener("load",ma),fa.addEventListener("error",()=>va(new Error(`Unable to preload CSS for ${da}`)))})}))}function sa(la){const ca=new Event("vite:preloadError",{cancelable:!0});if(ca.payload=la,window.dispatchEvent(ca),!ca.defaultPrevented)throw la}return aa.then(la=>{for(const ca of la||[])ca.status==="rejected"&&sa(ca.reason);return na().catch(sa)})},d=()=>typeof window<"u"&&!!window.HTMLDialogElement,l=()=>typeof document<"u"&&document.head;let c=0;const i=reactExports.forwardRef((ea,na)=>{let{onClose:ra=()=>{},onCancel:oa=()=>{},children:aa,open:sa,_rd:la,_md:ca,...ua}=ea;return reactExports.useEffect(()=>{if(l()&&!d()){if(c<=0){const da=document.createElement("style");da.innerHTML="dialog:not([open]){display: none;}",da.id="_rdp",document.head.appendChild(da)}return c++,()=>{if(c--,!l()||c>0)return;const da=document.getElementById("_rdp");da&&document.head.removeChild(da)}}},[]),reactExports.useEffect(()=>{const da=na.current;da&&la&&da.open!==sa&&(sa?ca?()=>da.showModal():()=>da.show():()=>da.close())()},[la,sa,na,ca]),React.createElement("dialog",Object.assign({},ua,{onCancel:da=>{da.preventDefault(),oa(da,na.current)},onClose:da=>{ra(da,na.current)},ref:na}),aa)}),a=ea=>{const na=reactExports.createRef(),[ra,oa]=reactExports.useState();return reactExports.useEffect(()=>{const aa=na.current;if(ra||!aa)return;let sa=!0;return(d()?Promise.resolve():__vitePreload(()=>import("./assets/dialog-polyfill.esm-CJ3wiS-d.js"),[],import.meta.url)).then(la=>{la&&la.default.registerDialog(aa)}).catch(la=>{}).finally(()=>{sa&&oa(!0)}),()=>sa=!1},[na,ra]),React.createElement(i,Object.assign({},ea,{_rd:ra,ref:na}))},s=ea=>React.createElement(a,Object.assign({},ea,{_md:!0})),Modal$2=s,SvgClose$1=ea=>reactExports.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"cross small"},reactExports.createElement("path",{id:"Rectangle 1891",fillRule:"evenodd",clipRule:"evenodd",d:"M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z"}),reactExports.createElement("path",{id:"Rectangle 1883",fillRule:"evenodd",clipRule:"evenodd",d:"M4.8184 5.46445C4.62314 5.26919 4.62313 4.95261 4.8184 4.75735C5.01366 4.56209 5.33024 4.56209 5.5255 4.75735L13.3037 12.5355C13.4989 12.7308 13.4989 13.0474 13.3037 13.2426C13.1084 13.4379 12.7918 13.4379 12.5966 13.2426L4.8184 5.46445Z"}),reactExports.createElement("path",{id:"Rectangle 1884",fillRule:"evenodd",clipRule:"evenodd",d:"M12.4755 4.75736C12.6708 4.5621 12.9874 4.5621 13.1827 4.75736C13.3779 4.95262 13.3779 5.26921 13.1827 5.46447L5.40448 13.2426C5.20922 13.4379 4.89264 13.4379 4.69737 13.2426C4.50211 13.0474 4.50211 12.7308 4.69737 12.5355L12.4755 4.75736Z"}))),defaultColors$1O={backdrop:"rgba(34, 34, 34, 0.9)",background:"#222222",border:"#000000",shadow:"rgba(0, 0, 0, 0.25)",color:"#FFF",closeButton:{background:"#3C3C3C",icon:"#FFF",hover:{background:"#FFF",icon:"#3C3C3C"}}},colors$1O={dark:defaultColors$1O,light:{backdrop:"rgba(250, 250, 250, 0.9)",background:"#FFFFFF",border:"#E6E6E6",shadow:"rgba(0, 0, 0, 0.1)",color:"#000000",closeButton:{background:"#FFF",icon:"#3C3C3C",hover:{background:"#3C3C3C",icon:"#FFF"}}}},defaultSizing$1y={borderRadius:"5px"},sizes$1O={default:defaultSizing$1y},scheme$1k=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1O,sizes:sizes$1O},Symbol.toStringTag,{value:"Module"})),theme$3k=withTheme(scheme$1k),CloseButton$2=dt$1(IconButton).attrs({icon:jsxRuntimeExports.jsx(SvgClose$1,{})}).withConfig({displayName:"CloseButton",componentId:"sc-193m0wk-0"})(["",""],theme$3k.colors(ea=>lt$1(["svg > g > path{fill:",";&:first-of-type{fill:",";}}&:hover{svg > g > path{fill:",";&:first-of-type{fill:",";}}}"],ea.closeButton.icon,ea.closeButton.background,ea.closeButton.hover.icon,ea.closeButton.hover.background))),ContentsWrapper=dt$1.div.withConfig({displayName:"Modal__ContentsWrapper",componentId:"sc-zvlnaa-0"})([""]),ButtonsContainer$3=dt$1.div.withConfig({displayName:"Modal__ButtonsContainer",componentId:"sc-zvlnaa-1"})([""]),Modal=ea=>{const{index:na,children:ra,className:oa,extraButtons:aa,closeButton:sa=CloseButton$2,renderOnOpen:la=!0,clickOverlayClose:ca=!0,escClose:ua=!0,onOpen:da}=ea,{activeModal:pa,closeModal:ha}=useModal(),ga=pa.id===na,fa=reactExports.useRef();reactExports.useEffect(()=>{ga&&(da?.(),pa?.onOpen?.())},[da,ga,pa]);const ma=reactExports.useCallback(()=>{ga&&(ha(pa.id),pa?.onClose?.())},[ga,ha,pa]);useOnClickOutside(fa,()=>{ca&&ma()});const va=({id:xa,button:ya})=>jsxRuntimeExports.jsx(ya,{},xa);return jsxRuntimeExports.jsx(Modal$2,{className:oa,open:ga,onCancel:()=>{ua&&ma()},children:jsxRuntimeExports.jsxs(ContentsWrapper,{ref:xa=>{xa&&(fa.current=xa)},children:[jsxRuntimeExports.jsxs(ButtonsContainer$3,{className:"ms-modal-buttons-container",children:[!!sa&&jsxRuntimeExports.jsx(sa,{onClick:()=>ma()}),aa?.map(va)]}),(!la||ga)&&ra]})})},theme$3j=withTheme(scheme$1k);Modal.defaultProps={clickOverlayClose:!0};const Modal$1=dt$1(Modal).withConfig({displayName:"Modal",componentId:"sc-zvlnaa-2"})(["position:fixed;padding:0;margin:0;top:50%;left:50%;transform:translate(-50%,-50%);","{display:flex;flex-direction:row-reverse;position:absolute;right:",";top:",";z-index:1;}& + .backdrop{height:100vh;position:fixed;width:100vw;top:0;left:0;}"," "," ",""],ButtonsContainer$3,ea=>ea?.buttonsPosition?.x||"10px",ea=>ea?.buttonsPosition?.y||"10px",theme$3j.colors(ea=>lt$1(["background:",";border:1px solid ",";box-shadow:2px 10px 25px ",";color:",";&::backdrop,& + .backdrop{background-color:",";}"],ea.background,ea.border,ea.shadow,ea.color,ea.backdrop)),theme$3j.sizes(ea=>lt$1(["border-radius:",";"],ea.borderRadius)),ea=>lt$1(["",""],ea.backgroundColor?`background-color: ${ea.backgroundColor};`:""));function e(ea){this.message=ea}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(ea){var na=String(ea).replace(/=+$/,"");if(na.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var ra,oa,aa=0,sa=0,la="";oa=na.charAt(sa++);~oa&&(ra=aa%4?64*ra+oa:oa,aa++%4)?la+=String.fromCharCode(255&ra>>(-2*aa&6)):0)oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(oa);return la};function t(ea){var na=ea.replace(/-/g,"+").replace(/_/g,"/");switch(na.length%4){case 0:break;case 2:na+="==";break;case 3:na+="=";break;default:throw"Illegal base64url string!"}try{return function(ra){return decodeURIComponent(r(ra).replace(/(.)/g,function(oa,aa){var sa=aa.charCodeAt(0).toString(16).toUpperCase();return sa.length<2&&(sa="0"+sa),"%"+sa}))}(na)}catch{return r(na)}}function n(ea){this.message=ea}function o(ea,na){if(typeof ea!="string")throw new n("Invalid token specified");var ra=(na=na||{}).header===!0?0:1;try{return JSON.parse(t(ea.split(".")[ra]))}catch(oa){throw new n("Invalid token specified: "+oa.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const initialValue={isAuthorized:!1,adapter:"default",requestConfigs:{loginByGoogleUrl:"",loginByGoogle:()=>({}),loginByRemote:()=>({}),registerByRemote:()=>({}),logoutByRemote:()=>({})},setAuthenticationData:()=>{}},AuthenticationContext=reactExports.createContext(initialValue);function useLoadGsiScript(ea={}){const{onScriptLoadSuccess:na,onScriptLoadError:ra}=ea,[oa,aa]=reactExports.useState(!1),sa=reactExports.useRef(na);sa.current=na;const la=reactExports.useRef(ra);return la.current=ra,reactExports.useEffect(()=>{const ca=document.createElement("script");return ca.src="https://accounts.google.com/gsi/client",ca.async=!0,ca.defer=!0,ca.onload=()=>{var ua;aa(!0),(ua=sa.current)===null||ua===void 0||ua.call(sa)},ca.onerror=()=>{var ua;aa(!1),(ua=la.current)===null||ua===void 0||ua.call(la)},document.body.appendChild(ca),()=>{document.body.removeChild(ca)}},[]),oa}const GoogleOAuthContext=reactExports.createContext(null);function GoogleOAuthProvider({clientId:ea,onScriptLoadSuccess:na,onScriptLoadError:ra,children:oa}){const aa=useLoadGsiScript({onScriptLoadSuccess:na,onScriptLoadError:ra}),sa=reactExports.useMemo(()=>({clientId:ea,scriptLoadedSuccessfully:aa}),[ea,aa]);return React.createElement(GoogleOAuthContext.Provider,{value:sa},oa)}function useGoogleOAuth(){const ea=reactExports.useContext(GoogleOAuthContext);if(!ea)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return ea}function useGoogleLogin({flow:ea="implicit",scope:na="",onSuccess:ra,onError:oa,...aa}){const{clientId:sa,scriptLoadedSuccessfully:la}=useGoogleOAuth(),ca=reactExports.useRef(),ua=reactExports.useRef(ra);ua.current=ra;const da=reactExports.useRef(oa);da.current=oa,reactExports.useEffect(()=>{var ga;if(!la)return;const fa=ea==="implicit"?"initTokenClient":"initCodeClient",ma=(ga=window.google)===null||ga===void 0?void 0:ga.accounts.oauth2[fa]({client_id:sa,scope:`openid profile email ${na}`,callback:va=>{var xa,ya;if(va.error)return(xa=da.current)===null||xa===void 0?void 0:xa.call(da,va);(ya=ua.current)===null||ya===void 0||ya.call(ua,va)},...aa});ca.current=ma},[sa,la,ea,na]);const pa=reactExports.useCallback(ga=>ca.current.requestAccessToken(ga),[]),ha=reactExports.useCallback(()=>ca.current.requestCode(),[]);return ea==="implicit"?pa:ha}const set$2=ea=>ea,get$3=()=>browserEnv?.tokens,remove$2=()=>{},adapter$3={set:set$2,get:get$3,remove:remove$2};/*! js-cookie v3.0.5 | MIT */function assign(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)ea[oa]=ra[oa]}return ea}var defaultConverter={read:function(ea){return ea[0]==='"'&&(ea=ea.slice(1,-1)),ea.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(ea){return encodeURIComponent(ea).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(ea,na){function ra(aa,sa,la){if(!(typeof document>"u")){la=assign({},na,la),typeof la.expires=="number"&&(la.expires=new Date(Date.now()+la.expires*864e5)),la.expires&&(la.expires=la.expires.toUTCString()),aa=encodeURIComponent(aa).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var ca="";for(var ua in la)la[ua]&&(ca+="; "+ua,la[ua]!==!0&&(ca+="="+la[ua].split(";")[0]));return document.cookie=aa+"="+ea.write(sa,aa)+ca}}function oa(aa){if(!(typeof document>"u"||arguments.length&&!aa)){for(var sa=document.cookie?document.cookie.split("; "):[],la={},ca=0;ca<sa.length;ca++){var ua=sa[ca].split("="),da=ua.slice(1).join("=");try{var pa=decodeURIComponent(ua[0]);if(la[pa]=ea.read(da,pa),aa===pa)break}catch{}}return aa?la[aa]:la}}return Object.create({set:ra,get:oa,remove:function(aa,sa){ra(aa,"",assign({},sa,{expires:-1}))},withAttributes:function(aa){return init(this.converter,assign({},this.attributes,aa))},withConverter:function(aa){return init(assign({},this.converter,aa),this.attributes)}},{attributes:{value:Object.freeze(na)},converter:{value:Object.freeze(ea)}})}var api=init(defaultConverter,{path:"/"});const cookieConfig={secure:!0,domain:"depicter.com"},set$1=(ea,na)=>(api.set("depicterTokens",JSON.stringify(ea),{...cookieConfig,expires:na?365:1}),ea),get$2=()=>{if(api.get("depicterTokens"))return JSON.parse(api.get("depicterTokens"))},remove$1=()=>{api.remove("depicterTokens",cookieConfig)},adapter$2={set:set$1,get:get$2,remove:remove$1},set=ea=>(localStorage.setItem("depicterTokens",JSON.stringify(ea)),ea),get$1=()=>{if(localStorage.getItem("depicterTokens"))return JSON.parse(localStorage.getItem("depicterTokens"))},remove=()=>{localStorage.removeItem("depicterTokens")},adapter$1={set,get:get$1,remove},adapters$1=new Map,getAuthenticationAdapter=ea=>adapters$1.get(ea);adapters$1.set("default",adapter$3);adapters$1.set("cookie",adapter$2);adapters$1.set("localStorage",adapter$1);const AuthenticationProvider=ea=>{const{children:na,requestConfigs:ra,adapter:oa,authenticateBy:aa="accessToken"}=ea,la=getAuthenticationAdapter(oa).get(),ca=aa==="idToken"?la?.idToken:la?.accessToken,[ua,da]=reactExports.useState({adapter:oa,isAuthorized:!!ca,requestConfigs:ra,tokens:la,tokenPayload:ca?o(ca):void 0});return jsxRuntimeExports.jsx(AuthenticationContext.Provider,{value:{...ua,setAuthenticationData:da},children:jsxRuntimeExports.jsx(GoogleOAuthProvider,{clientId:browserEnv.googleClientId,children:na})})},TrackingContext=reactExports.createContext({data:{},dispatch:()=>{}}),load=async ea=>{const na=localStorage.getItem("dpDataLayer");if(!na)return{};const ra=JSON.parse(na);return ra[ea]?ra[ea]:{}},save=async(ea,na)=>{try{const ra=localStorage.getItem("dpDataLayer"),oa=ra?JSON.parse(ra):{};return oa[na]=ea,localStorage.setItem("dpDataLayer",JSON.stringify(oa)),!0}catch{return!1}},adapter={save,load},adapters=new Map;adapters.set("localStorage",adapter);const updateDataTracking=createAction("tracking/update"),TrackingProvider=({initialState:ea,children:na,reducers:ra,adapter:oa,id:aa})=>{const sa=adapters.get(oa),[la,ca]=reactExports.useReducer(ra,ea);return reactExports.useEffect(()=>{(async()=>{const da=await sa?.load(aa);isEmpty(da)||ca(updateDataTracking(da))})()},[sa,aa]),reactExports.useEffect(()=>{(async()=>{await sa?.save(la,aa)})()},[la,sa,aa]),jsxRuntimeExports.jsx(TrackingContext.Provider,{value:{data:la,dispatch:ca},children:na})},RequestProvider=RequestContext.Provider,clipPaths=`<svg width="0" height="0" xmlns="http://www.w3.org/2000/svg"><clipPath id="dpc_frame_0" clipPathUnits="objectBoundingBox"><path d="M0,0 L1,0 L1,1 L0,1"></path></clipPath><clipPath id="dpc_frame_1" clipPathUnits="objectBoundingBox"><path d="M0.042,0 L0.958,0 C0.981,0,1,0.019,1,0.042 L1,0.958 C1,0.981,0.981,1,0.958,1 L0.042,1 C0.019,1,0,0.981,0,0.958 L0,0.042 C0,0.019,0.019,0,0.042,0"></path></clipPath><clipPath id="dpc_frame_10" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.659,0.341 L1,0.5 L0.659,0.659 L0.5,1 L0.341,0.659 L0,0.5 L0.341,0.341 L0.5,0"></path></clipPath><clipPath id="dpc_frame_11" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.618,0.382 L1,0.382 L0.691,0.618 L0.809,1 L0.5,0.764 L0.191,1 L0.309,0.618 L0,0.382 L0.382,0.382 L0.5,0"></path></clipPath>  <clipPath id="dpc_frame_12" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.703,0.196 L1,0.25 L0.905,0.5 L1,0.75 L0.703,0.804 L0.5,1 L0.297,0.804 L0,0.75 L0.095,0.5 L0,0.25 L0.297,0.196 L0.5,0"></path></clipPath><clipPath id="dpc_frame_13" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.644,0.154 L0.854,0.146 L0.846,0.356 L1,0.5 L0.846,0.644 L0.854,0.854 L0.644,0.846 L0.5,1 L0.356,0.846 L0.146,0.854 L0.154,0.644 L0,0.5 L0.154,0.356 L0.146,0.146 L0.356,0.154 L0.5,0"></path></clipPath><clipPath id="dpc_frame_14" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.597,0.138 L0.75,0.067 L0.765,0.235 L0.933,0.25 L0.862,0.403 L1,0.5 L0.862,0.597 L0.933,0.75 L0.765,0.765 L0.75,0.933 L0.597,0.862 L0.5,1 L0.403,0.862 L0.25,0.933 L0.235,0.765 L0.067,0.75 L0.138,0.597 L0,0.5 L0.138,0.403 L0.067,0.25 L0.235,0.235 L0.25,0.067 L0.403,0.138 L0.5,0"></path></clipPath><clipPath id="dpc_frame_15" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.574,0.108 L0.681,0.034 L0.711,0.161 L0.838,0.132 L0.821,0.261 L0.949,0.28 L0.886,0.394 L1,0.458 L0.9,0.542 L0.983,0.642 L0.86,0.684 L0.901,0.808 L0.771,0.802 L0.764,0.933 L0.645,0.88 L0.592,1 L0.5,0.908 L0.408,1 L0.355,0.88 L0.236,0.933 L0.229,0.802 L0.099,0.808 L0.14,0.684 L0.017,0.642 L0.1,0.542 L0,0.458 L0.114,0.394 L0.051,0.28 L0.179,0.261 L0.162,0.132 L0.289,0.161 L0.319,0.034 L0.426,0.108 L0.5,0"></path></clipPath><clipPath id="dpc_frame_16" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.665,0.101 L0.854,0.146 L0.899,0.335 L1,0.5 L0.899,0.665 L0.854,0.854 L0.665,0.899 L0.5,1 L0.335,0.899 L0.146,0.854 L0.101,0.665 L0,0.5 L0.101,0.335 L0.146,0.146 L0.335,0.101 L0.5,0"></path></clipPath><clipPath id="dpc_frame_17" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.57,0.056 L0.655,0.024 L0.704,0.099 L0.794,0.095 L0.818,0.182 L0.905,0.206 L0.901,0.296 L0.976,0.345 L0.944,0.43 L1,0.5 L0.944,0.57 L0.976,0.655 L0.901,0.704 L0.905,0.794 L0.818,0.818 L0.794,0.905 L0.704,0.901 L0.655,0.976 L0.57,0.944 L0.5,1 L0.43,0.944 L0.345,0.976 L0.296,0.901 L0.206,0.905 L0.182,0.818 L0.095,0.794 L0.099,0.704 L0.024,0.655 L0.056,0.57 L0,0.5 L0.056,0.43 L0.024,0.345 L0.099,0.296 L0.095,0.206 L0.182,0.182 L0.206,0.095 L0.296,0.099 L0.345,0.024 L0.43,0.056 L0.5,0"></path></clipPath><clipPath id="dpc_frame_18" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0.549,0.041 L0.605,0.011 L0.643,0.061 L0.704,0.043 L0.732,0.1 L0.796,0.095 L0.811,0.157 L0.874,0.165 L0.875,0.229 L0.935,0.25 L0.924,0.312 L0.978,0.345 L0.954,0.404 L1,0.448 L0.964,0.5 L1,0.552 L0.954,0.596 L0.978,0.655 L0.924,0.688 L0.935,0.75 L0.875,0.771 L0.874,0.835 L0.811,0.843 L0.796,0.905 L0.732,0.9 L0.704,0.957 L0.643,0.939 L0.605,0.989 L0.549,0.959 L0.5,1 L0.451,0.959 L0.395,0.989 L0.357,0.939 L0.296,0.957 L0.268,0.9 L0.204,0.905 L0.189,0.843 L0.126,0.835 L0.125,0.771 L0.065,0.75 L0.076,0.688 L0.022,0.655 L0.046,0.596 L0,0.552 L0.036,0.5 L0,0.448 L0.046,0.404 L0.022,0.345 L0.076,0.312 L0.065,0.25 L0.125,0.229 L0.126,0.165 L0.189,0.157 L0.204,0.095 L0.268,0.1 L0.296,0.043 L0.357,0.061 L0.395,0.011 L0.451,0.041 L0.5,0"></path></clipPath><clipPath id="dpc_frame_19" clipPathUnits="objectBoundingBox"><path d="M1,0.5 L0.5,0 L0.5,0.25 L0,0.25 L0,0.75 L0.5,0.75 L0.5,1 L1,0.5"></path></clipPath><clipPath id="dpc_frame_2" clipPathUnits="objectBoundingBox"><path d="M0.5,0 C0.224,0,0,0.224,0,0.5 C0,0.776,0.224,1,0.5,1 C0.776,1,1,0.776,1,0.5 C1,0.224,0.776,0,0.5,0"></path></clipPath><clipPath id="dpc_frame_20" clipPathUnits="objectBoundingBox"><path d="M0,0.5 L0.5,0 L0.5,0.25 L1,0.25 L1,0.75 L0.5,0.75 L0.5,1 L0,0.5"></path></clipPath><clipPath id="dpc_frame_21" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L0,0.5 L0.25,0.5 L0.25,1 L0.75,1 L0.75,0.5 L1,0.5 L0.5,0"></path></clipPath><clipPath id="dpc_frame_22" clipPathUnits="objectBoundingBox"><path d="M0.5,1 L0,0.5 L0.25,0.5 L0.25,0 L0.75,0 L0.75,0.5 L1,0.5 L0.5,1"></path></clipPath><clipPath id="dpc_frame_23" clipPathUnits="objectBoundingBox"><path d="M0.75,0 L0.25,0 L0,0.5 L0.25,1 L0.75,1 L1,0.5 L0.75,0"></path></clipPath><clipPath id="dpc_frame_24" clipPathUnits="objectBoundingBox"><path d="M0.75,0 C0.888,0,1,0.224,1,0.5 C1,0.776,0.888,1,0.75,1 L0.25,1 C0.112,1,0,0.776,0,0.5 C0,0.224,0.112,0,0.25,0 L0.75,0"></path></clipPath><clipPath id="dpc_frame_25" clipPathUnits="objectBoundingBox"><path d="M1,0 L0,0 L0,0.769 L0.194,0.769 L0.194,1 L0.57,0.769 L1,0.769 L1,0"></path></clipPath><clipPath id="dpc_frame_26" clipPathUnits="objectBoundingBox"><path d="M0.653,0 L0.347,0 C0.156,0,0,0.174,0,0.388 C0,0.543,0.082,0.677,0.199,0.739 L0.199,1 L0.435,0.776 L0.653,0.776 C0.844,0.776,1,0.602,1,0.388 C1,0.174,0.844,0,0.653,0"></path></clipPath><clipPath id="dpc_frame_27" clipPathUnits="objectBoundingBox"><path d="M0.04,0.16 C-0.041,0.312,0.016,0.461,0.087,0.54 L0.507,1 L0.918,0.541 C0.985,0.457,1,0.367,0.996,0.266 C0.977,0.128,0.877,0.02,0.753,0.005 C0.677,-0.004,0.604,0.02,0.547,0.074 C0.532,0.089,0.518,0.105,0.506,0.123 C0.492,0.103,0.475,0.084,0.456,0.068 C0.391,0.011,0.307,-0.012,0.227,0.006 C0.151,0.023,0.083,0.079,0.04,0.16"></path></clipPath><clipPath id="dpc_frame_28" clipPathUnits="objectBoundingBox"><path d="M0.688,0 L0.313,0 L0.313,0.313 L0,0.313 L0,0.688 L0.313,0.688 L0.313,1 L0.688,1 L0.688,0.688 L1,0.688 L1,0.313 L0.688,0.313 L0.688,0"></path></clipPath><clipPath id="dpc_frame_29" clipPathUnits="objectBoundingBox"><path d="M1,0 L1,0.859 L0.5,1 L0,0.859 L0,0 L1,0"></path></clipPath><clipPath id="dpc_frame_3" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L1,1 L0,1 L0.5,0"></path></clipPath><clipPath id="dpc_frame_30" clipPathUnits="objectBoundingBox"><path d="M1,0 L1,1 L0.5,0.844 L0,1 L0,0 L1,0"></path></clipPath><clipPath id="dpc_frame_31" clipPathUnits="objectBoundingBox"><path d="M0.803,0 L0.197,0 L0,0.197 L0,0.803 L0.197,1 L0.803,1 L1,0.803 L1,0.197 L0.803,0"></path></clipPath><clipPath id="dpc_frame_32" clipPathUnits="objectBoundingBox"><path d="M0,0.071 L0.5,0 L1,0.071 L1,0.929 L0.5,1 L0,0.929 L0,0.071"></path></clipPath><clipPath id="dpc_frame_33" clipPathUnits="objectBoundingBox"><path d="M0.25,0 L1,0 L0.75,1 L0,1 L0.25,0"></path></clipPath><clipPath id="dpc_frame_34" clipPathUnits="objectBoundingBox"><path d="M0.75,0 L0,0 L0.25,1 L1,1 L0.75,0"></path></clipPath><clipPath id="dpc_frame_35" clipPathUnits="objectBoundingBox"><path d="M0.334,0.977 C0.385,0.991,0.443,1,0.5,1 C0.557,1,0.613,0.992,0.663,0.978 C0.664,0.977,0.665,0.977,0.666,0.977 C0.857,0.92,0.997,0.771,1,0.596 L1,0 L0,0 L0,0.595 C0.003,0.772,0.141,0.921,0.334,0.977"></path></clipPath><clipPath id="dpc_frame_36" clipPathUnits="objectBoundingBox"><path d="M0.334,0.023 C0.385,0.009,0.443,0,0.5,0 C0.557,0,0.613,0.008,0.663,0.022 C0.664,0.023,0.665,0.023,0.666,0.023 C0.857,0.08,0.997,0.229,1,0.404 L1,1 L0,1 L0,0.405 C0.003,0.228,0.141,0.079,0.334,0.023"></path></clipPath><clipPath id="dpc_frame_37" clipPathUnits="objectBoundingBox"><path d="M0.574,0.953 C0.639,0.915,0.691,0.856,0.719,0.779 C0.733,0.741,0.754,0.702,0.789,0.682 C0.816,0.666,0.848,0.663,0.878,0.652 C0.961,0.621,1,0.523,0.998,0.434 C0.985,0.345,0.916,0.27,0.833,0.238 C0.786,0.22,0.739,0.224,0.693,0.206 C0.63,0.18,0.575,0.123,0.522,0.081 C0.468,0.039,0.407,0.001,0.339,0 C0.258,-0.001,0.18,0.061,0.161,0.142 C0.153,0.178,0.155,0.217,0.15,0.254 C0.132,0.398,0.005,0.512,0,0.657 C-0.004,0.776,0.081,0.884,0.185,0.938 C0.24,0.966,0.296,0.99,0.358,0.998 C0.435,1,0.511,0.991,0.574,0.953"></path></clipPath>

  <clipPath id="dpc_frame_38" clipPathUnits="objectBoundingBox"><path d="M0.998,0.316 C0.993,0.297,0.988,0.279,0.982,0.261 C0.955,0.182,0.892,0.105,0.78,0.061 C0.631,0.003,0.423,-0.002,0.257,0.041 C0.184,0.059,0.115,0.088,0.081,0.129 C0.035,0.186,0.065,0.252,0.106,0.31 C0.148,0.368,0.202,0.425,0.201,0.488 C0.2,0.597,0.034,0.689,0.031,0.798 C0.029,0.885,0.143,0.967,0.29,0.997 C0.466,1,0.665,1,0.801,0.934 C0.883,0.894,0.957,0.845,0.99,0.784 C1,0.719,1,0.65,1,0.582 C1,0.493,1,0.404,0.998,0.316"></path></clipPath><clipPath id="dpc_frame_39" clipPathUnits="objectBoundingBox"><path d="M0.877,0.939 C0.93,0.913,0.978,0.855,1,0.762 C1,0.672,1,0.552,0.984,0.483 C0.941,0.409,0.873,0.409,0.822,0.355 C0.778,0.309,0.749,0.228,0.717,0.158 C0.685,0.087,0.641,0.02,0.591,0.022 C0.556,0.024,0.524,0.058,0.492,0.086 C0.442,0.131,0.388,0.164,0.333,0.181 C0.243,0.21,0.143,0.207,0.076,0.317 C0.029,0.392,0.009,0.516,0.024,0.626 C0.04,0.735,0.091,0.826,0.152,0.851 C0.194,0.869,0.239,0.857,0.281,0.873 C0.353,0.9,0.412,1,0.486,1 C0.546,1,0.604,0.982,0.663,0.949 C0.702,0.926,0.745,0.95,0.785,0.955 C0.815,0.959,0.847,0.954,0.877,0.939"></path></clipPath>
<clipPath id="dpc_frame_4" clipPathUnits="objectBoundingBox"><path d="M0.5,1 L1,0 L0,0 L0.5,1"></path></clipPath>  <clipPath id="dpc_frame_40" clipPathUnits="objectBoundingBox"><path d="M0.685,0.958 C0.736,0.988,0.786,1,0.847,1 C0.905,1,0.959,0.968,0.989,0.916 C1,0.84,1,0.743,0.997,0.659 C0.969,0.575,0.924,0.499,0.898,0.414 C0.867,0.316,0.86,0.207,0.802,0.124 C0.755,0.056,0.676,0.014,0.596,0.013 C0.516,0.013,0.437,0.054,0.389,0.12 C0.321,0.215,0.319,0.346,0.253,0.442 C0.188,0.536,0.068,0.586,0.03,0.695 C-0.003,0.789,0.049,0.907,0.14,0.941 C0.221,0.972,0.309,0.941,0.392,0.918 C0.444,0.903,0.501,0.902,0.555,0.908 C0.592,0.912,0.628,0.925,0.661,0.944 C0.669,0.948,0.677,0.953,0.685,0.958"></path></clipPath>  <clipPath id="dpc_frame_41" clipPathUnits="objectBoundingBox"><path d="M0.74,0.742 C0.734,0.723,0.731,0.703,0.736,0.684 C0.753,0.622,0.849,0.584,0.905,0.542 C1,0.47,1,0.362,1,0.264 C0.992,0.165,0.893,0.078,0.763,0.038 C0.633,-0.002,0.476,0.007,0.356,0.06 C0.248,0.108,0.173,0.187,0.128,0.272 C0.083,0.357,0.065,0.447,0.047,0.537 C0.028,0.628,0.01,0.725,0.065,0.809 C0.128,0.906,0.275,0.962,0.42,0.995 C0.491,1,0.57,1,0.64,1 C0.705,0.984,0.751,0.939,0.77,0.891 C0.789,0.84,0.754,0.791,0.74,0.742"></path></clipPath>
  <clipPath id="dpc_frame_42" clipPathUnits="objectBoundingBox"><path d="M0.605,1 C0.515,1,0.424,1,0.337,0.968 C0.272,0.943,0.206,0.912,0.153,0.858 C0.078,0.78,0.036,0.66,0.023,0.538 C0.01,0.406,0.032,0.265,0.098,0.16 C0.164,0.055,0.277,-0.007,0.381,0.024 C0.452,0.045,0.512,0.105,0.564,0.169 C0.616,0.234,0.664,0.305,0.725,0.357 C0.774,0.4,0.831,0.429,0.883,0.467 C0.935,0.505,0.984,0.555,1,0.624 C1,0.686,1,0.745,0.991,0.8 C0.986,0.81,0.98,0.82,0.974,0.83 C0.889,0.964,0.734,1,0.605,1 M0.961,0.328 C0.977,0.321,0.991,0.306,0.993,0.284 C0.993,0.272,0.991,0.26,0.988,0.248 C0.967,0.156,0.914,-0.001,0.818,0.017 C0.793,0.022,0.77,0.036,0.749,0.052 C0.725,0.071,0.7,0.097,0.696,0.133 C0.692,0.168,0.709,0.201,0.728,0.226 C0.761,0.271,0.805,0.301,0.852,0.316 C0.879,0.325,0.909,0.335,0.938,0.334 C0.946,0.334,0.954,0.332,0.961,0.328"></path></clipPath>
  <clipPath id="dpc_frame_43" clipPathUnits="objectBoundingBox"><path d="M0.01,0.52 C0,0.436,-0.006,0.347,0.011,0.276 C0.03,0.197,0.073,0.119,0.148,0.064 C0.224,0.01,0.336,-0.016,0.432,0.011 C0.484,0.025,0.533,0.072,0.585,0.088 C0.662,0.111,0.742,0.071,0.82,0.093 C0.907,0.117,0.977,0.194,0.995,0.266 C1,0.337,0.983,0.402,0.915,0.451 C0.829,0.513,0.711,0.56,0.626,0.623 C0.554,0.677,0.51,0.741,0.428,0.785 C0.34,0.831,0.226,0.814,0.146,0.766 C0.048,0.708,0.022,0.611,0.01,0.52 M0.82,0.824 C0.86,0.803,0.914,0.805,0.951,0.781 C0.985,0.76,1,0.723,0.995,0.69 C0.98,0.635,0.902,0.606,0.838,0.624 C0.747,0.65,0.656,0.724,0.631,0.798 C0.618,0.834,0.655,0.855,0.695,0.861 C0.71,1,0.724,0.862,0.737,0.86 C0.767,0.854,0.793,0.839,0.82,0.824"></path></clipPath>
<clipPath id="dpc_frame_44" clipPathUnits="objectBoundingBox"><path d="M0.842,0.763 C0.871,0.79,0.897,0.829,0.886,0.871 C0.875,0.909,0.838,0.942,0.806,0.962 C0.755,0.994,0.636,1,0.588,0.985 C0.55,0.938,0.56,0.856,0.588,0.808 C0.633,0.729,0.738,0.698,0.817,0.744 C0.826,0.749,0.834,0.756,0.842,0.763 M0.461,0.849 C0.465,0.836,0.469,0.823,0.473,0.81 C0.498,0.733,0.569,0.671,0.646,0.65 C0.737,0.625,0.842,0.649,0.922,0.599 C0.981,0.562,1,0.491,1,0.422 C1,0.26,0.92,0.101,0.77,0.042 C0.619,-0.017,0.442,0.017,0.31,0.11 C0.177,0.203,0.089,0.35,0.045,0.507 C0.02,0.594,0.009,0.687,0.031,0.775 C0.054,0.862,0.114,0.943,0.199,0.973 C0.251,0.991,0.311,1,0.363,0.984 C0.423,0.962,0.444,0.905,0.461,0.849"></path></clipPath>
<clipPath id="dpc_frame_45" clipPathUnits="objectBoundingBox"><path d="M0.942,0.44 C1,0.568,1,0.722,0.922,0.84 C0.82,0.952,0.616,1,0.425,0.996 C0.234,0.976,0.067,0.874,0.018,0.746 C-0.023,0.639,0.015,0.526,0.052,0.418 C0.078,0.343,0.104,0.268,0.13,0.193 C0.143,0.158,0.155,0.123,0.18,0.091 C0.205,0.059,0.245,0.031,0.296,0.021 C0.391,0.002,0.481,0.037,0.559,0.082 C0.722,0.178,0.861,0.303,0.942,0.44 M0.886,0.187 C0.91,0.18,0.927,0.165,0.93,0.143 C0.932,0.123,0.921,0.102,0.901,0.088 C0.884,0.076,0.861,0.07,0.846,0.056 C0.833,0.044,0.829,0.027,0.815,0.015 C0.8,0.003,0.777,-0.002,0.756,0.001 C0.736,0.003,0.718,0.013,0.706,0.025 C0.635,0.093,0.733,0.185,0.838,0.191 C0.855,0.193,0.872,0.191,0.886,0.187"></path></clipPath>
<clipPath id="dpc_frame_46" clipPathUnits="objectBoundingBox"><path d="M0.552,0.113 C0.478,0.219,0.487,0.31,0.404,0.359 C0.236,0.457,0.064,0.363,0.012,0.531 C-0.043,0.703,0.096,0.87,0.386,0.974 C0.724,1,1,0.764,0.988,0.518 C0.921,0.313,1,0.224,0.967,0.113 C0.853,-0.069,0.631,-0.002,0.552,0.113"></path></clipPath>
<clipPath id="dpc_frame_47" clipPathUnits="objectBoundingBox"><path d="M0.844,0.076 C0.706,-0.004,0.577,0.087,0.475,0.087 C0.395,0.087,0.245,-0.133,0.066,0.127 C-0.114,0.387,0.11,0.632,0.311,0.846 C0.512,1,0.785,1,0.942,0.802 C1,0.631,1,0.168,0.844,0.076"></path></clipPath>
<clipPath id="dpc_frame_48" clipPathUnits="objectBoundingBox"><path d="M0.625,0.027 C0.838,0.057,1,0.139,0.957,0.512 C0.809,0.884,0.502,0.95,0.354,0.991 C0.206,1,0.032,0.935,0.093,0.715 C0.147,0.523,-0.014,0.282,0.001,0.124 C0.017,-0.034,0.369,-0.009,0.625,0.027"></path></clipPath>
<clipPath id="dpc_frame_49" clipPathUnits="objectBoundingBox"><path d="M0.818,0.156 C0.722,0.091,0.696,0.088,0.584,0.075 C0.325,0.078,0.115,0.239,0.034,0.503 C0.006,0.594,-0.001,0.695,0.032,0.784 C0.074,0.9,0.181,0.979,0.293,1 C0.406,1,0.53,1,0.645,1 C0.735,1,0.825,0.989,0.892,0.923 C0.937,0.88,0.965,0.82,0.983,0.758 C1,0.544,0.995,0.276,0.818,0.156"></path></clipPath>
<clipPath id="dpc_frame_5" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L1,0.5 L0.5,1 L0,0.5 L0.5,0"></path></clipPath><clipPath id="dpc_frame_50" clipPathUnits="objectBoundingBox"><path d="M0.953,0.371 C0.864,0.184,0.686,0.047,0.497,0.026 C0.342,0,0.24,0.079,0.157,0.188 C0.073,0.297,0.029,0.436,0.011,0.577 C0.002,0.651,0,0.729,0.029,0.797 C0.066,0.883,0.146,0.938,0.227,0.972 C0.446,1,0.715,1,0.886,0.853 C0.939,0.798,0.983,0.729,0.999,0.651 C1,0.556,0.993,0.457,0.953,0.371"></path></clipPath>
<clipPath id="dpc_frame_51" clipPathUnits="objectBoundingBox"><path d="M0.369,0.989 C0.539,0.943,0.43,0.794,0.652,0.585 C0.861,0.39,1,0.425,0.983,0.127 C0.922,-0.114,0.222,0.011,0.059,0.318 C-0.081,0.583,0.03,1,0.369,0.989"></path></clipPath>
<clipPath id="dpc_frame_52" clipPathUnits="objectBoundingBox"><path d="M0.099,0.09 C0.282,-0.024,0.619,-0.049,0.741,0.128 C0.789,0.201,0.763,0.285,0.777,0.362 C0.797,0.47,0.916,0.551,0.97,0.65 C1,0.893,0.717,1,0.428,0.998 C0.277,0.998,0.099,0.97,0.028,0.866 C-0.045,0.754,0.046,0.63,0.049,0.513 C0.053,0.372,-0.085,0.202,0.099,0.09"></path></clipPath>
<clipPath id="dpc_frame_53" clipPathUnits="objectBoundingBox"><path d="M0.308,0.079 C0.126,0.185,0,0.353,0.009,0.609 C0.011,0.665,0.021,0.721,0.042,0.77 C0.096,0.896,0.213,0.958,0.324,0.993 C0.44,1,0.562,1,0.678,1 C0.795,0.986,0.906,0.903,0.965,0.776 C1,0.575,0.994,0.299,0.845,0.158 C0.696,0.016,0.485,0,0.308,0.079"></path></clipPath>
<clipPath id="dpc_frame_54" clipPathUnits="objectBoundingBox"><path d="M0.892,0.124 C0.849,0.08,0.797,0.042,0.735,0.021 C0.69,0.006,0.642,0,0.594,0.001 C0.392,0.003,0.209,0.123,0.125,0.276 C0.051,0.411,0,0.643,0.066,0.781 C0.132,0.918,0.242,0.991,0.411,0.998 C0.678,1,0.88,0.867,0.979,0.686 C1,0.505,1,0.278,0.892,0.124"></path></clipPath>
<clipPath id="dpc_frame_55" clipPathUnits="objectBoundingBox"><path d="M0.921,0.206 C0.855,0.119,0.76,0.066,0.661,0.04 C0.562,0.014,0.458,0,0.361,0.03 L0.362,0.03 C0.192,0.067,0.049,0.212,0.015,0.397 C0,0.476,0.003,0.558,0.016,0.638 C0.031,0.728,0.061,0.818,0.118,0.883 C0.182,0.956,0.273,0.991,0.363,1 C0.558,1,0.77,0.97,0.898,0.805 C1,0.64,1,0.373,0.921,0.206"></path></clipPath>
<clipPath id="dpc_frame_56" clipPathUnits="objectBoundingBox"><path d="M0.399,0 L0,0 L0,1 L1,1 L1,0.501 C1,0.224,0.731,0,0.399,0"></path></clipPath>
<clipPath id="dpc_frame_57" clipPathUnits="objectBoundingBox"><path d="M0.601,0 L1,0 L1,1 L0,1 L0,0.501 C0,0.224,0.269,0,0.601,0"></path></clipPath>
<clipPath id="dpc_frame_58" clipPathUnits="objectBoundingBox"><path d="M0.993,0.389 C0.924,0.573,0.837,0.753,0.736,0.928 C0.716,0.961,0.671,0.983,0.629,0.994 C0.583,1,0.533,0.998,0.492,0.98 C0.453,0.963,0.421,0.927,0.41,0.893 C0.397,0.853,0.407,0.817,0.428,0.781 C0.444,0.754,0.459,0.727,0.474,0.699 C0.457,0.707,0.44,0.715,0.423,0.722 C0.346,0.756,0.268,0.786,0.179,0.786 C0.067,0.787,-0.028,0.693,0.008,0.602 C0.093,0.385,0.273,0.211,0.456,0.043 C0.487,0.014,0.536,0.002,0.582,0 C0.629,-0.002,0.674,0.017,0.708,0.043 C0.741,0.067,0.76,0.11,0.76,0.145 C0.76,0.175,0.748,0.202,0.728,0.226 C0.729,0.226,0.731,0.225,0.732,0.224 C0.763,0.206,0.808,0.203,0.845,0.207 C0.877,0.211,0.904,0.22,0.929,0.236 C0.984,0.27,1,0.333,0.993,0.389"></path></clipPath>
<clipPath id="dpc_frame_59" clipPathUnits="objectBoundingBox"><path d="M0.967,1 L0.035,1 C0.017,1,0.001,0.993,0.001,0.984 L0.001,0.252 C0.001,0.113,0.225,0.001,0.501,0.001 C0.778,0.001,1,0.113,1,0.252 L1,0.984 C1,0.993,0.986,1,0.967,1"></path></clipPath>
<clipPath id="dpc_frame_6" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L1,0.382 L0.809,1 L0.191,1 L0,0.382 L0.5,0"></path></clipPath><clipPath id="dpc_frame_60" clipPathUnits="objectBoundingBox"><path d="M0.613,0.5 L1,1 L0,1 L0,0 L1,0 L0.613,0.5"></path></clipPath>
<clipPath id="dpc_frame_61" clipPathUnits="objectBoundingBox"><path d="M0.669,0 C0.669,0,0.587,0.361,0.89,0.291 C0.89,0.291,0.807,0.412,0.939,0.458 C0.939,0.458,0.644,0.62,1,0.817 C1,0.817,0.918,0.823,0.929,0.922 C0.929,0.922,0.573,0.703,0.513,1 C0.513,1,0.37,0.895,0.316,0.927 C0.316,0.927,0.505,0.583,0.087,0.807 C0.087,0.807,0.321,0.541,0.126,0.443 C0.126,0.443,0.307,0.353,0.291,0.308 C0.275,0.262,0,0.174,0,0.174 C0,0.174,0.394,0.266,0.4,0.032 C0.4,0.032,0.45,0.102,0.512,0.139 C0.573,0.176,0.669,0,0.669,0"></path></clipPath>
<clipPath id="dpc_frame_7" clipPathUnits="objectBoundingBox"><path d="M0.5,0 L1,0.25 L1,0.75 L0.5,1 L0,0.75 L0,0.25 L0.5,0"></path></clipPath><clipPath id="dpc_frame_8" clipPathUnits="objectBoundingBox"><path d="M1,0.5 L0.75,1 L0.25,1 L0,0.5 L0.25,0 L0.75,0 L1,0.5"></path></clipPath><clipPath id="dpc_frame_9" clipPathUnits="objectBoundingBox"><path d="M0.707,0 L1,0.293 L1,0.707 L0.707,1 L0.293,1 L0,0.707 L0,0.293 L0.293,0 L0.707,0"></path></clipPath></svg>`;/**
 * @remix-run/router v1.22.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends$2.apply(this,arguments)}var Action$3;(function(ea){ea.Pop="POP",ea.Push="PUSH",ea.Replace="REPLACE"})(Action$3||(Action$3={}));const PopStateEventType="popstate";function createHashHistory(ea){ea===void 0&&(ea={});function na(aa,sa){let{pathname:la="/",search:ca="",hash:ua=""}=parsePath(aa.location.hash.substr(1));return!la.startsWith("/")&&!la.startsWith(".")&&(la="/"+la),createLocation("",{pathname:la,search:ca,hash:ua},sa.state&&sa.state.usr||null,sa.state&&sa.state.key||"default")}function ra(aa,sa){let la=aa.document.querySelector("base"),ca="";if(la&&la.getAttribute("href")){let ua=aa.location.href,da=ua.indexOf("#");ca=da===-1?ua:ua.slice(0,da)}return ca+"#"+(typeof sa=="string"?sa:createPath(sa))}function oa(aa,sa){warning(aa.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(sa)+")")}return getUrlBasedHistory(na,ra,oa,ea)}function invariant$2(ea,na){if(ea===!1||ea===null||typeof ea>"u")throw new Error(na)}function warning(ea,na){if(!ea){typeof console<"u"&&console.warn(na);try{throw new Error(na)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(ea,na){return{usr:ea.state,key:ea.key,idx:na}}function createLocation(ea,na,ra,oa){return ra===void 0&&(ra=null),_extends$2({pathname:typeof ea=="string"?ea:ea.pathname,search:"",hash:""},typeof na=="string"?parsePath(na):na,{state:ra,key:na&&na.key||oa||createKey()})}function createPath(ea){let{pathname:na="/",search:ra="",hash:oa=""}=ea;return ra&&ra!=="?"&&(na+=ra.charAt(0)==="?"?ra:"?"+ra),oa&&oa!=="#"&&(na+=oa.charAt(0)==="#"?oa:"#"+oa),na}function parsePath(ea){let na={};if(ea){let ra=ea.indexOf("#");ra>=0&&(na.hash=ea.substr(ra),ea=ea.substr(0,ra));let oa=ea.indexOf("?");oa>=0&&(na.search=ea.substr(oa),ea=ea.substr(0,oa)),ea&&(na.pathname=ea)}return na}function getUrlBasedHistory(ea,na,ra,oa){oa===void 0&&(oa={});let{window:aa=document.defaultView,v5Compat:sa=!1}=oa,la=aa.history,ca=Action$3.Pop,ua=null,da=pa();da==null&&(da=0,la.replaceState(_extends$2({},la.state,{idx:da}),""));function pa(){return(la.state||{idx:null}).idx}function ha(){ca=Action$3.Pop;let xa=pa(),ya=xa==null?null:xa-da;da=xa,ua&&ua({action:ca,location:va.location,delta:ya})}function ga(xa,ya){ca=Action$3.Push;let Aa=createLocation(va.location,xa,ya);ra&&ra(Aa,xa),da=pa()+1;let Ca=getHistoryState(Aa,da),Sa=va.createHref(Aa);try{la.pushState(Ca,"",Sa)}catch(wa){if(wa instanceof DOMException&&wa.name==="DataCloneError")throw wa;aa.location.assign(Sa)}sa&&ua&&ua({action:ca,location:va.location,delta:1})}function fa(xa,ya){ca=Action$3.Replace;let Aa=createLocation(va.location,xa,ya);ra&&ra(Aa,xa),da=pa();let Ca=getHistoryState(Aa,da),Sa=va.createHref(Aa);la.replaceState(Ca,"",Sa),sa&&ua&&ua({action:ca,location:va.location,delta:0})}function ma(xa){let ya=aa.location.origin!=="null"?aa.location.origin:aa.location.href,Aa=typeof xa=="string"?xa:createPath(xa);return Aa=Aa.replace(/ $/,"%20"),invariant$2(ya,"No window.location.(origin|href) available to create URL for href: "+Aa),new URL(Aa,ya)}let va={get action(){return ca},get location(){return ea(aa,la)},listen(xa){if(ua)throw new Error("A history only accepts one active listener");return aa.addEventListener(PopStateEventType,ha),ua=xa,()=>{aa.removeEventListener(PopStateEventType,ha),ua=null}},createHref(xa){return na(aa,xa)},createURL:ma,encodeLocation(xa){let ya=ma(xa);return{pathname:ya.pathname,search:ya.search,hash:ya.hash}},push:ga,replace:fa,go(xa){return la.go(xa)}};return va}var ResultType;(function(ea){ea.data="data",ea.deferred="deferred",ea.redirect="redirect",ea.error="error"})(ResultType||(ResultType={}));function matchRoutes(ea,na,ra){return ra===void 0&&(ra="/"),matchRoutesImpl(ea,na,ra)}function matchRoutesImpl(ea,na,ra,oa){let aa=typeof na=="string"?parsePath(na):na,sa=stripBasename(aa.pathname||"/",ra);if(sa==null)return null;let la=flattenRoutes(ea);rankRouteBranches(la);let ca=null;for(let ua=0;ca==null&&ua<la.length;++ua){let da=decodePath(sa);ca=matchRouteBranch(la[ua],da)}return ca}function flattenRoutes(ea,na,ra,oa){na===void 0&&(na=[]),ra===void 0&&(ra=[]),oa===void 0&&(oa="");let aa=(sa,la,ca)=>{let ua={relativePath:ca===void 0?sa.path||"":ca,caseSensitive:sa.caseSensitive===!0,childrenIndex:la,route:sa};ua.relativePath.startsWith("/")&&(invariant$2(ua.relativePath.startsWith(oa),'Absolute route path "'+ua.relativePath+'" nested under path '+('"'+oa+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),ua.relativePath=ua.relativePath.slice(oa.length));let da=joinPaths([oa,ua.relativePath]),pa=ra.concat(ua);sa.children&&sa.children.length>0&&(invariant$2(sa.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+da+'".')),flattenRoutes(sa.children,na,pa,da)),!(sa.path==null&&!sa.index)&&na.push({path:da,score:computeScore(da,sa.index),routesMeta:pa})};return ea.forEach((sa,la)=>{var ca;if(sa.path===""||!((ca=sa.path)!=null&&ca.includes("?")))aa(sa,la);else for(let ua of explodeOptionalSegments(sa.path))aa(sa,la,ua)}),na}function explodeOptionalSegments(ea){let na=ea.split("/");if(na.length===0)return[];let[ra,...oa]=na,aa=ra.endsWith("?"),sa=ra.replace(/\?$/,"");if(oa.length===0)return aa?[sa,""]:[sa];let la=explodeOptionalSegments(oa.join("/")),ca=[];return ca.push(...la.map(ua=>ua===""?sa:[sa,ua].join("/"))),aa&&ca.push(...la),ca.map(ua=>ea.startsWith("/")&&ua===""?"/":ua)}function rankRouteBranches(ea){ea.sort((na,ra)=>na.score!==ra.score?ra.score-na.score:compareIndexes(na.routesMeta.map(oa=>oa.childrenIndex),ra.routesMeta.map(oa=>oa.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=ea=>ea==="*";function computeScore(ea,na){let ra=ea.split("/"),oa=ra.length;return ra.some(isSplat)&&(oa+=splatPenalty),na&&(oa+=indexRouteValue),ra.filter(aa=>!isSplat(aa)).reduce((aa,sa)=>aa+(paramRe.test(sa)?dynamicSegmentValue:sa===""?emptySegmentValue:staticSegmentValue),oa)}function compareIndexes(ea,na){return ea.length===na.length&&ea.slice(0,-1).every((oa,aa)=>oa===na[aa])?ea[ea.length-1]-na[na.length-1]:0}function matchRouteBranch(ea,na,ra){let{routesMeta:oa}=ea,aa={},sa="/",la=[];for(let ca=0;ca<oa.length;++ca){let ua=oa[ca],da=ca===oa.length-1,pa=sa==="/"?na:na.slice(sa.length)||"/",ha=matchPath({path:ua.relativePath,caseSensitive:ua.caseSensitive,end:da},pa),ga=ua.route;if(!ha)return null;Object.assign(aa,ha.params),la.push({params:aa,pathname:joinPaths([sa,ha.pathname]),pathnameBase:normalizePathname(joinPaths([sa,ha.pathnameBase])),route:ga}),ha.pathnameBase!=="/"&&(sa=joinPaths([sa,ha.pathnameBase]))}return la}function matchPath(ea,na){typeof ea=="string"&&(ea={path:ea,caseSensitive:!1,end:!0});let[ra,oa]=compilePath(ea.path,ea.caseSensitive,ea.end),aa=na.match(ra);if(!aa)return null;let sa=aa[0],la=sa.replace(/(.)\/+$/,"$1"),ca=aa.slice(1);return{params:oa.reduce((da,pa,ha)=>{let{paramName:ga,isOptional:fa}=pa;if(ga==="*"){let va=ca[ha]||"";la=sa.slice(0,sa.length-va.length).replace(/(.)\/+$/,"$1")}const ma=ca[ha];return fa&&!ma?da[ga]=void 0:da[ga]=(ma||"").replace(/%2F/g,"/"),da},{}),pathname:sa,pathnameBase:la,pattern:ea}}function compilePath(ea,na,ra){na===void 0&&(na=!1),ra===void 0&&(ra=!0),warning(ea==="*"||!ea.endsWith("*")||ea.endsWith("/*"),'Route path "'+ea+'" will be treated as if it were '+('"'+ea.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+ea.replace(/\*$/,"/*")+'".'));let oa=[],aa="^"+ea.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(la,ca,ua)=>(oa.push({paramName:ca,isOptional:ua!=null}),ua?"/?([^\\/]+)?":"/([^\\/]+)"));return ea.endsWith("*")?(oa.push({paramName:"*"}),aa+=ea==="*"||ea==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):ra?aa+="\\/*$":ea!==""&&ea!=="/"&&(aa+="(?:(?=\\/|$))"),[new RegExp(aa,na?void 0:"i"),oa]}function decodePath(ea){try{return ea.split("/").map(na=>decodeURIComponent(na).replace(/\//g,"%2F")).join("/")}catch(na){return warning(!1,'The URL path "'+ea+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+na+").")),ea}}function stripBasename(ea,na){if(na==="/")return ea;if(!ea.toLowerCase().startsWith(na.toLowerCase()))return null;let ra=na.endsWith("/")?na.length-1:na.length,oa=ea.charAt(ra);return oa&&oa!=="/"?null:ea.slice(ra)||"/"}function resolvePath(ea,na){na===void 0&&(na="/");let{pathname:ra,search:oa="",hash:aa=""}=typeof ea=="string"?parsePath(ea):ea;return{pathname:ra?ra.startsWith("/")?ra:resolvePathname(ra,na):na,search:normalizeSearch(oa),hash:normalizeHash(aa)}}function resolvePathname(ea,na){let ra=na.replace(/\/+$/,"").split("/");return ea.split("/").forEach(aa=>{aa===".."?ra.length>1&&ra.pop():aa!=="."&&ra.push(aa)}),ra.length>1?ra.join("/"):"/"}function getInvalidPathError(ea,na,ra,oa){return"Cannot include a '"+ea+"' character in a manually specified "+("`to."+na+"` field ["+JSON.stringify(oa)+"].  Please separate it out to the ")+("`to."+ra+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(ea){return ea.filter((na,ra)=>ra===0||na.route.path&&na.route.path.length>0)}function getResolveToMatches(ea,na){let ra=getPathContributingMatches(ea);return na?ra.map((oa,aa)=>aa===ra.length-1?oa.pathname:oa.pathnameBase):ra.map(oa=>oa.pathnameBase)}function resolveTo(ea,na,ra,oa){oa===void 0&&(oa=!1);let aa;typeof ea=="string"?aa=parsePath(ea):(aa=_extends$2({},ea),invariant$2(!aa.pathname||!aa.pathname.includes("?"),getInvalidPathError("?","pathname","search",aa)),invariant$2(!aa.pathname||!aa.pathname.includes("#"),getInvalidPathError("#","pathname","hash",aa)),invariant$2(!aa.search||!aa.search.includes("#"),getInvalidPathError("#","search","hash",aa)));let sa=ea===""||aa.pathname==="",la=sa?"/":aa.pathname,ca;if(la==null)ca=ra;else{let ha=na.length-1;if(!oa&&la.startsWith("..")){let ga=la.split("/");for(;ga[0]==="..";)ga.shift(),ha-=1;aa.pathname=ga.join("/")}ca=ha>=0?na[ha]:"/"}let ua=resolvePath(aa,ca),da=la&&la!=="/"&&la.endsWith("/"),pa=(sa||la===".")&&ra.endsWith("/");return!ua.pathname.endsWith("/")&&(da||pa)&&(ua.pathname+="/"),ua}const joinPaths=ea=>ea.join("/").replace(/\/\/+/g,"/"),normalizePathname=ea=>ea.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=ea=>!ea||ea==="?"?"":ea.startsWith("?")?ea:"?"+ea,normalizeHash=ea=>!ea||ea==="#"?"":ea.startsWith("#")?ea:"#"+ea;function isRouteErrorResponse(ea){return ea!=null&&typeof ea.status=="number"&&typeof ea.statusText=="string"&&typeof ea.internal=="boolean"&&"data"in ea}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/**
 * React Router v6.29.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends$1.apply(this,arguments)}const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext$1=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=reactExports.createContext(null);function useHref(ea,na){let{relative:ra}=na===void 0?{}:na;useInRouterContext()||invariant$2(!1);let{basename:oa,navigator:aa}=reactExports.useContext(NavigationContext$1),{hash:sa,pathname:la,search:ca}=useResolvedPath(ea,{relative:ra}),ua=la;return oa!=="/"&&(ua=la==="/"?oa:joinPaths([oa,la])),aa.createHref({pathname:ua,search:ca,hash:sa})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant$2(!1),reactExports.useContext(LocationContext).location}function useIsomorphicLayoutEffect$3(ea){reactExports.useContext(NavigationContext$1).static||reactExports.useLayoutEffect(ea)}function useNavigate(){let{isDataRoute:ea}=reactExports.useContext(RouteContext);return ea?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){useInRouterContext()||invariant$2(!1);let ea=reactExports.useContext(DataRouterContext),{basename:na,future:ra,navigator:oa}=reactExports.useContext(NavigationContext$1),{matches:aa}=reactExports.useContext(RouteContext),{pathname:sa}=useLocation(),la=JSON.stringify(getResolveToMatches(aa,ra.v7_relativeSplatPath)),ca=reactExports.useRef(!1);return useIsomorphicLayoutEffect$3(()=>{ca.current=!0}),reactExports.useCallback(function(da,pa){if(pa===void 0&&(pa={}),!ca.current)return;if(typeof da=="number"){oa.go(da);return}let ha=resolveTo(da,JSON.parse(la),sa,pa.relative==="path");ea==null&&na!=="/"&&(ha.pathname=ha.pathname==="/"?na:joinPaths([na,ha.pathname])),(pa.replace?oa.replace:oa.push)(ha,pa.state,pa)},[na,oa,la,sa,ea])}function useResolvedPath(ea,na){let{relative:ra}=na===void 0?{}:na,{future:oa}=reactExports.useContext(NavigationContext$1),{matches:aa}=reactExports.useContext(RouteContext),{pathname:sa}=useLocation(),la=JSON.stringify(getResolveToMatches(aa,oa.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo(ea,JSON.parse(la),sa,ra==="path"),[ea,la,sa,ra])}function useRoutes(ea,na){return useRoutesImpl(ea)}function useRoutesImpl(ea,na,ra,oa){useInRouterContext()||invariant$2(!1);let{navigator:aa,static:sa}=reactExports.useContext(NavigationContext$1),{matches:la}=reactExports.useContext(RouteContext),ca=la[la.length-1],ua=ca?ca.params:{};ca&&ca.pathname;let da=ca?ca.pathnameBase:"/";ca&&ca.route;let pa=useLocation(),ha;ha=pa;let ga=ha.pathname||"/",fa=ga;if(da!=="/"){let xa=da.replace(/^\//,"").split("/");fa="/"+ga.replace(/^\//,"").split("/").slice(xa.length).join("/")}let ma=matchRoutes(ea,{pathname:fa});return _renderMatches(ma&&ma.map(xa=>Object.assign({},xa,{params:Object.assign({},ua,xa.params),pathname:joinPaths([da,aa.encodeLocation?aa.encodeLocation(xa.pathname).pathname:xa.pathname]),pathnameBase:xa.pathnameBase==="/"?da:joinPaths([da,aa.encodeLocation?aa.encodeLocation(xa.pathnameBase).pathname:xa.pathnameBase])})),la,ra,oa)}function DefaultErrorComponent(){let ea=useRouteError(),na=isRouteErrorResponse(ea)?ea.status+" "+ea.statusText:ea instanceof Error?ea.message:JSON.stringify(ea),ra=ea instanceof Error?ea.stack:null,aa={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},na),ra?reactExports.createElement("pre",{style:aa},ra):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(na){super(na),this.state={location:na.location,revalidation:na.revalidation,error:na.error}}static getDerivedStateFromError(na){return{error:na}}static getDerivedStateFromProps(na,ra){return ra.location!==na.location||ra.revalidation!=="idle"&&na.revalidation==="idle"?{error:na.error,location:na.location,revalidation:na.revalidation}:{error:na.error!==void 0?na.error:ra.error,location:ra.location,revalidation:na.revalidation||ra.revalidation}}componentDidCatch(na,ra){console.error("React Router caught the following error during render",na,ra)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(ea){let{routeContext:na,match:ra,children:oa}=ea,aa=reactExports.useContext(DataRouterContext);return aa&&aa.static&&aa.staticContext&&(ra.route.errorElement||ra.route.ErrorBoundary)&&(aa.staticContext._deepestRenderedBoundaryId=ra.route.id),reactExports.createElement(RouteContext.Provider,{value:na},oa)}function _renderMatches(ea,na,ra,oa){var aa;if(na===void 0&&(na=[]),ra===void 0&&(ra=null),oa===void 0&&(oa=null),ea==null){var sa;if(!ra)return null;if(ra.errors)ea=ra.matches;else if((sa=oa)!=null&&sa.v7_partialHydration&&na.length===0&&!ra.initialized&&ra.matches.length>0)ea=ra.matches;else return null}let la=ea,ca=(aa=ra)==null?void 0:aa.errors;if(ca!=null){let pa=la.findIndex(ha=>ha.route.id&&ca?.[ha.route.id]!==void 0);pa>=0||invariant$2(!1),la=la.slice(0,Math.min(la.length,pa+1))}let ua=!1,da=-1;if(ra&&oa&&oa.v7_partialHydration)for(let pa=0;pa<la.length;pa++){let ha=la[pa];if((ha.route.HydrateFallback||ha.route.hydrateFallbackElement)&&(da=pa),ha.route.id){let{loaderData:ga,errors:fa}=ra,ma=ha.route.loader&&ga[ha.route.id]===void 0&&(!fa||fa[ha.route.id]===void 0);if(ha.route.lazy||ma){ua=!0,da>=0?la=la.slice(0,da+1):la=[la[0]];break}}}return la.reduceRight((pa,ha,ga)=>{let fa,ma=!1,va=null,xa=null;ra&&(fa=ca&&ha.route.id?ca[ha.route.id]:void 0,va=ha.route.errorElement||defaultErrorElement,ua&&(da<0&&ga===0?(warningOnce("route-fallback"),ma=!0,xa=null):da===ga&&(ma=!0,xa=ha.route.hydrateFallbackElement||null)));let ya=na.concat(la.slice(0,ga+1)),Aa=()=>{let Ca;return fa?Ca=va:ma?Ca=xa:ha.route.Component?Ca=reactExports.createElement(ha.route.Component,null):ha.route.element?Ca=ha.route.element:Ca=pa,reactExports.createElement(RenderedRoute,{match:ha,routeContext:{outlet:pa,matches:ya,isDataRoute:ra!=null},children:Ca})};return ra&&(ha.route.ErrorBoundary||ha.route.errorElement||ga===0)?reactExports.createElement(RenderErrorBoundary,{location:ra.location,revalidation:ra.revalidation,component:va,error:fa,children:Aa(),routeContext:{outlet:null,matches:ya,isDataRoute:!0}}):Aa()},null)}var DataRouterHook$1=function(ea){return ea.UseBlocker="useBlocker",ea.UseRevalidator="useRevalidator",ea.UseNavigateStable="useNavigate",ea}(DataRouterHook$1||{}),DataRouterStateHook$1=function(ea){return ea.UseBlocker="useBlocker",ea.UseLoaderData="useLoaderData",ea.UseActionData="useActionData",ea.UseRouteError="useRouteError",ea.UseNavigation="useNavigation",ea.UseRouteLoaderData="useRouteLoaderData",ea.UseMatches="useMatches",ea.UseRevalidator="useRevalidator",ea.UseNavigateStable="useNavigate",ea.UseRouteId="useRouteId",ea}(DataRouterStateHook$1||{});function useDataRouterContext(ea){let na=reactExports.useContext(DataRouterContext);return na||invariant$2(!1),na}function useDataRouterState(ea){let na=reactExports.useContext(DataRouterStateContext);return na||invariant$2(!1),na}function useRouteContext(ea){let na=reactExports.useContext(RouteContext);return na||invariant$2(!1),na}function useCurrentRouteId(ea){let na=useRouteContext(),ra=na.matches[na.matches.length-1];return ra.route.id||invariant$2(!1),ra.route.id}function useRouteError(){var ea;let na=reactExports.useContext(RouteErrorContext),ra=useDataRouterState(),oa=useCurrentRouteId();return na!==void 0?na:(ea=ra.errors)==null?void 0:ea[oa]}function useNavigateStable(){let{router:ea}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),na=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),ra=reactExports.useRef(!1);return useIsomorphicLayoutEffect$3(()=>{ra.current=!0}),reactExports.useCallback(function(aa,sa){sa===void 0&&(sa={}),ra.current&&(typeof aa=="number"?ea.navigate(aa):ea.navigate(aa,_extends$1({fromRouteId:na},sa)))},[ea,na])}const alreadyWarned$1={};function warningOnce(ea,na,ra){alreadyWarned$1[ea]||(alreadyWarned$1[ea]=!0)}function logV6DeprecationWarnings(ea,na){ea?.v7_startTransition,ea?.v7_relativeSplatPath}function Navigate(ea){let{to:na,replace:ra,state:oa,relative:aa}=ea;useInRouterContext()||invariant$2(!1);let{future:sa,static:la}=reactExports.useContext(NavigationContext$1),{matches:ca}=reactExports.useContext(RouteContext),{pathname:ua}=useLocation(),da=useNavigate(),pa=resolveTo(na,getResolveToMatches(ca,sa.v7_relativeSplatPath),ua,aa==="path"),ha=JSON.stringify(pa);return reactExports.useEffect(()=>da(JSON.parse(ha),{replace:ra,state:oa,relative:aa}),[da,ha,aa,ra,oa]),null}function Router(ea){let{basename:na="/",children:ra=null,location:oa,navigationType:aa=Action$3.Pop,navigator:sa,static:la=!1,future:ca}=ea;useInRouterContext()&&invariant$2(!1);let ua=na.replace(/^\/*/,"/"),da=reactExports.useMemo(()=>({basename:ua,navigator:sa,static:la,future:_extends$1({v7_relativeSplatPath:!1},ca)}),[ua,ca,sa,la]);typeof oa=="string"&&(oa=parsePath(oa));let{pathname:pa="/",search:ha="",hash:ga="",state:fa=null,key:ma="default"}=oa,va=reactExports.useMemo(()=>{let xa=stripBasename(pa,ua);return xa==null?null:{location:{pathname:xa,search:ha,hash:ga,state:fa,key:ma},navigationType:aa}},[ua,pa,ha,ga,fa,ma,aa]);return va==null?null:reactExports.createElement(NavigationContext$1.Provider,{value:da},reactExports.createElement(LocationContext.Provider,{children:ra,value:va}))}new Promise(()=>{});/**
 * React Router DOM v6.29.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends(){return _extends=Object.assign?Object.assign.bind():function(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na];for(var oa in ra)Object.prototype.hasOwnProperty.call(ra,oa)&&(ea[oa]=ra[oa])}return ea},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(ea,na){if(ea==null)return{};var ra={},oa=Object.keys(ea),aa,sa;for(sa=0;sa<oa.length;sa++)aa=oa[sa],!(na.indexOf(aa)>=0)&&(ra[aa]=ea[aa]);return ra}function isModifiedEvent(ea){return!!(ea.metaKey||ea.altKey||ea.ctrlKey||ea.shiftKey)}function shouldProcessLinkClick(ea,na){return ea.button===0&&(!na||na==="_self")&&!isModifiedEvent(ea)}const _excluded=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function HashRouter(ea){let{basename:na,children:ra,future:oa,window:aa}=ea,sa=reactExports.useRef();sa.current==null&&(sa.current=createHashHistory({window:aa,v5Compat:!0}));let la=sa.current,[ca,ua]=reactExports.useState({action:la.action,location:la.location}),{v7_startTransition:da}=oa||{},pa=reactExports.useCallback(ha=>{da&&startTransitionImpl?startTransitionImpl(()=>ua(ha)):ua(ha)},[ua,da]);return reactExports.useLayoutEffect(()=>la.listen(pa),[la,pa]),reactExports.useEffect(()=>logV6DeprecationWarnings(oa),[oa]),reactExports.createElement(Router,{basename:na,children:ra,location:ca.location,navigationType:ca.action,navigator:la,future:oa})}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link$1=reactExports.forwardRef(function(na,ra){let{onClick:oa,relative:aa,reloadDocument:sa,replace:la,state:ca,target:ua,to:da,preventScrollReset:pa,viewTransition:ha}=na,ga=_objectWithoutPropertiesLoose$1(na,_excluded),{basename:fa}=reactExports.useContext(NavigationContext$1),ma,va=!1;if(typeof da=="string"&&ABSOLUTE_URL_REGEX.test(da)&&(ma=da,isBrowser))try{let Ca=new URL(window.location.href),Sa=da.startsWith("//")?new URL(Ca.protocol+da):new URL(da),wa=stripBasename(Sa.pathname,fa);Sa.origin===Ca.origin&&wa!=null?da=wa+Sa.search+Sa.hash:va=!0}catch{}let xa=useHref(da,{relative:aa}),ya=useLinkClickHandler(da,{replace:la,state:ca,target:ua,preventScrollReset:pa,relative:aa,viewTransition:ha});function Aa(Ca){oa&&oa(Ca),Ca.defaultPrevented||ya(Ca)}return reactExports.createElement("a",_extends({},ga,{href:ma||xa,onClick:va||sa?oa:Aa,ref:ra,target:ua}))});var DataRouterHook;(function(ea){ea.UseScrollRestoration="useScrollRestoration",ea.UseSubmit="useSubmit",ea.UseSubmitFetcher="useSubmitFetcher",ea.UseFetcher="useFetcher",ea.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(ea){ea.UseFetcher="useFetcher",ea.UseFetchers="useFetchers",ea.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(ea,na){let{target:ra,replace:oa,state:aa,preventScrollReset:sa,relative:la,viewTransition:ca}=na===void 0?{}:na,ua=useNavigate(),da=useLocation(),pa=useResolvedPath(ea,{relative:la});return reactExports.useCallback(ha=>{if(shouldProcessLinkClick(ha,ra)){ha.preventDefault();let ga=oa!==void 0?oa:createPath(da)===createPath(pa);ua(ea,{replace:ga,state:aa,preventScrollReset:sa,relative:la,viewTransition:ca})}},[da,ua,pa,oa,aa,ra,ea,sa,la,ca])}const MediaCropperToolProvider=({children:ea})=>{const[na,ra]=reactExports.useState(void 0);return jsxRuntimeExports.jsx(MediaCropperToolContext.Provider,{value:{cropperData:na,setCropperData:ra},children:ea})};function memoize(ea){let na=null;return()=>(na==null&&(na=ea()),na)}function without$1(ea,na){return ea.filter(ra=>ra!==na)}function union(ea,na){const ra=new Set,oa=sa=>ra.add(sa);ea.forEach(oa),na.forEach(oa);const aa=[];return ra.forEach(sa=>aa.push(sa)),aa}class EnterLeaveCounter{enter(na){const ra=this.entered.length,oa=aa=>this.isNodeInDocument(aa)&&(!aa.contains||aa.contains(na));return this.entered=union(this.entered.filter(oa),[na]),ra===0&&this.entered.length>0}leave(na){const ra=this.entered.length;return this.entered=without$1(this.entered.filter(this.isNodeInDocument),na),ra>0&&this.entered.length===0}reset(){this.entered=[]}constructor(na){this.entered=[],this.isNodeInDocument=na}}class NativeDragSource{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(na=>{Object.defineProperty(this.item,na,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${na}" until the drop event.`),null}})})}loadDataTransfer(na){if(na){const ra={};Object.keys(this.config.exposeProperties).forEach(oa=>{const aa=this.config.exposeProperties[oa];aa!=null&&(ra[oa]={value:aa(na,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,ra)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(na,ra){return ra===na.getSourceId()}endDrag(){}constructor(na){this.config=na,this.item={},this.initializeExposedProperties()}}const FILE="__NATIVE_FILE__",URL$1="__NATIVE_URL__",TEXT="__NATIVE_TEXT__",HTML="__NATIVE_HTML__",NativeTypes=Object.freeze(Object.defineProperty({__proto__:null,FILE,HTML,TEXT,URL:URL$1},Symbol.toStringTag,{value:"Module"}));function getDataFromDataTransfer(ea,na,ra){const oa=na.reduce((aa,sa)=>aa||ea.getData(sa),"");return oa??ra}const nativeTypesConfig={[FILE]:{exposeProperties:{files:ea=>Array.prototype.slice.call(ea.files),items:ea=>ea.items,dataTransfer:ea=>ea},matchesTypes:["Files"]},[HTML]:{exposeProperties:{html:(ea,na)=>getDataFromDataTransfer(ea,na,""),dataTransfer:ea=>ea},matchesTypes:["Html","text/html"]},[URL$1]:{exposeProperties:{urls:(ea,na)=>getDataFromDataTransfer(ea,na,"").split(`
`),dataTransfer:ea=>ea},matchesTypes:["Url","text/uri-list"]},[TEXT]:{exposeProperties:{text:(ea,na)=>getDataFromDataTransfer(ea,na,""),dataTransfer:ea=>ea},matchesTypes:["Text","text/plain"]}};function createNativeDragSource(ea,na){const ra=nativeTypesConfig[ea];if(!ra)throw new Error(`native type ${ea} has no configuration`);const oa=new NativeDragSource(ra);return oa.loadDataTransfer(na),oa}function matchNativeItemType(ea){if(!ea)return null;const na=Array.prototype.slice.call(ea.types||[]);return Object.keys(nativeTypesConfig).filter(ra=>{const oa=nativeTypesConfig[ra];return oa?.matchesTypes?oa.matchesTypes.some(aa=>na.indexOf(aa)>-1):!1})[0]||null}const isFirefox=memoize(()=>/firefox/i.test(navigator.userAgent)),isSafari=memoize(()=>!!window.safari);class MonotonicInterpolant{interpolate(na){const{xs:ra,ys:oa,c1s:aa,c2s:sa,c3s:la}=this;let ca=ra.length-1;if(na===ra[ca])return oa[ca];let ua=0,da=la.length-1,pa;for(;ua<=da;){pa=Math.floor(.5*(ua+da));const fa=ra[pa];if(fa<na)ua=pa+1;else if(fa>na)da=pa-1;else return oa[pa]}ca=Math.max(0,da);const ha=na-ra[ca],ga=ha*ha;return oa[ca]+aa[ca]*ha+sa[ca]*ga+la[ca]*ha*ga}constructor(na,ra){const{length:oa}=na,aa=[];for(let fa=0;fa<oa;fa++)aa.push(fa);aa.sort((fa,ma)=>na[fa]<na[ma]?-1:1);const sa=[],la=[];let ca,ua;for(let fa=0;fa<oa-1;fa++)ca=na[fa+1]-na[fa],ua=ra[fa+1]-ra[fa],sa.push(ca),la.push(ua/ca);const da=[la[0]];for(let fa=0;fa<sa.length-1;fa++){const ma=la[fa],va=la[fa+1];if(ma*va<=0)da.push(0);else{ca=sa[fa];const xa=sa[fa+1],ya=ca+xa;da.push(3*ya/((ya+xa)/ma+(ya+ca)/va))}}da.push(la[la.length-1]);const pa=[],ha=[];let ga;for(let fa=0;fa<da.length-1;fa++){ga=la[fa];const ma=da[fa],va=1/sa[fa],xa=ma+da[fa+1]-ga-ga;pa.push((ga-ma-xa)*va),ha.push(xa*va*va)}this.xs=na,this.ys=ra,this.c1s=da,this.c2s=pa,this.c3s=ha}}const ELEMENT_NODE=1;function getNodeClientOffset(ea){const na=ea.nodeType===ELEMENT_NODE?ea:ea.parentElement;if(!na)return null;const{top:ra,left:oa}=na.getBoundingClientRect();return{x:oa,y:ra}}function getEventClientOffset(ea){return{x:ea.clientX,y:ea.clientY}}function isImageNode(ea){var na;return ea.nodeName==="IMG"&&(isFirefox()||!(!((na=document.documentElement)===null||na===void 0)&&na.contains(ea)))}function getDragPreviewSize(ea,na,ra,oa){let aa=ea?na.width:ra,sa=ea?na.height:oa;return isSafari()&&ea&&(sa/=window.devicePixelRatio,aa/=window.devicePixelRatio),{dragPreviewWidth:aa,dragPreviewHeight:sa}}function getDragPreviewOffset(ea,na,ra,oa,aa){const sa=isImageNode(na),ca=getNodeClientOffset(sa?ea:na),ua={x:ra.x-ca.x,y:ra.y-ca.y},{offsetWidth:da,offsetHeight:pa}=ea,{anchorX:ha,anchorY:ga}=oa,{dragPreviewWidth:fa,dragPreviewHeight:ma}=getDragPreviewSize(sa,na,da,pa),va=()=>{let ba=new MonotonicInterpolant([0,.5,1],[ua.y,ua.y/pa*ma,ua.y+ma-pa]).interpolate(ga);return isSafari()&&sa&&(ba+=(window.devicePixelRatio-1)*ma),ba},xa=()=>new MonotonicInterpolant([0,.5,1],[ua.x,ua.x/da*fa,ua.x+fa-da]).interpolate(ha),{offsetX:ya,offsetY:Aa}=aa,Ca=ya===0||ya,Sa=Aa===0||Aa;return{x:Ca?ya:xa(),y:Sa?Aa:va()}}class OptionsReader{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var na;return!((na=this.globalContext)===null||na===void 0)&&na.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var na;return((na=this.optionsArgs)===null||na===void 0?void 0:na.rootElement)||this.window}constructor(na,ra){this.ownerDocument=null,this.globalContext=na,this.optionsArgs=ra}}function _defineProperty$4(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread$4(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&(oa=oa.concat(Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable}))),oa.forEach(function(aa){_defineProperty$4(ea,aa,ra[aa])})}return ea}class HTML5BackendImpl{profile(){var na,ra;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((na=this.dragStartSourceIds)===null||na===void 0?void 0:na.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((ra=this.dragOverTargetIds)===null||ra===void 0?void 0:ra.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const na=this.rootElement;if(na!==void 0){if(na.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");na.__isReactDndBackendSetUp=!0,this.addEventListeners(na)}}teardown(){const na=this.rootElement;if(na!==void 0&&(na.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var ra;(ra=this.window)===null||ra===void 0||ra.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(na,ra,oa){return this.sourcePreviewNodeOptions.set(na,oa),this.sourcePreviewNodes.set(na,ra),()=>{this.sourcePreviewNodes.delete(na),this.sourcePreviewNodeOptions.delete(na)}}connectDragSource(na,ra,oa){this.sourceNodes.set(na,ra),this.sourceNodeOptions.set(na,oa);const aa=la=>this.handleDragStart(la,na),sa=la=>this.handleSelectStart(la);return ra.setAttribute("draggable","true"),ra.addEventListener("dragstart",aa),ra.addEventListener("selectstart",sa),()=>{this.sourceNodes.delete(na),this.sourceNodeOptions.delete(na),ra.removeEventListener("dragstart",aa),ra.removeEventListener("selectstart",sa),ra.setAttribute("draggable","false")}}connectDropTarget(na,ra){const oa=la=>this.handleDragEnter(la,na),aa=la=>this.handleDragOver(la,na),sa=la=>this.handleDrop(la,na);return ra.addEventListener("dragenter",oa),ra.addEventListener("dragover",aa),ra.addEventListener("drop",sa),()=>{ra.removeEventListener("dragenter",oa),ra.removeEventListener("dragover",aa),ra.removeEventListener("drop",sa)}}addEventListeners(na){na.addEventListener&&(na.addEventListener("dragstart",this.handleTopDragStart),na.addEventListener("dragstart",this.handleTopDragStartCapture,!0),na.addEventListener("dragend",this.handleTopDragEndCapture,!0),na.addEventListener("dragenter",this.handleTopDragEnter),na.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),na.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),na.addEventListener("dragover",this.handleTopDragOver),na.addEventListener("dragover",this.handleTopDragOverCapture,!0),na.addEventListener("drop",this.handleTopDrop),na.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(na){na.removeEventListener&&(na.removeEventListener("dragstart",this.handleTopDragStart),na.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),na.removeEventListener("dragend",this.handleTopDragEndCapture,!0),na.removeEventListener("dragenter",this.handleTopDragEnter),na.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),na.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),na.removeEventListener("dragover",this.handleTopDragOver),na.removeEventListener("dragover",this.handleTopDragOverCapture,!0),na.removeEventListener("drop",this.handleTopDrop),na.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const na=this.monitor.getSourceId(),ra=this.sourceNodeOptions.get(na);return _objectSpread$4({dropEffect:this.altKeyPressed?"copy":"move"},ra||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const na=this.monitor.getSourceId(),ra=this.sourcePreviewNodeOptions.get(na);return _objectSpread$4({anchorX:.5,anchorY:.5,captureDraggingState:!1},ra||{})}isDraggingNativeItem(){const na=this.monitor.getItemType();return Object.keys(NativeTypes).some(ra=>NativeTypes[ra]===na)}beginDragNativeItem(na,ra){this.clearCurrentDragSourceNode(),this.currentNativeSource=createNativeDragSource(na,ra),this.currentNativeHandle=this.registry.addSource(na,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(na){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=na;const ra=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var oa;return(oa=this.rootElement)===null||oa===void 0?void 0:oa.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},ra)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var na;(na=this.window)===null||na===void 0||na.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(na,ra){na.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(ra))}handleDragEnter(na,ra){this.dragEnterTargetIds.unshift(ra)}handleDragOver(na,ra){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(ra)}handleDrop(na,ra){this.dropTargetIds.unshift(ra)}constructor(na,ra,oa){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=aa=>{const sa=this.sourceNodes.get(aa);return sa&&getNodeClientOffset(sa)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=aa=>!!(aa&&this.document&&this.document.body&&this.document.body.contains(aa)),this.endDragIfSourceWasRemovedFromDOM=()=>{const aa=this.currentDragSourceNode;aa==null||this.isNodeInDocument(aa)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=aa=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(aa||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=aa=>{if(aa.defaultPrevented)return;const{dragStartSourceIds:sa}=this;this.dragStartSourceIds=null;const la=getEventClientOffset(aa);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(sa||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:la});const{dataTransfer:ca}=aa,ua=matchNativeItemType(ca);if(this.monitor.isDragging()){if(ca&&typeof ca.setDragImage=="function"){const pa=this.monitor.getSourceId(),ha=this.sourceNodes.get(pa),ga=this.sourcePreviewNodes.get(pa)||ha;if(ga){const{anchorX:fa,anchorY:ma,offsetX:va,offsetY:xa}=this.getCurrentSourcePreviewNodeOptions(),Ca=getDragPreviewOffset(ha,ga,la,{anchorX:fa,anchorY:ma},{offsetX:va,offsetY:xa});ca.setDragImage(ga,Ca.x,Ca.y)}}try{ca?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(aa.target);const{captureDraggingState:da}=this.getCurrentSourcePreviewNodeOptions();da?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(ua)this.beginDragNativeItem(ua);else{if(ca&&!ca.types&&(aa.target&&!aa.target.hasAttribute||!aa.target.hasAttribute("draggable")))return;aa.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=aa=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var sa;(sa=this.currentNativeSource)===null||sa===void 0||sa.loadDataTransfer(aa.dataTransfer)}if(!this.enterLeaveCounter.enter(aa.target)||this.monitor.isDragging())return;const{dataTransfer:ca}=aa,ua=matchNativeItemType(ca);ua&&this.beginDragNativeItem(ua,ca)},this.handleTopDragEnter=aa=>{const{dragEnterTargetIds:sa}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=aa.altKey,sa.length>0&&this.actions.hover(sa,{clientOffset:getEventClientOffset(aa)}),sa.some(ca=>this.monitor.canDropOnTarget(ca))&&(aa.preventDefault(),aa.dataTransfer&&(aa.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=aa=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var sa;(sa=this.currentNativeSource)===null||sa===void 0||sa.loadDataTransfer(aa.dataTransfer)}},this.handleTopDragOver=aa=>{const{dragOverTargetIds:sa}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){aa.preventDefault(),aa.dataTransfer&&(aa.dataTransfer.dropEffect="none");return}this.altKeyPressed=aa.altKey,this.lastClientOffset=getEventClientOffset(aa),this.scheduleHover(sa),(sa||[]).some(ca=>this.monitor.canDropOnTarget(ca))?(aa.preventDefault(),aa.dataTransfer&&(aa.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?aa.preventDefault():(aa.preventDefault(),aa.dataTransfer&&(aa.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=aa=>{this.isDraggingNativeItem()&&aa.preventDefault(),this.enterLeaveCounter.leave(aa.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=aa=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var sa;aa.preventDefault(),(sa=this.currentNativeSource)===null||sa===void 0||sa.loadDataTransfer(aa.dataTransfer)}else matchNativeItemType(aa.dataTransfer)&&aa.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=aa=>{const{dropTargetIds:sa}=this;this.dropTargetIds=[],this.actions.hover(sa,{clientOffset:getEventClientOffset(aa)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=aa=>{const sa=aa.target;typeof sa.dragDrop=="function"&&(sa.tagName==="INPUT"||sa.tagName==="SELECT"||sa.tagName==="TEXTAREA"||sa.isContentEditable||(aa.preventDefault(),sa.dragDrop()))},this.options=new OptionsReader(ra,oa),this.actions=na.getActions(),this.monitor=na.getMonitor(),this.registry=na.getRegistry(),this.enterLeaveCounter=new EnterLeaveCounter(this.isNodeInDocument)}}let emptyImage;function getEmptyImage(){return emptyImage||(emptyImage=new Image,emptyImage.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),emptyImage}const HTML5Backend=function(na,ra,oa){return new HTML5BackendImpl(na,ra,oa)};function isModifierKeyPressed(ea){return ea.metaKey?"Meta":ea.ctrlKey?"Ctrl":ea.altKey?"Alt":ea.shiftKey?"Shift":""}function HTML5BackendWithModifierKeys(ea){return(na,ra)=>{const oa=HTML5Backend(na,ra),aa=oa.handleTopDragEnter;oa.handleTopDragEnter=la=>{aa(la),window[ea]=isModifierKeyPressed(la)};const sa=oa.handleTopDragOver;return oa.handleTopDragOver=la=>{sa(la),window[ea]=isModifierKeyPressed(la)},oa}}const DndContext$2=reactExports.createContext({dragDropManager:void 0});function invariant$1(ea,na,...ra){if(isProduction()&&na===void 0)throw new Error("invariant requires an error message argument");if(!ea){let oa;if(na===void 0)oa=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let aa=0;oa=new Error(na.replace(/%s/g,function(){return ra[aa++]})),oa.name="Invariant Violation"}throw oa.framesToPop=1,oa}}function isProduction(){return typeof process<"u"&&!0}function get(ea,na,ra){return na.split(".").reduce((oa,aa)=>oa&&oa[aa]?oa[aa]:ra||null,ea)}function without(ea,na){return ea.filter(ra=>ra!==na)}function isObject$1(ea){return typeof ea=="object"}function xor(ea,na){const ra=new Map,oa=sa=>{ra.set(sa,ra.has(sa)?ra.get(sa)+1:1)};ea.forEach(oa),na.forEach(oa);const aa=[];return ra.forEach((sa,la)=>{sa===1&&aa.push(la)}),aa}function intersection(ea,na){return ea.filter(ra=>na.indexOf(ra)>-1)}const INIT_COORDS="dnd-core/INIT_COORDS",BEGIN_DRAG="dnd-core/BEGIN_DRAG",PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",HOVER="dnd-core/HOVER",DROP="dnd-core/DROP",END_DRAG="dnd-core/END_DRAG";function setClientOffset(ea,na){return{type:INIT_COORDS,payload:{sourceClientOffset:na||null,clientOffset:ea||null}}}const ResetCoordinatesAction={type:INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function createBeginDrag(ea){return function(ra=[],oa={publishSource:!0}){const{publishSource:aa=!0,clientOffset:sa,getSourceClientOffset:la}=oa,ca=ea.getMonitor(),ua=ea.getRegistry();ea.dispatch(setClientOffset(sa)),verifyInvariants$1(ra,ca,ua);const da=getDraggableSource(ra,ca);if(da==null){ea.dispatch(ResetCoordinatesAction);return}let pa=null;if(sa){if(!la)throw new Error("getSourceClientOffset must be defined");verifyGetSourceClientOffsetIsFunction(la),pa=la(da)}ea.dispatch(setClientOffset(sa,pa));const ga=ua.getSource(da).beginDrag(ca,da);if(ga==null)return;verifyItemIsObject(ga),ua.pinSource(da);const fa=ua.getSourceType(da);return{type:BEGIN_DRAG,payload:{itemType:fa,item:ga,sourceId:da,clientOffset:sa||null,sourceClientOffset:pa||null,isSourcePublic:!!aa}}}}function verifyInvariants$1(ea,na,ra){invariant$1(!na.isDragging(),"Cannot call beginDrag while dragging."),ea.forEach(function(oa){invariant$1(ra.getSource(oa),"Expected sourceIds to be registered.")})}function verifyGetSourceClientOffsetIsFunction(ea){invariant$1(typeof ea=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function verifyItemIsObject(ea){invariant$1(isObject$1(ea),"Item must be an object.")}function getDraggableSource(ea,na){let ra=null;for(let oa=ea.length-1;oa>=0;oa--)if(na.canDragSource(ea[oa])){ra=ea[oa];break}return ra}function _defineProperty$3(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread$3(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&(oa=oa.concat(Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable}))),oa.forEach(function(aa){_defineProperty$3(ea,aa,ra[aa])})}return ea}function createDrop(ea){return function(ra={}){const oa=ea.getMonitor(),aa=ea.getRegistry();verifyInvariants(oa),getDroppableTargets(oa).forEach((la,ca)=>{const ua=determineDropResult(la,ca,aa,oa),da={type:DROP,payload:{dropResult:_objectSpread$3({},ra,ua)}};ea.dispatch(da)})}}function verifyInvariants(ea){invariant$1(ea.isDragging(),"Cannot call drop while not dragging."),invariant$1(!ea.didDrop(),"Cannot call drop twice during one drag operation.")}function determineDropResult(ea,na,ra,oa){const aa=ra.getTarget(ea);let sa=aa?aa.drop(oa,ea):void 0;return verifyDropResultType(sa),typeof sa>"u"&&(sa=na===0?{}:oa.getDropResult()),sa}function verifyDropResultType(ea){invariant$1(typeof ea>"u"||isObject$1(ea),"Drop result must either be an object or undefined.")}function getDroppableTargets(ea){const na=ea.getTargetIds().filter(ea.canDropOnTarget,ea);return na.reverse(),na}function createEndDrag(ea){return function(){const ra=ea.getMonitor(),oa=ea.getRegistry();verifyIsDragging(ra);const aa=ra.getSourceId();return aa!=null&&(oa.getSource(aa,!0).endDrag(ra,aa),oa.unpinSource()),{type:END_DRAG}}}function verifyIsDragging(ea){invariant$1(ea.isDragging(),"Cannot call endDrag while not dragging.")}function matchesType(ea,na){return na===null?ea===null:Array.isArray(ea)?ea.some(ra=>ra===na):ea===na}function createHover(ea){return function(ra,{clientOffset:oa}={}){verifyTargetIdsIsArray(ra);const aa=ra.slice(0),sa=ea.getMonitor(),la=ea.getRegistry(),ca=sa.getItemType();return removeNonMatchingTargetIds(aa,la,ca),checkInvariants(aa,sa,la),hoverAllTargets(aa,sa,la),{type:HOVER,payload:{targetIds:aa,clientOffset:oa||null}}}}function verifyTargetIdsIsArray(ea){invariant$1(Array.isArray(ea),"Expected targetIds to be an array.")}function checkInvariants(ea,na,ra){invariant$1(na.isDragging(),"Cannot call hover while not dragging."),invariant$1(!na.didDrop(),"Cannot call hover after drop.");for(let oa=0;oa<ea.length;oa++){const aa=ea[oa];invariant$1(ea.lastIndexOf(aa)===oa,"Expected targetIds to be unique in the passed array.");const sa=ra.getTarget(aa);invariant$1(sa,"Expected targetIds to be registered.")}}function removeNonMatchingTargetIds(ea,na,ra){for(let oa=ea.length-1;oa>=0;oa--){const aa=ea[oa],sa=na.getTargetType(aa);matchesType(sa,ra)||ea.splice(oa,1)}}function hoverAllTargets(ea,na,ra){ea.forEach(function(oa){ra.getTarget(oa).hover(na,oa)})}function createPublishDragSource(ea){return function(){if(ea.getMonitor().isDragging())return{type:PUBLISH_DRAG_SOURCE}}}function createDragDropActions(ea){return{beginDrag:createBeginDrag(ea),publishDragSource:createPublishDragSource(ea),hover:createHover(ea),drop:createDrop(ea),endDrag:createEndDrag(ea)}}class DragDropManagerImpl{receiveBackend(na){this.backend=na}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const na=this,{dispatch:ra}=this.store;function oa(sa){return(...la)=>{const ca=sa.apply(na,la);typeof ca<"u"&&ra(ca)}}const aa=createDragDropActions(this);return Object.keys(aa).reduce((sa,la)=>{const ca=aa[la];return sa[la]=oa(ca),sa},{})}dispatch(na){this.store.dispatch(na)}constructor(na,ra){this.isSetUp=!1,this.handleRefCountChange=()=>{const oa=this.store.getState().refCount>0;this.backend&&(oa&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!oa&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=na,this.monitor=ra,na.subscribe(this.handleRefCountChange)}}function add$2(ea,na){return{x:ea.x+na.x,y:ea.y+na.y}}function subtract$1(ea,na){return{x:ea.x-na.x,y:ea.y-na.y}}function getSourceClientOffset(ea){const{clientOffset:na,initialClientOffset:ra,initialSourceClientOffset:oa}=ea;return!na||!ra||!oa?null:subtract$1(add$2(na,oa),ra)}function getDifferenceFromInitialOffset(ea){const{clientOffset:na,initialClientOffset:ra}=ea;return!na||!ra?null:subtract$1(na,ra)}const NONE=[],ALL=[];NONE.__IS_NONE__=!0;ALL.__IS_ALL__=!0;function areDirty(ea,na){return ea===NONE?!1:ea===ALL||typeof na>"u"?!0:intersection(na,ea).length>0}class DragDropMonitorImpl{subscribeToStateChange(na,ra={}){const{handlerIds:oa}=ra;invariant$1(typeof na=="function","listener must be a function."),invariant$1(typeof oa>"u"||Array.isArray(oa),"handlerIds, when specified, must be an array of strings.");let aa=this.store.getState().stateId;const sa=()=>{const la=this.store.getState(),ca=la.stateId;try{ca===aa||ca===aa+1&&!areDirty(la.dirtyHandlerIds,oa)||na()}finally{aa=ca}};return this.store.subscribe(sa)}subscribeToOffsetChange(na){invariant$1(typeof na=="function","listener must be a function.");let ra=this.store.getState().dragOffset;const oa=()=>{const aa=this.store.getState().dragOffset;aa!==ra&&(ra=aa,na())};return this.store.subscribe(oa)}canDragSource(na){if(!na)return!1;const ra=this.registry.getSource(na);return invariant$1(ra,`Expected to find a valid source. sourceId=${na}`),this.isDragging()?!1:ra.canDrag(this,na)}canDropOnTarget(na){if(!na)return!1;const ra=this.registry.getTarget(na);if(invariant$1(ra,`Expected to find a valid target. targetId=${na}`),!this.isDragging()||this.didDrop())return!1;const oa=this.registry.getTargetType(na),aa=this.getItemType();return matchesType(oa,aa)&&ra.canDrop(this,na)}isDragging(){return!!this.getItemType()}isDraggingSource(na){if(!na)return!1;const ra=this.registry.getSource(na,!0);if(invariant$1(ra,`Expected to find a valid source. sourceId=${na}`),!this.isDragging()||!this.isSourcePublic())return!1;const oa=this.registry.getSourceType(na),aa=this.getItemType();return oa!==aa?!1:ra.isDragging(this,na)}isOverTarget(na,ra={shallow:!1}){if(!na)return!1;const{shallow:oa}=ra;if(!this.isDragging())return!1;const aa=this.registry.getTargetType(na),sa=this.getItemType();if(sa&&!matchesType(aa,sa))return!1;const la=this.getTargetIds();if(!la.length)return!1;const ca=la.indexOf(na);return oa?ca===la.length-1:ca>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return getSourceClientOffset(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return getDifferenceFromInitialOffset(this.store.getState().dragOffset)}constructor(na,ra){this.store=na,this.registry=ra}}const scope=typeof global<"u"?global:self,BrowserMutationObserver=scope.MutationObserver||scope.WebKitMutationObserver;function makeRequestCallFromTimer(ea){return function(){const ra=setTimeout(aa,0),oa=setInterval(aa,50);function aa(){clearTimeout(ra),clearInterval(oa),ea()}}}function makeRequestCallFromMutationObserver(ea){let na=1;const ra=new BrowserMutationObserver(ea),oa=document.createTextNode("");return ra.observe(oa,{characterData:!0}),function(){na=-na,oa.data=na}}const makeRequestCall=typeof BrowserMutationObserver=="function"?makeRequestCallFromMutationObserver:makeRequestCallFromTimer;class AsapQueue{enqueueTask(na){const{queue:ra,requestFlush:oa}=this;ra.length||(oa(),this.flushing=!0),ra[ra.length]=na}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:na}=this;for(;this.index<na.length;){const ra=this.index;if(this.index++,na[ra].call(),this.index>this.capacity){for(let oa=0,aa=na.length-this.index;oa<aa;oa++)na[oa]=na[oa+this.index];na.length-=this.index,this.index=0}}na.length=0,this.index=0,this.flushing=!1},this.registerPendingError=na=>{this.pendingErrors.push(na),this.requestErrorThrow()},this.requestFlush=makeRequestCall(this.flush),this.requestErrorThrow=makeRequestCallFromTimer(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class RawTask{call(){try{this.task&&this.task()}catch(na){this.onError(na)}finally{this.task=null,this.release(this)}}constructor(na,ra){this.onError=na,this.release=ra,this.task=null}}class TaskFactory{create(na){const ra=this.freeTasks,oa=ra.length?ra.pop():new RawTask(this.onError,aa=>ra[ra.length]=aa);return oa.task=na,oa}constructor(na){this.onError=na,this.freeTasks=[]}}const asapQueue=new AsapQueue,taskFactory=new TaskFactory(asapQueue.registerPendingError);function asap(ea){asapQueue.enqueueTask(taskFactory.create(ea))}const ADD_SOURCE="dnd-core/ADD_SOURCE",ADD_TARGET="dnd-core/ADD_TARGET",REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",REMOVE_TARGET="dnd-core/REMOVE_TARGET";function addSource(ea){return{type:ADD_SOURCE,payload:{sourceId:ea}}}function addTarget(ea){return{type:ADD_TARGET,payload:{targetId:ea}}}function removeSource(ea){return{type:REMOVE_SOURCE,payload:{sourceId:ea}}}function removeTarget(ea){return{type:REMOVE_TARGET,payload:{targetId:ea}}}function validateSourceContract(ea){invariant$1(typeof ea.canDrag=="function","Expected canDrag to be a function."),invariant$1(typeof ea.beginDrag=="function","Expected beginDrag to be a function."),invariant$1(typeof ea.endDrag=="function","Expected endDrag to be a function.")}function validateTargetContract(ea){invariant$1(typeof ea.canDrop=="function","Expected canDrop to be a function."),invariant$1(typeof ea.hover=="function","Expected hover to be a function."),invariant$1(typeof ea.drop=="function","Expected beginDrag to be a function.")}function validateType(ea,na){if(na&&Array.isArray(ea)){ea.forEach(ra=>validateType(ra,!1));return}invariant$1(typeof ea=="string"||typeof ea=="symbol",na?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var HandlerRole;(function(ea){ea.SOURCE="SOURCE",ea.TARGET="TARGET"})(HandlerRole||(HandlerRole={}));let nextUniqueId=0;function getNextUniqueId(){return nextUniqueId++}function getNextHandlerId(ea){const na=getNextUniqueId().toString();switch(ea){case HandlerRole.SOURCE:return`S${na}`;case HandlerRole.TARGET:return`T${na}`;default:throw new Error(`Unknown Handler Role: ${ea}`)}}function parseRoleFromHandlerId(ea){switch(ea[0]){case"S":return HandlerRole.SOURCE;case"T":return HandlerRole.TARGET;default:throw new Error(`Cannot parse handler ID: ${ea}`)}}function mapContainsValue(ea,na){const ra=ea.entries();let oa=!1;do{const{done:aa,value:[,sa]}=ra.next();if(sa===na)return!0;oa=!!aa}while(!oa);return!1}class HandlerRegistryImpl{addSource(na,ra){validateType(na),validateSourceContract(ra);const oa=this.addHandler(HandlerRole.SOURCE,na,ra);return this.store.dispatch(addSource(oa)),oa}addTarget(na,ra){validateType(na,!0),validateTargetContract(ra);const oa=this.addHandler(HandlerRole.TARGET,na,ra);return this.store.dispatch(addTarget(oa)),oa}containsHandler(na){return mapContainsValue(this.dragSources,na)||mapContainsValue(this.dropTargets,na)}getSource(na,ra=!1){return invariant$1(this.isSourceId(na),"Expected a valid source ID."),ra&&na===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(na)}getTarget(na){return invariant$1(this.isTargetId(na),"Expected a valid target ID."),this.dropTargets.get(na)}getSourceType(na){return invariant$1(this.isSourceId(na),"Expected a valid source ID."),this.types.get(na)}getTargetType(na){return invariant$1(this.isTargetId(na),"Expected a valid target ID."),this.types.get(na)}isSourceId(na){return parseRoleFromHandlerId(na)===HandlerRole.SOURCE}isTargetId(na){return parseRoleFromHandlerId(na)===HandlerRole.TARGET}removeSource(na){invariant$1(this.getSource(na),"Expected an existing source."),this.store.dispatch(removeSource(na)),asap(()=>{this.dragSources.delete(na),this.types.delete(na)})}removeTarget(na){invariant$1(this.getTarget(na),"Expected an existing target."),this.store.dispatch(removeTarget(na)),this.dropTargets.delete(na),this.types.delete(na)}pinSource(na){const ra=this.getSource(na);invariant$1(ra,"Expected an existing source."),this.pinnedSourceId=na,this.pinnedSource=ra}unpinSource(){invariant$1(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(na,ra,oa){const aa=getNextHandlerId(na);return this.types.set(aa,ra),na===HandlerRole.SOURCE?this.dragSources.set(aa,oa):na===HandlerRole.TARGET&&this.dropTargets.set(aa,oa),aa}constructor(na){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=na}}const strictEquality=(ea,na)=>ea===na;function areCoordsEqual(ea,na){return!ea&&!na?!0:!ea||!na?!1:ea.x===na.x&&ea.y===na.y}function areArraysEqual(ea,na,ra=strictEquality){if(ea.length!==na.length)return!1;for(let oa=0;oa<ea.length;++oa)if(!ra(ea[oa],na[oa]))return!1;return!0}function reduce$5(ea=NONE,na){switch(na.type){case HOVER:break;case ADD_SOURCE:case ADD_TARGET:case REMOVE_TARGET:case REMOVE_SOURCE:return NONE;case BEGIN_DRAG:case PUBLISH_DRAG_SOURCE:case END_DRAG:case DROP:default:return ALL}const{targetIds:ra=[],prevTargetIds:oa=[]}=na.payload,aa=xor(ra,oa);if(!(aa.length>0||!areArraysEqual(ra,oa)))return NONE;const la=oa[oa.length-1],ca=ra[ra.length-1];return la!==ca&&(la&&aa.push(la),ca&&aa.push(ca)),aa}function _defineProperty$2(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread$2(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&(oa=oa.concat(Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable}))),oa.forEach(function(aa){_defineProperty$2(ea,aa,ra[aa])})}return ea}const initialState$4={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function reduce$4(ea=initialState$4,na){const{payload:ra}=na;switch(na.type){case INIT_COORDS:case BEGIN_DRAG:return{initialSourceClientOffset:ra.sourceClientOffset,initialClientOffset:ra.clientOffset,clientOffset:ra.clientOffset};case HOVER:return areCoordsEqual(ea.clientOffset,ra.clientOffset)?ea:_objectSpread$2({},ea,{clientOffset:ra.clientOffset});case END_DRAG:case DROP:return initialState$4;default:return ea}}function _defineProperty$1(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread$1(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&(oa=oa.concat(Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable}))),oa.forEach(function(aa){_defineProperty$1(ea,aa,ra[aa])})}return ea}const initialState$3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function reduce$3(ea=initialState$3,na){const{payload:ra}=na;switch(na.type){case BEGIN_DRAG:return _objectSpread$1({},ea,{itemType:ra.itemType,item:ra.item,sourceId:ra.sourceId,isSourcePublic:ra.isSourcePublic,dropResult:null,didDrop:!1});case PUBLISH_DRAG_SOURCE:return _objectSpread$1({},ea,{isSourcePublic:!0});case HOVER:return _objectSpread$1({},ea,{targetIds:ra.targetIds});case REMOVE_TARGET:return ea.targetIds.indexOf(ra.targetId)===-1?ea:_objectSpread$1({},ea,{targetIds:without(ea.targetIds,ra.targetId)});case DROP:return _objectSpread$1({},ea,{dropResult:ra.dropResult,didDrop:!0,targetIds:[]});case END_DRAG:return _objectSpread$1({},ea,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return ea}}function reduce$2(ea=0,na){switch(na.type){case ADD_SOURCE:case ADD_TARGET:return ea+1;case REMOVE_SOURCE:case REMOVE_TARGET:return ea-1;default:return ea}}function reduce$1(ea=0){return ea+1}function _defineProperty(ea,na,ra){return na in ea?Object.defineProperty(ea,na,{value:ra,enumerable:!0,configurable:!0,writable:!0}):ea[na]=ra,ea}function _objectSpread(ea){for(var na=1;na<arguments.length;na++){var ra=arguments[na]!=null?arguments[na]:{},oa=Object.keys(ra);typeof Object.getOwnPropertySymbols=="function"&&(oa=oa.concat(Object.getOwnPropertySymbols(ra).filter(function(aa){return Object.getOwnPropertyDescriptor(ra,aa).enumerable}))),oa.forEach(function(aa){_defineProperty(ea,aa,ra[aa])})}return ea}function reduce(ea={},na){return{dirtyHandlerIds:reduce$5(ea.dirtyHandlerIds,{type:na.type,payload:_objectSpread({},na.payload,{prevTargetIds:get(ea,"dragOperation.targetIds",[])})}),dragOffset:reduce$4(ea.dragOffset,na),refCount:reduce$2(ea.refCount,na),dragOperation:reduce$3(ea.dragOperation,na),stateId:reduce$1(ea.stateId)}}function createDragDropManager(ea,na=void 0,ra={},oa=!1){const aa=makeStoreInstance(oa),sa=new DragDropMonitorImpl(aa,new HandlerRegistryImpl(aa)),la=new DragDropManagerImpl(aa,sa),ca=ea(la,na,ra);return la.receiveBackend(ca),la}function makeStoreInstance(ea){const na=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return createStore(reduce,ea&&na&&na({name:"dnd-core",instanceId:"dnd-core"}))}function _objectWithoutProperties(ea,na){if(ea==null)return{};var ra=_objectWithoutPropertiesLoose(ea,na),oa,aa;if(Object.getOwnPropertySymbols){var sa=Object.getOwnPropertySymbols(ea);for(aa=0;aa<sa.length;aa++)oa=sa[aa],!(na.indexOf(oa)>=0)&&Object.prototype.propertyIsEnumerable.call(ea,oa)&&(ra[oa]=ea[oa])}return ra}function _objectWithoutPropertiesLoose(ea,na){if(ea==null)return{};var ra={},oa=Object.keys(ea),aa,sa;for(sa=0;sa<oa.length;sa++)aa=oa[sa],!(na.indexOf(aa)>=0)&&(ra[aa]=ea[aa]);return ra}let refCount=0;const INSTANCE_SYM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var DndProvider=reactExports.memo(function(na){var{children:ra}=na,oa=_objectWithoutProperties(na,["children"]);const[aa,sa]=getDndContextValue(oa);return reactExports.useEffect(()=>{if(sa){const la=getGlobalContext();return++refCount,()=>{--refCount===0&&(la[INSTANCE_SYM]=null)}}},[]),jsxRuntimeExports.jsx(DndContext$2.Provider,{value:aa,children:ra})});function getDndContextValue(ea){if("manager"in ea)return[{dragDropManager:ea.manager},!1];const na=createSingletonDndContext(ea.backend,ea.context,ea.options,ea.debugMode),ra=!ea.context;return[na,ra]}function createSingletonDndContext(ea,na=getGlobalContext(),ra,oa){const aa=na;return aa[INSTANCE_SYM]||(aa[INSTANCE_SYM]={dragDropManager:createDragDropManager(ea,na,ra,oa)}),aa[INSTANCE_SYM]}function getGlobalContext(){return typeof global<"u"?global:window}const useIsomorphicLayoutEffect$2=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useCollector(ea,na,ra){const[oa,aa]=reactExports.useState(()=>na(ea)),sa=reactExports.useCallback(()=>{const la=na(ea);equal(oa,la)||(aa(la),ra&&ra())},[oa,ea,ra]);return useIsomorphicLayoutEffect$2(sa),[oa,sa]}function useMonitorOutput(ea,na,ra){const[oa,aa]=useCollector(ea,na,ra);return useIsomorphicLayoutEffect$2(function(){const la=ea.getHandlerId();if(la!=null)return ea.subscribeToStateChange(aa,{handlerIds:[la]})},[ea,aa]),oa}function useCollectedProps(ea,na,ra){return useMonitorOutput(na,ea||(()=>({})),()=>ra.reconnect())}function useOptionalFactory(ea,na){const ra=[];return typeof ea!="function"&&ra.push(ea),reactExports.useMemo(()=>typeof ea=="function"?ea():ea,ra)}function useConnectDragSource(ea){return reactExports.useMemo(()=>ea.hooks.dragSource(),[ea])}function useConnectDragPreview(ea){return reactExports.useMemo(()=>ea.hooks.dragPreview(),[ea])}let isCallingCanDrag=!1,isCallingIsDragging=!1;class DragSourceMonitorImpl{receiveHandlerId(na){this.sourceId=na}getHandlerId(){return this.sourceId}canDrag(){invariant$1(!isCallingCanDrag,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return isCallingCanDrag=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{isCallingCanDrag=!1}}isDragging(){if(!this.sourceId)return!1;invariant$1(!isCallingIsDragging,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return isCallingIsDragging=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{isCallingIsDragging=!1}}subscribeToStateChange(na,ra){return this.internalMonitor.subscribeToStateChange(na,ra)}isDraggingSource(na){return this.internalMonitor.isDraggingSource(na)}isOverTarget(na,ra){return this.internalMonitor.isOverTarget(na,ra)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(na){return this.internalMonitor.subscribeToOffsetChange(na)}canDragSource(na){return this.internalMonitor.canDragSource(na)}canDropOnTarget(na){return this.internalMonitor.canDropOnTarget(na)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(na){this.sourceId=null,this.internalMonitor=na.getMonitor()}}let isCallingCanDrop=!1;class DropTargetMonitorImpl{receiveHandlerId(na){this.targetId=na}getHandlerId(){return this.targetId}subscribeToStateChange(na,ra){return this.internalMonitor.subscribeToStateChange(na,ra)}canDrop(){if(!this.targetId)return!1;invariant$1(!isCallingCanDrop,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return isCallingCanDrop=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{isCallingCanDrop=!1}}isOver(na){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,na):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(na){this.targetId=null,this.internalMonitor=na.getMonitor()}}function registerTarget(ea,na,ra){const oa=ra.getRegistry(),aa=oa.addTarget(ea,na);return[aa,()=>oa.removeTarget(aa)]}function registerSource(ea,na,ra){const oa=ra.getRegistry(),aa=oa.addSource(ea,na);return[aa,()=>oa.removeSource(aa)]}function shallowEqual$1(ea,na,ra,oa){let aa;if(aa!==void 0)return!!aa;if(ea===na)return!0;if(typeof ea!="object"||!ea||typeof na!="object"||!na)return!1;const sa=Object.keys(ea),la=Object.keys(na);if(sa.length!==la.length)return!1;const ca=Object.prototype.hasOwnProperty.bind(na);for(let ua=0;ua<sa.length;ua++){const da=sa[ua];if(!ca(da))return!1;const pa=ea[da],ha=na[da];if(aa=void 0,aa===!1||aa===void 0&&pa!==ha)return!1}return!0}function isRef(ea){return ea!==null&&typeof ea=="object"&&Object.prototype.hasOwnProperty.call(ea,"current")}function throwIfCompositeComponentElement(ea){if(typeof ea.type=="string")return;const na=ea.type.displayName||ea.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${na} into a <div>, or turn it into a drag source or a drop target itself.`)}function wrapHookToRecognizeElement(ea){return(na=null,ra=null)=>{if(!reactExports.isValidElement(na)){const sa=na;return ea(sa,ra),sa}const oa=na;return throwIfCompositeComponentElement(oa),cloneWithRef(oa,ra?sa=>ea(sa,ra):ea)}}function wrapConnectorHooks(ea){const na={};return Object.keys(ea).forEach(ra=>{const oa=ea[ra];if(ra.endsWith("Ref"))na[ra]=ea[ra];else{const aa=wrapHookToRecognizeElement(oa);na[ra]=()=>aa}}),na}function setRef(ea,na){typeof ea=="function"?ea(na):ea.current=na}function cloneWithRef(ea,na){const ra=ea.ref;return invariant$1(typeof ra!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),ra?reactExports.cloneElement(ea,{ref:oa=>{setRef(ra,oa),setRef(na,oa)}}):reactExports.cloneElement(ea,{ref:na})}class SourceConnector{receiveHandlerId(na){this.handlerId!==na&&(this.handlerId=na,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(na){this.dragSourceOptionsInternal=na}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(na){this.dragPreviewOptionsInternal=na}reconnect(){const na=this.reconnectDragSource();this.reconnectDragPreview(na)}reconnectDragSource(){const na=this.dragSource,ra=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return ra&&this.disconnectDragSource(),this.handlerId?na?(ra&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=na,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,na,this.dragSourceOptions)),ra):(this.lastConnectedDragSource=na,ra):ra}reconnectDragPreview(na=!1){const ra=this.dragPreview,oa=na||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(oa&&this.disconnectDragPreview(),!!this.handlerId){if(!ra){this.lastConnectedDragPreview=ra;return}oa&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=ra,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,ra,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!shallowEqual$1(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!shallowEqual$1(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(na){this.hooks=wrapConnectorHooks({dragSource:(ra,oa)=>{this.clearDragSource(),this.dragSourceOptions=oa||null,isRef(ra)?this.dragSourceRef=ra:this.dragSourceNode=ra,this.reconnectDragSource()},dragPreview:(ra,oa)=>{this.clearDragPreview(),this.dragPreviewOptions=oa||null,isRef(ra)?this.dragPreviewRef=ra:this.dragPreviewNode=ra,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=na}}class TargetConnector{get connectTarget(){return this.dropTarget}reconnect(){const na=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();na&&this.disconnectDropTarget();const ra=this.dropTarget;if(this.handlerId){if(!ra){this.lastConnectedDropTarget=ra;return}na&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=ra,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,ra,this.dropTargetOptions))}}receiveHandlerId(na){na!==this.handlerId&&(this.handlerId=na,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(na){this.dropTargetOptionsInternal=na}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!shallowEqual$1(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(na){this.hooks=wrapConnectorHooks({dropTarget:(ra,oa)=>{this.clearDropTarget(),this.dropTargetOptions=oa,isRef(ra)?this.dropTargetRef=ra:this.dropTargetNode=ra,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=na}}function useDragDropManager(){const{dragDropManager:ea}=reactExports.useContext(DndContext$2);return invariant$1(ea!=null,"Expected drag drop context"),ea}function useDragSourceConnector(ea,na){const ra=useDragDropManager(),oa=reactExports.useMemo(()=>new SourceConnector(ra.getBackend()),[ra]);return useIsomorphicLayoutEffect$2(()=>(oa.dragSourceOptions=ea||null,oa.reconnect(),()=>oa.disconnectDragSource()),[oa,ea]),useIsomorphicLayoutEffect$2(()=>(oa.dragPreviewOptions=na||null,oa.reconnect(),()=>oa.disconnectDragPreview()),[oa,na]),oa}function useDragSourceMonitor(){const ea=useDragDropManager();return reactExports.useMemo(()=>new DragSourceMonitorImpl(ea),[ea])}class DragSourceImpl{beginDrag(){const na=this.spec,ra=this.monitor;let oa=null;return typeof na.item=="object"?oa=na.item:typeof na.item=="function"?oa=na.item(ra):oa={},oa??null}canDrag(){const na=this.spec,ra=this.monitor;return typeof na.canDrag=="boolean"?na.canDrag:typeof na.canDrag=="function"?na.canDrag(ra):!0}isDragging(na,ra){const oa=this.spec,aa=this.monitor,{isDragging:sa}=oa;return sa?sa(aa):ra===na.getSourceId()}endDrag(){const na=this.spec,ra=this.monitor,oa=this.connector,{end:aa}=na;aa&&aa(ra.getItem(),ra),oa.reconnect()}constructor(na,ra,oa){this.spec=na,this.monitor=ra,this.connector=oa}}function useDragSource(ea,na,ra){const oa=reactExports.useMemo(()=>new DragSourceImpl(ea,na,ra),[na,ra]);return reactExports.useEffect(()=>{oa.spec=ea},[ea]),oa}function useDragType(ea){return reactExports.useMemo(()=>{const na=ea.type;return invariant$1(na!=null,"spec.type must be defined"),na},[ea])}function useRegisteredDragSource(ea,na,ra){const oa=useDragDropManager(),aa=useDragSource(ea,na,ra),sa=useDragType(ea);useIsomorphicLayoutEffect$2(function(){if(sa!=null){const[ca,ua]=registerSource(sa,aa,oa);return na.receiveHandlerId(ca),ra.receiveHandlerId(ca),ua}},[oa,na,ra,aa,sa])}function useDrag(ea,na){const ra=useOptionalFactory(ea);invariant$1(!ra.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const oa=useDragSourceMonitor(),aa=useDragSourceConnector(ra.options,ra.previewOptions);return useRegisteredDragSource(ra,oa,aa),[useCollectedProps(ra.collect,oa,aa),useConnectDragSource(aa),useConnectDragPreview(aa)]}function useDragLayer(ea){const ra=useDragDropManager().getMonitor(),[oa,aa]=useCollector(ra,ea);return reactExports.useEffect(()=>ra.subscribeToOffsetChange(aa)),reactExports.useEffect(()=>ra.subscribeToStateChange(aa)),oa}function useConnectDropTarget(ea){return reactExports.useMemo(()=>ea.hooks.dropTarget(),[ea])}function useDropTargetConnector(ea){const na=useDragDropManager(),ra=reactExports.useMemo(()=>new TargetConnector(na.getBackend()),[na]);return useIsomorphicLayoutEffect$2(()=>(ra.dropTargetOptions=ea||null,ra.reconnect(),()=>ra.disconnectDropTarget()),[ea]),ra}function useDropTargetMonitor(){const ea=useDragDropManager();return reactExports.useMemo(()=>new DropTargetMonitorImpl(ea),[ea])}function useAccept(ea){const{accept:na}=ea;return reactExports.useMemo(()=>(invariant$1(ea.accept!=null,"accept must be defined"),Array.isArray(na)?na:[na]),[na])}class DropTargetImpl{canDrop(){const na=this.spec,ra=this.monitor;return na.canDrop?na.canDrop(ra.getItem(),ra):!0}hover(){const na=this.spec,ra=this.monitor;na.hover&&na.hover(ra.getItem(),ra)}drop(){const na=this.spec,ra=this.monitor;if(na.drop)return na.drop(ra.getItem(),ra)}constructor(na,ra){this.spec=na,this.monitor=ra}}function useDropTarget(ea,na){const ra=reactExports.useMemo(()=>new DropTargetImpl(ea,na),[na]);return reactExports.useEffect(()=>{ra.spec=ea},[ea]),ra}function useRegisteredDropTarget(ea,na,ra){const oa=useDragDropManager(),aa=useDropTarget(ea,na),sa=useAccept(ea);useIsomorphicLayoutEffect$2(function(){const[ca,ua]=registerTarget(sa,aa,oa);return na.receiveHandlerId(ca),ra.receiveHandlerId(ca),ua},[oa,na,aa,ra,sa.map(la=>la.toString()).join("|")])}function useDrop(ea,na){const ra=useOptionalFactory(ea),oa=useDropTargetMonitor(),aa=useDropTargetConnector(ra.options);return useRegisteredDropTarget(ra,oa,aa),[useCollectedProps(ra.collect,oa,aa),useConnectDropTarget(aa)]}const DragAndDropProvider=ea=>{const{children:na}=ea;return jsxRuntimeExports.jsx(DndProvider,{backend:HTML5BackendWithModifierKeys("dndModifierKey"),children:na})},increasePublishCount=createAction("trackingData/increasePublishCount"),increasePreviewCount=createAction("trackingData/increasePreviewCount"),increaseOptionsTabCount=createAction("trackingData/increaseOptionsTabCount"),increaseElapsedTime=createAction("trackingData/increaseElapsedTime"),resetSubscribeTriggers=createAction("trackingData/resetSubscribeTriggers");class MeasureTime{elapsedTime;interval;constructor(){this.elapsedTime=0,this.interval=null}get time(){return this.elapsedTime}set time(na){this.elapsedTime=na}start=()=>{this.interval=setInterval(this.tick.bind(this),1e3)};pause=()=>{this.interval&&(clearInterval(this.interval),this.interval=null)};tick=()=>{this.time=this.elapsedTime+1}}const useTrack=()=>{const{dispatch:ea}=reactExports.useContext(TrackingContext);return reactExports.useCallback(na=>{ea(na)},[ea])};let prevState,subscribed=!1;function select(ea){const{env:na,history:ra,lastId:oa,...aa}=ea.document;return aa}function handleChange(){const ea=select(store.getState());shallowEqual$2(prevState,ea)||(prevState=ea,store.dispatch(incrementUnsavedChanges()))}const updateDocumentModifiedState=()=>{subscribed||(store.subscribe(handleChange),subscribed=!0),prevState=select(store.getState())};function withLoading(ea,na={}){return({loading:oa,loadingOptions:aa,...sa})=>{const la={...na,...aa};return jsxRuntimeExports.jsx(LoadingSplash$1,{visible:oa,...la,children:jsxRuntimeExports.jsx(ea,{...sa})})}}const getTransformToolData=ea=>ea.editor.transformToolData,getTransformToolState=ea=>ea.editor.transformToolData.state,getTransformToolFrames=createSelector([getTransformToolData],ea=>ea.frames),getTransformToolConfigs=createSelector([getTransformToolData],ea=>ea.configs),getSelectedElementsTransformToolFrame=createSelector([getSelectedElements,getTransformToolFrames],(ea,na)=>{const ra={};return ea.forEach(oa=>{na[oa]&&(ra[oa]=na[oa])}),ra}),getTransformToolActiveElementsConfigs=createSelector([getSelectedElements,getTransformToolConfigs],(ea,na)=>{const ra={};return ea.forEach(oa=>{const aa=na[oa];aa&&(aa.link?na[aa.link]&&(ra[aa.link]=na[aa.link]):ra[oa]=aa)}),ra}),getTransformToolActiveElements=createSelector([getTransformToolActiveElementsConfigs],ea=>Object.keys(ea)),getTransformToolActiveElementsData=createSelector([getElements,getTransformToolActiveElements],(ea,na)=>pick(ea,na)),getTransformToolActiveElementsComputedValues=createSelector([getElementsComputedValues,getTransformToolActiveElements],(ea,na)=>pick(ea,na)),getTransformToolActiveElementsSizeData=createSelector([getTransformToolActiveElementsData],ea=>objectMap(ea,na=>({position:na.position,size:na.size,transform:na.styles?.transform,parent:na.parent}))),getTransformToolActiveElementsParentSizes=createSelector([getTransformToolActiveElementsData,getElementsComputedValues,getSectionsComputedValues,getActiveSection],(ea,na,ra,oa)=>{const aa={};return Object.keys(ea).forEach(la=>{aa[la]=findElementParentSize(ea[la],ra,na,oa)}),aa}),getActiveTransformToolObjects=createSelector([getElements,getElementsComputedValues,getActiveBreakpoint,getTransformToolActiveElementsConfigs],(ea,na,ra,oa)=>{const aa={};return Object.entries(oa).map(([sa,la])=>({computedValues:na[sa],...ea[sa],config:la})).filter(({computedValues:sa,config:la})=>!!sa&&la.enable!==!1).forEach(({parent:sa,id:la,computedValues:ca,locked:ua=!1,styles:da,config:pa})=>{const{position:{x:ha,y:ga},size:{width:fa,height:ma}}=ca,va=getResponsiveValue(da?.transform,ra)||{};aa[la]={locked:ua,x:ha,y:ga,width:fa,height:ma,rotation:va?.rotate||0,scaleX:va?.scaleX||1,scaleY:va?.scaleY||1,config:pa,nested:!!sa&&isElement(sa)}}),aa}),getActiveTransformToolFrameBoundaries=createSelector([getSelectedElementsComputedValues],ea=>{const na=Object.keys(ea);if(!na.length)return null;let ra=1/0,oa=1/0,aa=-1/0,sa=-1/0;na.forEach(ua=>{const{position:da,size:pa}=ea[ua],{x:ha,y:ga}=da,{width:fa,height:ma}=pa;ra=Math.min(ra,ha),oa=Math.min(oa,ga),aa=Math.max(aa,ha+fa),sa=Math.max(sa,ga+ma)});const la=aa-ra,ca=sa-oa;return{x:ra,y:oa,width:la,height:ca,left:ra,top:oa,right:aa,bottom:sa}}),measuringDiv=document.createElement("div");measuringDiv.style.position="fixed";measuringDiv.style.top="-1000em";measuringDiv.style.left="-1000em";measuringDiv.style.height="auto";measuringDiv.style.color="white";measuringDiv.style.whiteSpace="normal";measuringDiv.style.visibility="hidden";document.body.appendChild(measuringDiv);function getTextDimensions(ea,na,ra,oa="auto"){const aa=window.getComputedStyle(ea),sa=na??parseFloat(aa.fontSize),{fontFamily:la,fontWeight:ca,fontStyle:ua}=aa;return ra?measuringDiv.style.width=`${ra}px`:measuringDiv.style.width="auto",measuringDiv.innerHTML=ea.innerHTML||"",measuringDiv.style.fontFamily=la,measuringDiv.style.fontWeight=ca,measuringDiv.style.fontStyle=ua,measuringDiv.style.fontSize=`${sa}px`,measuringDiv.style.lineHeight=oa,{width:measuringDiv.clientWidth,height:measuringDiv.clientHeight}}function getFitFontSize(ea,na,ra,oa){let aa=1,sa=1e3;for(;sa-aa>1;){const la=(aa+sa)/2,{height:ca}=getTextDimensions(ea,la,na,oa);ca>ra?sa=la:aa=la}return Math.round(aa*100)/100}const transformToString=(ea,na=!1)=>{let ra="";const{x:oa,y:aa,z:sa,perspective:la,rotate:ca,scale:ua,scaleY:da,scaleX:pa,rotateX:ha,rotateY:ga,rotateZ:fa}=ea;return oa&&(ra+=typeof oa=="string"?`translateX(${oa}) `:`translateX(${withUnit$1(oa)}) `),aa&&(ra+=typeof aa=="string"?`translateY(${aa}) `:`translateY(${withUnit$1(aa)}) `),sa&&(ra+=`translateZ(${withUnit$1(sa)}) `),ca&&(ra+=`rotate(${ca}deg) `),ha&&(ra+=`rotateX(${ha}deg) `),ga&&(ra+=`rotateY(${ga}deg) `),fa&&(ra+=`rotateZ(${fa}deg) `),ua&&(ra+=`scale(${ua}) `),pa&&(ra+=`scaleX(${pa}) `),da&&(ra+=`scaleY(${da}) `),la&&(ra+=`perspective(${withUnit$1(la)}) `),na&&!ra?"none":ra.trim()},GOOGLE_FONTS_API_BASE_URL="https://www.googleapis.com/webfonts/v1/",GOOGLE_FONTS_API_KEY="AIzaSyBYkMl1dDDRSmAyHjKInEk9nCgb9-tDQqo",getFontSrc=(ea,na)=>`https://fonts.googleapis.com/css?family=${ea.replace(" ","+")}:${na}&display=swap`,loadedFontsList$1=new Set([]);let cachedFonts,requestPromise;const getFonts$3=async()=>{if(cachedFonts)return cachedFonts;if(requestPromise)return await requestPromise,cachedFonts;requestPromise=Axios.get(`${GOOGLE_FONTS_API_BASE_URL}webfonts?key=${GOOGLE_FONTS_API_KEY}`);const ea=await requestPromise,{data:na}=ea;return cachedFonts=na.items.map(ra=>({family:ra.family,variants:ra.variants.map(oa=>({weight:oa.replace("italic","")||"400",style:oa.includes("italic")?"italic":"normal",src:getFontSrc(ra.family,oa)}))})),cachedFonts},fontVariantExists=async(ea,na)=>!!(await getFonts$3()).find(oa=>oa.family===ea)?.variants?.find(oa=>oa.weight===na||oa.weight+oa.style===na.toLowerCase()),loadFont$1=async(ea,na)=>{const ra=getFontSrc(ea,na);if(loadedFontsList$1.has(ra)||!await fontVariantExists(ea,na))return;loadedFontsList$1.add(ra);const aa=document.createElement("link");aa.href=ra,aa.rel="stylesheet",aa.type="text/css",aa.crossOrigin="anonymous",document.head.appendChild(aa)},googleFontsService={getFonts:getFonts$3,loadFont:loadFont$1,label:i18next.t("Google fonts")},systemFonts=[{family:"inherit",variants:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400italic","500italic","600italic","700italic","800italic","900italic"]},{family:"Arial",variants:["400","700","italic","700italic"]},{family:"Helvetica",variants:["400","700","italic","700italic"]},{family:"Times New Roman",variants:["400","700","italic","700italic"]},{family:"Georgia",variants:["400","700","italic","700italic"]},{family:"Courier New",variants:["400","700","italic","700italic"]},{family:"Verdana",variants:["400","700","italic","700italic"]},{family:"Tahoma",variants:["400","700","italic","700italic"]}];async function getFonts$2(){return systemFonts.map(ea=>({family:ea.family,variants:ea.variants.map(na=>({weight:na.replace("italic","")||"400",style:na.includes("italic")?"italic":"normal",src:""}))}))}const systemFontsService={getFonts:getFonts$2,loadFont:()=>{},label:i18next.t("System fonts")};var umd={exports:{}},hasRequiredUmd;function requireUmd(){return hasRequiredUmd||(hasRequiredUmd=1,function(ea,na){(function(ra){ea.exports=ra()})(function(){return function(){function ra(oa,aa,sa){function la(da,pa){if(!aa[da]){if(!oa[da]){var ha=typeof commonjsRequire=="function"&&commonjsRequire;if(!pa&&ha)return ha(da,!0);if(ca)return ca(da,!0);var ga=new Error("Cannot find module '"+da+"'");throw ga.code="MODULE_NOT_FOUND",ga}var fa=aa[da]={exports:{}};oa[da][0].call(fa.exports,function(ma){var va=oa[da][1][ma];return la(va||ma)},fa,fa.exports,ra,oa,aa,sa)}return aa[da].exports}for(var ca=typeof commonjsRequire=="function"&&commonjsRequire,ua=0;ua<sa.length;ua++)la(sa[ua]);return la}return ra}()({1:[function(ra,oa,aa){Object.defineProperty(aa,"__esModule",{value:!0}),aa.parse=aa.PeggySyntaxError=void 0;let sa=ra("../util");function la(da,pa,ha){return ha=ha||" ",da.length>pa?da:(pa-=da.length,ha+=ha.repeat(pa),da+ha.slice(0,pa))}class ca extends Error{static buildMessage(pa,ha){function ga(Aa){return Aa.charCodeAt(0).toString(16).toUpperCase()}function fa(Aa){return Aa.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,Ca=>"\\x0"+ga(Ca)).replace(/[\x10-\x1F\x7F-\x9F]/g,Ca=>"\\x"+ga(Ca))}function ma(Aa){return Aa.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,Ca=>"\\x0"+ga(Ca)).replace(/[\x10-\x1F\x7F-\x9F]/g,Ca=>"\\x"+ga(Ca))}function va(Aa){switch(Aa.type){case"literal":return'"'+fa(Aa.text)+'"';case"class":const Ca=Aa.parts.map(Sa=>Array.isArray(Sa)?ma(Sa[0])+"-"+ma(Sa[1]):ma(Sa));return"["+(Aa.inverted?"^":"")+Ca+"]";case"any":return"any character";case"end":return"end of input";case"other":return Aa.description}}function xa(Aa){const Ca=Aa.map(va);let Sa,wa;if(Ca.sort(),Ca.length>0){for(Sa=1,wa=1;Sa<Ca.length;Sa++)Ca[Sa-1]!==Ca[Sa]&&(Ca[wa]=Ca[Sa],wa++);Ca.length=wa}switch(Ca.length){case 1:return Ca[0];case 2:return Ca[0]+" or "+Ca[1];default:return Ca.slice(0,-1).join(", ")+", or "+Ca[Ca.length-1]}}function ya(Aa){return Aa?'"'+fa(Aa)+'"':"end of input"}return"Expected "+xa(pa)+" but "+ya(ha)+" found."}constructor(pa,ha,ga,fa){super(),this.message=pa,this.expected=ha,this.found=ga,this.location=fa,this.name="PeggySyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,ca.prototype):this.__proto__=ca.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ca)}format(pa){let ha="Error: "+this.message;if(this.location){let ga=null,fa;for(fa=0;fa<pa.length;fa++)if(pa[fa].grammarSource===this.location.source){ga=pa[fa].text.split(/\r\n|\n|\r/g);break}let ma=this.location.start,va=this.location.source+":"+ma.line+":"+ma.column;if(ga){let xa=this.location.end,ya=la("",ma.line.toString().length," "),Aa=ga[ma.line-1],Ca=ma.line===xa.line?xa.column:Aa.length+1;ha+=`
 --> `+va+`
`+ya+` |
`+ma.line+" | "+Aa+`
`+ya+" | "+la("",ma.column-1," ")+la("",Ca-ma.column,"^")}else ha+=`
 at `+va}return ha}}aa.PeggySyntaxError=ca;function ua(da,pa){pa=pa!==void 0?pa:{};const ha={},ga=pa.grammarSource,fa={start:pl};let ma=pl;const va="",xa=function(){return[]},ya=",",Aa=il(",",!1),Ca=function(vl,kl){return[vl].concat(kl)},Sa=function(vl){return[vl]},wa=function(vl,kl){return{url:vl,format:kl}},ba=function(vl){return{url:vl}},Ea="url(",$a=il("url(",!1),Ma=")",Ia=il(")",!1),Oa=function(vl){return vl},Da="format(",Ta=il("format(",!1),_a="local(",La=il("local(",!1),Na=function(vl){return{local:vl}},za=/^[^)]/,Fa=Ja([")"],!0,!1),Ha=function(vl){return sa.extractValue(vl.join(""))},Va=/^[ \t\r\n\f]/,Ua=Ja([" ","	","\r",`
`,"\f"],!1,!1);let Qa=0;const Wa=[{line:1,column:1}];let Za=0,Xa=[],tl;if(pa.startRule!==void 0){if(!(pa.startRule in fa))throw new Error(`Can't start parsing from rule "`+pa.startRule+'".');ma=fa[pa.startRule]}function il(vl,kl){return{type:"literal",text:vl,ignoreCase:kl}}function Ja(vl,kl,zl){return{type:"class",parts:vl,inverted:kl,ignoreCase:zl}}function nl(){return{type:"end"}}function Ya(vl){let kl=Wa[vl],zl;if(kl)return kl;for(zl=vl-1;!Wa[zl];)zl--;for(kl=Wa[zl],kl={line:kl.line,column:kl.column};zl<vl;)da.charCodeAt(zl)===10?(kl.line++,kl.column=1):kl.column++,zl++;return Wa[vl]=kl,kl}function rl(vl,kl){const zl=Ya(vl),Al=Ya(kl);return{source:ga,start:{offset:vl,line:zl.line,column:zl.column},end:{offset:kl,line:Al.line,column:Al.column}}}function sl(vl){Qa<Za||(Qa>Za&&(Za=Qa,Xa=[]),Xa.push(vl))}function dl(vl,kl,zl){return new ca(ca.buildMessage(vl,kl),vl,kl,zl)}function pl(){let vl,kl;return vl=ml(),vl===ha&&(vl=Qa,kl=va,kl!==ha&&(kl=xa()),vl=kl),vl}function ml(){let vl,kl,zl,Al,gl,xl;if(vl=Qa,kl=Rl(),kl!==ha){for(zl=[],Al=Wl();Al!==ha;)zl.push(Al),Al=Wl();if(zl!==ha)if(da.charCodeAt(Qa)===44?(Al=ya,Qa++):(Al=ha,sl(Aa)),Al!==ha){for(gl=[],xl=Wl();xl!==ha;)gl.push(xl),xl=Wl();gl!==ha?(xl=ml(),xl!==ha?(kl=Ca(kl,xl),vl=kl):(Qa=vl,vl=ha)):(Qa=vl,vl=ha)}else Qa=vl,vl=ha;else Qa=vl,vl=ha}else Qa=vl,vl=ha;return vl===ha&&(vl=Qa,kl=Rl(),kl!==ha&&(kl=Sa(kl)),vl=kl),vl}function Rl(){let vl;return vl=Tl(),vl===ha&&(vl=Fl()),vl}function Tl(){let vl,kl,zl,Al;if(vl=Qa,kl=Il(),kl!==ha){if(zl=[],Al=Wl(),Al!==ha)for(;Al!==ha;)zl.push(Al),Al=Wl();else zl=ha;zl!==ha?(Al=Ol(),Al!==ha?(kl=wa(kl,Al),vl=kl):(Qa=vl,vl=ha)):(Qa=vl,vl=ha)}else Qa=vl,vl=ha;return vl===ha&&(vl=Qa,kl=Il(),kl!==ha&&(kl=ba(kl)),vl=kl),vl}function Il(){let vl,kl,zl,Al;return vl=Qa,da.substr(Qa,4)===Ea?(kl=Ea,Qa+=4):(kl=ha,sl($a)),kl!==ha?(zl=Vl(),zl!==ha?(da.charCodeAt(Qa)===41?(Al=Ma,Qa++):(Al=ha,sl(Ia)),Al!==ha?(kl=Oa(zl),vl=kl):(Qa=vl,vl=ha)):(Qa=vl,vl=ha)):(Qa=vl,vl=ha),vl}function Ol(){let vl,kl,zl,Al;return vl=Qa,da.substr(Qa,7)===Da?(kl=Da,Qa+=7):(kl=ha,sl(Ta)),kl!==ha?(zl=Vl(),zl!==ha?(da.charCodeAt(Qa)===41?(Al=Ma,Qa++):(Al=ha,sl(Ia)),Al!==ha?(kl=Oa(zl),vl=kl):(Qa=vl,vl=ha)):(Qa=vl,vl=ha)):(Qa=vl,vl=ha),vl}function Fl(){let vl,kl,zl,Al;return vl=Qa,da.substr(Qa,6)===_a?(kl=_a,Qa+=6):(kl=ha,sl(La)),kl!==ha?(zl=Vl(),zl!==ha?(da.charCodeAt(Qa)===41?(Al=Ma,Qa++):(Al=ha,sl(Ia)),Al!==ha?(kl=Na(zl),vl=kl):(Qa=vl,vl=ha)):(Qa=vl,vl=ha)):(Qa=vl,vl=ha),vl}function Vl(){let vl,kl,zl;if(vl=Qa,kl=[],za.test(da.charAt(Qa))?(zl=da.charAt(Qa),Qa++):(zl=ha,sl(Fa)),zl!==ha)for(;zl!==ha;)kl.push(zl),za.test(da.charAt(Qa))?(zl=da.charAt(Qa),Qa++):(zl=ha,sl(Fa));else kl=ha;return kl!==ha&&(kl=Ha(kl)),vl=kl,vl}function Wl(){let vl;return Va.test(da.charAt(Qa))?(vl=da.charAt(Qa),Qa++):(vl=ha,sl(Ua)),vl}if(tl=ma(),tl!==ha&&Qa===da.length)return tl;throw tl!==ha&&Qa<da.length&&sl(nl()),dl(Xa,Za<da.length?da.charAt(Za):null,Za<da.length?rl(Za,Za+1):rl(Za,Za))}aa.parse=ua},{"../util":3}],2:[function(ra,oa,aa){var sa=this&&this.__createBinding||(Object.create?function(ga,fa,ma,va){va===void 0&&(va=ma);var xa=Object.getOwnPropertyDescriptor(fa,ma);(!xa||("get"in xa?!fa.__esModule:xa.writable||xa.configurable))&&(xa={enumerable:!0,get:function(){return fa[ma]}}),Object.defineProperty(ga,va,xa)}:function(ga,fa,ma,va){va===void 0&&(va=ma),ga[va]=fa[ma]}),la=this&&this.__setModuleDefault||(Object.create?function(ga,fa){Object.defineProperty(ga,"default",{enumerable:!0,value:fa})}:function(ga,fa){ga.default=fa}),ca=this&&this.__importStar||function(ga){if(ga&&ga.__esModule)return ga;var fa={};if(ga!=null)for(var ma in ga)ma!=="default"&&Object.prototype.hasOwnProperty.call(ga,ma)&&sa(fa,ga,ma);return la(fa,ga),fa};Object.defineProperty(aa,"__esModule",{value:!0}),aa.serialize=aa.parse=aa.SyntaxError=void 0;const ua=ca(ra("./grammar/index"));class da extends Error{constructor(fa,ma){super(fa),this.name=da.name,this.location=ma}}aa.SyntaxError=da;function pa(ga){try{return ua.parse(ga)}catch(fa){const ma=fa;throw new da(ma.message,ma.location)}}aa.parse=pa;function ha(ga){return ga.map(fa=>{let ma;return fa.url?(ma=`url("${fa.url}")`,fa.format&&(ma=`${ma} format("${fa.format}")`)):ma=`local("${fa.local}")`,ma}).join(", ")}aa.serialize=ha},{"./grammar/index":1}],3:[function(ra,oa,aa){Object.defineProperty(aa,"__esModule",{value:!0}),aa.extractValue=void 0;const sa=/^[\t\r\f\n ]*(.+?)[\t\r\f\n ]*$/,la=/^"(.*)"$/,ca=/^'(.*)'$/;function ua(ha){return ha.replace(sa,"$1")}function da(ha){return la.test(ha)?ha.replace(la,"$1"):ca.test(ha)?ha.replace(ca,"$1"):ha}function pa(ha){return da(ua(ha))}aa.extractValue=pa},{}]},{},[2])(2)})}(umd)),umd.exports}var umdExports=requireUmd();const isAbsoluteURL=new RegExp("^(?:[a-z+]+:)?//","i"),createIframe=async ea=>{const na=document.createElement("iframe");return na.src=ea,Object.assign(na.style,{width:"0px",height:"0px",visibility:"hidden",position:"absolute",zIndex:"-1"}),document.body.appendChild(na),new Promise((ra,oa)=>{na.addEventListener("load",()=>ra(na)),na.addEventListener("error",()=>oa())})},scanDocumentFonts=ea=>{const na=Array.from(ea.styleSheets),ra=new Map;return na.forEach(oa=>{try{Array.from(oa.cssRules).forEach(sa=>{if(sa.cssText.includes("@font-face")){const la=sa,ca=la.style.getPropertyValue("src"),ua=la.style.getPropertyValue("font-family"),da=la.style.getPropertyValue("font-style"),pa=la.style.getPropertyValue("font-weight");ra.has(ua)||ra.set(ua,{});const ha=ra.get(ua),ga=da&&da!=="normal"?`${pa}${da}`:pa||"normal",fa=umdExports.parse(ca).map(({url:ma,format:va})=>isAbsoluteURL.test(ma)?{url:ma,format:va}:{url:new URL(ma,la.parentStyleSheet?.href||window.location.href).toString(),format:va});ha[ga]={src:umdExports.serialize(fa),parsedSrc:fa,family:ua,style:da,weight:pa,parentHref:la.parentStyleSheet?.href,rule:la}}})}catch{}}),ra},getPageFonts=async ea=>{const na=await createIframe(ea);let ra=null;try{ra=scanDocumentFonts(na.contentWindow.document)}finally{na.remove()}return ra},getFonts$1=async({url:ea,exclude:na=[]})=>{const ra=await getPageFonts(ea),oa=[];return ra.forEach((aa,sa)=>{if(na.includes(sa))return;const la=Object.values(aa).map(({src:ca,weight:ua,style:da})=>({src:ca,weight:ua,style:da}));oa.push({family:sa,variants:la}),la.forEach(({src:ca,weight:ua,style:da})=>{const pa=`@font-face {
            font-family: ${sa};
            src: ${ca};
            font-weight: ${ua};
            font-style: ${da};
         }`;document.styleSheets[0].insertRule(pa)})}),oa},websiteFontsService={getFonts:getFonts$1,loadFont:()=>{},label:i18next.t("Theme fonts")},loadedFontsList=new Set([]);async function getFonts(){return browserEnv.hostedFonts||[]}async function loadFont(ea,na){const ra=(await getFonts()).find(ca=>ca.family===ea);let oa="";const aa=na.includes("italic")?"italic":"normal",sa=na.replace("italic","");if(ra&&(oa=ra.variants.find(ca=>ca.style===aa&&ca.weight===sa)?.src??""),!oa||loadedFontsList.has(oa))return;loadedFontsList.add(oa);const la=document.createElement("link");la.href=oa,la.rel="stylesheet",la.type="text/css",la.crossOrigin="anonymous",document.head.appendChild(la)}const hostedFontsService={getFonts,loadFont,label:i18next.t("Local fonts")},services={hostedFonts:{service:hostedFontsService,order:0},websiteFont:{service:websiteFontsService,order:1},systemFont:{service:systemFontsService,order:2},googleFont:{service:googleFontsService,order:3}},fontWeightNames={100:"Thin",200:"Extra Light",300:"Light",400:"Regular",500:"Medium",600:"Semi Bold",700:"Bold",800:"Extra Bold",900:"Black",regular:"Regular",italic:"Italic"};let FontsManager$1=class{config;cachedList;cachedFontsListPromise;constructor(na){this.config=na}async getFontsList(na=!0){if(na){if(this.cachedFontsListPromise)return await this.cachedFontsListPromise,this.cachedList;if(this.cachedList)return this.cachedList}const{disable:ra=[],serviceConfigs:oa}=this.config,aa={},sa=Object.entries(services).map(([la,{service:ca}])=>ra.includes(la)?null:ca.getFonts(oa?.[la]).then(ua=>{aa[la]=ua}).catch(()=>{}));return this.cachedFontsListPromise=Promise.allSettled(sa),await this.cachedFontsListPromise,this.cachedFontsListPromise=void 0,na&&(this.cachedList=aa),aa}loadFont(na,ra,oa){oa?services[oa].service.loadFont(na,ra):this.getFontData(na).then(aa=>{aa&&services[aa.service].service.loadFont(na,ra)})}async getDropDownFontFamilies(na){const ra=await this.getFontsList();return Object.entries(ra).map(([oa,aa])=>({label:services[oa].service.label,order:services[oa].order,options:aa.map(sa=>({value:sa.family,label:na?.(sa.family)||sa.family}))})).sort((oa,aa)=>oa.order-aa.order)}async getDropDownFontVariants(na,ra=!0){const oa=await this.getFontData(na);return!oa&&ra?[{value:"regular",label:i18next.t("Regular")}]:oa?oa.variants.map(aa=>({value:aa.weight+(aa.style==="italic"?"italic":""),label:fontWeightNames[aa.weight]+(aa.style==="italic"?" Italic":"")})):[]}async getFontData(na){const ra=await this.getFontsList();let oa;return Object.entries(ra).some(([aa,sa])=>{const la=sa.find(ca=>ca.family===na);return la?(oa={...la,service:aa},!0):!1}),oa}};const FontContext=reactExports.createContext({fontsList:{},isLoading:!1,manager:new FontsManager$1({})}),FontProvider=({config:ea,children:na,onLoad:ra})=>{const[oa,aa]=reactExports.useState({}),[sa,la]=reactExports.useState(!0),[ca,ua]=reactExports.useState(new FontsManager$1(ea));return reactExports.useEffect(()=>{ca.config!==ea&&ua(new FontsManager$1(ea))},[ea,ca.config]),reactExports.useEffect(()=>{la(!0),ca.getFontsList().then(da=>{aa(da),la(!1),ra?.(ca)})},[ca,ra]),jsxRuntimeExports.jsx(FontContext.Provider,{value:{fontsList:oa,isLoading:sa,manager:ca},children:na})},useGetFonts=()=>reactExports.useContext(FontContext),usePrevious$1=(ea,na)=>{const ra=reactExports.useRef(na);return reactExports.useEffect(()=>{ra.current=ea}),ra.current},useForceRender=(ea=0)=>{const[,na]=reactExports.useState(),ra=reactExports.useRef();return reactExports.useCallback(()=>{ea?(clearTimeout(ra.current),ra.current=window.setTimeout(na,ea,{})):na({})},[ea])},useNoDragClick=ea=>{const na=reactExports.useRef(),{callback:ra,onDown:oa,onUp:aa}=ea,sa=reactExports.useCallback(la=>{const{clientX:ca,clientY:ua}=la,da={x:ca,y:ua};switch(la.type){case"mousedown":oa?.(),na.current=da;break;case"mouseup":shallowEqual$2(da,na.current)?(aa?.(!0),ra(la)):aa?.(!1),na.current=void 0;break}},[ra,oa,aa]);return{onMouseDown:sa,onMouseUp:sa}},useResizeObserver$1=({targetRef:ea,onResize:na,useLastChild:ra})=>{const oa=reactExports.useRef(null);reactExports.useEffect(()=>{if(ea.current){const aa=new ResizeObserver(sa=>{sa.forEach(la=>{const{width:ca,height:ua}=la.contentRect;na(ca,ua)})});return aa.observe(ra?ea.current.lastElementChild:ea.current),oa.current=aa,()=>{oa.current&&(oa.current.disconnect(),oa.current=null)}}return noOps},[ea,na,ra])},reducer$3=(ea,na)=>{switch(na.type){case"add":if(!ea[na.key]&&ea[na.key]!==na.value)return{...ea,[na.key]:na.value};break;case"remove":if(ea[na.key]){const{[na.key]:ra,...oa}=ea;return oa}break;case"clear":return{};default:return ea}return ea},HTMLElementRefsContext=React.createContext({refs:{},dispatch:()=>{}}),useHTMLElementRefsReducer=ea=>{const[na,ra]=reactExports.useReducer(reducer$3,{});return reactExports.useMemo(()=>({refs:na,dispatch:ra}),[na])},useSyncHTMLRefToContext=ea=>{const{dispatch:na}=reactExports.useContext(HTMLElementRefsContext);return reactExports.useEffect(()=>()=>{na({type:"remove",key:ea})},[na,ea]),reactExports.useCallback(ra=>{ra&&na({type:"add",key:ea,value:ra})},[na,ea])},setMouseCursor=ea=>{document.body.classList.add("depicter-inherit-cursors"),document.body.style.cursor=ea},resetMouseCursor=()=>{document.body.classList.remove("depicter-inherit-cursors"),document.body.style.cursor=""};var mousetrap={exports:{}},hasRequiredMousetrap;function requireMousetrap(){return hasRequiredMousetrap||(hasRequiredMousetrap=1,function(ea){(function(na,ra,oa){if(!na)return;for(var aa={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},sa={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},la={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},ca={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},ua,da=1;da<20;++da)aa[111+da]="f"+da;for(da=0;da<=9;++da)aa[da+96]=da.toString();function pa(Ea,$a,Ma){if(Ea.addEventListener){Ea.addEventListener($a,Ma,!1);return}Ea.attachEvent("on"+$a,Ma)}function ha(Ea){if(Ea.type=="keypress"){var $a=String.fromCharCode(Ea.which);return Ea.shiftKey||($a=$a.toLowerCase()),$a}return aa[Ea.which]?aa[Ea.which]:sa[Ea.which]?sa[Ea.which]:String.fromCharCode(Ea.which).toLowerCase()}function ga(Ea,$a){return Ea.sort().join(",")===$a.sort().join(",")}function fa(Ea){var $a=[];return Ea.shiftKey&&$a.push("shift"),Ea.altKey&&$a.push("alt"),Ea.ctrlKey&&$a.push("ctrl"),Ea.metaKey&&$a.push("meta"),$a}function ma(Ea){if(Ea.preventDefault){Ea.preventDefault();return}Ea.returnValue=!1}function va(Ea){if(Ea.stopPropagation){Ea.stopPropagation();return}Ea.cancelBubble=!0}function xa(Ea){return Ea=="shift"||Ea=="ctrl"||Ea=="alt"||Ea=="meta"}function ya(){if(!ua){ua={};for(var Ea in aa)Ea>95&&Ea<112||aa.hasOwnProperty(Ea)&&(ua[aa[Ea]]=Ea)}return ua}function Aa(Ea,$a,Ma){return Ma||(Ma=ya()[Ea]?"keydown":"keypress"),Ma=="keypress"&&$a.length&&(Ma="keydown"),Ma}function Ca(Ea){return Ea==="+"?["+"]:(Ea=Ea.replace(/\+{2}/g,"+plus"),Ea.split("+"))}function Sa(Ea,$a){var Ma,Ia,Oa,Da=[];for(Ma=Ca(Ea),Oa=0;Oa<Ma.length;++Oa)Ia=Ma[Oa],ca[Ia]&&(Ia=ca[Ia]),$a&&$a!="keypress"&&la[Ia]&&(Ia=la[Ia],Da.push("shift")),xa(Ia)&&Da.push(Ia);return $a=Aa(Ia,Da,$a),{key:Ia,modifiers:Da,action:$a}}function wa(Ea,$a){return Ea===null||Ea===ra?!1:Ea===$a?!0:wa(Ea.parentNode,$a)}function ba(Ea){var $a=this;if(Ea=Ea||ra,!($a instanceof ba))return new ba(Ea);$a.target=Ea,$a._callbacks={},$a._directMap={};var Ma={},Ia,Oa=!1,Da=!1,Ta=!1;function _a(Ua){Ua=Ua||{};var Qa=!1,Wa;for(Wa in Ma){if(Ua[Wa]){Qa=!0;continue}Ma[Wa]=0}Qa||(Ta=!1)}function La(Ua,Qa,Wa,Za,Xa,tl){var il,Ja,nl=[],Ya=Wa.type;if(!$a._callbacks[Ua])return[];for(Ya=="keyup"&&xa(Ua)&&(Qa=[Ua]),il=0;il<$a._callbacks[Ua].length;++il)if(Ja=$a._callbacks[Ua][il],!(!Za&&Ja.seq&&Ma[Ja.seq]!=Ja.level)&&Ya==Ja.action&&(Ya=="keypress"&&!Wa.metaKey&&!Wa.ctrlKey||ga(Qa,Ja.modifiers))){var rl=!Za&&Ja.combo==Xa,sl=Za&&Ja.seq==Za&&Ja.level==tl;(rl||sl)&&$a._callbacks[Ua].splice(il,1),nl.push(Ja)}return nl}function Na(Ua,Qa,Wa,Za){$a.stopCallback(Qa,Qa.target||Qa.srcElement,Wa,Za)||Ua(Qa,Wa)===!1&&(ma(Qa),va(Qa))}$a._handleKey=function(Ua,Qa,Wa){var Za=La(Ua,Qa,Wa),Xa,tl={},il=0,Ja=!1;for(Xa=0;Xa<Za.length;++Xa)Za[Xa].seq&&(il=Math.max(il,Za[Xa].level));for(Xa=0;Xa<Za.length;++Xa){if(Za[Xa].seq){if(Za[Xa].level!=il)continue;Ja=!0,tl[Za[Xa].seq]=1,Na(Za[Xa].callback,Wa,Za[Xa].combo,Za[Xa].seq);continue}Ja||Na(Za[Xa].callback,Wa,Za[Xa].combo)}var nl=Wa.type=="keypress"&&Da;Wa.type==Ta&&!xa(Ua)&&!nl&&_a(tl),Da=Ja&&Wa.type=="keydown"};function za(Ua){typeof Ua.which!="number"&&(Ua.which=Ua.keyCode);var Qa=ha(Ua);if(Qa){if(Ua.type=="keyup"&&Oa===Qa){Oa=!1;return}$a.handleKey(Qa,fa(Ua),Ua)}}function Fa(){clearTimeout(Ia),Ia=setTimeout(_a,1e3)}function Ha(Ua,Qa,Wa,Za){Ma[Ua]=0;function Xa(Ya){return function(){Ta=Ya,++Ma[Ua],Fa()}}function tl(Ya){Na(Wa,Ya,Ua),Za!=="keyup"&&(Oa=ha(Ya)),setTimeout(_a,10)}for(var il=0;il<Qa.length;++il){var Ja=il+1===Qa.length,nl=Ja?tl:Xa(Za||Sa(Qa[il+1]).action);Va(Qa[il],nl,Za,Ua,il)}}function Va(Ua,Qa,Wa,Za,Xa){$a._directMap[Ua+":"+Wa]=Qa,Ua=Ua.replace(/\s+/g," ");var tl=Ua.split(" "),il;if(tl.length>1){Ha(Ua,tl,Qa,Wa);return}il=Sa(Ua,Wa),$a._callbacks[il.key]=$a._callbacks[il.key]||[],La(il.key,il.modifiers,{type:il.action},Za,Ua,Xa),$a._callbacks[il.key][Za?"unshift":"push"]({callback:Qa,modifiers:il.modifiers,action:il.action,seq:Za,level:Xa,combo:Ua})}$a._bindMultiple=function(Ua,Qa,Wa){for(var Za=0;Za<Ua.length;++Za)Va(Ua[Za],Qa,Wa)},pa(Ea,"keypress",za),pa(Ea,"keydown",za),pa(Ea,"keyup",za)}ba.prototype.bind=function(Ea,$a,Ma){var Ia=this;return Ea=Ea instanceof Array?Ea:[Ea],Ia._bindMultiple.call(Ia,Ea,$a,Ma),Ia},ba.prototype.unbind=function(Ea,$a){var Ma=this;return Ma.bind.call(Ma,Ea,function(){},$a)},ba.prototype.trigger=function(Ea,$a){var Ma=this;return Ma._directMap[Ea+":"+$a]&&Ma._directMap[Ea+":"+$a]({},Ea),Ma},ba.prototype.reset=function(){var Ea=this;return Ea._callbacks={},Ea._directMap={},Ea},ba.prototype.stopCallback=function(Ea,$a){var Ma=this;if((" "+$a.className+" ").indexOf(" mousetrap ")>-1||wa($a,Ma.target))return!1;if("composedPath"in Ea&&typeof Ea.composedPath=="function"){var Ia=Ea.composedPath()[0];Ia!==Ea.target&&($a=Ia)}return $a.tagName=="INPUT"||$a.tagName=="SELECT"||$a.tagName=="TEXTAREA"||$a.isContentEditable},ba.prototype.handleKey=function(){var Ea=this;return Ea._handleKey.apply(Ea,arguments)},ba.addKeycodes=function(Ea){for(var $a in Ea)Ea.hasOwnProperty($a)&&(aa[$a]=Ea[$a]);ua=null},ba.init=function(){var Ea=ba(ra);for(var $a in Ea)$a.charAt(0)!=="_"&&(ba[$a]=function(Ma){return function(){return Ea[Ma].apply(Ea,arguments)}}($a))},ba.init(),na.Mousetrap=ba,ea.exports&&(ea.exports=ba)})(typeof window<"u"?window:null,typeof window<"u"?document:null)}(mousetrap)),mousetrap.exports}var mousetrapExports=requireMousetrap();const Mousetrap=getDefaultExportFromCjs(mousetrapExports);function some(ea,na){for(var ra=ea.length,oa=0;oa<ra;++oa)if(na(ea[oa],oa))return!0;return!1}function find$2(ea,na){for(var ra=ea.length,oa=0;oa<ra;++oa)if(na(ea[oa],oa))return ea[oa];return null}function getUserAgentString(ea){var na=ea;if(typeof na>"u"){if(typeof navigator>"u"||!navigator)return"";na=navigator.userAgent||""}return na.toLowerCase()}function execRegExp(ea,na){try{return new RegExp(ea,"g").exec(na)}catch{return null}}function hasUserAgentData(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var ea=navigator.userAgentData,na=ea.brands||ea.uaList;return!!(na&&na.length)}function findVersion(ea,na){var ra=execRegExp("("+ea+")((?:\\/|\\s|:)([0-9|\\.|_]+))",na);return ra?ra[3]:""}function convertVersion(ea){return ea.replace(/_/g,".")}function findPreset(ea,na){var ra=null,oa="-1";return some(ea,function(aa){var sa=execRegExp("("+aa.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",na);return!sa||aa.brand?!1:(ra=aa,oa=sa[3]||"-1",aa.versionAlias?oa=aa.versionAlias:aa.versionTest&&(oa=findVersion(aa.versionTest.toLowerCase(),na)||oa),oa=convertVersion(oa),!0)}),{preset:ra,version:oa}}function findPresetBrand(ea,na){var ra={brand:"",version:"-1"};return some(ea,function(oa){var aa=findBrand(na,oa);return aa?(ra.brand=oa.id,ra.version=oa.versionAlias||aa.version,ra.version!=="-1"):!1}),ra}function findBrand(ea,na){return find$2(ea,function(ra){var oa=ra.brand;return execRegExp(""+na.test,oa.toLowerCase())})}var BROWSER_PRESETS=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],CHROMIUM_PRESETS=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],WEBKIT_PRESETS=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],WEBVIEW_PRESETS=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],OS_PRESETS=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function isWebView(ea){return!!findPreset(WEBVIEW_PRESETS,ea).preset}function getLegacyAgent(ea){var na=getUserAgentString(ea),ra=!!/mobi/g.exec(na),oa={name:"unknown",version:"-1",majorVersion:-1,webview:isWebView(na),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},aa={name:"unknown",version:"-1",majorVersion:-1},sa=findPreset(BROWSER_PRESETS,na),la=sa.preset,ca=sa.version,ua=findPreset(OS_PRESETS,na),da=ua.preset,pa=ua.version,ha=findPreset(CHROMIUM_PRESETS,na);if(oa.chromium=!!ha.preset,oa.chromiumVersion=ha.version,!oa.chromium){var ga=findPreset(WEBKIT_PRESETS,na);oa.webkit=!!ga.preset,oa.webkitVersion=ga.version}return da&&(aa.name=da.id,aa.version=pa,aa.majorVersion=parseInt(pa,10)),la&&(oa.name=la.id,oa.version=ca,oa.webview&&aa.name==="ios"&&oa.name!=="safari"&&(oa.webview=!1)),oa.majorVersion=parseInt(oa.version,10),{browser:oa,os:aa,isMobile:ra,isHints:!1}}function getClientHintsAgent(ea){var na=navigator.userAgentData,ra=(na.uaList||na.brands).slice(),oa=na.mobile||!1,aa=ra[0],sa=(na.platform||navigator.platform).toLowerCase(),la={name:aa.brand,version:aa.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!findPresetBrand(WEBVIEW_PRESETS,ra).brand||isWebView(getUserAgentString())},ca={name:"unknown",version:"-1",majorVersion:-1};la.webkit=!la.chromium&&some(WEBKIT_PRESETS,function(ga){return findBrand(ra,ga)});var ua=findPresetBrand(CHROMIUM_PRESETS,ra);if(la.chromium=!!ua.brand,la.chromiumVersion=ua.version||"-1",!la.chromium){var da=findPresetBrand(WEBKIT_PRESETS,ra);la.webkit=!!da.brand,la.webkitVersion=da.version||"-1"}var pa=find$2(OS_PRESETS,function(ga){return new RegExp(""+ga.test,"g").exec(sa)});ca.name=pa?pa.id:"";{var ha=findPresetBrand(BROWSER_PRESETS,ra);la.name=ha.brand||la.name,la.version=ha.brand&&ea?ea.uaFullVersion:ha.version}return la.webkit&&(ca.name=oa?"ios":"mac"),ca.name==="ios"&&la.webview&&(la.version="-1"),ca.version=convertVersion(ca.version),la.version=convertVersion(la.version),ca.majorVersion=parseInt(ca.version,10),la.majorVersion=parseInt(la.version,10),{browser:la,os:ca,isMobile:oa,isHints:!0}}function agent$1(ea){return hasUserAgentData()?getClientHintsAgent():getLegacyAgent(ea)}function prefixNames(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];return na.map(function(oa){return oa.split(" ").map(function(aa){return aa?""+ea+aa:""}).join(" ")}).join(" ")}function prefixCSS(ea,na){return na.replace(/([^}{]*){/gm,function(ra,oa){return oa.replace(/\.([^{,\s\d.]+)/g,"."+ea+"$1")+"{"})}function ref(ea,na){return function(ra){ra&&(ea[na]=ra)}}function refs(ea,na,ra){return function(oa){oa&&(ea[na][ra]=oa)}}function withMethods(ea,na){return na===void 0&&(na={}),function(ra,oa){ea.forEach(function(aa){var sa=na[aa]||aa;sa in ra||(ra[sa]=function(){for(var la,ca=[],ua=0;ua<arguments.length;ua++)ca[ua]=arguments[ua];var da=(la=this[oa])[aa].apply(la,ca);return da===this[oa]?this:da})})}}var FUNCTION="function",OBJECT="object",STRING="string",NUMBER="number",UNDEFINED="undefined",IS_WINDOW=typeof window!==UNDEFINED,doc=typeof document!==UNDEFINED&&document,OPEN_CLOSED_CHARACTERS=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],TINY_NUM$1=1e-7,DEFAULT_UNIT_PRESETS={cm:function(ea){return ea*96/2.54},mm:function(ea){return ea*96/254},in:function(ea){return ea*96},pt:function(ea){return ea*96/72},pc:function(ea){return ea*96/6},"%":function(ea,na){return ea*na/100},vw:function(ea,na){return na===void 0&&(na=window.innerWidth),ea/100*na},vh:function(ea,na){return na===void 0&&(na=window.innerHeight),ea/100*na},vmax:function(ea,na){return na===void 0&&(na=Math.max(window.innerWidth,window.innerHeight)),ea/100*na},vmin:function(ea,na){return na===void 0&&(na=Math.min(window.innerWidth,window.innerHeight)),ea/100*na}};/*! *****************************************************************************
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.
***************************************************************************** */function __spreadArrays$2(){for(var ea=0,na=0,ra=arguments.length;na<ra;na++)ea+=arguments[na].length;for(var oa=Array(ea),aa=0,na=0;na<ra;na++)for(var sa=arguments[na],la=0,ca=sa.length;la<ca;la++,aa++)oa[aa]=sa[la];return oa}function dot(ea,na,ra,oa){return(ea*oa+na*ra)/(ra+oa)}function isUndefined(ea){return typeof ea===UNDEFINED}function isObject(ea){return ea&&typeof ea===OBJECT}function isArray(ea){return Array.isArray(ea)}function isString$1(ea){return typeof ea===STRING}function isNumber(ea){return typeof ea===NUMBER}function isFunction(ea){return typeof ea===FUNCTION}function isEqualSeparator(ea,na){var ra=ea===""||ea==" ",oa=na===""||na==" ";return oa&&ra||ea===na}function findOpen(ea,na,ra,oa,aa){var sa=findIgnore(ea,na,ra);return sa?ra:findClose(ea,na,ra+1,oa,aa)}function findIgnore(ea,na,ra){if(!ea.ignore)return null;var oa=na.slice(Math.max(ra-3,0),ra+3).join("");return new RegExp(ea.ignore).exec(oa)}function findClose(ea,na,ra,oa,aa){for(var sa=function(da){var pa=na[da].trim();if(pa===ea.close&&!findIgnore(ea,na,da))return{value:da};var ha=da,ga=find$1(aa,function(fa){var ma=fa.open;return ma===pa});if(ga&&(ha=findOpen(ga,na,da,oa,aa)),ha===-1)return la=da,"break";da=ha,la=da},la,ca=ra;ca<oa;++ca){var ua=sa(ca);if(ca=la,typeof ua=="object")return ua.value;if(ua==="break")break}return-1}function splitText(ea,na){var ra=isString$1(na)?{separator:na}:na,oa=ra.separator,aa=oa===void 0?",":oa,sa=ra.isSeparateFirst,la=ra.isSeparateOnlyOpenClose,ca=ra.isSeparateOpenClose,ua=ca===void 0?la:ca,da=ra.openCloseCharacters,pa=da===void 0?OPEN_CLOSED_CHARACTERS:da,ha=pa.map(function(Ea){var $a=Ea.open,Ma=Ea.close;return $a===Ma?$a:$a+"|"+Ma}).join("|"),ga="(\\s*"+aa+"\\s*|"+ha+"|\\s+)",fa=new RegExp(ga,"g"),ma=ea.split(fa).filter(function(Ea){return Ea&&Ea!=="undefined"}),va=ma.length,xa=[],ya=[];function Aa(){return ya.length?(xa.push(ya.join("")),ya=[],!0):!1}for(var Ca=function(Ea){var $a=ma[Ea].trim(),Ma=Ea,Ia=find$1(pa,function(Ta){var _a=Ta.open;return _a===$a}),Oa=find$1(pa,function(Ta){var _a=Ta.close;return _a===$a});if(Ia){if(Ma=findOpen(Ia,ma,Ea,va,pa),Ma!==-1&&ua)return Aa()&&sa||(xa.push(ma.slice(Ea,Ma+1).join("")),Ea=Ma,sa)?(Sa=Ea,"break"):(Sa=Ea,"continue")}else if(Oa&&!findIgnore(Oa,ma,Ea)){var Da=__spreadArrays$2(pa);return Da.splice(pa.indexOf(Oa),1),{value:splitText(ea,{separator:aa,isSeparateFirst:sa,isSeparateOnlyOpenClose:la,isSeparateOpenClose:ua,openCloseCharacters:Da})}}else if(isEqualSeparator($a,aa)&&!la)return Aa(),sa?(Sa=Ea,"break"):(Sa=Ea,"continue");Ma===-1&&(Ma=va-1),ya.push(ma.slice(Ea,Ma+1).join("")),Ea=Ma,Sa=Ea},Sa,wa=0;wa<va;++wa){var ba=Ca(wa);if(wa=Sa,typeof ba=="object")return ba.value;if(ba==="break")break}return ya.length&&xa.push(ya.join("")),xa}function splitSpace(ea){return splitText(ea,"")}function splitComma(ea){return splitText(ea,",")}function splitBracket(ea){var na=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(ea);return!na||na.length<4?{}:{prefix:na[1],value:na[2],suffix:na[3]}}function splitUnit(ea){var na=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(ea);if(!na)return{prefix:"",unit:"",value:NaN};var ra=na[1],oa=na[2],aa=na[3];return{prefix:ra,unit:aa,value:parseFloat(oa)}}function decamelize(ea,na){return ea.replace(/([a-z])([A-Z])/g,function(ra,oa,aa){return""+oa+na+aa.toLowerCase()})}function now(){return Date.now?Date.now():new Date().getTime()}function findIndex$1(ea,na,ra){ra===void 0&&(ra=-1);for(var oa=ea.length,aa=0;aa<oa;++aa)if(na(ea[aa],aa,ea))return aa;return ra}function find$1(ea,na,ra){var oa=findIndex$1(ea,na);return oa>-1?ea[oa]:ra}var requestAnimationFrame$1=function(){var ea=now(),na=IS_WINDOW&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return na?na.bind(window):function(ra){var oa=now(),aa=setTimeout(function(){ra(oa-ea)},1e3/60);return aa}}(),cancelAnimationFrame$1=function(){var ea=IS_WINDOW&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return ea?ea.bind(window):function(na){clearTimeout(na)}}();function getKeys(ea){return Object.keys(ea)}function convertUnitSize(ea,na){var ra=splitUnit(ea),oa=ra.value,aa=ra.unit;if(isObject(na)){var sa=na[aa];if(sa){if(isFunction(sa))return sa(oa);if(DEFAULT_UNIT_PRESETS[aa])return DEFAULT_UNIT_PRESETS[aa](oa,sa)}}else if(aa==="%")return oa*na/100;return DEFAULT_UNIT_PRESETS[aa]?DEFAULT_UNIT_PRESETS[aa](oa):oa}function between(ea,na,ra){return Math.max(na,Math.min(ea,ra))}function checkBoundSize(ea,na,ra,oa){return oa===void 0&&(oa=ea[0]/ea[1]),[[throttle$1(na[0],TINY_NUM$1),throttle$1(na[0]/oa,TINY_NUM$1)],[throttle$1(na[1]*oa,TINY_NUM$1),throttle$1(na[1],TINY_NUM$1)]].filter(function(aa){return aa.every(function(sa,la){var ca=na[la],ua=throttle$1(ca,TINY_NUM$1);return ra?sa<=ca||sa<=ua:sa>=ca||sa>=ua})})[0]||ea}function calculateBoundSize(ea,na,ra,oa){if(!oa)return ea.map(function(fa,ma){return between(fa,na[ma],ra[ma])});var aa=ea[0],sa=ea[1],la=oa===!0?aa/sa:oa,ca=checkBoundSize(ea,na,!1,la),ua=ca[0],da=ca[1],pa=checkBoundSize(ea,ra,!0,la),ha=pa[0],ga=pa[1];return aa<ua||sa<da?(aa=ua,sa=da):(aa>ha||sa>ga)&&(aa=ha,sa=ga),[aa,sa]}function sum(ea){for(var na=ea.length,ra=0,oa=na-1;oa>=0;--oa)ra+=ea[oa];return ra}function average(ea){for(var na=ea.length,ra=0,oa=na-1;oa>=0;--oa)ra+=ea[oa];return na?ra/na:0}function getRad$1(ea,na){var ra=na[0]-ea[0],oa=na[1]-ea[1],aa=Math.atan2(oa,ra);return aa>=0?aa:aa+Math.PI*2}function getCenterPoint(ea){return[0,1].map(function(na){return average(ea.map(function(ra){return ra[na]}))})}function getShapeDirection(ea){var na=getCenterPoint(ea),ra=getRad$1(na,ea[0]),oa=getRad$1(na,ea[1]);return ra<oa&&oa-ra<Math.PI||ra>oa&&oa-ra<-Math.PI?1:-1}function getDist$2(ea,na){return Math.sqrt(Math.pow((na?na[0]:0)-ea[0],2)+Math.pow((na?na[1]:0)-ea[1],2))}function throttle$1(ea,na){if(!na)return ea;var ra=1/na;return Math.round(ea/na)/ra}function throttleArray(ea,na){return ea.forEach(function(ra,oa){ea[oa]=throttle$1(ea[oa],na)}),ea}function counter(ea){for(var na=[],ra=0;ra<ea;++ra)na.push(ra);return na}function flat$1(ea){return ea.reduce(function(na,ra){return na.concat(ra)},[])}function hasClass(ea,na){return ea.classList?ea.classList.contains(na):!!ea.className.match(new RegExp("(\\s|^)"+na+"(\\s|$)"))}function addClass(ea,na){ea.classList?ea.classList.add(na):ea.className+=" "+na}function removeClass(ea,na){if(ea.classList)ea.classList.remove(na);else{var ra=new RegExp("(\\s|^)"+na+"(\\s|$)");ea.className=ea.className.replace(ra," ")}}function addEvent(ea,na,ra,oa){ea.addEventListener(na,ra,oa)}function removeEvent(ea,na,ra,oa){ea.removeEventListener(na,ra,oa)}function getDocument(ea){return ea?.ownerDocument||doc}function getDocumentElement(ea){return getDocument(ea).documentElement}function getDocumentBody(ea){return getDocument(ea).body}function getWindow$1(ea){var na;return((na=ea?.ownerDocument)===null||na===void 0?void 0:na.defaultView)||window}function isWindow$1(ea){return ea&&"postMessage"in ea&&"blur"in ea&&"self"in ea}function isNode$1(ea){return isObject(ea)&&ea.nodeName&&ea.nodeType&&"ownerDocument"in ea}function add$1(ea,na,ra,oa,aa,sa){for(var la=0;la<aa;++la){var ca=ra+la*aa,ua=oa+la*aa;ea[ca]+=ea[ua]*sa,na[ca]+=na[ua]*sa}}function swap(ea,na,ra,oa,aa){for(var sa=0;sa<aa;++sa){var la=ra+sa*aa,ca=oa+sa*aa,ua=ea[la],da=na[la];ea[la]=ea[ca],ea[ca]=ua,na[la]=na[ca],na[ca]=da}}function divide(ea,na,ra,oa,aa){for(var sa=0;sa<oa;++sa){var la=ra+sa*oa;ea[la]/=aa,na[la]/=aa}}function ignoreDimension(ea,na,ra){for(var oa=ea.slice(),aa=0;aa<ra;++aa)oa[aa*ra+na-1]=0,oa[(na-1)*ra+aa]=0;return oa[(na-1)*(ra+1)]=1,oa}function invert(ea,na){na===void 0&&(na=Math.sqrt(ea.length));for(var ra=ea.slice(),oa=createIdentityMatrix(na),aa=0;aa<na;++aa){var sa=na*aa+aa;if(!throttle$1(ra[sa],TINY_NUM$1)){for(var la=aa+1;la<na;++la)if(ra[na*aa+la]){swap(ra,oa,aa,la,na);break}}if(!throttle$1(ra[sa],TINY_NUM$1))return[];divide(ra,oa,aa,na,ra[sa]);for(var la=0;la<na;++la){var ca=la,ua=la+aa*na,da=ra[ua];!throttle$1(da,TINY_NUM$1)||aa===la||add$1(ra,oa,ca,aa,na,-da)}}return oa}function transpose(ea,na){na===void 0&&(na=Math.sqrt(ea.length));for(var ra=[],oa=0;oa<na;++oa)for(var aa=0;aa<na;++aa)ra[aa*na+oa]=ea[na*oa+aa];return ra}function getOrigin(ea,na){na===void 0&&(na=Math.sqrt(ea.length));for(var ra=[],oa=ea[na*na-1],aa=0;aa<na-1;++aa)ra[aa]=ea[na*(na-1)+aa]/oa;return ra[na-1]=0,ra}function fromTranslation(ea,na){for(var ra=createIdentityMatrix(na),oa=0;oa<na-1;++oa)ra[na*(na-1)+oa]=ea[oa]||0;return ra}function convertPositionMatrix(ea,na){for(var ra=ea.slice(),oa=ea.length;oa<na-1;++oa)ra[oa]=0;return ra[na-1]=1,ra}function convertDimension(ea,na,ra){if(na===void 0&&(na=Math.sqrt(ea.length)),na===ra)return ea;for(var oa=createIdentityMatrix(ra),aa=Math.min(na,ra),sa=0;sa<aa-1;++sa){for(var la=0;la<aa-1;++la)oa[sa*ra+la]=ea[sa*na+la];oa[(sa+1)*ra-1]=ea[(sa+1)*na-1],oa[(ra-1)*ra+sa]=ea[(na-1)*na+sa]}return oa[ra*ra-1]=ea[na*na-1],oa}function multiplies(ea){for(var na=[],ra=1;ra<arguments.length;ra++)na[ra-1]=arguments[ra];var oa=createIdentityMatrix(ea);return na.forEach(function(aa){oa=multiply(oa,aa,ea)}),oa}function multiply(ea,na,ra){ra===void 0&&(ra=Math.sqrt(ea.length));var oa=[],aa=ea.length/ra,sa=na.length/aa;if(aa){if(!sa)return ea}else return na;for(var la=0;la<ra;++la)for(var ca=0;ca<sa;++ca){oa[ca*ra+la]=0;for(var ua=0;ua<aa;++ua)oa[ca*ra+la]+=ea[ua*ra+la]*na[ca*aa+ua]}return oa}function plus(ea,na){for(var ra=Math.min(ea.length,na.length),oa=ea.slice(),aa=0;aa<ra;++aa)oa[aa]=oa[aa]+na[aa];return oa}function minus(ea,na){for(var ra=Math.min(ea.length,na.length),oa=ea.slice(),aa=0;aa<ra;++aa)oa[aa]=oa[aa]-na[aa];return oa}function convertCSStoMatrix(ea,na){return na===void 0&&(na=ea.length===6),na?[ea[0],ea[1],0,ea[2],ea[3],0,ea[4],ea[5],1]:ea}function convertMatrixtoCSS(ea,na){return na===void 0&&(na=ea.length===9),na?[ea[0],ea[1],ea[3],ea[4],ea[6],ea[7]]:ea}function calculate(ea,na,ra){ra===void 0&&(ra=na.length);var oa=multiply(ea,na,ra),aa=oa[ra-1];return oa.map(function(sa){return sa/aa})}function rotateX3d(ea,na){return multiply(ea,[1,0,0,0,0,Math.cos(na),Math.sin(na),0,0,-Math.sin(na),Math.cos(na),0,0,0,0,1],4)}function rotateY3d(ea,na){return multiply(ea,[Math.cos(na),0,-Math.sin(na),0,0,1,0,0,Math.sin(na),0,Math.cos(na),0,0,0,0,1],4)}function rotateZ3d(ea,na){return multiply(ea,createRotateMatrix(na,4))}function scale3d(ea,na){var ra=na[0],oa=ra===void 0?1:ra,aa=na[1],sa=aa===void 0?1:aa,la=na[2],ca=la===void 0?1:la;return multiply(ea,[oa,0,0,0,0,sa,0,0,0,0,ca,0,0,0,0,1],4)}function rotate(ea,na){return calculate(createRotateMatrix(na,3),convertPositionMatrix(ea,3))}function translate3d(ea,na){var ra=na[0],oa=ra===void 0?0:ra,aa=na[1],sa=aa===void 0?0:aa,la=na[2],ca=la===void 0?0:la;return multiply(ea,[1,0,0,0,0,1,0,0,0,0,1,0,oa,sa,ca,1],4)}function matrix3d(ea,na){return multiply(ea,na,4)}function createRotateMatrix(ea,na){var ra=Math.cos(ea),oa=Math.sin(ea),aa=createIdentityMatrix(na);return aa[0]=ra,aa[1]=oa,aa[na]=-oa,aa[na+1]=ra,aa}function createIdentityMatrix(ea){for(var na=ea*ea,ra=[],oa=0;oa<na;++oa)ra[oa]=oa%(ea+1)?0:1;return ra}function createScaleMatrix(ea,na){for(var ra=createIdentityMatrix(na),oa=Math.min(ea.length,na-1),aa=0;aa<oa;++aa)ra[(na+1)*aa]=ea[aa];return ra}function createOriginMatrix(ea,na){for(var ra=createIdentityMatrix(na),oa=Math.min(ea.length,na-1),aa=0;aa<oa;++aa)ra[na*(na-1)+aa]=ea[aa];return ra}function createWarpMatrix(ea,na,ra,oa,aa,sa,la,ca){var ua=ea[0],da=ea[1],pa=na[0],ha=na[1],ga=ra[0],fa=ra[1],ma=oa[0],va=oa[1],xa=aa[0],ya=aa[1],Aa=sa[0],Ca=sa[1],Sa=la[0],wa=la[1],ba=ca[0],Ea=ca[1],$a=[ua,0,pa,0,ga,0,ma,0,da,0,ha,0,fa,0,va,0,1,0,1,0,1,0,1,0,0,ua,0,pa,0,ga,0,ma,0,da,0,ha,0,fa,0,va,0,1,0,1,0,1,0,1,-xa*ua,-ya*ua,-Aa*pa,-Ca*pa,-Sa*ga,-wa*ga,-ba*ma,-Ea*ma,-xa*da,-ya*da,-Aa*ha,-Ca*ha,-Sa*fa,-wa*fa,-ba*va,-Ea*va],Ma=invert($a,8);if(!Ma.length)return[];var Ia=multiply(Ma,[xa,ya,Aa,Ca,Sa,wa,ba,Ea],8);return Ia[8]=1,convertDimension(transpose(Ia),3,4)}var __assign$8=function(){return __assign$8=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$8.apply(this,arguments)};function createMatrix(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function parseMat(ea,na){return na===void 0&&(na=0),toMat(parse$1(ea,na))}function calculateMatrixDist(ea,na){var ra=calculate(ea,[na[0],na[1]||0,na[2]||0,1],4),oa=ra[3]||1;return[ra[0]/oa,ra[1]/oa,ra[2]/oa]}function toMat(ea){var na=createMatrix();return ea.forEach(function(ra){var oa=ra.matrixFunction,aa=ra.functionValue;oa&&(na=oa(na,aa))}),na}function parse$1(ea,na){na===void 0&&(na=0);var ra=isArray(ea)?ea:splitSpace(ea);return ra.map(function(oa){var aa=splitBracket(oa),sa=aa.prefix,la=aa.value,ca=null,ua=sa,da="";if(sa==="translate"||sa==="translateX"||sa==="translate3d"){var pa=isObject(na)?__assign$8(__assign$8({},na),{"o%":na["%"]}):{"%":na,"o%":na},ha=splitComma(la).map(function(Ta,_a){return _a===0&&"x%"in pa?pa["%"]=na["x%"]:_a===1&&"y%"in pa?pa["%"]=na["y%"]:pa["%"]=na["o%"],convertUnitSize(Ta,pa)}),ga=ha[0],fa=ha[1],ma=fa===void 0?0:fa,va=ha[2],xa=va===void 0?0:va;ca=translate3d,da=[ga,ma,xa]}else if(sa==="translateY"){var ya=isObject(na)?__assign$8({"%":na["y%"]},na):{"%":na},ma=convertUnitSize(la,ya);ca=translate3d,da=[0,ma,0]}else if(sa==="translateZ"){var xa=parseFloat(la);ca=translate3d,da=[0,0,xa]}else if(sa==="scale"||sa==="scale3d"){var Aa=splitComma(la).map(function(Ta){return parseFloat(Ta)}),Ca=Aa[0],Sa=Aa[1],wa=Sa===void 0?Ca:Sa,ba=Aa[2],Ea=ba===void 0?1:ba;ca=scale3d,da=[Ca,wa,Ea]}else if(sa==="scaleX"){var Ca=parseFloat(la);ca=scale3d,da=[Ca,1,1]}else if(sa==="scaleY"){var wa=parseFloat(la);ca=scale3d,da=[1,wa,1]}else if(sa==="scaleZ"){var Ea=parseFloat(la);ca=scale3d,da=[1,1,Ea]}else if(sa==="rotate"||sa==="rotateZ"||sa==="rotateX"||sa==="rotateY"){var $a=splitUnit(la),Ma=$a.unit,Ia=$a.value,Oa=Ma==="rad"?Ia:Ia*Math.PI/180;sa==="rotate"||sa==="rotateZ"?(ua="rotateZ",ca=rotateZ3d):sa==="rotateX"?ca=rotateX3d:sa==="rotateY"&&(ca=rotateY3d),da=Oa}else if(sa==="matrix3d")ca=matrix3d,da=splitComma(la).map(function(Ta){return parseFloat(Ta)});else if(sa==="matrix"){var Da=splitComma(la).map(function(Ta){return parseFloat(Ta)});ca=matrix3d,da=[Da[0],Da[1],0,0,Da[2],Da[3],0,0,0,0,1,0,Da[4],Da[5],0,1]}else ua="";return{name:sa,functionName:ua,value:la,matrixFunction:ca,functionValue:da}})}var PolyMap=function(){function ea(){this.keys=[],this.values=[]}var na=ea.prototype;return na.get=function(ra){return this.values[this.keys.indexOf(ra)]},na.set=function(ra,oa){var aa=this.keys,sa=this.values,la=aa.indexOf(ra),ca=la===-1?aa.length:la;aa[ca]=ra,sa[ca]=oa},ea}(),HashMap=function(){function ea(){this.object={}}var na=ea.prototype;return na.get=function(ra){return this.object[ra]},na.set=function(ra,oa){this.object[ra]=oa},ea}(),SUPPORT_MAP=typeof Map=="function",Link=function(){function ea(){}var na=ea.prototype;return na.connect=function(ra,oa){this.prev=ra,this.next=oa,ra&&(ra.next=this),oa&&(oa.prev=this)},na.disconnect=function(){var ra=this.prev,oa=this.next;ra&&(ra.next=oa),oa&&(oa.prev=ra)},na.getIndex=function(){for(var ra=this,oa=-1;ra;)ra=ra.prev,++oa;return oa},ea}();function orderChanged(ea,na){var ra=[],oa=[];return ea.forEach(function(aa){var sa=aa[0],la=aa[1],ca=new Link;ra[sa]=ca,oa[la]=ca}),ra.forEach(function(aa,sa){aa.connect(ra[sa-1])}),ea.filter(function(aa,sa){return!na[sa]}).map(function(aa,sa){var la=aa[0],ca=aa[1];if(la===ca)return[0,0];var ua=ra[la],da=oa[ca-1],pa=ua.getIndex();ua.disconnect(),da?ua.connect(da,da.next):ua.connect(void 0,ra[0]);var ha=ua.getIndex();return[pa,ha]})}var Result=function(){function ea(ra,oa,aa,sa,la,ca,ua,da){this.prevList=ra,this.list=oa,this.added=aa,this.removed=sa,this.changed=la,this.maintained=ca,this.changedBeforeAdded=ua,this.fixed=da}var na=ea.prototype;return Object.defineProperty(na,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(na,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),na.caculateOrdered=function(){var ra=orderChanged(this.changedBeforeAdded,this.fixed),oa=this.changed,aa=[];this.cacheOrdered=ra.filter(function(sa,la){var ca=sa[0],ua=sa[1],da=oa[la],pa=da[0],ha=da[1];if(ca!==ua)return aa.push([pa,ha]),!0}),this.cachePureChanged=aa},ea}();function diff$2(ea,na,ra){var oa=SUPPORT_MAP?Map:ra?HashMap:PolyMap,aa=ra||function(Aa){return Aa},sa=[],la=[],ca=[],ua=ea.map(aa),da=na.map(aa),pa=new oa,ha=new oa,ga=[],fa=[],ma={},va=[],xa=0,ya=0;return ua.forEach(function(Aa,Ca){pa.set(Aa,Ca)}),da.forEach(function(Aa,Ca){ha.set(Aa,Ca)}),ua.forEach(function(Aa,Ca){var Sa=ha.get(Aa);typeof Sa>"u"?(++ya,la.push(Ca)):ma[Sa]=ya}),da.forEach(function(Aa,Ca){var Sa=pa.get(Aa);typeof Sa>"u"?(sa.push(Ca),++xa):(ca.push([Sa,Ca]),ya=ma[Ca]||0,ga.push([Sa-ya,Ca-xa]),fa.push(Ca===Sa),Sa!==Ca&&va.push([Sa,Ca]))}),la.reverse(),new Result(ea,na,sa,la,va,ca,ga,fa)}var ListDiffer=function(){function ea(ra,oa){ra===void 0&&(ra=[]),this.findKeyCallback=oa,this.list=[].slice.call(ra)}var na=ea.prototype;return na.update=function(ra){var oa=[].slice.call(ra),aa=diff$2(this.list,oa,this.findKeyCallback);return this.list=oa,aa},ea}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var extendStatics$5=function(ea,na){return extendStatics$5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)oa.hasOwnProperty(aa)&&(ra[aa]=oa[aa])},extendStatics$5(ea,na)};function __extends$5(ea,na){extendStatics$5(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var findKeyCallback=typeof Map=="function"?void 0:function(){var ea=0;return function(na){return na.__DIFF_KEY__||(na.__DIFF_KEY__=++ea)}}(),ChildrenDiffer=function(ea){__extends$5(na,ea);function na(ra){return ra===void 0&&(ra=[]),ea.call(this,ra,findKeyCallback)||this}return na}(ListDiffer);function diff$1(ea,na){return diff$2(ea,na,findKeyCallback)}/*! *****************************************************************************
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 __assign$7=function(){return __assign$7=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$7.apply(this,arguments)};function __spreadArrays$1(){for(var ea=0,na=0,ra=arguments.length;na<ra;na++)ea+=arguments[na].length;for(var oa=Array(ea),aa=0,na=0;na<ra;na++)for(var sa=arguments[na],la=0,ca=sa.length;la<ca;la++,aa++)oa[aa]=sa[la];return oa}var EventEmitter=function(){function ea(){this._events={}}var na=ea.prototype;return na.on=function(ra,oa){if(isObject(ra))for(var aa in ra)this.on(aa,ra[aa]);else this._addEvent(ra,oa,{});return this},na.off=function(ra,oa){if(!ra)this._events={};else if(isObject(ra))for(var aa in ra)this.off(aa);else if(!oa)this._events[ra]=[];else{var sa=this._events[ra];if(sa){var la=findIndex$1(sa,function(ca){return ca.listener===oa});la>-1&&sa.splice(la,1)}}return this},na.once=function(ra,oa){var aa=this;return oa&&this._addEvent(ra,oa,{once:!0}),new Promise(function(sa){aa._addEvent(ra,sa,{once:!0})})},na.emit=function(ra,oa){var aa=this;oa===void 0&&(oa={});var sa=this._events[ra];if(!ra||!sa)return!0;var la=!1;return oa.eventType=ra,oa.stop=function(){la=!0},oa.currentTarget=this,__spreadArrays$1(sa).forEach(function(ca){ca.listener(oa),ca.once&&aa.off(ra,ca.listener)}),!la},na.trigger=function(ra,oa){return oa===void 0&&(oa={}),this.emit(ra,oa)},na._addEvent=function(ra,oa,aa){var sa=this._events;sa[ra]=sa[ra]||[];var la=sa[ra];la.push(__assign$7({listener:oa},aa))},ea}();/*! *****************************************************************************
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 extendStatics$4=function(ea,na){return extendStatics$4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)oa.hasOwnProperty(aa)&&(ra[aa]=oa[aa])},extendStatics$4(ea,na)};function __extends$4(ea,na){extendStatics$4(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var __assign$6=function(){return __assign$6=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$6.apply(this,arguments)};function getDefaultScrollPosition$1(ea){var na=ea.container;return na===document.body?[na.scrollLeft||document.documentElement.scrollLeft,na.scrollTop||document.documentElement.scrollTop]:[na.scrollLeft,na.scrollTop]}function checkDefaultScrollEvent(ea,na){return ea.addEventListener("scroll",na),function(){ea.removeEventListener("scroll",na)}}function getContainerElement(ea){if(ea){if(isString$1(ea))return document.querySelector(ea)}else return null;if(isFunction(ea))return ea();if(ea instanceof Element)return ea;if("current"in ea)return ea.current;if("value"in ea)return ea.value}var DragScroll=function(ea){__extends$4(na,ea);function na(){var oa=ea!==null&&ea.apply(this,arguments)||this;return oa._startRect=null,oa._startPos=[],oa._prevTime=0,oa._timer=0,oa._prevScrollPos=[0,0],oa._isWait=!1,oa._flag=!1,oa._currentOptions=null,oa._lock=!1,oa._unregister=null,oa._onScroll=function(){var aa=oa._currentOptions;oa._lock||!aa||oa.emit("scrollDrag",{next:function(sa){oa.checkScroll({container:aa.container,inputEvent:sa})}})},oa}var ra=na.prototype;return ra.dragStart=function(oa,aa){var sa=getContainerElement(aa.container);if(!sa){this._flag=!1;return}var la=0,ca=0,ua=0,da=0;if(sa===document.body)ua=window.innerWidth,da=window.innerHeight;else{var pa=sa.getBoundingClientRect();la=pa.top,ca=pa.left,ua=pa.width,da=pa.height}this._flag=!0,this._startPos=[oa.clientX,oa.clientY],this._startRect={top:la,left:ca,width:ua,height:da},this._prevScrollPos=this._getScrollPosition([0,0],aa),this._currentOptions=aa,this._registerScrollEvent(aa)},ra.drag=function(oa,aa){if(clearTimeout(this._timer),!!this._flag){var sa=oa.clientX,la=oa.clientY,ca=aa.threshold,ua=ca===void 0?0:ca,da=this,pa=da._startRect,ha=da._startPos;this._currentOptions=aa;var ga=[0,0];return pa.top>la-ua?(ha[1]>pa.top||la<ha[1])&&(ga[1]=-1):pa.top+pa.height<la+ua&&(ha[1]<pa.top+pa.height||la>ha[1])&&(ga[1]=1),pa.left>sa-ua?(ha[0]>pa.left||sa<ha[0])&&(ga[0]=-1):pa.left+pa.width<sa+ua&&(ha[0]<pa.left+pa.width||sa>ha[0])&&(ga[0]=1),!ga[0]&&!ga[1]?!1:this._continueDrag(__assign$6(__assign$6({},aa),{direction:ga,inputEvent:oa,isDrag:!0}))}},ra.checkScroll=function(oa){var aa=this;if(this._isWait)return!1;var sa=oa.prevScrollPos,la=sa===void 0?this._prevScrollPos:sa,ca=oa.direction,ua=oa.throttleTime,da=ua===void 0?0:ua,pa=oa.inputEvent,ha=oa.isDrag,ga=this._getScrollPosition(ca||[0,0],oa),fa=ga[0]-la[0],ma=ga[1]-la[1],va=ca||[fa?Math.abs(fa)/fa:0,ma?Math.abs(ma)/ma:0];return this._prevScrollPos=ga,this._lock=!1,!fa&&!ma?!1:(this.emit("move",{offsetX:va[0]?fa:0,offsetY:va[1]?ma:0,inputEvent:pa}),da&&ha&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){aa._continueDrag(oa)},da)),!0)},ra.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},ra._getScrollPosition=function(oa,aa){var sa=aa.container,la=aa.getScrollPosition,ca=la===void 0?getDefaultScrollPosition$1:la;return ca({container:getContainerElement(sa),direction:oa})},ra._continueDrag=function(oa){var aa=this,sa,la=oa.container,ca=oa.direction,ua=oa.throttleTime,da=oa.useScroll,pa=oa.isDrag,ha=oa.inputEvent;if(!(!this._flag||pa&&this._isWait)){var ga=now(),fa=Math.max(ua+this._prevTime-ga,0);if(fa>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){aa._continueDrag(oa)},fa),!1;this._prevTime=ga;var ma=this._getScrollPosition(ca,oa);this._prevScrollPos=ma,pa&&(this._isWait=!0),da||(this._lock=!0);var va={container:getContainerElement(la),direction:ca,inputEvent:ha};return(sa=oa.requestScroll)===null||sa===void 0||sa.call(oa,va),this.emit("scroll",va),this._isWait=!1,da||this.checkScroll(__assign$6(__assign$6({},oa),{prevScrollPos:ma,direction:ca,inputEvent:ha}))}},ra._registerScrollEvent=function(oa){this._unregisterScrollEvent();var aa=oa.checkScrollEvent;if(aa){var sa=aa===!0?checkDefaultScrollEvent:aa,la=getContainerElement(oa.container);aa===!0&&(la===document.body||la===document.documentElement)?this._unregister=checkDefaultScrollEvent(window,this._onScroll):this._unregister=sa(la,this._onScroll)}},ra._unregisterScrollEvent=function(){var oa;(oa=this._unregister)===null||oa===void 0||oa.call(this),this._unregister=null},na}(EventEmitter);/*! *****************************************************************************
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.
***************************************************************************** */function __spreadArrays(){for(var ea=0,na=0,ra=arguments.length;na<ra;na++)ea+=arguments[na].length;for(var oa=Array(ea),aa=0,na=0;na<ra;na++)for(var sa=arguments[na],la=0,ca=sa.length;la<ca;la++,aa++)oa[aa]=sa[la];return oa}function tinyThrottle(ea){return throttle$1(ea,TINY_NUM$1)}function isSameConstants(ea,na){return ea.every(function(ra,oa){return tinyThrottle(ra-na[oa])===0})}function isSamePoint(ea,na){return!tinyThrottle(ea[0]-na[0])&&!tinyThrottle(ea[1]-na[1])}function getAreaSize(ea){return ea.length<3?0:Math.abs(sum(ea.map(function(na,ra){var oa=ea[ra+1]||ea[0];return na[0]*oa[1]-oa[0]*na[1]})))/2}function fitPoints(ea,na){var ra=na.width,oa=na.height,aa=na.left,sa=na.top,la=getMinMaxs(ea),ca=la.minX,ua=la.minY,da=la.maxX,pa=la.maxY,ha=ra/(da-ca),ga=oa/(pa-ua);return ea.map(function(fa){return[aa+(fa[0]-ca)*ha,sa+(fa[1]-ua)*ga]})}function getMinMaxs(ea){var na=ea.map(function(oa){return oa[0]}),ra=ea.map(function(oa){return oa[1]});return{minX:Math.min.apply(Math,na),minY:Math.min.apply(Math,ra),maxX:Math.max.apply(Math,na),maxY:Math.max.apply(Math,ra)}}function isInside(ea,na,ra){var oa=ea[0],aa=ea[1],sa=getMinMaxs(na),la=sa.minX,ca=sa.maxX,ua=[[la,aa],[ca,aa]],da=getLinearConstants(ua[0],ua[1]),pa=convertLines(na),ha=[];if(pa.forEach(function(ma){var va=getLinearConstants(ma[0],ma[1]),xa=ma[0];if(isSameConstants(da,va))ha.push({pos:ea,line:ma,type:"line"});else{var ya=getPointsOnLines(getIntersectionPointsByConstants(da,va),[ua,ma]);ya.forEach(function(Aa){ma.some(function(Ca){return isSamePoint(Ca,Aa)})?ha.push({pos:Aa,line:ma,type:"point"}):tinyThrottle(xa[1]-aa)!==0&&ha.push({pos:Aa,line:ma,type:"intersection"})})}}),find$1(ha,function(ma){return ma[0]===oa}))return!0;var ga=0,fa={};return ha.forEach(function(ma){var va=ma.pos,xa=ma.type,ya=ma.line;if(!(va[0]>oa))if(xa==="intersection")++ga;else{if(xa==="line")return;if(xa==="point"){var Aa=find$1(ya,function(wa){return wa[1]!==aa}),Ca=fa[va[0]],Sa=Aa[1]>aa?1:-1;Ca?Ca!==Sa&&++ga:fa[va[0]]=Sa}}}),ga%2===1}function getLinearConstants(ea,na){var ra=ea[0],oa=ea[1],aa=na[0],sa=na[1],la=aa-ra,ca=sa-oa;Math.abs(la)<TINY_NUM$1&&(la=0),Math.abs(ca)<TINY_NUM$1&&(ca=0);var ua=0,da=0,pa=0;return la?ca?(ua=-ca/la,da=1,pa=-ua*ra-oa):(da=1,pa=-oa):ca&&(ua=-1,pa=ra),[ua,da,pa]}function getIntersectionPointsByConstants(ea,na){var ra=ea[0],oa=ea[1],aa=ea[2],sa=na[0],la=na[1],ca=na[2],ua=ra===0&&sa===0,da=oa===0&&la===0,pa=[];if(ua&&da)return[];if(ua){var ha=-aa/oa,ga=-ca/la;return ha!==ga?[]:[[-1/0,ha],[1/0,ha]]}else if(da){var fa=-aa/ra,ma=-ca/sa;return fa!==ma?[]:[[fa,-1/0],[fa,1/0]]}else if(ra===0){var va=-aa/oa,xa=-(la*va+ca)/sa;pa=[[xa,va]]}else if(sa===0){var va=-ca/la,xa=-(oa*va+aa)/ra;pa=[[xa,va]]}else if(oa===0){var xa=-aa/ra,va=-(sa*xa+ca)/la;pa=[[xa,va]]}else if(la===0){var xa=-ca/sa,va=-(ra*xa+aa)/oa;pa=[[xa,va]]}else{var xa=(oa*ca-la*aa)/(la*ra-oa*sa),va=-(ra*xa+aa)/oa;pa=[[xa,va]]}return pa.map(function(ya){return[ya[0],ya[1]]})}function getPointsOnLines(ea,na){var ra=na.map(function(ha){return[0,1].map(function(ga){return[Math.min(ha[0][ga],ha[1][ga]),Math.max(ha[0][ga],ha[1][ga])]})}),oa=[];if(ea.length===2){var aa=ea[0],sa=aa[0],la=aa[1];if(tinyThrottle(sa-ea[1][0])){if(!tinyThrottle(la-ea[1][1])){var da=Math.max.apply(Math,ra.map(function(ha){return ha[0][0]})),pa=Math.min.apply(Math,ra.map(function(ha){return ha[0][1]}));if(tinyThrottle(da-pa)>0)return[];oa=[[da,la],[pa,la]]}}else{var ca=Math.max.apply(Math,ra.map(function(ha){return ha[1][0]})),ua=Math.min.apply(Math,ra.map(function(ha){return ha[1][1]}));if(tinyThrottle(ca-ua)>0)return[];oa=[[sa,ca],[sa,ua]]}}return oa.length||(oa=ea.filter(function(ha){var ga=ha[0],fa=ha[1];return ra.every(function(ma){return 0<=tinyThrottle(ga-ma[0][0])&&0<=tinyThrottle(ma[0][1]-ga)&&0<=tinyThrottle(fa-ma[1][0])&&0<=tinyThrottle(ma[1][1]-fa)})})),oa.map(function(ha){return[tinyThrottle(ha[0]),tinyThrottle(ha[1])]})}function convertLines(ea){return __spreadArrays(ea.slice(1),[ea[0]]).map(function(na,ra){return[ea[ra],na]})}function getOverlapPointInfos(ea,na){var ra=ea.slice(),oa=na.slice();getShapeDirection(ra)===-1&&ra.reverse(),getShapeDirection(oa)===-1&&oa.reverse();var aa=convertLines(ra),sa=convertLines(oa),la=aa.map(function(pa){return getLinearConstants(pa[0],pa[1])}),ca=sa.map(function(pa){return getLinearConstants(pa[0],pa[1])}),ua=[];la.forEach(function(pa,ha){var ga=aa[ha],fa=[];ca.forEach(function(ma,va){var xa=getIntersectionPointsByConstants(pa,ma),ya=getPointsOnLines(xa,[ga,sa[va]]);fa.push.apply(fa,ya.map(function(Aa){return{index1:ha,index2:va,pos:Aa,type:"intersection"}}))}),fa.sort(function(ma,va){return getDist$2(ga[0],ma.pos)-getDist$2(ga[0],va.pos)}),ua.push.apply(ua,fa),isInside(ga[1],oa)&&ua.push({index1:ha,index2:-1,pos:ga[1],type:"inside"})}),sa.forEach(function(pa,ha){if(isInside(pa[1],ra)){var ga=!1,fa=findIndex$1(ua,function(ma){var va=ma.index2;return va===ha?(ga=!0,!1):!!ga});fa===-1&&(ga=!1,fa=findIndex$1(ua,function(ma){var va=ma.index1,xa=ma.index2;return va===-1&&xa+1===ha?(ga=!0,!1):!!ga})),fa===-1?ua.push({index1:-1,index2:ha,pos:pa[1],type:"inside"}):ua.splice(fa,0,{index1:-1,index2:ha,pos:pa[1],type:"inside"})}});var da={};return ua.filter(function(pa){var ha=pa.pos,ga=ha[0]+"x"+ha[1];return da[ga]?!1:(da[ga]=!0,!0)})}function getOverlapPoints(ea,na){var ra=getOverlapPointInfos(ea,na);return ra.map(function(oa){var aa=oa.pos;return aa})}function getOverlapSize(ea,na){var ra=getOverlapPoints(ea,na);return getAreaSize(ra)}/*! *****************************************************************************
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 extendStatics$3=function(ea,na){return extendStatics$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)oa.hasOwnProperty(aa)&&(ra[aa]=oa[aa])},extendStatics$3(ea,na)};function __extends$3(ea,na){extendStatics$3(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var __assign$5=function(){return __assign$5=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$5.apply(this,arguments)};function getRad(ea,na){var ra=na[0]-ea[0],oa=na[1]-ea[1],aa=Math.atan2(oa,ra);return aa>=0?aa:aa+Math.PI*2}function getRotatiion(ea){return getRad([ea[0].clientX,ea[0].clientY],[ea[1].clientX,ea[1].clientY])/Math.PI*180}function isMultiTouch(ea){return ea.touches&&ea.touches.length>=2}function getEventClients(ea){return ea?ea.touches?getClients(ea.touches):[getClient(ea)]:[]}function isMouseEvent(ea){return ea&&(ea.type.indexOf("mouse")>-1||"button"in ea)}function getPosition$1(ea,na,ra){var oa=ra.length,aa=getAverageClient(ea,oa),sa=aa.clientX,la=aa.clientY,ca=aa.originalClientX,ua=aa.originalClientY,da=getAverageClient(na,oa),pa=da.clientX,ha=da.clientY,ga=getAverageClient(ra,oa),fa=ga.clientX,ma=ga.clientY,va=sa-pa,xa=la-ha,ya=sa-fa,Aa=la-ma;return{clientX:ca,clientY:ua,deltaX:va,deltaY:xa,distX:ya,distY:Aa}}function getDist$1(ea){return Math.sqrt(Math.pow(ea[0].clientX-ea[1].clientX,2)+Math.pow(ea[0].clientY-ea[1].clientY,2))}function getClients(ea){for(var na=Math.min(ea.length,2),ra=[],oa=0;oa<na;++oa)ra.push(getClient(ea[oa]));return ra}function getClient(ea){return{clientX:ea.clientX,clientY:ea.clientY}}function getAverageClient(ea,na){na===void 0&&(na=ea.length);for(var ra={clientX:0,clientY:0,originalClientX:0,originalClientY:0},oa=Math.min(ea.length,na),aa=0;aa<oa;++aa){var sa=ea[aa];ra.originalClientX+="originalClientX"in sa?sa.originalClientX:sa.clientX,ra.originalClientY+="originalClientY"in sa?sa.originalClientY:sa.clientY,ra.clientX+=sa.clientX,ra.clientY+=sa.clientY}return na?{clientX:ra.clientX/na,clientY:ra.clientY/na,originalClientX:ra.originalClientX/na,originalClientY:ra.originalClientY/na}:ra}var ClientStore=function(){function ea(na){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=na,this.prevClients=na,this.length=na.length}return ea.prototype.getAngle=function(na){return na===void 0&&(na=this.prevClients),getRotatiion(na)},ea.prototype.getRotation=function(na){return na===void 0&&(na=this.prevClients),getRotatiion(na)-getRotatiion(this.startClients)},ea.prototype.getPosition=function(na,ra){na===void 0&&(na=this.prevClients);var oa=getPosition$1(na||this.prevClients,this.prevClients,this.startClients),aa=oa.deltaX,sa=oa.deltaY;return this.movement+=Math.sqrt(aa*aa+sa*sa),this.prevClients=na,oa},ea.prototype.getPositions=function(na){na===void 0&&(na=this.prevClients);for(var ra=this.prevClients,oa=this.startClients,aa=Math.min(this.length,ra.length),sa=[],la=0;la<aa;++la)sa[la]=getPosition$1([na[la]],[ra[la]],[oa[la]]);return sa},ea.prototype.getMovement=function(na){var ra=this.movement;if(!na)return ra;var oa=getAverageClient(na,this.length),aa=getAverageClient(this.prevClients,this.length),sa=oa.clientX-aa.clientX,la=oa.clientY-aa.clientY;return Math.sqrt(sa*sa+la*la)+ra},ea.prototype.getDistance=function(na){return na===void 0&&(na=this.prevClients),getDist$1(na)},ea.prototype.getScale=function(na){return na===void 0&&(na=this.prevClients),getDist$1(na)/getDist$1(this.startClients)},ea.prototype.move=function(na,ra){this.startClients.forEach(function(oa){oa.clientX-=na,oa.clientY-=ra}),this.prevClients.forEach(function(oa){oa.clientX-=na,oa.clientY-=ra})},ea}(),INPUT_TAGNAMES=["textarea","input"],Gesto=function(ea){__extends$3(na,ea);function na(ra,oa){oa===void 0&&(oa={});var aa=ea.call(this)||this;aa.options={},aa.flag=!1,aa.pinchFlag=!1,aa.data={},aa.isDrag=!1,aa.isPinch=!1,aa.clientStores=[],aa.targets=[],aa.prevTime=0,aa.doubleFlag=!1,aa._useMouse=!1,aa._useTouch=!1,aa._useDrag=!1,aa._dragFlag=!1,aa._isTrusted=!1,aa._isMouseEvent=!1,aa._isSecondaryButton=!1,aa._preventMouseEvent=!1,aa._prevInputEvent=null,aa._isDragAPI=!1,aa._isIdle=!0,aa._preventMouseEventId=0,aa._window=window,aa.onDragStart=function(ga,fa){if(fa===void 0&&(fa=!0),!(!aa.flag&&ga.cancelable===!1)){var ma=ga.type.indexOf("drag")>=-1;if(!(aa.flag&&ma)){aa._isDragAPI=!0;var va=aa.options,xa=va.container,ya=va.pinchOutside,Aa=va.preventWheelClick,Ca=va.preventRightClick,Sa=va.preventDefault,wa=va.checkInput,ba=va.dragFocusedInput,Ea=va.preventClickEventOnDragStart,$a=va.preventClickEventOnDrag,Ma=va.preventClickEventByCondition,Ia=aa._useTouch,Oa=!aa.flag;if(aa._isSecondaryButton=ga.which===3||ga.button===2,Aa&&(ga.which===2||ga.button===1)||Ca&&(ga.which===3||ga.button===2))return aa.stop(),!1;if(Oa){var Da=aa._window.document.activeElement,Ta=ga.target;if(Ta){var _a=Ta.tagName.toLowerCase(),La=INPUT_TAGNAMES.indexOf(_a)>-1,Na=Ta.isContentEditable;if(La||Na){if(wa||!ba&&Da===Ta)return!1;if(Da&&(Da===Ta||Na&&Da.isContentEditable&&Da.contains(Ta)))if(ba)Ta.blur();else return!1}else if((Sa||ga.type==="touchstart")&&Da){var za=Da.tagName.toLowerCase();(Da.isContentEditable||INPUT_TAGNAMES.indexOf(za)>-1)&&Da.blur()}(Ea||$a||Ma)&&addEvent(aa._window,"click",aa._onClick,!0)}aa.clientStores=[new ClientStore(getEventClients(ga))],aa._isIdle=!1,aa.flag=!0,aa.isDrag=!1,aa._isTrusted=fa,aa._dragFlag=!0,aa._prevInputEvent=ga,aa.data={},aa.doubleFlag=now()-aa.prevTime<200,aa._isMouseEvent=isMouseEvent(ga),!aa._isMouseEvent&&aa._preventMouseEvent&&aa._allowMouseEvent();var Fa=aa._preventMouseEvent||aa.emit("dragStart",__assign$5(__assign$5({data:aa.data,datas:aa.data,inputEvent:ga,isMouseEvent:aa._isMouseEvent,isSecondaryButton:aa._isSecondaryButton,isTrusted:fa,isDouble:aa.doubleFlag},aa.getCurrentStore().getPosition()),{preventDefault:function(){ga.preventDefault()},preventDrag:function(){aa._dragFlag=!1}}));Fa===!1&&aa.stop(),aa._isMouseEvent&&aa.flag&&Sa&&ga.preventDefault()}if(!aa.flag)return!1;var Ha=0;if(Oa?(aa._attchDragEvent(),Ia&&ya&&(Ha=setTimeout(function(){addEvent(xa,"touchstart",aa.onDragStart,{passive:!1})}))):Ia&&ya&&removeEvent(xa,"touchstart",aa.onDragStart),aa.flag&&isMultiTouch(ga)){if(clearTimeout(Ha),Oa&&ga.touches.length!==ga.changedTouches.length)return;aa.pinchFlag||aa.onPinchStart(ga)}}}},aa.onDrag=function(ga,fa){if(aa.flag){var ma=aa.options.preventDefault;!aa._isMouseEvent&&ma&&ga.preventDefault(),aa._prevInputEvent=ga;var va=getEventClients(ga),xa=aa.moveClients(va,ga,!1);if(aa._dragFlag){if(aa.pinchFlag||xa.deltaX||xa.deltaY){var ya=aa._preventMouseEvent||aa.emit("drag",__assign$5(__assign$5({},xa),{isScroll:!!fa,inputEvent:ga}));if(ya===!1){aa.stop();return}}aa.pinchFlag&&aa.onPinch(ga,va)}aa.getCurrentStore().getPosition(va,!0)}},aa.onDragEnd=function(ga){if(aa.flag){var fa=aa.options,ma=fa.pinchOutside,va=fa.container,xa=fa.preventClickEventOnDrag,ya=fa.preventClickEventOnDragStart,Aa=fa.preventClickEventByCondition,Ca=aa.isDrag;(xa||ya||Aa)&&requestAnimationFrame(function(){aa._allowClickEvent()}),!Aa&&!ya&&xa&&!Ca&&aa._allowClickEvent(),aa._useTouch&&ma&&removeEvent(va,"touchstart",aa.onDragStart),aa.pinchFlag&&aa.onPinchEnd(ga);var Sa=ga?.touches?getEventClients(ga):[],wa=Sa.length;wa===0||!aa.options.keepDragging?aa.flag=!1:aa._addStore(new ClientStore(Sa));var ba=aa._getPosition(),Ea=now(),$a=!Ca&&aa.doubleFlag;aa._prevInputEvent=null,aa.prevTime=Ca||$a?0:Ea,aa.flag||(aa._dettachDragEvent(),aa._preventMouseEvent||aa.emit("dragEnd",__assign$5({data:aa.data,datas:aa.data,isDouble:$a,isDrag:Ca,isClick:!Ca,isMouseEvent:aa._isMouseEvent,isSecondaryButton:aa._isSecondaryButton,inputEvent:ga,isTrusted:aa._isTrusted},ba)),aa.clientStores=[],aa._isMouseEvent||(aa._preventMouseEvent=!0,clearTimeout(aa._preventMouseEventId),aa._preventMouseEventId=setTimeout(function(){aa._preventMouseEvent=!1},200)),aa._isIdle=!0)}},aa.onBlur=function(){aa.onDragEnd()},aa._allowClickEvent=function(){removeEvent(aa._window,"click",aa._onClick,!0)},aa._onClick=function(ga){aa._allowClickEvent(),aa._allowMouseEvent();var fa=aa.options.preventClickEventByCondition;fa?.(ga)||(ga.stopPropagation(),ga.preventDefault())},aa._onContextMenu=function(ga){var fa=aa.options;fa.preventRightClick?aa.onDragEnd(ga):ga.preventDefault()},aa._passCallback=function(){};var sa=[].concat(ra),la=sa[0];aa._window=isWindow$1(la)?la:getWindow$1(la),aa.options=__assign$5({checkInput:!1,container:la&&!("document"in la)?getWindow$1(la):la,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},oa);var ca=aa.options,ua=ca.container,da=ca.events,pa=ca.checkWindowBlur;if(aa._useDrag=da.indexOf("drag")>-1,aa._useTouch=da.indexOf("touch")>-1,aa._useMouse=da.indexOf("mouse")>-1,aa.targets=sa,aa._useDrag&&sa.forEach(function(ga){addEvent(ga,"dragstart",aa.onDragStart)}),aa._useMouse&&(sa.forEach(function(ga){addEvent(ga,"mousedown",aa.onDragStart),addEvent(ga,"mousemove",aa._passCallback)}),addEvent(ua,"contextmenu",aa._onContextMenu)),pa&&addEvent(getWindow$1(),"blur",aa.onBlur),aa._useTouch){var ha={passive:!1};sa.forEach(function(ga){addEvent(ga,"touchstart",aa.onDragStart,ha),addEvent(ga,"touchmove",aa._passCallback,ha)})}return aa}return na.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},na.prototype.getMovement=function(ra){return this.getCurrentStore().getMovement(ra)+this.clientStores.slice(1).reduce(function(oa,aa){return oa+aa.movement},0)},na.prototype.isDragging=function(){return this.isDrag},na.prototype.isIdle=function(){return this._isIdle},na.prototype.isFlag=function(){return this.flag},na.prototype.isPinchFlag=function(){return this.pinchFlag},na.prototype.isDoubleFlag=function(){return this.doubleFlag},na.prototype.isPinching=function(){return this.isPinch},na.prototype.scrollBy=function(ra,oa,aa,sa){sa===void 0&&(sa=!0),this.flag&&(this.clientStores[0].move(ra,oa),sa&&this.onDrag(aa,!0))},na.prototype.move=function(ra,oa){var aa=ra[0],sa=ra[1],la=this.getCurrentStore(),ca=la.prevClients;return this.moveClients(ca.map(function(ua){var da=ua.clientX,pa=ua.clientY;return{clientX:da+aa,clientY:pa+sa,originalClientX:da,originalClientY:pa}}),oa,!0)},na.prototype.triggerDragStart=function(ra){this.onDragStart(ra,!1)},na.prototype.setEventData=function(ra){var oa=this.data;for(var aa in ra)oa[aa]=ra[aa];return this},na.prototype.setEventDatas=function(ra){return this.setEventData(ra)},na.prototype.getCurrentEvent=function(ra){return ra===void 0&&(ra=this._prevInputEvent),__assign$5(__assign$5({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:ra})},na.prototype.getEventData=function(){return this.data},na.prototype.getEventDatas=function(){return this.data},na.prototype.unset=function(){var ra=this,oa=this.targets,aa=this.options.container;this.off(),removeEvent(this._window,"blur",this.onBlur),this._useDrag&&oa.forEach(function(sa){removeEvent(sa,"dragstart",ra.onDragStart)}),this._useMouse&&(oa.forEach(function(sa){removeEvent(sa,"mousedown",ra.onDragStart)}),removeEvent(aa,"contextmenu",this._onContextMenu)),this._useTouch&&(oa.forEach(function(sa){removeEvent(sa,"touchstart",ra.onDragStart)}),removeEvent(aa,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},na.prototype.onPinchStart=function(ra){var oa=this,aa=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>aa)){var sa=new ClientStore(getEventClients(ra));this.pinchFlag=!0,this._addStore(sa);var la=this.emit("pinchStart",__assign$5(__assign$5({data:this.data,datas:this.data,angle:sa.getAngle(),touches:this.getCurrentStore().getPositions()},sa.getPosition()),{inputEvent:ra,isTrusted:this._isTrusted,preventDefault:function(){ra.preventDefault()},preventDrag:function(){oa._dragFlag=!1}}));la===!1&&(this.pinchFlag=!1)}},na.prototype.onPinch=function(ra,oa){if(!(!this.flag||!this.pinchFlag||oa.length<2)){var aa=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",__assign$5(__assign$5({data:this.data,datas:this.data,movement:this.getMovement(oa),angle:aa.getAngle(oa),rotation:aa.getRotation(oa),touches:aa.getPositions(oa),scale:aa.getScale(oa),distance:aa.getDistance(oa)},aa.getPosition(oa)),{inputEvent:ra,isTrusted:this._isTrusted}))}},na.prototype.onPinchEnd=function(ra){if(this.pinchFlag){var oa=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var aa=this.getCurrentStore();this.emit("pinchEnd",__assign$5(__assign$5({data:this.data,datas:this.data,isPinch:oa,touches:aa.getPositions()},aa.getPosition()),{inputEvent:ra}))}},na.prototype.getCurrentStore=function(){return this.clientStores[0]},na.prototype.moveClients=function(ra,oa,aa){var sa=this._getPosition(ra,aa),la=this.isDrag;(sa.deltaX||sa.deltaY)&&(this.isDrag=!0);var ca=!1;return!la&&this.isDrag&&(ca=!0),__assign$5(__assign$5({data:this.data,datas:this.data},sa),{movement:this.getMovement(ra),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:oa,isTrusted:this._isTrusted,isFirstDrag:ca})},na.prototype._addStore=function(ra){this.clientStores.splice(0,0,ra)},na.prototype._getPosition=function(ra,oa){var aa=this.getCurrentStore(),sa=aa.getPosition(ra,oa),la=this.clientStores.slice(1).reduce(function(da,pa){var ha=pa.getPosition();return da.distX+=ha.distX,da.distY+=ha.distY,da},sa),ca=la.distX,ua=la.distY;return __assign$5(__assign$5({},sa),{distX:ca,distY:ua})},na.prototype._attchDragEvent=function(){var ra=this._window,oa=this.options.container,aa={passive:!1};this._isDragAPI&&(addEvent(oa,"dragover",this.onDrag,aa),addEvent(ra,"dragend",this.onDragEnd)),this._useMouse&&(addEvent(oa,"mousemove",this.onDrag),addEvent(ra,"mouseup",this.onDragEnd)),this._useTouch&&(addEvent(oa,"touchmove",this.onDrag,aa),addEvent(ra,"touchend",this.onDragEnd,aa),addEvent(ra,"touchcancel",this.onDragEnd,aa))},na.prototype._dettachDragEvent=function(){var ra=this._window,oa=this.options.container;this._isDragAPI&&(removeEvent(oa,"dragover",this.onDrag),removeEvent(ra,"dragend",this.onDragEnd)),this._useMouse&&(removeEvent(oa,"mousemove",this.onDrag),removeEvent(ra,"mouseup",this.onDragEnd)),this._useTouch&&(removeEvent(oa,"touchstart",this.onDragStart),removeEvent(oa,"touchmove",this.onDrag),removeEvent(ra,"touchend",this.onDragEnd),removeEvent(ra,"touchcancel",this.onDragEnd))},na.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},na}(EventEmitter);function hash(ea){for(var na=5381,ra=ea.length;ra;)na=na*33^ea.charCodeAt(--ra);return na>>>0}var stringHash=hash;function getHash(ea){return stringHash(ea).toString(36)}function getShadowRoot$1(ea){if(ea&&ea.getRootNode){var na=ea.getRootNode();if(na.nodeType===11)return na}}function replaceStyle(ea,na,ra){return ra.original?na:na.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(oa,aa){var sa=aa.trim();return(sa?splitComma(sa):[""]).map(function(la){var ca=la.trim();return ca.indexOf("@")===0?ca:ca.indexOf(":global")>-1?ca.replace(/\:global/g,""):ca.indexOf(":host")>-1?"".concat(ca.replace(/\:host/g,".".concat(ea))):ca?".".concat(ea," ").concat(ca):".".concat(ea)}).join(", ")+" {"})}function injectStyle(ea,na,ra,oa,aa){var sa=getDocument(oa),la=sa.createElement("style");return la.setAttribute("type","text/css"),la.setAttribute("data-styled-id",ea),la.setAttribute("data-styled-count","1"),ra.nonce&&la.setAttribute("nonce",ra.nonce),la.innerHTML=replaceStyle(ea,na,ra),(aa||sa.head||sa.body).appendChild(la),la}function styled$1(ea){var na="rCS"+getHash(ea);return{className:na,inject:function(ra,oa){oa===void 0&&(oa={});var aa=getShadowRoot$1(ra),sa=(aa||ra.ownerDocument||document).querySelector('style[data-styled-id="'.concat(na,'"]'));if(!sa)sa=injectStyle(na,ea,oa,ra,aa);else{var la=parseFloat(sa.getAttribute("data-styled-count"))||0;sa.setAttribute("data-styled-count","".concat(la+1))}return{destroy:function(){var ca,ua=parseFloat(sa.getAttribute("data-styled-count"))||0;ua<=1?(sa.remove?sa.remove():(ca=sa.parentNode)===null||ca===void 0||ca.removeChild(sa),sa=null):sa.setAttribute("data-styled-count","".concat(ua-1))}}}}}var __assign$4=function(){return __assign$4=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$4.apply(this,arguments)};function __rest$2(ea,na){var ra={};for(var oa in ea)Object.prototype.hasOwnProperty.call(ea,oa)&&na.indexOf(oa)<0&&(ra[oa]=ea[oa]);if(ea!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,oa=Object.getOwnPropertySymbols(ea);aa<oa.length;aa++)na.indexOf(oa[aa])<0&&Object.prototype.propertyIsEnumerable.call(ea,oa[aa])&&(ra[oa[aa]]=ea[oa[aa]]);return ra}function styled(ea,na){var ra=styled$1(na),oa=ra.className;return reactExports.forwardRef(function(aa,sa){var la=aa.className,ca=la===void 0?"":la;aa.cspNonce;var ua=__rest$2(aa,["className","cspNonce"]),da=reactExports.useRef();return reactExports.useImperativeHandle(sa,function(){return da.current},[]),reactExports.useEffect(function(){var pa=ra.inject(da.current,{nonce:aa.cspNonce});return function(){pa.destroy()}},[]),reactExports.createElement(ea,__assign$4({ref:da,"data-styled-id":oa,className:"".concat(ca," ").concat(oa)},ua))})}var extendStatics$2=function(ea,na){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)Object.prototype.hasOwnProperty.call(oa,aa)&&(ra[aa]=oa[aa])},extendStatics$2(ea,na)};function __extends$2(ea,na){if(typeof na!="function"&&na!==null)throw new TypeError("Class extends value "+String(na)+" is not a constructor or null");extendStatics$2(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var __assign$3=function(){return __assign$3=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$3.apply(this,arguments)};function __rest$1(ea,na){var ra={};for(var oa in ea)Object.prototype.hasOwnProperty.call(ea,oa)&&na.indexOf(oa)<0&&(ra[oa]=ea[oa]);if(ea!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,oa=Object.getOwnPropertySymbols(ea);aa<oa.length;aa++)na.indexOf(oa[aa])<0&&Object.prototype.propertyIsEnumerable.call(ea,oa[aa])&&(ra[oa[aa]]=ea[oa[aa]]);return ra}function __decorate(ea,na,ra,oa){var aa=arguments.length,sa=aa<3?na:oa,la;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")sa=Reflect.decorate(ea,na,ra,oa);else for(var ca=ea.length-1;ca>=0;ca--)(la=ea[ca])&&(sa=(aa<3?la(sa):aa>3?la(na,ra,sa):la(na,ra))||sa);return aa>3&&sa&&Object.defineProperty(na,ra,sa),sa}function __values(ea){var na=typeof Symbol=="function"&&Symbol.iterator,ra=na&&ea[na],oa=0;if(ra)return ra.call(ea);if(ea&&typeof ea.length=="number")return{next:function(){return ea&&oa>=ea.length&&(ea=void 0),{value:ea&&ea[oa++],done:!ea}}};throw new TypeError(na?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(ea,na){var ra=typeof Symbol=="function"&&ea[Symbol.iterator];if(!ra)return ea;var oa=ra.call(ea),aa,sa=[],la;try{for(;(na===void 0||na-- >0)&&!(aa=oa.next()).done;)sa.push(aa.value)}catch(ca){la={error:ca}}finally{try{aa&&!aa.done&&(ra=oa.return)&&ra.call(oa)}finally{if(la)throw la.error}}return sa}function __spreadArray$1(ea,na,ra){if(arguments.length===2)for(var oa=0,aa=na.length,sa;oa<aa;oa++)(sa||!(oa in na))&&(sa||(sa=Array.prototype.slice.call(na,0,oa)),sa[oa]=na[oa]);return ea.concat(sa||Array.prototype.slice.call(na))}function makeAble(ea,na){return __assign$3({events:[],props:[],name:ea},na)}var DIRECTIONS4=["n","w","s","e"],DIRECTIONS=["n","w","s","e","nw","ne","sw","se"];function getSVGCursor(ea,na){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*ea,'px" height="').concat(32*ea,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(na,'deg);transform-origin: 16px 16px"></path></svg>')}function getCursorCSS(ea){var na=getSVGCursor(1,ea),ra=Math.round(ea/45)*45%180,oa="ns-resize";return ra===135?oa="nwse-resize":ra===45?oa="nesw-resize":ra===90&&(oa="ew-resize"),"cursor:".concat(oa,";cursor: url('").concat(na,"') 16 16, ").concat(oa,";")}var agent=agent$1(),IS_WEBKIT=agent.browser.webkit,IS_WEBKIT605=IS_WEBKIT&&function(){var ea=typeof window>"u"?{userAgent:""}:window.navigator,na=/applewebkit\/([^\s]+)/g.exec(ea.userAgent.toLowerCase());return na?parseFloat(na[1])<605:!1}(),browserName=agent.browser.name,browserVersion=parseInt(agent.browser.version,10),IS_CHROME=browserName==="chrome",IS_CHROMIUM=agent.browser.chromium,chromiumVersion=parseInt(agent.browser.chromiumVersion,10)||0,IS_CHROMIUM109=IS_CHROME&&browserVersion>=109||IS_CHROMIUM&&chromiumVersion>=109,IS_FIREFOX=browserName==="firefox",IS_SAFARI_ABOVE15=parseInt(agent.browser.webkitVersion,10)>=612||browserVersion>=15,PREFIX="moveable-",directionCSS=DIRECTIONS.map(function(ea){var na="",ra="",oa="center",aa="center",sa="calc(var(--moveable-control-padding, 20) * -1px)";return ea.indexOf("n")>-1&&(na="top: ".concat(sa,";"),aa="bottom"),ea.indexOf("s")>-1&&(na="top: 0px;",aa="top"),ea.indexOf("w")>-1&&(ra="left: ".concat(sa,";"),oa="right"),ea.indexOf("e")>-1&&(ra="left: 0px;",oa="left"),'.around-control[data-direction*="'.concat(ea,`"] {
        `).concat(ra).concat(na,`
        transform-origin: `).concat(oa," ").concat(aa,`;
    }`)}).join(`
`),MOVEABLE_CSS=`
{
position: absolute;
width: 1px;
height: 1px;
left: 0;
top: 0;
z-index: 3000;
--moveable-color: #4af;
--zoom: 1;
--zoompx: 1px;
--moveable-line-padding: 0;
--moveable-control-padding: 0;
will-change: transform;
outline: 1px solid transparent;
}
.control-box {
z-index: 0;
}
.line, .control {
position: absolute;
left: 0;
top: 0;
will-change: transform;
}
.control {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid #fff;
box-sizing: border-box;
background: #4af;
background: var(--moveable-color);
margin-top: -7px;
margin-left: -7px;
border: 2px solid #fff;
z-index: 10;
}
.around-control {
position: absolute;
will-change: transform;
width: calc(var(--moveable-control-padding, 20) * 1px);
height: calc(var(--moveable-control-padding, 20) * 1px);
left: calc(var(--moveable-control-padding, 20) * -0.5px);
top: calc(var(--moveable-control-padding, 20) * -0.5px);
box-sizing: border-box;
background: transparent;
z-index: 8;
cursor: alias;
transform-origin: center center;
}
`.concat(directionCSS,`
.padding {
position: absolute;
top: 0px;
left: 0px;
width: 100px;
height: 100px;
transform-origin: 0 0;
}
.line {
width: 1px;
height: 1px;
background: #4af;
background: var(--moveable-color);
transform-origin: 0px 50%;
}
.line.edge {
z-index: 1;
background: transparent;
}
.line.dashed {
box-sizing: border-box;
background: transparent;
}
.line.dashed.horizontal {
border-top: 1px dashed #4af;
border-top-color: #4af;
border-top-color: var(--moveable-color);
}
.line.dashed.vertical {
border-left: 1px dashed #4af;
border-left-color: #4af;
border-left-color: var(--moveable-color);
}
.line.vertical {
transform: translateX(-50%);
}
.line.horizontal {
transform: translateY(-50%);
}
.line.vertical.bold {
width: 2px;
}
.line.horizontal.bold {
height: 2px;
}

.control.origin {
border-color: #f55;
background: #fff;
width: 12px;
height: 12px;
margin-top: -6px;
margin-left: -6px;
pointer-events: none;
}
`).concat([0,15,30,45,60,75,90,105,120,135,150,165].map(function(ea){return`
.direction[data-rotation="`.concat(ea,'"], :global .view-control-rotation').concat(ea,` {
`).concat(getCursorCSS(ea),`
}
`)}).join(`
`),`

.line.direction:before {
content: "";
position: absolute;
width: 100%;
height: calc(var(--moveable-line-padding, 0) * 1px);
bottom: 0;
left: 0;
}
.group {
z-index: -1;
}
.area {
position: absolute;
}
.area-pieces {
position: absolute;
top: 0;
left: 0;
display: none;
}
.area.avoid, .area.pass {
pointer-events: none;
}
.area.avoid+.area-pieces {
display: block;
}
.area-piece {
position: absolute;
}

`).concat(IS_WEBKIT605?`:global svg *:before {
content:"";
transform-origin: inherit;
}`:"",`
`),NEARBY_POS=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],FLOAT_POINT_NUM=1e-4,TINY_NUM=1e-7,MIN_SCALE=1e-9,MAX_NUM=Math.pow(10,10),MIN_NUM=-MAX_NUM,DIRECTION_REGION_TO_DIRECTION={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},DIRECTION_INDEXES={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},DIRECTION_ROTATIONS={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},MOVEABLE_METHODS=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function setCustomDrag(ea,na,ra,oa,aa,sa){var la,ca;sa===void 0&&(sa="draggable");var ua=(ca=(la=na.gestos[sa])===null||la===void 0?void 0:la.move(ra,ea.inputEvent))!==null&&ca!==void 0?ca:{},da=ua.originalDatas||ua.datas,pa=da[sa]||(da[sa]={});return __assign$3(__assign$3({},ua),{isPinch:!!oa,parentEvent:!0,datas:pa,originalDatas:ea.originalDatas})}var CustomGesto=function(){function ea(na){var ra;na===void 0&&(na="draggable"),this.ableName=na,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=(ra={},ra[na]={},ra)}return ea.prototype.dragStart=function(na,ra){this.isDrag=!1,this.isFlag=!1;var oa=ra.originalDatas;return this.datas=oa,oa[this.ableName]||(oa[this.ableName]={}),__assign$3(__assign$3({},this.move(na,ra.inputEvent)),{type:"dragstart"})},ea.prototype.drag=function(na,ra){return this.move([na[0]-this.prevX,na[1]-this.prevY],ra)},ea.prototype.move=function(na,ra){var oa,aa,sa=!1;if(!this.isFlag)this.prevX=na[0],this.prevY=na[1],this.startX=na[0],this.startY=na[1],oa=na[0],aa=na[1],this.isFlag=!0;else{var la=this.isDrag;oa=this.prevX+na[0],aa=this.prevY+na[1],(na[0]||na[1])&&(this.isDrag=!0),!la&&this.isDrag&&(sa=!0)}return this.prevX=oa,this.prevY=aa,{type:"drag",clientX:oa,clientY:aa,inputEvent:ra,isFirstDrag:sa,isDrag:this.isDrag,distX:oa-this.startX,distY:aa-this.startY,deltaX:na[0],deltaY:na[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},ea}();function calculateElementPosition(ea,na,ra,oa){var aa=ea.length===16,sa=aa?4:3,la=calculatePoses(ea,ra,oa,sa),ca=__read(la,4),ua=__read(ca[0],2),da=ua[0],pa=ua[1],ha=__read(ca[1],2),ga=ha[0],fa=ha[1],ma=__read(ca[2],2),va=ma[0],xa=ma[1],ya=__read(ca[3],2),Aa=ya[0],Ca=ya[1],Sa=__read(calculatePosition(ea,na,sa),2),wa=Sa[0],ba=Sa[1],Ea=Math.min(da,ga,va,Aa),$a=Math.min(pa,fa,xa,Ca),Ma=Math.max(da,ga,va,Aa),Ia=Math.max(pa,fa,xa,Ca);da=da-Ea||0,ga=ga-Ea||0,va=va-Ea||0,Aa=Aa-Ea||0,pa=pa-$a||0,fa=fa-$a||0,xa=xa-$a||0,Ca=Ca-$a||0,wa=wa-Ea||0,ba=ba-$a||0;var Oa=ea[0],Da=ea[sa+1],Ta=sign(Oa*Da);return{left:Ea,top:$a,right:Ma,bottom:Ia,origin:[wa,ba],pos1:[da,pa],pos2:[ga,fa],pos3:[va,xa],pos4:[Aa,Ca],direction:Ta}}function calculatePointerDist(ea,na){var ra=na.clientX,oa=na.clientY,aa=na.datas,sa=ea.state,la=sa.moveableClientRect,ca=sa.rootMatrix,ua=sa.is3d,da=sa.pos1,pa=la.left,ha=la.top,ga=ua?4:3,fa=__read(minus(calculateInversePosition(ca,[ra-pa,oa-ha],ga),da),2),ma=fa[0],va=fa[1],xa=__read(getDragDist({datas:aa,distX:ma,distY:va}),2),ya=xa[0],Aa=xa[1];return[ya,Aa]}function setDragStart(ea,na){var ra=na.datas,oa=ea.state,aa=oa.allMatrix,sa=oa.beforeMatrix,la=oa.is3d,ca=oa.left,ua=oa.top,da=oa.origin,pa=oa.offsetMatrix,ha=oa.targetMatrix,ga=oa.transformOrigin,fa=la?4:3;ra.is3d=la,ra.matrix=aa,ra.targetMatrix=ha,ra.beforeMatrix=sa,ra.offsetMatrix=pa,ra.transformOrigin=ga,ra.inverseMatrix=invert(aa,fa),ra.inverseBeforeMatrix=invert(sa,fa),ra.absoluteOrigin=convertPositionMatrix(plus([ca,ua],da),fa),ra.startDragBeforeDist=calculate(ra.inverseBeforeMatrix,ra.absoluteOrigin,fa),ra.startDragDist=calculate(ra.inverseMatrix,ra.absoluteOrigin,fa)}function getTransformDirection(ea){return calculateElementPosition(ea.datas.beforeTransform,[50,50],100,100).direction}function resolveTransformEvent(ea,na,ra){var oa=na.datas,aa=na.originalDatas.beforeRenderable,sa=oa.transformIndex,la=aa.nextTransforms,ca=la.length,ua=aa.nextTransformAppendedIndexes,da=-1;sa===-1?(ra==="translate"?da=0:ra==="rotate"&&(da=findIndex$1(la,function(fa){return fa.match(/scale\(/g)})),da===-1&&(da=la.length),oa.transformIndex=da):find$1(ua,function(fa){return fa.index===sa&&fa.functionName===ra})?da=sa:da=sa+ua.filter(function(fa){return fa.index<sa}).length;var pa=convertTransformInfo(la,ea.state,da),ha=pa.targetFunction,ga=ra==="rotate"?"rotateZ":ra;oa.beforeFunctionTexts=pa.beforeFunctionTexts,oa.afterFunctionTexts=pa.afterFunctionTexts,oa.beforeTransform=pa.beforeFunctionMatrix,oa.beforeTransform2=pa.beforeFunctionMatrix2,oa.targetTansform=pa.targetFunctionMatrix,oa.afterTransform=pa.afterFunctionMatrix,oa.afterTransform2=pa.afterFunctionMatrix2,oa.targetAllTransform=pa.allFunctionMatrix,ha.functionName===ga?(oa.afterFunctionTexts.splice(0,1),oa.isAppendTransform=!1):ca>da&&(oa.isAppendTransform=!0,aa.nextTransformAppendedIndexes=__spreadArray$1(__spreadArray$1([],__read(ua),!1),[{functionName:ra,index:da,isAppend:!0}],!1))}function convertTransformFormat(ea,na,ra){return"".concat(ea.beforeFunctionTexts.join(" ")," ").concat(ea.isAppendTransform?ra:na," ").concat(ea.afterFunctionTexts.join(" "))}function getTransformDist(ea){var na=ea.datas,ra=ea.distX,oa=ea.distY,aa=__read(getBeforeDragDist({datas:na,distX:ra,distY:oa}),2),sa=aa[0],la=aa[1],ca=getTransfromMatrix(na,fromTranslation([sa,la],4));return calculate(ca,convertPositionMatrix([0,0,0],4),4)}function getTransfromMatrix(ea,na,ra){var oa=ea.beforeTransform,aa=ea.afterTransform,sa=ea.beforeTransform2,la=ea.afterTransform2,ca=ea.targetAllTransform,ua=ra?multiply(ca,na,4):multiply(na,ca,4),da=multiply(invert(ra?sa:oa,4),ua,4),pa=multiply(da,invert(ra?la:aa,4),4);return pa}function getBeforeDragDist(ea){var na=ea.datas,ra=ea.distX,oa=ea.distY,aa=na.inverseBeforeMatrix,sa=na.is3d,la=na.startDragBeforeDist,ca=na.absoluteOrigin,ua=sa?4:3;return minus(calculate(aa,plus(ca,[ra,oa]),ua),la)}function getDragDist(ea,na){var ra=ea.datas,oa=ea.distX,aa=ea.distY,sa=ra.inverseBeforeMatrix,la=ra.inverseMatrix,ca=ra.is3d,ua=ra.startDragBeforeDist,da=ra.startDragDist,pa=ra.absoluteOrigin,ha=ca?4:3;return minus(calculate(na?sa:la,plus(pa,[oa,aa]),ha),na?ua:da)}function getInverseDragDist(ea,na){var ra=ea.datas,oa=ea.distX,aa=ea.distY;ra.beforeMatrix;var sa=ra.matrix,la=ra.is3d;ra.startDragBeforeDist;var ca=ra.startDragDist,ua=ra.absoluteOrigin,da=la?4:3;return minus(calculate(sa,plus(ca,[oa,aa]),da),ua)}function calculateTransformOrigin(ea,na,ra,oa,aa,sa){return oa===void 0&&(oa=na),aa===void 0&&(aa=ra),sa===void 0&&(sa=[0,0]),ea?ea.map(function(la,ca){var ua=splitUnit(la),da=ua.value,pa=ua.unit,ha=ca?aa:oa,ga=ca?ra:na;if(la==="%"||isNaN(da)){var fa=ha?sa[ca]/ha:0;return ga*fa}else if(pa!=="%")return da;return ga*da/100}):sa}function getPosIndexesByDirection(ea){var na=[];return ea[1]>=0&&(ea[0]>=0&&na.push(3),ea[0]<=0&&na.push(2)),ea[1]<=0&&(ea[0]>=0&&na.push(1),ea[0]<=0&&na.push(0)),na}function getPosesByDirection(ea,na){return getPosIndexesByDirection(na).map(function(ra){return ea[ra]})}function getPosBySingleDirection(ea,na){var ra=(na+1)/2;return[dot(ea[0][0],ea[1][0],ra,1-ra),dot(ea[0][1],ea[1][1],ra,1-ra)]}function getPosByDirection(ea,na){var ra=getPosBySingleDirection([ea[0],ea[1]],na[0]),oa=getPosBySingleDirection([ea[2],ea[3]],na[0]);return getPosBySingleDirection([ra,oa],na[1])}function getDist(ea,na,ra,oa,aa,sa){var la=calculatePoses(na,ra,oa,aa),ca=getPosByDirection(la,sa),ua=ea[0]-ca[0],da=ea[1]-ca[1];return[ua,da]}function getNextMatrix(ea,na,ra,oa){return multiply(ea,getAbsoluteMatrix(na,oa,ra),oa)}function getNextTransformMatrix(ea,na,ra,oa){var aa=ea.transformOrigin,sa=ea.offsetMatrix,la=ea.is3d,ca=la?4:3,ua;if(isString$1(ra)){var da=na.beforeTransform,pa=na.afterTransform;oa?ua=convertDimension(parseMat(ra),4,ca):ua=convertDimension(multiply(multiply(da,parseMat([ra]),4),pa,4),4,ca)}else ua=ra;return getNextMatrix(sa,ua,aa,ca)}function scaleMatrix(ea,na){var ra=ea.transformOrigin,oa=ea.offsetMatrix,aa=ea.is3d,sa=ea.targetMatrix,la=ea.targetAllTransform,ca=aa?4:3;return getNextMatrix(oa,multiply(la||sa,createScaleMatrix(na,ca),ca),ra,ca)}function fillTransformStartEvent(ea,na){var ra=getBeforeRenderableDatas(na);return{setTransform:function(oa,aa){aa===void 0&&(aa=-1),ra.startTransforms=isArray(oa)?oa:splitSpace(oa),setTransformIndex(ea,na,aa)},setTransformIndex:function(oa){setTransformIndex(ea,na,oa)}}}function setDefaultTransformIndex(ea,na,ra){var oa=getBeforeRenderableDatas(na),aa=oa.startTransforms;setTransformIndex(ea,na,findIndex$1(aa,function(sa){return sa.indexOf("".concat(ra,"("))===0}))}function setTransformIndex(ea,na,ra){var oa=getBeforeRenderableDatas(na),aa=na.datas;if(aa.transformIndex=ra,ra!==-1){var sa=oa.startTransforms[ra];if(sa){var la=ea.state,ca=parse$1([sa],{"x%":function(ua){return ua/100*la.offsetWidth},"y%":function(ua){return ua/100*la.offsetHeight}});aa.startValue=ca[0].functionValue}}}function fillOriginalTransform(ea,na){var ra=getBeforeRenderableDatas(ea);ra.nextTransforms=splitSpace(na)}function getBeforeRenderableDatas(ea){return ea.originalDatas.beforeRenderable}function getNextTransforms(ea){var na=ea.originalDatas.beforeRenderable;return na.nextTransforms}function getNextTransformText(ea){return(getNextTransforms(ea)||[]).join(" ")}function getNextStyle(ea){return getBeforeRenderableDatas(ea).nextStyle}function fillTransformEvent(ea,na,ra,oa,aa){fillOriginalTransform(aa,na);var sa=Draggable.drag(ea,setCustomDrag(aa,ea.state,ra,oa)),la=sa?sa.transform:na;return __assign$3(__assign$3({transform:na,drag:sa},fillCSSObject({transform:la},aa)),{afterTransform:la})}function getTranslateFixedPosition(ea,na,ra,oa,aa,sa){var la=getNextTransformMatrix(ea.state,aa,na,sa),ca=getDirectionOffset(ea,ra,oa,la);return ca}function getTranslateDist(ea,na,ra,oa,aa,sa,la){var ca=getTranslateFixedPosition(ea,na,ra,aa,sa,la),ua=ea.state,da=ua.left,pa=ua.top,ha=ea.props.groupable,ga=ha?da:0,fa=ha?pa:0,ma=minus(oa,ca);return minus(ma,[ga,fa])}function getScaleDist(ea,na,ra,oa,aa,sa,la){var ca=getTranslateDist(ea,na,ra,oa,aa,sa,la);return ca}function getDirectionByPos(ea,na,ra){return[na?-1+ea[0]/(na/2):0,ra?-1+ea[1]/(ra/2):0]}function getDirectionOffset(ea,na,ra,oa){oa===void 0&&(oa=ea.state.allMatrix);var aa=ea.state,sa=aa.width,la=aa.height,ca=aa.is3d,ua=ca?4:3,da=[sa/2*(1+na[0])+ra[0],la/2*(1+na[1])+ra[1]];return calculatePosition(oa,da,ua)}function getRotateDist(ea,na,ra){var oa=ra.fixedDirection,aa=ra.fixedPosition,sa=ra.fixedOffset;return getTranslateDist(ea,"rotate(".concat(na,"deg)"),oa,aa,sa,ra)}function getResizeDist(ea,na,ra,oa,aa,sa){var la=ea.props.groupable,ca=ea.state,ua=ca.transformOrigin,da=ca.offsetMatrix,pa=ca.is3d,ha=ca.width,ga=ca.height,fa=ca.left,ma=ca.top,va=sa.fixedDirection,xa=sa.nextTargetMatrix||ca.targetMatrix,ya=pa?4:3,Aa=calculateTransformOrigin(aa,na,ra,ha,ga,ua),Ca=la?fa:0,Sa=la?ma:0,wa=getNextMatrix(da,xa,Aa,ya),ba=getDist(oa,wa,na,ra,ya,va);return minus(ba,[Ca,Sa])}function getAbsolutePosition(ea,na){return getPosByDirection(getAbsolutePosesByState(ea.state),na)}function getGestoData(ea,na){var ra=ea.targetGesto,oa=ea.controlGesto,aa;return ra?.isFlag()&&(aa=ra.getEventData()[na]),!aa&&oa?.isFlag()&&(aa=oa.getEventData()[na]),aa||{}}function getShadowRoot(ea){if(ea&&ea.getRootNode){var na=ea.getRootNode();if(na.nodeType===11)return na}}function getIndividualTransforms(ea){var na=ea("scale"),ra=ea("rotate"),oa=ea("translate"),aa=[];return oa&&oa!=="0px"&&oa!=="none"&&aa.push("translate(".concat(oa.split(/\s+/).join(","),")")),ra&&ra!=="1"&&ra!=="none"&&aa.push("rotate(".concat(ra,")")),na&&na!=="1"&&na!=="none"&&aa.push("scale(".concat(na.split(/\s+/).join(","),")")),aa}function getMatrixStackInfo(ea,na,ra){for(var oa=ea,aa=[],sa=getDocumentElement(ea)||getDocumentBody(ea),la=!ra&&ea===na||ea===sa,ca=la,ua=!1,da=3,pa,ha,ga,fa=!1,ma=getOffsetInfo(na,na,!0).offsetParent,va=1;oa&&!ca;){ca=la;var xa=getCachedStyle(oa),ya=xa("position"),Aa=getElementTransform(oa),Ca=ya==="fixed",Sa=getIndividualTransforms(xa),wa=convertCSStoMatrix(getTransformMatrix(Aa)),ba=void 0,Ea=!1,$a=!1,Ma=0,Ia=0,Oa=0,Da=0,Ta={hasTransform:!1,fixedContainer:null};Ca&&(fa=!0,Ta=getPositionFixedInfo(oa),ma=Ta.fixedContainer);var _a=wa.length;!ua&&(_a===16||Sa.length)&&(ua=!0,da=4,convert3DMatrixes(aa),ga&&(ga=convertDimension(ga,3,4))),ua&&_a===9&&(wa=convertDimension(wa,3,4));var La=getOffsetPosInfo(oa,ea),Na=La.tagName,za=La.hasOffset,Fa=La.isSVG,Ha=La.origin,Va=La.targetOrigin,Ua=La.offset,Qa=__read(Ua,2),Wa=Qa[0],Za=Qa[1];Na==="svg"&&!ea.ownerSVGElement&&ga&&(aa.push({type:"target",target:oa,matrix:getSVGMatrix(oa,da)}),aa.push({type:"offset",target:oa,matrix:createIdentityMatrix(da)}));var Xa=parseFloat(xa("zoom"))||1;if(Ca)ba=Ta.fixedContainer,Ea=!0;else{var tl=getOffsetInfo(oa,na,!1,!0,xa),il=tl.offsetZoom;if(ba=tl.offsetParent,Ea=tl.isEnd,$a=tl.isStatic,va*=il,(tl.isCustomElement||il!==1)&&$a)Wa-=ba.offsetLeft,Za-=ba.offsetTop;else if(IS_FIREFOX||IS_CHROMIUM109){var Ja=tl.parentSlotElement;if(Ja){for(var nl=ba,Ya=0,rl=0;nl&&getShadowRoot(nl);)Ya+=nl.offsetLeft,rl+=nl.offsetTop,nl=nl.offsetParent;Wa-=Ya,Za-=rl}}}if(IS_WEBKIT&&!IS_SAFARI_ABOVE15&&za&&!Fa&&$a&&(ya==="relative"||ya==="static")&&(Wa-=ba.offsetLeft,Za-=ba.offsetTop,la=la||Ea),Ca)za&&Ta.hasTransform&&(Oa=ba.clientLeft,Da=ba.clientTop);else if(za&&ma!==ba&&(Ma=ba.clientLeft,Ia=ba.clientTop),za&&ba===sa){var sl=getBodyOffset(oa,!1);Wa+=sl[0],Za+=sl[1]}if(aa.push({type:"target",target:oa,matrix:getAbsoluteMatrix(wa,da,Ha)}),Sa.length&&(aa.push({type:"offset",target:oa,matrix:createIdentityMatrix(da)}),aa.push({type:"target",target:oa,matrix:getAbsoluteMatrix(parseMat(Sa),da,Ha)})),za){var dl=oa===ea,pl=dl?0:oa.scrollLeft,ml=dl?0:oa.scrollTop;aa.push({type:"offset",target:oa,matrix:createOriginMatrix([Wa-pl+Ma-Oa,Za-ml+Ia-Da],da)})}else aa.push({type:"offset",target:oa,origin:Ha});if(Xa!==1&&aa.push({type:"zoom",target:oa,matrix:getAbsoluteMatrix(createScaleMatrix([Xa,Xa],da),da,[0,0])}),ga||(ga=wa),pa||(pa=Ha),ha||(ha=Va),ca||Ca)break;oa=ba,la=Ea,(!ra||oa===sa)&&(ca=la)}return ga||(ga=createIdentityMatrix(da)),pa||(pa=[0,0]),ha||(ha=[0,0]),{zoom:va,offsetContainer:ma,matrixes:aa,targetMatrix:ga,transformOrigin:pa,targetOrigin:ha,is3d:ua,hasFixed:fa}}var cacheStyleMap=null,clientRectStyleMap=null,matrixContainerInfos=null;function setStoreCache(ea){ea?(window.Map&&(cacheStyleMap=new Map,clientRectStyleMap=new Map),matrixContainerInfos=[]):(cacheStyleMap=null,matrixContainerInfos=null,clientRectStyleMap=null)}function getCachedClientRect(ea){var na=clientRectStyleMap?.get(ea);if(na)return na;var ra=getClientRect$1(ea,!0);return clientRectStyleMap&&clientRectStyleMap.set(ea,ra),ra}function getCachedMatrixContainerInfo(ea,na){if(matrixContainerInfos){var ra=find$1(matrixContainerInfos,function(aa){return aa[0][0]==ea&&aa[0][1]==na});if(ra)return ra[1]}var oa=getMatrixStackInfo(ea,na,!0);return matrixContainerInfos&&matrixContainerInfos.push([[ea,na],oa]),oa}function getCachedStyle(ea){var na=cacheStyleMap?.get(ea);if(!na){var ra=getWindow$1(ea).getComputedStyle(ea);if(!cacheStyleMap)return function(sa){return ra[sa]};na={style:ra,cached:{}},cacheStyleMap.set(ea,na)}var oa=na.cached,aa=na.style;return function(sa){return sa in oa||(oa[sa]=aa[sa]),oa[sa]}}function fillChildEvents(ea,na,ra){var oa=ra.originalDatas;oa.groupable=oa.groupable||{};var aa=oa.groupable;aa.childDatas=aa.childDatas||[];var sa=aa.childDatas;return ea.moveables.map(function(la,ca){return sa[ca]=sa[ca]||{},sa[ca][na]=sa[ca][na]||{},__assign$3(__assign$3({},ra),{isRequestChild:!0,datas:sa[ca][na],originalDatas:sa[ca]})})}function triggerChildGesto(ea,na,ra,oa,aa,sa,la){var ca=!!ra.match(/Start$/g),ua=!!ra.match(/End$/g),da=aa.isPinch,pa=aa.datas,ha=fillChildEvents(ea,na.name,aa),ga=ea.moveables,fa=[],ma=ha.map(function(va,xa){var ya=ga[xa],Aa=ya.state,Ca=Aa.gestos,Sa=va;if(ca)Sa=new CustomGesto(la).dragStart(oa,va),fa.push(Sa);else{if(Ca[la]||(Ca[la]=pa.childGestos[xa]),!Ca[la])return;Sa=setCustomDrag(va,Aa,oa,da,sa,la),fa.push(Sa)}var wa=na[ra](ya,__assign$3(__assign$3({},Sa),{parentFlag:!0}));return ua&&(Ca[la]=null),wa});return ca&&(pa.childGestos=ga.map(function(va){return va.state.gestos[la]})),{eventParams:ma,childEvents:fa}}function triggerChildAbles(ea,na,ra,oa,aa,sa){aa===void 0&&(aa=function(pa,ha){return ha});var la=!!ra.match(/End$/g),ca=fillChildEvents(ea,na.name,oa),ua=ea.moveables,da=ca.map(function(pa,ha){var ga=ua[ha],fa=pa;fa=aa(ga,pa);var ma=na[ra](ga,__assign$3(__assign$3({},fa),{parentFlag:!0}));return la&&(ga.state.gestos={}),ma});return da}function startChildDist(ea,na,ra,oa){var aa=ra.fixedDirection,sa=ra.fixedPosition,la=oa.datas.startPositions||getAbsolutePosesByState(na.state),ca=getPosByDirection(la,aa),ua=__read(calculate(createRotateMatrix(-ea.rotation/180*Math.PI,3),[ca[0]-sa[0],ca[1]-sa[1],1],3),2),da=ua[0],pa=ua[1];return oa.datas.originalX=da,oa.datas.originalY=pa,oa}function renderDirectionControlsByInfos(ea,na,ra,oa){var aa=ea.getState(),sa=aa.renderPoses,la=aa.rotation,ca=aa.direction,ua=getProps(ea.props,na).zoom,da=absDegree(la/Math.PI*180),pa={},ha=ea.renderState;ha.renderDirectionMap||(ha.renderDirectionMap={});var ga=ha.renderDirectionMap;ra.forEach(function(ma){var va=ma.dir;pa[va]=!0});var fa=sign(ca);return ra.map(function(ma){var va=ma.data,xa=ma.classNames,ya=ma.dir,Aa=DIRECTION_INDEXES[ya];if(!Aa||!pa[ya])return null;ga[ya]=!0;var Ca=(throttle$1(da,15)+fa*DIRECTION_ROTATIONS[ya]+720)%180,Sa={};return getKeys(va).forEach(function(wa){Sa["data-".concat(wa)]=va[wa]}),oa.createElement("div",__assign$3({className:prefix.apply(void 0,__spreadArray$1(["control","direction",ya,na],__read(xa),!1)),"data-rotation":Ca,"data-direction":ya},Sa,{key:"direction-".concat(ya),style:getControlTransform.apply(void 0,__spreadArray$1([la,ua],__read(Aa.map(function(wa){return sa[wa]})),!1))}))})}function renderDirectionControls(ea,na,ra,oa){var aa=getProps(ea.props,ra),sa=aa.renderDirections,la=sa===void 0?na:sa,ca=aa.displayAroundControls;if(!la)return[];var ua=la===!0?DIRECTIONS:la;return __spreadArray$1(__spreadArray$1([],__read(ca?renderAroundControls(ea,oa,ra,ua):[]),!1),__read(renderDirectionControlsByInfos(ea,ra,ua.map(function(da){return{data:{},classNames:[],dir:da}}),oa)),!1)}function renderLine(ea,na,ra,oa,aa,sa){for(var la=[],ca=6;ca<arguments.length;ca++)la[ca-6]=arguments[ca];var ua=getRad$1(ra,oa),da=na?throttle$1(ua/Math.PI*180,15)%180:-1;return ea.createElement("div",{key:"line-".concat(sa),className:prefix.apply(void 0,__spreadArray$1(["line","direction",na?"edge":"",na],__read(la),!1)),"data-rotation":da,"data-line-key":sa,"data-direction":na,style:getLineStyle(ra,oa,aa,ua)})}function renderEdgeLines(ea,na,ra,oa,aa){var sa=ra===!0?DIRECTIONS4:ra;return sa.map(function(la,ca){var ua=__read(DIRECTION_INDEXES[la],2),da=ua[0],pa=ua[1];if(pa!=null)return renderLine(ea,la,oa[da],oa[pa],aa,"".concat(na,"Edge").concat(ca),na)}).filter(Boolean)}function getRenderDirections(ea){return function(na,ra){var oa=getProps(na.props,ea).edge;return oa&&(oa===!0||oa.length)?__spreadArray$1(__spreadArray$1([],__read(renderEdgeLines(ra,ea,oa,na.getState().renderPoses,na.props.zoom)),!1),__read(renderDiagonalDirections(na,ea,ra)),!1):renderAllDirections(na,ea,ra)}}function renderAllDirections(ea,na,ra){return renderDirectionControls(ea,DIRECTIONS,na,ra)}function renderDiagonalDirections(ea,na,ra){return renderDirectionControls(ea,["nw","ne","sw","se"],na,ra)}function renderAroundControls(ea,na,ra,oa){var aa=ea.renderState;aa.renderDirectionMap||(aa.renderDirectionMap={});var sa=ea.getState(),la=sa.renderPoses,ca=sa.rotation,ua=sa.direction,da=aa.renderDirectionMap,pa=ea.props.zoom,ha=sign(ua),ga=ca/Math.PI*180;return(oa||getKeys(da)).map(function(fa){var ma=DIRECTION_INDEXES[fa];if(!ma)return null;var va=(throttle$1(ga,15)+ha*DIRECTION_ROTATIONS[fa]+720)%180,xa=["around-control"];return ra&&xa.push("direction",ra),na.createElement("div",{className:prefix.apply(void 0,__spreadArray$1([],__read(xa),!1)),"data-rotation":va,"data-direction":fa,key:"direction-around-".concat(fa),style:getControlTransform.apply(void 0,__spreadArray$1([ca,pa],__read(ma.map(function(ya){return la[ya]})),!1))})})}function checkBoundPoses(ea,na,ra){var oa=ea||{},aa=oa.position,sa=aa===void 0?"client":aa,la=oa.left,ca=la===void 0?-1/0:la,ua=oa.top,da=ua===void 0?-1/0:ua,pa=oa.right,ha=pa===void 0?1/0:pa,ga=oa.bottom,fa=ga===void 0?1/0:ga,ma={position:sa,left:ca,top:da,right:ha,bottom:fa};return{vertical:checkBounds(ma,na,!0),horizontal:checkBounds(ma,ra,!1)}}function getBounds(ea,na){var ra=ea.state,oa=ra.containerClientRect,aa=oa.clientHeight,sa=oa.clientWidth,la=oa.clientLeft,ca=oa.clientTop,ua=ra.snapOffset,da=ua.left,pa=ua.top,ha=ua.right,ga=ua.bottom,fa=na||ea.props.bounds||{},ma=fa.position||"client",va=ma==="css",xa=fa.left,ya=xa===void 0?-1/0:xa,Aa=fa.top,Ca=Aa===void 0?-1/0:Aa,Sa=fa.right,wa=Sa===void 0?va?-1/0:1/0:Sa,ba=fa.bottom,Ea=ba===void 0?va?-1/0:1/0:ba;return va&&(wa=sa+ha-da-wa,Ea=aa+ga-pa-Ea),{left:ya+da-la,right:wa+da-la,top:Ca+pa-ca,bottom:Ea+pa-ca}}function checkBoundKeepRatio(ea,na,ra){var oa=getBounds(ea),aa=oa.left,sa=oa.top,la=oa.right,ca=oa.bottom,ua=__read(ra,2),da=ua[0],pa=ua[1],ha=__read(minus(ra,na),2),ga=ha[0],fa=ha[1];abs(ga)<TINY_NUM&&(ga=0),abs(fa)<TINY_NUM&&(fa=0);var ma=fa>0,va=ga>0,xa={isBound:!1,offset:0,pos:0},ya={isBound:!1,offset:0,pos:0};if(ga===0&&fa===0)return{vertical:xa,horizontal:ya};if(ga===0)ma?ca<pa&&(ya.pos=ca,ya.offset=pa-ca):sa>pa&&(ya.pos=sa,ya.offset=pa-sa);else if(fa===0)va?la<da&&(xa.pos=la,xa.offset=da-la):aa>da&&(xa.pos=aa,xa.offset=da-aa);else{var Aa=fa/ga,Ca=ra[1]-Aa*da,Sa=0,wa=0,ba=!1;va&&la<=da?(Sa=Aa*la+Ca,wa=la,ba=!0):!va&&da<=aa&&(Sa=Aa*aa+Ca,wa=aa,ba=!0),ba&&(Sa<sa||Sa>ca)&&(ba=!1),ba||(ma&&ca<=pa?(Sa=ca,wa=(Sa-Ca)/Aa,ba=!0):!ma&&pa<=sa&&(Sa=sa,wa=(Sa-Ca)/Aa,ba=!0)),ba&&(xa.isBound=!0,xa.pos=wa,xa.offset=da-wa,ya.isBound=!0,ya.pos=Sa,ya.offset=pa-Sa)}return{vertical:xa,horizontal:ya}}function checkBounds(ea,na,ra){var oa=ea[ra?"left":"top"],aa=ea[ra?"right":"bottom"],sa=Math.min.apply(Math,__spreadArray$1([],__read(na),!1)),la=Math.max.apply(Math,__spreadArray$1([],__read(na),!1)),ca=[];return oa+1>sa&&ca.push({direction:"start",isBound:!0,offset:sa-oa,pos:oa}),aa-1<la&&ca.push({direction:"end",isBound:!0,offset:la-aa,pos:aa}),ca.length||ca.push({isBound:!1,offset:0,pos:0}),ca.sort(function(ua,da){return abs(da.offset)-abs(ua.offset)})}function isBoundRotate$1(ea,na,ra){var oa=ra?ea.map(function(aa){return rotate(aa,ra)}):ea;return oa.some(function(aa){return aa[0]<na.left&&abs(aa[0]-na.left)>.1||aa[0]>na.right&&abs(aa[0]-na.right)>.1||aa[1]<na.top&&abs(aa[1]-na.top)>.1||aa[1]>na.bottom&&abs(aa[1]-na.bottom)>.1})}function boundRotate(ea,na,ra){var oa=getDistSize(ea),aa=Math.sqrt(oa*oa-na*na)||0;return[aa,-aa].sort(function(sa,la){return abs(sa-ea[ra?0:1])-abs(la-ea[ra?0:1])}).map(function(sa){return getRad$1([0,0],ra?[sa,na]:[na,sa])})}function checkRotateBounds(ea,na,ra,oa,aa){if(!ea.props.bounds)return[];var sa=aa*Math.PI/180,la=getBounds(ea),ca=la.left,ua=la.top,da=la.right,pa=la.bottom,ha=ca-oa[0],ga=da-oa[0],fa=ua-oa[1],ma=pa-oa[1],va={left:ha,top:fa,right:ga,bottom:ma};if(!isBoundRotate$1(ra,va,0))return[];var xa=[];return[[ha,0],[ga,0],[fa,1],[ma,1]].forEach(function(ya){var Aa=__read(ya,2),Ca=Aa[0],Sa=Aa[1];ra.forEach(function(wa){var ba=getRad$1([0,0],wa);xa.push.apply(xa,__spreadArray$1([],__read(boundRotate(wa,Ca,Sa).map(function(Ea){return sa+Ea-ba}).filter(function(Ea){return!isBoundRotate$1(na,va,Ea)}).map(function(Ea){return throttle$1(Ea*180/Math.PI,TINY_NUM)})),!1))})}),xa}var VERTICAL_NAMES=["left","right","center"],HORIZONTAL_NAMES=["top","bottom","middle"],SNAP_SKIP_NAMES_MAP={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},VERTICAL_NAMES_MAP={start:"left",end:"right",center:"center"},HORIZONTAL_NAMES_MAP={start:"top",end:"bottom",center:"middle"};function getInitialBounds(){return{left:!1,top:!1,right:!1,bottom:!1}}function hasGuidelines(ea,na){var ra=ea.props,oa=ra.snappable,aa=ra.bounds,sa=ra.innerBounds,la=ra.verticalGuidelines,ca=ra.horizontalGuidelines,ua=ra.snapGridWidth,da=ra.snapGridHeight,pa=ea.state,ha=pa.guidelines,ga=pa.enableSnap;return!oa||!ga||na&&oa!==!0&&oa.indexOf(na)<0?!1:!!(ua||da||aa||sa||ha&&ha.length||la&&la.length||ca&&ca.length)}function getSnapDirections(ea){return ea===!1?{}:ea===!0||!ea?{left:!0,right:!0,top:!0,bottom:!0}:ea}function mapSnapDirectionPoses(ea,na){var ra=getSnapDirections(ea),oa={};for(var aa in ra)aa in na&&ra[aa]&&(oa[aa]=na[aa]);return oa}function splitSnapDirectionPoses(ea,na){var ra=mapSnapDirectionPoses(ea,na),oa=HORIZONTAL_NAMES.filter(function(sa){return sa in ra}),aa=VERTICAL_NAMES.filter(function(sa){return sa in ra});return{horizontalNames:oa,verticalNames:aa,horizontal:oa.map(function(sa){return ra[sa]}),vertical:aa.map(function(sa){return ra[sa]})}}function calculateContainerPos(ea,na,ra){var oa=calculatePosition(ea,[na.clientLeft,na.clientTop],ra);return[na.left+oa[0],na.top+oa[1]]}function solveLineConstants(ea){var na=__read(ea,2),ra=na[0],oa=na[1],aa=oa[0]-ra[0],sa=oa[1]-ra[1];Math.abs(aa)<TINY_NUM$1&&(aa=0),Math.abs(sa)<TINY_NUM$1&&(sa=0);var la=0,ca=0,ua=0;return aa?sa?(la=-sa/aa,ca=1,ua=la*ra[0]-ra[1]):(ca=1,ua=-ra[1]):(la=-1,ua=ra[0]),[la,ca,ua].map(function(da){return throttle$1(da,TINY_NUM$1)})}function checkMoveableSnapPoses(ea,na,ra,oa,aa,sa){var la;oa===void 0&&(oa=[]),aa===void 0&&(aa=[]);var ca=ea.props,ua=((la=ea.state.snapThresholdInfo)===null||la===void 0?void 0:la.multiples)||[1,1],da=selectValue(sa,ca.snapThreshold,5);return checkSnapPoses(ea.state.guidelines,na,ra,oa,aa,da,ua)}function checkSnapPoses(ea,na,ra,oa,aa,sa,la){return{vertical:checkSnap(ea,"vertical",na,sa*la[0],oa),horizontal:checkSnap(ea,"horizontal",ra,sa*la[1],aa)}}function checkSnapKeepRatio(ea,na,ra){var oa=__read(ra,2),aa=oa[0],sa=oa[1],la=__read(na,2),ca=la[0],ua=la[1],da=__read(minus(ra,na),2),pa=da[0],ha=da[1],ga=ha>0,fa=pa>0;pa=getTinyDist(pa),ha=getTinyDist(ha);var ma={isSnap:!1,offset:0,pos:0},va={isSnap:!1,offset:0,pos:0};if(pa===0&&ha===0)return{vertical:ma,horizontal:va};var xa=checkMoveableSnapPoses(ea,pa?[aa]:[],ha?[sa]:[]),ya=xa.vertical,Aa=xa.horizontal;ya.posInfos.filter(function(Na){var za=Na.pos;return fa?za>=ca:za<=ca}),Aa.posInfos.filter(function(Na){var za=Na.pos;return ga?za>=ua:za<=ua}),ya.isSnap=ya.posInfos.length>0,Aa.isSnap=Aa.posInfos.length>0;var Ca=getNearestSnapGuidelineInfo(ya),Sa=Ca.isSnap,wa=Ca.guideline,ba=getNearestSnapGuidelineInfo(Aa),Ea=ba.isSnap,$a=ba.guideline,Ma=Ea?$a.pos[1]:0,Ia=Sa?wa.pos[0]:0;if(pa===0)Ea&&(va.isSnap=!0,va.pos=$a.pos[1],va.offset=sa-va.pos);else if(ha===0)Sa&&(ma.isSnap=!0,ma.pos=Ia,ma.offset=aa-Ia);else{var Oa=ha/pa,Da=ra[1]-Oa*aa,Ta=0,_a=0,La=!1;Sa?(_a=Ia,Ta=Oa*_a+Da,La=!0):Ea&&(Ta=Ma,_a=(Ta-Da)/Oa,La=!0),La&&(ma.isSnap=!0,ma.pos=_a,ma.offset=aa-_a,va.isSnap=!0,va.pos=Ta,va.offset=sa-Ta)}return{vertical:ma,horizontal:va}}function getStringDirection(ea){var na="";return ea===-1||ea==="top"||ea==="left"?na="start":ea===0||ea==="center"||ea==="middle"?na="center":(ea===1||ea==="right"||ea==="bottom")&&(na="end"),na}function checkSnaps(ea,na,ra){var oa=splitSnapDirectionPoses(ea.props.snapDirections,na),aa=checkMoveableSnapPoses(ea,oa.vertical,oa.horizontal,oa.verticalNames.map(function(ca){return getStringDirection(ca)}),oa.horizontalNames.map(function(ca){return getStringDirection(ca)}),ra),sa=getStringDirection(oa.horizontalNames[aa.horizontal.index]),la=getStringDirection(oa.verticalNames[aa.vertical.index]);return{vertical:__assign$3(__assign$3({},aa.vertical),{direction:la}),horizontal:__assign$3(__assign$3({},aa.horizontal),{direction:sa})}}function getNearestSnapGuidelineInfo(ea){var na=ea.isSnap;if(!na)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var ra=ea.posInfos[0],oa=ra.guidelineInfos[0],aa=oa.offset,sa=oa.dist,la=oa.guideline;return{isSnap:na,offset:aa,dist:sa,pos:ra.pos,guideline:la}}function checkSnap(ea,na,ra,oa,aa){var sa,la;if(aa===void 0&&(aa=[]),!ea||!ea.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var ca=na==="vertical",ua=ca?0:1,da=ra.map(function(ha,ga){var fa=aa[ga]||"",ma=ea.map(function(va){var xa=va.pos,ya=ha-xa[ua];return{offset:ya,dist:abs(ya),guideline:va,direction:fa}}).filter(function(va){var xa=va.guideline,ya=va.dist,Aa=xa.type;return!(Aa!==na||ya>oa)}).sort(function(va,xa){return va.dist-xa.dist});return{pos:ha,index:ga,guidelineInfos:ma,direction:fa}}).filter(function(ha){return ha.guidelineInfos.length>0}).sort(function(ha,ga){return ha.guidelineInfos[0].dist-ga.guidelineInfos[0].dist}),pa=da.length>0;return{isSnap:pa,index:pa?da[0].index:-1,direction:(la=(sa=da[0])===null||sa===void 0?void 0:sa.direction)!==null&&la!==void 0?la:"",posInfos:da}}function getSnapInfosByDirection(ea,na,ra,oa){oa===void 0&&(oa=1);var aa=[];ra[0]&&ra[1]?aa=[ra,[-ra[0],ra[1]],[ra[0],-ra[1]]]:!ra[0]&&!ra[1]?[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(ha,ga,fa){var ma=fa[ga+1]||fa[0];aa.push(ha),aa.push([(ha[0]+ma[0])/2,(ha[1]+ma[1])/2])}):ea.props.keepRatio?aa.push([-1,-1],[-1,1],[1,-1],[1,1],ra):(aa.push.apply(aa,__spreadArray$1([],__read(getPosesByDirection([[-1,-1],[1,-1],[-1,-1],[1,1]],ra)),!1)),aa.length>1&&aa.push([(aa[0][0]+aa[1][0])/2,(aa[0][1]+aa[1][1])/2]));var sa=aa.map(function(ha){return getPosByDirection(na,ha)}),la=sa.map(function(ha){return ha[0]}),ca=sa.map(function(ha){return ha[1]}),ua=checkMoveableSnapPoses(ea,la,ca,aa.map(function(ha){return getStringDirection(ha[0])}),aa.map(function(ha){return getStringDirection(ha[1])}),oa),da=getStringDirection(aa.map(function(ha){return ha[0]})[ua.vertical.index]),pa=getStringDirection(aa.map(function(ha){return ha[1]})[ua.horizontal.index]);return{vertical:__assign$3(__assign$3({},ua.vertical),{direction:da}),horizontal:__assign$3(__assign$3({},ua.horizontal),{direction:pa})}}function checkSnapBoundPriority(ea,na){var ra=abs(ea.offset),oa=abs(na.offset);return ea.isBound&&na.isBound?oa-ra:ea.isBound?-1:na.isBound?1:ea.isSnap&&na.isSnap?oa-ra:ea.isSnap?-1:na.isSnap||ra<TINY_NUM?1:oa<TINY_NUM?-1:ra-oa}function getNearOffsetInfo(ea,na){return ea.slice().sort(function(ra,oa){var aa=ra.sign[na],sa=oa.sign[na],la=ra.offset[na],ca=oa.offset[na];if(aa){if(!sa)return-1}else return 1;return checkSnapBoundPriority({isBound:ra.isBound,isSnap:ra.isSnap,offset:la},{isBound:oa.isBound,isSnap:oa.isSnap,offset:ca})})[0]}function getCheckSnapDirections(ea,na,ra){var oa=[];if(ra)abs(na[0])!==1||abs(na[1])!==1?oa.push([na,[-1,-1]],[na,[-1,1]],[na,[1,-1]],[na,[1,1]]):oa.push([na,[ea[0],-ea[1]]],[na,[-ea[0],ea[1]]]),oa.push([na,ea]);else if(ea[0]&&ea[1]||!ea[0]&&!ea[1]){var aa=ea[0]?ea:[1,1];[1,-1].forEach(function(la){[1,-1].forEach(function(ca){var ua=[la*aa[0],ca*aa[1]];na[0]===ua[0]&&na[1]===ua[1]||oa.push([na,ua])})})}else if(ea[0]){var sa=abs(na[0])===1?[1]:[1,-1];sa.forEach(function(la){oa.push([[na[0],-1],[la*ea[0],-1]],[[na[0],0],[la*ea[0],0]],[[na[0],1],[la*ea[0],1]])})}else if(ea[1]){var sa=abs(na[1])===1?[1]:[1,-1];sa.forEach(function(ca){oa.push([[-1,na[1]],[-1,ca*ea[1]]],[[0,na[1]],[0,ca*ea[1]]],[[1,na[1]],[1,ca*ea[1]]])})}return oa}function isStartLine(ea,na){var ra=average([na[0][0],na[1][0]]),oa=average([na[0][1],na[1][1]]);return{vertical:ra<=ea[0],horizontal:oa<=ea[1]}}function hitTestLine(ea,na){var ra=__read(na,2),oa=ra[0],aa=ra[1],sa=aa[0]-oa[0],la=aa[1]-oa[1];abs(sa)<TINY_NUM&&(sa=0),abs(la)<TINY_NUM&&(la=0);var ca,ua;if(!sa)ca=oa[0],ua=ea[0];else if(!la)ca=oa[1],ua=ea[1];else{var da=la/sa;ca=da*(ea[0]-oa[0])+oa[1],ua=ea[1]}return ca-ua}function isSameStartLine(ea,na,ra,oa){return oa===void 0&&(oa=TINY_NUM),ea.every(function(aa){var sa=hitTestLine(aa,na),la=sa<=0;return la===ra||abs(sa)<=oa})}function checkInnerBoundDot(ea,na,ra,oa,aa){return aa===void 0&&(aa=0),oa&&na-aa<=ea||!oa&&ea<=ra+aa?{isBound:!0,offset:oa?na-ea:ra-ea}:{isBound:!1,offset:0}}function checkInnerBound(ea,na){var ra=na.line,oa=na.centerSign,aa=na.verticalSign,sa=na.horizontalSign,la=na.lineConstants,ca=ea.props.innerBounds;if(!ca)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var ua=ca.left,da=ca.top,pa=ca.width,ha=ca.height,ga=[[ua,da],[ua,da+ha]],fa=[[ua,da],[ua+pa,da]],ma=[[ua+pa,da],[ua+pa,da+ha]],va=[[ua,da+ha],[ua+pa,da+ha]];if(isSameStartLine([[ua,da],[ua+pa,da],[ua,da+ha],[ua+pa,da+ha]],ra,oa))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var xa=checkLineBoundCollision(ra,la,fa,aa),ya=checkLineBoundCollision(ra,la,va,aa),Aa=checkLineBoundCollision(ra,la,ga,sa),Ca=checkLineBoundCollision(ra,la,ma,sa),Sa=xa.isBound&&ya.isBound,wa=xa.isBound||ya.isBound,ba=Aa.isBound&&Ca.isBound,Ea=Aa.isBound||Ca.isBound,$a=maxOffset(xa.offset,ya.offset),Ma=maxOffset(Aa.offset,Ca.offset),Ia=[0,0],Oa=!1,Da=!1;return abs(Ma)<abs($a)?(Ia=[$a,0],Oa=wa,Da=Sa):(Ia=[0,Ma],Oa=Ea,Da=ba),{isAllBound:Da,isVerticalBound:wa,isHorizontalBound:Ea,isBound:Oa,offset:Ia}}function checkLineBoundCollision(ea,na,ra,oa,aa,sa){var la=__read(na,2),ca=la[0],ua=la[1],da=ea[0],pa=ra[0],ha=ra[1],ga=getTinyDist(ha[1]-pa[1]),fa=getTinyDist(ha[0]-pa[0]),ma=ua,va=ca,xa=-ca/ua;if(fa){if(!ga){if(sa&&!ma)return{isBound:!1,offset:0};if(va){var Sa=(pa[1]-da[1])/xa+da[0];return checkInnerBoundDot(Sa,pa[0],ha[0],oa,aa)}else{var Aa=pa[1]-da[1],Ca=abs(Aa)<=(aa||0);return{isBound:Ca,offset:Ca?Aa:0}}}}else{if(sa&&!va)return{isBound:!1,offset:0};if(ma){var ya=xa*(pa[0]-da[0])+da[1];return checkInnerBoundDot(ya,pa[1],ha[1],oa,aa)}else{var Aa=pa[0]-da[0],Ca=abs(Aa)<=(aa||0);return{isBound:Ca,offset:Ca?Aa:0}}}return{isBound:!1,offset:0}}function getInnerBoundInfo(ea,na,ra){return na.map(function(oa){var aa=checkInnerBound(ea,oa),sa=aa.isBound,la=aa.offset,ca=aa.isVerticalBound,ua=aa.isHorizontalBound,da=oa.multiple,pa=getDragDist({datas:ra,distX:la[0],distY:la[1]}).map(function(ha,ga){return ha*(da[ga]?2/da[ga]:0)});return{sign:da,isBound:sa,isVerticalBound:ca,isHorizontalBound:ua,isSnap:!1,offset:pa}})}function getInnerBoundDragInfo(ea,na,ra){var oa,aa=getCheckInnerBoundLineInfos(ea,na,[0,0],!1).map(function(ga){return __assign$3(__assign$3({},ga),{multiple:ga.multiple.map(function(fa){return abs(fa)*2})})}),sa=getInnerBoundInfo(ea,aa,ra),la=getNearOffsetInfo(sa,0),ca=getNearOffsetInfo(sa,1),ua=0,da=0,pa=la.isVerticalBound||ca.isVerticalBound,ha=la.isHorizontalBound||ca.isHorizontalBound;return(pa||ha)&&(oa=__read(getInverseDragDist({datas:ra,distX:-la.offset[0],distY:-ca.offset[1]}),2),ua=oa[0],da=oa[1]),{vertical:{isBound:pa,offset:ua},horizontal:{isBound:ha,offset:da}}}function getCheckSnapLineDirections(ea,na){var ra=[],oa=ea[0],aa=ea[1];return oa&&aa?ra.push([[0,aa*2],ea,[-oa,aa]],[[oa*2,0],ea,[oa,-aa]]):oa?(ra.push([[oa*2,0],[oa,1],[oa,-1]]),na&&ra.push([[0,-1],[oa,-1],[-oa,-1]],[[0,1],[oa,1],[-oa,1]])):aa?(ra.push([[0,aa*2],[1,aa],[-1,aa]]),na&&ra.push([[-1,0],[-1,aa],[-1,-aa]],[[1,0],[1,aa],[1,-aa]])):ra.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),ra}function getCheckInnerBoundLineInfos(ea,na,ra,oa){var aa=ea.state,sa=aa.allMatrix,la=aa.is3d,ca=calculatePoses(sa,100,100,la?4:3),ua=getPosByDirection(ca,[0,0]);return getCheckSnapLineDirections(ra,oa).map(function(da){var pa=__read(da,3),ha=pa[0],ga=pa[1],fa=pa[2],ma=[getPosByDirection(ca,ga),getPosByDirection(ca,fa)],va=solveLineConstants(ma),xa=isStartLine(ua,ma),ya=xa.vertical,Aa=xa.horizontal,Ca=hitTestLine(ua,ma)<=0;return{multiple:ha,centerSign:Ca,verticalSign:ya,horizontalSign:Aa,lineConstants:va,line:[getPosByDirection(na,ga),getPosByDirection(na,fa)]}})}function isBoundRotate(ea,na,ra,oa){var aa=oa?ea.map(function(sa){return rotate(sa,oa)}):ea;return[[aa[0],aa[1]],[aa[1],aa[3]],[aa[3],aa[2]],[aa[2],aa[0]]].some(function(sa){var la=hitTestLine(ra,sa)<=0;return!isSameStartLine(na,sa,la)})}function getDistPointLine(ea){var na=__read(ea,2),ra=na[0],oa=na[1],aa=oa[0]-ra[0],sa=oa[1]-ra[1];if(!aa)return abs(ra[0]);if(!sa)return abs(ra[1]);var la=sa/aa;return abs((-la*ra[0]+ra[1])/Math.sqrt(Math.pow(la,2)+1))}function solveReverseLine(ea){var na=__read(ea,2),ra=na[0],oa=na[1],aa=oa[0]-ra[0],sa=oa[1]-ra[1];if(!aa)return[ra[0],0];if(!sa)return[0,ra[1]];var la=sa/aa,ca=-la*ra[0]+ra[1];return[-ca/(la+1/la),ca/(la*la+1)]}function checkRotateInnerBounds(ea,na,ra,oa,aa){var sa=ea.props.innerBounds,la=aa*Math.PI/180;if(!sa)return[];var ca=sa.left,ua=sa.top,da=sa.width,pa=sa.height,ha=ca-oa[0],ga=ca+da-oa[0],fa=ua-oa[1],ma=ua+pa-oa[1],va=[[ha,fa],[ga,fa],[ha,ma],[ga,ma]],xa=getPosByDirection(ra,[0,0]);if(!isBoundRotate(ra,va,xa,0))return[];var ya=[],Aa=va.map(function(Ca){return[getDistSize(Ca),getRad$1([0,0],Ca)]});return[[ra[0],ra[1]],[ra[1],ra[3]],[ra[3],ra[2]],[ra[2],ra[0]]].forEach(function(Ca){var Sa=getRad$1([0,0],solveReverseLine(Ca)),wa=getDistPointLine(Ca);ya.push.apply(ya,__spreadArray$1([],__read(Aa.filter(function(ba){var Ea=__read(ba,1),$a=Ea[0];return $a&&wa<=$a}).map(function(ba){var Ea=__read(ba,2),$a=Ea[0],Ma=Ea[1],Ia=Math.acos($a?wa/$a:0),Oa=Ma+Ia,Da=Ma-Ia;return[la+Oa-Sa,la+Da-Sa]}).reduce(function(ba,Ea){return ba.push.apply(ba,__spreadArray$1([],__read(Ea),!1)),ba},[]).filter(function(ba){return!isBoundRotate(na,va,xa,ba)}).map(function(ba){return throttle$1(ba*180/Math.PI,TINY_NUM)})),!1))}),ya}function checkInnerBoundPoses(ea){var na=ea.props.innerBounds,ra=getInitialBounds();if(!na)return{boundMap:ra,vertical:[],horizontal:[]};var oa=ea.getRect(),aa=oa.pos1,sa=oa.pos2,la=oa.pos3,ca=oa.pos4,ua=[aa,sa,la,ca],da=getPosByDirection(ua,[0,0]),pa=na.left,ha=na.top,ga=na.width,fa=na.height,ma=[[pa,ha],[pa,ha+fa]],va=[[pa,ha],[pa+ga,ha]],xa=[[pa+ga,ha],[pa+ga,ha+fa]],ya=[[pa,ha+fa],[pa+ga,ha+fa]],Aa=getCheckInnerBoundLineInfos(ea,ua,[0,0],!1),Ca=[],Sa=[];return Aa.forEach(function(wa){var ba=wa.line,Ea=wa.lineConstants,$a=isStartLine(da,ba),Ma=$a.horizontal,Ia=$a.vertical,Oa=checkLineBoundCollision(ba,Ea,va,Ia,1,!0),Da=checkLineBoundCollision(ba,Ea,ya,Ia,1,!0),Ta=checkLineBoundCollision(ba,Ea,ma,Ma,1,!0),_a=checkLineBoundCollision(ba,Ea,xa,Ma,1,!0);Oa.isBound&&!ra.top&&(Ca.push(ha),ra.top=!0),Da.isBound&&!ra.bottom&&(Ca.push(ha+fa),ra.bottom=!0),Ta.isBound&&!ra.left&&(Sa.push(pa),ra.left=!0),_a.isBound&&!ra.right&&(Sa.push(pa+ga),ra.right=!0)}),{boundMap:ra,horizontal:Ca,vertical:Sa}}function solveEquation(ea,na,ra,oa){var aa=na[0]-ea[0],sa=na[1]-ea[1];if(abs(aa)<TINY_NUM$1&&(aa=0),abs(sa)<TINY_NUM$1&&(sa=0),!aa)return oa?[0,0]:[0,ra];if(!sa)return oa?[ra,0]:[0,0];var la=sa/aa,ca=ea[1]-la*ea[0];if(oa){var ua=la*(na[0]+ra)+ca;return[ra,ua-na[1]]}else{var da=(na[1]+ra-ca)/la;return[da-na[0],ra]}}function solveNextOffset(ea,na,ra,oa,aa){var sa=solveEquation(ea,na,ra,oa);if(!sa)return{isOutside:!1,offset:[0,0]};var la=getDist$2(ea,na),ca=getDist$2(sa,ea),ua=getDist$2(sa,na),da=ca>la||ua>la,pa=__read(getDragDist({datas:aa,distX:sa[0],distY:sa[1]}),2),ha=pa[0],ga=pa[1];return{offset:[ha,ga],isOutside:da}}function getSnapBound(ea,na){return ea.isBound?ea.offset:na.isSnap?getNearestSnapGuidelineInfo(na).offset:0}function checkThrottleDragRotate(ea,na,ra,oa,aa){var sa=__read(na,2),la=sa[0],ca=sa[1],ua=__read(ra,2),da=ua[0],pa=ua[1],ha=__read(oa,2),ga=ha[0],fa=ha[1],ma=__read(aa,2),va=ma[0],xa=ma[1],ya=-va,Aa=-xa;if(ea&&la&&ca){ya=0,Aa=0;var Ca=[];if(da&&pa?Ca.push([0,xa],[va,0]):da?Ca.push([va,0]):pa?Ca.push([0,xa]):ga&&fa?Ca.push([0,xa],[va,0]):ga?Ca.push([va,0]):fa&&Ca.push([0,xa]),Ca.length){Ca.sort(function(Ea,$a){return getDistSize(minus([la,ca],Ea))-getDistSize(minus([la,ca],$a))});var Sa=Ca[0];if(Sa[0]&&abs(la)>TINY_NUM$1)ya=-Sa[0],Aa=ca*abs(la+ya)/abs(la)-ca;else if(Sa[1]&&abs(ca)>TINY_NUM$1){var wa=ca;Aa=-Sa[1],ya=la*abs(ca+Aa)/abs(wa)-la}if(ea&&pa&&da)if(abs(ya)>TINY_NUM$1&&abs(ya)<abs(va)){var ba=abs(va)/abs(ya);ya*=ba,Aa*=ba}else if(abs(Aa)>TINY_NUM$1&&abs(Aa)<abs(xa)){var ba=abs(xa)/abs(Aa);ya*=ba,Aa*=ba}else ya=maxOffset(-va,ya),Aa=maxOffset(-xa,Aa)}}else ya=la||da?-va:0,Aa=ca||pa?-xa:0;return[ya,Aa]}function checkSnapBoundsDrag(ea,na,ra,oa,aa,sa){if(!hasGuidelines(ea,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var la=getAbsolutePoses(sa.absolutePoses,[na,ra]),ca=getRect(la),ua=ca.left,da=ca.right,pa=ca.top,ha=ca.bottom,ga={horizontal:la.map(function(_a){return _a[1]}),vertical:la.map(function(_a){return _a[0]})},fa=getSnapDirections(ea.props.snapDirections),ma=splitSnapDirectionPoses(fa,{left:ua,right:da,top:pa,bottom:ha,center:(ua+da)/2,middle:(pa+ha)/2}),va=checkMoveableSnapBounds(ea,aa,ma,ga),xa=va.vertical,ya=va.horizontal,Aa=getInnerBoundDragInfo(ea,la,sa),Ca=Aa.vertical,Sa=Aa.horizontal,wa=xa.isSnap,ba=ya.isSnap,Ea=xa.isBound||Ca.isBound,$a=ya.isBound||Sa.isBound,Ma=maxOffset(xa.offset,Ca.offset),Ia=maxOffset(ya.offset,Sa.offset),Oa=__read(checkThrottleDragRotate(oa,[na,ra],[Ea,$a],[wa,ba],[Ma,Ia]),2),Da=Oa[0],Ta=Oa[1];return[{isBound:Ea,isSnap:wa,offset:Da},{isBound:$a,isSnap:ba,offset:Ta}]}function checkMoveableSnapBounds(ea,na,ra,oa){oa===void 0&&(oa=ra);var aa=checkBoundPoses(getBounds(ea),oa.vertical,oa.horizontal),sa=aa.horizontal,la=aa.vertical,ca=na?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:checkMoveableSnapPoses(ea,ra.vertical,ra.horizontal),ua=ca.horizontal,da=ca.vertical,pa=getSnapBound(sa[0],ua),ha=getSnapBound(la[0],da),ga=abs(pa),fa=abs(ha);return{horizontal:{isBound:sa[0].isBound,isSnap:ua.isSnap,snapIndex:ua.index,offset:pa,dist:ga,bounds:sa,snap:ua},vertical:{isBound:la[0].isBound,isSnap:da.isSnap,snapIndex:da.index,offset:ha,dist:fa,bounds:la,snap:da}}}function checkSnapBounds(ea,na,ra,oa,aa,sa){sa===void 0&&(sa=[1,1]);var la=checkBoundPoses(na,ra,oa),ca=la.horizontal,ua=la.vertical,da=checkSnapPoses(ea,ra,oa,[],[],aa,sa),pa=da.horizontal,ha=da.vertical,ga=getSnapBound(ca[0],pa),fa=getSnapBound(ua[0],ha),ma=abs(ga),va=abs(fa);return{horizontal:{isBound:ca[0].isBound,isSnap:pa.isSnap,snapIndex:pa.index,offset:ga,dist:ma,bounds:ca,snap:pa},vertical:{isBound:ua[0].isBound,isSnap:ha.isSnap,snapIndex:ha.index,offset:fa,dist:va,bounds:ua,snap:ha}}}function checkSnapRightLine(ea,na,ra,oa){var aa=getRad$1(ea,na)/Math.PI*180,sa=ra.vertical,la=sa.isBound,ca=sa.isSnap,ua=sa.dist,da=ra.horizontal,pa=da.isBound,ha=da.isSnap,ga=da.dist,fa=aa%180,ma=fa<3||fa>177,va=fa>87&&fa<93;return ga<ua&&(la||ca&&!va&&(!oa||!ma))?"vertical":pa||ha&&!ma&&(!oa||!va)?"horizontal":""}function getSnapBoundInfo(ea,na,ra,oa,aa,sa){return ra.map(function(la){var ca=__read(la,2),ua=ca[0],da=ca[1],pa=getPosByDirection(na,ua),ha=getPosByDirection(na,da),ga=oa?checkSnapBoundsKeepRatio(ea,pa,ha,aa):checkMoveableSnapBounds(ea,aa,{vertical:[ha[0]],horizontal:[ha[1]]}),fa=ga.horizontal,ma=fa.offset,va=fa.isBound,xa=fa.isSnap,ya=ga.vertical,Aa=ya.offset,Ca=ya.isBound,Sa=ya.isSnap,wa=minus(da,ua);if(!Aa&&!ma)return{isBound:Ca||va,isSnap:Sa||xa,sign:wa,offset:[0,0]};var ba=checkSnapRightLine(pa,ha,ga,oa);if(!ba)return{sign:wa,isBound:!1,isSnap:!1,offset:[0,0]};var Ea=ba==="vertical",$a=[0,0];return!oa&&abs(da[0])===1&&abs(da[1])===1&&ua[0]!==da[0]&&ua[1]!==da[1]?$a=getDragDist({datas:sa,distX:-Aa,distY:-ma}):$a=solveNextOffset(pa,ha,-(Ea?Aa:ma),Ea,sa).offset,$a=$a.map(function(Ma,Ia){return Ma*(wa[Ia]?2/wa[Ia]:0)}),{sign:wa,isBound:Ea?Ca:va,isSnap:Ea?Sa:xa,offset:$a}})}function getSnapBoundOffset(ea,na){return ea.isBound?ea.offset:na.isSnap?na.offset:0}function checkSnapBoundsKeepRatio(ea,na,ra,oa){var aa=checkBoundKeepRatio(ea,na,ra),sa=aa.horizontal,la=aa.vertical,ca=oa?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:checkSnapKeepRatio(ea,na,ra),ua=ca.horizontal,da=ca.vertical,pa=getSnapBoundOffset(sa,ua),ha=getSnapBoundOffset(la,da),ga=abs(pa),fa=abs(ha);return{horizontal:{isBound:sa.isBound,isSnap:ua.isSnap,offset:pa,dist:ga},vertical:{isBound:la.isBound,isSnap:da.isSnap,offset:ha,dist:fa}}}function checkMaxBounds(ea,na,ra,oa,aa){var sa=[-ra[0],-ra[1]],la=ea.state,ca=la.width,ua=la.height,da=ea.props.bounds,pa=1/0,ha=1/0;if(da){var ga=[[ra[0],-ra[1]],[-ra[0],ra[1]]],fa=da.left,ma=fa===void 0?-1/0:fa,va=da.top,xa=va===void 0?-1/0:va,ya=da.right,Aa=ya===void 0?1/0:ya,Ca=da.bottom,Sa=Ca===void 0?1/0:Ca;ga.forEach(function(wa){var ba=wa[0]!==sa[0],Ea=wa[1]!==sa[1],$a=getPosByDirection(na,wa),Ma=getRad$1(oa,$a)*360/Math.PI;if(Ea){var Ia=$a.slice();(abs(Ma-360)<2||abs(Ma-180)<2)&&(Ia[1]=oa[1]);var Oa=solveNextOffset(oa,Ia,(oa[1]<$a[1]?Sa:xa)-$a[1],!1,aa),Da=__read(Oa.offset,2),Ta=Da[1],_a=Oa.isOutside;isNaN(Ta)||(ha=ua+(_a?1:-1)*abs(Ta))}if(ba){var Ia=$a.slice();(abs(Ma-90)<2||abs(Ma-270)<2)&&(Ia[0]=oa[0]);var La=solveNextOffset(oa,Ia,(oa[0]<$a[0]?Aa:ma)-$a[0],!0,aa),Na=__read(La.offset,1),za=Na[0],Fa=La.isOutside;isNaN(za)||(pa=ca+(Fa?1:-1)*abs(za))}})}return{maxWidth:pa,maxHeight:ha}}var Draggable={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(ea,na){var ra=ea.props,oa=ra.hideThrottleDragRotateLine,aa=ra.throttleDragRotate,sa=ra.zoom,la=ea.getState(),ca=la.dragInfo,ua=la.beforeOrigin;if(oa||!aa||!ca)return[];var da=ca.dist;if(!da[0]&&!da[1])return[];var pa=getDistSize(da),ha=getRad$1(da,[0,0]);return[na.createElement("div",{className:prefix("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(pa,"px"),transform:"translate(".concat(ua[0],"px, ").concat(ua[1],"px) rotate(").concat(ha,"rad) scaleY(").concat(sa,")")}})]},dragStart:function(ea,na){var ra=na.datas,oa=na.parentEvent,aa=na.parentGesto,sa=ea.state,la=sa.gestos,ca=sa.style;if(la.draggable)return!1;la.draggable=aa||ea.targetGesto,ra.datas={},ra.left=parseFloat(ca.left||"")||0,ra.top=parseFloat(ca.top||"")||0,ra.bottom=parseFloat(ca.bottom||"")||0,ra.right=parseFloat(ca.right||"")||0,ra.startValue=[0,0],setDragStart(ea,na),setDefaultTransformIndex(ea,na,"translate"),startCheckSnapDrag(ea,ra),ra.prevDist=[0,0],ra.prevBeforeDist=[0,0],ra.isDrag=!1,ra.deltaOffset=[0,0];var ua=fillParams(ea,na,__assign$3({set:function(pa){ra.startValue=pa}},fillTransformStartEvent(ea,na))),da=oa||triggerEvent(ea,"onDragStart",ua);return da!==!1?(ra.isDrag=!0,ea.state.dragInfo={startRect:ea.getRect(),dist:[0,0]}):(la.draggable=null,ra.isPinch=!1),ra.isDrag?ua:!1},drag:function(ea,na){if(na){resolveTransformEvent(ea,na,"translate");var ra=na.datas,oa=na.parentEvent,aa=na.parentFlag,sa=na.isPinch,la=na.deltaOffset,ca=na.useSnap,ua=na.isRequest,da=na.isGroup,pa=na.parentThrottleDrag,ha=na.distX,ga=na.distY,fa=ra.isDrag,ma=ra.prevDist,va=ra.prevBeforeDist,xa=ra.startValue;if(fa){la&&(ha+=la[0],ga+=la[1]);var ya=ea.props,Aa=ya.parentMoveable,Ca=da?0:ya.throttleDrag||pa||0,Sa=oa?0:ya.throttleDragRotate||0,wa=0,ba=!1,Ea=!1,$a=!1,Ma=!1;if(!oa&&Sa>0&&(ha||ga)){var Ia=ya.startDragRotate||0,Oa=throttle$1(Ia+getRad$1([0,0],[ha,ga])*180/Math.PI,Sa)-Ia,Da=ga*Math.abs(Math.cos((Oa-90)/180*Math.PI)),Ta=ha*Math.abs(Math.cos(Oa/180*Math.PI)),_a=getDistSize([Ta,Da]);wa=Oa*Math.PI/180,ha=_a*Math.cos(wa),ga=_a*Math.sin(wa)}if(!sa&&!oa&&!aa){var La=__read(checkSnapBoundsDrag(ea,ha,ga,Sa,!ca&&ua||la,ra),2),Na=La[0],za=La[1];ba=Na.isSnap,Ea=Na.isBound,$a=za.isSnap,Ma=za.isBound;var Fa=Na.offset,Ha=za.offset;ha+=Fa,ga+=Ha}var Va=plus(getBeforeDragDist({datas:ra,distX:ha,distY:ga}),xa),Ua=plus(getTransformDist({datas:ra,distX:ha,distY:ga}),xa);throttleArray(Ua,TINY_NUM),throttleArray(Va,TINY_NUM),Sa||(!ba&&!Ea&&(Ua[0]=throttle$1(Ua[0],Ca),Va[0]=throttle$1(Va[0],Ca)),!$a&&!Ma&&(Ua[1]=throttle$1(Ua[1],Ca),Va[1]=throttle$1(Va[1],Ca)));var Qa=minus(Va,xa),Wa=minus(Ua,xa),Za=minus(Wa,ma),Xa=minus(Qa,va);ra.prevDist=Wa,ra.prevBeforeDist=Qa,ra.passDelta=Za,ra.passDist=Wa;var tl=ra.left+Qa[0],il=ra.top+Qa[1],Ja=ra.right-Qa[0],nl=ra.bottom-Qa[1],Ya=convertTransformFormat(ra,"translate(".concat(Ua[0],"px, ").concat(Ua[1],"px)"),"translate(".concat(Wa[0],"px, ").concat(Wa[1],"px)"));if(fillOriginalTransform(na,Ya),ea.state.dragInfo.dist=oa?[0,0]:Wa,!(!oa&&!Aa&&Za.every(function(ml){return!ml})&&Xa.some(function(ml){return!ml}))){var rl=ea.state,sl=rl.width,dl=rl.height,pl=fillParams(ea,na,__assign$3({transform:Ya,dist:Wa,delta:Za,translate:Ua,beforeDist:Qa,beforeDelta:Xa,beforeTranslate:Va,left:tl,top:il,right:Ja,bottom:nl,width:sl,height:dl,isPinch:sa},fillCSSObject({transform:Ya},na)));return!oa&&triggerEvent(ea,"onDrag",pl),pl}}}},dragAfter:function(ea,na){var ra=na.datas,oa=ra.deltaOffset;return oa[0]||oa[1]?(ra.deltaOffset=[0,0],this.drag(ea,__assign$3(__assign$3({},na),{deltaOffset:oa}))):!1},dragEnd:function(ea,na){var ra=na.parentEvent,oa=na.datas;if(ea.state.dragInfo=null,!!oa.isDrag){oa.isDrag=!1;var aa=fillEndParams(ea,na,{});return!ra&&triggerEvent(ea,"onDragEnd",aa),aa}},dragGroupStart:function(ea,na){var ra,oa,aa=na.datas,sa=na.clientX,la=na.clientY,ca=this.dragStart(ea,na);if(!ca)return!1;var ua=triggerChildGesto(ea,this,"dragStart",[sa||0,la||0],na,!1,"draggable"),da=ua.childEvents,pa=ua.eventParams,ha=__assign$3(__assign$3({},ca),{targets:ea.props.targets,events:pa}),ga=triggerEvent(ea,"onDragGroupStart",ha);aa.isDrag=ga!==!1;var fa=(oa=(ra=da[0])===null||ra===void 0?void 0:ra.datas.startValue)!==null&&oa!==void 0?oa:[0,0];return aa.throttleOffset=[fa[0]%1,fa[1]%1],aa.isDrag?ca:!1},dragGroup:function(ea,na){var ra=na.datas;if(ra.isDrag){var oa=this.drag(ea,__assign$3(__assign$3({},na),{parentThrottleDrag:ea.props.throttleDrag})),aa=na.datas.passDelta,sa=triggerChildGesto(ea,this,"drag",aa,na,!1,"draggable").eventParams;if(oa){var la=__assign$3({targets:ea.props.targets,events:sa},oa);return triggerEvent(ea,"onDragGroup",la),la}}},dragGroupEnd:function(ea,na){var ra=na.isDrag,oa=na.datas;if(oa.isDrag){this.dragEnd(ea,na);var aa=triggerChildGesto(ea,this,"dragEnd",[0,0],na,!1,"draggable").eventParams;return triggerEvent(ea,"onDragGroupEnd",fillEndParams(ea,na,{targets:ea.props.targets,events:aa})),ra}},request:function(ea){var na={},ra=ea.getRect(),oa=0,aa=0,sa=!1;return{isControl:!1,requestStart:function(la){return sa=la.useSnap,{datas:na,useSnap:sa}},request:function(la){return"x"in la?oa=la.x-ra.left:"deltaX"in la&&(oa+=la.deltaX),"y"in la?aa=la.y-ra.top:"deltaY"in la&&(aa+=la.deltaY),{datas:na,distX:oa,distY:aa,useSnap:sa}},requestEnd:function(){return{datas:na,isDrag:!0,useSnap:sa}}}},unset:function(ea){ea.state.gestos.draggable=null,ea.state.dragInfo=null}};function getFixedDirectionInfo(ea,na){var ra=getPosByDirection(ea,na),oa=[0,0];return{fixedPosition:ra,fixedDirection:na,fixedOffset:oa}}function getOffsetFixedDirectionInfo(ea,na){var ra=ea.allMatrix,oa=ea.is3d,aa=ea.width,sa=ea.height,la=oa?4:3,ca=[aa/2*(1+na[0]),sa/2*(1+na[1])],ua=calculatePosition(ra,ca,la),da=[0,0];return{fixedPosition:ua,fixedDirection:na,fixedOffset:da}}function getOffsetFixedPositionInfo(ea,na){var ra=ea.allMatrix,oa=ea.is3d,aa=ea.width,sa=ea.height,la=oa?4:3,ca=getDirectionByPos(na,aa,sa),ua=calculatePosition(ra,na,la),da=[aa?0:na[0],sa?0:na[1]];return{fixedPosition:ua,fixedDirection:ca,fixedOffset:da}}var directionCondition$2=getDirectionCondition("resizable"),Resizable={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:getRenderDirections("resizable"),dragControlCondition:directionCondition$2,viewClassName:getDirectionViewClassName("resizable"),dragControlStart:function(ea,na){var ra,oa=na.inputEvent,aa=na.isPinch,sa=na.isGroup,la=na.parentDirection,ca=na.parentGesto,ua=na.datas,da=na.parentFixedDirection,pa=na.parentEvent,ha=getTotalDirection(la,aa,oa,ua),ga=ea.state,fa=ga.target,ma=ga.width,va=ga.height,xa=ga.gestos;if(!ha||!fa||xa.resizable)return!1;xa.resizable=ca||ea.controlGesto,!aa&&setDragStart(ea,na),ua.datas={},ua.direction=ha,ua.startOffsetWidth=ma,ua.startOffsetHeight=va,ua.prevWidth=0,ua.prevHeight=0,ua.minSize=[0,0],ua.startWidth=ga.inlineCSSWidth||ga.cssWidth,ua.startHeight=ga.inlineCSSHeight||ga.cssHeight,ua.maxSize=[1/0,1/0],sa||(ua.minSize=[ga.minOffsetWidth,ga.minOffsetHeight],ua.maxSize=[ga.maxOffsetWidth,ga.maxOffsetHeight]);var ya=ea.props.transformOrigin||"% %";ua.transformOrigin=isString$1(ya)?ya.split(" "):ya,ua.startOffsetMatrix=ga.offsetMatrix,ua.startTransformOrigin=ga.transformOrigin,ua.isWidth=(ra=na?.parentIsWidth)!==null&&ra!==void 0?ra:!ha[0]&&!ha[1]||ha[0]||!ha[1];function Aa(Ma){ua.ratio=Ma&&isFinite(Ma)?Ma:0}ua.startPositions=getAbsolutePosesByState(ea.state);function Ca(Ma){var Ia=getFixedDirectionInfo(ua.startPositions,Ma);ua.fixedDirection=Ia.fixedDirection,ua.fixedPosition=Ia.fixedPosition,ua.fixedOffset=Ia.fixedOffset}function Sa(Ma){var Ia=getOffsetFixedPositionInfo(ea.state,Ma);ua.fixedDirection=Ia.fixedDirection,ua.fixedPosition=Ia.fixedPosition,ua.fixedOffset=Ia.fixedOffset}function wa(Ma){ua.minSize=[convertUnitSize("".concat(Ma[0]),0)||0,convertUnitSize("".concat(Ma[1]),0)||0]}function ba(Ma){var Ia=[Ma[0]||1/0,Ma[1]||1/0];(!isNumber(Ia[0])||isFinite(Ia[0]))&&(Ia[0]=convertUnitSize("".concat(Ia[0]),0)||1/0),(!isNumber(Ia[1])||isFinite(Ia[1]))&&(Ia[1]=convertUnitSize("".concat(Ia[1]),0)||1/0),ua.maxSize=Ia}Aa(ma/va),Ca(da||[-ha[0],-ha[1]]),ua.setFixedDirection=Ca,ua.setFixedPosition=Sa,ua.setMin=wa,ua.setMax=ba;var Ea=fillParams(ea,na,{direction:ha,startRatio:ua.ratio,set:function(Ma){var Ia=__read(Ma,2),Oa=Ia[0],Da=Ia[1];ua.startWidth=Oa,ua.startHeight=Da},setMin:wa,setMax:ba,setRatio:Aa,setFixedDirection:Ca,setFixedPosition:Sa,setOrigin:function(Ma){ua.transformOrigin=Ma},dragStart:Draggable.dragStart(ea,new CustomGesto().dragStart([0,0],na))}),$a=pa||triggerEvent(ea,"onResizeStart",Ea);return ua.startFixedDirection=ua.fixedDirection,ua.startFixedPosition=ua.fixedPosition,$a!==!1&&(ua.isResize=!0,ea.state.snapRenderInfo={request:na.isRequest,direction:ha}),ua.isResize?Ea:!1},dragControl:function(ea,na){var ra,oa=na.datas,aa=na.parentFlag,sa=na.isPinch,la=na.parentKeepRatio,ca=na.dragClient,ua=na.parentDist,da=na.useSnap,pa=na.isRequest,ha=na.isGroup,ga=na.parentEvent,fa=na.resolveMatrix,ma=oa.isResize,va=oa.transformOrigin,xa=oa.startWidth,ya=oa.startHeight,Aa=oa.prevWidth,Ca=oa.prevHeight,Sa=oa.minSize,wa=oa.maxSize,ba=oa.ratio,Ea=oa.startOffsetWidth,$a=oa.startOffsetHeight,Ma=oa.isWidth;if(!ma)return;if(fa){var Ia=ea.state.is3d,Oa=oa.startOffsetMatrix,Da=oa.startTransformOrigin,Ta=Ia?4:3,_a=parseMat(getNextTransforms(na)),La=Math.sqrt(_a.length);Ta!==La&&(_a=convertDimension(_a,La,Ta));var Na=getNextMatrix(Oa,_a,Da,Ta),za=calculatePoses(Na,Ea,$a,Ta);oa.startPositions=za,oa.nextTargetMatrix=_a,oa.nextAllMatrix=Na}var Fa=getProps(ea.props,"resizable"),Ha=Fa.resizeFormat,Va=Fa.throttleResize,Ua=Va===void 0?aa?0:1:Va,Qa=Fa.parentMoveable,Wa=Fa.keepRatioFinally,Za=oa.direction,Xa=Za,tl=0,il=0;!Za[0]&&!Za[1]&&(Xa=[1,1]);var Ja=ba&&(la??Fa.keepRatio)||!1;function nl(){var kl=oa.fixedDirection,zl=getOffsetSizeDist(Xa,Ja,oa,na);tl=zl.distWidth,il=zl.distHeight;var Al=Xa[0]-kl[0]||Ja?Math.max(Ea+tl,TINY_NUM):Ea,gl=Xa[1]-kl[1]||Ja?Math.max($a+il,TINY_NUM):$a;return Ja&&Ea&&$a&&(Ma?gl=Al/ba:Al=gl*ba),[Al,gl]}var Ya=__read(nl(),2),rl=Ya[0],sl=Ya[1];ga||(oa.setFixedDirection(oa.fixedDirection),triggerEvent(ea,"onBeforeResize",fillParams(ea,na,{startFixedDirection:oa.startFixedDirection,startFixedPosition:oa.startFixedPosition,setFixedDirection:function(kl){var zl;return oa.setFixedDirection(kl),zl=__read(nl(),2),rl=zl[0],sl=zl[1],[rl,sl]},setFixedPosition:function(kl){var zl;return oa.setFixedPosition(kl),zl=__read(nl(),2),rl=zl[0],sl=zl[1],[rl,sl]},boundingWidth:rl,boundingHeight:sl,setSize:function(kl){var zl;zl=__read(kl,2),rl=zl[0],sl=zl[1]}},!0)));var dl=ca;ca||(!aa&&sa?dl=getAbsolutePosition(ea,[0,0]):dl=oa.fixedPosition);var pl=[0,0];sa||(pl=checkSnapResize(ea,rl,sl,Za,dl,!da&&pa,oa)),ua&&(!ua[0]&&(pl[0]=0),!ua[1]&&(pl[1]=0));function ml(){var kl;Ha&&(kl=__read(Ha([rl,sl]),2),rl=kl[0],sl=kl[1]),rl=throttle$1(rl,Ua),sl=throttle$1(sl,Ua)}if(Ja){Xa[0]&&Xa[1]&&pl[0]&&pl[1]&&(abs(pl[0])>abs(pl[1])?pl[1]=0:pl[0]=0);var Rl=!pl[0]&&!pl[1];Rl&&ml(),Xa[0]&&!Xa[1]||pl[0]&&!pl[1]||Rl&&Ma?(rl+=pl[0],sl=rl/ba):(!Xa[0]&&Xa[1]||!pl[0]&&pl[1]||Rl&&!Ma)&&(sl+=pl[1],rl=sl*ba)}else rl+=pl[0],sl+=pl[1],rl=Math.max(0,rl),sl=Math.max(0,sl);ra=__read(calculateBoundSize([rl,sl],Sa,wa,Ja?ba:!1),2),rl=ra[0],sl=ra[1],ml(),Ja&&(ha||Wa)&&(Ma?sl=rl/ba:rl=sl*ba),tl=rl-Ea,il=sl-$a;var Tl=[tl-Aa,il-Ca];oa.prevWidth=tl,oa.prevHeight=il;var Il=getResizeDist(ea,rl,sl,dl,va,oa);if(!(!Qa&&Tl.every(function(kl){return!kl})&&Il.every(function(kl){return!kl}))){var Ol=Draggable.drag(ea,setCustomDrag(na,ea.state,Il,!!sa,!1,"draggable")),Fl=Ol.transform,Vl=xa+tl,Wl=ya+il,vl=fillParams(ea,na,__assign$3({width:Vl,height:Wl,offsetWidth:Math.round(rl),offsetHeight:Math.round(sl),startRatio:ba,boundingWidth:rl,boundingHeight:sl,direction:Za,dist:[tl,il],delta:Tl,isPinch:!!sa,drag:Ol},fillAfterTransform({style:{width:"".concat(Vl,"px"),height:"".concat(Wl,"px")},transform:Fl},Ol,na)));return!ga&&triggerEvent(ea,"onResize",vl),vl}},dragControlAfter:function(ea,na){var ra=na.datas,oa=ra.isResize,aa=ra.startOffsetWidth,sa=ra.startOffsetHeight,la=ra.prevWidth,ca=ra.prevHeight;if(!(!oa||ea.props.checkResizableError===!1)){var ua=ea.state,da=ua.width,pa=ua.height,ha=da-(aa+la),ga=pa-(sa+ca),fa=abs(ha)>3,ma=abs(ga)>3;if(fa&&(ra.startWidth+=ha,ra.startOffsetWidth+=ha,ra.prevWidth+=ha),ma&&(ra.startHeight+=ga,ra.startOffsetHeight+=ga,ra.prevHeight+=ga),fa||ma)return this.dragControl(ea,na)}},dragControlEnd:function(ea,na){var ra=na.datas,oa=na.parentEvent;if(ra.isResize){ra.isResize=!1;var aa=fillEndParams(ea,na,{});return!oa&&triggerEvent(ea,"onResizeEnd",aa),aa}},dragGroupControlCondition:directionCondition$2,dragGroupControlStart:function(ea,na){var ra=na.datas,oa=this.dragControlStart(ea,__assign$3(__assign$3({},na),{isGroup:!0}));if(!oa)return!1;var aa=fillChildEvents(ea,"resizable",na),sa=ra.startOffsetWidth,la=ra.startOffsetHeight;function ca(){var fa=ra.minSize;aa.forEach(function(ma){var va=ma.datas,xa=va.minSize,ya=va.startOffsetWidth,Aa=va.startOffsetHeight,Ca=sa*(ya?xa[0]/ya:0),Sa=la*(Aa?xa[1]/Aa:0);fa[0]=Math.max(fa[0],Ca),fa[1]=Math.max(fa[1],Sa)})}function ua(){var fa=ra.maxSize;aa.forEach(function(ma){var va=ma.datas,xa=va.maxSize,ya=va.startOffsetWidth,Aa=va.startOffsetHeight,Ca=sa*(ya?xa[0]/ya:0),Sa=la*(Aa?xa[1]/Aa:0);fa[0]=Math.min(fa[0],Ca),fa[1]=Math.min(fa[1],Sa)})}var da=triggerChildAbles(ea,this,"dragControlStart",na,function(fa,ma){return startChildDist(ea,fa,ra,ma)});ca(),ua();var pa=function(fa){oa.setFixedDirection(fa),da.forEach(function(ma,va){ma.setFixedDirection(fa),startChildDist(ea,ma.moveable,ra,aa[va])})};ra.setFixedDirection=pa;var ha=__assign$3(__assign$3({},oa),{targets:ea.props.targets,events:da.map(function(fa){return __assign$3(__assign$3({},fa),{setMin:function(ma){fa.setMin(ma),ca()},setMax:function(ma){fa.setMax(ma),ua()}})}),setFixedDirection:pa,setMin:function(fa){oa.setMin(fa),ca()},setMax:function(fa){oa.setMax(fa),ua()}}),ga=triggerEvent(ea,"onResizeGroupStart",ha);return ra.isResize=ga!==!1,ra.isResize?oa:!1},dragGroupControl:function(ea,na){var ra=na.datas;if(ra.isResize){var oa=getProps(ea.props,"resizable");catchEvent(ea,"onBeforeResize",function(fa){triggerEvent(ea,"onBeforeResizeGroup",fillParams(ea,na,__assign$3(__assign$3({},fa),{targets:oa.targets}),!0))});var aa=this.dragControl(ea,__assign$3(__assign$3({},na),{isGroup:!0}));if(aa){var sa=aa.boundingWidth,la=aa.boundingHeight,ca=aa.dist,ua=oa.keepRatio,da=[sa/(sa-ca[0]),la/(la-ca[1])],pa=ra.fixedPosition,ha=triggerChildAbles(ea,this,"dragControl",na,function(fa,ma){var va=__read(calculate(createRotateMatrix(ea.rotation/180*Math.PI,3),[ma.datas.originalX*da[0],ma.datas.originalY*da[1],1],3),2),xa=va[0],ya=va[1];return __assign$3(__assign$3({},ma),{parentDist:null,parentScale:da,dragClient:plus(pa,[xa,ya]),parentKeepRatio:ua})}),ga=__assign$3({targets:oa.targets,events:ha},aa);return triggerEvent(ea,"onResizeGroup",ga),ga}}},dragGroupControlEnd:function(ea,na){var ra=na.isDrag,oa=na.datas;if(oa.isResize){this.dragControlEnd(ea,na);var aa=triggerChildAbles(ea,this,"dragControlEnd",na),sa=fillEndParams(ea,na,{targets:ea.props.targets,events:aa});return triggerEvent(ea,"onResizeGroupEnd",sa),ra}},request:function(ea){var na={},ra=0,oa=0,aa=!1,sa=ea.getRect();return{isControl:!0,requestStart:function(la){var ca;return aa=la.useSnap,{datas:na,parentDirection:la.direction||[1,1],parentIsWidth:(ca=la?.horizontal)!==null&&ca!==void 0?ca:!0,useSnap:aa}},request:function(la){return"offsetWidth"in la?ra=la.offsetWidth-sa.offsetWidth:"deltaWidth"in la&&(ra+=la.deltaWidth),"offsetHeight"in la?oa=la.offsetHeight-sa.offsetHeight:"deltaHeight"in la&&(oa+=la.deltaHeight),{datas:na,parentDist:[ra,oa],parentKeepRatio:la.keepRatio,useSnap:aa}},requestEnd:function(){return{datas:na,isDrag:!0,useSnap:aa}}}},unset:function(ea){ea.state.gestos.resizable=null}};function setRotateStartInfo(ea,na,ra,oa,aa){var sa=ea.props.groupable,la=ea.state,ca=la.is3d?4:3,ua=na.origin,da=calculatePosition(ea.state.rootMatrix,minus([ua[0],ua[1]],sa?[0,0]:[la.left,la.top]),ca),pa=plus([aa.left,aa.top],da);na.startAbsoluteOrigin=pa,na.prevDeg=getRad$1(pa,[ra,oa])/Math.PI*180,na.defaultDeg=na.prevDeg,na.prevSnapDeg=0,na.loop=0,na.startDist=getDist$2(pa,[ra,oa])}function getAbsoluteDist(ea,na,ra){var oa=ra.defaultDeg,aa=ra.prevDeg,sa=aa%360,la=Math.floor(aa/360);sa<0&&(sa+=360),sa>ea&&sa>270&&ea<90?++la:sa<ea&&sa<90&&ea>270&&--la;var ca=na*(la*360+ea-oa);return ra.prevDeg=oa+ca,ca}function getAbsoluteDistByClient(ea,na,ra,oa){return getAbsoluteDist(getRad$1(oa.startAbsoluteOrigin,[ea,na])/Math.PI*180,ra,oa)}function getRotateInfo(ea,na,ra,oa,aa,sa){var la=ea.props.throttleRotate,ca=la===void 0?0:la,ua=ra.prevSnapDeg,da=0,pa=!1;if(sa){var ha=checkSnapRotate(ea,na,oa,aa+oa);pa=ha.isSnap,da=aa+ha.dist}pa||(da=throttle$1(aa+oa,ca));var ga=da-aa;return ra.prevSnapDeg=ga,[ga-ua,ga,da]}function getRotationPositions(ea,na,ra){var oa=__read(na,4),aa=oa[0],sa=oa[1],la=oa[2],ca=oa[3];if(ea==="none")return[];if(isArray(ea))return ea.map(function(xa){return getRotationPositions(xa,[aa,sa,la,ca],ra)[0]});var ua=__read((ea||"top").split("-"),2),da=ua[0],pa=ua[1],ha=[aa,sa];da==="left"?ha=[la,aa]:da==="right"?ha=[sa,ca]:da==="bottom"&&(ha=[ca,la]);var ga=[(ha[0][0]+ha[1][0])/2,(ha[0][1]+ha[1][1])/2],fa=getRotationRad(ha,ra);if(pa){var ma=pa==="top"||pa==="left",va=da==="bottom"||da==="left";ga=ha[ma&&!va||!ma&&va?0:1]}return[[ga,fa]]}function dragControlCondition(ea,na){if(na.isRequest)return na.requestAble==="rotatable";var ra=na.inputEvent.target;if(hasClass(ra,prefix("rotation-control"))||ea.props.rotateAroundControls&&hasClass(ra,prefix("around-control"))||hasClass(ra,prefix("control"))&&hasClass(ra,prefix("rotatable")))return!0;var oa=ea.props.rotationTarget;return oa?getRefTargets(oa,!0).some(function(aa){return aa?ra===aa||ra.contains(aa):!1}):!1}var css=`.rotation {
position: absolute;
height: 40px;
width: 1px;
transform-origin: 50% 100%;
height: calc(40px * var(--zoom));
top: auto;
left: 0;
bottom: 100%;
will-change: transform;
}
.rotation .rotation-line {
display: block;
width: 100%;
height: 100%;
transform-origin: 50% 50%;
}
.rotation .rotation-control {
border-color: #4af;
border-color: var(--moveable-color);
background:#fff;
cursor: alias;
}
:global .view-rotation-dragging, .rotatable.direction.control {
cursor: alias;
}
.rotatable.direction.control.move {
cursor: move;
}
`,Rotatable={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[css],viewClassName:function(ea){return ea.isDragging("rotatable")?prefix("view-rotation-dragging"):""},render:function(ea,na){var ra=getProps(ea.props,"rotatable"),oa=ra.rotatable,aa=ra.rotationPosition,sa=ra.zoom,la=ra.renderDirections,ca=ra.rotateAroundControls,ua=ra.resolveAblesWithRotatable,da=ea.getState(),pa=da.renderPoses,ha=da.direction;if(!oa)return null;var ga=getRotationPositions(aa,pa,ha),fa=[];if(ga.forEach(function(ya,Aa){var Ca=__read(ya,2),Sa=Ca[0],wa=Ca[1];fa.push(na.createElement("div",{key:"rotation".concat(Aa),className:prefix("rotation"),style:{transform:"translate(-50%) translate(".concat(Sa[0],"px, ").concat(Sa[1],"px) rotate(").concat(wa,"rad)")}},na.createElement("div",{className:prefix("line rotation-line"),style:{transform:"scaleX(".concat(sa,")")}}),na.createElement("div",{className:prefix("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(sa,")")}})))}),la){var ma=getKeys(ua||{}),va={};ma.forEach(function(ya){ua[ya].forEach(function(Aa){va[Aa]=ya})});var xa=[];isArray(la)&&(xa=la.map(function(ya){var Aa=va[ya];return{data:Aa?{resolve:Aa}:{},classNames:Aa?["move"]:[],dir:ya}})),fa.push.apply(fa,__spreadArray$1([],__read(renderDirectionControlsByInfos(ea,"rotatable",xa,na)),!1))}return ca&&fa.push.apply(fa,__spreadArray$1([],__read(renderAroundControls(ea,na)),!1)),fa},dragControlCondition,dragControlStart:function(ea,na){var ra,oa,aa=na.datas,sa=na.clientX,la=na.clientY,ca=na.parentRotate,ua=na.parentFlag,da=na.isPinch,pa=na.isRequest,ha=ea.state,ga=ha.target,fa=ha.left,ma=ha.top,va=ha.direction,xa=ha.beforeDirection,ya=ha.targetTransform,Aa=ha.moveableClientRect,Ca=ha.offsetMatrix,Sa=ha.targetMatrix,wa=ha.allMatrix,ba=ha.width,Ea=ha.height;if(!pa&&!ga)return!1;var $a=ea.getRect();aa.rect=$a,aa.transform=ya,aa.left=fa,aa.top=ma;var Ma=function(Xa){var tl=getOffsetFixedPositionInfo(ea.state,Xa);aa.fixedDirection=tl.fixedDirection,aa.fixedOffset=tl.fixedOffset,aa.fixedPosition=tl.fixedPosition,Ua&&Ua.setFixedPosition(Xa)},Ia=function(Xa){var tl=getOffsetFixedDirectionInfo(ea.state,Xa);aa.fixedDirection=tl.fixedDirection,aa.fixedOffset=tl.fixedOffset,aa.fixedPosition=tl.fixedPosition,Ua&&Ua.setFixedDirection(Xa)},Oa=sa,Da=la;if(pa||da||ua){var Ta=ca||0;aa.beforeInfo={origin:$a.beforeOrigin,prevDeg:Ta,defaultDeg:Ta,prevSnapDeg:0,startDist:0},aa.afterInfo=__assign$3(__assign$3({},aa.beforeInfo),{origin:$a.origin}),aa.absoluteInfo=__assign$3(__assign$3({},aa.beforeInfo),{origin:$a.origin,startValue:Ta})}else{var _a=(oa=na.inputEvent)===null||oa===void 0?void 0:oa.target;if(_a){var La=_a.getAttribute("data-direction")||"",Na=DIRECTION_REGION_TO_DIRECTION[La];if(Na){aa.isControl=!0,aa.isAroundControl=hasClass(_a,prefix("around-control")),aa.controlDirection=Na;var za=_a.getAttribute("data-resolve");za&&(aa.resolveAble=za);var Fa=calculateMoveableClientPositions(ha.rootMatrix,ha.renderPoses,Aa);ra=__read(getPosByDirection(Fa,Na),2),Oa=ra[0],Da=ra[1]}}aa.beforeInfo={origin:$a.beforeOrigin},aa.afterInfo={origin:$a.origin},aa.absoluteInfo={origin:$a.origin,startValue:$a.rotation};var Ha=Ma;Ma=function(Xa){var tl=ha.is3d?4:3,il=__read(plus(getOrigin(Sa,tl),Xa),2),Ja=il[0],nl=il[1],Ya=calculate(Ca,convertPositionMatrix([Ja,nl],tl)),rl=calculate(wa,convertPositionMatrix([Xa[0],Xa[1]],tl));Ha(Xa);var sl=ha.posDelta;aa.beforeInfo.origin=minus(Ya,sl),aa.afterInfo.origin=minus(rl,sl),aa.absoluteInfo.origin=minus(rl,sl),setRotateStartInfo(ea,aa.beforeInfo,Oa,Da,Aa),setRotateStartInfo(ea,aa.afterInfo,Oa,Da,Aa),setRotateStartInfo(ea,aa.absoluteInfo,Oa,Da,Aa)},Ia=function(Xa){var tl=getPosByDirection([[0,0],[ba,0],[0,Ea],[ba,Ea]],Xa);Ma(tl)}}aa.startClientX=Oa,aa.startClientY=Da,aa.direction=va,aa.beforeDirection=xa,aa.startValue=0,aa.datas={},setDefaultTransformIndex(ea,na,"rotate");var Va=!1,Ua=!1;if(aa.isControl&&aa.resolveAble){var Qa=aa.resolveAble;Qa==="resizable"&&(Ua=Resizable.dragControlStart(ea,__assign$3(__assign$3({},new CustomGesto("resizable").dragStart([0,0],na)),{parentPosition:aa.controlPosition,parentFixedPosition:aa.fixedPosition})))}Ua||(Va=Draggable.dragStart(ea,new CustomGesto().dragStart([0,0],na))),Ma(getTotalOrigin(ea));var Wa=fillParams(ea,na,__assign$3(__assign$3({set:function(Xa){aa.startValue=Xa*Math.PI/180},setFixedDirection:Ia,setFixedPosition:Ma},fillTransformStartEvent(ea,na)),{dragStart:Va,resizeStart:Ua})),Za=triggerEvent(ea,"onRotateStart",Wa);return aa.isRotate=Za!==!1,ha.snapRenderInfo={request:na.isRequest},aa.isRotate?Wa:!1},dragControl:function(ea,na){var ra,oa,aa,sa=na.datas,la=na.clientDistX,ca=na.clientDistY,ua=na.parentRotate,da=na.parentFlag,pa=na.isPinch,ha=na.groupDelta,ga=na.resolveMatrix,fa=sa.beforeDirection,ma=sa.beforeInfo,va=sa.afterInfo,xa=sa.absoluteInfo,ya=sa.isRotate,Aa=sa.startValue,Ca=sa.rect,Sa=sa.startClientX,wa=sa.startClientY;if(ya){resolveTransformEvent(ea,na,"rotate");var ba=getTransformDirection(na),Ea=fa*ba,$a=ea.props.parentMoveable,Ma=0,Ia,Oa,Da=0,Ta,_a,La=0,Na,za,Fa=180/Math.PI*Aa,Ha=xa.startValue,Va=!1,Ua=Sa+la,Qa=wa+ca;if(!da&&"parentDist"in na){var Wa=na.parentDist;Ia=Wa,Ta=Wa,Na=Wa}else pa||da?(Ia=getAbsoluteDist(ua,fa,ma),Ta=getAbsoluteDist(ua,Ea,va),Na=getAbsoluteDist(ua,Ea,xa)):(Ia=getAbsoluteDistByClient(Ua,Qa,fa,ma),Ta=getAbsoluteDistByClient(Ua,Qa,Ea,va),Na=getAbsoluteDistByClient(Ua,Qa,Ea,xa),Va=!0);if(Oa=Fa+Ia,_a=Fa+Ta,za=Ha+Na,triggerEvent(ea,"onBeforeRotate",fillParams(ea,na,{beforeRotation:Oa,rotation:_a,absoluteRotation:za,setRotation:function(dl){Ta=dl-Fa,Ia=Ta,Na=Ta}},!0)),ra=__read(getRotateInfo(ea,Ca,ma,Ia,Fa,Va),3),Ma=ra[0],Ia=ra[1],Oa=ra[2],oa=__read(getRotateInfo(ea,Ca,va,Ta,Fa,Va),3),Da=oa[0],Ta=oa[1],_a=oa[2],aa=__read(getRotateInfo(ea,Ca,xa,Na,Ha,Va),3),La=aa[0],Na=aa[1],za=aa[2],!(!La&&!Da&&!Ma&&!$a&&!ga)){var Za=convertTransformFormat(sa,"rotate(".concat(_a,"deg)"),"rotate(".concat(Ta,"deg)"));ga&&(sa.fixedPosition=getTranslateFixedPosition(ea,sa.targetAllTransform,sa.fixedDirection,sa.fixedOffset,sa));var Xa=getRotateDist(ea,Ta,sa),tl=minus(plus(ha||[0,0],Xa),sa.prevInverseDist||[0,0]);sa.prevInverseDist=Xa,sa.requestValue=null;var il=fillTransformEvent(ea,Za,tl,pa,na),Ja=il,nl=getDist$2([Ua,Qa],xa.startAbsoluteOrigin)-xa.startDist,Ya=void 0;if(sa.resolveAble==="resizable"){var rl=Resizable.dragControl(ea,__assign$3(__assign$3({},setCustomDrag(na,ea.state,[na.deltaX,na.deltaY],!!pa,!1,"resizable")),{resolveMatrix:!0,parentDistance:nl}));rl&&(Ya=rl,Ja=fillAfterTransform(Ja,rl,na))}var sl=fillParams(ea,na,__assign$3(__assign$3({delta:Da,dist:Ta,rotate:_a,rotation:_a,beforeDist:Ia,beforeDelta:Ma,beforeRotate:Oa,beforeRotation:Oa,absoluteDist:Na,absoluteDelta:La,absoluteRotate:za,absoluteRotation:za,isPinch:!!pa,resize:Ya},il),Ja));return triggerEvent(ea,"onRotate",sl),sl}}},dragControlEnd:function(ea,na){var ra=na.datas;if(ra.isRotate){ra.isRotate=!1;var oa=fillEndParams(ea,na,{});return triggerEvent(ea,"onRotateEnd",oa),oa}},dragGroupControlCondition:dragControlCondition,dragGroupControlStart:function(ea,na){var ra=na.datas,oa=ea.state,aa=oa.left,sa=oa.top,la=oa.beforeOrigin,ca=this.dragControlStart(ea,na);if(!ca)return!1;ca.set(ra.beforeDirection*ea.rotation);var ua=triggerChildAbles(ea,this,"dragControlStart",na,function(ha,ga){var fa=ha.state,ma=fa.left,va=fa.top,xa=fa.beforeOrigin,ya=plus(minus([ma,va],[aa,sa]),minus(xa,la));return ga.datas.startGroupClient=ya,ga.datas.groupClient=ya,__assign$3(__assign$3({},ga),{parentRotate:0})}),da=__assign$3(__assign$3({},ca),{targets:ea.props.targets,events:ua}),pa=triggerEvent(ea,"onRotateGroupStart",da);return ra.isRotate=pa!==!1,ra.isRotate?ca:!1},dragGroupControl:function(ea,na){var ra=na.datas;if(ra.isRotate){catchEvent(ea,"onBeforeRotate",function(da){triggerEvent(ea,"onBeforeRotateGroup",fillParams(ea,na,__assign$3(__assign$3({},da),{targets:ea.props.targets}),!0))});var oa=this.dragControl(ea,na);if(oa){var aa=ra.beforeDirection,sa=oa.beforeDist,la=sa/180*Math.PI,ca=triggerChildAbles(ea,this,"dragControl",na,function(da,pa){var ha=pa.datas.startGroupClient,ga=__read(pa.datas.groupClient,2),fa=ga[0],ma=ga[1],va=__read(rotate(ha,la*aa),2),xa=va[0],ya=va[1],Aa=[xa-fa,ya-ma];return pa.datas.groupClient=[xa,ya],__assign$3(__assign$3({},pa),{parentRotate:sa,groupDelta:Aa})});ea.rotation=aa*oa.beforeRotation;var ua=__assign$3({targets:ea.props.targets,events:ca,set:function(da){ea.rotation=da},setGroupRotation:function(da){ea.rotation=da}},oa);return triggerEvent(ea,"onRotateGroup",ua),ua}}},dragGroupControlEnd:function(ea,na){var ra=na.isDrag,oa=na.datas;if(oa.isRotate){this.dragControlEnd(ea,na);var aa=triggerChildAbles(ea,this,"dragControlEnd",na),sa=fillEndParams(ea,na,{targets:ea.props.targets,events:aa});return triggerEvent(ea,"onRotateGroupEnd",sa),ra}},request:function(ea){var na={},ra=0,oa=ea.getRotation();return{isControl:!0,requestStart:function(){return{datas:na}},request:function(aa){return"deltaRotate"in aa?ra+=aa.deltaRotate:"rotate"in aa&&(ra=aa.rotate-oa),{datas:na,parentDist:ra}},requestEnd:function(){return{datas:na,isDrag:!0}}}}};function renderGuideline(ea,na){var ra,oa=ea.direction,aa=ea.classNames,sa=ea.size,la=ea.pos,ca=ea.zoom,ua=ea.key,da=oa==="horizontal",pa=da?"Y":"X";return na.createElement("div",{key:ua,className:aa.join(" "),style:(ra={},ra[da?"width":"height"]="".concat(sa),ra.transform="translate(".concat(la[0],", ").concat(la[1],") translate").concat(pa,"(-50%) scale").concat(pa,"(").concat(ca,")"),ra)})}function renderInnerGuideline(ea,na){return renderGuideline(__assign$3(__assign$3({},ea),{classNames:__spreadArray$1([prefix("line","guideline",ea.direction)],__read(ea.classNames),!1).filter(function(ra){return ra}),size:ea.size||"".concat(ea.sizeValue,"px"),pos:ea.pos||ea.posValue.map(function(ra){return"".concat(throttle$1(ra,.1),"px")})}),na)}function renderSnapPoses(ea,na,ra,oa,aa,sa,la,ca){var ua=ea.props.zoom;return ra.map(function(da,pa){var ha=da.type,ga=da.pos,fa=[0,0];return fa[la]=oa,fa[la?0:1]=-aa+ga,renderInnerGuideline({key:"".concat(na,"TargetGuideline").concat(pa),classNames:[prefix("target","bold",ha)],posValue:fa,sizeValue:sa,zoom:ua,direction:na},ca)})}function renderGuidelines(ea,na,ra,oa,aa,sa){var la=ea.props,ca=la.zoom,ua=la.isDisplayInnerSnapDigit,da=na==="horizontal"?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,pa=aa[da.start],ha=aa[da.end];return ra.filter(function(ga){var fa=ga.hide,ma=ga.elementRect;if(fa)return!1;if(ua&&ma){var va=ma.rect;if(va[da.start]<=pa&&ha<=va[da.end])return!1}return!0}).map(function(ga,fa){var ma=ga.pos,va=ga.size,xa=ga.element,ya=ga.className,Aa=[-oa[0]+ma[0],-oa[1]+ma[1]];return renderInnerGuideline({key:"".concat(na,"-default-guideline-").concat(fa),classNames:xa?[prefix("bold"),ya]:[prefix("normal"),ya],direction:na,posValue:Aa,sizeValue:va,zoom:ca},sa)})}function renderDigitLine(ea,na,ra,oa,aa,sa,la,ca){var ua,da=ea.props,pa=da.snapDigit,ha=pa===void 0?0:pa,ga=da.isDisplaySnapDigit,fa=ga===void 0?!0:ga,ma=da.snapDistFormat,va=ma===void 0?function(wa,ba){return wa}:ma,xa=da.zoom,ya=na==="horizontal"?"X":"Y",Aa=na==="vertical"?"height":"width",Ca=Math.abs(aa),Sa=fa?parseFloat(Ca.toFixed(ha)):0;return ca.createElement("div",{key:"".concat(na,"-").concat(ra,"-guideline-").concat(oa),className:prefix("guideline-group",na),style:(ua={left:"".concat(sa[0],"px"),top:"".concat(sa[1],"px")},ua[Aa]="".concat(Ca,"px"),ua)},renderInnerGuideline({direction:na,classNames:[prefix(ra),la],size:"100%",posValue:[0,0],sizeValue:Ca,zoom:xa},ca),ca.createElement("div",{className:prefix("size-value","gap"),style:{transform:"translate".concat(ya,"(-50%) scale(").concat(xa,")")}},Sa>0?va(Sa,na):""))}function groupByElementGuidelines(ea,na,ra,oa){var aa=ea==="vertical"?0:1,sa=ea==="vertical"?1:0,la=aa?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,ca=ra[la.start],ua=ra[la.end];return groupBy(na,function(da){return da.pos[aa]}).map(function(da){var pa=[],ha=[],ga=[];return da.forEach(function(fa){var ma,va,xa=fa.element,ya=fa.elementRect.rect;if(ya[la.end]<ca)pa.push(fa);else if(ua<ya[la.start])ha.push(fa);else if(ya[la.start]<=ca&&ua<=ya[la.end]&&oa){var Aa=fa.pos,Ca={element:xa,rect:__assign$3(__assign$3({},ya),(ma={},ma[la.end]=ya[la.start],ma))},Sa={element:xa,rect:__assign$3(__assign$3({},ya),(va={},va[la.start]=ya[la.end],va))},wa=[0,0],ba=[0,0];wa[aa]=Aa[aa],wa[sa]=Aa[sa],ba[aa]=Aa[aa],ba[sa]=Aa[sa]+fa.size,pa.push({type:ea,pos:wa,size:0,elementRect:Ca,direction:"",elementDirection:"end"}),ha.push({type:ea,pos:ba,size:0,elementRect:Sa,direction:"",elementDirection:"start"})}}),pa.sort(function(fa,ma){return ma.pos[sa]-fa.pos[sa]}),ha.sort(function(fa,ma){return fa.pos[sa]-ma.pos[sa]}),{total:da,start:pa,end:ha,inner:ga}})}function renderDashedGuidelines(ea,na,ra,oa,aa){var sa=ea.props.isDisplayInnerSnapDigit,la=[];return["vertical","horizontal"].forEach(function(ca){var ua=na.filter(function(xa){return xa.type===ca}),da=ca==="vertical"?1:0,pa=da?0:1,ha=groupByElementGuidelines(ca,ua,oa,sa),ga=da?HORIZONTAL_NAMES_MAP:VERTICAL_NAMES_MAP,fa=da?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,ma=oa[ga.start],va=oa[ga.end];ha.forEach(function(xa){var ya=xa.total,Aa=xa.start,Ca=xa.end,Sa=xa.inner,wa=ra[pa]+ya[0].pos[pa]-oa[fa.start],ba=oa;Aa.forEach(function(Ea){var $a=Ea.elementRect.rect,Ma=ba[ga.start]-$a[ga.end];if(Ma>0){var Ia=[0,0];Ia[da]=ra[da]+ba[ga.start]-ma-Ma,Ia[pa]=wa,la.push(renderDigitLine(ea,ca,"dashed",la.length,Ma,Ia,Ea.className,aa))}ba=$a}),ba=oa,Ca.forEach(function(Ea){var $a=Ea.elementRect.rect,Ma=$a[ga.start]-ba[ga.end];if(Ma>0){var Ia=[0,0];Ia[da]=ra[da]+ba[ga.end]-ma,Ia[pa]=wa,la.push(renderDigitLine(ea,ca,"dashed",la.length,Ma,Ia,Ea.className,aa))}ba=$a}),Sa.forEach(function(Ea){var $a=Ea.elementRect.rect,Ma=ma-$a[ga.start],Ia=$a[ga.end]-va,Oa=[0,0],Da=[0,0];Oa[da]=ra[da]-Ma,Oa[pa]=wa,Da[da]=ra[da]+va-ma,Da[pa]=wa,la.push(renderDigitLine(ea,ca,"dashed",la.length,Ma,Oa,Ea.className,aa)),la.push(renderDigitLine(ea,ca,"dashed",la.length,Ia,Da,Ea.className,aa))})})}),la}function renderGapGuidelines(ea,na,ra,oa,aa){var sa=[];return["horizontal","vertical"].forEach(function(la){var ca=na.filter(function(xa){return xa.type===la}).slice(0,1),ua=la==="vertical"?0:1,da=ua?0:1,pa=ua?HORIZONTAL_NAMES_MAP:VERTICAL_NAMES_MAP,ha=ua?VERTICAL_NAMES_MAP:HORIZONTAL_NAMES_MAP,ga=oa[pa.start],fa=oa[pa.end],ma=oa[ha.start],va=oa[ha.end];ca.forEach(function(xa){var ya=xa.gap,Aa=xa.gapRects,Ca=Math.max.apply(Math,__spreadArray$1([ma],__read(Aa.map(function(ba){var Ea=ba.rect;return Ea[ha.start]})),!1)),Sa=Math.min.apply(Math,__spreadArray$1([va],__read(Aa.map(function(ba){var Ea=ba.rect;return Ea[ha.end]})),!1)),wa=(Ca+Sa)/2;Ca===Sa||wa===(ma+va)/2||Aa.forEach(function(ba){var Ea=ba.rect,$a=ba.className,Ma=[ra[0],ra[1]];if(Ea[pa.end]<ga)Ma[ua]+=Ea[pa.end]-ga;else if(fa<Ea[pa.start])Ma[ua]+=Ea[pa.start]-ga-ya;else return;Ma[da]+=wa-ma,sa.push(renderDigitLine(ea,ua?"vertical":"horizontal","gap",sa.length,ya,Ma,$a,aa))})})}),sa}function getTotalGuidelines(ea){var na,ra,oa=ea.state,aa=oa.containerClientRect,sa=oa.hasFixed,la=aa.overflow,ca=aa.scrollHeight,ua=aa.scrollWidth,da=aa.clientHeight,pa=aa.clientWidth,ha=aa.clientLeft,ga=aa.clientTop,fa=ea.props,ma=fa.snapGap,va=ma===void 0?!0:ma,xa=fa.verticalGuidelines,ya=fa.horizontalGuidelines,Aa=fa.snapThreshold,Ca=Aa===void 0?5:Aa,Sa=fa.maxSnapElementGuidelineDistance,wa=Sa===void 0?1/0:Sa,ba=fa.isDisplayGridGuidelines,Ea=getRect(getAbsolutePosesByState(ea.state)),$a=Ea.top,Ma=Ea.left,Ia=Ea.bottom,Oa=Ea.right,Da={top:$a,left:Ma,bottom:Ia,right:Oa,center:(Ma+Oa)/2,middle:($a+Ia)/2},Ta=getElementGuidelines(ea),_a=__spreadArray$1([],__read(Ta),!1),La=((ra=(na=oa.snapThresholdInfo)===null||na===void 0?void 0:na.multiples)!==null&&ra!==void 0?ra:[1,1]).map(function(Ha){return Ha*Ca});va&&_a.push.apply(_a,__spreadArray$1([],__read(getGapGuidelines(ea,Da,La)),!1));var Na=__assign$3({},oa.snapOffset||{left:0,top:0,bottom:0,right:0});if(_a.push.apply(_a,__spreadArray$1([],__read(getGridGuidelines(ea,la?ua:pa,la?ca:da,ha,ga,Na,ba)),!1)),sa){var za=aa.left,Fa=aa.top;Na.left+=za,Na.top+=Fa,Na.right+=za,Na.bottom+=Fa}return _a.push.apply(_a,__spreadArray$1([],__read(getDefaultGuidelines(ya||!1,xa||!1,la?ua:pa,la?ca:da,ha,ga,Na)),!1)),_a=_a.filter(function(Ha){var Va=Ha.element,Ua=Ha.elementRect,Qa=Ha.type;if(!Va||!Ua)return!0;var Wa=Ua.rect;return checkBetweenRects(Da,Wa,Qa,wa)}),_a}function getGapGuidelines(ea,na,ra){var oa=ea.props,aa=oa.maxSnapElementGuidelineDistance,sa=aa===void 0?1/0:aa,la=oa.maxSnapElementGapDistance,ca=la===void 0?1/0:la,ua=ea.state.elementRects,da=[];return[["vertical",VERTICAL_NAMES_MAP,HORIZONTAL_NAMES_MAP],["horizontal",HORIZONTAL_NAMES_MAP,VERTICAL_NAMES_MAP]].forEach(function(pa){var ha=__read(pa,3),ga=ha[0],fa=ha[1],ma=ha[2],va=na[fa.start],xa=na[fa.end],ya=na[fa.center],Aa=na[ma.start],Ca=na[ma.end],Sa={left:ra[0],top:ra[1]};function wa($a){var Ma=$a.rect,Ia=Sa[fa.start];return Ma[fa.end]<va+Ia?va-Ma[fa.end]:xa-Ia<Ma[fa.start]?Ma[fa.start]-xa:-1}var ba=ua.filter(function($a){var Ma=$a.rect;return Ma[ma.start]>Ca||Ma[ma.end]<Aa?!1:wa($a)>0}).sort(function($a,Ma){return wa($a)-wa(Ma)}),Ea=[];ba.forEach(function($a){ba.forEach(function(Ma){if($a!==Ma){var Ia=$a.rect,Oa=Ma.rect,Da=Ia[ma.start],Ta=Ia[ma.end],_a=Oa[ma.start],La=Oa[ma.end];Da>La||_a>Ta||Ea.push([$a,Ma])}})}),Ea.forEach(function($a){var Ma=__read($a,2),Ia=Ma[0],Oa=Ma[1],Da=Ia.rect,Ta=Oa.rect,_a=Da[fa.start],La=Da[fa.end],Na=Ta[fa.start],za=Ta[fa.end],Fa=Sa[fa.start],Ha=0,Va=0,Ua=!1,Qa=!1,Wa=!1;if(La<=va&&xa<=Na){if(Qa=!0,Ha=(Na-La-(xa-va))/2,Va=La+Ha+(xa-va)/2,abs(Va-ya)>Fa)return}else if(La<Na&&za<va+Fa){if(Ua=!0,Ha=Na-La,Va=za+Ha,abs(Va-va)>Fa)return}else if(La<Na&&xa-Fa<_a){if(Wa=!0,Ha=Na-La,Va=_a-Ha,abs(Va-xa)>Fa)return}else return;Ha&&checkBetweenRects(na,Ta,ga,sa)&&(Ha>ca||da.push({type:ga,pos:ga==="vertical"?[Va,0]:[0,Va],element:Oa.element,size:0,className:Oa.className,isStart:Ua,isCenter:Qa,isEnd:Wa,gap:Ha,hide:!0,gapRects:[Ia,Oa],direction:"",elementDirection:""}))})}),da}function startGridGroupGuidelines(ea,na,ra,oa){var aa,sa,la=ea.props,ca=ea.state,ua=la.snapGridAll,da=la.snapGridWidth,pa=da===void 0?0:da,ha=la.snapGridHeight,ga=ha===void 0?0:ha,fa=ca.snapRenderInfo,ma=fa&&(((aa=fa.direction)===null||aa===void 0?void 0:aa[0])||((sa=fa.direction)===null||sa===void 0?void 0:sa[1])),va=ea.moveables;if(ua&&va&&ma&&(pa||ga)){if(ca.snapThresholdInfo)return;ca.snapThresholdInfo={multiples:[1,1],offset:[0,0]};var xa=ea.getRect(),ya=xa.children,Aa=fa.direction;if(ya){var Ca=Aa.map(function(wa,ba){var Ea=ba===0?{snapSize:pa,posName:"left",sizeName:"width",clientOffset:oa.left-na}:{snapSize:ga,posName:"top",sizeName:"height",clientOffset:oa.top-ra},$a=Ea.snapSize,Ma=Ea.posName,Ia=Ea.sizeName,Oa=Ea.clientOffset;if(!$a)return{dir:wa,multiple:1,snapSize:$a,snapOffset:0};var Da=xa[Ia],Ta=xa[Ma],_a=flat$1(ya.map(function(Ua){return[Ua[Ma]-Ta,Ua[Ia],Da-Ua[Ia]-Ua[Ma]+Ta]})).filter(function(Ua){return Ua}).sort(function(Ua,Qa){return Ua-Qa}),La=_a[0],Na=_a.map(function(Ua){return throttle$1(Ua/La,.1)*$a}),za=1,Fa=throttle$1(Da/La,.1);for(za=1;za<=10&&!Na.every(function(Ua){return Ua*za%1===0});++za);var Ha=(-wa+1)/2,Va=dot(Ta-Oa,Ta-Oa+Da,Ha,1-Ha);return{multiple:Fa*za,dir:wa,snapSize:$a,snapOffset:Math.round(Va/$a)}}),Sa=Ca.map(function(wa){return wa.multiple||1});ca.snapThresholdInfo.multiples=Sa,ca.snapThresholdInfo.offset=Ca.map(function(wa){return wa.snapOffset}),Ca.forEach(function(wa,ba){wa.snapSize})}}else ca.snapThresholdInfo=null}function getGridGuidelines(ea,na,ra,oa,aa,sa,la){oa===void 0&&(oa=0),aa===void 0&&(aa=0);var ca=ea.props,ua=ea.state,da=ca.snapGridWidth,pa=da===void 0?0:da,ha=ca.snapGridHeight,ga=ha===void 0?0:ha,fa=[],ma=sa.left,va=sa.top,xa=[0,0];startGridGroupGuidelines(ea,oa,aa,sa);var ya=ua.snapThresholdInfo,Aa=pa,Ca=ga;if(ya&&(pa*=ya.multiples[0]||1,ga*=ya.multiples[1]||1,xa=ya.offset),ga){for(var Sa=function(ba){fa.push({type:"horizontal",pos:[ma,throttle$1(xa[1]*Ca+ba-aa+va,.1)],className:prefix("grid-guideline"),size:na,hide:!la,direction:"",grid:!0})},wa=0;wa<=ra*2;wa+=ga)Sa(wa);for(var wa=-ga;wa>=-ra;wa-=ga)Sa(wa)}if(pa){for(var Sa=function(Ea){fa.push({type:"vertical",pos:[throttle$1(xa[0]*Aa+Ea-oa+ma,.1),va],className:prefix("grid-guideline"),size:ra,hide:!la,direction:"",grid:!0})},wa=0;wa<=na*2;wa+=pa)Sa(wa);for(var wa=-pa;wa>=-na;wa-=pa)Sa(wa)}return fa}function checkBetweenRects(ea,na,ra,oa){return ra==="horizontal"?abs(ea.right-na.left)<=oa||abs(ea.left-na.right)<=oa||ea.left<=na.right&&na.left<=ea.right:ra==="vertical"?abs(ea.bottom-na.top)<=oa||abs(ea.top-na.bottom)<=oa||ea.top<=na.bottom&&na.top<=ea.bottom:!0}function getElementGuidelines(ea){var na=ea.state,ra=ea.props.elementGuidelines,oa=ra===void 0?[]:ra;if(!oa.length)return na.elementRects=[],[];var aa=(na.elementRects||[]).filter(function(ga){return!ga.refresh}),sa=oa.map(function(ga){return isObject(ga)&&"element"in ga?__assign$3(__assign$3({},ga),{element:getRefTarget(ga.element,!0)}):{element:getRefTarget(ga,!0)}}).filter(function(ga){return ga.element}),la=diff$1(aa.map(function(ga){return ga.element}),sa.map(function(ga){return ga.element})),ca=la.maintained,ua=la.added,da=[];ca.forEach(function(ga){var fa=__read(ga,2),ma=fa[0],va=fa[1];da[va]=aa[ma]}),getSnapElementRects(ea,ua.map(function(ga){return sa[ga]})).map(function(ga,fa){da[ua[fa]]=ga}),na.elementRects=da;var pa=getSnapDirections(ea.props.elementSnapDirections),ha=[];return da.forEach(function(ga){var fa=ga.element,ma=ga.top,va=ma===void 0?pa.top:ma,xa=ga.left,ya=xa===void 0?pa.left:xa,Aa=ga.right,Ca=Aa===void 0?pa.right:Aa,Sa=ga.bottom,wa=Sa===void 0?pa.bottom:Sa,ba=ga.center,Ea=ba===void 0?pa.center:ba,$a=ga.middle,Ma=$a===void 0?pa.middle:$a,Ia=ga.className,Oa=ga.rect,Da=splitSnapDirectionPoses({top:va,right:Ca,left:ya,bottom:wa,center:Ea,middle:Ma},Oa),Ta=Da.horizontal,_a=Da.vertical,La=Da.horizontalNames,Na=Da.verticalNames,za=Oa.top,Fa=Oa.left,Ha=Oa.right-Fa,Va=Oa.bottom-za,Ua=[Ha,Va];_a.forEach(function(Qa,Wa){ha.push({type:"vertical",element:fa,pos:[throttle$1(Qa,.1),za],size:Va,sizes:Ua,className:Ia,elementRect:ga,elementDirection:SNAP_SKIP_NAMES_MAP[Na[Wa]]||Na[Wa],direction:""})}),Ta.forEach(function(Qa,Wa){ha.push({type:"horizontal",element:fa,pos:[Fa,throttle$1(Qa,.1)],size:Ha,sizes:Ua,className:Ia,elementRect:ga,elementDirection:SNAP_SKIP_NAMES_MAP[La[Wa]]||La[Wa],direction:""})})}),ha}function getObjectGuidelines(ea,na){return ea?ea.map(function(ra){var oa=isObject(ra)?ra:{pos:ra},aa=oa.pos;return isNumber(aa)?oa:__assign$3(__assign$3({},oa),{pos:convertUnitSize(aa,na)})}):[]}function getDefaultGuidelines(ea,na,ra,oa,aa,sa,la){aa===void 0&&(aa=0),sa===void 0&&(sa=0),la===void 0&&(la={left:0,top:0,right:0,bottom:0});var ca=[],ua=la.left,da=la.top,pa=la.bottom,ha=la.right,ga=ra+ha-ua,fa=oa+pa-da;return getObjectGuidelines(ea,fa).forEach(function(ma){ca.push({type:"horizontal",pos:[ua,throttle$1(ma.pos-sa+da,.1)],size:ga,className:ma.className,direction:""})}),getObjectGuidelines(na,ga).forEach(function(ma){ca.push({type:"vertical",pos:[throttle$1(ma.pos-aa+ua,.1),da],size:fa,className:ma.className,direction:""})}),ca}function getSnapElementRects(ea,na){if(!na.length)return[];var ra=ea.props.groupable,oa=ea.state,aa=oa.containerClientRect,sa=oa.rootMatrix,la=oa.is3d,ca=oa.offsetDelta,ua=la?4:3,da=__read(calculateContainerPos(sa,aa,ua),2),pa=da[0],ha=da[1],ga=ra?0:ca[0],fa=ra?0:ca[1];return na.map(function(ma){var va=ma.element.getBoundingClientRect(),xa=va.left-pa-ga,ya=va.top-ha-fa,Aa=ya+va.height,Ca=xa+va.width,Sa=__read(calculateInversePosition(sa,[xa,ya],ua),2),wa=Sa[0],ba=Sa[1],Ea=__read(calculateInversePosition(sa,[Ca,Aa],ua),2),$a=Ea[0],Ma=Ea[1];return __assign$3(__assign$3({},ma),{rect:{left:wa,right:$a,top:ba,bottom:Ma,center:(wa+$a)/2,middle:(ba+Ma)/2}})})}function checkSnapInfo(ea){var na=ea.state,ra=na.container,oa=ea.props.snapContainer||ra;if(na.snapContainer===oa&&na.guidelines&&na.guidelines.length)return!1;var aa=na.containerClientRect,sa={left:0,top:0,bottom:0,right:0};if(ra!==oa){var la=getRefTarget(oa,!0);if(la){var ca=getClientRect$1(la),ua=getDragDistByState(na,[ca.left-aa.left,ca.top-aa.top]),da=getDragDistByState(na,[ca.right-aa.right,ca.bottom-aa.bottom]);sa.left=throttle$1(ua[0],1e-5),sa.top=throttle$1(ua[1],1e-5),sa.right=throttle$1(da[0],1e-5),sa.bottom=throttle$1(da[1],1e-5)}}return na.snapContainer=oa,na.snapOffset=sa,na.guidelines=getTotalGuidelines(ea),na.enableSnap=!0,!0}function getNextFixedPoses(ea,na,ra,oa,aa,sa){var la=calculatePoses(ea,na,ra,sa?4:3),ca=getPosByDirection(la,oa);return getAbsolutePoses(la,minus(aa,ca))}function normalized(ea){return ea?ea/abs(ea):0}function getSizeOffsetInfo(ea,na,ra,oa,aa,sa){var la=sa.fixedDirection,ca=getCheckSnapDirections(ra,la,oa),ua=getCheckInnerBoundLineInfos(ea,na,ra,oa),da=__spreadArray$1(__spreadArray$1([],__read(getSnapBoundInfo(ea,na,ca,oa,aa,sa)),!1),__read(getInnerBoundInfo(ea,ua,sa)),!1),pa=getNearOffsetInfo(da,0),ha=getNearOffsetInfo(da,1);return{width:{isBound:pa.isBound,offset:pa.offset[0]},height:{isBound:ha.isBound,offset:ha.offset[1]}}}function recheckSizeByTwoDirection(ea,na,ra,oa,aa,sa,la,ca,ua){var da=getPosByDirection(na,la),pa=checkMoveableSnapBounds(ea,ca,{vertical:[da[0]],horizontal:[da[1]]}),ha=pa.horizontal.offset,ga=pa.vertical.offset;if(throttle$1(ga,FLOAT_POINT_NUM)||throttle$1(ha,FLOAT_POINT_NUM)){var fa=__read(getDragDist({datas:ua,distX:-ga,distY:-ha}),2),ma=fa[0],va=fa[1],xa=Math.min(aa||1/0,ra+la[0]*ma),ya=Math.min(sa||1/0,oa+la[1]*va);return[xa-ra,ya-oa]}return[0,0]}function checkSizeDist(ea,na,ra,oa,aa,sa,la,ca){for(var ua=getAbsolutePosesByState(ea.state),da=ea.props.keepRatio,pa=0,ha=0,ga=0;ga<2;++ga){var fa=na(pa,ha),ma=getSizeOffsetInfo(ea,fa,aa,da,la,ca),va=ma.width,xa=ma.height,ya=va.isBound,Aa=xa.isBound,Ca=va.offset,Sa=xa.offset;if(ga===1&&(ya||(Ca=0),Aa||(Sa=0)),ga===0&&la&&!ya&&!Aa)return[0,0];if(da){var wa=abs(Ca)*(ra?1/ra:1),ba=abs(Sa)*(oa?1/oa:1),Ea=ya&&Aa?wa<ba:Aa||!ya&&wa<ba;Ea?Ca=ra*Sa/oa:Sa=oa*Ca/ra}pa+=Ca,ha+=Sa}if(!da&&aa[0]&&aa[1]){var $a=checkMaxBounds(ea,ua,aa,sa,ca),Ma=$a.maxWidth,Ia=$a.maxHeight,Oa=__read(recheckSizeByTwoDirection(ea,na(pa,ha).map(function(_a){return _a.map(function(La){return throttle$1(La,FLOAT_POINT_NUM)})}),ra+pa,oa+ha,Ma,Ia,aa,la,ca),2),Ca=Oa[0],Sa=Oa[1];pa+=Ca,ha+=Sa}return[pa,ha]}function absDegree(ea){return ea<0&&(ea=ea%360+360),ea%=360,ea}function bumpDegree(ea,na){na=absDegree(na);var ra=Math.floor(ea/360),oa=ra*360+360-na,aa=ra*360+na;return abs(ea-oa)<abs(ea-aa)?oa:aa}function getMinDegreeDistance(ea,na){ea=absDegree(ea),na=absDegree(na);var ra=absDegree(ea-na);return Math.min(ra,360-ra)}function checkSnapRotate(ea,na,ra,oa){var aa,sa=ea.props,la=(aa=sa[NAME_snapRotationThreshold])!==null&&aa!==void 0?aa:5,ca=sa[NAME_snapRotationDegrees];if(hasGuidelines(ea,"rotatable")){var ua=na.pos1,da=na.pos2,pa=na.pos3,ha=na.pos4,ga=na.origin,fa=ra*Math.PI/180,ma=[ua,da,pa,ha].map(function(Sa){return minus(Sa,ga)}),va=ma.map(function(Sa){return rotate(Sa,fa)}),xa=__spreadArray$1(__spreadArray$1([],__read(checkRotateBounds(ea,ma,va,ga,ra)),!1),__read(checkRotateInnerBounds(ea,ma,va,ga,ra)),!1);xa.sort(function(Sa,wa){return abs(Sa-ra)-abs(wa-ra)});var ya=xa.length>0;if(ya)return{isSnap:ya,dist:ya?xa[0]:ra}}if(ca?.length&&la){var Aa=ca.slice().sort(function(Sa,wa){return getMinDegreeDistance(Sa,oa)-getMinDegreeDistance(wa,oa)}),Ca=Aa[0];if(getMinDegreeDistance(Ca,oa)<=la)return{isSnap:!0,dist:ra+bumpDegree(oa,Ca)-oa}}return{isSnap:!1,dist:ra}}function checkSnapResize(ea,na,ra,oa,aa,sa,la){if(!hasGuidelines(ea,"resizable"))return[0,0];var ca=la.fixedDirection,ua=la.nextAllMatrix,da=ea.state,pa=da.allMatrix,ha=da.is3d;return checkSizeDist(ea,function(ga,fa){return getNextFixedPoses(ua||pa,na+ga,ra+fa,ca,aa,ha)},na,ra,oa,aa,sa,la)}function checkSnapScale(ea,na,ra,oa,aa){if(!hasGuidelines(ea,"scalable"))return[0,0];var sa=aa.startOffsetWidth,la=aa.startOffsetHeight,ca=aa.fixedPosition,ua=aa.fixedDirection,da=aa.is3d,pa=checkSizeDist(ea,function(ha,ga){return getNextFixedPoses(scaleMatrix(aa,plus(na,[ha/sa,ga/la])),sa,la,ua,ca,da)},sa,la,ra,ca,oa,aa);return[pa[0]/sa,pa[1]/la]}function startCheckSnapDrag(ea,na){na.absolutePoses=getAbsolutePosesByState(ea.state)}function getSnapGuidelines(ea){var na=[];return ea.forEach(function(ra){ra.guidelineInfos.forEach(function(oa){var aa=oa.guideline;find$1(na,function(sa){return sa.guideline===aa})||(aa.direction="",na.push({guideline:aa,posInfo:ra}))})}),na.map(function(ra){var oa=ra.guideline,aa=ra.posInfo;return __assign$3(__assign$3({},oa),{direction:aa.direction})})}function addBoundGuidelines(ea,na,ra,oa,aa,sa){var la=checkBoundPoses(getBounds(ea,sa),na,ra),ca=la.vertical,ua=la.horizontal,da=getInitialBounds();ca.forEach(function(ma){ma.isBound&&(ma.direction==="start"&&(da.left=!0),ma.direction==="end"&&(da.right=!0),oa.push({type:"bounds",pos:ma.pos}))}),ua.forEach(function(ma){ma.isBound&&(ma.direction==="start"&&(da.top=!0),ma.direction==="end"&&(da.bottom=!0),aa.push({type:"bounds",pos:ma.pos}))});var pa=checkInnerBoundPoses(ea),ha=pa.boundMap,ga=pa.vertical,fa=pa.horizontal;return ga.forEach(function(ma){findIndex$1(oa,function(va){var xa=va.type,ya=va.pos;return xa==="bounds"&&ya===ma})>=0||oa.push({type:"bounds",pos:ma})}),fa.forEach(function(ma){findIndex$1(aa,function(va){var xa=va.type,ya=va.pos;return xa==="bounds"&&ya===ma})>=0||aa.push({type:"bounds",pos:ma})}),{boundMap:da,innerBoundMap:ha}}var directionCondition$1=getDirectionCondition("",["resizable","scalable"]),NAME_snapRotationThreshold="snapRotationThreshold",NAME_snapRotationDegrees="snapRotationDegrees",Snappable={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",NAME_snapRotationThreshold,NAME_snapRotationDegrees,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap","bound"],css:[`:host {
--bounds-color: #d66;
}
.guideline {
pointer-events: none;
z-index: 2;
}
.guideline.bounds {
background: #d66;
background: var(--bounds-color);
}
.guideline-group {
position: absolute;
top: 0;
left: 0;
}
.guideline-group .size-value {
position: absolute;
color: #f55;
font-size: 12px;
font-size: calc(12px * var(--zoom));
font-weight: bold;
}
.guideline-group.horizontal .size-value {
transform-origin: 50% 100%;
transform: translateX(-50%);
left: 50%;
bottom: 5px;
bottom: calc(2px + 3px * var(--zoom));
}
.guideline-group.vertical .size-value {
transform-origin: 0% 50%;
top: 50%;
transform: translateY(-50%);
left: 5px;
left: calc(2px + 3px * var(--zoom));
}
.guideline.gap {
background: #f55;
}
.size-value.gap {
color: #f55;
}
`],render:function(ea,na){var ra=ea.state,oa=ra.top,aa=ra.left,sa=ra.pos1,la=ra.pos2,ca=ra.pos3,ua=ra.pos4,da=ra.snapRenderInfo,pa=ea.props.snapRenderThreshold,ha=pa===void 0?1:pa;if(!da||!da.render||!hasGuidelines(ea,""))return watchValue(ea,"boundMap",getInitialBounds(),function(Za){return JSON.stringify(Za)}),watchValue(ea,"innerBoundMap",getInitialBounds(),function(Za){return JSON.stringify(Za)}),[];ra.guidelines=getTotalGuidelines(ea);var ga=Math.min(sa[0],la[0],ca[0],ua[0]),fa=Math.min(sa[1],la[1],ca[1],ua[1]),ma=da.externalPoses||[],va=getAbsolutePosesByState(ea.state),xa=[],ya=[],Aa=[],Ca=[],Sa=[],wa=getRect(va),ba=wa.width,Ea=wa.height,$a=wa.top,Ma=wa.left,Ia=wa.bottom,Oa=wa.right,Da={left:Ma,right:Oa,top:$a,bottom:Ia,center:(Ma+Oa)/2,middle:($a+Ia)/2},Ta=ma.length>0,_a=Ta?getRect(ma):{};if(!da.request){if(da.direction&&Sa.push(getSnapInfosByDirection(ea,va,da.direction,ha)),da.snap){var La=getRect(va);da.center&&(La.middle=(La.top+La.bottom)/2,La.center=(La.left+La.right)/2),Sa.push(checkSnaps(ea,La,ha))}Ta&&(da.center&&(_a.middle=(_a.top+_a.bottom)/2,_a.center=(_a.left+_a.right)/2),Sa.push(checkSnaps(ea,_a,ha))),Sa.forEach(function(Za){var Xa=Za.vertical.posInfos,tl=Za.horizontal.posInfos;xa.push.apply(xa,__spreadArray$1([],__read(Xa.filter(function(il){var Ja=il.guidelineInfos;return Ja.some(function(nl){var Ya=nl.guideline;return!Ya.hide})}).map(function(il){return{type:"snap",pos:il.pos}})),!1)),ya.push.apply(ya,__spreadArray$1([],__read(tl.filter(function(il){var Ja=il.guidelineInfos;return Ja.some(function(nl){var Ya=nl.guideline;return!Ya.hide})}).map(function(il){return{type:"snap",pos:il.pos}})),!1)),Aa.push.apply(Aa,__spreadArray$1([],__read(getSnapGuidelines(Xa)),!1)),Ca.push.apply(Ca,__spreadArray$1([],__read(getSnapGuidelines(tl)),!1))})}var Na=addBoundGuidelines(ea,[Ma,Oa],[$a,Ia],xa,ya),za=Na.boundMap,Fa=Na.innerBoundMap;Ta&&addBoundGuidelines(ea,[_a.left,_a.right],[_a.top,_a.bottom],xa,ya,da.externalBounds);var Ha=__spreadArray$1(__spreadArray$1([],__read(Aa),!1),__read(Ca),!1),Va=Ha.filter(function(Za){return Za.element&&!Za.gapRects}),Ua=Ha.filter(function(Za){return Za.gapRects}).sort(function(Za,Xa){return Za.gap-Xa.gap});triggerEvent(ea,"onSnap",{guidelines:Ha.filter(function(Za){var Xa=Za.element;return!Xa}),elements:Va,gaps:Ua},!0);var Qa=watchValue(ea,"boundMap",za,function(Za){return JSON.stringify(Za)},getInitialBounds()),Wa=watchValue(ea,"innerBoundMap",Fa,function(Za){return JSON.stringify(Za)},getInitialBounds());return(za===Qa||Fa===Wa)&&triggerEvent(ea,"onBound",{bounds:za,innerBounds:Fa},!0),__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1([],__read(renderDashedGuidelines(ea,Va,[ga,fa],Da,na)),!1),__read(renderGapGuidelines(ea,Ua,[ga,fa],Da,na)),!1),__read(renderGuidelines(ea,"horizontal",Ca,[aa,oa],Da,na)),!1),__read(renderGuidelines(ea,"vertical",Aa,[aa,oa],Da,na)),!1),__read(renderSnapPoses(ea,"horizontal",ya,ga,oa,ba,0,na)),!1),__read(renderSnapPoses(ea,"vertical",xa,fa,aa,Ea,1,na)),!1)},dragStart:function(ea,na){ea.state.snapRenderInfo={request:na.isRequest,snap:!0,center:!0},checkSnapInfo(ea)},drag:function(ea){var na=ea.state;checkSnapInfo(ea)||(na.guidelines=getTotalGuidelines(ea)),na.snapRenderInfo&&(na.snapRenderInfo.render=!0)},pinchStart:function(ea){this.unset(ea)},dragEnd:function(ea){this.unset(ea)},dragControlCondition:function(ea,na){if(directionCondition$1(ea,na)||dragControlCondition(ea,na))return!0;if(!na.isRequest&&na.inputEvent)return hasClass(na.inputEvent.target,prefix("snap-control"))},dragControlStart:function(ea){ea.state.snapRenderInfo=null,checkSnapInfo(ea)},dragControl:function(ea){this.drag(ea)},dragControlEnd:function(ea){this.unset(ea)},dragGroupStart:function(ea,na){this.dragStart(ea,na)},dragGroup:function(ea){this.drag(ea)},dragGroupEnd:function(ea){this.unset(ea)},dragGroupControlStart:function(ea){ea.state.snapRenderInfo=null,checkSnapInfo(ea)},dragGroupControl:function(ea){this.drag(ea)},dragGroupControlEnd:function(ea){this.unset(ea)},unset:function(ea){var na=ea.state;na.enableSnap=!1,na.guidelines=[],na.snapRenderInfo=null,na.elementRects=[]}};function multiply2(ea,na){return[ea[0]*na[0],ea[1]*na[1]]}function prefix(){for(var ea=[],na=0;na<arguments.length;na++)ea[na]=arguments[na];return prefixNames.apply(void 0,__spreadArray$1([PREFIX],__read(ea),!1))}function defaultSync(ea){ea()}function getTransformMatrix(ea){return!ea||ea==="none"?[1,0,0,1,0,0]:isObject(ea)?ea:parseMat(ea)}function getAbsoluteMatrix(ea,na,ra){return multiplies(na,createOriginMatrix(ra,na),ea,createOriginMatrix(ra.map(function(oa){return-oa}),na))}function measureSVGSize(ea,na,ra){if(na==="%"){var oa=getSVGViewBox(ea.ownerSVGElement);return oa[ra?"width":"height"]/100}return 1}function getBeforeTransformOrigin(ea){var na=getTransformOrigin(getComputedStyle$1(ea,":before"));return na.map(function(ra,oa){var aa=splitUnit(ra),sa=aa.value,la=aa.unit;return sa*measureSVGSize(ea,la,oa===0)})}function getTransformOriginArray(ea){return ea?ea.split(" "):["0","0"]}function getTransformOrigin(ea){return getTransformOriginArray(ea.transformOrigin)}function getElementTransform(ea){var na=getCachedStyle(ea),ra=na("transform");if(ra&&ra!=="none")return ra;if("transform"in ea){var oa=ea.transform,aa=oa.baseVal;if(!aa)return"";var sa=aa.length;if(!sa)return"";for(var la=[],ca=function(da){var pa=aa[da].matrix;la.push("matrix(".concat(["a","b","c","d","e","f"].map(function(ha){return pa[ha]}).join(", "),")"))},ua=0;ua<sa;++ua)ca(ua);return la.join(" ")}return""}function getOffsetInfo(ea,na,ra,oa,aa){var sa,la,ca=getDocumentElement(ea)||getDocumentBody(ea),ua=!1,da,pa;if(!ea||ra)da=ea;else{var ha=(sa=ea?.assignedSlot)===null||sa===void 0?void 0:sa.parentElement,ga=ea.parentElement;ha?(ua=!0,pa=ga,da=ha):da=ga}for(var fa=!1,ma=ea===na||da===na,va="relative",xa=1,ya=parseFloat(aa?.("zoom"))||1,Aa=aa?.("position");da&&da!==ca;){na===da&&(ma=!0);var Ca=getCachedStyle(da),Sa=da.tagName.toLowerCase(),wa=getElementTransform(da),ba=Ca("willChange"),Ea=parseFloat(Ca("zoom"))||1;if(va=Ca("position"),oa&&Ea!==1){xa=Ea;break}if(!ra&&oa&&ya!==1&&Aa&&Aa!=="absolute"||Sa==="svg"||va!=="static"||wa&&wa!=="none"||ba==="transform")break;var $a=(la=ea?.assignedSlot)===null||la===void 0?void 0:la.parentNode,Ma=da.parentNode;$a&&(ua=!0,pa=Ma);var Ia=Ma;if(Ia&&Ia.nodeType===11){da=Ia.host,fa=!0,va=getCachedStyle(da)("position");break}da=Ia,va="relative"}return{offsetZoom:xa,hasSlot:ua,parentSlotElement:pa,isCustomElement:fa,isStatic:va==="static",isEnd:ma||!da||da===ca,offsetParent:da||ca}}function getOffsetPosInfo(ea,na){var ra,oa=ea.tagName.toLowerCase(),aa=ea.offsetLeft,sa=ea.offsetTop,la=getCachedStyle(ea),ca=isUndefined(aa),ua=!ca,da,pa;return!ua&&(oa!=="svg"||na.ownerSVGElement)?(da=IS_WEBKIT605?getBeforeTransformOrigin(ea):getTransformOriginArray(la("transformOrigin")).map(function(ha){return parseFloat(ha)}),pa=da.slice(),ua=!0,oa==="svg"?(aa=0,sa=0):(ra=__read(getSVGGraphicsOffset(ea,da,ea===na&&na.tagName.toLowerCase()==="g"),4),aa=ra[0],sa=ra[1],da[0]=ra[2],da[1]=ra[3])):(da=getTransformOriginArray(la("transformOrigin")).map(function(ha){return parseFloat(ha)}),pa=da.slice()),{tagName:oa,isSVG:ca,hasOffset:ua,offset:[aa||0,sa||0],origin:da,targetOrigin:pa}}function getBodyOffset(ea,na){var ra=getCachedStyle(ea),oa=getCachedStyle(getDocumentBody(ea)),aa=oa("position");if(!na&&(!aa||aa==="static"))return[0,0];var sa=parseInt(oa("marginLeft"),10),la=parseInt(oa("marginTop"),10);return ra("position")==="absolute"&&((ra("top")!=="auto"||ra("bottom")!=="auto")&&(la=0),(ra("left")!=="auto"||ra("right")!=="auto")&&(sa=0)),[sa,la]}function convert3DMatrixes(ea){ea.forEach(function(na){var ra=na.matrix;ra&&(na.matrix=convertDimension(ra,3,4))})}function getPositionFixedInfo(ea){for(var na=ea.parentElement,ra=!1,oa=getDocumentBody(ea);na;){var aa=getComputedStyle$1(na).transform;if(aa&&aa!=="none"){ra=!0;break}if(na===oa)break;na=na.parentElement}return{fixedContainer:na||oa,hasTransform:ra}}function makeMatrixCSS(ea,na){return na===void 0&&(na=ea.length>9),"".concat(na?"matrix3d":"matrix","(").concat(convertMatrixtoCSS(ea,!na).join(","),")")}function getSVGViewBox(ea){var na=ea.clientWidth,ra=ea.clientHeight;if(!ea)return{x:0,y:0,width:0,height:0,clientWidth:na,clientHeight:ra};var oa=ea.viewBox,aa=oa&&oa.baseVal||{x:0,y:0,width:0,height:0};return{x:aa.x,y:aa.y,width:aa.width||na,height:aa.height||ra,clientWidth:na,clientHeight:ra}}function getSVGMatrix(ea,na){var ra,oa=getSVGViewBox(ea),aa=oa.width,sa=oa.height,la=oa.clientWidth,ca=oa.clientHeight,ua=la/aa,da=ca/sa,pa=ea.preserveAspectRatio.baseVal,ha=pa.align,ga=pa.meetOrSlice,fa=[0,0],ma=[ua,da],va=[0,0];if(ha!==1){var xa=(ha-2)%3,ya=Math.floor((ha-2)/3);fa[0]=aa*xa/2,fa[1]=sa*ya/2;var Aa=ga===2?Math.max(da,ua):Math.min(ua,da);ma[0]=Aa,ma[1]=Aa,va[0]=(la-aa)/2*xa,va[1]=(ca-sa)/2*ya}var Ca=createScaleMatrix(ma,na);return ra=__read(va,2),Ca[na*(na-1)]=ra[0],Ca[na*(na-1)+1]=ra[1],getAbsoluteMatrix(Ca,na,fa)}function getSVGGraphicsOffset(ea,na,ra){if(!ea.getBBox||!ra&&ea.tagName.toLowerCase()==="g")return[0,0,0,0];var oa=getCachedStyle(ea),aa=oa("transform-box")==="fill-box",sa=ea.getBBox(),la=getSVGViewBox(ea.ownerSVGElement),ca=sa.x-la.x,ua=sa.y-la.y,da=aa?na[0]:na[0]-ca,pa=aa?na[1]:na[1]-ua;return[ca,ua,da,pa]}function calculatePosition(ea,na,ra){return calculate(ea,convertPositionMatrix(na,ra),ra)}function calculatePoses(ea,na,ra,oa){return[[0,0],[na,0],[0,ra],[na,ra]].map(function(aa){return calculatePosition(ea,aa,oa)})}function getRect(ea){var na=ea.map(function(da){return da[0]}),ra=ea.map(function(da){return da[1]}),oa=Math.min.apply(Math,__spreadArray$1([],__read(na),!1)),aa=Math.min.apply(Math,__spreadArray$1([],__read(ra),!1)),sa=Math.max.apply(Math,__spreadArray$1([],__read(na),!1)),la=Math.max.apply(Math,__spreadArray$1([],__read(ra),!1)),ca=sa-oa,ua=la-aa;return{left:oa,top:aa,right:sa,bottom:la,width:ca,height:ua}}function calculateRect(ea,na,ra,oa){var aa=calculatePoses(ea,na,ra,oa);return getRect(aa)}function getSVGOffset(ea,na,ra,oa,aa){var sa,la=ea.target,ca=ea.origin,ua=na.matrix,da=getSize$1(la),pa=da.offsetWidth,ha=da.offsetHeight,ga=ra.getBoundingClientRect(),fa=[0,0];ra===getDocumentBody(ra)&&(fa=getBodyOffset(la,!0));for(var ma=la.getBoundingClientRect(),va=ma.left-ga.left+ra.scrollLeft-(ra.clientLeft||0)+fa[0],xa=ma.top-ga.top+ra.scrollTop-(ra.clientTop||0)+fa[1],ya=ma.width,Aa=ma.height,Ca=multiplies(oa,aa,ua),Sa=calculateRect(Ca,pa,ha,oa),wa=Sa.left,ba=Sa.top,Ea=Sa.width,$a=Sa.height,Ma=calculatePosition(Ca,ca,oa),Ia=minus(Ma,[wa,ba]),Oa=[va+Ia[0]*ya/Ea,xa+Ia[1]*Aa/$a],Da=[0,0],Ta=0;++Ta<10;){var _a=invert(aa,oa);sa=__read(minus(calculatePosition(_a,Oa,oa),calculatePosition(_a,Ma,oa)),2),Da[0]=sa[0],Da[1]=sa[1];var La=multiplies(oa,aa,createOriginMatrix(Da,oa),ua),Na=calculateRect(La,pa,ha,oa),za=Na.left,Fa=Na.top,Ha=za-va,Va=Fa-xa;if(abs(Ha)<2&&abs(Va)<2)break;Oa[0]-=Ha,Oa[1]-=Va}return Da.map(function(Ua){return Math.round(Ua)})}function calculateMoveableClientPositions(ea,na,ra){var oa=ea.length===16,aa=oa?4:3,sa=na.map(function(ua){return calculatePosition(ea,ua,aa)}),la=ra.left,ca=ra.top;return sa.map(function(ua){return[ua[0]+la,ua[1]+ca]})}function getDistSize(ea){return Math.sqrt(ea[0]*ea[0]+ea[1]*ea[1])}function getDiagonalSize(ea,na){return getDistSize([na[0]-ea[0],na[1]-ea[1]])}function getLineStyle(ea,na,ra,oa){ra===void 0&&(ra=1),oa===void 0&&(oa=getRad$1(ea,na));var aa=getDiagonalSize(ea,na);return{transform:"translateY(-50%) translate(".concat(ea[0],"px, ").concat(ea[1],"px) rotate(").concat(oa,"rad) scaleY(").concat(ra,")"),width:"".concat(aa,"px")}}function getControlTransform(ea,na){for(var ra=[],oa=2;oa<arguments.length;oa++)ra[oa-2]=arguments[oa];var aa=ra.length,sa=ra.reduce(function(ca,ua){return ca+ua[0]},0)/aa,la=ra.reduce(function(ca,ua){return ca+ua[1]},0)/aa;return{transform:"translateZ(0px) translate(".concat(sa,"px, ").concat(la,"px) rotate(").concat(ea,"rad) scale(").concat(na,")")}}function getProps(ea,na){var ra=ea[na];return isObject(ra)?__assign$3(__assign$3({},ea),ra):ea}function getSize$1(ea){var na=ea&&!isUndefined(ea.offsetWidth),ra=0,oa=0,aa=0,sa=0,la=0,ca=0,ua=0,da=0,pa=0,ha=0,ga=0,fa=0,ma=1/0,va=1/0,xa=1/0,ya=1/0,Aa=0,Ca=0,Sa=!1;if(ea)if(!na&&ea.ownerSVGElement){var wa=ea.getBBox();Sa=!0,ra=wa.width,oa=wa.height,la=ra,ca=oa,ua=ra,da=oa,aa=ra,sa=oa}else{var ba=getCachedStyle(ea),Ea=ea.style,$a=ba("boxSizing")==="border-box",Ma=parseFloat(ba("borderLeftWidth"))||0,Ia=parseFloat(ba("borderRightWidth"))||0,Oa=parseFloat(ba("borderTopWidth"))||0,Da=parseFloat(ba("borderBottomWidth"))||0,Ta=parseFloat(ba("paddingLeft"))||0,_a=parseFloat(ba("paddingRight"))||0,La=parseFloat(ba("paddingTop"))||0,Na=parseFloat(ba("paddingBottom"))||0,za=Ta+_a,Fa=La+Na,Ha=Ma+Ia,Va=Oa+Da,Ua=za+Ha,Qa=Fa+Va,Wa=ba("position"),Za=0,Xa=0;if("clientLeft"in ea){var tl=null;if(Wa==="absolute"){var il=getOffsetInfo(ea,getDocumentBody(ea));tl=il.offsetParent}else tl=ea.parentElement;if(tl){var Ja=getCachedStyle(tl);Za=parseFloat(Ja("width")),Xa=parseFloat(Ja("height"))}}pa=Math.max(za,convertUnitSize(ba("minWidth"),Za)||0),ha=Math.max(Fa,convertUnitSize(ba("minHeight"),Xa)||0),ma=convertUnitSize(ba("maxWidth"),Za),va=convertUnitSize(ba("maxHeight"),Xa),isNaN(ma)&&(ma=1/0),isNaN(va)&&(va=1/0),Aa=convertUnitSize(Ea.width,0)||0,Ca=convertUnitSize(Ea.height,0)||0,la=parseFloat(ba("width"))||0,ca=parseFloat(ba("height"))||0,ua=abs(la-Aa)<1?between(pa,Aa||la,ma):la,da=abs(ca-Ca)<1?between(ha,Ca||ca,va):ca,ra=ua,oa=da,aa=ua,sa=da,$a?(xa=ma,ya=va,ga=pa,fa=ha,ua=ra-Ua,da=oa-Qa):(xa=ma+Ua,ya=va+Qa,ga=pa+Ua,fa=ha+Qa,ra=ua+Ua,oa=da+Qa),aa=ua+za,sa=da+Fa}return{svg:Sa,offsetWidth:ra,offsetHeight:oa,clientWidth:aa,clientHeight:sa,contentWidth:ua,contentHeight:da,inlineCSSWidth:Aa,inlineCSSHeight:Ca,cssWidth:la,cssHeight:ca,minWidth:pa,minHeight:ha,maxWidth:ma,maxHeight:va,minOffsetWidth:ga,minOffsetHeight:fa,maxOffsetWidth:xa,maxOffsetHeight:ya}}function getRotationRad(ea,na){return getRad$1(na>0?ea[0]:ea[1],na>0?ea[1]:ea[0])}function resetClientRect(){return{left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0}}function getExtendsRect(ea,na){var ra=ea===getDocumentBody(ea)||ea===getDocumentElement(ea),oa={clientLeft:ea.clientLeft,clientTop:ea.clientTop,clientWidth:ea.clientWidth,clientHeight:ea.clientHeight,scrollWidth:ea.scrollWidth,scrollHeight:ea.scrollHeight,overflow:!1};return ra&&(oa.clientHeight=Math.max(na.height,oa.clientHeight),oa.scrollHeight=Math.max(na.height,oa.scrollHeight)),oa.overflow=getCachedStyle(ea)("overflow")!=="visible",__assign$3(__assign$3({},na),oa)}function getClientRectByPosition(ea,na,ra,oa){var aa=ea.left,sa=ea.right,la=ea.top,ca=ea.bottom,ua=na.top,da=na.left,pa={left:da+aa,top:ua+la,right:da+sa,bottom:ua+ca,width:sa-aa,height:ca-la};return ra&&oa?getExtendsRect(ra,pa):pa}function getClientRect$1(ea,na){var ra=0,oa=0,aa=0,sa=0;if(ea){var la=ea.getBoundingClientRect();ra=la.left,oa=la.top,aa=la.width,sa=la.height}var ca={left:ra,top:oa,width:aa,height:sa,right:ra+aa,bottom:oa+sa};return ea&&na?getExtendsRect(ea,ca):ca}function getTotalOrigin(ea){var na=ea.props,ra=na.groupable,oa=na.svgOrigin,aa=ea.getState(),sa=aa.offsetWidth,la=aa.offsetHeight,ca=aa.svg,ua=aa.transformOrigin;return!ra&&ca&&oa?convertTransformOriginArray(oa,sa,la):ua}function getTotalDirection(ea,na,ra,oa){var aa;if(ea)aa=ea;else if(na)aa=[0,0];else{var sa=ra.target;aa=getDirection(sa,oa)}return aa}function getDirection(ea,na){if(ea){var ra=ea.getAttribute("data-rotation")||"",oa=ea.getAttribute("data-direction");if(na.deg=ra,!!oa){var aa=[0,0];return oa.indexOf("w")>-1&&(aa[0]=-1),oa.indexOf("e")>-1&&(aa[0]=1),oa.indexOf("n")>-1&&(aa[1]=-1),oa.indexOf("s")>-1&&(aa[1]=1),aa}}}function getAbsolutePoses(ea,na){return[plus(na,ea[0]),plus(na,ea[1]),plus(na,ea[2]),plus(na,ea[3])]}function getAbsolutePosesByState(ea){var na=ea.left,ra=ea.top,oa=ea.pos1,aa=ea.pos2,sa=ea.pos3,la=ea.pos4;return getAbsolutePoses([oa,aa,sa,la],[na,ra])}function unsetAbles(ea,na){ea[na?"controlAbles":"targetAbles"].forEach(function(ra){ra.unset&&ra.unset(ea)})}function unsetGesto(ea,na){var ra=na?"controlGesto":"targetGesto",oa=ea[ra];oa?.isIdle()===!1&&unsetAbles(ea,na),oa?.unset(),ea[ra]=null}function fillCSSObject(ea,na){if(na){var ra=getBeforeRenderableDatas(na);ra.nextStyle=__assign$3(__assign$3({},ra.nextStyle),ea)}return{style:ea,cssText:getKeys(ea).map(function(oa){return"".concat(decamelize(oa,"-"),": ").concat(ea[oa],";")}).join("")}}function fillAfterTransform(ea,na,ra){var oa=na.afterTransform||na.transform;return __assign$3(__assign$3({},fillCSSObject(__assign$3(__assign$3(__assign$3({},ea.style),na.style),{transform:oa}),ra)),{afterTransform:oa,transform:ea.transform})}function fillParams(ea,na,ra,oa){var aa=na.datas;aa.datas||(aa.datas={});var sa=__assign$3(__assign$3({},ra),{target:ea.state.target,clientX:na.clientX,clientY:na.clientY,inputEvent:na.inputEvent,currentTarget:ea,moveable:ea,datas:aa.datas,isRequest:na.isRequest,isRequestChild:na.isRequestChild,isFirstDrag:!!na.isFirstDrag,isTrusted:na.isTrusted!==!1,stopAble:function(){aa.isEventStart=!1},stopDrag:function(){var la;(la=na.stop)===null||la===void 0||la.call(na)}});return aa.isStartEvent?oa||(aa.lastEvent=sa):aa.isStartEvent=!0,sa}function fillEndParams(ea,na,ra){var oa=na.datas,aa="isDrag"in ra?ra.isDrag:na.isDrag;return oa.datas||(oa.datas={}),__assign$3(__assign$3({isDrag:aa},ra),{moveable:ea,target:ea.state.target,clientX:na.clientX,clientY:na.clientY,inputEvent:na.inputEvent,currentTarget:ea,lastEvent:oa.lastEvent,isDouble:na.isDouble,datas:oa.datas,isFirstDrag:!!na.isFirstDrag})}function catchEvent(ea,na,ra){ea._emitter.on(na,ra)}function triggerEvent(ea,na,ra,oa,aa){return ea.triggerEvent(na,ra,oa,aa)}function getComputedStyle$1(ea,na){return getWindow$1(ea).getComputedStyle(ea,na)}function filterAbles(ea,na,ra){var oa={},aa={};return ea.filter(function(sa){var la=sa.name;if(oa[la]||!na.some(function(ca){return sa[ca]}))return!1;if(!ra&&sa.ableGroup){if(aa[sa.ableGroup])return!1;aa[sa.ableGroup]=!0}return oa[la]=!0,!0})}function equals(ea,na){return ea===na||ea==null&&na==null}function selectValue(){for(var ea=[],na=0;na<arguments.length;na++)ea[na]=arguments[na];for(var ra=ea.length-1,oa=0;oa<ra;++oa){var aa=ea[oa];if(!isUndefined(aa))return aa}return ea[ra]}function groupBy(ea,na){var ra=[],oa=[];return ea.forEach(function(aa,sa){var la=na(aa,sa,ea),ca=oa.indexOf(la),ua=ra[ca]||[];ca===-1&&(oa.push(la),ra.push(ua)),ua.push(aa)}),ra}function groupByMap(ea,na){var ra=[],oa={};return ea.forEach(function(aa,sa){var la=na(aa,sa,ea),ca=oa[la];ca||(ca=[],oa[la]=ca,ra.push(ca)),ca.push(aa)}),ra}function flat(ea){return ea.reduce(function(na,ra){return na.concat(ra)},[])}function maxOffset(){for(var ea=[],na=0;na<arguments.length;na++)ea[na]=arguments[na];return ea.sort(function(ra,oa){return abs(oa)-abs(ra)}),ea[0]}function calculateInversePosition(ea,na,ra){return calculate(invert(ea,ra),convertPositionMatrix(na,ra),ra)}function convertDragDist(ea,na){var ra,oa=ea.is3d,aa=ea.rootMatrix,sa=oa?4:3;return ra=__read(calculateInversePosition(aa,[na.distX,na.distY],sa),2),na.distX=ra[0],na.distY=ra[1],na}function calculatePadding(ea,na,ra,oa){if(!ra[0]&&!ra[1])return na;var aa=calculatePosition(ea,[normalized(ra[0]||1),0],oa),sa=calculatePosition(ea,[0,normalized(ra[1]||1)],oa),la=calculatePosition(ea,[ra[0]/getDistSize(aa),ra[1]/getDistSize(sa)],oa);return plus(na,la)}function convertCSSSize(ea,na,ra){return ra?"".concat(ea/na*100,"%"):"".concat(ea,"px")}function getTinyDist(ea){return abs(ea)<=TINY_NUM?0:ea}function getDirectionViewClassName(ea){return function(na){if(!na.isDragging(ea))return"";var ra=getGestoData(na,ea),oa=ra.deg;return oa?prefix("view-control-rotation".concat(oa)):""}}function getDirectionCondition(ea,na){return na===void 0&&(na=[ea]),function(ra,oa){if(oa.isRequest)return na.some(function(sa){return oa.requestAble===sa})?oa.parentDirection:!1;var aa=oa.inputEvent.target;return hasClass(aa,prefix("direction"))&&(!ea||hasClass(aa,prefix(ea)))}}function convertTransformInfo(ea,na,ra){var oa,aa=parse$1(ea,{"x%":function(wa){return wa/100*na.offsetWidth},"y%":function(wa){return wa/100*na.offsetHeight}}),sa=ea.slice(0,ra<0?void 0:ra),la=ea.slice(0,ra<0?void 0:ra+1),ca=ea[ra]||"",ua=ra<0?[]:ea.slice(ra),da=ra<0?[]:ea.slice(ra+1),pa=aa.slice(0,ra<0?void 0:ra),ha=aa.slice(0,ra<0?void 0:ra+1),ga=(oa=aa[ra])!==null&&oa!==void 0?oa:parse$1([""])[0],fa=ra<0?[]:aa.slice(ra),ma=ra<0?[]:aa.slice(ra+1),va=ga?[ga]:[],xa=toMat(pa),ya=toMat(ha),Aa=toMat(fa),Ca=toMat(ma),Sa=multiply(xa,Aa,4);return{transforms:ea,beforeFunctionMatrix:xa,beforeFunctionMatrix2:ya,targetFunctionMatrix:toMat(va),afterFunctionMatrix:Aa,afterFunctionMatrix2:Ca,allFunctionMatrix:Sa,beforeFunctions:pa,beforeFunctions2:ha,targetFunction:va[0],afterFunctions:fa,afterFunctions2:ma,beforeFunctionTexts:sa,beforeFunctionTexts2:la,targetFunctionText:ca,afterFunctionTexts:ua,afterFunctionTexts2:da}}function isArrayFormat(ea){return!ea||!isObject(ea)||isNode$1(ea)?!1:isArray(ea)||"length"in ea}function getRefTarget(ea,na){return ea?isNode$1(ea)?ea:isString$1(ea)?na?document.querySelector(ea):ea:isFunction(ea)?ea():isWindow$1(ea)?ea:"current"in ea?ea.current:ea:null}function getRefTargets(ea,na){if(!ea)return[];var ra=isArrayFormat(ea)?[].slice.call(ea):[ea];return ra.reduce(function(oa,aa){return isString$1(aa)&&na?__spreadArray$1(__spreadArray$1([],__read(oa),!1),__read([].slice.call(document.querySelectorAll(aa))),!1):(isArray(aa)?oa.push(getRefTargets(aa,na)):oa.push(getRefTarget(aa,na)),oa)},[])}function getAbsoluteRotation(ea,na,ra){var oa=getRad$1(ea,na)/Math.PI*180;return oa=ra>=0?oa:180-oa,oa=oa>=0?oa:360+oa,oa}function getDragDistByState(ea,na){var ra=ea.rootMatrix,oa=ea.is3d,aa=oa?4:3,sa=invert(ra,aa);return oa||(sa=convertDimension(sa,3,4)),sa[12]=0,sa[13]=0,sa[14]=0,calculateMatrixDist(sa,na)}function getSizeDistByDist(ea,na,ra,oa,aa){var sa=__read(ea,2),la=sa[0],ca=sa[1],ua=0,da=0;if(aa&&la&&ca){var pa=getRad$1([0,0],na),ha=getRad$1([0,0],oa),ga=getDistSize(na),fa=Math.cos(pa-ha)*ga;if(!oa[0])da=fa,ua=da*ra;else if(!oa[1])ua=fa,da=ua/ra;else{var ma=oa[0]*la,va=oa[1]*ca,xa=Math.atan2(ma+na[0],va+na[1]),ya=Math.atan2(ma,va);xa<0&&(xa+=Math.PI*2),ya<0&&(ya+=Math.PI*2);var Aa=0;abs(xa-ya)<Math.PI/2||abs(xa-ya)>Math.PI/2*3||(ya+=Math.PI),Aa=xa-ya,Aa>Math.PI*2?Aa-=Math.PI*2:Aa>Math.PI?Aa=2*Math.PI-Aa:Aa<-Math.PI&&(Aa=-2*Math.PI-Aa);var Ca=getDistSize([ma+na[0],va+na[1]])*Math.cos(Aa);ua=Ca*Math.sin(ya)-ma,da=Ca*Math.cos(ya)-va,oa[0]<0&&(ua*=-1),oa[1]<0&&(da*=-1)}}else ua=oa[0]*na[0],da=oa[1]*na[1];return[ua,da]}function getOffsetSizeDist(ea,na,ra,oa){var aa,sa=ra.ratio,la=ra.startOffsetWidth,ca=ra.startOffsetHeight,ua=0,da=0,pa=oa.distX,ha=oa.distY,ga=oa.pinchScale,fa=oa.parentDistance,ma=oa.parentDist,va=oa.parentScale,xa=ra.fixedDirection,ya=[0,1].map(function(Ea){return abs(ea[Ea]-xa[Ea])}),Aa=[0,1].map(function(Ea){var $a=ya[Ea];return $a!==0&&($a=2/$a),$a});if(ma)ua=ma[0],da=ma[1],na&&(ua?da||(da=ua/sa):ua=da*sa);else if(isNumber(ga))ua=(ga-1)*la,da=(ga-1)*ca;else if(va)ua=(va[0]-1)*la,da=(va[1]-1)*ca;else if(fa){var Ca=la*ya[0],Sa=ca*ya[1],wa=getDistSize([Ca,Sa]);ua=fa/wa*Ca*Aa[0],da=fa/wa*Sa*Aa[1]}else{var ba=getDragDist({datas:ra,distX:pa,distY:ha});ba=Aa.map(function(Ea,$a){return ba[$a]*Ea}),aa=__read(getSizeDistByDist([la,ca],ba,sa,ea,na),2),ua=aa[0],da=aa[1]}return{distWidth:ua,distHeight:da}}function convertTransformUnit(ea,na){if(na){if(ea==="left")return{x:"0%",y:"50%"};if(ea==="top")return{x:"50%",y:"50%"};if(ea==="center")return{x:"50%",y:"50%"};if(ea==="right")return{x:"100%",y:"50%"};if(ea==="bottom")return{x:"50%",y:"100%"};var ra=__read(ea.split(" "),2),oa=ra[0],aa=ra[1],sa=convertTransformUnit(oa||""),la=convertTransformUnit(aa||""),ca=__assign$3(__assign$3({},sa),la),ua={x:"50%",y:"50%"};return ca.x&&(ua.x=ca.x),ca.y&&(ua.y=ca.y),ca.value&&(ca.x&&!ca.y&&(ua.y=ca.value),!ca.x&&ca.y&&(ua.x=ca.value)),ua}return ea==="left"?{x:"0%"}:ea==="right"?{x:"100%"}:ea==="top"?{y:"0%"}:ea==="bottom"?{y:"100%"}:ea?ea==="center"?{value:"50%"}:{value:ea}:{}}function convertTransformOriginArray(ea,na,ra){var oa=convertTransformUnit(ea,!0),aa=oa.x,sa=oa.y;return[convertUnitSize(aa,na)||0,convertUnitSize(sa,ra)||0]}function rotatePosesInfo(ea,na,ra){var oa=ea.map(function(sa){return minus(sa,na)}),aa=oa.map(function(sa){return rotate(sa,ra)});return{prev:oa,next:aa,result:aa.map(function(sa){return plus(sa,na)})}}function isDeepArrayEquals(ea,na){return ea.length===na.length&&ea.every(function(ra,oa){var aa=na[oa],sa=isArray(ra),la=isArray(aa);return sa&&la?isDeepArrayEquals(ra,aa):!sa&&!la?ra===aa:!1})}function watchValue(ea,na,ra,oa,aa){var sa=ea._store,la=sa[na];if(!(na in sa))if(aa!=null)sa[na]=aa,la=aa;else return sa[na]=ra,ra;return la===ra||oa(la)===oa(ra)?la:(sa[na]=ra,ra)}function sign(ea){return ea>=0?1:-1}function abs(ea){return Math.abs(ea)}function countEach(ea,na){return counter(ea).map(function(ra){return na(ra)})}function getPaddingBox(ea){return isNumber(ea)?{top:ea,left:ea,right:ea,bottom:ea}:{left:ea.left||0,top:ea.top||0,right:ea.right||0,bottom:ea.bottom||0}}var Pinchable=makeAble("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(ea,na){var ra=na.datas,oa=na.targets,aa=na.angle,sa=na.originalDatas,la=ea.props,ca=la.pinchable,ua=la.ables;if(!ca)return!1;var da="onPinch".concat(oa?"Group":"","Start"),pa="drag".concat(oa?"Group":"","ControlStart"),ha=(ca===!0?ea.controlAbles:ua.filter(function(va){return ca.indexOf(va.name)>-1})).filter(function(va){return va.canPinch&&va[pa]}),ga=fillParams(ea,na,{});oa&&(ga.targets=oa);var fa=triggerEvent(ea,da,ga);ra.isPinch=fa!==!1,ra.ables=ha;var ma=ra.isPinch;return ma?(ha.forEach(function(va){if(sa[va.name]=sa[va.name]||{},!!va[pa]){var xa=__assign$3(__assign$3({},na),{datas:sa[va.name],parentRotate:aa,isPinch:!0});va[pa](ea,xa)}}),ea.state.snapRenderInfo={request:na.isRequest,direction:[0,0]},ma):!1},pinch:function(ea,na){var ra=na.datas,oa=na.scale,aa=na.distance,sa=na.originalDatas,la=na.inputEvent,ca=na.targets,ua=na.angle;if(ra.isPinch){var da=aa*(1-1/oa),pa=fillParams(ea,na,{});ca&&(pa.targets=ca);var ha="onPinch".concat(ca?"Group":"");triggerEvent(ea,ha,pa);var ga=ra.ables,fa="drag".concat(ca?"Group":"","Control");return ga.forEach(function(ma){ma[fa]&&ma[fa](ea,__assign$3(__assign$3({},na),{datas:sa[ma.name],inputEvent:la,resolveMatrix:!0,pinchScale:oa,parentDistance:da,parentRotate:ua,isPinch:!0}))}),pa}},pinchEnd:function(ea,na){var ra=na.datas,oa=na.isPinch,aa=na.inputEvent,sa=na.targets,la=na.originalDatas;if(ra.isPinch){var ca="onPinch".concat(sa?"Group":"","End"),ua=fillEndParams(ea,na,{isDrag:oa});sa&&(ua.targets=sa),triggerEvent(ea,ca,ua);var da=ra.ables,pa="drag".concat(sa?"Group":"","ControlEnd");return da.forEach(function(ha){ha[pa]&&ha[pa](ea,__assign$3(__assign$3({},na),{isDrag:oa,datas:la[ha.name],inputEvent:aa,isPinch:!0}))}),oa}},pinchGroupStart:function(ea,na){return this.pinchStart(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},pinchGroup:function(ea,na){return this.pinch(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},pinchGroupEnd:function(ea,na){return this.pinchEnd(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))}}),directionCondition=getDirectionCondition("scalable"),Scalable={name:"scalable",ableGroup:"size",canPinch:!0,props:["scalable","throttleScale","renderDirections","keepRatio","edge","displayAroundControls"],events:["scaleStart","beforeScale","scale","scaleEnd","scaleGroupStart","beforeScaleGroup","scaleGroup","scaleGroupEnd"],render:getRenderDirections("scalable"),dragControlCondition:directionCondition,viewClassName:getDirectionViewClassName("scalable"),dragControlStart:function(ea,na){var ra=na.datas,oa=na.isPinch,aa=na.inputEvent,sa=na.parentDirection,la=getTotalDirection(sa,oa,aa,ra),ca=ea.state,ua=ca.width,da=ca.height,pa=ca.targetTransform,ha=ca.target,ga=ca.pos1,fa=ca.pos2,ma=ca.pos4;if(!la||!ha)return!1;oa||setDragStart(ea,na),ra.datas={},ra.transform=pa,ra.prevDist=[1,1],ra.direction=la,ra.startOffsetWidth=ua,ra.startOffsetHeight=da,ra.startValue=[1,1];var va=!la[0]&&!la[1]||la[0]||!la[1];setDefaultTransformIndex(ea,na,"scale"),ra.isWidth=va;function xa(ba){ra.ratio=ba&&isFinite(ba)?ba:0}ra.startPositions=getAbsolutePosesByState(ea.state);function ya(ba){var Ea=getFixedDirectionInfo(ra.startPositions,ba);ra.fixedDirection=Ea.fixedDirection,ra.fixedPosition=Ea.fixedPosition,ra.fixedOffset=Ea.fixedOffset}ra.setFixedDirection=ya,xa(getDist$2(ga,fa)/getDist$2(fa,ma)),ya([-la[0],-la[1]]);var Aa=function(ba){ra.minScaleSize=ba},Ca=function(ba){ra.maxScaleSize=ba};Aa([-1/0,-1/0]),Ca([1/0,1/0]);var Sa=fillParams(ea,na,__assign$3(__assign$3({direction:la,set:function(ba){ra.startValue=ba},setRatio:xa,setFixedDirection:ya,setMinScaleSize:Aa,setMaxScaleSize:Ca},fillTransformStartEvent(ea,na)),{dragStart:Draggable.dragStart(ea,new CustomGesto().dragStart([0,0],na))})),wa=triggerEvent(ea,"onScaleStart",Sa);return ra.startFixedDirection=ra.fixedDirection,wa!==!1&&(ra.isScale=!0,ea.state.snapRenderInfo={request:na.isRequest,direction:la}),ra.isScale?Sa:!1},dragControl:function(ea,na){resolveTransformEvent(ea,na,"scale");var ra=na.datas,oa=na.parentKeepRatio,aa=na.parentFlag,sa=na.isPinch,la=na.dragClient,ca=na.isRequest,ua=na.useSnap,da=na.resolveMatrix,pa=ra.prevDist,ha=ra.direction,ga=ra.startOffsetWidth,fa=ra.startOffsetHeight,ma=ra.isScale,va=ra.startValue,xa=ra.isWidth,ya=ra.ratio;if(!ma)return!1;var Aa=ea.props,Ca=Aa.throttleScale,Sa=Aa.parentMoveable,wa=ha;!ha[0]&&!ha[1]&&(wa=[1,1]);var ba=ya&&(oa??Aa.keepRatio)||!1,Ea=ea.state,$a=[va[0],va[1]];function Ma(){var rl=getOffsetSizeDist(wa,ba,ra,na),sl=rl.distWidth,dl=rl.distHeight,pl=ga?(ga+sl)/ga:1,ml=fa?(fa+dl)/fa:1;va[0]||($a[0]=sl/ga),va[1]||($a[1]=dl/fa);var Rl=(wa[0]||ba?pl:1)*$a[0],Tl=(wa[1]||ba?ml:1)*$a[1];return Rl===0&&(Rl=sign(pa[0])*MIN_SCALE),Tl===0&&(Tl=sign(pa[1])*MIN_SCALE),[Rl,Tl]}var Ia=Ma();if(!sa&&ea.props.groupable){var Oa=Ea.snapRenderInfo||{},Da=Oa.direction;isArray(Da)&&(Da[0]||Da[1])&&(Ea.snapRenderInfo={direction:ha,request:na.isRequest})}triggerEvent(ea,"onBeforeScale",fillParams(ea,na,{scale:Ia,setFixedDirection:function(rl){return ra.setFixedDirection(rl),Ia=Ma(),Ia},startFixedDirection:ra.startFixedDirection,setScale:function(rl){Ia=rl}},!0));var Ta=[Ia[0]/$a[0],Ia[1]/$a[1]],_a=la,La=[0,0],Na=sign(Ta[0]*Ta[1]),za=!la&&!aa&&sa;if(za||da?_a=getTranslateFixedPosition(ea,ra.targetAllTransform,[0,0],[0,0],ra):la||(_a=ra.fixedPosition),sa||(La=checkSnapScale(ea,Ta,ha,!ua&&ca,ra)),ba){wa[0]&&wa[1]&&La[0]&&La[1]&&(Math.abs(La[0]*ga)>Math.abs(La[1]*fa)?La[1]=0:La[0]=0);var Fa=!La[0]&&!La[1];if(Fa&&(xa?Ta[0]=throttle$1(Ta[0]*$a[0],Ca)/$a[0]:Ta[1]=throttle$1(Ta[1]*$a[1],Ca)/$a[1]),wa[0]&&!wa[1]||La[0]&&!La[1]||Fa&&xa){Ta[0]+=La[0];var Ha=ga*Ta[0]*$a[0]/ya;Ta[1]=sign(Na*Ta[0])*abs(Ha/fa/$a[1])}else if(!wa[0]&&wa[1]||!La[0]&&La[1]||Fa&&!xa){Ta[1]+=La[1];var Va=fa*Ta[1]*$a[1]*ya;Ta[0]=sign(Na*Ta[1])*abs(Va/ga/$a[0])}}else Ta[0]+=La[0],Ta[1]+=La[1],La[0]||(Ta[0]=throttle$1(Ta[0]*$a[0],Ca)/$a[0]),La[1]||(Ta[1]=throttle$1(Ta[1]*$a[1],Ca)/$a[1]);Ta[0]===0&&(Ta[0]=sign(pa[0])*MIN_SCALE),Ta[1]===0&&(Ta[1]=sign(pa[1])*MIN_SCALE),Ia=multiply2(Ta,[$a[0],$a[1]]);var Ua=[ga,fa],Qa=[ga*Ia[0],fa*Ia[1]];Qa=calculateBoundSize(Qa,ra.minScaleSize,ra.maxScaleSize,ba?ya:!1),Ia=countEach(2,function(rl){return Ua[rl]?Qa[rl]/Ua[rl]:Qa[rl]}),Ta=countEach(2,function(rl){return Ia[rl]/$a[rl]});var Wa=countEach(2,function(rl){return pa[rl]?Ta[rl]/pa[rl]:Ta[rl]}),Za="scale(".concat(Ta.join(", "),")"),Xa="scale(".concat(Ia.join(", "),")"),tl=convertTransformFormat(ra,Xa,Za),il=!va[0]||!va[1],Ja=getScaleDist(ea,il?Xa:Za,ra.fixedDirection,_a,ra.fixedOffset,ra,il),nl=za?Ja:minus(Ja,ra.prevInverseDist||[0,0]);if(ra.prevDist=Ta,ra.prevInverseDist=Ja,Ia[0]===pa[0]&&Ia[1]===pa[1]&&nl.every(function(rl){return!rl})&&!Sa&&!za)return!1;var Ya=fillParams(ea,na,__assign$3({offsetWidth:ga,offsetHeight:fa,direction:ha,scale:Ia,dist:Ta,delta:Wa,isPinch:!!sa},fillTransformEvent(ea,tl,nl,sa,na)));return triggerEvent(ea,"onScale",Ya),Ya},dragControlEnd:function(ea,na){var ra=na.datas;if(!ra.isScale)return!1;ra.isScale=!1;var oa=fillEndParams(ea,na,{});return triggerEvent(ea,"onScaleEnd",oa),oa},dragGroupControlCondition:directionCondition,dragGroupControlStart:function(ea,na){var ra=na.datas,oa=this.dragControlStart(ea,na);if(!oa)return!1;var aa=fillChildEvents(ea,"resizable",na);ra.moveableScale=ea.scale;var sa=triggerChildAbles(ea,this,"dragControlStart",na,function(da,pa){return startChildDist(ea,da,ra,pa)}),la=function(da){oa.setFixedDirection(da),sa.forEach(function(pa,ha){pa.setFixedDirection(da),startChildDist(ea,pa.moveable,ra,aa[ha])})};ra.setFixedDirection=la;var ca=__assign$3(__assign$3({},oa),{targets:ea.props.targets,events:sa,setFixedDirection:la}),ua=triggerEvent(ea,"onScaleGroupStart",ca);return ra.isScale=ua!==!1,ra.isScale?ca:!1},dragGroupControl:function(ea,na){var ra=na.datas;if(ra.isScale){catchEvent(ea,"onBeforeScale",function(pa){triggerEvent(ea,"onBeforeScaleGroup",fillParams(ea,na,__assign$3(__assign$3({},pa),{targets:ea.props.targets}),!0))});var oa=this.dragControl(ea,na);if(oa){var aa=oa.dist,sa=ra.moveableScale;ea.scale=[aa[0]*sa[0],aa[1]*sa[1]];var la=ea.props.keepRatio,ca=ra.fixedPosition,ua=triggerChildAbles(ea,this,"dragControl",na,function(pa,ha){var ga=__read(calculate(createRotateMatrix(ea.rotation/180*Math.PI,3),[ha.datas.originalX*aa[0],ha.datas.originalY*aa[1],1],3),2),fa=ga[0],ma=ga[1];return __assign$3(__assign$3({},ha),{parentDist:null,parentScale:aa,parentKeepRatio:la,dragClient:plus(ca,[fa,ma])})}),da=__assign$3({targets:ea.props.targets,events:ua},oa);return triggerEvent(ea,"onScaleGroup",da),da}}},dragGroupControlEnd:function(ea,na){var ra=na.isDrag,oa=na.datas;if(oa.isScale){this.dragControlEnd(ea,na);var aa=triggerChildAbles(ea,this,"dragControlEnd",na),sa=fillEndParams(ea,na,{targets:ea.props.targets,events:aa});return triggerEvent(ea,"onScaleGroupEnd",sa),ra}},request:function(){var ea={},na=0,ra=0,oa=!1;return{isControl:!0,requestStart:function(aa){return oa=aa.useSnap,{datas:ea,parentDirection:aa.direction||[1,1],useSnap:oa}},request:function(aa){return na+=aa.deltaWidth,ra+=aa.deltaHeight,{datas:ea,parentDist:[na,ra],parentKeepRatio:aa.keepRatio,useSnap:oa}},requestEnd:function(){return{datas:ea,isDrag:!0,useSnap:oa}}}}};function getMiddleLinePos(ea,na){return ea.map(function(ra,oa){return dot(ra,na[oa],1,2)})}function getTriangleRad(ea,na,ra){var oa=getRad$1(ea,na),aa=getRad$1(ea,ra),sa=aa-oa;return sa>=0?sa:sa+2*Math.PI}function isValidPos(ea,na){var ra=getTriangleRad(ea[0],ea[1],ea[2]),oa=getTriangleRad(na[0],na[1],na[2]),aa=Math.PI;return!(ra>=aa&&oa<=aa||ra<=aa&&oa>=aa)}var Warpable={name:"warpable",ableGroup:"size",props:["warpable","renderDirections","edge","displayAroundControls"],events:["warpStart","warp","warpEnd"],viewClassName:getDirectionViewClassName("warpable"),render:function(ea,na){var ra=ea.props,oa=ra.resizable,aa=ra.scalable,sa=ra.warpable,la=ra.zoom;if(oa||aa||!sa)return[];var ca=ea.state,ua=ca.pos1,da=ca.pos2,pa=ca.pos3,ha=ca.pos4,ga=getMiddleLinePos(ua,da),fa=getMiddleLinePos(da,ua),ma=getMiddleLinePos(ua,pa),va=getMiddleLinePos(pa,ua),xa=getMiddleLinePos(pa,ha),ya=getMiddleLinePos(ha,pa),Aa=getMiddleLinePos(da,ha),Ca=getMiddleLinePos(ha,da);return __spreadArray$1([na.createElement("div",{className:prefix("line"),key:"middeLine1",style:getLineStyle(ga,xa,la)}),na.createElement("div",{className:prefix("line"),key:"middeLine2",style:getLineStyle(fa,ya,la)}),na.createElement("div",{className:prefix("line"),key:"middeLine3",style:getLineStyle(ma,Aa,la)}),na.createElement("div",{className:prefix("line"),key:"middeLine4",style:getLineStyle(va,Ca,la)})],__read(renderAllDirections(ea,"warpable",na)),!1)},dragControlCondition:function(ea,na){if(na.isRequest)return!1;var ra=na.inputEvent.target;return hasClass(ra,prefix("direction"))&&hasClass(ra,prefix("warpable"))},dragControlStart:function(ea,na){var ra=na.datas,oa=na.inputEvent,aa=ea.props.target,sa=oa.target,la=getDirection(sa,ra);if(!la||!aa)return!1;var ca=ea.state,ua=ca.transformOrigin,da=ca.is3d,pa=ca.targetTransform,ha=ca.targetMatrix,ga=ca.width,fa=ca.height,ma=ca.left,va=ca.top;ra.datas={},ra.targetTransform=pa,ra.warpTargetMatrix=da?ha:convertDimension(ha,3,4),ra.targetInverseMatrix=ignoreDimension(invert(ra.warpTargetMatrix,4),3,4),ra.direction=la,ra.left=ma,ra.top=va,ra.poses=[[0,0],[ga,0],[0,fa],[ga,fa]].map(function(Aa){return minus(Aa,ua)}),ra.nextPoses=ra.poses.map(function(Aa){var Ca=__read(Aa,2),Sa=Ca[0],wa=Ca[1];return calculate(ra.warpTargetMatrix,[Sa,wa,0,1],4)}),ra.startValue=createIdentityMatrix(4),ra.prevMatrix=createIdentityMatrix(4),ra.absolutePoses=getAbsolutePosesByState(ca),ra.posIndexes=getPosIndexesByDirection(la),setDragStart(ea,na),setDefaultTransformIndex(ea,na,"matrix3d"),ca.snapRenderInfo={request:na.isRequest,direction:la};var xa=fillParams(ea,na,__assign$3({set:function(Aa){ra.startValue=Aa}},fillTransformStartEvent(ea,na))),ya=triggerEvent(ea,"onWarpStart",xa);return ya!==!1&&(ra.isWarp=!0),ra.isWarp},dragControl:function(ea,na){var ra=na.datas,oa=na.isRequest,aa=na.distX,sa=na.distY,la=ra.targetInverseMatrix,ca=ra.prevMatrix,ua=ra.isWarp,da=ra.startValue,pa=ra.poses,ha=ra.posIndexes,ga=ra.absolutePoses;if(!ua)return!1;if(resolveTransformEvent(ea,na,"matrix3d"),hasGuidelines(ea,"warpable")){var fa=ha.map(function(Ma){return ga[Ma]});fa.length>1&&fa.push([(fa[0][0]+fa[1][0])/2,(fa[0][1]+fa[1][1])/2]);var ma=checkMoveableSnapBounds(ea,oa,{horizontal:fa.map(function(Ma){return Ma[1]+sa}),vertical:fa.map(function(Ma){return Ma[0]+aa})}),va=ma.horizontal,xa=ma.vertical;sa-=va.offset,aa-=xa.offset}var ya=getDragDist({datas:ra,distX:aa,distY:sa},!0),Aa=ra.nextPoses.slice();if(ha.forEach(function(Ma){Aa[Ma]=plus(Aa[Ma],ya)}),!NEARBY_POS.every(function(Ma){return isValidPos(Ma.map(function(Ia){return pa[Ia]}),Ma.map(function(Ia){return Aa[Ia]}))}))return!1;var Ca=createWarpMatrix(pa[0],pa[2],pa[1],pa[3],Aa[0],Aa[2],Aa[1],Aa[3]);if(!Ca.length)return!1;var Sa=multiply(la,Ca,4),wa=getTransfromMatrix(ra,Sa,!0),ba=multiply(invert(ca,4),wa,4);ra.prevMatrix=wa;var Ea=multiply(da,wa,4),$a=convertTransformFormat(ra,"matrix3d(".concat(Ea.join(", "),")"),"matrix3d(".concat(wa.join(", "),")"));return fillOriginalTransform(na,$a),triggerEvent(ea,"onWarp",fillParams(ea,na,__assign$3({delta:ba,matrix:Ea,dist:wa,multiply,transform:$a},fillCSSObject({transform:$a},na)))),!0},dragControlEnd:function(ea,na){var ra=na.datas,oa=na.isDrag;return ra.isWarp?(ra.isWarp=!1,triggerEvent(ea,"onWarpEnd",fillEndParams(ea,na,{})),oa):!1}},AREA_PIECES=prefix("area-pieces"),AREA_PIECE=prefix("area-piece"),AVOID=prefix("avoid"),VIEW_DRAGGING=prefix("view-dragging");function restoreStyle(ea){var na=ea.areaElement;if(na){var ra=ea.state,oa=ra.width,aa=ra.height;removeClass(na,AVOID),na.style.cssText+="left: 0px; top: 0px; width: ".concat(oa,"px; height: ").concat(aa,"px")}}function renderPieces(ea){return ea.createElement("div",{key:"area_pieces",className:AREA_PIECES},ea.createElement("div",{className:AREA_PIECE}),ea.createElement("div",{className:AREA_PIECE}),ea.createElement("div",{className:AREA_PIECE}),ea.createElement("div",{className:AREA_PIECE}))}var DragArea={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(ea,na){var ra=ea.props,oa=ra.target,aa=ra.dragArea,sa=ra.groupable,la=ra.passDragArea,ca=ea.getState(),ua=ca.width,da=ca.height,pa=ca.renderPoses,ha=la?prefix("area","pass"):prefix("area");if(sa)return[na.createElement("div",{key:"area",ref:ref(ea,"areaElement"),className:ha}),renderPieces(na)];if(!oa||!aa)return[];var ga=createWarpMatrix([0,0],[ua,0],[0,da],[ua,da],pa[0],pa[1],pa[2],pa[3]),fa=ga.length?makeMatrixCSS(ga,!0):"none";return[na.createElement("div",{key:"area",ref:ref(ea,"areaElement"),className:ha,style:{top:"0px",left:"0px",width:"".concat(ua,"px"),height:"".concat(da,"px"),transformOrigin:"0 0",transform:fa}}),renderPieces(na)]},dragStart:function(ea,na){var ra=na.datas,oa=na.clientX,aa=na.clientY,sa=na.inputEvent;if(!sa)return!1;ra.isDragArea=!1;var la=ea.areaElement,ca=ea.state,ua=ca.moveableClientRect,da=ca.renderPoses,pa=ca.rootMatrix,ha=ca.is3d,ga=ua.left,fa=ua.top,ma=getRect(da),va=ma.left,xa=ma.top,ya=ma.width,Aa=ma.height,Ca=ha?4:3,Sa=__read(calculateInversePosition(pa,[oa-ga,aa-fa],Ca),2),wa=Sa[0],ba=Sa[1];wa-=va,ba-=xa;var Ea=[{left:va,top:xa,width:ya,height:ba-10},{left:va,top:xa,width:wa-10,height:Aa},{left:va,top:xa+ba+10,width:ya,height:Aa-ba-10},{left:va+wa+10,top:xa,width:ya-wa-10,height:Aa}],$a=[].slice.call(la.nextElementSibling.children);Ea.forEach(function(Ma,Ia){$a[Ia].style.cssText="left: ".concat(Ma.left,"px;top: ").concat(Ma.top,"px; width: ").concat(Ma.width,"px; height: ").concat(Ma.height,"px;")}),addClass(la,AVOID),ca.disableNativeEvent=!0},drag:function(ea,na){var ra=na.datas,oa=na.inputEvent;if(this.enableNativeEvent(ea),!oa)return!1;ra.isDragArea||(ra.isDragArea=!0,restoreStyle(ea))},dragEnd:function(ea,na){this.enableNativeEvent(ea);var ra=na.inputEvent,oa=na.datas;if(!ra)return!1;oa.isDragArea||restoreStyle(ea)},dragGroupStart:function(ea,na){return this.dragStart(ea,na)},dragGroup:function(ea,na){return this.drag(ea,na)},dragGroupEnd:function(ea,na){return this.dragEnd(ea,na)},unset:function(ea){restoreStyle(ea),ea.state.disableNativeEvent=!1},enableNativeEvent:function(ea){var na=ea.state;na.disableNativeEvent&&requestAnimationFrame$1(function(){na.disableNativeEvent=!1})}},Origin=makeAble("origin",{props:["origin","svgOrigin"],render:function(ea,na){var ra=ea.props,oa=ra.zoom,aa=ra.svgOrigin,sa=ra.groupable,la=ea.getState(),ca=la.beforeOrigin,ua=la.rotation,da=la.svg,pa=la.allMatrix,ha=la.is3d,ga=la.left,fa=la.top,ma=la.offsetWidth,va=la.offsetHeight,xa;if(!sa&&da&&aa){var ya=__read(convertTransformOriginArray(aa,ma,va),2),Aa=ya[0],Ca=ya[1],Sa=ha?4:3,wa=calculatePosition(pa,[Aa,Ca],Sa);xa=getControlTransform(ua,oa,minus(wa,[ga,fa]))}else xa=getControlTransform(ua,oa,ca);return[na.createElement("div",{className:prefix("control","origin"),style:xa,key:"beforeOrigin"})]}});function getDefaultScrollPosition(ea){var na=ea.scrollContainer;return[na.scrollLeft,na.scrollTop]}var Scrollable={name:"scrollable",canPinch:!0,props:["scrollable","scrollContainer","scrollThreshold","scrollThrottleTime","getScrollPosition","scrollOptions"],events:["scroll","scrollGroup"],dragRelation:"strong",dragStart:function(ea,na){var ra=ea.props,oa=ra.scrollContainer,aa=oa===void 0?ea.getContainer():oa,sa=ra.scrollOptions,la=new DragScroll,ca=getRefTarget(aa,!0);na.datas.dragScroll=la,ea.state.dragScroll=la;var ua=na.isControl?"controlGesto":"targetGesto",da=na.targets;la.on("scroll",function(pa){var ha=pa.container,ga=pa.direction,fa=fillParams(ea,na,{scrollContainer:ha,direction:ga}),ma=da?"onScrollGroup":"onScroll";da&&(fa.targets=da),triggerEvent(ea,ma,fa)}).on("move",function(pa){var ha=pa.offsetX,ga=pa.offsetY,fa=pa.inputEvent;ea[ua].scrollBy(ha,ga,fa.inputEvent,!1)}).on("scrollDrag",function(pa){var ha=pa.next;ha(ea[ua].getCurrentEvent())}),la.dragStart(na,__assign$3({container:ca},sa))},checkScroll:function(ea,na){var ra=na.datas.dragScroll;if(ra){var oa=ea.props,aa=oa.scrollContainer,sa=aa===void 0?ea.getContainer():aa,la=oa.scrollThreshold,ca=la===void 0?0:la,ua=oa.scrollThrottleTime,da=ua===void 0?0:ua,pa=oa.getScrollPosition,ha=pa===void 0?getDefaultScrollPosition:pa,ga=oa.scrollOptions;return ra.drag(na,__assign$3({container:sa,threshold:ca,throttleTime:da,getScrollPosition:function(fa){return ha({scrollContainer:fa.container,direction:fa.direction})}},ga)),!0}},drag:function(ea,na){return this.checkScroll(ea,na)},dragEnd:function(ea,na){na.datas.dragScroll.dragEnd(),na.datas.dragScroll=null},dragControlStart:function(ea,na){return this.dragStart(ea,__assign$3(__assign$3({},na),{isControl:!0}))},dragControl:function(ea,na){return this.drag(ea,na)},dragControlEnd:function(ea,na){return this.dragEnd(ea,na)},dragGroupStart:function(ea,na){return this.dragStart(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},dragGroup:function(ea,na){return this.drag(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},dragGroupEnd:function(ea,na){return this.dragEnd(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},dragGroupControlStart:function(ea,na){return this.dragStart(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets,isControl:!0}))},dragGroupControl:function(ea,na){return this.drag(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},dragGroupControEnd:function(ea,na){return this.dragEnd(ea,__assign$3(__assign$3({},na),{targets:ea.props.targets}))},unset:function(ea){var na,ra=ea.state;(na=ra.dragScroll)===null||na===void 0||na.dragEnd(),ra.dragScroll=null}},Default={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","requestStyles"],events:["changeTargets"]},Padding=makeAble("padding",{props:["padding"],render:function(ea,na){var ra=ea.props;if(ra.dragArea)return[];var oa=getPaddingBox(ra.padding||{}),aa=oa.left,sa=oa.top,la=oa.right,ca=oa.bottom,ua=ea.getState(),da=ua.renderPoses,pa=ua.pos1,ha=ua.pos2,ga=ua.pos3,fa=ua.pos4,ma=[pa,ha,ga,fa],va=[];return aa>0&&va.push([0,2]),sa>0&&va.push([0,1]),la>0&&va.push([1,3]),ca>0&&va.push([2,3]),va.map(function(xa,ya){var Aa=__read(xa,2),Ca=Aa[0],Sa=Aa[1],wa=ma[Ca],ba=ma[Sa],Ea=da[Ca],$a=da[Sa],Ma=createWarpMatrix([0,0],[100,0],[0,100],[100,100],wa,ba,Ea,$a);if(Ma.length)return na.createElement("div",{key:"padding".concat(ya),className:prefix("padding"),style:{transform:makeMatrixCSS(Ma,!0)}})})}}),RADIUS_DIRECTIONS=["nw","ne","se","sw"];function calculateRatio(ea,na){var ra=ea[0]+ea[1],oa=ra>na?na/ra:1;return ea[0]*=oa,ea[1]=na-ea[1]*oa,ea}var HORIZONTAL_RADIUS_ORDER=[1,2,5,6],VERTICAL_RADIUS_ORDER=[0,3,4,7],HORIZONTAL_RADIUS_DIRECTIONS=[1,-1,-1,1],VERTICAL_RADIUS_DIRECTIONS=[1,1,-1,-1];function getRadiusStyles(ea,na,ra,oa,aa,sa,la,ca){aa===void 0&&(aa=0),sa===void 0&&(sa=0),la===void 0&&(la=ra),ca===void 0&&(ca=oa);var ua=[],da=!1,pa=ea.filter(function(ga){return!ga.virtual}),ha=pa.map(function(ga){var fa=ga.horizontal,ma=ga.vertical,va=ga.pos;if(ma&&!da&&(da=!0,ua.push("/")),da){var xa=Math.max(0,ma===1?va[1]-sa:ca-va[1]);return ua.push(convertCSSSize(xa,oa,na)),xa}else{var xa=Math.max(0,fa===1?va[0]-aa:la-va[0]);return ua.push(convertCSSSize(xa,ra,na)),xa}});return{radiusPoses:pa,styles:ua,raws:ha}}function getRadiusRange(ea){for(var na=[0,0],ra=[0,0],oa=ea.length,aa=0;aa<oa;++aa){var sa=ea[aa];sa.sub&&(sa.horizontal&&(na[1]===0&&(na[0]=aa),na[1]=aa-na[0]+1,ra[0]=aa+1),sa.vertical&&(ra[1]===0&&(ra[0]=aa),ra[1]=aa-ra[0]+1))}return{horizontalRange:na,verticalRange:ra}}function getRadiusValues(ea,na,ra,oa,aa,sa,la){var ca,ua,da,pa;sa===void 0&&(sa=[0,0]),la===void 0&&(la=!1);var ha=ea.indexOf("/"),ga=(ha>-1?ea.slice(0,ha):ea).length,fa=ea.slice(0,ga),ma=ea.slice(ga+1),va=fa.length,xa=ma.length,ya=xa>0,Aa=__read(fa,4),Ca=Aa[0],Sa=Ca===void 0?"0px":Ca,wa=Aa[1],ba=wa===void 0?Sa:wa,Ea=Aa[2],$a=Ea===void 0?Sa:Ea,Ma=Aa[3],Ia=Ma===void 0?ba:Ma,Oa=__read(ma,4),Da=Oa[0],Ta=Da===void 0?Sa:Da,_a=Oa[1],La=_a===void 0?ya?Ta:ba:_a,Na=Oa[2],za=Na===void 0?ya?Ta:$a:Na,Fa=Oa[3],Ha=Fa===void 0?ya?La:Ia:Fa,Va=[Sa,ba,$a,Ia].map(function(tl){return convertUnitSize(tl,na)}),Ua=[Ta,La,za,Ha].map(function(tl){return convertUnitSize(tl,ra)}),Qa=Va.slice(),Wa=Ua.slice();ca=__read(calculateRatio([Qa[0],Qa[1]],na),2),Qa[0]=ca[0],Qa[1]=ca[1],ua=__read(calculateRatio([Qa[3],Qa[2]],na),2),Qa[3]=ua[0],Qa[2]=ua[1],da=__read(calculateRatio([Wa[0],Wa[3]],ra),2),Wa[0]=da[0],Wa[3]=da[1],pa=__read(calculateRatio([Wa[1],Wa[2]],ra),2),Wa[1]=pa[0],Wa[2]=pa[1];var Za=la?Qa:Qa.slice(0,Math.max(sa[0],va)),Xa=la?Wa:Wa.slice(0,Math.max(sa[1],xa));return __spreadArray$1(__spreadArray$1([],__read(Za.map(function(tl,il){var Ja=RADIUS_DIRECTIONS[il];return{virtual:il>=va,horizontal:HORIZONTAL_RADIUS_DIRECTIONS[il],vertical:0,pos:[oa+tl,aa+(VERTICAL_RADIUS_DIRECTIONS[il]===-1?ra:0)],sub:!0,raw:Va[il],direction:Ja}})),!1),__read(Xa.map(function(tl,il){var Ja=RADIUS_DIRECTIONS[il];return{virtual:il>=xa,horizontal:0,vertical:VERTICAL_RADIUS_DIRECTIONS[il],pos:[oa+(HORIZONTAL_RADIUS_DIRECTIONS[il]===-1?na:0),aa+tl],sub:!0,raw:Ua[il],direction:Ja}})),!1)}function removeRadiusPos(ea,na,ra,oa,aa){aa===void 0&&(aa=na.length);var sa=getRadiusRange(ea.slice(oa)),la=sa.horizontalRange,ca=sa.verticalRange,ua=ra-oa,da=0;if(ua===0)da=aa;else if(ua>0&&ua<la[1])da=la[1]-ua;else if(ua>=ca[0])da=ca[0]+ca[1]-ua;else return;ea.splice(ra,da),na.splice(ra,da)}function addRadiusPos(ea,na,ra,oa,aa,sa,la,ca,ua,da,pa){da===void 0&&(da=0),pa===void 0&&(pa=0);var ha=getRadiusRange(ea.slice(ra)),ga=ha.horizontalRange,fa=ha.verticalRange;if(oa>-1)for(var ma=HORIZONTAL_RADIUS_DIRECTIONS[oa]===1?sa-da:ca-sa,va=ga[1];va<=oa;++va){var xa=VERTICAL_RADIUS_DIRECTIONS[va]===1?pa:ua,ya=0;if(oa===va?ya=sa:va===0?ya=da+ma:HORIZONTAL_RADIUS_DIRECTIONS[va]===-1&&(ya=ca-(na[ra][0]-da)),ea.splice(ra+va,0,{horizontal:HORIZONTAL_RADIUS_DIRECTIONS[va],vertical:0,pos:[ya,xa]}),na.splice(ra+va,0,[ya,xa]),va===0)break}else if(aa>-1){var Aa=VERTICAL_RADIUS_DIRECTIONS[aa]===1?la-pa:ua-la;if(ga[1]===0&&fa[1]===0){var Ca=[da+Aa,pa];ea.push({horizontal:HORIZONTAL_RADIUS_DIRECTIONS[0],vertical:0,pos:Ca}),na.push(Ca)}for(var Sa=fa[0],va=fa[1];va<=aa;++va){var ya=HORIZONTAL_RADIUS_DIRECTIONS[va]===1?da:ca,xa=0;if(aa===va?xa=la:va===0?xa=pa+Aa:VERTICAL_RADIUS_DIRECTIONS[va]===1?xa=na[ra+Sa][1]:VERTICAL_RADIUS_DIRECTIONS[va]===-1&&(xa=ua-(na[ra+Sa][1]-pa)),ea.push({horizontal:0,vertical:VERTICAL_RADIUS_DIRECTIONS[va],pos:[ya,xa]}),na.push([ya,xa]),va===0)break}}}function splitRadiusPoses(ea,na){na===void 0&&(na=ea.map(function(aa){return aa.raw}));var ra=ea.map(function(aa,sa){return aa.horizontal?na[sa]:null}).filter(function(aa){return aa!=null}),oa=ea.map(function(aa,sa){return aa.vertical?na[sa]:null}).filter(function(aa){return aa!=null});return{horizontals:ra,verticals:oa}}var CLIP_DIRECTIONS=[[0,-1,"n"],[1,0,"e"]],CLIP_RECT_DIRECTIONS=[[-1,-1,"nw"],[0,-1,"n"],[1,-1,"ne"],[1,0,"e"],[1,1,"se"],[0,1,"s"],[-1,1,"sw"],[-1,0,"w"]];function getClipStyles(ea,na,ra){var oa=ea.props.clipRelative,aa=ea.state,sa=aa.width,la=aa.height,ca=na,ua=ca.type,da=ca.poses,pa=ua==="rect",ha=ua==="circle";if(ua==="polygon")return ra.map(function(ba){return"".concat(convertCSSSize(ba[0],sa,oa)," ").concat(convertCSSSize(ba[1],la,oa))});if(pa||ua==="inset"){var ga=ra[1][1],fa=ra[3][0],ma=ra[7][0],va=ra[5][1];if(pa)return[ga,fa,va,ma].map(function(ba){return"".concat(ba,"px")});var xa=[ga,sa-fa,la-va,ma].map(function(ba,Ea){return convertCSSSize(ba,Ea%2?sa:la,oa)});if(ra.length>8){var ya=__read(minus(ra[4],ra[0]),2),Aa=ya[0],Ca=ya[1];xa.push.apply(xa,__spreadArray$1(["round"],__read(getRadiusStyles(da.slice(8).map(function(ba,Ea){return __assign$3(__assign$3({},ba),{pos:ra[Ea]})}),oa,Aa,Ca,ma,ga,fa,va).styles),!1))}return xa}else if(ha||ua==="ellipse"){var Sa=ra[0],wa=convertCSSSize(abs(ra[1][1]-Sa[1]),ha?Math.sqrt((sa*sa+la*la)/2):la,oa),xa=ha?[wa]:[convertCSSSize(abs(ra[2][0]-Sa[0]),sa,oa),wa];return xa.push("at",convertCSSSize(Sa[0],sa,oa),convertCSSSize(Sa[1],la,oa)),xa}}function getRectPoses(ea,na,ra,oa){var aa=[oa,(oa+na)/2,na],sa=[ea,(ea+ra)/2,ra];return CLIP_RECT_DIRECTIONS.map(function(la){var ca=__read(la,3),ua=ca[0],da=ca[1],pa=ca[2],ha=aa[ua+1],ga=sa[da+1];return{vertical:abs(da),horizontal:abs(ua),direction:pa,pos:[ha,ga]}})}function getControlSize(ea){var na=[1/0,-1/0],ra=[1/0,-1/0];return ea.forEach(function(oa){var aa=oa.pos;na[0]=Math.min(na[0],aa[0]),na[1]=Math.max(na[1],aa[0]),ra[0]=Math.min(ra[0],aa[1]),ra[1]=Math.max(ra[1],aa[1])}),[abs(na[1]-na[0]),abs(ra[1]-ra[0])]}function getClipPath(ea,na,ra,oa,aa){var sa,la,ca,ua,da,pa,ha,ga,fa;if(ea){var ma=aa;if(!ma){var va=getCachedStyle(ea),xa=va("clipPath");ma=xa!=="none"?xa:va("clip")}if(!((!ma||ma==="none"||ma==="auto")&&(ma=oa,!ma))){var ya=splitBracket(ma),Aa=ya.prefix,Ca=Aa===void 0?ma:Aa,Sa=ya.value,wa=Sa===void 0?"":Sa,ba=Ca==="circle",Ea=" ";if(Ca==="polygon"){var $a=splitComma(wa||"0% 0%, 100% 0%, 100% 100%, 0% 100%");Ea=",";var Ma=$a.map(function(Vl){var Wl=__read(Vl.split(" "),2),vl=Wl[0],kl=Wl[1];return{vertical:1,horizontal:1,pos:[convertUnitSize(vl,na),convertUnitSize(kl,ra)]}}),Ia=getMinMaxs(Ma.map(function(Vl){return Vl.pos}));return{type:Ca,clipText:ma,poses:Ma,splitter:Ea,left:Ia.minX,right:Ia.maxX,top:Ia.minY,bottom:Ia.maxY}}else if(ba||Ca==="ellipse"){var Oa="",Da="",Ta=0,_a=0,$a=splitSpace(wa);if(ba){var La="";sa=__read($a,4),la=sa[0],La=la===void 0?"50%":la,ca=sa[2],Oa=ca===void 0?"50%":ca,ua=sa[3],Da=ua===void 0?"50%":ua,Ta=convertUnitSize(La,Math.sqrt((na*na+ra*ra)/2)),_a=Ta}else{var Na="",za="";da=__read($a,5),pa=da[0],Na=pa===void 0?"50%":pa,ha=da[1],za=ha===void 0?"50%":ha,ga=da[3],Oa=ga===void 0?"50%":ga,fa=da[4],Da=fa===void 0?"50%":fa,Ta=convertUnitSize(Na,na),_a=convertUnitSize(za,ra)}var Fa=[convertUnitSize(Oa,na),convertUnitSize(Da,ra)],Ma=__spreadArray$1([{vertical:1,horizontal:1,pos:Fa,direction:"nesw"}],__read(CLIP_DIRECTIONS.slice(0,ba?1:2).map(function(vl){return{vertical:abs(vl[1]),horizontal:vl[0],direction:vl[2],sub:!0,pos:[Fa[0]+vl[0]*Ta,Fa[1]+vl[1]*_a]}})),!1);return{type:Ca,clipText:ma,radiusX:Ta,radiusY:_a,left:Fa[0]-Ta,top:Fa[1]-_a,right:Fa[0]+Ta,bottom:Fa[1]+_a,poses:Ma,splitter:Ea}}else if(Ca==="inset"){var $a=splitSpace(wa||"0 0 0 0"),Ha=$a.indexOf("round"),Va=(Ha>-1?$a.slice(0,Ha):$a).length,Ua=$a.slice(Va+1),Qa=__read($a.slice(0,Va),4),Wa=Qa[0],Za=Qa[1],Xa=Za===void 0?Wa:Za,tl=Qa[2],il=tl===void 0?Wa:tl,Ja=Qa[3],nl=Ja===void 0?Xa:Ja,Ya=__read([Wa,il].map(function(vl){return convertUnitSize(vl,ra)}),2),rl=Ya[0],sl=Ya[1],dl=__read([nl,Xa].map(function(vl){return convertUnitSize(vl,na)}),2),pl=dl[0],ml=dl[1],Rl=na-ml,Tl=ra-sl,Il=getRadiusValues(Ua,Rl-pl,Tl-rl,pl,rl),Ma=__spreadArray$1(__spreadArray$1([],__read(getRectPoses(rl,Rl,Tl,pl)),!1),__read(Il),!1);return{type:"inset",clipText:ma,poses:Ma,top:rl,left:pl,right:Rl,bottom:Tl,radius:Ua,splitter:Ea}}else if(Ca==="rect"){var $a=splitComma(wa||"0px, ".concat(na,"px, ").concat(ra,"px, 0px"));Ea=",";var Ol=__read($a.map(function(Al){var gl=splitUnit(Al).value;return gl}),4),Fl=Ol[0],ml=Ol[1],sl=Ol[2],pl=Ol[3],Ma=getRectPoses(Fl,ml,sl,pl);return{type:"rect",clipText:ma,poses:Ma,top:Fl,right:ml,bottom:sl,left:pl,values:$a,splitter:Ea}}}}}function moveControlPos(ea,na,ra,oa,aa){var sa=ea[na],la=sa.direction,ca=sa.sub,ua=ea.map(function(){return[0,0]}),da=la?la.split(""):[];if(oa&&na<8){var pa=da.filter(function(Ta){return Ta==="w"||Ta==="e"}),ha=da.filter(function(Ta){return Ta==="n"||Ta==="s"}),ga=pa[0],fa=ha[0];ua[na]=ra;var ma=__read(getControlSize(ea),2),va=ma[0],xa=ma[1],ya=va&&xa?va/xa:0;if(ya&&aa){var Aa=(na+4)%8,Ca=ea[Aa].pos,Sa=[0,0];la.indexOf("w")>-1?Sa[0]=-1:la.indexOf("e")>-1&&(Sa[0]=1),la.indexOf("n")>-1?Sa[1]=-1:la.indexOf("s")>-1&&(Sa[1]=1);var wa=getSizeDistByDist([va,xa],ra,ya,Sa,!0),ba=va+wa[0],Ea=xa+wa[1],$a=Ca[1],Ma=Ca[1],Ia=Ca[0],Oa=Ca[0];Sa[0]===-1?Ia=Oa-ba:Sa[0]===1?Oa=Ia+ba:(Ia=Ia-ba/2,Oa=Oa+ba/2),Sa[1]===-1?$a=Ma-Ea:(Sa[1]===1||($a=Ma-Ea/2),Ma=$a+Ea);var Da=getRectPoses($a,Oa,Ma,Ia);ea.forEach(function(Ta,_a){ua[_a][0]=Da[_a].pos[0]-Ta.pos[0],ua[_a][1]=Da[_a].pos[1]-Ta.pos[1]})}else ea.forEach(function(Ta,_a){var La=Ta.direction;La&&(La.indexOf(ga)>-1&&(ua[_a][0]=ra[0]),La.indexOf(fa)>-1&&(ua[_a][1]=ra[1]))}),ga&&(ua[1][0]=ra[0]/2,ua[5][0]=ra[0]/2),fa&&(ua[3][1]=ra[1]/2,ua[7][1]=ra[1]/2)}else la&&!ca?da.forEach(function(Ta){var _a=Ta==="n"||Ta==="s";ea.forEach(function(La,Na){var za=La.direction,Fa=La.horizontal,Ha=La.vertical;!za||za.indexOf(Ta)===-1||(ua[Na]=[_a||!Fa?0:ra[0],!_a||!Ha?0:ra[1]])})}):ua[na]=ra;return ua}function addClipPath(ea,na){var ra=__read(calculatePointerDist(ea,na),2),oa=ra[0],aa=ra[1],sa=na.datas,la=sa.clipPath,ca=sa.clipIndex,ua=la,da=ua.type,pa=ua.poses,ha=ua.splitter,ga=pa.map(function(Aa){return Aa.pos});if(da==="polygon")ga.splice(ca,0,[oa,aa]);else if(da==="inset"){var fa=HORIZONTAL_RADIUS_ORDER.indexOf(ca),ma=VERTICAL_RADIUS_ORDER.indexOf(ca),va=pa.length;if(addRadiusPos(pa,ga,8,fa,ma,oa,aa,ga[4][0],ga[4][1],ga[0][0],ga[0][1]),va===pa.length)return}else return;var xa=getClipStyles(ea,la,ga),ya="".concat(da,"(").concat(xa.join(ha),")");triggerEvent(ea,"onClip",fillParams(ea,na,__assign$3({clipEventType:"added",clipType:da,poses:ga,clipStyles:xa,clipStyle:ya,distX:0,distY:0},fillCSSObject({clipPath:ya},na))))}function removeClipPath(ea,na){var ra=na.datas,oa=ra.clipPath,aa=ra.clipIndex,sa=oa,la=sa.type,ca=sa.poses,ua=sa.splitter,da=ca.map(function(fa){return fa.pos}),pa=da.length;if(la==="polygon")ca.splice(aa,1),da.splice(aa,1);else if(la==="inset"){if(aa<8||(removeRadiusPos(ca,da,aa,8,pa),pa===ca.length))return}else return;var ha=getClipStyles(ea,oa,da),ga="".concat(la,"(").concat(ha.join(ua),")");triggerEvent(ea,"onClip",fillParams(ea,na,__assign$3({clipEventType:"removed",clipType:la,poses:da,clipStyles:ha,clipStyle:ga,distX:0,distY:0},fillCSSObject({clipPath:ga},na))))}var Clippable={name:"clippable",props:["clippable","defaultClipPath","customClipPath","keepRatio","clipRelative","clipArea","dragWithClip","clipTargetBounds","clipVerticalGuidelines","clipHorizontalGuidelines","clipSnapThreshold"],events:["clipStart","clip","clipEnd"],css:[`.control.clip-control {
background: #6d6;
cursor: pointer;
}
.control.clip-control.clip-radius {
background: #d66;
}
.line.clip-line {
background: #6e6;
cursor: move;
z-index: 1;
}
.clip-area {
position: absolute;
top: 0;
left: 0;
}
.clip-ellipse {
position: absolute;
cursor: move;
border: 1px solid #6d6;
border: var(--zoompx) solid #6d6;
border-radius: 50%;
transform-origin: 0px 0px;
}`,`:host {
--bounds-color: #d66;
}`,`.guideline {
pointer-events: none;
z-index: 2;
}`,`.line.guideline.bounds {
background: #d66;
background: var(--bounds-color);
}`],render:function(ea,na){var ra=ea.props,oa=ra.customClipPath,aa=ra.defaultClipPath,sa=ra.clipArea,la=ra.zoom,ca=ra.groupable,ua=ea.getState(),da=ua.target,pa=ua.width,ha=ua.height,ga=ua.allMatrix,fa=ua.is3d,ma=ua.left,va=ua.top,xa=ua.pos1,ya=ua.pos2,Aa=ua.pos3,Ca=ua.pos4,Sa=ua.clipPathState,wa=ua.snapBoundInfos,ba=ua.rotation;if(!da||ca)return[];var Ea=getClipPath(da,pa,ha,aa||"inset",Sa||oa);if(!Ea)return[];var $a=fa?4:3,Ma=Ea.type,Ia=Ea.poses,Oa=Ia.map(function(ml){var Rl=calculatePosition(ga,ml.pos,$a);return[Rl[0]-ma,Rl[1]-va]}),Da=[],Ta=[],_a=Ma==="rect",La=Ma==="inset",Na=Ma==="polygon";if(_a||La||Na){var za=La?Oa.slice(0,8):Oa;Ta=za.map(function(ml,Rl){var Tl=Rl===0?za[za.length-1]:za[Rl-1],Il=getRad$1(Tl,ml),Ol=getDiagonalSize(Tl,ml);return na.createElement("div",{key:"clipLine".concat(Rl),className:prefix("line","clip-line","snap-control"),"data-clip-index":Rl,style:{width:"".concat(Ol,"px"),transform:"translate(".concat(Tl[0],"px, ").concat(Tl[1],"px) rotate(").concat(Il,"rad) scaleY(").concat(la,")")}})})}if(Da=Oa.map(function(ml,Rl){return na.createElement("div",{key:"clipControl".concat(Rl),className:prefix("control","clip-control","snap-control"),"data-clip-index":Rl,style:{transform:"translate(".concat(ml[0],"px, ").concat(ml[1],"px) rotate(").concat(ba,"rad) scale(").concat(la,")")}})}),La&&Da.push.apply(Da,__spreadArray$1([],__read(Oa.slice(8).map(function(ml,Rl){return na.createElement("div",{key:"clipRadiusControl".concat(Rl),className:prefix("control","clip-control","clip-radius","snap-control"),"data-clip-index":8+Rl,style:{transform:"translate(".concat(ml[0],"px, ").concat(ml[1],"px) rotate(").concat(ba,"rad) scale(").concat(la,")")}})})),!1)),Ma==="circle"||Ma==="ellipse"){var Fa=Ea.left,Ha=Ea.top,Va=Ea.radiusX,Ua=Ea.radiusY,Qa=__read(minus(calculatePosition(ga,[Fa,Ha],$a),calculatePosition(ga,[0,0],$a)),2),Wa=Qa[0],Za=Qa[1],Xa="none";if(!sa){for(var tl=Math.max(10,Va/5,Ua/5),il=[],Ja=0;Ja<=tl;++Ja){var nl=Math.PI*2/tl*Ja;il.push([Va+(Va-la)*Math.cos(nl),Ua+(Ua-la)*Math.sin(nl)])}il.push([Va,-2]),il.push([-2,-2]),il.push([-2,Ua*2+2]),il.push([Va*2+2,Ua*2+2]),il.push([Va*2+2,-2]),il.push([Va,-2]),Xa="polygon(".concat(il.map(function(ml){return"".concat(ml[0],"px ").concat(ml[1],"px")}).join(", "),")")}Da.push(na.createElement("div",{key:"clipEllipse",className:prefix("clip-ellipse","snap-control"),style:{width:"".concat(Va*2,"px"),height:"".concat(Ua*2,"px"),clipPath:Xa,transform:"translate(".concat(-ma+Wa,"px, ").concat(-va+Za,"px) ").concat(makeMatrixCSS(ga))}}))}if(sa){var Ya=getRect(__spreadArray$1([xa,ya,Aa,Ca],__read(Oa),!1)),rl=Ya.width,sl=Ya.height,dl=Ya.left,pl=Ya.top;if(Na||_a||La){var il=La?Oa.slice(0,8):Oa;Da.push(na.createElement("div",{key:"clipArea",className:prefix("clip-area","snap-control"),style:{width:"".concat(rl,"px"),height:"".concat(sl,"px"),transform:"translate(".concat(dl,"px, ").concat(pl,"px)"),clipPath:"polygon(".concat(il.map(function(Rl){return"".concat(Rl[0]-dl,"px ").concat(Rl[1]-pl,"px")}).join(", "),")")}}))}}return wa&&["vertical","horizontal"].forEach(function(ml){var Rl=wa[ml],Tl=ml==="horizontal";Rl.isSnap&&Ta.push.apply(Ta,__spreadArray$1([],__read(Rl.snap.posInfos.map(function(Il,Ol){var Fl=Il.pos,Vl=minus(calculatePosition(ga,Tl?[0,Fl]:[Fl,0],$a),[ma,va]),Wl=minus(calculatePosition(ga,Tl?[pa,Fl]:[Fl,ha],$a),[ma,va]);return renderLine(na,"",Vl,Wl,la,"clip".concat(ml,"snap").concat(Ol),"guideline")})),!1)),Rl.isBound&&Ta.push.apply(Ta,__spreadArray$1([],__read(Rl.bounds.map(function(Il,Ol){var Fl=Il.pos,Vl=minus(calculatePosition(ga,Tl?[0,Fl]:[Fl,0],$a),[ma,va]),Wl=minus(calculatePosition(ga,Tl?[pa,Fl]:[Fl,ha],$a),[ma,va]);return renderLine(na,"",Vl,Wl,la,"clip".concat(ml,"bounds").concat(Ol),"guideline","bounds","bold")})),!1))}),__spreadArray$1(__spreadArray$1([],__read(Da),!1),__read(Ta),!1)},dragControlCondition:function(ea,na){return na.inputEvent&&(na.inputEvent.target.getAttribute("class")||"").indexOf("clip")>-1},dragStart:function(ea,na){var ra=ea.props,oa=ra.dragWithClip,aa=oa===void 0?!0:oa;return aa?!1:this.dragControlStart(ea,na)},drag:function(ea,na){return this.dragControl(ea,__assign$3(__assign$3({},na),{isDragTarget:!0}))},dragEnd:function(ea,na){return this.dragControlEnd(ea,na)},dragControlStart:function(ea,na){var ra=ea.state,oa=ea.props,aa=oa.defaultClipPath,sa=oa.customClipPath,la=ra.target,ca=ra.width,ua=ra.height,da=na.inputEvent?na.inputEvent.target:null,pa=da&&da.getAttribute("class")||"",ha=na.datas,ga=getClipPath(la,ca,ua,aa||"inset",sa);if(!ga)return!1;var fa=ga.clipText,ma=ga.type,va=ga.poses,xa=triggerEvent(ea,"onClipStart",fillParams(ea,na,{clipType:ma,clipStyle:fa,poses:va.map(function(ya){return ya.pos})}));return xa===!1?(ha.isClipStart=!1,!1):(ha.isControl=pa&&pa.indexOf("clip-control")>-1,ha.isLine=pa.indexOf("clip-line")>-1,ha.isArea=pa.indexOf("clip-area")>-1||pa.indexOf("clip-ellipse")>-1,ha.clipIndex=da?parseInt(da.getAttribute("data-clip-index"),10):-1,ha.clipPath=ga,ha.isClipStart=!0,ra.clipPathState=fa,setDragStart(ea,na),!0)},dragControl:function(ea,na){var ra,oa,aa,sa=na.datas,la=na.originalDatas,ca=na.isDragTarget;if(!sa.isClipStart)return!1;var ua=sa,da=ua.isControl,pa=ua.isLine,ha=ua.isArea,ga=ua.clipIndex,fa=ua.clipPath;if(!fa)return!1;var ma=getProps(ea.props,"clippable"),va=ma.keepRatio,xa=0,ya=0,Aa=la.draggable,Ca=getDragDist(na);ca&&Aa?(ra=__read(Aa.prevBeforeDist,2),xa=ra[0],ya=ra[1]):(oa=__read(Ca,2),xa=oa[0],ya=oa[1]);var Sa=[xa,ya],wa=ea.state,ba=wa.width,Ea=wa.height,$a=!ha&&!da&&!pa,Ma=fa.type,Ia=fa.poses,Oa=fa.splitter,Da=Ia.map(function(gc){return gc.pos});$a&&(xa=-xa,ya=-ya);var Ta=!da||Ia[ga].direction==="nesw",_a=Ma==="inset"||Ma==="rect",La=Ia.map(function(){return[0,0]});if(da&&!Ta){var Na=Ia[ga],za=Na.horizontal,Fa=Na.vertical,Ha=[xa*abs(za),ya*abs(Fa)];La=moveControlPos(Ia,ga,Ha,_a,va)}else Ta&&(La=Da.map(function(){return[xa,ya]}));var Va=Da.map(function(gc,Rc){return plus(gc,La[Rc])}),Ua=__spreadArray$1([],__read(Va),!1);wa.snapBoundInfos=null;var Qa=fa.type==="circle",Wa=fa.type==="ellipse";if(Qa||Wa){var Za=getRect(Va),Xa=abs(Za.bottom-Za.top),tl=abs(Wa?Za.right-Za.left:Xa),il=Va[0][1]+Xa,Ja=Va[0][0]-tl,nl=Va[0][0]+tl;Qa&&(Ua.push([nl,Za.bottom]),La.push([1,0])),Ua.push([Za.left,il]),La.push([0,1]),Ua.push([Ja,Za.bottom]),La.push([1,0])}var Ya=getDefaultGuidelines((ma.clipHorizontalGuidelines||[]).map(function(gc){return convertUnitSize("".concat(gc),Ea)}),(ma.clipVerticalGuidelines||[]).map(function(gc){return convertUnitSize("".concat(gc),ba)}),ba,Ea),rl=[],sl=[];if(Qa||Wa)rl=[Ua[4][0],Ua[2][0]],sl=[Ua[1][1],Ua[3][1]];else if(_a){var dl=[Ua[0],Ua[2],Ua[4],Ua[6]],pl=[La[0],La[2],La[4],La[6]];rl=dl.filter(function(gc,Rc){return pl[Rc][0]}).map(function(gc){return gc[0]}),sl=dl.filter(function(gc,Rc){return pl[Rc][1]}).map(function(gc){return gc[1]})}else rl=Ua.filter(function(gc,Rc){return La[Rc][0]}).map(function(gc){return gc[0]}),sl=Ua.filter(function(gc,Rc){return La[Rc][1]}).map(function(gc){return gc[1]});var ml=[0,0],Rl=checkSnapBounds(Ya,ma.clipTargetBounds&&{left:0,top:0,right:ba,bottom:Ea},rl,sl,5),Tl=Rl.horizontal,Il=Rl.vertical,Ol=Tl.offset,Fl=Il.offset;if(Tl.isBound&&(ml[1]+=Ol),Il.isBound&&(ml[0]+=Fl),(Wa||Qa)&&La[0][0]===0&&La[0][1]===0){var Za=getRect(Va),Vl=Za.bottom-Za.top,Wl=Wa?Za.right-Za.left:Vl,vl=Il.isBound?abs(Fl):Il.snapIndex===0?-Fl:Fl,kl=Tl.isBound?abs(Ol):Tl.snapIndex===0?-Ol:Ol;Wl-=vl,Vl-=kl,Qa&&(Vl=checkSnapBoundPriority(Il,Tl)>0?Vl:Wl,Wl=Vl);var zl=Ua[0];Ua[1][1]=zl[1]-Vl,Ua[2][0]=zl[0]+Wl,Ua[3][1]=zl[1]+Vl,Ua[4][0]=zl[0]-Wl}else if(_a&&va&&da){var Al=__read(getControlSize(Ia),2),gl=Al[0],xl=Al[1],Sl=gl&&xl?gl/xl:0,$l=Ia[ga],Bl=$l.direction||"",Ul=Ua[1][1],il=Ua[5][1],Ja=Ua[7][0],nl=Ua[3][0];abs(Ol)<=abs(Fl)?Ol=sign(Ol)*abs(Fl)/Sl:Fl=sign(Fl)*abs(Ol)*Sl,Bl.indexOf("w")>-1?Ja-=Fl:Bl.indexOf("e")>-1?nl-=Fl:(Ja+=Fl/2,nl-=Fl/2),Bl.indexOf("n")>-1?Ul-=Ol:Bl.indexOf("s")>-1?il-=Ol:(Ul+=Ol/2,il-=Ol/2);var ec=getRectPoses(Ul,nl,il,Ja);Ua.forEach(function(bc,kc){var Kc;Kc=__read(ec[kc].pos,2),bc[0]=Kc[0],bc[1]=Kc[1]})}else Ua.forEach(function(gc,Rc){var Ic=La[Rc];Ic[0]&&(gc[0]-=Fl),Ic[1]&&(gc[1]-=Ol)});var Kl=getClipStyles(ea,fa,Va),rc="".concat(Ma,"(").concat(Kl.join(Oa),")");if(wa.clipPathState=rc,Qa||Wa)rl=[Ua[4][0],Ua[2][0]],sl=[Ua[1][1],Ua[3][1]];else if(_a){var dl=[Ua[0],Ua[2],Ua[4],Ua[6]];rl=dl.map(function(Rc){return Rc[0]}),sl=dl.map(function(Rc){return Rc[1]})}else rl=Ua.map(function(gc){return gc[0]}),sl=Ua.map(function(gc){return gc[1]});if(wa.snapBoundInfos=checkSnapBounds(Ya,ma.clipTargetBounds&&{left:0,top:0,right:ba,bottom:Ea},rl,sl,1),Aa){var wl=wa.is3d,Ll=wa.allMatrix,ic=wl?4:3,Yl=ml;ca&&(Yl=[Sa[0]+ml[0]-Ca[0],Sa[1]+ml[1]-Ca[1]]),Aa.deltaOffset=multiply(Ll,[Yl[0],Yl[1],0,0],ic)}return triggerEvent(ea,"onClip",fillParams(ea,na,__assign$3({clipEventType:"changed",clipType:Ma,poses:Va,clipStyle:rc,clipStyles:Kl,distX:xa,distY:ya},fillCSSObject((aa={},aa[Ma==="rect"?"clip":"clipPath"]=rc,aa),na)))),!0},dragControlEnd:function(ea,na){this.unset(ea);var ra=na.isDrag,oa=na.datas,aa=na.isDouble,sa=oa.isLine,la=oa.isClipStart,ca=oa.isControl;return la?(triggerEvent(ea,"onClipEnd",fillEndParams(ea,na,{})),aa&&(ca?removeClipPath(ea,na):sa&&addClipPath(ea,na)),aa||ra):!1},unset:function(ea){ea.state.clipPathState="",ea.state.snapBoundInfos=null}},OriginDraggable={name:"originDraggable",props:["originDraggable","originRelative"],events:["dragOriginStart","dragOrigin","dragOriginEnd"],css:[`:host[data-able-origindraggable] .control.origin {
pointer-events: auto;
}`],dragControlCondition:function(ea,na){return na.isRequest?na.requestAble==="originDraggable":hasClass(na.inputEvent.target,prefix("origin"))},dragControlStart:function(ea,na){var ra=na.datas;setDragStart(ea,na);var oa=fillParams(ea,na,{dragStart:Draggable.dragStart(ea,new CustomGesto().dragStart([0,0],na))}),aa=triggerEvent(ea,"onDragOriginStart",oa);return ra.startOrigin=ea.state.transformOrigin,ra.startTargetOrigin=ea.state.targetOrigin,ra.prevOrigin=[0,0],ra.isDragOrigin=!0,aa===!1?(ra.isDragOrigin=!1,!1):oa},dragControl:function(ea,na){var ra=na.datas,oa=na.isPinch,aa=na.isRequest;if(!ra.isDragOrigin)return!1;var sa=__read(getDragDist(na),2),la=sa[0],ca=sa[1],ua=ea.state,da=ua.width,pa=ua.height,ha=ua.offsetMatrix,ga=ua.targetMatrix,fa=ua.is3d,ma=ea.props.originRelative,va=ma===void 0?!0:ma,xa=fa?4:3,ya=[la,ca];if(aa){var Aa=na.distOrigin;(Aa[0]||Aa[1])&&(ya=Aa)}var Ca=plus(ra.startOrigin,ya),Sa=plus(ra.startTargetOrigin,ya),wa=minus(ya,ra.prevOrigin),ba=getNextMatrix(ha,ga,Ca,xa),Ea=ea.getRect(),$a=getRect(calculatePoses(ba,da,pa,xa)),Ma=[Ea.left-$a.left,Ea.top-$a.top];ra.prevOrigin=ya;var Ia=[convertCSSSize(Sa[0],da,va),convertCSSSize(Sa[1],pa,va)].join(" "),Oa=Draggable.drag(ea,setCustomDrag(na,ea.state,Ma,!!oa)),Da=fillParams(ea,na,__assign$3(__assign$3({width:da,height:pa,origin:Ca,dist:ya,delta:wa,transformOrigin:Ia,drag:Oa},fillCSSObject({transformOrigin:Ia,transform:Oa.transform},na)),{afterTransform:Oa.transform}));return triggerEvent(ea,"onDragOrigin",Da),Da},dragControlEnd:function(ea,na){var ra=na.datas;return ra.isDragOrigin?(triggerEvent(ea,"onDragOriginEnd",fillEndParams(ea,na,{})),!0):!1},dragGroupControlCondition:function(ea,na){return this.dragControlCondition(ea,na)},dragGroupControlStart:function(ea,na){var ra=this.dragControlStart(ea,na);return!!ra},dragGroupControl:function(ea,na){var ra=this.dragControl(ea,na);return ra?(ea.transformOrigin=ra.transformOrigin,!0):!1},request:function(ea){var na={},ra=ea.getRect(),oa=0,aa=0,sa=ra.transformOrigin,la=[0,0];return{isControl:!0,requestStart:function(){return{datas:na}},request:function(ca){return"deltaOrigin"in ca?(la[0]+=ca.deltaOrigin[0],la[1]+=ca.deltaOrigin[1]):"origin"in ca?(la[0]=ca.origin[0]-sa[0],la[1]=ca.origin[1]-sa[1]):("x"in ca?oa=ca.x-ra.left:"deltaX"in ca&&(oa+=ca.deltaX),"y"in ca?aa=ca.y-ra.top:"deltaY"in ca&&(aa+=ca.deltaY)),{datas:na,distX:oa,distY:aa,distOrigin:la}},requestEnd:function(){return{datas:na,isDrag:!0}}}}};function addBorderRadiusByLine(ea,na,ra,oa){var aa=ea.filter(function(ua){var da=ua.virtual,pa=ua.horizontal;return pa&&!da}).length,sa=ea.filter(function(ua){var da=ua.virtual,pa=ua.vertical;return pa&&!da}).length,la=-1;if(na===0&&(aa===0?la=0:aa===1&&(la=1)),na===2&&(aa<=2?la=2:aa<=3&&(la=3)),na===3&&(sa===0?la=4:sa<4&&(la=7)),na===1&&(sa<=1?la=5:sa<=2&&(la=6)),!(la===-1||!ea[la].virtual)){var ca=ea[la];addBorderRadius(ea,la),la<4?ca.pos[0]=ra:ca.pos[1]=oa}}function addBorderRadius(ea,na){na<4?ea.slice(0,na+1).forEach(function(ra){ra.virtual=!1}):(ea[0].virtual&&(ea[0].virtual=!1),ea.slice(4,na+1).forEach(function(ra){ra.virtual=!1}))}function removeBorderRadius(ea,na){na<4?ea.slice(na,4).forEach(function(ra){ra.virtual=!0}):ea.slice(na).forEach(function(ra){ra.virtual=!0})}function getBorderRadius(ea,na,ra,oa,aa){oa===void 0&&(oa=[0,0]);var sa=[];return!ea||ea==="0px"?sa=[]:sa=splitSpace(ea),getRadiusValues(sa,na,ra,0,0,oa,aa)}function triggerRoundEvent(ea,na,ra,oa,aa){var sa=ea.state,la=sa.width,ca=sa.height,ua=getRadiusStyles(aa,ea.props.roundRelative,la,ca),da=ua.raws,pa=ua.styles,ha=ua.radiusPoses,ga=splitRadiusPoses(ha,da),fa=ga.horizontals,ma=ga.verticals,va=pa.join(" ");sa.borderRadiusState=va;var xa=fillParams(ea,na,__assign$3({horizontals:fa,verticals:ma,borderRadius:va,width:la,height:ca,delta:oa,dist:ra},fillCSSObject({borderRadius:va},na)));return triggerEvent(ea,"onRound",xa),xa}function getStyleBorderRadius(ea){var na,ra,oa=ea.getState().style,aa=oa.borderRadius||"";if(!aa&&ea.props.groupable){var sa=ea.moveables[0],la=ea.getTargets()[0];la&&(sa?.props.target===la?(aa=(ra=(na=ea.moveables[0])===null||na===void 0?void 0:na.state.style.borderRadius)!==null&&ra!==void 0?ra:"",oa.borderRadius=aa):(aa=getComputedStyle$1(la).borderRadius,oa.borderRadius=aa))}return aa}var Roundable={name:"roundable",props:["roundable","roundRelative","minRoundControls","maxRoundControls","roundClickable","roundPadding","isDisplayShadowRoundControls"],events:["roundStart","round","roundEnd","roundGroupStart","roundGroup","roundGroupEnd"],css:[`.control.border-radius {
background: #d66;
cursor: pointer;
z-index: 3;
}`,`.control.border-radius.vertical {
background: #d6d;
z-index: 2;
}`,`.control.border-radius.virtual {
opacity: 0.5;
z-index: 1;
}`,`:host.round-line-clickable .line.direction {
cursor: pointer;
}`],className:function(ea){var na=ea.props.roundClickable;return na===!0||na==="line"?prefix("round-line-clickable"):""},requestStyle:function(){return["borderRadius"]},requestChildStyle:function(){return["borderRadius"]},render:function(ea,na){var ra=ea.getState(),oa=ra.target,aa=ra.width,sa=ra.height,la=ra.allMatrix,ca=ra.is3d,ua=ra.left,da=ra.top,pa=ra.borderRadiusState,ha=ea.props,ga=ha.minRoundControls,fa=ga===void 0?[0,0]:ga,ma=ha.maxRoundControls,va=ma===void 0?[4,4]:ma,xa=ha.zoom,ya=ha.roundPadding,Aa=ya===void 0?0:ya,Ca=ha.isDisplayShadowRoundControls,Sa=ha.groupable;if(!oa)return null;var wa=pa||getStyleBorderRadius(ea),ba=ca?4:3,Ea=getBorderRadius(wa,aa,sa,fa,!0);if(!Ea)return null;var $a=0,Ma=0,Ia=Sa?[0,0]:[ua,da];return Ea.map(function(Oa,Da){var Ta=Oa.horizontal,_a=Oa.vertical,La=Oa.direction||"",Na=__spreadArray$1([],__read(Oa.pos),!1);Ma+=Math.abs(Ta),$a+=Math.abs(_a),Ta&&La.indexOf("n")>-1&&(Na[1]-=Aa),_a&&La.indexOf("w")>-1&&(Na[0]-=Aa),Ta&&La.indexOf("s")>-1&&(Na[1]+=Aa),_a&&La.indexOf("e")>-1&&(Na[0]+=Aa);var za=minus(calculatePosition(la,Na,ba),Ia),Fa=Ca&&Ca!=="horizontal",Ha=Oa.vertical?$a<=va[1]&&(Fa||!Oa.virtual):Ma<=va[0]&&(Ca||!Oa.virtual);return na.createElement("div",{key:"borderRadiusControl".concat(Da),className:prefix("control","border-radius",Oa.vertical?"vertical":"",Oa.virtual?"virtual":""),"data-radius-index":Da,style:{display:Ha?"block":"none",transform:"translate(".concat(za[0],"px, ").concat(za[1],"px) scale(").concat(xa,")")}})})},dragControlCondition:function(ea,na){if(!na.inputEvent||na.isRequest)return!1;var ra=na.inputEvent.target.getAttribute("class")||"";return ra.indexOf("border-radius")>-1||ra.indexOf("moveable-line")>-1&&ra.indexOf("moveable-direction")>-1},dragGroupControlCondition:function(ea,na){return this.dragControlCondition(ea,na)},dragControlStart:function(ea,na){var ra=na.inputEvent,oa=na.datas,aa=ra.target,sa=aa.getAttribute("class")||"",la=sa.indexOf("border-radius")>-1,ca=sa.indexOf("moveable-line")>-1&&sa.indexOf("moveable-direction")>-1,ua=la?parseInt(aa.getAttribute("data-radius-index"),10):-1,da=-1;if(ca){var pa=aa.getAttribute("data-line-key")||"";pa&&(da=parseInt(pa.replace(/render-line-/g,""),10),isNaN(da)&&(da=-1))}if(!la&&!ca)return!1;var ha=fillParams(ea,na,{}),ga=triggerEvent(ea,"onRoundStart",ha);if(ga===!1)return!1;oa.lineIndex=da,oa.controlIndex=ua,oa.isControl=la,oa.isLine=ca,setDragStart(ea,na);var fa=ea.props,ma=fa.roundRelative,va=fa.minRoundControls,xa=va===void 0?[0,0]:va,ya=ea.state,Aa=ya.width,Ca=ya.height;oa.isRound=!0,oa.prevDist=[0,0];var Sa=getStyleBorderRadius(ea),wa=getBorderRadius(Sa||"",Aa,Ca,xa,!0)||[];return oa.controlPoses=wa,ya.borderRadiusState=getRadiusStyles(wa,ma,Aa,Ca).styles.join(" "),ha},dragControl:function(ea,na){var ra=na.datas,oa=ra.controlPoses;if(!ra.isRound||!ra.isControl||!oa.length)return!1;var aa=ra.controlIndex,sa=__read(getDragDist(na),2),la=sa[0],ca=sa[1],ua=[la,ca],da=minus(ua,ra.prevDist),pa=ea.props.maxRoundControls,ha=pa===void 0?[4,4]:pa,ga=ea.state,fa=ga.width,ma=ga.height,va=oa[aa],xa=va.vertical,ya=va.horizontal,Aa=oa.map(function(Sa){var wa=Sa.horizontal,ba=Sa.vertical,Ea=[wa*ya*ua[0],ba*xa*ua[1]];if(wa){if(ha[0]===1)return Ea;if(ha[0]<4&&wa!==ya)return Ea}else{if(ha[1]===0)return Ea[1]=ba*ya*ua[0]/fa*ma,Ea;if(xa){if(ha[1]===1)return Ea;if(ha[1]<4&&ba!==xa)return Ea}}return[0,0]});Aa[aa]=ua;var Ca=oa.map(function(Sa,wa){return __assign$3(__assign$3({},Sa),{pos:plus(Sa.pos,Aa[wa])})});return aa<4?Ca.slice(0,aa+1).forEach(function(Sa){Sa.virtual=!1}):Ca.slice(4,aa+1).forEach(function(Sa){Sa.virtual=!1}),ra.prevDist=[la,ca],triggerRoundEvent(ea,na,ua,da,Ca)},dragControlEnd:function(ea,na){var ra=ea.state;ra.borderRadiusState="";var oa=na.datas,aa=na.isDouble;if(!oa.isRound)return!1;var sa=oa.isControl,la=oa.controlIndex,ca=oa.isLine,ua=oa.lineIndex,da=oa.controlPoses,pa=da.filter(function(ya){var Aa=ya.virtual;return Aa}).length,ha=ea.props.roundClickable,ga=ha===void 0?!0:ha;if(aa&&ga){if(sa&&(ga===!0||ga==="control"))removeBorderRadius(da,la);else if(ca&&(ga===!0||ga==="line")){var fa=__read(calculatePointerDist(ea,na),2),ma=fa[0],va=fa[1];addBorderRadiusByLine(da,ua,ma,va)}pa!==da.filter(function(ya){var Aa=ya.virtual;return Aa}).length&&triggerRoundEvent(ea,na,[0,0],[0,0],da)}var xa=fillEndParams(ea,na,{});return triggerEvent(ea,"onRoundEnd",xa),ra.borderRadiusState="",xa},dragGroupControlStart:function(ea,na){var ra=this.dragControlStart(ea,na);if(!ra)return!1;var oa=ea.moveables,aa=ea.props.targets,sa=fillChildEvents(ea,"roundable",na),la=__assign$3({targets:ea.props.targets,events:sa.map(function(ca,ua){return __assign$3(__assign$3({},ca),{target:aa[ua],moveable:oa[ua],currentTarget:oa[ua]})})},ra);return triggerEvent(ea,"onRoundGroupStart",la),ra},dragGroupControl:function(ea,na){var ra=this.dragControl(ea,na);if(!ra)return!1;var oa=ea.moveables,aa=ea.props.targets,sa=fillChildEvents(ea,"roundable",na),la=__assign$3({targets:ea.props.targets,events:sa.map(function(ca,ua){return __assign$3(__assign$3(__assign$3({},ca),{target:aa[ua],moveable:oa[ua],currentTarget:oa[ua]}),fillCSSObject({borderRadius:ra.borderRadius},ca))})},ra);return triggerEvent(ea,"onRoundGroup",la),la},dragGroupControlEnd:function(ea,na){var ra=ea.moveables,oa=ea.props.targets,aa=fillChildEvents(ea,"roundable",na);catchEvent(ea,"onRound",function(ca){var ua=__assign$3({targets:ea.props.targets,events:aa.map(function(da,pa){return __assign$3(__assign$3(__assign$3({},da),{target:oa[pa],moveable:ra[pa],currentTarget:ra[pa]}),fillCSSObject({borderRadius:ca.borderRadius},da))})},ca);triggerEvent(ea,"onRoundGroup",ua)});var sa=this.dragControlEnd(ea,na);if(!sa)return!1;var la=__assign$3({targets:ea.props.targets,events:aa.map(function(ca,ua){var da;return __assign$3(__assign$3({},ca),{target:oa[ua],moveable:ra[ua],currentTarget:ra[ua],lastEvent:(da=ca.datas)===null||da===void 0?void 0:da.lastEvent})})},sa);return triggerEvent(ea,"onRoundGroupEnd",la),la},unset:function(ea){ea.state.borderRadiusState=""}};function isIdentityMatrix(ea,na){var ra=na?4:3,oa=createIdentityMatrix(ra),aa="matrix".concat(na?"3d":"","(").concat(oa.join(","),")");return ea===aa||ea==="matrix(1,0,0,1,0,0)"}var BeforeRenderable={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(ea,na){var ra=ea.state,oa=ra.is3d,aa=ra.targetMatrix,sa=ra.inlineTransform,la=oa?"matrix3d(".concat(aa.join(","),")"):"matrix(".concat(convertMatrixtoCSS(aa,!0),")"),ca=!sa||sa==="none"?la:sa;na.datas.startTransforms=isIdentityMatrix(ca,oa)?[]:splitSpace(ca)},resetStyle:function(ea){var na=ea.datas;na.nextStyle={},na.nextTransforms=ea.datas.startTransforms,na.nextTransformAppendedIndexes=[]},fillDragStartParams:function(ea,na){return fillParams(ea,na,{setTransform:function(ra){na.datas.startTransforms=isArray(ra)?ra:splitSpace(ra)},isPinch:!!na.isPinch})},fillDragParams:function(ea,na){return fillParams(ea,na,{isPinch:!!na.isPinch})},dragStart:function(ea,na){this.setTransform(ea,na),this.resetStyle(na),triggerEvent(ea,"onBeforeRenderStart",this.fillDragStartParams(ea,na))},drag:function(ea,na){na.datas.startTransforms||this.setTransform(ea,na),this.resetStyle(na),triggerEvent(ea,"onBeforeRender",fillParams(ea,na,{isPinch:!!na.isPinch}))},dragEnd:function(ea,na){na.datas.startTransforms||(this.setTransform(ea,na),this.resetStyle(na)),triggerEvent(ea,"onBeforeRenderEnd",fillParams(ea,na,{isPinch:!!na.isPinch,isDrag:na.isDrag}))},dragGroupStart:function(ea,na){var ra=this;this.dragStart(ea,na);var oa=fillChildEvents(ea,"beforeRenderable",na),aa=ea.moveables,sa=oa.map(function(la,ca){var ua=aa[ca];return ra.setTransform(ua,la),ra.resetStyle(la),ra.fillDragStartParams(ua,la)});triggerEvent(ea,"onBeforeRenderGroupStart",fillParams(ea,na,{isPinch:!!na.isPinch,targets:ea.props.targets,setTransform:function(){},events:sa}))},dragGroup:function(ea,na){var ra=this;this.drag(ea,na);var oa=fillChildEvents(ea,"beforeRenderable",na),aa=ea.moveables,sa=oa.map(function(la,ca){var ua=aa[ca];return ra.resetStyle(la),ra.fillDragParams(ua,la)});triggerEvent(ea,"onBeforeRenderGroup",fillParams(ea,na,{isPinch:!!na.isPinch,targets:ea.props.targets,events:sa}))},dragGroupEnd:function(ea,na){this.dragEnd(ea,na),triggerEvent(ea,"onBeforeRenderGroupEnd",fillParams(ea,na,{isPinch:!!na.isPinch,isDrag:na.isDrag,targets:ea.props.targets}))},dragControlStart:function(ea,na){return this.dragStart(ea,na)},dragControl:function(ea,na){return this.drag(ea,na)},dragControlEnd:function(ea,na){return this.dragEnd(ea,na)},dragGroupControlStart:function(ea,na){return this.dragGroupStart(ea,na)},dragGroupControl:function(ea,na){return this.dragGroup(ea,na)},dragGroupControlEnd:function(ea,na){return this.dragGroupEnd(ea,na)}},Renderable={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(ea,na){triggerEvent(ea,"onRenderStart",fillParams(ea,na,{isPinch:!!na.isPinch}))},drag:function(ea,na){triggerEvent(ea,"onRender",this.fillDragParams(ea,na))},dragAfter:function(ea,na){return this.drag(ea,na)},dragEnd:function(ea,na){triggerEvent(ea,"onRenderEnd",this.fillDragEndParams(ea,na))},dragGroupStart:function(ea,na){triggerEvent(ea,"onRenderGroupStart",fillParams(ea,na,{isPinch:!!na.isPinch,targets:ea.props.targets}))},dragGroup:function(ea,na){var ra=this,oa=fillChildEvents(ea,"beforeRenderable",na),aa=ea.moveables,sa=oa.map(function(la,ca){var ua=aa[ca];return ra.fillDragParams(ua,la)});triggerEvent(ea,"onRenderGroup",fillParams(ea,na,__assign$3(__assign$3({isPinch:!!na.isPinch,targets:ea.props.targets,transform:getNextTransformText(na),transformObject:{}},fillCSSObject(getNextStyle(na))),{events:sa})))},dragGroupEnd:function(ea,na){var ra=this,oa=fillChildEvents(ea,"beforeRenderable",na),aa=ea.moveables,sa=oa.map(function(la,ca){var ua=aa[ca];return ra.fillDragEndParams(ua,la)});triggerEvent(ea,"onRenderGroupEnd",fillParams(ea,na,__assign$3({isPinch:!!na.isPinch,isDrag:na.isDrag,targets:ea.props.targets,events:sa,transformObject:{},transform:getNextTransformText(na)},fillCSSObject(getNextStyle(na)))))},dragControlStart:function(ea,na){return this.dragStart(ea,na)},dragControl:function(ea,na){return this.drag(ea,na)},dragControlAfter:function(ea,na){return this.dragAfter(ea,na)},dragControlEnd:function(ea,na){return this.dragEnd(ea,na)},dragGroupControlStart:function(ea,na){return this.dragGroupStart(ea,na)},dragGroupControl:function(ea,na){return this.dragGroup(ea,na)},dragGroupControlEnd:function(ea,na){return this.dragGroupEnd(ea,na)},fillDragParams:function(ea,na){var ra={};return parse$1(getNextTransforms(na)||[]).forEach(function(oa){ra[oa.name]=oa.functionValue}),fillParams(ea,na,__assign$3({isPinch:!!na.isPinch,transformObject:ra,transform:getNextTransformText(na)},fillCSSObject(getNextStyle(na))))},fillDragEndParams:function(ea,na){var ra={};return parse$1(getNextTransforms(na)||[]).forEach(function(oa){ra[oa.name]=oa.functionValue}),fillParams(ea,na,__assign$3({isPinch:!!na.isPinch,isDrag:na.isDrag,transformObject:ra,transform:getNextTransformText(na)},fillCSSObject(getNextStyle(na))))}};function triggerAble(ea,na,ra,oa,aa,sa,la){sa.clientDistX=sa.distX,sa.clientDistY=sa.distY;var ca=aa==="Start",ua=aa==="End",da=aa==="After",pa=ea.state.target,ha=sa.isRequest,ga=oa.indexOf("Control")>-1;if(!pa||ca&&ga&&!ha&&ea.areaElement===sa.inputEvent.target)return!1;var fa=__spreadArray$1([],__read(na),!1);if(ha){var ma=sa.requestAble;fa.some(function(Da){return Da.name===ma})||fa.push.apply(fa,__spreadArray$1([],__read(ea.props.ables.filter(function(Da){return Da.name===ma})),!1))}if(!fa.length||fa.every(function(Da){return Da.dragRelation}))return!1;var va=sa.inputEvent,xa;ua&&va&&(xa=document.elementFromPoint(sa.clientX,sa.clientY)||va.target);var ya=!1,Aa=function(){var Da;ya=!0,(Da=sa.stop)===null||Da===void 0||Da.call(sa)},Ca=ca&&(!ea.targetGesto||!ea.controlGesto||!ea.targetGesto.isFlag()||!ea.controlGesto.isFlag());Ca&&ea.updateRect(aa,!0,!1);var Sa=sa.datas,wa=ga?"controlGesto":"targetGesto",ba=ea[wa],Ea=function(Da,Ta,_a){if(!(Ta in Da)||ba!==ea[wa])return!1;var La=Da.name,Na=Sa[La]||(Sa[La]={});if(ca&&(Na.isEventStart=!_a||!Da[_a]||Da[_a](ea,sa)),!Na.isEventStart)return!1;var za=Da[Ta](ea,__assign$3(__assign$3({},sa),{stop:Aa,datas:Na,originalDatas:Sa,inputTarget:xa}));return ea._emitter.off(),ca&&za===!1&&(Na.isEventStart=!1),za};Ca&&fa.forEach(function(Da){Da.unset&&Da.unset(ea)}),Ea(BeforeRenderable,"drag".concat(oa).concat(aa));var $a=0,Ma=0;ra.forEach(function(Da){if(ya)return!1;var Ta="".concat(Da).concat(oa).concat(aa),_a="".concat(Da).concat(oa,"Condition");aa===""&&!ha&&convertDragDist(ea.state,sa);var La=fa.filter(function(Fa){return Fa[Ta]});La=La.filter(function(Fa,Ha){return Fa.name&&La.indexOf(Fa)===Ha});var Na=La.filter(function(Fa){return Ea(Fa,Ta,_a)}),za=Na.length;ya&&++$a,za&&++Ma,!ya&&ca&&La.length&&!za&&($a+=La.filter(function(Fa){var Ha=Fa.name,Va=Sa[Ha];return Va.isEventStart?Fa.dragRelation!=="strong":!1}).length?1:0)}),(!da||Ma)&&Ea(Renderable,"drag".concat(oa).concat(aa));var Ia=ba!==ea[wa]||$a===ra.length;if((ua||ya||Ia)&&(ea.state.gestos={},ea.moveables&&ea.moveables.forEach(function(Da){Da.state.gestos={}}),fa.forEach(function(Da){Da.unset&&Da.unset(ea)})),ca&&!Ia&&!ha&&Ma&&ea.props.preventDefault&&sa?.preventDefault(),ea.isUnmounted||Ia)return!1;if(!ca&&Ma&&!la||ua){var Oa=ea.props.flushSync||defaultSync;Oa(function(){ea.updateRect(ua?aa:"",!0,!1),ea.forceUpdate()})}return!ca&&!ua&&!da&&Ma&&!la&&triggerAble(ea,na,ra,oa,aa+"After",sa),!0}function checkMoveableTarget(ea){return function(na){var ra,oa=na.inputEvent.target,aa=ea.areaElement,sa=ea._dragTarget;return!sa||!((ra=ea.controlGesto)===null||ra===void 0)&&ra.isFlag()?!1:oa===sa||sa.contains(oa)||oa===aa||!ea.isMoveableElement(oa)&&!ea.controlBox.contains(oa)||hasClass(oa,"moveable-area")||hasClass(oa,"moveable-padding")||hasClass(oa,"moveable-edgeDraggable")}}function getTargetAbleGesto(ea,na,ra){var oa=ea.controlBox,aa=[],sa=ea.props,la=sa.dragArea,ca=ea.state.target,ua=sa.dragTarget;return aa.push(oa),(!la||ua)&&aa.push(na),!la&&ua&&ca&&na!==ca&&sa.dragTargetSelf&&aa.push(ca),getAbleGesto(ea,aa,"targetAbles",ra,{dragStart:checkMoveableTarget(ea),pinchStart:checkMoveableTarget(ea)})}function getAbleGesto(ea,na,ra,oa,aa){aa===void 0&&(aa={});var sa=ra==="targetAbles",la=ea.props,ca=la.pinchOutside,ua=la.pinchThreshold,da=la.preventClickEventOnDrag,pa=la.preventClickDefault,ha=la.checkInput,ga=la.dragFocusedInput,fa=la.preventDefault,ma=fa===void 0?!0:fa,va=la.dragContainer,xa=getRefTarget(va,!0),ya={preventDefault:ma,preventRightClick:!0,preventWheelClick:!0,container:xa||getWindow$1(ea.getControlBoxElement()),pinchThreshold:ua,pinchOutside:ca,preventClickEventOnDrag:sa?da:!1,preventClickEventOnDragStart:sa?pa:!1,preventClickEventByCondition:sa?null:function(Sa){return ea.controlBox.contains(Sa.target)},checkInput:sa?ha:!1,dragFocusedInput:ga},Aa=new Gesto(na,ya),Ca=oa==="Control";return["drag","pinch"].forEach(function(Sa){["Start","","End"].forEach(function(wa){Aa.on("".concat(Sa).concat(wa),function(ba){var Ea,$a=ba.eventType,Ma=Sa==="drag"&&ba.isPinch;if(aa[$a]&&!aa[$a](ba)){ba.stop();return}if(!Ma){var Ia=Sa==="drag"?[Sa]:["drag",Sa],Oa=__spreadArray$1([],__read(ea[ra]),!1),Da=triggerAble(ea,Oa,Ia,oa,wa,ba);Da?(ea.props.stopPropagation||wa==="Start"&&Ca)&&((Ea=ba?.inputEvent)===null||Ea===void 0||Ea.stopPropagation()):ba.stop()}})})}),Aa}var EventManager=function(){function ea(na,ra,oa){var aa=this;this.target=na,this.moveable=ra,this.eventName=oa,this.ables=[],this._onEvent=function(sa){var la=aa.eventName,ca=aa.moveable;ca.state.disableNativeEvent||aa.ables.forEach(function(ua){ua[la](ca,{inputEvent:sa})})},na.addEventListener(oa.toLowerCase(),this._onEvent)}return ea.prototype.setAbles=function(na){this.ables=na},ea.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},ea}();function calculateMatrixStack(ea,na,ra,oa){var aa;ra===void 0&&(ra=na);var sa=getMatrixStackInfo(ea,na),la=sa.matrixes,ca=sa.is3d,ua=sa.targetMatrix,da=sa.transformOrigin,pa=sa.targetOrigin,ha=sa.offsetContainer,ga=sa.hasFixed,fa=sa.zoom,ma=getCachedMatrixContainerInfo(ha,ra),va=ma.matrixes,xa=ma.is3d,ya=ma.offsetContainer,Aa=ma.zoom,Ca=oa,Sa=4,wa=ea.tagName.toLowerCase()!=="svg"&&"ownerSVGElement"in ea,ba=ua,Ea=createIdentityMatrix(Sa),$a=createIdentityMatrix(Sa),Ma=createIdentityMatrix(Sa),Ia=createIdentityMatrix(Sa),Oa=la.length,Da=va.map(function(Ha){return __assign$3(__assign$3({},Ha),{matrix:Ha.matrix?__spreadArray$1([],__read(Ha.matrix),!1):void 0})}).reverse();la.reverse(),!ca&&Ca&&(ba=convertDimension(ba,3,4),convert3DMatrixes(la)),!xa&&Ca&&convert3DMatrixes(Da),Da.forEach(function(Ha){$a=multiply($a,Ha.matrix,Sa)});var Ta=ra||getDocumentBody(ea),_a=((aa=Da[0])===null||aa===void 0?void 0:aa.target)||getOffsetInfo(Ta,Ta,!0).offsetParent,La=Da.slice(1).reduce(function(Ha,Va){return multiply(Ha,Va.matrix,Sa)},createIdentityMatrix(Sa));la.forEach(function(Ha,Va){if(Oa-2===Va&&(Ma=Ea.slice()),Oa-1===Va&&(Ia=Ea.slice()),!Ha.matrix){var Ua=la[Va+1],Qa=getSVGOffset(Ha,Ua,_a,Sa,multiply(La,Ea,Sa));Ha.matrix=createOriginMatrix(Qa,Sa)}Ea=multiply(Ea,Ha.matrix,Sa)});var Na=!wa&&ca;ba||(ba=createIdentityMatrix(Na?4:3));var za=makeMatrixCSS(wa&&ba.length===16?convertDimension(ba,4,3):ba,Na),Fa=$a;return $a=ignoreDimension($a,Sa,Sa),{hasZoom:fa!==1||Aa!==1,hasFixed:ga,matrixes:la,rootMatrix:$a,originalRootMatrix:Fa,beforeMatrix:Ma,offsetMatrix:Ia,allMatrix:Ea,targetMatrix:ba,targetTransform:za,inlineTransform:ea.style.transform,transformOrigin:da,targetOrigin:pa,is3d:Ca,offsetContainer:ha,offsetRootContainer:ya}}function calculateElementInfo(ea,na,ra,oa){ra===void 0&&(ra=na);var aa=0,sa=0,la=0,ca={},ua=getSize$1(ea);if(ea&&(aa=ua.offsetWidth,sa=ua.offsetHeight),ea){var da=calculateMatrixStack(ea,na,ra,oa),pa=calculateElementPosition(da.allMatrix,da.transformOrigin,aa,sa);ca=__assign$3(__assign$3({},da),pa);var ha=calculateElementPosition(da.allMatrix,[50,50],100,100);la=getRotationRad([ha.pos1,ha.pos2],ha.direction)}var ga=4;return __assign$3(__assign$3(__assign$3({hasZoom:!1,width:aa,height:sa,rotation:la},ua),{originalRootMatrix:createIdentityMatrix(ga),rootMatrix:createIdentityMatrix(ga),beforeMatrix:createIdentityMatrix(ga),offsetMatrix:createIdentityMatrix(ga),allMatrix:createIdentityMatrix(ga),targetMatrix:createIdentityMatrix(ga),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!0,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),ca)}function getMoveableTargetInfo(ea,na,ra,oa,aa,sa){sa===void 0&&(sa=[]);var la=1,ca=[0,0],ua=resetClientRect(),da=resetClientRect(),pa=resetClientRect(),ha=resetClientRect(),ga=[0,0],fa={},ma=calculateElementInfo(na,ra,aa,!0);if(na){var va=getCachedStyle(na);sa.forEach(function(Da){fa[Da]=va(Da)});var xa=ma.is3d?4:3,ya=calculateElementPosition(ma.offsetMatrix,plus(ma.transformOrigin,getOrigin(ma.targetMatrix,xa)),ma.width,ma.height);la=ya.direction,ca=plus(ya.origin,[ya.left-ma.left,ya.top-ma.top]),ha=getClientRect$1(ma.offsetRootContainer);var Aa=getOffsetInfo(oa,oa,!0).offsetParent||ma.offsetRootContainer;if(ma.hasZoom){var Ca=calculateElementPosition(multiply(ma.originalRootMatrix,ma.allMatrix),ma.transformOrigin,ma.width,ma.height),Sa=calculateElementPosition(ma.originalRootMatrix,getTransformOriginArray(getCachedStyle(Aa)("transformOrigin")).map(function(Da){return parseFloat(Da)}),Aa.offsetWidth,Aa.offsetHeight);if(ua=getClientRectByPosition(Ca,ha),pa=getClientRectByPosition(Sa,ha,Aa,!0),ea){var wa=Ca.left,ba=Ca.top;da=getClientRectByPosition({left:wa,top:ba,bottom:ba,right:ba},ha)}}else{ua=getClientRect$1(na),pa=getCachedClientRect(Aa),ea&&(da=getClientRect$1(ea));var Ea=pa.left,$a=pa.top,Ma=pa.clientLeft,Ia=pa.clientTop,Oa=[ua.left-Ea,ua.top-$a];ga=minus(calculateInversePosition(ma.rootMatrix,Oa,4),[Ma+ma.left,Ia+ma.top])}}return __assign$3({targetClientRect:ua,containerClientRect:pa,moveableClientRect:da,rootContainerClientRect:ha,beforeDirection:la,beforeOrigin:ca,originalBeforeOrigin:ca,target:na,style:fa,offsetDelta:ga},ma)}function getPersistState(ea){var na=ea.pos1,ra=ea.pos2,oa=ea.pos3,aa=ea.pos4;if(!na||!ra||!oa||!aa)return null;var sa=getMinMaxs([na,ra,oa,aa]),la=[sa.minX,sa.minY],ca=minus(ea.origin,la);return na=minus(na,la),ra=minus(ra,la),oa=minus(oa,la),aa=minus(aa,la),__assign$3(__assign$3({},ea),{left:ea.left,top:ea.top,posDelta:la,pos1:na,pos2:ra,pos3:oa,pos4:aa,origin:ca,beforeOrigin:ca,isPersisted:!0})}var MoveableManager=function(ea){__extends$2(na,ea);function na(){var ra=ea!==null&&ea.apply(this,arguments)||this;return ra.state=__assign$3({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},getMoveableTargetInfo(null)),ra.renderState={},ra.enabledAbles=[],ra.targetAbles=[],ra.controlAbles=[],ra.rotation=0,ra.scale=[1,1],ra.isMoveableMounted=!1,ra.isUnmounted=!1,ra.events={mouseEnter:null,mouseLeave:null},ra._emitter=new EventEmitter,ra._prevOriginalDragTarget=null,ra._originalDragTarget=null,ra._prevDragTarget=null,ra._dragTarget=null,ra._prevPropTarget=null,ra._propTarget=null,ra._prevDragArea=!1,ra._isPropTargetChanged=!1,ra._hasFirstTarget=!1,ra._reiszeObserver=null,ra._observerId=0,ra._mutationObserver=null,ra._rootContainer=null,ra._viewContainer=null,ra._viewClassNames=[],ra._store={},ra.checkUpdateRect=function(){if(!ra.isDragging()){var oa=ra.props.parentMoveable;if(oa){oa.checkUpdateRect();return}cancelAnimationFrame$1(ra._observerId),ra._observerId=requestAnimationFrame$1(function(){ra.isDragging()||ra.updateRect()})}},ra._onPreventClick=function(oa){oa.stopPropagation(),oa.preventDefault()},ra}return na.prototype.render=function(){var ra=this.props,oa=this.getState(),aa=ra.parentPosition,sa=ra.className,la=ra.target,ca=ra.zoom,ua=ra.cspNonce,da=ra.translateZ,pa=ra.cssStyled,ha=ra.groupable,ga=ra.linePadding,fa=ra.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var ma=__read(aa||[0,0],2),va=ma[0],xa=ma[1],ya=oa.left,Aa=oa.top,Ca=oa.target,Sa=oa.direction,wa=oa.hasFixed,ba=oa.offsetDelta,Ea=ra.targets,$a=this.isDragging(),Ma={};this.getEnabledAbles().forEach(function(La){Ma["data-able-".concat(La.name.toLowerCase())]=!0});var Ia=this._getAbleClassName(),Oa=Ea&&Ea.length&&(Ca||ha)||la||!this._hasFirstTarget&&this.state.isPersisted,Da=this.controlBox||this.props.firstRenderState||this.props.persistData,Ta=[ya-va,Aa-xa];!ha&&ra.useAccuratePosition&&(Ta[0]+=ba[0],Ta[1]+=ba[1]);var _a={position:wa?"fixed":"absolute",display:Oa?"block":"none",visibility:Da?"visible":"hidden",transform:"translate3d(".concat(Ta[0],"px, ").concat(Ta[1],"px, ").concat(da,")"),"--zoom":ca,"--zoompx":"".concat(ca,"px")};return ga&&(_a["--moveable-line-padding"]=ga),fa&&(_a["--moveable-control-padding"]=fa),reactExports.createElement(pa,__assign$3({cspNonce:ua,ref:ref(this,"controlBox"),className:"".concat(prefix("control-box",Sa===-1?"reverse":"",$a?"dragging":"")," ").concat(Ia," ").concat(sa)},Ma,{onClick:this._onPreventClick,style:_a}),this.renderAbles(),this._renderLines())},na.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var ra=this.props,oa=ra.parentMoveable,aa=ra.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),!aa&&!oa&&!this.state.isPersisted&&(this.updateRect("",!1,!1),this.forceUpdate())},na.prototype.componentDidUpdate=function(ra){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(ra)},na.prototype.componentWillUnmount=function(){var ra,oa;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),(ra=this._reiszeObserver)===null||ra===void 0||ra.disconnect(),(oa=this._mutationObserver)===null||oa===void 0||oa.disconnect();var aa=this._viewContainer;aa&&this._changeAbleViewClassNames([]),unsetGesto(this,!1),unsetGesto(this,!0);var sa=this.events;for(var la in sa){var ca=sa[la];ca&&ca.destroy()}},na.prototype.getTargets=function(){var ra=this.props.target;return ra?[ra]:[]},na.prototype.getAble=function(ra){var oa=this.props.ables||[];return find$1(oa,function(aa){return aa.name===ra})},na.prototype.getContainer=function(){var ra=this.props,oa=ra.parentMoveable,aa=ra.wrapperMoveable,sa=ra.container;return sa||aa&&aa.getContainer()||oa&&oa.getContainer()||this.controlBox.parentElement},na.prototype.getControlBoxElement=function(){return this.controlBox},na.prototype.getDragElement=function(){return this._dragTarget},na.prototype.isMoveableElement=function(ra){var oa;return ra&&(((oa=ra.getAttribute)===null||oa===void 0?void 0:oa.call(ra,"class"))||"").indexOf(PREFIX)>-1},na.prototype.dragStart=function(ra){var oa=this.targetGesto,aa=this.controlGesto;return oa&&checkMoveableTarget(this)({inputEvent:ra})?oa.isFlag()||oa.triggerDragStart(ra):aa&&this.isMoveableElement(ra.target)&&(aa.isFlag()||aa.triggerDragStart(ra)),this},na.prototype.hitTest=function(ra){var oa=this.state,aa=oa.target,sa=oa.pos1,la=oa.pos2,ca=oa.pos3,ua=oa.pos4,da=oa.targetClientRect;if(!aa)return 0;var pa;if(isNode$1(ra)){var ha=ra.getBoundingClientRect();pa={left:ha.left,top:ha.top,width:ha.width,height:ha.height}}else pa=__assign$3({width:0,height:0},ra);var ga=pa.left,fa=pa.top,ma=pa.width,va=pa.height,xa=fitPoints([sa,la,ua,ca],da),ya=getOverlapSize(xa,[[ga,fa],[ga+ma,fa],[ga+ma,fa+va],[ga,fa+va]]),Aa=getAreaSize(xa);return!ya||!Aa?0:Math.min(100,ya/Aa*100)},na.prototype.isInside=function(ra,oa){var aa=this.state,sa=aa.target,la=aa.pos1,ca=aa.pos2,ua=aa.pos3,da=aa.pos4,pa=aa.targetClientRect;return sa?isInside([ra,oa],fitPoints([la,ca,da,ua],pa)):!1},na.prototype.updateRect=function(ra,oa,aa){aa===void 0&&(aa=!0);var sa=this.props,la=!sa.parentPosition&&!sa.wrapperMoveable;la&&setStoreCache(!0);var ca=sa.parentMoveable,ua=this.state,da=ua.target||sa.target,pa=this.getContainer(),ha=ca?ca._rootContainer:this._rootContainer,ga=getMoveableTargetInfo(this.controlBox,da,pa,pa,ha||pa,this._getRequestStyles());if(!da&&this._hasFirstTarget&&sa.persistData){var fa=getPersistState(sa.persistData);for(var ma in fa)ga[ma]=fa[ma]}la&&setStoreCache(),this.updateState(ga,ca?!1:aa)},na.prototype.isDragging=function(ra){var oa,aa,sa=this.targetGesto,la=this.controlGesto;if(sa?.isFlag()){if(!ra)return!0;var ca=sa.getEventData();return!!(!((oa=ca[ra])===null||oa===void 0)&&oa.isEventStart)}if(la?.isFlag()){if(!ra)return!0;var ca=la.getEventData();return!!(!((aa=ca[ra])===null||aa===void 0)&&aa.isEventStart)}return!1},na.prototype.updateTarget=function(ra){this.updateRect(ra,!0)},na.prototype.getRect=function(){var ra=this.state,oa=getAbsolutePosesByState(this.state),aa=__read(oa,4),sa=aa[0],la=aa[1],ca=aa[2],ua=aa[3],da=getRect(oa),pa=ra.width,ha=ra.height,ga=da.width,fa=da.height,ma=da.left,va=da.top,xa=[ra.left,ra.top],ya=plus(xa,ra.origin),Aa=plus(xa,ra.beforeOrigin),Ca=ra.transformOrigin;return{width:ga,height:fa,left:ma,top:va,pos1:sa,pos2:la,pos3:ca,pos4:ua,offsetWidth:pa,offsetHeight:ha,beforeOrigin:Aa,origin:ya,transformOrigin:Ca,rotation:this.getRotation()}},na.prototype.getManager=function(){return this},na.prototype.stopDrag=function(ra){if(!ra||ra==="target"){var oa=this.targetGesto;oa?.isIdle()===!1&&unsetAbles(this,!1),oa?.stop()}if(!ra||ra==="control"){var oa=this.controlGesto;oa?.isIdle()===!1&&unsetAbles(this,!0),oa?.stop()}},na.prototype.getRotation=function(){var ra=this.state,oa=ra.pos1,aa=ra.pos2,sa=ra.direction;return getAbsoluteRotation(oa,aa,sa)},na.prototype.request=function(ra,oa,aa){oa===void 0&&(oa={});var sa=this,la=sa.props,ca=la.parentMoveable||la.wrapperMoveable||sa,ua=ca.props.ables,da=la.groupable,pa=find$1(ua,function(ya){return ya.name===ra});if(this.isDragging()||!pa||!pa.request)return{request:function(){return this},requestEnd:function(){return this}};var ha=pa.request(sa),ga=aa||oa.isInstant,fa=ha.isControl?"controlAbles":"targetAbles",ma="".concat(da?"Group":"").concat(ha.isControl?"Control":""),va=__spreadArray$1([],__read(ca[fa]),!1),xa={request:function(ya){return triggerAble(sa,va,["drag"],ma,"",__assign$3(__assign$3({},ha.request(ya)),{requestAble:ra,isRequest:!0}),ga),xa},requestEnd:function(){return triggerAble(sa,va,["drag"],ma,"End",__assign$3(__assign$3({},ha.requestEnd()),{requestAble:ra,isRequest:!0}),ga),xa}};return triggerAble(sa,va,["drag"],ma,"Start",__assign$3(__assign$3({},ha.requestStart(oa)),{requestAble:ra,isRequest:!0}),ga),ga?xa.request(oa).requestEnd():xa},na.prototype.getMoveables=function(){return[this]},na.prototype.destroy=function(){this.componentWillUnmount()},na.prototype.updateRenderPoses=function(){var ra=this.getState(),oa=this.props,aa=oa.padding,sa=ra.originalBeforeOrigin,la=ra.transformOrigin,ca=ra.allMatrix,ua=ra.is3d,da=ra.pos1,pa=ra.pos2,ha=ra.pos3,ga=ra.pos4,fa=ra.left,ma=ra.top,va=ra.isPersisted,xa=oa.zoom||1;if(!aa&&xa<=1){ra.renderPoses=[da,pa,ha,ga],ra.renderLines=[[da,pa],[pa,ga],[ga,ha],[ha,da]];return}var ya=getPaddingBox(aa||{}),Aa=ya.left,Ca=ya.top,Sa=ya.bottom,wa=ya.right,ba=ua?4:3,Ea=[];va?Ea=la:this.controlBox&&oa.groupable?Ea=sa:Ea=plus(sa,[fa,ma]);var $a=multiplies(ba,createOriginMatrix(Ea.map(function(_a){return-_a}),ba),ca,createOriginMatrix(la,ba)),Ma=calculatePadding($a,da,[-Aa,-Ca],ba),Ia=calculatePadding($a,pa,[wa,-Ca],ba),Oa=calculatePadding($a,ha,[-Aa,Sa],ba),Da=calculatePadding($a,ga,[wa,Sa],ba);ra.renderPoses=[Ma,Ia,Oa,Da],ra.renderLines=[[Ma,Ia],[Ia,Da],[Da,Oa],[Oa,Ma]];{var Ta=xa/2;ra.renderLines=[[calculatePadding($a,da,[-Aa-Ta,-Ca],ba),calculatePadding($a,pa,[wa+Ta,-Ca],ba)],[calculatePadding($a,pa,[wa,-Ca-Ta],ba),calculatePadding($a,ga,[wa,Sa+Ta],ba)],[calculatePadding($a,ga,[wa+Ta,Sa],ba),calculatePadding($a,ha,[-Aa-Ta,Sa],ba)],[calculatePadding($a,ha,[-Aa,Sa+Ta],ba),calculatePadding($a,da,[-Aa,-Ca-Ta],ba)]]}},na.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var ra=this.props,oa=ra.target,aa=ra.container,sa=ra.parentMoveable,la=this.state,ca=la.target,ua=la.container;if(!(!ca&&!oa)){this.updateAbles();var da=!equals(ca,oa),pa=da||!equals(ua,aa);if(pa){var ha=aa||this.controlBox;ha&&this.unsetAbles(),this.updateState({target:oa,container:aa}),!sa&&ha&&this.updateRect("End",!1,!1),this._isPropTargetChanged=da}}},na.prototype.waitToChangeTarget=function(){return new Promise(function(){})},na.prototype.triggerEvent=function(ra,oa){var aa=this.props;if(this._emitter.trigger(ra,oa),aa.parentMoveable&&oa.isRequest&&!oa.isRequestChild)return aa.parentMoveable.triggerEvent(ra,oa,!0);var sa=aa[ra];return sa&&sa(oa)},na.prototype.useCSS=function(ra,oa){var aa=this.props.customStyledMap,sa=ra+oa;return aa[sa]||(aa[sa]=styled(ra,oa)),aa[sa]},na.prototype.getState=function(){var ra,oa=this.props;(oa.target||!((ra=oa.targets)===null||ra===void 0)&&ra.length)&&(this._hasFirstTarget=!0);var aa=this.controlBox,sa=oa.persistData,la=oa.firstRenderState;if(la&&!aa)return la;if(!this._hasFirstTarget&&sa){var ca=getPersistState(sa);if(ca)return this.updateState(ca,!1),this.state}return this.state.isPersisted=!1,this.state},na.prototype.updateSelectors=function(){},na.prototype.unsetAbles=function(){var ra=this;this.targetAbles.forEach(function(oa){oa.unset&&oa.unset(ra)})},na.prototype.updateAbles=function(ra,oa){ra===void 0&&(ra=this.props.ables),oa===void 0&&(oa="");var aa=this.props,sa=aa.triggerAblesSimultaneously,la=this.getEnabledAbles(ra),ca="drag".concat(oa,"Start"),ua="pinch".concat(oa,"Start"),da="drag".concat(oa,"ControlStart"),pa=filterAbles(la,[ca,ua],sa),ha=filterAbles(la,[da],sa);this.enabledAbles=la,this.targetAbles=pa,this.controlAbles=ha},na.prototype.updateState=function(ra,oa){if(oa){if(this.isUnmounted)return;this.setState(ra)}else{var aa=this.state;for(var sa in ra)aa[sa]=ra[sa]}},na.prototype.getEnabledAbles=function(ra){ra===void 0&&(ra=this.props.ables);var oa=this.props;return ra.filter(function(aa){return aa&&(aa.always&&oa[aa.name]!==!1||oa[aa.name])})},na.prototype.renderAbles=function(){var ra=this,oa=this.props,aa=oa.triggerAblesSimultaneously,sa={createElement:reactExports.createElement};return this.renderState={},groupByMap(flat(filterAbles(this.getEnabledAbles(),["render"],aa).map(function(la){var ca=la.render;return ca(ra,sa)||[]})).filter(function(la){return la}),function(la){var ca=la.key;return ca}).map(function(la){return la[0]})},na.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},na.prototype._getRequestStyles=function(){var ra=this.getEnabledAbles().reduce(function(oa,aa){var sa,la,ca=(la=(sa=aa.requestStyle)===null||sa===void 0?void 0:sa.call(aa))!==null&&la!==void 0?la:[];return __spreadArray$1(__spreadArray$1([],__read(oa),!1),__read(ca),!1)},__spreadArray$1([],__read(this.props.requestStyles||[]),!1));return ra},na.prototype._updateObserver=function(ra){this._updateResizeObserver(ra),this._updateMutationObserver(ra)},na.prototype._updateEvents=function(){var ra=this.controlBox,oa=this.targetAbles.length,aa=this.controlAbles.length,sa=this._dragTarget,la=!oa&&this.targetGesto||this._isTargetChanged(!0);la&&(unsetGesto(this,!1),this.updateState({gestos:{}})),aa||unsetGesto(this,!0),sa&&oa&&!this.targetGesto&&(this.targetGesto=getTargetAbleGesto(this,sa,"")),!this.controlGesto&&aa&&(this.controlGesto=getAbleGesto(this,ra,"controlAbles","Control"))},na.prototype._updateTargets=function(){var ra=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=ra.dragArea,this._propTarget=ra.target,this._originalDragTarget=ra.dragTarget||ra.target,this._dragTarget=getRefTarget(this._originalDragTarget,!0)},na.prototype._renderLines=function(){var ra=this.props,oa=ra,aa=oa.zoom,sa=oa.hideDefaultLines,la=oa.hideChildMoveableDefaultLines,ca=oa.parentMoveable;if(sa||ca&&la)return[];var ua=this.getState(),da={createElement:reactExports.createElement};return ua.renderLines.map(function(pa,ha){return renderLine(da,"",pa[0],pa[1],aa,"render-line-".concat(ha))})},na.prototype._isTargetChanged=function(ra){var oa=this.props,aa=oa.dragTarget||oa.target,sa=this._prevOriginalDragTarget,la=this._prevDragArea,ca=oa.dragArea,ua=!ca&&sa!==aa,da=(ra||ca)&&la!==ca;return ua||da||this._prevPropTarget!=this._propTarget},na.prototype._updateNativeEvents=function(){var ra=this,oa=this.props,aa=oa.dragArea?this.areaElement:this.state.target,sa=this.events,la=getKeys(sa);if(this._isTargetChanged())for(var ca in sa){var ua=sa[ca];ua&&ua.destroy(),sa[ca]=null}if(aa){var da=this.enabledAbles;la.forEach(function(pa){var ha=filterAbles(da,[pa]),ga=ha.length>0,fa=sa[pa];if(!ga){fa&&(fa.destroy(),sa[pa]=null);return}fa||(fa=new EventManager(aa,ra,pa),sa[pa]=fa),fa.setAbles(ha)})}},na.prototype._checkUpdateRootContainer=function(){var ra=this.props.rootContainer;!this._rootContainer&&ra&&(this._rootContainer=getRefTarget(ra,!0))},na.prototype._checkUpdateViewContainer=function(){var ra=this.props.viewContainer;!this._viewContainer&&ra&&(this._viewContainer=getRefTarget(ra,!0));var oa=this._viewContainer;oa&&this._changeAbleViewClassNames(__spreadArray$1(__spreadArray$1([],__read(this._getAbleViewClassNames()),!1),[this.isDragging()?VIEW_DRAGGING:""],!1))},na.prototype._changeAbleViewClassNames=function(ra){var oa=this._viewContainer,aa=groupBy(ra.filter(Boolean),function(da){return da}).map(function(da){var pa=__read(da,1),ha=pa[0];return ha}),sa=this._viewClassNames,la=diff$2(sa,aa),ca=la.removed,ua=la.added;ca.forEach(function(da){removeClass(oa,sa[da])}),ua.forEach(function(da){addClass(oa,aa[da])}),this._viewClassNames=aa},na.prototype._getAbleViewClassNames=function(){var ra=this;return(this.getEnabledAbles().map(function(oa){var aa;return((aa=oa.viewClassName)===null||aa===void 0?void 0:aa.call(oa,ra))||""}).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},na.prototype._getAbleClassName=function(ra){var oa=this;ra===void 0&&(ra="");var aa=this.getEnabledAbles(),sa=this.targetGesto,la=this.controlGesto,ca=sa?.isFlag()?sa.getEventData():{},ua=la?.isFlag()?la.getEventData():{};return aa.map(function(da){var pa,ha,ga,fa=da.name,ma=((pa=da.className)===null||pa===void 0?void 0:pa.call(da,oa))||"";return(!((ha=ca[fa])===null||ha===void 0)&&ha.isEventStart||!((ga=ua[fa])===null||ga===void 0)&&ga.isEventStart)&&(ma+=" ".concat(prefix("".concat(fa).concat(ra,"-dragging")))),ma.trim()}).filter(Boolean).join(" ")},na.prototype._updateResizeObserver=function(ra){var oa,aa=this.props,sa=aa.target,la=getWindow$1(this.getControlBoxElement());if(!la.ResizeObserver||!sa||!aa.useResizeObserver){(oa=this._reiszeObserver)===null||oa===void 0||oa.disconnect();return}if(!(ra.target===sa&&this._reiszeObserver)){var ca=new la.ResizeObserver(this.checkUpdateRect);ca.observe(sa,{box:"border-box"}),this._reiszeObserver=ca}},na.prototype._updateMutationObserver=function(ra){var oa=this,aa,sa=this.props,la=sa.target,ca=getWindow$1(this.getControlBoxElement());if(!ca.MutationObserver||!la||!sa.useMutationObserver){(aa=this._mutationObserver)===null||aa===void 0||aa.disconnect();return}if(!(ra.target===la&&this._mutationObserver)){var ua=new ca.MutationObserver(function(da){var pa,ha;try{for(var ga=__values(da),fa=ga.next();!fa.done;fa=ga.next()){var ma=fa.value;ma.type==="attributes"&&ma.attributeName==="style"&&oa.checkUpdateRect()}}catch(va){pa={error:va}}finally{try{fa&&!fa.done&&(ha=ga.return)&&ha.call(ga)}finally{if(pa)throw pa.error}}});ua.observe(la,{attributes:!0}),this._mutationObserver=ua}},na.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:defaultSync,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},na}(reactExports.PureComponent),Groupable={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(ea,na){var ra,oa=ea.props,aa=oa.targets||[],sa=ea.getState(),la=sa.left,ca=sa.top,ua=sa.isPersisted,da=oa.zoom||1,pa=ea.renderGroupRects,ha=((ra=oa.persistData)===null||ra===void 0?void 0:ra.children)||[];ua?aa=ha.map(function(){return null}):ha=[];var ga=watchValue(ea,"parentPosition",[la,ca],function(ma){return ma.join(",")}),fa=watchValue(ea,"requestStyles",ea.getRequestChildStyles(),function(ma){return ma.join(",")});return ea.moveables=ea.moveables.slice(0,aa.length),__spreadArray$1(__spreadArray$1([],__read(aa.map(function(ma,va){return na.createElement(MoveableManager,{key:"moveable"+va,ref:refs(ea,"moveables",va),target:ma,origin:!1,requestStyles:fa,cssStyled:oa.cssStyled,customStyledMap:oa.customStyledMap,useResizeObserver:oa.useResizeObserver,useMutationObserver:oa.useMutationObserver,hideChildMoveableDefaultLines:oa.hideChildMoveableDefaultLines,parentMoveable:ea,parentPosition:[la,ca],persistData:ha[va],zoom:da})})),!1),__read(flat(pa.map(function(ma,va){var xa=ma.pos1,ya=ma.pos2,Aa=ma.pos3,Ca=ma.pos4,Sa=[xa,ya,Aa,Ca];return[[0,1],[1,3],[3,2],[2,0]].map(function(wa,ba){var Ea=__read(wa,2),$a=Ea[0],Ma=Ea[1];return renderLine(na,"",minus(Sa[$a],ga),minus(Sa[Ma],ga),da,"group-rect-".concat(va,"-").concat(ba))})}))),!1)}},Clickable=makeAble("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(ea,na){na.datas.inputTarget=na.inputEvent&&na.inputEvent.target},dragEnd:function(ea,na){var ra=ea.props.target,oa=na.inputEvent,aa=na.inputTarget,sa=ea.isMoveableElement(aa),la=!sa&&ea.controlBox.contains(aa);if(!(!oa||!aa||na.isDrag||ea.isMoveableElement(aa)||la)){var ca=ra.contains(aa);triggerEvent(ea,"onClick",fillParams(ea,na,{isDouble:na.isDouble,inputTarget:aa,isTarget:ra===aa,moveableTarget:ea.props.target,containsTarget:ca}))}},dragGroupEnd:function(ea,na){var ra=na.inputEvent,oa=na.inputTarget;if(!(!ra||!oa||na.isDrag||ea.isMoveableElement(oa)||na.datas.inputTarget===oa)){var aa=ea.props.targets,sa=aa.indexOf(oa),la=sa>-1,ca=!1;sa===-1&&(sa=findIndex$1(aa,function(ua){return ua.contains(oa)}),ca=sa>-1),triggerEvent(ea,"onClickGroup",fillParams(ea,na,{isDouble:na.isDouble,targets:aa,inputTarget:oa,targetIndex:sa,isTarget:la,containsTarget:ca,moveableTarget:aa[sa]}))}},dragControlEnd:function(ea,na){this.dragEnd(ea,na)},dragGroupControlEnd:function(ea,na){this.dragEnd(ea,na)}});function getDraggableEvent(ea){var na=ea.originalDatas.draggable;return na||(ea.originalDatas.draggable={},na=ea.originalDatas.draggable),__assign$3(__assign$3({},ea),{datas:na})}var edgeDraggable=makeAble("edgeDraggable",{css:[`.edge.edgeDraggable.line {
cursor: move;
}`],render:function(ea,na){var ra=ea.props,oa=ra.edgeDraggable;return oa?renderEdgeLines(na,"edgeDraggable",oa,ea.getState().renderPoses,ra.zoom):[]},dragCondition:function(ea,na){var ra,oa=ea.props,aa=(ra=na.inputEvent)===null||ra===void 0?void 0:ra.target;return!oa.edgeDraggable||!aa?!1:!oa.draggable&&hasClass(aa,prefix("direction"))&&hasClass(aa,prefix("edge"))&&hasClass(aa,prefix("edgeDraggable"))},dragStart:function(ea,na){return Draggable.dragStart(ea,getDraggableEvent(na))},drag:function(ea,na){return Draggable.drag(ea,getDraggableEvent(na))},dragEnd:function(ea,na){return Draggable.dragEnd(ea,getDraggableEvent(na))},dragGroupCondition:function(ea,na){var ra,oa=ea.props,aa=(ra=na.inputEvent)===null||ra===void 0?void 0:ra.target;return!oa.edgeDraggable||!aa?!1:!oa.draggable&&hasClass(aa,prefix("direction"))&&hasClass(aa,prefix("line"))},dragGroupStart:function(ea,na){return Draggable.dragGroupStart(ea,getDraggableEvent(na))},dragGroup:function(ea,na){return Draggable.dragGroup(ea,getDraggableEvent(na))},dragGroupEnd:function(ea,na){return Draggable.dragGroupEnd(ea,getDraggableEvent(na))},unset:function(ea){return Draggable.unset(ea)}}),IndividualGroupable={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]},MOVEABLE_ABLES=[BeforeRenderable,Default,Snappable,Pinchable,Draggable,edgeDraggable,Resizable,Scalable,Warpable,Rotatable,Scrollable,Padding,Origin,OriginDraggable,Clippable,Roundable,Groupable,IndividualGroupable,Clickable,DragArea,Renderable];function solveConstantsDistance(ea,na){var ra=__read(ea,3),oa=ra[0],aa=ra[1],sa=ra[2];return(oa*na[0]+aa*na[1]+sa)/Math.sqrt(oa*oa+aa*aa)}function solveC(ea,na){var ra=__read(ea,2),oa=ra[0],aa=ra[1];return-oa*na[0]-aa*na[1]}function getMaxPos(ea,na){return Math.max.apply(Math,__spreadArray$1([],__read(ea.map(function(ra){var oa=__read(ra,4),aa=oa[0],sa=oa[1],la=oa[2],ca=oa[3];return Math.max(aa[na],sa[na],la[na],ca[na])})),!1))}function getMinPos(ea,na){return Math.min.apply(Math,__spreadArray$1([],__read(ea.map(function(ra){var oa=__read(ra,4),aa=oa[0],sa=oa[1],la=oa[2],ca=oa[3];return Math.min(aa[na],sa[na],la[na],ca[na])})),!1))}function getGroupRect(ea,na){var ra,oa,aa,sa=[0,0],la=[0,0],ca=[0,0],ua=[0,0],da=0,pa=0;if(!ea.length)return{pos1:sa,pos2:la,pos3:ca,pos4:ua,minX:0,minY:0,maxX:0,maxY:0,width:da,height:pa,rotation:na};var ha=throttle$1(na,TINY_NUM);if(ha%90){var ga=ha/180*Math.PI,fa=Math.tan(ga),ma=-1/fa,va=[MAX_NUM,MIN_NUM],xa=[[0,0],[0,0]],ya=[MAX_NUM,MIN_NUM],Aa=[[0,0],[0,0]];ea.forEach(function(Wa){Wa.forEach(function(Za){var Xa=solveConstantsDistance([-fa,1,0],Za),tl=solveConstantsDistance([-ma,1,0],Za);va[0]>Xa&&(xa[0]=Za,va[0]=Xa),va[1]<Xa&&(xa[1]=Za,va[1]=Xa),ya[0]>tl&&(Aa[0]=Za,ya[0]=tl),ya[1]<tl&&(Aa[1]=Za,ya[1]=tl)})});var Ca=__read(xa,2),Sa=Ca[0],wa=Ca[1],ba=__read(Aa,2),Ea=ba[0],$a=ba[1],Ma=[-fa,1,solveC([-fa,1],Sa)],Ia=[-fa,1,solveC([-fa,1],wa)],Oa=[-ma,1,solveC([-ma,1],Ea)],Da=[-ma,1,solveC([-ma,1],$a)];ra=__read([[Ma,Oa],[Ma,Da],[Ia,Oa],[Ia,Da]].map(function(Wa){var Za=__read(Wa,2),Xa=Za[0],tl=Za[1];return getIntersectionPointsByConstants(Xa,tl)[0]}),4),sa=ra[0],la=ra[1],ca=ra[2],ua=ra[3],da=ya[1]-ya[0],pa=va[1]-va[0]}else{var Ta=getMinPos(ea,0),_a=getMinPos(ea,1),La=getMaxPos(ea,0),Na=getMaxPos(ea,1);if(sa=[Ta,_a],la=[La,_a],ca=[Ta,Na],ua=[La,Na],da=La-Ta,pa=Na-_a,ha%180){var za=[ca,sa,ua,la];oa=__read(za,4),sa=oa[0],la=oa[1],ca=oa[2],ua=oa[3],da=Na-_a,pa=La-Ta}}if(ha%360>180){var za=[ua,ca,la,sa];aa=__read(za,4),sa=aa[0],la=aa[1],ca=aa[2],ua=aa[3]}var Fa=getMinMaxs([sa,la,ca,ua]),Ha=Fa.minX,Va=Fa.minY,Ua=Fa.maxX,Qa=Fa.maxY;return{pos1:sa,pos2:la,pos3:ca,pos4:ua,width:da,height:pa,minX:Ha,minY:Va,maxX:Ua,maxY:Qa,rotation:na}}function findMoveableGroups(ea,na){var ra=na.map(function(oa){if(isArray(oa)){var aa=findMoveableGroups(ea,oa),sa=aa.length;return sa>1?aa:sa===1?aa[0]:null}else{var la=find$1(ea,function(ca){var ua=ca.manager;return ua.props.target===oa});return la?(la.finded=!0,la.manager):null}}).filter(Boolean);return ra.length===1&&isArray(ra[0])?ra[0]:ra}var MoveableGroup=function(ea){__extends$2(na,ea);function na(){var ra=ea!==null&&ea.apply(this,arguments)||this;return ra.differ=new ChildrenDiffer,ra.moveables=[],ra.transformOrigin="50% 50%",ra.renderGroupRects=[],ra._targetGroups=[],ra._hasFirstTargets=!1,ra}return na.prototype.componentDidMount=function(){ea.prototype.componentDidMount.call(this)},na.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},na.prototype.getTargets=function(){return this.props.targets},na.prototype.updateRect=function(ra,oa,aa){var sa;aa===void 0&&(aa=!0);var la=this.state;if(!this.controlBox||la.isPersisted)return;setStoreCache(!0),this.moveables.forEach(function(Ja){Ja.updateRect(ra,!1,!1)});var ca=this.props,ua=this.moveables,da=la.target||ca.target,pa=ua.map(function(Ja){return{finded:!1,manager:Ja}}),ha=this.props.targetGroups||[],ga=findMoveableGroups(pa,ha),fa=ca.useDefaultGroupRotate;ga.push.apply(ga,__spreadArray$1([],__read(pa.filter(function(Ja){var nl=Ja.finded;return!nl}).map(function(Ja){var nl=Ja.manager;return nl})),!1));var ma=[],va=!oa||ra!==""&&ca.updateGroup,xa=ca.defaultGroupRotate||0;if(!this._hasFirstTargets){var ya=(sa=ca.persistData)===null||sa===void 0?void 0:sa.rotation;ya!=null&&(xa=ya)}function Aa(Ja,nl,Ya){var rl=Ja.map(function(Il){if(isArray(Il)){var Ol=Aa(Il,nl),Fl=[Ol.pos1,Ol.pos2,Ol.pos3,Ol.pos4];return ma.push(Ol),{poses:Fl,rotation:Ol.rotation}}else return{poses:getAbsolutePosesByState(Il.state),rotation:Il.getRotation()}}),sl=rl.map(function(Il){var Ol=Il.rotation;return Ol}),dl=0,pl=sl[0],ml=sl.every(function(Il){return Math.abs(pl-Il)<.1});va?dl=!fa&&ml?pl:xa:dl=!fa&&!Ya&&ml?pl:nl;var Rl=rl.map(function(Il){var Ol=Il.poses;return Ol}),Tl=getGroupRect(Rl,dl);return Tl}var Ca=Aa(ga,this.rotation,!0);va&&(this.rotation=Ca.rotation,this.transformOrigin=ca.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=ha,this.renderGroupRects=ma;var Sa=this.transformOrigin,wa=this.rotation,ba=this.scale,Ea=Ca.width,$a=Ca.height,Ma=Ca.minX,Ia=Ca.minY,Oa=rotatePosesInfo([[0,0],[Ea,0],[0,$a],[Ea,$a]],convertTransformOriginArray(Sa,Ea,$a),this.rotation/180*Math.PI),Da=getMinMaxs(Oa.result),Ta=Da.minX,_a=Da.minY,La=" rotate(".concat(wa,"deg)")+" scale(".concat(sign(ba[0]),", ").concat(sign(ba[1]),")"),Na="translate(".concat(-Ta,"px, ").concat(-_a,"px)").concat(La);this.controlBox.style.transform="translate3d(".concat(Ma,"px, ").concat(Ia,"px, ").concat(this.props.translateZ||0,")"),da.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(Sa,";")+"width:".concat(Ea,"px;height:").concat($a,"px;")+"transform: ".concat(Na),la.width=Ea,la.height=$a;var za=this.getContainer(),Fa=getMoveableTargetInfo(this.controlBox,da,this.controlBox,this.getContainer(),this._rootContainer||za,[]),Ha=[Fa.left,Fa.top],Va=__read(getAbsolutePosesByState(Fa),4),Ua=Va[0],Qa=Va[1],Wa=Va[2],Za=Va[3],Xa=getMinMaxs([Ua,Qa,Wa,Za]),tl=[Xa.minX,Xa.minY],il=sign(ba[0]*ba[1]);Fa.pos1=minus(Ua,tl),Fa.pos2=minus(Qa,tl),Fa.pos3=minus(Wa,tl),Fa.pos4=minus(Za,tl),Fa.left=Ma-Fa.left+tl[0],Fa.top=Ia-Fa.top+tl[1],Fa.origin=minus(plus(Ha,Fa.origin),tl),Fa.beforeOrigin=minus(plus(Ha,Fa.beforeOrigin),tl),Fa.originalBeforeOrigin=plus(Ha,Fa.originalBeforeOrigin),Fa.transformOrigin=minus(plus(Ha,Fa.transformOrigin),tl),da.style.transform="translate(".concat(-Ta-tl[0],"px, ").concat(-_a-tl[1],"px)")+La,setStoreCache(),this.updateState(__assign$3(__assign$3({},Fa),{posDelta:tl,direction:il,beforeDirection:il}),aa)},na.prototype.getRect=function(){return __assign$3(__assign$3({},ea.prototype.getRect.call(this)),{children:this.moveables.map(function(ra){return ra.getRect()})})},na.prototype.triggerEvent=function(ra,oa,aa){if(aa||ra.indexOf("Group")>-1)return ea.prototype.triggerEvent.call(this,ra,oa);this._emitter.trigger(ra,oa)},na.prototype.getRequestChildStyles=function(){var ra=this.getEnabledAbles().reduce(function(oa,aa){var sa,la,ca=(la=(sa=aa.requestChildStyle)===null||sa===void 0?void 0:sa.call(aa))!==null&&la!==void 0?la:[];return __spreadArray$1(__spreadArray$1([],__read(oa),!1),__read(ca),!1)},[]);return ra},na.prototype.getMoveables=function(){return __spreadArray$1([],__read(this.moveables),!1)},na.prototype.updateAbles=function(){ea.prototype.updateAbles.call(this,__spreadArray$1(__spreadArray$1([],__read(this.props.ables),!1),[Groupable],!1),"Group")},na.prototype._updateTargets=function(){ea.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=getRefTarget(this._originalDragTarget,!0)},na.prototype._updateEvents=function(){var ra=this.state,oa=this.props,aa=this._prevDragTarget,sa=oa.dragTarget||this.areaElement,la=oa.targets,ca=this.differ.update(la),ua=ca.added,da=ca.changed,pa=ca.removed,ha=ua.length||pa.length;(ha||this._prevOriginalDragTarget!==this._originalDragTarget)&&(unsetGesto(this,!1),unsetGesto(this,!0),this.updateState({gestos:{}})),aa!==sa&&(ra.target=null),ra.target||(ra.target=this.areaElement,this.controlBox.style.display="block"),ra.target&&(this.targetGesto||(this.targetGesto=getTargetAbleGesto(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=getAbleGesto(this,this.controlBox,"controlAbles","GroupControl")));var ga=!equals(ra.container,oa.container);ga&&(ra.container=oa.container),(ga||ha||this.transformOrigin!==(oa.defaultGroupOrigin||"50% 50%")||da.length||la.length&&!isDeepArrayEquals(this._targetGroups,oa.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!ha},na.prototype._updateObserver=function(){},na.defaultProps=__assign$3(__assign$3({},MoveableManager.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),na}(MoveableManager),MoveableIndividualGroup=function(ea){__extends$2(na,ea);function na(){var ra=ea!==null&&ea.apply(this,arguments)||this;return ra.moveables=[],ra}return na.prototype.render=function(){var ra=this,oa,aa=this.props,sa=aa.cspNonce,la=aa.cssStyled,ca=aa.persistData,ua=aa.targets||[],da=ua.length,pa=this.isUnmounted||!da,ha=(oa=ca?.children)!==null&&oa!==void 0?oa:[];return pa&&!da&&ha.length?ua=ha.map(function(){return null}):pa||(ha=[]),reactExports.createElement(la,{cspNonce:sa,ref:ref(this,"controlBox"),className:prefix("control-box")},ua.map(function(ga,fa){var ma,va,xa=(va=(ma=aa.individualGroupableProps)===null||ma===void 0?void 0:ma.call(aa,ga,fa))!==null&&va!==void 0?va:{};return reactExports.createElement(MoveableManager,__assign$3({key:"moveable"+fa,ref:refs(ra,"moveables",fa)},aa,xa,{target:ga,wrapperMoveable:ra,isWrapperMounted:ra.isMoveableMounted,persistData:ha[fa]}))}))},na.prototype.componentDidMount=function(){},na.prototype.componentDidUpdate=function(){},na.prototype.getTargets=function(){return this.props.targets},na.prototype.updateRect=function(ra,oa,aa){aa===void 0&&(aa=!0),setStoreCache(!0),this.moveables.forEach(function(sa){sa.updateRect(ra,oa,aa)}),setStoreCache()},na.prototype.getRect=function(){return __assign$3(__assign$3({},ea.prototype.getRect.call(this)),{children:this.moveables.map(function(ra){return ra.getRect()})})},na.prototype.request=function(ra,oa,aa){oa===void 0&&(oa={});var sa=this.moveables.map(function(ua){return ua.request(ra,__assign$3(__assign$3({},oa),{isInstant:!1}),!1)}),la=aa||oa.isInstant,ca={request:function(ua){return sa.forEach(function(da){return da.request(ua)}),this},requestEnd:function(){return sa.forEach(function(ua){return ua.requestEnd()}),this}};return la?ca.request(oa).requestEnd():ca},na.prototype.dragStart=function(ra){var oa=ra.target,aa=find$1(this.moveables,function(sa){var la=sa.getTargets()[0],ca=sa.getControlBoxElement(),ua=sa.getDragElement();return!la||!ua?!1:ua===oa||ua.contains(oa)||ua!==la&&la===oa||la.contains(oa)||ca===oa||ca.contains(oa)});return aa&&aa.dragStart(ra),this},na.prototype.hitTest=function(){return 0},na.prototype.isInside=function(){return!1},na.prototype.isDragging=function(){return!1},na.prototype.getDragElement=function(){return null},na.prototype.getMoveables=function(){return __spreadArray$1([],__read(this.moveables),!1)},na.prototype.updateRenderPoses=function(){},na.prototype.checkUpdate=function(){},na.prototype.triggerEvent=function(){},na.prototype.updateAbles=function(){},na.prototype._updateEvents=function(){},na.prototype._updateObserver=function(){},na}(MoveableManager);function getElementTargets(ea,na){var ra=[];return ea.forEach(function(oa){if(oa){if(isString$1(oa)){na[oa]&&ra.push.apply(ra,__spreadArray$1([],__read(na[oa]),!1));return}isArray(oa)?ra.push.apply(ra,__spreadArray$1([],__read(getElementTargets(oa,na)),!1)):ra.push(oa)}}),ra}function getTargetGroups(ea,na){var ra=[];return ea.forEach(function(oa){if(oa){if(isString$1(oa)){na[oa]&&ra.push.apply(ra,__spreadArray$1([],__read(na[oa]),!1));return}isArray(oa)?ra.push(getTargetGroups(oa,na)):ra.push(oa)}}),ra}function compareRefTargets(ea,na){return ea.length!==na.length||ea.some(function(ra,oa){var aa=na[oa];return!ra&&!aa?!1:ra!=aa?isArray(ra)&&isArray(aa)?compareRefTargets(ra,aa):!0:!1})}var InitialMoveable=function(ea){__extends$2(na,ea);function na(){var ra=ea!==null&&ea.apply(this,arguments)||this;return ra.refTargets=[],ra.selectorMap={},ra._differ=new ChildrenDiffer,ra._elementTargets=[],ra._tmpRefTargets=[],ra._tmpSelectorMap={},ra._onChangeTargets=null,ra}return na.makeStyled=function(){var ra={},oa=this.getTotalAbles();oa.forEach(function(sa){var la=sa.css;la&&la.forEach(function(ca){ra[ca]=!0})});var aa=getKeys(ra).join(`
`);this.defaultStyled=styled("div",prefixCSS(PREFIX,MOVEABLE_CSS+aa))},na.getTotalAbles=function(){return __spreadArray$1([Default,Groupable,IndividualGroupable,DragArea],__read(this.defaultAbles),!1)},na.prototype.render=function(){var ra,oa=this.constructor;oa.defaultStyled||oa.makeStyled();var aa=this.props,sa=aa.ables,la=aa.props,ca=__rest$1(aa,["ables","props"]),ua=__read(this._updateRefs(!0),2),da=ua[0],pa=ua[1],ha=getElementTargets(da,pa),ga=ha.length>1,fa=oa.getTotalAbles(),ma=__spreadArray$1(__spreadArray$1([],__read(fa),!1),__read(sa||[]),!1),va=__assign$3(__assign$3(__assign$3({},ca),la||{}),{ables:ma,cssStyled:oa.defaultStyled,customStyledMap:oa.customStyledMap});this._elementTargets=ha;var xa=null,ya=this.moveable,Aa=ca.persistData;if(Aa?.children&&(ga=!0),ca.individualGroupable)return reactExports.createElement(MoveableIndividualGroup,__assign$3({key:"individual-group",ref:ref(this,"moveable")},va,{target:null,targets:ha}));if(ga){var Ca=getTargetGroups(da,pa);if(ya&&!ya.props.groupable&&!ya.props.individualGroupable){var Sa=ya.props.target;Sa&&ha.indexOf(Sa)>-1&&(xa=__assign$3({},ya.state))}return reactExports.createElement(MoveableGroup,__assign$3({key:"group",ref:ref(this,"moveable")},va,(ra=ca.groupableProps)!==null&&ra!==void 0?ra:{},{target:null,targets:ha,targetGroups:Ca,firstRenderState:xa}))}else{var wa=ha[0];if(ya&&(ya.props.groupable||ya.props.individualGroupable)){var ba=ya.moveables||[],Ea=find$1(ba,function($a){return $a.props.target===wa});Ea&&(xa=__assign$3({},Ea.state))}return reactExports.createElement(MoveableManager,__assign$3({key:"single",ref:ref(this,"moveable")},va,{target:wa,firstRenderState:xa}))}},na.prototype.componentDidMount=function(){this._checkChangeTargets()},na.prototype.componentDidUpdate=function(){this._checkChangeTargets()},na.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},na.prototype.getTargets=function(){var ra,oa;return(oa=(ra=this.moveable)===null||ra===void 0?void 0:ra.getTargets())!==null&&oa!==void 0?oa:[]},na.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs()},na.prototype.waitToChangeTarget=function(){var ra=this,oa;return this._onChangeTargets=function(){ra._onChangeTargets=null,oa()},new Promise(function(aa){oa=aa})},na.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},na.prototype.getManager=function(){return this.moveable},na.prototype.getMoveables=function(){return this.moveable.getMoveables()},na.prototype.getDragElement=function(){return this.moveable.getDragElement()},na.prototype._updateRefs=function(ra){var oa=this.refTargets,aa=getRefTargets(this.props.target||this.props.targets),sa=typeof document<"u",la=compareRefTargets(oa,aa),ca=this.selectorMap,ua={};return this.refTargets.forEach(function da(pa){if(isString$1(pa)){var ha=ca[pa];ha?ua[pa]=ca[pa]:sa&&(la=!0,ua[pa]=[].slice.call(document.querySelectorAll(pa)))}else isArray(pa)&&pa.forEach(da)}),this._tmpRefTargets=aa,this._tmpSelectorMap=ua,[aa,ua,!ra&&la]},na.prototype._checkChangeTargets=function(){var ra,oa,aa;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var sa=this._differ.update(this._elementTargets),la=sa.added,ca=sa.removed,ua=la.length||ca.length;ua&&((oa=(ra=this.props).onChangeTargets)===null||oa===void 0||oa.call(ra,{moveable:this.moveable,targets:this._elementTargets}),(aa=this._onChangeTargets)===null||aa===void 0||aa.call(this));var da=__read(this._updateRefs(),3),pa=da[0],ha=da[1],ga=da[2];this.refTargets=pa,this.selectorMap=ha,ga&&this.forceUpdate()},na.defaultAbles=[],na.customStyledMap={},na.defaultStyled=null,__decorate([withMethods(MOVEABLE_METHODS)],na.prototype,"moveable",void 0),na}(reactExports.PureComponent),Moveable=function(ea){__extends$2(na,ea);function na(){return ea!==null&&ea.apply(this,arguments)||this}return na.defaultAbles=MOVEABLE_ABLES,na}(InitialMoveable);class Frame{transformObject;cachedTransformObject;elementInlineStyles;type;id;elementRef;moveable;initialRender;constructor(na,ra,oa,aa){this.transformObject={...ra},this.cachedTransformObject={...ra},this.type=ra.config.type??"block",this.elementRef=oa,this.elementInlineStyles=this.elementRef?.style.cssText,this.id=na,this.moveable=aa,this.initialRender=!0}update(na){this.transformObject={...na},this.cachedTransformObject={...na},this.updateInitialStyle()}updateInitialStyle(){this.initialRender=!0,this.elementInlineStyles=this.elementRef.style.cssText}isChanged(){return!shallowEqual$2(this.cachedTransformObject,this.transformObject)}setDrag({set:na}){na([this.transformObject.x,this.transformObject.y])}setScale({set:na}){na([this.transformObject.scaleX,this.transformObject.scaleY])}onEnd(){this.elementRef.style.cssText=this.elementInlineStyles}drag({beforeDelta:[na,ra]}){this.transformObject.config.staticPosition||(this.transformObject.x+=na,this.transformObject.y+=ra)}setRotate({set:na}){na(this.transformObject.rotation)}rotate({beforeRotate:na}){this.transformObject.rotation=na}setSize({setOrigin:na,dragStart:ra}){na(["%","%"]),ra&&this.setDrag(ra)}resize({width:na,height:ra,drag:oa}){this.drag(oa),this.transformObject.width=na,this.transformObject.height=ra}scale({scale:[na,ra],drag:oa}){this.drag(oa),this.transformObject.scaleX=na,this.transformObject.scaleY=ra}render({target:na}){const ra=this.transformObject;this.transformObject.config.staticPosition&&(ra.x=0,ra.y=0);const oa=`
         right: auto;
         bottom: auto;
         left: ${ra.x}px;
         top: ${ra.y}px;
         width: ${ra.width}px;
         transform: rotate(${ra.rotation}deg) scaleX(${ra.scaleX}) scaleY(${ra.scaleY});
         height: ${ra.height}px;
         `;na.style.cssText+=oa,this.type==="text"&&this.moveable?.updateRect(),this.initialRender=!1}isInitialRender(){return this.initialRender}getTransform(){return{...this.transformObject}}}const transformToolClassName="ms-transform-tool-target",textTransformHandles=["nw","ne","se","sw","e","w"],calcBoundingBox=ea=>{const na={},ra=ea.getRect();return na.x=ra.left,na.y=ra.top,na.width=ra.width,na.height=ra.height,na.left=na.x,na.top=na.y,na.bottom=ra.top+ra.height,na.right=ra.left+ra.width,na},MoveableContainer=ea=>{const{transforms:na,onUpdate:ra,onStart:oa,onEnd:aa,elementsRef:sa,target:la,container:ca,onRectUpdate:ua,verticalGuidelines:da=[],checkForChildTransform:pa=!0,horizontalGuidelines:ha=[],zoom:ga=1,className:fa,startEvent:ma}=ea,va=reactExports.useMemo(()=>Object.keys(na),[na]),xa=reactExports.useMemo(()=>Object.keys(sa),[sa]),ya=reactExports.useRef(null),Aa=reactExports.useRef(null),[Ca,Sa]=reactExports.useState(0),[wa,ba]=reactExports.useState(0),[Ea,$a]=reactExports.useState(!1),Ma=reactExports.useRef(""),Ia=reactExports.useRef(!1),[Oa,Da]=reactExports.useState(new Map);reactExports.useEffect(()=>{const Ha=new Map;va.forEach(Va=>{Ha.set(sa[Va],new Frame(Va,na[Va],sa[Va],ya.current))}),Da(Ha)},[sa,va,na]);const{clientHeight:Ta,clientWidth:_a}=ca,La=reactExports.useMemo(()=>({vertical:[0,_a/2,_a,...da],horizontal:[0,Ta/2,Ta,...ha]}),[Ta,_a,ha,da]);reactExports.useEffect(()=>{const Ha=new Mousetrap;return Ha.bind("shift",()=>{$a(!0),Sa(15),ba(90)},"keydown"),Ha.bind("shift",()=>{$a(!1),Sa(0),ba(0)},"keyup"),Ha.bind(["right","shift+right"],Va=>(ya.current?.request("draggable",{deltaX:Va.shiftKey?10:1,isInstant:!0}),!1)),Ha.bind(["left","shift+left"],Va=>(ya.current?.request("draggable",{deltaX:Va.shiftKey?-10:-1,isInstant:!0}),!1)),Ha.bind(["up","shift+up"],Va=>(ya.current?.request("draggable",{deltaY:Va.shiftKey?-10:-1,isInstant:!0}),!1)),Ha.bind(["down","shift+down"],Va=>(ya.current?.request("draggable",{deltaY:Va.shiftKey?10:1,isInstant:!0}),!1)),()=>{Ha.reset()}},[]);let Na={target:la,container:ca,className:`ms-moveable ${fa}`,draggable:!0,resizable:!0,rotatable:!0,triggerAblesSimultaneously:!0,snappable:!0,elementSnapDirections:{top:!0,left:!0,bottom:!0,right:!0,middle:!0,center:!0},snapDirections:{top:!0,left:!0,bottom:!0,right:!0,middle:!0,center:!0},isDisplayInnerSnapDigit:!0,edge:!1,origin:!1,useAccuratePosition:!0,throttleDrag:1,padding:1.5*ga,resizeFormat:Ha=>[Math.trunc(Ha[0]),Math.trunc(Ha[1])],throttleRotate:Ca,throttleDragRotate:wa,rootContainer:document.body,renderDirections:["n","nw","ne","s","se","sw","e","w"],zoom:ga};reactExports.useEffect(()=>{if(Oa.size){const[Ha]=Oa.values();Ma.current!==Ha.id&&ma&&(Ma.current=Ha.id,ya.current?.dragStart(ma))}},[Oa,ma,va]),Na.verticalGuidelines=La.vertical,Na.horizontalGuidelines=La.horizontal,Na.elementGuidelines=xa.filter(Ha=>!va.includes(Ha)).map(Ha=>sa[Ha]).filter(Ha=>!la.some(Va=>Va.contains(Ha)));const za=reactExports.useCallback(Ha=>{if(Ia.current)return;Ia.current=!0;const Va=Oa.get(Ha.target);Va?.updateInitialStyle(),Va&&oa&&oa({[Va.id]:Va.getTransform()})},[Oa,oa]);if(Oa.size===1){const Ha=na[va[0]];Ha.config.type==="text"&&(Na.className+=" ms-moveable-text",Na.renderDirections=textTransformHandles),Ha.config.offDirections&&(Na.renderDirections=Na.renderDirections.filter(Ya=>!Ha.config.offDirections?.includes(Ya))),Na.keepRatio=Ha.config.keepAspectRatio||Ea,(Ha.config?.offAbles||[]).forEach(Ya=>{Na[Ya]=!1});const Ua=Ya=>{Oa.get(Ya.target)?.setDrag(Ya),za(Ya),setMouseCursor("move")},Qa=Ya=>{Oa.get(Ya.target)?.setScale(Ya),za(Ya),setMouseCursor("move")},Wa=Ya=>{Oa.get(Ya.target)?.setRotate(Ya),za(Ya)},Za=Ya=>{Oa.get(Ya.target)?.setSize(Ya);const[rl,sl]=Ya.direction;Ha.config.keepRatioOnEdges&&(rl!==0&&sl!==0?Ea||$a(!0):Ea&&$a(!1)),za(Ya)},Xa=Ya=>Oa.get(Ya.target)?.drag(Ya),tl=Ya=>Oa.get(Ya.target)?.scale(Ya),il=Ya=>{Oa.get(Ya.target)?.resize(Ya)},Ja=Ya=>Oa.get(Ya.target)?.rotate(Ya),nl=Ya=>{const rl=Oa.get(Ya.target);rl&&(rl.render(Ya),ra&&rl&&rl.isChanged()&&ra({[rl.id]:rl.getTransform()}))};Na.onRenderEnd=Ya=>{const rl=Oa.get(Ya.target);rl?.onEnd(),Ia.current=!1,aa&&rl&&aa({[rl.id]:rl.getTransform()}),resetMouseCursor()},Na={...Na,onDrag:Xa,onDragStart:Ua,onScaleStart:Qa,onScale:tl,onRotate:Ja,onRotateStart:Wa,onResizeStart:Za,onResize:il,onRender:nl}}else Oa.size>1&&(Na.resizable=!1,Na.rotatable=!1,Na.onDragGroupStart=({events:Ha})=>Ha.forEach(Va=>Oa.get(Va.target).setDrag(Va)),Na.onDragGroup=({events:Ha})=>Ha.forEach(Va=>Oa.get(Va.target).drag(Va)),oa&&(Na.onRenderGroupStart=Ha=>{if(Ha.inputEvent&&pa){const{target:Qa}=Ha.inputEvent;if(!Qa)return;const Wa=Qa.closest(`.${transformToolClassName}`);if(!Ha.targets.includes(Qa)&&Wa&&!Ha.targets.includes(Wa))return}const{targets:Va}=Ha,Ua={};Va.forEach(Qa=>{const Wa=Oa.get(Qa);Wa&&(Ua[Wa.id]=Wa.getTransform())}),oa(Ua)}),Na.onRenderGroup=({targets:Ha})=>{const Va={};Ha.forEach(Ua=>{const Qa=Oa.get(Ua);Qa.render({target:Ua}),Qa&&Qa.isChanged()&&(Va[Qa.id]=Qa.getTransform())}),ra&&ra(Va)},aa&&(Na.onRenderGroupEnd=({targets:Ha})=>{const Va={};Ha.forEach(Ua=>{const Qa=Oa.get(Ua);Qa&&(Va[Qa.id]=Qa.getTransform()),Qa?.onEnd()}),aa(Va)}));const Fa=Ha=>{ya.current=Ha,Ha?.updateRect(),Ha&&ua&&setTimeout(()=>{const Va=calcBoundingBox(Ha);Va&&!shallowEqual$2(Va,Aa.current)&&(Aa.current=Va,ua(Va))})};return jsxRuntimeExports.jsx(Moveable,{...Na,preventDefault:!1,ref:Fa})},TransformTool$1=React.memo(ea=>{const{onUnhandledClick:na,transforms:ra,className:oa,container:aa,onStart:sa,onEnd:la,onRectUpdate:ca,style:ua={},visibility:da="visible",elementsRef:pa}=ea,ha=Object.keys(ra),ga=reactExports.useRef("end"),[fa,ma]=reactExports.useState(!1),va=ha.filter(Sa=>!ra[Sa].locked&&pa[Sa]).map(Sa=>pa[Sa]),xa=reactExports.useCallback(Sa=>{ga.current="start",sa&&sa(Sa)},[sa]),ya=reactExports.useCallback(Sa=>{ga.current="end",la&&la(Sa,!equal(Sa,ra))},[la,ra]),Aa=reactExports.useCallback(Sa=>{ga.current!=="start"&&ha.length&&!Sa.target.closest(".ms-transform-tool-target, .ms-moveable")&&(ga.current="end",na&&na(Sa))},[na,ha.length]),Ca=reactExports.useCallback(Sa=>{Sa.key==="Shift"&&ma(Sa.type==="keydown")},[]);return reactExports.useEffect(()=>(document.addEventListener("mouseup",Aa),document.addEventListener("keydown",Ca),document.addEventListener("keyup",Ca),()=>{document.removeEventListener("keydown",Ca),document.removeEventListener("keyup",Ca),document.removeEventListener("mouseup",Aa)}),[Aa,Ca]),ua.visibility=da,jsxRuntimeExports.jsx("div",{style:ua,className:`ms-transform-tool ${oa} `,children:!!va.length&&aa&&jsxRuntimeExports.jsx(MoveableContainer,{...ea,className:`${ea.className} ${fa?" ms-shift-hold":""}`,target:va,onStart:xa,onEnd:ya,onRectUpdate:ca})})}),TransformToolStartEventContext=React.createContext({setEvent:()=>{},event:null}),TransformToolStartEventHandler=({children:ea})=>{const[na,ra]=reactExports.useState(null),oa=reactExports.useMemo(()=>({setEvent:ra,event:na}),[na]);return jsxRuntimeExports.jsx(TransformToolStartEventContext.Provider,{value:oa,children:ea})},defaultTransformToolConfig={type:"block",enable:!0,keepRatioOnEdges:!0,offAbles:[]},useSetupTransformTool=(ea,na,ra,oa,aa)=>{const sa=useDispatch(),{setEvent:la,event:ca}=reactExports.useContext(TransformToolStartEventContext),ua=useSyncHTMLRefToContext(ea),{enable:da,mode:pa,direction:ha,wrap:ga}=useSelector(getElementAutoLayoutData(ra))||{},fa=useSelector(getActiveBreakpoint),{width:ma,height:va}=getResponsiveValue(oa,fa)||{},xa=getResponsiveValue(pa,fa),ya=ma==="auto"?"auto":typeof ma!="string"?ma?.unit:void 0,Aa=va==="auto"?"auto":typeof va!="string"?va?.unit:void 0,Ca=da&&xa==="flex"?getResponsiveValue(ha,fa):void 0,Sa=da&&xa==="grid",wa=da&&xa==="flex"?getResponsiveValue(ga,fa):void 0,ba=useSelector(getTransformToolActiveElements)?.includes(ea),{enable:Ea=!0}=na;reactExports.useEffect(()=>{const Oa=lodashExports.cloneDeep(na);return Array.isArray(Oa.offDirections)||(Oa.offDirections=[]),Sa&&ya==="%"&&Oa.offDirections.push("w","e","ne","nw","se","sw"),Sa&&Aa==="%"&&Oa.offDirections.push("n","s","ne","nw","se","sw"),Oa.offDirections=Array.from(new Set(Oa.offDirections)),sa(setTransformToolConfig({id:ea,config:Oa})),()=>{sa(removeTransformToolConfig(ea))}},[na,sa,Aa,ea,Sa,aa,Ca,wa,ya]);const $a=reactExports.useCallback(()=>{window.requestAnimationFrame(()=>la(null)),document.removeEventListener("mouseup",$a)},[la]),Ma=reactExports.useCallback(Oa=>{!Ea||aa||(document.addEventListener("mouseup",$a),la(Oa))},[Ea,aa,$a,la]),Ia=`${ba?"ms-transform-tool-active":""} ${transformToolClassName}`;return{passEvent:Ma,setTransformToolRef:ua,isActive:ba,event:ca,transformToolClassName:Ea?Ia:""}},useGetElementRealTimeTransformToolSizeData=ea=>useSelector(ra=>getSelectedElementsTransformToolFrame(ra)?.[ea],equal)||{},useUpdateTransformToolConfig=ea=>{const na=useDispatch(),ra=useSelector(getTransformToolConfigs)?.[ea]?.link||ea;return reactExports.useCallback(aa=>{na(setTransformToolConfig({id:ra,config:aa}))},[na,ra])},useUpdateElementTransform=ea=>{const na=useDispatch(),ra=useSelector(getTransformToolActiveElementsSizeData,equal),oa=useSelector(getTransformToolActiveElementsComputedValues),aa=reactExports.useMemo(()=>Object.keys(ra),[ra]),sa=useSelector(getTransformToolActiveElementsParentSizes,equal),la=useSelector(getDocumentOptionsByPathAndPrefix("general")("keepAspect"));return reactExports.useCallback(ua=>{const da=[];aa.forEach(pa=>{const ha=ra[pa],ga=!isSection(ha.parent),{boundaries:fa}=oa[pa],ma=sa[pa];if(!fa||!ma)return;const va={width:ma.width,height:ma.height},xa=calcElementPosition(getResponsiveValue(ha.position,ea),ua[pa],ua[pa],va,la&&!ga?"tl":void 0),{config:ya}=ua[pa],Aa=calcElementSize(getResponsiveValue(ha.size,ea),ua[pa],va,fa,ya.type==="block"&&(!ya.alwaysAuto||!["height","both"].includes(ya.alwaysAuto))),Ca={},Sa={},{rotation:wa,scaleX:ba,scaleY:Ea}=ua[pa];wa!==void 0&&(Sa.rotate=wa),ba!==void 0&&(Sa.scaleX=ba),Ea!==void 0&&(Sa.scaleY=Ea),isEmptyObject(Sa)||(Ca.transform=setResponsiveValue({rotate:wa===0?void 0:wa,scaleX:ba===1?void 0:ba,scaleY:Ea===1?void 0:Ea},ha.transform,ea,!0)),da.push({position:setResponsiveValue(xa,ha.position,ea,!0),size:setResponsiveValue(Aa,ha.size,ea,!0),styles:Ca})}),reactDomExports.unstable_batchedUpdates(()=>{na(updateElements({ids:aa,values:da})),na(addToHistory())})},[ea,na,aa,oa,ra,la,sa])},usePosition=(ea,na,ra,oa=!1)=>{const aa=useSelector(getActiveBreakpoint),sa=getResponsiveValue(ea,aa)||{},{x:la,y:ca,origin:ua="tl",positionType:da="absolute"}=sa;if(da==="static")return{styles:{position:"relative"}};const pa=oa?{top:"initial",left:"initial",right:"initial",bottom:"initial"}:{},[ha,ga]=ua.split(""),fa={};if(ca!==void 0)switch(ha){case"t":default:pa.top=withUnit$1(ca);break;case"m":pa.top=`calc(50% + ${withUnit$1(ca)} )`,fa.y={value:-50,unit:"%"};break;case"b":pa.bottom=withUnit$1(ca);break}if(la!==void 0)switch(ga){case"l":default:pa.left=withUnit$1(la);break;case"c":pa.left=`calc(50% + ${withUnit$1(la)})`,fa.x={value:-50,unit:"%"};break;case"r":pa.right=withUnit$1(la);break}return na&&(pa.zIndex=na+(isForeground(ra||"")?2e3:0)),{styles:pa,transform:fa,bpPosition:sa}},useUpdateAutoOrigin=(ea,na,ra=!0)=>{const oa=useDispatch(),aa=useSelector(getActiveBreakpoint),{autoOrigin:sa,positionType:la}=getResponsiveValue(na,aa)||{};reactExports.useEffect(()=>{sa&&la!=="static"&&ra&&oa(updateElementAutoOrigin({id:ea}))},[sa,oa,ra,ea,la])},useElementAutoLayout=(ea={})=>{const{enable:na=!0,mode:ra,alignment:oa,direction:aa,columns:sa,gap:la,wrap:ca,reverse:ua}=ea,da=useSelector(getActiveBreakpoint);if(!na)return{style:{}};const pa=getResponsiveValue(ra,da)||"flex",ha=getResponsiveValue(oa,da)||"tl",ga=getResponsiveValue(la,da)||0,fa=getResponsiveValue(aa,da)||"row",ma=getResponsiveValue(sa,da)||1,va=getResponsiveValue(ca,da)||!1,xa=getResponsiveValue(ua,da)||!1,ya=pa==="flex",Aa=ya?"flex":"grid",Ca=ya?fa:void 0,Sa=ya&&va?"wrap":"nowrap",wa=!ya&&ma?`repeat(${ma}, 1fr)`:void 0;let ba=ha.includes("t")?"flex-start":ha.includes("b")?"flex-end":"center",Ea=ha.includes("l")?"flex-start":ha.includes("r")?"flex-end":"center";const $a=ha.includes("l")?"start":ha.includes("r")?"end":"center";(!Ca||fa==="row")&&([ba,Ea]=[Ea,ba]);const Ma=typeof ga=="number"?`${ga}px`:"0",Ia=ya&&ga==="auto"?"space-between":ba;return{className:"dp-auto-layout",style:{display:Aa,flexDirection:xa?`${fa}-reverse`:Ca,flexWrap:Sa,alignItems:Ea,justifyContent:ya?Ia:void 0,justifyItems:ya?void 0:$a,gap:Ma,gridTemplateColumns:wa}}},useSize=(ea,na)=>{const ra=useSelector(getActiveBreakpoint),oa=getResponsiveValue(ea,ra);if(!oa)return;const{width:aa,height:sa}=oa,la={};aa&&(la.width=withUnit$1(aa)),sa&&(la.height=withUnit$1(sa));const{mode:ca}={},ua=getResponsiveValue(ca,ra),da=getResponsiveValue(na?.direction,ra);return ua==="flex"&&(da==="column"&&la.height!=="auto"||da==="row"&&la.width!=="auto")&&(la.flexShrink=0),la},useWidth=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(ra)return{width:withUnit$1(ra)}},useHeight=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(ra)return{height:withUnit$1(ra)}},useTransform=(ea,na={})=>{const ra=useSelector(getActiveBreakpoint),oa={};if(!ea)return lodashExports.isEmpty(na)?void 0:(oa.transform=transformToString({...na},!0),oa);const{origin:aa,...sa}=getResponsiveValue(ea,ra)||{};return oa.transform=transformToString({...na,...sa},!0),aa&&(oa.transformOrigin=aa),oa},useIsHidden=(ea,na)=>{const{visible:ra,parent:oa,hideOnSections:aa=[]}=useSelector(getElementData(ea)),sa=useSelector(getActiveBreakpoint),la=getResponsiveValue(ra,sa),ca=isForeground(oa)&&aa.includes(na);return!la||ca},useIsHiddenStyle=(ea,na=!1)=>{if(ea)return na?{display:"none"}:{opacity:.5}},usePadding=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;const oa={},{top:aa={value:0,unit:"px"},right:sa={value:0,unit:"px"},bottom:la={value:0,unit:"px"},left:ca={value:0,unit:"px"}}=ra;return oa.paddingTop=withUnit$1(aa),oa.paddingBottom=withUnit$1(la),oa.paddingLeft=withUnit$1(ca),oa.paddingRight=withUnit$1(sa),oa},useTypography=ea=>{const na=useSelector(getActiveBreakpoint),ra=useForceRender(),{manager:oa}=useGetFonts(),aa=useDispatch(),sa=getResponsiveValue(ea,na),la={},{font:ca,fontSize:ua,fontVariant:da,color:pa,lineHeight:ha,letterSpacing:ga,transform:fa,decoration:ma,align:va,wordwrap:xa,direction:ya}=sa||{};if(reactExports.useEffect(()=>{ca&&(oa.loadFont(ca,da?.toString()||"400"),aa(addToDocumentFonts(ca)))},[ca,oa,da,aa]),reactExports.useEffect(()=>(document.fonts&&(document.fonts.onloadingdone=ra),()=>{document.fonts.onloadingdone=void 0}),[ra]),!!sa)return ca&&(la.fontFamily=ca),ua&&(la.fontSize=`${ua}px`),ha&&(la.lineHeight=`${ha}%`),ga&&(la.letterSpacing=`${ga}px`),fa&&(la.textTransform=fa),pa&&(pa.includes("gradient")?(la.backgroundImage=pa,la.backgroundClip="text",la.boxDecorationBreak="clone",la.WebkitBackgroundClip="text",la.WebkitTextFillColor="transparent",la.WebkitBoxDecorationBreak="clone"):la.color=pa),ma&&(la.textDecoration=ma),va&&(la.textAlign=va),ya&&(la.direction=ya),xa===!1&&(la.whiteSpace="nowrap"),da&&(typeof da=="number"?la.fontWeight=da:da==="regular"?la.fontWeight=400:da.indexOf("italic")!==-1?(la.fontWeight=parseInt(da.replace(/italic/g,""),10),la.fontStyle="italic"):la.fontWeight=parseInt(da,10)||400),la},useTextShadow=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;let oa="";const{offsetX:aa=2,offsetY:sa=2,blur:la=5,color:ca="rgba(0,0,0,0.5)",enable:ua=!1}=ra;if(ua)return oa=`${aa}px ${sa}px ${la}px ${ca} `,{textShadow:oa}},useBoxShadow=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;let oa="";const{offsetX:aa=10,offsetY:sa=10,blur:la=25,color:ca="#000000",spread:ua=0,inset:da=!1,enable:pa=!0}=ra;if(pa)return oa=`${da?"inset":""} ${aa}px ${sa}px ${la}px ${ua}px ${ca} `,{boxShadow:oa}},useBorder=(ea,na)=>{const ra=useSelector(getActiveBreakpoint),oa=getResponsiveValue(ea,ra),aa=getResponsiveValue(na,ra)||{};if(!oa)return;const sa={},{top:la={value:1,unit:"px"},right:ca={value:1,unit:"px"},bottom:ua={value:1,unit:"px"},left:da={value:1,unit:"px"},color:pa="#000",enable:ha=!1,style:ga="solid"}={...aa,...oa};if(ha)return sa.borderTop=`${withUnit$1(la)} ${ga} ${pa}`,sa.borderRight=`${withUnit$1(ca)} ${ga} ${pa}`,sa.borderBottom=`${withUnit$1(ua)} ${ga} ${pa}`,sa.borderLeft=`${withUnit$1(da)} ${ga} ${pa}`,sa},useCorner=(ea,na=!1)=>{const ra=useSelector(getActiveBreakpoint),oa=getResponsiveValue(ea,ra);if(!oa)return;const aa={},{topLeft:sa={value:0,unit:"px"},topRight:la={value:0,unit:"px"},bottomRight:ca={value:0,unit:"px"},bottomLeft:ua={value:0,unit:"px"}}=oa;return aa.borderTopRightRadius=withUnit$1(la),aa.borderTopLeftRadius=withUnit$1(sa),aa.borderBottomRightRadius=withUnit$1(ca),aa.borderBottomLeftRadius=withUnit$1(ua),na&&([sa,la,ca,ua].some(da=>da.value!==0)?aa.overflow="hidden":aa.overflow=""),aa},useIsSelected=ea=>useSelector(getSelectedElements).includes(ea),useActiveOnClick=(ea,na,ra,oa,aa,sa)=>{const[la,ca]=reactExports.useState(!1),ua=reactExports.useRef(!1),da=useUpdateTransformToolConfig(ea);return reactExports.useEffect(()=>{na&&!ra&&la&&(ca(!1),sa&&da(sa))},[na,la,sa,ra,da]),{isActive:la,...useNoDragClick({callback:pa=>{na&&!la&&!ua.current&&(ca(!0),aa&&da(aa)),ua.current=!1},onDown:()=>{ra||(ua.current=!0)},onUp:pa=>{pa||(ua.current=!1)}})}},useRemoveOnEmpty=(ea,na,ra,oa)=>{const aa=useDispatchAndToHistory();reactExports.useEffect(()=>{oa===""&&!ra&&aa(removeElement({id:ea,parent:na}))},[aa,ea,ra,na,oa])},useOpacity=ea=>{const na=useSelector(getActiveBreakpoint),ra={},oa=getResponsiveValue(ea,na);return oa!==void 0&&oa!==1&&(ra.opacity=oa),ra},useBlendingMode=ea=>{const na=useSelector(getActiveBreakpoint),ra={},oa=getResponsiveValue(ea,na);return oa?.enable&&(ra.mixBlendMode=oa.type),ra},useBackgroundColor=ea=>{const na=useSelector(getActiveBreakpoint),ra={},oa=getResponsiveValue(ea,na);if(!oa)return;const aa=oa.includes("gradient");return oa&&(aa?ra.backgroundImage=oa:ra.backgroundColor=oa),ra},useBackgroundBlur=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;const{enable:oa=!1,opacity:aa=100,brightness:sa=100,blur:la=0}=ra;if(!oa)return;let ca="";return ca=`${la?`blur(${la}px)`:""} `,ca+=`${aa?`opacity(${aa}%)`:""} `,ca+=`${sa?`brightness(${sa}%)`:""} `,{backdropFilter:ca}},useFilter=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;let oa="";const{enable:aa=!1,brightness:sa=100,contrast:la=100,saturation:ca=100,hue:ua=0,blur:da=0}=ra;if(aa)return oa=`${sa||sa===0?`brightness(${sa}%)`:""} `,oa+=`${la||la===0?`contrast(${la}%)`:""} `,oa+=`${ca||ca===0?`saturate(${ca}%)`:""} `,oa+=`${ua||ua===0?`hue-rotate(${ua}deg)`:""} `,oa+=`${da||da===0?`blur(${da}px)`:""} `,{filter:oa}},useSvg=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;const{stroke:oa,fill:aa,strokeWidth:sa,stopColor:la}=ra,ca={};return aa&&(ca.fill=aa),oa&&(ca.stroke=oa),sa&&(ca.strokeWidth=sa),la&&(ca.stopColor=la),ca},useTransition=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;let oa="";const{enable:aa=!1,duration:sa=0,timingFunction:la="none",property:ca="all"}=ra;if(!(!aa||["none","initial"].includes(la)))return oa=`${ca} ${sa}s ${la}`,{transition:oa}},useHover=(ea,na=!1,ra,oa=!1)=>{const aa=useSelector(getActiveBreakpoint),sa={...useOpacity(ea?.hover?.opacity),...useTransform(ea?.hover?.transform,{...ra,...getResponsiveValue(ea?.transform,aa)||{}}),...useTypography(ea?.hover?.typography),...useTextShadow(ea?.hover?.textShadow),...useBackgroundColor(ea?.hover?.backgroundColor),...useBoxShadow(ea?.hover?.boxShadow),...useBackgroundBlur(ea?.hover?.backgroundBlur),...useTransition(ea?.hover?.transition),...useSvg(ea?.hover?.svg),...useFilter(ea?.hover?.filter),...useBorder(ea?.hover?.border,ea?.border)};return!ea?.hover||!na?{}:oa||getResponsiveValue(ea?.hover?.enable,aa)?sa:{}},useMargin=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(!ra)return;const oa={},{top:aa={value:0,unit:"px"},right:sa={value:0,unit:"px"},bottom:la={value:0,unit:"px"},left:ca={value:0,unit:"px"}}=ra;return aa&&(oa.marginTop=withUnit$1(aa)),la&&(oa.marginBottom=withUnit$1(la)),ca&&(oa.marginLeft=withUnit$1(ca)),sa&&(oa.marginRight=withUnit$1(sa)),oa},useGap=(ea,na="both")=>{const ra=useSelector(getActiveBreakpoint),oa=getResponsiveValue(ea,ra);if(!oa)return;const aa={};return na==="both"?aa.gap=`${oa}px ${oa}px`:na==="vertical"?aa.gap=`${oa}px 0`:aa.gap=`0 ${oa}px`,aa},useFlexStyles=ea=>{const na=useSelector(getActiveBreakpoint),ra=getResponsiveValue(ea,na);if(ra)return objectMap(ra,oa=>withUnit$1(oa,"px"),!0)},useFixElementSection=(ea,na,ra,oa)=>{const aa=useDispatch();reactExports.useEffect(()=>{!na&&ra!==oa&&aa(updateElement({id:ea,values:{section:oa}}))},[oa,aa,ea,na,ra])},useCalcElementScale=(ea,na)=>{const ra=reactExports.useRef({width:0,height:0}),oa=useSelector(getActiveBreakpoint),aa=useSelector(getHistoryIndex),sa=usePrevious$1([oa,aa],[]);useResizeObserver$1({targetRef:ea,onResize:(ca,ua)=>{const da=ca/ua,pa=ra.current.width/ra.current.height;ca!==ra.current.width&&ua!==ra.current.height&&Math.abs(da-pa)<.1&&na({width:ca/ra.current.width,height:ua/ra.current.height}),ra.current={width:ca,height:ua}}}),reactExports.useEffect(()=>{!shallowEqual$2([oa,aa],sa)&&ea.current&&(ra.current=getElementSize(ea.current,"computed"))},[oa,aa,sa,ea])},useScaleMediaOnResize=(ea,na,ra)=>{const oa=useDispatch(),aa=usePrevious$1(ra,ra);useCalcElementScale(na,sa=>{if(!ra||aa!==ra)return;const la=fitToBox$1("contain",ra.width*sa.width,ra.height*sa.height,ra.width,ra.height);shallowEqual$2(ra,la)||oa(updateElementCropData(ea,{mediaSize:la}))})},useScaleFontSize=(ea,na,ra,oa="span",aa=!1,sa=!0)=>{const la=useDispatch(),ca=reactExports.useRef(1),ua=parseFloat(useSelector(getSelectedElementsValueByPathAndPrefix("")(`${ra}.fontSize`))),da=`${useSelector(getSelectedElementsValueByPathAndPrefix("")(`${ra}.lineHeight`))}%`,pa=useSelector(getTransformToolState)==="start";reactExports.useLayoutEffect(()=>{ca.current=1},[ua]),useCalcElementScale(na,ha=>{if(!sa||!ua||!pa)return;const ga=na.current?.querySelector(oa);let fa=ua;if(aa){const{width:ma,height:va}=getTextDimensions(ga),xa=Math.max(ha.width,ha.height);ca.current*=xa;const ya=Math[ca.current<1?"ceil":"floor"];fa=getFitFontSize(ga,ya(ma*ca.current),ya(va*ca.current),da)}else{const ma=na.current?.getBoundingClientRect();if(!ma)return;const{width:va,height:xa}=ma;fa=getFitFontSize(ga,va,xa,da)}fa&&Math.abs(fa-ua)>.2&&(ca.current=1,la(updateElementsByPath({ids:[ea],path:`${ra}.fontSize`,value:fa})))})},dragTypes={ASSET:"draggableAsset",NON_GROUPABLE_ASSET:"nonGroupableAsset",GROUPABLE_ELEMENT:"groupableElement",FORM_FIELD:"formField",FILE},calcIsOnBorderedArea=(ea,na,ra)=>{if(!ra)return!0;const oa=ea.x-na.x,aa=ea.y-na.y,sa=oa<=ra||oa>=na.width-ra;return aa<=ra||aa>=na.height-ra||sa},useAssetDropZone=(ea,na,ra,oa=!0)=>{const{drop:aa,onIn:sa,onOut:la,canDrop:ca}=ea,ua=reactExports.useRef(),da=useSelector(getWorkspaceComputedZoom),[pa,ha]=reactExports.useState(!1),[ga,fa]=reactExports.useState(!1),ma=(Sa,wa)=>{ha(!1),aa?.(Sa,wa,ua.current)},va=Sa=>{ha(!0),sa?.(Sa)},xa=Sa=>{ha(!1),la?.(Sa)},[{isOver:ya},Aa]=useDrop({accept:ra||dragTypes.ASSET,drop:ma,canDrop(){return pa},hover(Sa,wa){if(!ua.current||!ca?.(Sa,wa.getItemType())){pa&&ha(!1);return}const ba=wa.getClientOffset()||{x:0,y:0},Ea=ua.current.getBoundingClientRect(),$a=wa.isOver({shallow:oa})&&calcIsOnBorderedArea(ba,Ea,na?na*da:void 0);$a!==pa&&($a?va(Sa):xa(Sa))},collect(Sa){return!Sa.isOver()&&pa&&xa(Sa.getItem()),fa(!!Sa.getItem()),{isOver:Sa.isOver({shallow:!0})}}});return{setDropZoneRef:Sa=>{Sa&&(Aa(Sa),ua.current=Sa)},canDrop:pa,isDragging:ga,isOver:ya}},defaultTextElementData$1={children:[],type:"text",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto"}},styles:{typography:{default:{font:"Open Sans"}}}},regularTextStyle={typography:{default:{fontSize:16,fontVariant:400,color:"#444444"}}},largeTextStyle={typography:{default:{fontSize:38,fontVariant:600,color:"#4980F5"}}},saleBadgeStyle={typography:{default:{fontSize:21,color:"#FFF",transform:"uppercase",align:"center"}},backgroundColor:{default:"#FF0000"},padding:getPaddingValue(10),corner:getCornerValue(200)},multilineTextSize={default:{width:{value:450,unit:"px"},height:"auto"}},singleLineTextSize={default:{width:"auto"}},generateDynamicTextElementsPayload=(ea,na={})=>{const{textSize:ra="regular",multiline:oa=!0,variant:aa="default"}=na,{source:sa}=ea;return aa==="saleBadge"?deepmerge(defaultTextElementData$1,{type:"wooSaleBadge",styles:{...saleBadgeStyle},size:{default:{width:{value:70,unit:"px"},height:{value:70,unit:"px"}}},options:{content:i18next.t("Sale"),hasDynamicTag:!1,tag:"p"}}):deepmerge(defaultTextElementData$1,{type:"text",styles:ra==="large"?largeTextStyle:regularTextStyle,size:{default:oa?multilineTextSize:singleLineTextSize},options:{content:sa,hasDynamicTag:!0,tag:ra==="large"?"h3":"p"}})},defaultButtonElementData$1={type:"button",size:{default:{width:"auto"}},styles:{backgroundColor:{default:"transparent"},typography:{default:{font:"Open Sans",fontSize:13,fontVariant:700,color:"#4980F5"}},padding:{default:{top:{value:5,unit:"px"},right:{value:18,unit:"px"},bottom:{value:5,unit:"px"},left:{value:18,unit:"px"},link:!1}},corner:{default:{topLeft:{value:19,unit:"px"},topRight:{value:19,unit:"px"},bottomRight:{value:19,unit:"px"},bottomLeft:{value:19,unit:"px"},link:!0}},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#5D7FF1",link:!0,enable:!0,style:"solid"}}}},defaultTextElementData={children:[],type:"text",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto"}},styles:{typography:{default:{font:"Open Sans",fontSize:16,fontVariant:400,color:"#444444"}}}},generateDynamicLinkElementsPayload=(ea,na={})=>{const{variant:ra="button",buttonText:oa}=na,{source:aa,url:sa}=ea;return deepmerge(ra==="button"?defaultButtonElementData$1:defaultTextElementData,{options:{content:aa||oa,url:{path:sa},hasDynamicTag:!0}})},defaultImageElementData$1={type:"image",size:{default:{width:{value:400,unit:"px"},height:{value:400,unit:"px"}}}},generateDynamicMediaElementsPayload=ea=>{const{source:na,src:ra}=ea;return deepmerge(defaultImageElementData$1,{options:{source:na,url:{path:ra},hasDynamicTag:!0}})},defaultDateElementData={children:[],type:"date",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto"}},styles:{typography:{default:{font:"Open Sans"}}}},generateDynamicDateElementsPayload=ea=>{const{source:na}=ea;return deepmerge(defaultDateElementData,{styles:{typography:{default:{fontSize:17,fontVariant:600,color:"#AAAAAA"}}},options:{content:na,hasDynamicTag:!0}})},defaultTagListElementData={children:[],type:"tagList",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto"}}},generateDynamicTagListElementsPayload=ea=>{const{source:na}=ea;return deepmerge(defaultTagListElementData,{styles:{typography:{default:{fontSize:17,font:"Open Sans",fontVariant:"500",color:"#AAAAAA"}}},options:{content:na,hasDynamicTag:!0,space:{default:5}}})},generateDynamicRatingElementsPayload=ea=>{const{source:na}=ea;return{type:"rating",size:{default:{width:{value:119,unit:"px"},height:{value:23,unit:"px"}}},options:{content:na,hasDynamicTag:!0,rating:{symbol:"rating-star",round:!1,styles:{patternColor:{default:"#D6D6D6"},trackColor:{default:"#FCCC00"}},hover:{patternColor:{default:"#D6D6D6"},trackColor:{default:"#FCCC00"}}}}}},generateDynamicStockStatusElementsPayload=ea=>{const{source:na}=ea;return{type:"wooStockStatus",styles:{typography:{default:{fontSize:16,fontVariant:400,color:"#444444"}}},size:{default:{width:"auto",height:"auto"}},options:{tag:"p",content:na,hasDynamicTag:!0,stockStatus:{inStockText:i18next.t("In stock"),outOfStockText:i18next.t("Out of stock text"),styles:{inStockTextColor:{default:"#01D06F"},outOfStockTextColor:{default:"#FF504A"}},hover:{inStockTextColor:{default:"#01D06F"},outOfStockTextColor:{default:"#FF504A"}}}}}},defaultWooAddToCartElementData={type:"wooAddToCart",size:{default:{width:"auto"}},styles:{backgroundColor:{default:"transparent"},typography:{default:{font:"Open Sans",fontSize:13,fontVariant:700,color:"#4980F5"}},padding:{default:{top:{value:5,unit:"px"},right:{value:18,unit:"px"},bottom:{value:5,unit:"px"},left:{value:18,unit:"px"},link:!1}},corner:{default:{topLeft:{value:19,unit:"px"},topRight:{value:19,unit:"px"},bottomRight:{value:19,unit:"px"},bottomLeft:{value:19,unit:"px"},link:!0}},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#5D7FF1",link:!0,enable:!0,style:"solid"}}}},generateDynamicAddToCartElementsPayload=(ea,na={})=>{const{buttonText:ra}=na,{source:oa,url:aa,...sa}=ea;return deepmerge(defaultWooAddToCartElementData,{options:{content:oa||ra,url:{path:aa},hasDynamicTag:!0,...sa}})},dynamicSourceElementsPayloadGenerator=new Map;dynamicSourceElementsPayloadGenerator.set("dynamicText",generateDynamicTextElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicLink",generateDynamicLinkElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicMedia",generateDynamicMediaElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicDate",generateDynamicDateElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicTagList",generateDynamicTagListElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicRating",generateDynamicRatingElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicStockStatus",generateDynamicStockStatusElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicAddToCart",generateDynamicAddToCartElementsPayload);dynamicSourceElementsPayloadGenerator.set("dynamicSaleBadge",generateDynamicTextElementsPayload);const getAssetPayload=ea=>{const{type:na,width:ra,height:oa,previewOptions:aa}=ea;if(na==="keyword"||na==="template")throw new Error(`The given asset type does not support element payload data: ${na}`);if(["photo","video","vector"].includes(na))return{elementData:{type:na==="photo"?"image":na,size:{default:{width:{value:ra||250,unit:"px"},height:oa===void 0?"auto":{value:oa,unit:"px"}}},options:{source:ea.id}}};if(na==="icon")return{elementData:{type:"icon",size:{default:{width:{value:ra||24,unit:"px"},height:oa===void 0?"auto":{value:oa,unit:"px"}}},options:{content:aa?.content}}};if(dynamicSourceElementsPayloadGenerator.has(na)){const{payload:sa}=ea;return{elementData:dynamicSourceElementsPayloadGenerator.get(na)(sa,aa)}}return ea.payload};function useAssetDroppableElement(ea,na,ra=!0){const oa=useDispatchAndToHistory(),aa=useSelector(getWorkspaceComputedZoom),[sa,la]=reactExports.useState(!0),{setDropZoneRef:ca,isOver:ua}=useAssetDropZone({canDrop(da,pa){return typeof ra=="boolean"||pa&&ra.includes(pa)?(la(!0),ra?window.dndModifierKey==="Alt":!0):(la(!1),!0)},drop(da,pa,ha){const ga=pa.getSourceClientOffset();if(ga){const fa=ha?.getBoundingClientRect();if(!fa)return;const{left:ma,top:va}=fa,{dragMeta:xa}=da.assetData?.previewOptions||{},ya={x:(ga.x-ma+(xa?.positionRefine?.x||0))/aa,y:(ga.y-va+(xa?.positionRefine?.y||0))/aa};oa(createElementsFromAssetPayload(getAssetPayload(da.assetData),ea,ya))}}},void 0,na);return{setDropZoneRef:ca,isDndOver:ua,showAltKeyHint:sa}}function useCombinedRefs(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];return reactExports.useMemo(()=>oa=>{na.forEach(aa=>aa(oa))},na)}const canUseDOM$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function isWindow(ea){const na=Object.prototype.toString.call(ea);return na==="[object Window]"||na==="[object global]"}function isNode(ea){return"nodeType"in ea}function getWindow(ea){var na,ra;return ea?isWindow(ea)?ea:isNode(ea)&&(na=(ra=ea.ownerDocument)==null?void 0:ra.defaultView)!=null?na:window:window}function isDocument(ea){const{Document:na}=getWindow(ea);return ea instanceof na}function isHTMLElement(ea){return isWindow(ea)?!1:ea instanceof getWindow(ea).HTMLElement}function isSVGElement(ea){return ea instanceof getWindow(ea).SVGElement}function getOwnerDocument(ea){return ea?isWindow(ea)?ea.document:isNode(ea)?isDocument(ea)?ea:isHTMLElement(ea)||isSVGElement(ea)?ea.ownerDocument:document:document:document}const useIsomorphicLayoutEffect$1=canUseDOM$1?reactExports.useLayoutEffect:reactExports.useEffect;function useEvent(ea){const na=reactExports.useRef(ea);return useIsomorphicLayoutEffect$1(()=>{na.current=ea}),reactExports.useCallback(function(){for(var ra=arguments.length,oa=new Array(ra),aa=0;aa<ra;aa++)oa[aa]=arguments[aa];return na.current==null?void 0:na.current(...oa)},[])}function useInterval(){const ea=reactExports.useRef(null),na=reactExports.useCallback((oa,aa)=>{ea.current=setInterval(oa,aa)},[]),ra=reactExports.useCallback(()=>{ea.current!==null&&(clearInterval(ea.current),ea.current=null)},[]);return[na,ra]}function useLatestValue(ea,na){na===void 0&&(na=[ea]);const ra=reactExports.useRef(ea);return useIsomorphicLayoutEffect$1(()=>{ra.current!==ea&&(ra.current=ea)},na),ra}function useLazyMemo(ea,na){const ra=reactExports.useRef();return reactExports.useMemo(()=>{const oa=ea(ra.current);return ra.current=oa,oa},[...na])}function useNodeRef(ea){const na=useEvent(ea),ra=reactExports.useRef(null),oa=reactExports.useCallback(aa=>{aa!==ra.current&&na?.(aa,ra.current),ra.current=aa},[]);return[ra,oa]}function usePrevious(ea){const na=reactExports.useRef();return reactExports.useEffect(()=>{na.current=ea},[ea]),na.current}let ids={};function useUniqueId(ea,na){return reactExports.useMemo(()=>{if(na)return na;const ra=ids[ea]==null?0:ids[ea]+1;return ids[ea]=ra,ea+"-"+ra},[ea,na])}function createAdjustmentFn(ea){return function(na){for(var ra=arguments.length,oa=new Array(ra>1?ra-1:0),aa=1;aa<ra;aa++)oa[aa-1]=arguments[aa];return oa.reduce((sa,la)=>{const ca=Object.entries(la);for(const[ua,da]of ca){const pa=sa[ua];pa!=null&&(sa[ua]=pa+ea*da)}return sa},{...na})}}const add=createAdjustmentFn(1),subtract=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(ea){return"clientX"in ea&&"clientY"in ea}function isKeyboardEvent(ea){if(!ea)return!1;const{KeyboardEvent:na}=getWindow(ea.target);return na&&ea instanceof na}function isTouchEvent$1(ea){if(!ea)return!1;const{TouchEvent:na}=getWindow(ea.target);return na&&ea instanceof na}function getEventCoordinates(ea){if(isTouchEvent$1(ea)){if(ea.touches&&ea.touches.length){const{clientX:na,clientY:ra}=ea.touches[0];return{x:na,y:ra}}else if(ea.changedTouches&&ea.changedTouches.length){const{clientX:na,clientY:ra}=ea.changedTouches[0];return{x:na,y:ra}}}return hasViewportRelativeCoordinates(ea)?{x:ea.clientX,y:ea.clientY}:null}const CSS=Object.freeze({Translate:{toString(ea){if(!ea)return;const{x:na,y:ra}=ea;return"translate3d("+(na?Math.round(na):0)+"px, "+(ra?Math.round(ra):0)+"px, 0)"}},Scale:{toString(ea){if(!ea)return;const{scaleX:na,scaleY:ra}=ea;return"scaleX("+na+") scaleY("+ra+")"}},Transform:{toString(ea){if(ea)return[CSS.Translate.toString(ea),CSS.Scale.toString(ea)].join(" ")}},Transition:{toString(ea){let{property:na,duration:ra,easing:oa}=ea;return na+" "+ra+"ms "+oa}}}),SELECTOR="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(ea){return ea.matches(SELECTOR)?ea:ea.querySelector(SELECTOR)}const hiddenStyles={display:"none"};function HiddenText(ea){let{id:na,value:ra}=ea;return React.createElement("div",{id:na,style:hiddenStyles},ra)}function LiveRegion(ea){let{id:na,announcement:ra,ariaLiveType:oa="assertive"}=ea;const aa={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return React.createElement("div",{id:na,style:aa,role:"status","aria-live":oa,"aria-atomic":!0},ra)}function useAnnouncement(){const[ea,na]=reactExports.useState("");return{announce:reactExports.useCallback(oa=>{oa!=null&&na(oa)},[]),announcement:ea}}const DndMonitorContext=reactExports.createContext(null);function useDndMonitor(ea){const na=reactExports.useContext(DndMonitorContext);reactExports.useEffect(()=>{if(!na)throw new Error("useDndMonitor must be used within a children of <DndContext>");return na(ea)},[ea,na])}function useDndMonitorProvider(){const[ea]=reactExports.useState(()=>new Set),na=reactExports.useCallback(oa=>(ea.add(oa),()=>ea.delete(oa)),[ea]);return[reactExports.useCallback(oa=>{let{type:aa,event:sa}=oa;ea.forEach(la=>{var ca;return(ca=la[aa])==null?void 0:ca.call(la,sa)})},[ea]),na]}const defaultScreenReaderInstructions={draggable:`
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `},defaultAnnouncements={onDragStart(ea){let{active:na}=ea;return"Picked up draggable item "+na.id+"."},onDragOver(ea){let{active:na,over:ra}=ea;return ra?"Draggable item "+na.id+" was moved over droppable area "+ra.id+".":"Draggable item "+na.id+" is no longer over a droppable area."},onDragEnd(ea){let{active:na,over:ra}=ea;return ra?"Draggable item "+na.id+" was dropped over droppable area "+ra.id:"Draggable item "+na.id+" was dropped."},onDragCancel(ea){let{active:na}=ea;return"Dragging was cancelled. Draggable item "+na.id+" was dropped."}};function Accessibility(ea){let{announcements:na=defaultAnnouncements,container:ra,hiddenTextDescribedById:oa,screenReaderInstructions:aa=defaultScreenReaderInstructions}=ea;const{announce:sa,announcement:la}=useAnnouncement(),ca=useUniqueId("DndLiveRegion"),[ua,da]=reactExports.useState(!1);if(reactExports.useEffect(()=>{da(!0)},[]),useDndMonitor(reactExports.useMemo(()=>({onDragStart(ha){let{active:ga}=ha;sa(na.onDragStart({active:ga}))},onDragMove(ha){let{active:ga,over:fa}=ha;na.onDragMove&&sa(na.onDragMove({active:ga,over:fa}))},onDragOver(ha){let{active:ga,over:fa}=ha;sa(na.onDragOver({active:ga,over:fa}))},onDragEnd(ha){let{active:ga,over:fa}=ha;sa(na.onDragEnd({active:ga,over:fa}))},onDragCancel(ha){let{active:ga,over:fa}=ha;sa(na.onDragCancel({active:ga,over:fa}))}}),[sa,na])),!ua)return null;const pa=React.createElement(React.Fragment,null,React.createElement(HiddenText,{id:oa,value:aa.draggable}),React.createElement(LiveRegion,{id:ca,announcement:la}));return ra?reactDomExports.createPortal(pa,ra):pa}var Action$2;(function(ea){ea.DragStart="dragStart",ea.DragMove="dragMove",ea.DragEnd="dragEnd",ea.DragCancel="dragCancel",ea.DragOver="dragOver",ea.RegisterDroppable="registerDroppable",ea.SetDroppableDisabled="setDroppableDisabled",ea.UnregisterDroppable="unregisterDroppable"})(Action$2||(Action$2={}));function noop(){}function useSensor(ea,na){return reactExports.useMemo(()=>({sensor:ea,options:na??{}}),[ea,na])}function useSensors(){for(var ea=arguments.length,na=new Array(ea),ra=0;ra<ea;ra++)na[ra]=arguments[ra];return reactExports.useMemo(()=>[...na].filter(oa=>oa!=null),[...na])}const defaultCoordinates=Object.freeze({x:0,y:0});function distanceBetween(ea,na){return Math.sqrt(Math.pow(ea.x-na.x,2)+Math.pow(ea.y-na.y,2))}function getRelativeTransformOrigin(ea,na){const ra=getEventCoordinates(ea);if(!ra)return"0 0";const oa={x:(ra.x-na.left)/na.width*100,y:(ra.y-na.top)/na.height*100};return oa.x+"% "+oa.y+"%"}function sortCollisionsAsc(ea,na){let{data:{value:ra}}=ea,{data:{value:oa}}=na;return ra-oa}function sortCollisionsDesc(ea,na){let{data:{value:ra}}=ea,{data:{value:oa}}=na;return oa-ra}function cornersOfRectangle(ea){let{left:na,top:ra,height:oa,width:aa}=ea;return[{x:na,y:ra},{x:na+aa,y:ra},{x:na,y:ra+oa},{x:na+aa,y:ra+oa}]}function getFirstCollision(ea,na){if(!ea||ea.length===0)return null;const[ra]=ea;return ra[na]}function centerOfRectangle(ea,na,ra){return na===void 0&&(na=ea.left),ra===void 0&&(ra=ea.top),{x:na+ea.width*.5,y:ra+ea.height*.5}}const closestCenter=ea=>{let{collisionRect:na,droppableRects:ra,droppableContainers:oa}=ea;const aa=centerOfRectangle(na,na.left,na.top),sa=[];for(const la of oa){const{id:ca}=la,ua=ra.get(ca);if(ua){const da=distanceBetween(centerOfRectangle(ua),aa);sa.push({id:ca,data:{droppableContainer:la,value:da}})}}return sa.sort(sortCollisionsAsc)},closestCorners=ea=>{let{collisionRect:na,droppableRects:ra,droppableContainers:oa}=ea;const aa=cornersOfRectangle(na),sa=[];for(const la of oa){const{id:ca}=la,ua=ra.get(ca);if(ua){const da=cornersOfRectangle(ua),pa=aa.reduce((ga,fa,ma)=>ga+distanceBetween(da[ma],fa),0),ha=Number((pa/4).toFixed(4));sa.push({id:ca,data:{droppableContainer:la,value:ha}})}}return sa.sort(sortCollisionsAsc)};function getIntersectionRatio(ea,na){const ra=Math.max(na.top,ea.top),oa=Math.max(na.left,ea.left),aa=Math.min(na.left+na.width,ea.left+ea.width),sa=Math.min(na.top+na.height,ea.top+ea.height),la=aa-oa,ca=sa-ra;if(oa<aa&&ra<sa){const ua=na.width*na.height,da=ea.width*ea.height,pa=la*ca,ha=pa/(ua+da-pa);return Number(ha.toFixed(4))}return 0}const rectIntersection=ea=>{let{collisionRect:na,droppableRects:ra,droppableContainers:oa}=ea;const aa=[];for(const sa of oa){const{id:la}=sa,ca=ra.get(la);if(ca){const ua=getIntersectionRatio(ca,na);ua>0&&aa.push({id:la,data:{droppableContainer:sa,value:ua}})}}return aa.sort(sortCollisionsDesc)};function isPointWithinRect(ea,na){const{top:ra,left:oa,bottom:aa,right:sa}=na;return ra<=ea.y&&ea.y<=aa&&oa<=ea.x&&ea.x<=sa}const pointerWithin=ea=>{let{droppableContainers:na,droppableRects:ra,pointerCoordinates:oa}=ea;if(!oa)return[];const aa=[];for(const sa of na){const{id:la}=sa,ca=ra.get(la);if(ca&&isPointWithinRect(oa,ca)){const da=cornersOfRectangle(ca).reduce((ha,ga)=>ha+distanceBetween(oa,ga),0),pa=Number((da/4).toFixed(4));aa.push({id:la,data:{droppableContainer:sa,value:pa}})}}return aa.sort(sortCollisionsAsc)};function adjustScale(ea,na,ra){return{...ea,scaleX:na&&ra?na.width/ra.width:1,scaleY:na&&ra?na.height/ra.height:1}}function getRectDelta(ea,na){return ea&&na?{x:ea.left-na.left,y:ea.top-na.top}:defaultCoordinates}function createRectAdjustmentFn(ea){return function(ra){for(var oa=arguments.length,aa=new Array(oa>1?oa-1:0),sa=1;sa<oa;sa++)aa[sa-1]=arguments[sa];return aa.reduce((la,ca)=>({...la,top:la.top+ea*ca.y,bottom:la.bottom+ea*ca.y,left:la.left+ea*ca.x,right:la.right+ea*ca.x}),{...ra})}}const getAdjustedRect=createRectAdjustmentFn(1);function parseTransform(ea){if(ea.startsWith("matrix3d(")){const na=ea.slice(9,-1).split(/, /);return{x:+na[12],y:+na[13],scaleX:+na[0],scaleY:+na[5]}}else if(ea.startsWith("matrix(")){const na=ea.slice(7,-1).split(/, /);return{x:+na[4],y:+na[5],scaleX:+na[0],scaleY:+na[3]}}return null}function inverseTransform(ea,na,ra){const oa=parseTransform(na);if(!oa)return ea;const{scaleX:aa,scaleY:sa,x:la,y:ca}=oa,ua=ea.left-la-(1-aa)*parseFloat(ra),da=ea.top-ca-(1-sa)*parseFloat(ra.slice(ra.indexOf(" ")+1)),pa=aa?ea.width/aa:ea.width,ha=sa?ea.height/sa:ea.height;return{width:pa,height:ha,top:da,right:ua+pa,bottom:da+ha,left:ua}}const defaultOptions$3={ignoreTransform:!1};function getClientRect(ea,na){na===void 0&&(na=defaultOptions$3);let ra=ea.getBoundingClientRect();if(na.ignoreTransform){const{transform:da,transformOrigin:pa}=getWindow(ea).getComputedStyle(ea);da&&(ra=inverseTransform(ra,da,pa))}const{top:oa,left:aa,width:sa,height:la,bottom:ca,right:ua}=ra;return{top:oa,left:aa,width:sa,height:la,bottom:ca,right:ua}}function getTransformAgnosticClientRect(ea){return getClientRect(ea,{ignoreTransform:!0})}function getWindowClientRect(ea){const na=ea.innerWidth,ra=ea.innerHeight;return{top:0,left:0,right:na,bottom:ra,width:na,height:ra}}function isFixed(ea,na){return na===void 0&&(na=getWindow(ea).getComputedStyle(ea)),na.position==="fixed"}function isScrollable$1(ea,na){na===void 0&&(na=getWindow(ea).getComputedStyle(ea));const ra=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(aa=>{const sa=na[aa];return typeof sa=="string"?ra.test(sa):!1})}function getScrollableAncestors(ea,na){const ra=[];function oa(aa){if(na!=null&&ra.length>=na||!aa)return ra;if(isDocument(aa)&&aa.scrollingElement!=null&&!ra.includes(aa.scrollingElement))return ra.push(aa.scrollingElement),ra;if(!isHTMLElement(aa)||isSVGElement(aa)||ra.includes(aa))return ra;const sa=getWindow(ea).getComputedStyle(aa);return aa!==ea&&isScrollable$1(aa,sa)&&ra.push(aa),isFixed(aa,sa)?ra:oa(aa.parentNode)}return ea?oa(ea):ra}function getFirstScrollableAncestor(ea){const[na]=getScrollableAncestors(ea,1);return na??null}function getScrollableElement(ea){return!canUseDOM$1||!ea?null:isWindow(ea)?ea:isNode(ea)?isDocument(ea)||ea===getOwnerDocument(ea).scrollingElement?window:isHTMLElement(ea)?ea:null:null}function getScrollXCoordinate(ea){return isWindow(ea)?ea.scrollX:ea.scrollLeft}function getScrollYCoordinate(ea){return isWindow(ea)?ea.scrollY:ea.scrollTop}function getScrollCoordinates(ea){return{x:getScrollXCoordinate(ea),y:getScrollYCoordinate(ea)}}var Direction;(function(ea){ea[ea.Forward=1]="Forward",ea[ea.Backward=-1]="Backward"})(Direction||(Direction={}));function isDocumentScrollingElement(ea){return!canUseDOM$1||!ea?!1:ea===document.scrollingElement}function getScrollPosition(ea){const na={x:0,y:0},ra=isDocumentScrollingElement(ea)?{height:window.innerHeight,width:window.innerWidth}:{height:ea.clientHeight,width:ea.clientWidth},oa={x:ea.scrollWidth-ra.width,y:ea.scrollHeight-ra.height},aa=ea.scrollTop<=na.y,sa=ea.scrollLeft<=na.x,la=ea.scrollTop>=oa.y,ca=ea.scrollLeft>=oa.x;return{isTop:aa,isLeft:sa,isBottom:la,isRight:ca,maxScroll:oa,minScroll:na}}const defaultThreshold$1={x:.2,y:.2};function getScrollDirectionAndSpeed(ea,na,ra,oa,aa){let{top:sa,left:la,right:ca,bottom:ua}=ra;oa===void 0&&(oa=10),aa===void 0&&(aa=defaultThreshold$1);const{isTop:da,isBottom:pa,isLeft:ha,isRight:ga}=getScrollPosition(ea),fa={x:0,y:0},ma={x:0,y:0},va={height:na.height*aa.y,width:na.width*aa.x};return!da&&sa<=na.top+va.height?(fa.y=Direction.Backward,ma.y=oa*Math.abs((na.top+va.height-sa)/va.height)):!pa&&ua>=na.bottom-va.height&&(fa.y=Direction.Forward,ma.y=oa*Math.abs((na.bottom-va.height-ua)/va.height)),!ga&&ca>=na.right-va.width?(fa.x=Direction.Forward,ma.x=oa*Math.abs((na.right-va.width-ca)/va.width)):!ha&&la<=na.left+va.width&&(fa.x=Direction.Backward,ma.x=oa*Math.abs((na.left+va.width-la)/va.width)),{direction:fa,speed:ma}}function getScrollElementRect(ea){if(ea===document.scrollingElement){const{innerWidth:sa,innerHeight:la}=window;return{top:0,left:0,right:sa,bottom:la,width:sa,height:la}}const{top:na,left:ra,right:oa,bottom:aa}=ea.getBoundingClientRect();return{top:na,left:ra,right:oa,bottom:aa,width:ea.clientWidth,height:ea.clientHeight}}function getScrollOffsets(ea){return ea.reduce((na,ra)=>add(na,getScrollCoordinates(ra)),defaultCoordinates)}function getScrollXOffset(ea){return ea.reduce((na,ra)=>na+getScrollXCoordinate(ra),0)}function getScrollYOffset(ea){return ea.reduce((na,ra)=>na+getScrollYCoordinate(ra),0)}function scrollIntoViewIfNeeded(ea,na){if(na===void 0&&(na=getClientRect),!ea)return;const{top:ra,left:oa,bottom:aa,right:sa}=na(ea);getFirstScrollableAncestor(ea)&&(aa<=0||sa<=0||ra>=window.innerHeight||oa>=window.innerWidth)&&ea.scrollIntoView({block:"center",inline:"center"})}const properties=[["x",["left","right"],getScrollXOffset],["y",["top","bottom"],getScrollYOffset]];class Rect{constructor(na,ra){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const oa=getScrollableAncestors(ra),aa=getScrollOffsets(oa);this.rect={...na},this.width=na.width,this.height=na.height;for(const[sa,la,ca]of properties)for(const ua of la)Object.defineProperty(this,ua,{get:()=>{const da=ca(oa),pa=aa[sa]-da;return this.rect[ua]+pa},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Listeners{constructor(na){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(ra=>{var oa;return(oa=this.target)==null?void 0:oa.removeEventListener(...ra)})},this.target=na}add(na,ra,oa){var aa;(aa=this.target)==null||aa.addEventListener(na,ra,oa),this.listeners.push([na,ra,oa])}}function getEventListenerTarget(ea){const{EventTarget:na}=getWindow(ea);return ea instanceof na?ea:getOwnerDocument(ea)}function hasExceededDistance(ea,na){const ra=Math.abs(ea.x),oa=Math.abs(ea.y);return typeof na=="number"?Math.sqrt(ra**2+oa**2)>na:"x"in na&&"y"in na?ra>na.x&&oa>na.y:"x"in na?ra>na.x:"y"in na?oa>na.y:!1}var EventName;(function(ea){ea.Click="click",ea.DragStart="dragstart",ea.Keydown="keydown",ea.ContextMenu="contextmenu",ea.Resize="resize",ea.SelectionChange="selectionchange",ea.VisibilityChange="visibilitychange"})(EventName||(EventName={}));function preventDefault$1(ea){ea.preventDefault()}function stopPropagation(ea){ea.stopPropagation()}var KeyboardCode;(function(ea){ea.Space="Space",ea.Down="ArrowDown",ea.Right="ArrowRight",ea.Left="ArrowLeft",ea.Up="ArrowUp",ea.Esc="Escape",ea.Enter="Enter",ea.Tab="Tab"})(KeyboardCode||(KeyboardCode={}));const defaultKeyboardCodes={start:[KeyboardCode.Space,KeyboardCode.Enter],cancel:[KeyboardCode.Esc],end:[KeyboardCode.Space,KeyboardCode.Enter,KeyboardCode.Tab]},defaultKeyboardCoordinateGetter=(ea,na)=>{let{currentCoordinates:ra}=na;switch(ea.code){case KeyboardCode.Right:return{...ra,x:ra.x+25};case KeyboardCode.Left:return{...ra,x:ra.x-25};case KeyboardCode.Down:return{...ra,y:ra.y+25};case KeyboardCode.Up:return{...ra,y:ra.y-25}}};class KeyboardSensor{constructor(na){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=na;const{event:{target:ra}}=na;this.props=na,this.listeners=new Listeners(getOwnerDocument(ra)),this.windowListeners=new Listeners(getWindow(ra)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(EventName.Resize,this.handleCancel),this.windowListeners.add(EventName.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(EventName.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:na,onStart:ra}=this.props,oa=na.node.current;oa&&scrollIntoViewIfNeeded(oa),ra(defaultCoordinates)}handleKeyDown(na){if(isKeyboardEvent(na)){const{active:ra,context:oa,options:aa}=this.props,{keyboardCodes:sa=defaultKeyboardCodes,coordinateGetter:la=defaultKeyboardCoordinateGetter,scrollBehavior:ca="smooth"}=aa,{code:ua}=na;if(sa.end.includes(ua)){this.handleEnd(na);return}if(sa.cancel.includes(ua)){this.handleCancel(na);return}const{collisionRect:da}=oa.current,pa=da?{x:da.left,y:da.top}:defaultCoordinates;this.referenceCoordinates||(this.referenceCoordinates=pa);const ha=la(na,{active:ra,context:oa.current,currentCoordinates:pa});if(ha){const ga=subtract(ha,pa),fa={x:0,y:0},{scrollableAncestors:ma}=oa.current;for(const va of ma){const xa=na.code,{isTop:ya,isRight:Aa,isLeft:Ca,isBottom:Sa,maxScroll:wa,minScroll:ba}=getScrollPosition(va),Ea=getScrollElementRect(va),$a={x:Math.min(xa===KeyboardCode.Right?Ea.right-Ea.width/2:Ea.right,Math.max(xa===KeyboardCode.Right?Ea.left:Ea.left+Ea.width/2,ha.x)),y:Math.min(xa===KeyboardCode.Down?Ea.bottom-Ea.height/2:Ea.bottom,Math.max(xa===KeyboardCode.Down?Ea.top:Ea.top+Ea.height/2,ha.y))},Ma=xa===KeyboardCode.Right&&!Aa||xa===KeyboardCode.Left&&!Ca,Ia=xa===KeyboardCode.Down&&!Sa||xa===KeyboardCode.Up&&!ya;if(Ma&&$a.x!==ha.x){const Oa=va.scrollLeft+ga.x,Da=xa===KeyboardCode.Right&&Oa<=wa.x||xa===KeyboardCode.Left&&Oa>=ba.x;if(Da&&!ga.y){va.scrollTo({left:Oa,behavior:ca});return}Da?fa.x=va.scrollLeft-Oa:fa.x=xa===KeyboardCode.Right?va.scrollLeft-wa.x:va.scrollLeft-ba.x,fa.x&&va.scrollBy({left:-fa.x,behavior:ca});break}else if(Ia&&$a.y!==ha.y){const Oa=va.scrollTop+ga.y,Da=xa===KeyboardCode.Down&&Oa<=wa.y||xa===KeyboardCode.Up&&Oa>=ba.y;if(Da&&!ga.x){va.scrollTo({top:Oa,behavior:ca});return}Da?fa.y=va.scrollTop-Oa:fa.y=xa===KeyboardCode.Down?va.scrollTop-wa.y:va.scrollTop-ba.y,fa.y&&va.scrollBy({top:-fa.y,behavior:ca});break}}this.handleMove(na,add(subtract(ha,this.referenceCoordinates),fa))}}}handleMove(na,ra){const{onMove:oa}=this.props;na.preventDefault(),oa(ra)}handleEnd(na){const{onEnd:ra}=this.props;na.preventDefault(),this.detach(),ra()}handleCancel(na){const{onCancel:ra}=this.props;na.preventDefault(),this.detach(),ra()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}KeyboardSensor.activators=[{eventName:"onKeyDown",handler:(ea,na,ra)=>{let{keyboardCodes:oa=defaultKeyboardCodes,onActivation:aa}=na,{active:sa}=ra;const{code:la}=ea.nativeEvent;if(oa.start.includes(la)){const ca=sa.activatorNode.current;return ca&&ea.target!==ca?!1:(ea.preventDefault(),aa?.({event:ea.nativeEvent}),!0)}return!1}}];function isDistanceConstraint(ea){return!!(ea&&"distance"in ea)}function isDelayConstraint(ea){return!!(ea&&"delay"in ea)}class AbstractPointerSensor{constructor(na,ra,oa){var aa;oa===void 0&&(oa=getEventListenerTarget(na.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=na,this.events=ra;const{event:sa}=na,{target:la}=sa;this.props=na,this.events=ra,this.document=getOwnerDocument(la),this.documentListeners=new Listeners(this.document),this.listeners=new Listeners(oa),this.windowListeners=new Listeners(getWindow(la)),this.initialCoordinates=(aa=getEventCoordinates(sa))!=null?aa:defaultCoordinates,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:na,props:{options:{activationConstraint:ra,bypassActivationConstraint:oa}}}=this;if(this.listeners.add(na.move.name,this.handleMove,{passive:!1}),this.listeners.add(na.end.name,this.handleEnd),na.cancel&&this.listeners.add(na.cancel.name,this.handleCancel),this.windowListeners.add(EventName.Resize,this.handleCancel),this.windowListeners.add(EventName.DragStart,preventDefault$1),this.windowListeners.add(EventName.VisibilityChange,this.handleCancel),this.windowListeners.add(EventName.ContextMenu,preventDefault$1),this.documentListeners.add(EventName.Keydown,this.handleKeydown),ra){if(oa!=null&&oa({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(isDelayConstraint(ra)){this.timeoutId=setTimeout(this.handleStart,ra.delay),this.handlePending(ra);return}if(isDistanceConstraint(ra)){this.handlePending(ra);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(na,ra){const{active:oa,onPending:aa}=this.props;aa(oa,na,this.initialCoordinates,ra)}handleStart(){const{initialCoordinates:na}=this,{onStart:ra}=this.props;na&&(this.activated=!0,this.documentListeners.add(EventName.Click,stopPropagation,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(EventName.SelectionChange,this.removeTextSelection),ra(na))}handleMove(na){var ra;const{activated:oa,initialCoordinates:aa,props:sa}=this,{onMove:la,options:{activationConstraint:ca}}=sa;if(!aa)return;const ua=(ra=getEventCoordinates(na))!=null?ra:defaultCoordinates,da=subtract(aa,ua);if(!oa&&ca){if(isDistanceConstraint(ca)){if(ca.tolerance!=null&&hasExceededDistance(da,ca.tolerance))return this.handleCancel();if(hasExceededDistance(da,ca.distance))return this.handleStart()}if(isDelayConstraint(ca)&&hasExceededDistance(da,ca.tolerance))return this.handleCancel();this.handlePending(ca,da);return}na.cancelable&&na.preventDefault(),la(ua)}handleEnd(){const{onAbort:na,onEnd:ra}=this.props;this.detach(),this.activated||na(this.props.active),ra()}handleCancel(){const{onAbort:na,onCancel:ra}=this.props;this.detach(),this.activated||na(this.props.active),ra()}handleKeydown(na){na.code===KeyboardCode.Esc&&this.handleCancel()}removeTextSelection(){var na;(na=this.document.getSelection())==null||na.removeAllRanges()}}const events$1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class PointerSensor extends AbstractPointerSensor{constructor(na){const{event:ra}=na,oa=getOwnerDocument(ra.target);super(na,events$1,oa)}}PointerSensor.activators=[{eventName:"onPointerDown",handler:(ea,na)=>{let{nativeEvent:ra}=ea,{onActivation:oa}=na;return!ra.isPrimary||ra.button!==0?!1:(oa?.({event:ra}),!0)}}];const events$1$1={move:{name:"mousemove"},end:{name:"mouseup"}};var MouseButton;(function(ea){ea[ea.RightClick=2]="RightClick"})(MouseButton||(MouseButton={}));class MouseSensor extends AbstractPointerSensor{constructor(na){super(na,events$1$1,getOwnerDocument(na.event.target))}}MouseSensor.activators=[{eventName:"onMouseDown",handler:(ea,na)=>{let{nativeEvent:ra}=ea,{onActivation:oa}=na;return ra.button===MouseButton.RightClick?!1:(oa?.({event:ra}),!0)}}];const events$2={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class TouchSensor extends AbstractPointerSensor{constructor(na){super(na,events$2)}static setup(){return window.addEventListener(events$2.move.name,na,{capture:!1,passive:!1}),function(){window.removeEventListener(events$2.move.name,na)};function na(){}}}TouchSensor.activators=[{eventName:"onTouchStart",handler:(ea,na)=>{let{nativeEvent:ra}=ea,{onActivation:oa}=na;const{touches:aa}=ra;return aa.length>1?!1:(oa?.({event:ra}),!0)}}];var AutoScrollActivator;(function(ea){ea[ea.Pointer=0]="Pointer",ea[ea.DraggableRect=1]="DraggableRect"})(AutoScrollActivator||(AutoScrollActivator={}));var TraversalOrder;(function(ea){ea[ea.TreeOrder=0]="TreeOrder",ea[ea.ReversedTreeOrder=1]="ReversedTreeOrder"})(TraversalOrder||(TraversalOrder={}));function useAutoScroller(ea){let{acceleration:na,activator:ra=AutoScrollActivator.Pointer,canScroll:oa,draggingRect:aa,enabled:sa,interval:la=5,order:ca=TraversalOrder.TreeOrder,pointerCoordinates:ua,scrollableAncestors:da,scrollableAncestorRects:pa,delta:ha,threshold:ga}=ea;const fa=useScrollIntent({delta:ha,disabled:!sa}),[ma,va]=useInterval(),xa=reactExports.useRef({x:0,y:0}),ya=reactExports.useRef({x:0,y:0}),Aa=reactExports.useMemo(()=>{switch(ra){case AutoScrollActivator.Pointer:return ua?{top:ua.y,bottom:ua.y,left:ua.x,right:ua.x}:null;case AutoScrollActivator.DraggableRect:return aa}},[ra,aa,ua]),Ca=reactExports.useRef(null),Sa=reactExports.useCallback(()=>{const ba=Ca.current;if(!ba)return;const Ea=xa.current.x*ya.current.x,$a=xa.current.y*ya.current.y;ba.scrollBy(Ea,$a)},[]),wa=reactExports.useMemo(()=>ca===TraversalOrder.TreeOrder?[...da].reverse():da,[ca,da]);reactExports.useEffect(()=>{if(!sa||!da.length||!Aa){va();return}for(const ba of wa){if(oa?.(ba)===!1)continue;const Ea=da.indexOf(ba),$a=pa[Ea];if(!$a)continue;const{direction:Ma,speed:Ia}=getScrollDirectionAndSpeed(ba,$a,Aa,na,ga);for(const Oa of["x","y"])fa[Oa][Ma[Oa]]||(Ia[Oa]=0,Ma[Oa]=0);if(Ia.x>0||Ia.y>0){va(),Ca.current=ba,ma(Sa,la),xa.current=Ia,ya.current=Ma;return}}xa.current={x:0,y:0},ya.current={x:0,y:0},va()},[na,Sa,oa,va,sa,la,JSON.stringify(Aa),JSON.stringify(fa),ma,da,wa,pa,JSON.stringify(ga)])}const defaultScrollIntent={x:{[Direction.Backward]:!1,[Direction.Forward]:!1},y:{[Direction.Backward]:!1,[Direction.Forward]:!1}};function useScrollIntent(ea){let{delta:na,disabled:ra}=ea;const oa=usePrevious(na);return useLazyMemo(aa=>{if(ra||!oa||!aa)return defaultScrollIntent;const sa={x:Math.sign(na.x-oa.x),y:Math.sign(na.y-oa.y)};return{x:{[Direction.Backward]:aa.x[Direction.Backward]||sa.x===-1,[Direction.Forward]:aa.x[Direction.Forward]||sa.x===1},y:{[Direction.Backward]:aa.y[Direction.Backward]||sa.y===-1,[Direction.Forward]:aa.y[Direction.Forward]||sa.y===1}}},[ra,na,oa])}function useCachedNode(ea,na){const ra=na!=null?ea.get(na):void 0,oa=ra?ra.node.current:null;return useLazyMemo(aa=>{var sa;return na==null?null:(sa=oa??aa)!=null?sa:null},[oa,na])}function useCombineActivators(ea,na){return reactExports.useMemo(()=>ea.reduce((ra,oa)=>{const{sensor:aa}=oa,sa=aa.activators.map(la=>({eventName:la.eventName,handler:na(la.handler,oa)}));return[...ra,...sa]},[]),[ea,na])}var MeasuringStrategy;(function(ea){ea[ea.Always=0]="Always",ea[ea.BeforeDragging=1]="BeforeDragging",ea[ea.WhileDragging=2]="WhileDragging"})(MeasuringStrategy||(MeasuringStrategy={}));var MeasuringFrequency;(function(ea){ea.Optimized="optimized"})(MeasuringFrequency||(MeasuringFrequency={}));const defaultValue=new Map;function useDroppableMeasuring(ea,na){let{dragging:ra,dependencies:oa,config:aa}=na;const[sa,la]=reactExports.useState(null),{frequency:ca,measure:ua,strategy:da}=aa,pa=reactExports.useRef(ea),ha=xa(),ga=useLatestValue(ha),fa=reactExports.useCallback(function(ya){ya===void 0&&(ya=[]),!ga.current&&la(Aa=>Aa===null?ya:Aa.concat(ya.filter(Ca=>!Aa.includes(Ca))))},[ga]),ma=reactExports.useRef(null),va=useLazyMemo(ya=>{if(ha&&!ra)return defaultValue;if(!ya||ya===defaultValue||pa.current!==ea||sa!=null){const Aa=new Map;for(let Ca of ea){if(!Ca)continue;if(sa&&sa.length>0&&!sa.includes(Ca.id)&&Ca.rect.current){Aa.set(Ca.id,Ca.rect.current);continue}const Sa=Ca.node.current,wa=Sa?new Rect(ua(Sa),Sa):null;Ca.rect.current=wa,wa&&Aa.set(Ca.id,wa)}return Aa}return ya},[ea,sa,ra,ha,ua]);return reactExports.useEffect(()=>{pa.current=ea},[ea]),reactExports.useEffect(()=>{ha||fa()},[ra,ha]),reactExports.useEffect(()=>{sa&&sa.length>0&&la(null)},[JSON.stringify(sa)]),reactExports.useEffect(()=>{ha||typeof ca!="number"||ma.current!==null||(ma.current=setTimeout(()=>{fa(),ma.current=null},ca))},[ca,ha,fa,...oa]),{droppableRects:va,measureDroppableContainers:fa,measuringScheduled:sa!=null};function xa(){switch(da){case MeasuringStrategy.Always:return!1;case MeasuringStrategy.BeforeDragging:return ra;default:return!ra}}}function useInitialValue(ea,na){return useLazyMemo(ra=>ea?ra||(typeof na=="function"?na(ea):ea):null,[na,ea])}function useInitialRect(ea,na){return useInitialValue(ea,na)}function useMutationObserver(ea){let{callback:na,disabled:ra}=ea;const oa=useEvent(na),aa=reactExports.useMemo(()=>{if(ra||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:sa}=window;return new sa(oa)},[oa,ra]);return reactExports.useEffect(()=>()=>aa?.disconnect(),[aa]),aa}function useResizeObserver(ea){let{callback:na,disabled:ra}=ea;const oa=useEvent(na),aa=reactExports.useMemo(()=>{if(ra||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:sa}=window;return new sa(oa)},[ra]);return reactExports.useEffect(()=>()=>aa?.disconnect(),[aa]),aa}function defaultMeasure(ea){return new Rect(getClientRect(ea),ea)}function useRect(ea,na,ra){na===void 0&&(na=defaultMeasure);const[oa,aa]=reactExports.useState(null);function sa(){aa(ua=>{if(!ea)return null;if(ea.isConnected===!1){var da;return(da=ua??ra)!=null?da:null}const pa=na(ea);return JSON.stringify(ua)===JSON.stringify(pa)?ua:pa})}const la=useMutationObserver({callback(ua){if(ea)for(const da of ua){const{type:pa,target:ha}=da;if(pa==="childList"&&ha instanceof HTMLElement&&ha.contains(ea)){sa();break}}}}),ca=useResizeObserver({callback:sa});return useIsomorphicLayoutEffect$1(()=>{sa(),ea?(ca?.observe(ea),la?.observe(document.body,{childList:!0,subtree:!0})):(ca?.disconnect(),la?.disconnect())},[ea]),oa}function useRectDelta(ea){const na=useInitialValue(ea);return getRectDelta(ea,na)}const defaultValue$1=[];function useScrollableAncestors(ea){const na=reactExports.useRef(ea),ra=useLazyMemo(oa=>ea?oa&&oa!==defaultValue$1&&ea&&na.current&&ea.parentNode===na.current.parentNode?oa:getScrollableAncestors(ea):defaultValue$1,[ea]);return reactExports.useEffect(()=>{na.current=ea},[ea]),ra}function useScrollOffsets(ea){const[na,ra]=reactExports.useState(null),oa=reactExports.useRef(ea),aa=reactExports.useCallback(sa=>{const la=getScrollableElement(sa.target);la&&ra(ca=>ca?(ca.set(la,getScrollCoordinates(la)),new Map(ca)):null)},[]);return reactExports.useEffect(()=>{const sa=oa.current;if(ea!==sa){la(sa);const ca=ea.map(ua=>{const da=getScrollableElement(ua);return da?(da.addEventListener("scroll",aa,{passive:!0}),[da,getScrollCoordinates(da)]):null}).filter(ua=>ua!=null);ra(ca.length?new Map(ca):null),oa.current=ea}return()=>{la(ea),la(sa)};function la(ca){ca.forEach(ua=>{const da=getScrollableElement(ua);da?.removeEventListener("scroll",aa)})}},[aa,ea]),reactExports.useMemo(()=>ea.length?na?Array.from(na.values()).reduce((sa,la)=>add(sa,la),defaultCoordinates):getScrollOffsets(ea):defaultCoordinates,[ea,na])}function useScrollOffsetsDelta(ea,na){na===void 0&&(na=[]);const ra=reactExports.useRef(null);return reactExports.useEffect(()=>{ra.current=null},na),reactExports.useEffect(()=>{const oa=ea!==defaultCoordinates;oa&&!ra.current&&(ra.current=ea),!oa&&ra.current&&(ra.current=null)},[ea]),ra.current?subtract(ea,ra.current):defaultCoordinates}function useSensorSetup(ea){reactExports.useEffect(()=>{if(!canUseDOM$1)return;const na=ea.map(ra=>{let{sensor:oa}=ra;return oa.setup==null?void 0:oa.setup()});return()=>{for(const ra of na)ra?.()}},ea.map(na=>{let{sensor:ra}=na;return ra}))}function useSyntheticListeners(ea,na){return reactExports.useMemo(()=>ea.reduce((ra,oa)=>{let{eventName:aa,handler:sa}=oa;return ra[aa]=la=>{sa(la,na)},ra},{}),[ea,na])}function useWindowRect(ea){return reactExports.useMemo(()=>ea?getWindowClientRect(ea):null,[ea])}const defaultValue$2=[];function useRects(ea,na){na===void 0&&(na=getClientRect);const[ra]=ea,oa=useWindowRect(ra?getWindow(ra):null),[aa,sa]=reactExports.useState(defaultValue$2);function la(){sa(()=>ea.length?ea.map(ua=>isDocumentScrollingElement(ua)?oa:new Rect(na(ua),ua)):defaultValue$2)}const ca=useResizeObserver({callback:la});return useIsomorphicLayoutEffect$1(()=>{ca?.disconnect(),la(),ea.forEach(ua=>ca?.observe(ua))},[ea]),aa}function getMeasurableNode(ea){if(!ea)return null;if(ea.children.length>1)return ea;const na=ea.children[0];return isHTMLElement(na)?na:ea}function useDragOverlayMeasuring(ea){let{measure:na}=ea;const[ra,oa]=reactExports.useState(null),aa=reactExports.useCallback(da=>{for(const{target:pa}of da)if(isHTMLElement(pa)){oa(ha=>{const ga=na(pa);return ha?{...ha,width:ga.width,height:ga.height}:ga});break}},[na]),sa=useResizeObserver({callback:aa}),la=reactExports.useCallback(da=>{const pa=getMeasurableNode(da);sa?.disconnect(),pa&&sa?.observe(pa),oa(pa?na(pa):null)},[na,sa]),[ca,ua]=useNodeRef(la);return reactExports.useMemo(()=>({nodeRef:ca,rect:ra,setRef:ua}),[ra,ca,ua])}const defaultSensors=[{sensor:PointerSensor,options:{}},{sensor:KeyboardSensor,options:{}}],defaultData={current:{}},defaultMeasuringConfiguration={draggable:{measure:getTransformAgnosticClientRect},droppable:{measure:getTransformAgnosticClientRect,strategy:MeasuringStrategy.WhileDragging,frequency:MeasuringFrequency.Optimized},dragOverlay:{measure:getClientRect}};class DroppableContainersMap extends Map{get(na){var ra;return na!=null&&(ra=super.get(na))!=null?ra:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(na=>{let{disabled:ra}=na;return!ra})}getNodeFor(na){var ra,oa;return(ra=(oa=this.get(na))==null?void 0:oa.node.current)!=null?ra:void 0}}const defaultPublicContext={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new DroppableContainersMap,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:noop},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:defaultMeasuringConfiguration,measureDroppableContainers:noop,windowRect:null,measuringScheduled:!1},defaultInternalContext={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:noop,draggableNodes:new Map,over:null,measureDroppableContainers:noop},InternalContext=reactExports.createContext(defaultInternalContext),PublicContext=reactExports.createContext(defaultPublicContext);function getInitialState(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new DroppableContainersMap}}}function reducer$2(ea,na){switch(na.type){case Action$2.DragStart:return{...ea,draggable:{...ea.draggable,initialCoordinates:na.initialCoordinates,active:na.active}};case Action$2.DragMove:return ea.draggable.active==null?ea:{...ea,draggable:{...ea.draggable,translate:{x:na.coordinates.x-ea.draggable.initialCoordinates.x,y:na.coordinates.y-ea.draggable.initialCoordinates.y}}};case Action$2.DragEnd:case Action$2.DragCancel:return{...ea,draggable:{...ea.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Action$2.RegisterDroppable:{const{element:ra}=na,{id:oa}=ra,aa=new DroppableContainersMap(ea.droppable.containers);return aa.set(oa,ra),{...ea,droppable:{...ea.droppable,containers:aa}}}case Action$2.SetDroppableDisabled:{const{id:ra,key:oa,disabled:aa}=na,sa=ea.droppable.containers.get(ra);if(!sa||oa!==sa.key)return ea;const la=new DroppableContainersMap(ea.droppable.containers);return la.set(ra,{...sa,disabled:aa}),{...ea,droppable:{...ea.droppable,containers:la}}}case Action$2.UnregisterDroppable:{const{id:ra,key:oa}=na,aa=ea.droppable.containers.get(ra);if(!aa||oa!==aa.key)return ea;const sa=new DroppableContainersMap(ea.droppable.containers);return sa.delete(ra),{...ea,droppable:{...ea.droppable,containers:sa}}}default:return ea}}function RestoreFocus(ea){let{disabled:na}=ea;const{active:ra,activatorEvent:oa,draggableNodes:aa}=reactExports.useContext(InternalContext),sa=usePrevious(oa),la=usePrevious(ra?.id);return reactExports.useEffect(()=>{if(!na&&!oa&&sa&&la!=null){if(!isKeyboardEvent(sa)||document.activeElement===sa.target)return;const ca=aa.get(la);if(!ca)return;const{activatorNode:ua,node:da}=ca;if(!ua.current&&!da.current)return;requestAnimationFrame(()=>{for(const pa of[ua.current,da.current]){if(!pa)continue;const ha=findFirstFocusableNode(pa);if(ha){ha.focus();break}}})}},[oa,na,aa,la,sa]),null}function applyModifiers(ea,na){let{transform:ra,...oa}=na;return ea!=null&&ea.length?ea.reduce((aa,sa)=>sa({transform:aa,...oa}),ra):ra}function useMeasuringConfiguration(ea){return reactExports.useMemo(()=>({draggable:{...defaultMeasuringConfiguration.draggable,...ea?.draggable},droppable:{...defaultMeasuringConfiguration.droppable,...ea?.droppable},dragOverlay:{...defaultMeasuringConfiguration.dragOverlay,...ea?.dragOverlay}}),[ea?.draggable,ea?.droppable,ea?.dragOverlay])}function useLayoutShiftScrollCompensation(ea){let{activeNode:na,measure:ra,initialRect:oa,config:aa=!0}=ea;const sa=reactExports.useRef(!1),{x:la,y:ca}=typeof aa=="boolean"?{x:aa,y:aa}:aa;useIsomorphicLayoutEffect$1(()=>{if(!la&&!ca||!na){sa.current=!1;return}if(sa.current||!oa)return;const da=na?.node.current;if(!da||da.isConnected===!1)return;const pa=ra(da),ha=getRectDelta(pa,oa);if(la||(ha.x=0),ca||(ha.y=0),sa.current=!0,Math.abs(ha.x)>0||Math.abs(ha.y)>0){const ga=getFirstScrollableAncestor(da);ga&&ga.scrollBy({top:ha.y,left:ha.x})}},[na,la,ca,oa,ra])}const ActiveDraggableContext=reactExports.createContext({...defaultCoordinates,scaleX:1,scaleY:1});var Status;(function(ea){ea[ea.Uninitialized=0]="Uninitialized",ea[ea.Initializing=1]="Initializing",ea[ea.Initialized=2]="Initialized"})(Status||(Status={}));const DndContext$1=reactExports.memo(function(na){var ra,oa,aa,sa;let{id:la,accessibility:ca,autoScroll:ua=!0,children:da,sensors:pa=defaultSensors,collisionDetection:ha=rectIntersection,measuring:ga,modifiers:fa,...ma}=na;const va=reactExports.useReducer(reducer$2,void 0,getInitialState),[xa,ya]=va,[Aa,Ca]=useDndMonitorProvider(),[Sa,wa]=reactExports.useState(Status.Uninitialized),ba=Sa===Status.Initialized,{draggable:{active:Ea,nodes:$a,translate:Ma},droppable:{containers:Ia}}=xa,Oa=Ea!=null?$a.get(Ea):null,Da=reactExports.useRef({initial:null,translated:null}),Ta=reactExports.useMemo(()=>{var Ic;return Ea!=null?{id:Ea,data:(Ic=Oa?.data)!=null?Ic:defaultData,rect:Da}:null},[Ea,Oa]),_a=reactExports.useRef(null),[La,Na]=reactExports.useState(null),[za,Fa]=reactExports.useState(null),Ha=useLatestValue(ma,Object.values(ma)),Va=useUniqueId("DndDescribedBy",la),Ua=reactExports.useMemo(()=>Ia.getEnabled(),[Ia]),Qa=useMeasuringConfiguration(ga),{droppableRects:Wa,measureDroppableContainers:Za,measuringScheduled:Xa}=useDroppableMeasuring(Ua,{dragging:ba,dependencies:[Ma.x,Ma.y],config:Qa.droppable}),tl=useCachedNode($a,Ea),il=reactExports.useMemo(()=>za?getEventCoordinates(za):null,[za]),Ja=Rc(),nl=useInitialRect(tl,Qa.draggable.measure);useLayoutShiftScrollCompensation({activeNode:Ea!=null?$a.get(Ea):null,config:Ja.layoutShiftCompensation,initialRect:nl,measure:Qa.draggable.measure});const Ya=useRect(tl,Qa.draggable.measure,nl),rl=useRect(tl?tl.parentElement:null),sl=reactExports.useRef({activatorEvent:null,active:null,activeNode:tl,collisionRect:null,collisions:null,droppableRects:Wa,draggableNodes:$a,draggingNode:null,draggingNodeRect:null,droppableContainers:Ia,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),dl=Ia.getNodeFor((ra=sl.current.over)==null?void 0:ra.id),pl=useDragOverlayMeasuring({measure:Qa.dragOverlay.measure}),ml=(oa=pl.nodeRef.current)!=null?oa:tl,Rl=ba?(aa=pl.rect)!=null?aa:Ya:null,Tl=!!(pl.nodeRef.current&&pl.rect),Il=useRectDelta(Tl?null:Ya),Ol=useWindowRect(ml?getWindow(ml):null),Fl=useScrollableAncestors(ba?dl??tl:null),Vl=useRects(Fl),Wl=applyModifiers(fa,{transform:{x:Ma.x-Il.x,y:Ma.y-Il.y,scaleX:1,scaleY:1},activatorEvent:za,active:Ta,activeNodeRect:Ya,containerNodeRect:rl,draggingNodeRect:Rl,over:sl.current.over,overlayNodeRect:pl.rect,scrollableAncestors:Fl,scrollableAncestorRects:Vl,windowRect:Ol}),vl=il?add(il,Ma):null,kl=useScrollOffsets(Fl),zl=useScrollOffsetsDelta(kl),Al=useScrollOffsetsDelta(kl,[Ya]),gl=add(Wl,zl),xl=Rl?getAdjustedRect(Rl,Wl):null,Sl=Ta&&xl?ha({active:Ta,collisionRect:xl,droppableRects:Wa,droppableContainers:Ua,pointerCoordinates:vl}):null,$l=getFirstCollision(Sl,"id"),[Bl,Ul]=reactExports.useState(null),ec=Tl?Wl:add(Wl,Al),Kl=adjustScale(ec,(sa=Bl?.rect)!=null?sa:null,Ya),rc=reactExports.useRef(null),wl=reactExports.useCallback((Ic,bc)=>{let{sensor:kc,options:Kc}=bc;if(_a.current==null)return;const Tc=$a.get(_a.current);if(!Tc)return;const ac=Ic.nativeEvent,sc=new kc({active:_a.current,activeNode:Tc,event:ac,options:Kc,context:sl,onAbort(Pc){if(!$a.get(Pc))return;const{onDragAbort:uc}=Ha.current,lc={id:Pc};uc?.(lc),Aa({type:"onDragAbort",event:lc})},onPending(Pc,qc,uc,lc){if(!$a.get(Pc))return;const{onDragPending:pc}=Ha.current,xc={id:Pc,constraint:qc,initialCoordinates:uc,offset:lc};pc?.(xc),Aa({type:"onDragPending",event:xc})},onStart(Pc){const qc=_a.current;if(qc==null)return;const uc=$a.get(qc);if(!uc)return;const{onDragStart:lc}=Ha.current,hc={activatorEvent:ac,active:{id:qc,data:uc.data,rect:Da}};reactDomExports.unstable_batchedUpdates(()=>{lc?.(hc),wa(Status.Initializing),ya({type:Action$2.DragStart,initialCoordinates:Pc,active:qc}),Aa({type:"onDragStart",event:hc}),Na(rc.current),Fa(ac)})},onMove(Pc){ya({type:Action$2.DragMove,coordinates:Pc})},onEnd:dc(Action$2.DragEnd),onCancel:dc(Action$2.DragCancel)});rc.current=sc;function dc(Pc){return async function(){const{active:uc,collisions:lc,over:hc,scrollAdjustedTranslate:pc}=sl.current;let xc=null;if(uc&&pc){const{cancelDrop:Gc}=Ha.current;xc={activatorEvent:ac,active:uc,collisions:lc,delta:pc,over:hc},Pc===Action$2.DragEnd&&typeof Gc=="function"&&await Promise.resolve(Gc(xc))&&(Pc=Action$2.DragCancel)}_a.current=null,reactDomExports.unstable_batchedUpdates(()=>{ya({type:Pc}),wa(Status.Uninitialized),Ul(null),Na(null),Fa(null),rc.current=null;const Gc=Pc===Action$2.DragEnd?"onDragEnd":"onDragCancel";if(xc){const Lu=Ha.current[Gc];Lu?.(xc),Aa({type:Gc,event:xc})}})}}},[$a]),Ll=reactExports.useCallback((Ic,bc)=>(kc,Kc)=>{const Tc=kc.nativeEvent,ac=$a.get(Kc);if(_a.current!==null||!ac||Tc.dndKit||Tc.defaultPrevented)return;const sc={active:ac};Ic(kc,bc.options,sc)===!0&&(Tc.dndKit={capturedBy:bc.sensor},_a.current=Kc,wl(kc,bc))},[$a,wl]),ic=useCombineActivators(pa,Ll);useSensorSetup(pa),useIsomorphicLayoutEffect$1(()=>{Ya&&Sa===Status.Initializing&&wa(Status.Initialized)},[Ya,Sa]),reactExports.useEffect(()=>{const{onDragMove:Ic}=Ha.current,{active:bc,activatorEvent:kc,collisions:Kc,over:Tc}=sl.current;if(!bc||!kc)return;const ac={active:bc,activatorEvent:kc,collisions:Kc,delta:{x:gl.x,y:gl.y},over:Tc};reactDomExports.unstable_batchedUpdates(()=>{Ic?.(ac),Aa({type:"onDragMove",event:ac})})},[gl.x,gl.y]),reactExports.useEffect(()=>{const{active:Ic,activatorEvent:bc,collisions:kc,droppableContainers:Kc,scrollAdjustedTranslate:Tc}=sl.current;if(!Ic||_a.current==null||!bc||!Tc)return;const{onDragOver:ac}=Ha.current,sc=Kc.get($l),dc=sc&&sc.rect.current?{id:sc.id,rect:sc.rect.current,data:sc.data,disabled:sc.disabled}:null,Pc={active:Ic,activatorEvent:bc,collisions:kc,delta:{x:Tc.x,y:Tc.y},over:dc};reactDomExports.unstable_batchedUpdates(()=>{Ul(dc),ac?.(Pc),Aa({type:"onDragOver",event:Pc})})},[$l]),useIsomorphicLayoutEffect$1(()=>{sl.current={activatorEvent:za,active:Ta,activeNode:tl,collisionRect:xl,collisions:Sl,droppableRects:Wa,draggableNodes:$a,draggingNode:ml,draggingNodeRect:Rl,droppableContainers:Ia,over:Bl,scrollableAncestors:Fl,scrollAdjustedTranslate:gl},Da.current={initial:Rl,translated:xl}},[Ta,tl,Sl,xl,$a,ml,Rl,Wa,Ia,Bl,Fl,gl]),useAutoScroller({...Ja,delta:Ma,draggingRect:xl,pointerCoordinates:vl,scrollableAncestors:Fl,scrollableAncestorRects:Vl});const Yl=reactExports.useMemo(()=>({active:Ta,activeNode:tl,activeNodeRect:Ya,activatorEvent:za,collisions:Sl,containerNodeRect:rl,dragOverlay:pl,draggableNodes:$a,droppableContainers:Ia,droppableRects:Wa,over:Bl,measureDroppableContainers:Za,scrollableAncestors:Fl,scrollableAncestorRects:Vl,measuringConfiguration:Qa,measuringScheduled:Xa,windowRect:Ol}),[Ta,tl,Ya,za,Sl,rl,pl,$a,Ia,Wa,Bl,Za,Fl,Vl,Qa,Xa,Ol]),gc=reactExports.useMemo(()=>({activatorEvent:za,activators:ic,active:Ta,activeNodeRect:Ya,ariaDescribedById:{draggable:Va},dispatch:ya,draggableNodes:$a,over:Bl,measureDroppableContainers:Za}),[za,ic,Ta,Ya,ya,Va,$a,Bl,Za]);return React.createElement(DndMonitorContext.Provider,{value:Ca},React.createElement(InternalContext.Provider,{value:gc},React.createElement(PublicContext.Provider,{value:Yl},React.createElement(ActiveDraggableContext.Provider,{value:Kl},da)),React.createElement(RestoreFocus,{disabled:ca?.restoreFocus===!1})),React.createElement(Accessibility,{...ca,hiddenTextDescribedById:Va}));function Rc(){const Ic=La?.autoScrollEnabled===!1,bc=typeof ua=="object"?ua.enabled===!1:ua===!1,kc=ba&&!Ic&&!bc;return typeof ua=="object"?{...ua,enabled:kc}:{enabled:kc}}}),NullContext=reactExports.createContext(null),defaultRole="button",ID_PREFIX$1="Draggable";function useDraggable$1(ea){let{id:na,data:ra,disabled:oa=!1,attributes:aa}=ea;const sa=useUniqueId(ID_PREFIX$1),{activators:la,activatorEvent:ca,active:ua,activeNodeRect:da,ariaDescribedById:pa,draggableNodes:ha,over:ga}=reactExports.useContext(InternalContext),{role:fa=defaultRole,roleDescription:ma="draggable",tabIndex:va=0}=aa??{},xa=ua?.id===na,ya=reactExports.useContext(xa?ActiveDraggableContext:NullContext),[Aa,Ca]=useNodeRef(),[Sa,wa]=useNodeRef(),ba=useSyntheticListeners(la,na),Ea=useLatestValue(ra);useIsomorphicLayoutEffect$1(()=>(ha.set(na,{id:na,key:sa,node:Aa,activatorNode:Sa,data:Ea}),()=>{const Ma=ha.get(na);Ma&&Ma.key===sa&&ha.delete(na)}),[ha,na]);const $a=reactExports.useMemo(()=>({role:fa,tabIndex:va,"aria-disabled":oa,"aria-pressed":xa&&fa===defaultRole?!0:void 0,"aria-roledescription":ma,"aria-describedby":pa.draggable}),[oa,fa,va,xa,ma,pa.draggable]);return{active:ua,activatorEvent:ca,activeNodeRect:da,attributes:$a,isDragging:xa,listeners:oa?void 0:ba,node:Aa,over:ga,setNodeRef:Ca,setActivatorNodeRef:wa,transform:ya}}function useDndContext(){return reactExports.useContext(PublicContext)}const ID_PREFIX$1$1="Droppable",defaultResizeObserverConfig={timeout:25};function useDroppable$1(ea){let{data:na,disabled:ra=!1,id:oa,resizeObserverConfig:aa}=ea;const sa=useUniqueId(ID_PREFIX$1$1),{active:la,dispatch:ca,over:ua,measureDroppableContainers:da}=reactExports.useContext(InternalContext),pa=reactExports.useRef({disabled:ra}),ha=reactExports.useRef(!1),ga=reactExports.useRef(null),fa=reactExports.useRef(null),{disabled:ma,updateMeasurementsFor:va,timeout:xa}={...defaultResizeObserverConfig,...aa},ya=useLatestValue(va??oa),Aa=reactExports.useCallback(()=>{if(!ha.current){ha.current=!0;return}fa.current!=null&&clearTimeout(fa.current),fa.current=setTimeout(()=>{da(Array.isArray(ya.current)?ya.current:[ya.current]),fa.current=null},xa)},[xa]),Ca=useResizeObserver({callback:Aa,disabled:ma||!la}),Sa=reactExports.useCallback(($a,Ma)=>{Ca&&(Ma&&(Ca.unobserve(Ma),ha.current=!1),$a&&Ca.observe($a))},[Ca]),[wa,ba]=useNodeRef(Sa),Ea=useLatestValue(na);return reactExports.useEffect(()=>{!Ca||!wa.current||(Ca.disconnect(),ha.current=!1,Ca.observe(wa.current))},[wa,Ca]),reactExports.useEffect(()=>(ca({type:Action$2.RegisterDroppable,element:{id:oa,key:sa,disabled:ra,node:wa,rect:ga,data:Ea}}),()=>ca({type:Action$2.UnregisterDroppable,key:sa,id:oa})),[oa]),reactExports.useEffect(()=>{ra!==pa.current.disabled&&(ca({type:Action$2.SetDroppableDisabled,id:oa,key:sa,disabled:ra}),pa.current.disabled=ra)},[oa,sa,ra,ca]),{active:la,rect:ga,isOver:ua?.id===oa,node:wa,over:ua,setNodeRef:ba}}function AnimationManager(ea){let{animation:na,children:ra}=ea;const[oa,aa]=reactExports.useState(null),[sa,la]=reactExports.useState(null),ca=usePrevious(ra);return!ra&&!oa&&ca&&aa(ca),useIsomorphicLayoutEffect$1(()=>{if(!sa)return;const ua=oa?.key,da=oa?.props.id;if(ua==null||da==null){aa(null);return}Promise.resolve(na(da,sa)).then(()=>{aa(null)})},[na,oa,sa]),React.createElement(React.Fragment,null,ra,oa?reactExports.cloneElement(oa,{ref:la}):null)}const defaultTransform={x:0,y:0,scaleX:1,scaleY:1};function NullifiedContextProvider(ea){let{children:na}=ea;return React.createElement(InternalContext.Provider,{value:defaultInternalContext},React.createElement(ActiveDraggableContext.Provider,{value:defaultTransform},na))}const baseStyles={position:"fixed",touchAction:"none"},defaultTransition$1=ea=>isKeyboardEvent(ea)?"transform 250ms ease":void 0,PositionedOverlay=reactExports.forwardRef((ea,na)=>{let{as:ra,activatorEvent:oa,adjustScale:aa,children:sa,className:la,rect:ca,style:ua,transform:da,transition:pa=defaultTransition$1}=ea;if(!ca)return null;const ha=aa?da:{...da,scaleX:1,scaleY:1},ga={...baseStyles,width:ca.width,height:ca.height,top:ca.top,left:ca.left,transform:CSS.Transform.toString(ha),transformOrigin:aa&&oa?getRelativeTransformOrigin(oa,ca):void 0,transition:typeof pa=="function"?pa(oa):pa,...ua};return React.createElement(ra,{className:la,style:ga,ref:na},sa)}),defaultDropAnimationSideEffects=ea=>na=>{let{active:ra,dragOverlay:oa}=na;const aa={},{styles:sa,className:la}=ea;if(sa!=null&&sa.active)for(const[ca,ua]of Object.entries(sa.active))ua!==void 0&&(aa[ca]=ra.node.style.getPropertyValue(ca),ra.node.style.setProperty(ca,ua));if(sa!=null&&sa.dragOverlay)for(const[ca,ua]of Object.entries(sa.dragOverlay))ua!==void 0&&oa.node.style.setProperty(ca,ua);return la!=null&&la.active&&ra.node.classList.add(la.active),la!=null&&la.dragOverlay&&oa.node.classList.add(la.dragOverlay),function(){for(const[ua,da]of Object.entries(aa))ra.node.style.setProperty(ua,da);la!=null&&la.active&&ra.node.classList.remove(la.active)}},defaultKeyframeResolver=ea=>{let{transform:{initial:na,final:ra}}=ea;return[{transform:CSS.Transform.toString(na)},{transform:CSS.Transform.toString(ra)}]},defaultDropAnimationConfiguration={duration:250,easing:"ease",keyframes:defaultKeyframeResolver,sideEffects:defaultDropAnimationSideEffects({styles:{active:{opacity:"0"}}})};function useDropAnimation(ea){let{config:na,draggableNodes:ra,droppableContainers:oa,measuringConfiguration:aa}=ea;return useEvent((sa,la)=>{if(na===null)return;const ca=ra.get(sa);if(!ca)return;const ua=ca.node.current;if(!ua)return;const da=getMeasurableNode(la);if(!da)return;const{transform:pa}=getWindow(la).getComputedStyle(la),ha=parseTransform(pa);if(!ha)return;const ga=typeof na=="function"?na:createDefaultDropAnimation(na);return scrollIntoViewIfNeeded(ua,aa.draggable.measure),ga({active:{id:sa,data:ca.data,node:ua,rect:aa.draggable.measure(ua)},draggableNodes:ra,dragOverlay:{node:la,rect:aa.dragOverlay.measure(da)},droppableContainers:oa,measuringConfiguration:aa,transform:ha})})}function createDefaultDropAnimation(ea){const{duration:na,easing:ra,sideEffects:oa,keyframes:aa}={...defaultDropAnimationConfiguration,...ea};return sa=>{let{active:la,dragOverlay:ca,transform:ua,...da}=sa;if(!na)return;const pa={x:ca.rect.left-la.rect.left,y:ca.rect.top-la.rect.top},ha={scaleX:ua.scaleX!==1?la.rect.width*ua.scaleX/ca.rect.width:1,scaleY:ua.scaleY!==1?la.rect.height*ua.scaleY/ca.rect.height:1},ga={x:ua.x-pa.x,y:ua.y-pa.y,...ha},fa=aa({...da,active:la,dragOverlay:ca,transform:{initial:ua,final:ga}}),[ma]=fa,va=fa[fa.length-1];if(JSON.stringify(ma)===JSON.stringify(va))return;const xa=oa?.({active:la,dragOverlay:ca,...da}),ya=ca.node.animate(fa,{duration:na,easing:ra,fill:"forwards"});return new Promise(Aa=>{ya.onfinish=()=>{xa?.(),Aa()}})}}let key=0;function useKey(ea){return reactExports.useMemo(()=>{if(ea!=null)return key++,key},[ea])}const DragOverlay$2=React.memo(ea=>{let{adjustScale:na=!1,children:ra,dropAnimation:oa,style:aa,transition:sa,modifiers:la,wrapperElement:ca="div",className:ua,zIndex:da=999}=ea;const{activatorEvent:pa,active:ha,activeNodeRect:ga,containerNodeRect:fa,draggableNodes:ma,droppableContainers:va,dragOverlay:xa,over:ya,measuringConfiguration:Aa,scrollableAncestors:Ca,scrollableAncestorRects:Sa,windowRect:wa}=useDndContext(),ba=reactExports.useContext(ActiveDraggableContext),Ea=useKey(ha?.id),$a=applyModifiers(la,{activatorEvent:pa,active:ha,activeNodeRect:ga,containerNodeRect:fa,draggingNodeRect:xa.rect,over:ya,overlayNodeRect:xa.rect,scrollableAncestors:Ca,scrollableAncestorRects:Sa,transform:ba,windowRect:wa}),Ma=useInitialValue(ga),Ia=useDropAnimation({config:oa,draggableNodes:ma,droppableContainers:va,measuringConfiguration:Aa}),Oa=Ma?xa.setRef:void 0;return React.createElement(NullifiedContextProvider,null,React.createElement(AnimationManager,{animation:Ia},ha&&Ea?React.createElement(PositionedOverlay,{key:Ea,id:ha.id,ref:Oa,as:ca,activatorEvent:pa,adjustScale:na,className:ua,transition:sa,rect:Ma,style:{zIndex:da,...aa},transform:$a},ra):null))}),useDraggable=ea=>{const{type:na,source:ra,...oa}=ea;return useDraggable$1({...oa,data:{...oa.data,type:na,source:ra}})};function getInsertionIndex(ea,na,ra){if(!na.current)return-1;const oa=ea.left+ea.width/2,aa=ea.top+ea.height/2,{flexDirection:sa,flexWrap:la}=window.getComputedStyle(na.current),ca=sa.startsWith("row"),ua=la!=="nowrap",da=Array.from(na.current.querySelectorAll(`:scope > .${ra}`));if(da.length===0)return 0;let pa=1/0,ha=0;return da.forEach((ga,fa)=>{const ma=ga.getBoundingClientRect();if(ga.dataset.isDragging==="true")return;let va;if(ca)if(ua){const xa=Math.abs(aa-(ma.top+ma.height/2)),ya=Math.abs(oa-(ma.left+ma.width/2));va=Math.sqrt(xa**2+ya**2)}else va=Math.abs(oa-(ma.left+ma.width/2));else if(ua){const xa=Math.abs(oa-(ma.left+ma.width/2)),ya=Math.abs(aa-(ma.top+ma.height/2));va=Math.sqrt(xa**2+ya**2)}else va=Math.abs(aa-(ma.top+ma.height/2));va<pa&&(pa=va,ha=fa,(ca&&oa>ma.left+ma.width/2||!ca&&aa>ma.top+ma.height/2)&&(ha+=1))}),ha}const DRAG_MOVE_THRESHOLD=5,useDroppable=ea=>{const{accepts:na,move:ra,sort:oa,onDrop:aa,sortableClassName:sa="draggable-item",acceptDrops:la=!0,debug:ca,...ua}=ea,da=useDroppable$1(ua),{isOver:pa,active:ha,setNodeRef:ga}=da,fa=Array.isArray(na)?na:[na],[ma,va]=reactExports.useState(null),xa=pa&&ha&&fa.includes(ha.data.current?.type)&&ha.id!==ua.id,ya=reactExports.useRef(),Aa=reactExports.useRef(null);ca&&console.log(pa,ha,fa.includes(ha?.data.current?.type),ha?.id!==ua.id);const Ca=reactExports.useCallback(ba=>{Aa.current=ba,ga(ba)},[ga]),Sa=reactExports.useCallback(ba=>{if(xa){const Ea=la||oa&&ua.id===ba.active.data.current?.source;oa&&ya.current&&ra&&Ea&&ra(ya.current),la&&aa?.(ba),ma&&va(null)}},[la,xa,ra,aa,ma,ua.id,oa]),wa=reactExports.useCallback(ba=>{const{active:{rect:Ea,id:$a,data:Ma},delta:Ia}=ba;if(Math.sqrt(Math.pow(Ia.x,2)+Math.pow(Ia.y,2))<DRAG_MOVE_THRESHOLD)return;const Da=la||oa&&ua.id===Ma.current?.source;if(ma!==$a&&va($a),xa&&oa&&ra&&Da){const Ta=getInsertionIndex(Ea.current.translated,Aa,sa),_a={id:$a,index:Ta,toParent:ua.id};if(shallowEqual$2(_a,ya.current))return;ra(_a,!0),ya.current=_a}else ya.current=void 0},[la,oa,ua.id,ma,xa,ra,sa]);return useDndMonitor({onDragEnd:Sa,onDragMove:wa}),{...da,isOver:xa,setNodeRef:Ca,overId:ma}},useIsKeyDown=(ea,na)=>{const[ra,oa]=reactExports.useState(!1);return reactExports.useEffect(()=>{const aa=({key:la})=>{la===ea&&oa(!0)},sa=({key:la})=>{la===ea&&oa(!1)};return window.addEventListener("keydown",aa),window.addEventListener("keyup",sa),()=>{window.removeEventListener("keydown",aa),window.removeEventListener("keyup",sa)}},[na,ea]),ra};function useElementDroppableElement(ea,na,ra=dragTypes.GROUPABLE_ELEMENT){const oa=useIsKeyDown("Alt"),aa=useDispatch(),sa=useSelector(getWorkspaceComputedZoom),la=reactExports.useCallback((ha,ga)=>{const{toParent:fa,index:ma,id:va}=ha;aa(changeElementHierarchyThunk({id:va.toString(),index:ma,target:fa.toString(),soft:ga}))},[aa]),ca=reactExports.useCallback(ha=>{const{active:ga,over:fa}=ha;if(!ga||!fa)return;const{id:ma,rect:va}=ga,{id:xa,rect:{top:ya,left:Aa}}=fa,Ca={x:(va.current.translated.left-Aa)/sa,y:(va.current.translated.top-ya)/sa};aa(changeElementHierarchyThunk({id:ma.toString(),target:xa.toString(),overridePosition:Ca}))},[aa,sa]),{setNodeRef:ua,isOver:da,overId:pa}=useDroppable({id:ea,acceptDrops:oa,accepts:ra,sort:na,move:na?la:void 0,onDrop:na?void 0:ca});return{setNodeRef:ua,isOver:da,overId:pa}}const useSelectElement=(ea,na,ra,oa=!1,aa)=>{const la=useSelector(getSelectedElements).includes(ea),ca=useDispatchAndToHistory(),ua=useSelector(getSelectedElementsHasLocked),da=useSelector(getSelectedElementsParents),pa="depicter-selectable-element",ha=reactExports.useMemo(()=>da.every(fa=>fa===ra),[ra,da]);reactExports.useEffect(()=>{aa?.(la)},[la,aa]);const ga=reactExports.useCallback(fa=>{const ma=fa?.shiftKey||fa?.ctrlKey;if((fa?.target).closest(`.${pa}`)===fa?.currentTarget){if(la){ma&&ca(deselectElement(ea));return}document.activeElement?.blur(),ca(selectElement({id:ea,clear:oa||ua||na||!ma||!ha}))}},[ca,oa,ha,ea,la,na,ua]);return{isSelected:la,selectHandler:ga,selectedClassName:la?"dp-element-selected":"",selectableClassName:pa}},useClearSelectedElements=(ea="",na)=>{const ra=`.dp-element-selected, .depicter-keep-element-selection, .ms-moveable, .ms-transform-tool-target${ea?`, ${ea}`:""}`,oa=useSelector(getSelectedElements).length,aa=useDispatchAndToHistory(),sa=reactExports.useCallback(la=>{!oa||la.target&&la.target.closest(ra)||(document.activeElement?.blur(),aa(clearSelectedElements()))},[aa,na,ra,oa]);reactExports.useEffect(()=>(document.addEventListener("mousedown",sa),()=>{document.removeEventListener("mousedown",sa)}),[sa])},useHoverElement=(ea,na)=>{const ra=useSelector(getHoveredElement),oa=reactExports.useMemo(()=>ra===ea,[ra,ea]),aa=useDispatch(),sa=reactExports.useCallback(la=>{na||aa(setHoveredElement(oa&&la?null:ea))},[na,aa,ea,oa]);return[oa,sa]},isWithUnit=ea=>typeof ea=="object"&&typeof ea.unit=="string"&&typeof ea.value=="number",wrapElement=(ea,na)=>(ea.parentElement?.insertBefore(na,ea),na.appendChild(ea),na),unwrapElement=ea=>{ea.replaceWith(...ea.childNodes)},wrapChildren=(ea,na=document.createElement("div"))=>([...ea.childNodes].forEach(ra=>na.appendChild(ra)),ea.appendChild(na),na),unwrapChildren=ea=>{[...ea.childNodes].forEach(na=>ea.parentElement.appendChild(na)),ea.remove()},findAllTextNodes=ea=>Array.from(ea.childNodes).reduce((na,ra)=>ra.nodeType!==Node.TEXT_NODE&&ra.childNodes?.length?[...na,...findAllTextNodes(ra)]:ra.nodeType===Node.TEXT_NODE?[...na,ra]:na,[]),findFirstCommonAncestor$1=(ea,na)=>{const ra=new Range;return ea.contains(na)?ea:na.contains(ea)?na:(ra.setStartBefore(ea),ra.setEndAfter(na),ra.collapsed&&(ra.setStartBefore(na),ra.setEndAfter(ea)),ra.commonAncestorContainer)},firstFirstCommonAncestorMultiple=ea=>ea.length>1?ea.reduce((na,ra)=>na===ra?na:findFirstCommonAncestor$1(na,ra),ea[0]):ea[0].parentElement,getComputedCSSValue=(ea,na)=>{const ra=window.getComputedStyle(ea)[na];if(!ra)return null;if(/px/.test(ra.toString())){const oa=ea.style.display;ea.style.display="none";const aa=window.getComputedStyle(ea)[na];return ea.style.display=oa,aa}return ra},cacheElementInlineStyle=ea=>{const na=ea.style.cssText;return()=>{ea.style.cssText=na}},baseDefaultParams={duration:1e3,easing:"linear",delay:0},baseAnimator=(ea,na={})=>{const{duration:ra,delay:oa,easing:aa,begin:sa,complete:la}={...baseDefaultParams,...na},ca=cacheElementInlineStyle(ea);return{parts:{offset:oa,params:{targets:ea,duration:ra,easing:aa,begin:sa,complete:la}},reset:()=>{ca(),anime.remove(ea)}}},moveDefaultParams={...baseDefaultParams,movement:100,direction:"left",fade:!0,perspective:2e3,x:null,y:null,z:null},directionMap$1={top:"Y",bottom:"Y",left:"X",right:"X",front:"Z",back:"Z"},moveAnimator=ea=>(na,ra={})=>{const{movement:oa,direction:aa,fade:sa,perspective:la}={...moveDefaultParams,...ra},{parts:{params:ca,offset:ua},reset:da}=baseAnimator(na,ra);let pa={};const ha=ea==="in";if(aa==="custom"){const{x:ga,y:fa,z:ma}=ra;let va=ga,xa=fa,ya=ma,Aa="px",Ca="px",Sa="px";isWithUnit(ga)&&(va=ga.value,Aa=ga.unit),isWithUnit(fa)&&(xa=fa.value,Ca=fa.unit),isWithUnit(ma)&&(ya=ma.value,Sa=ma.unit),pa={...ga&&{translateX:ha?[`${va}${Aa}`,0]:`${va}${Aa}`},...fa&&{translateY:ha?[`${xa}${Ca}`,0]:`${xa}${Ca}`},...ma&&{translateZ:ha?[`${ya}${Sa}`,0]:`${ya}${Sa}`}}}else{let ga=oa,fa="px";isWithUnit(oa)&&(ga=oa.value,fa=oa.unit);const ma=["left","top","back"].includes(aa)?`-${ga}${fa}`:`${ga}${fa}`;pa[`translate${directionMap$1[aa]}`]=ha?[ma,0]:ma}return pa.translateZ&&anime.set(na,{perspective:la}),sa&&(pa.opacity=ha?[0,1]:0),{parts:{offset:ua,params:{...ca,...pa}},reset:da}},inAnimator$d=moveAnimator("in"),outAnimator$d=moveAnimator("out"),moveAndTransformDefaultParams={...moveDefaultParams},moveAndTransformAnimator=ea=>(na,ra={})=>{const{skew:oa,scale:aa,rotate:sa,rotate3d:la,transformOrigin:ca,skewX:ua,skewY:da,rotateX:pa,rotateY:ha,rotateZ:ga}=ra,{reset:fa,parts:{params:ma,offset:va}}=moveAnimator(ea)(na,ra);let xa={};const ya=ea==="in";if(la){const{x:Aa,y:Ca,z:Sa}=la;xa={...xa,...Aa!==void 0&&{rotateX:ya?[Aa,0]:Aa},...Ca!==void 0&&{rotateY:ya?[Ca,0]:Ca},...Sa!==void 0&&{rotateZ:ya?[Sa,0]:Sa}}}else{const[Aa,Ca,Sa]=[pa,ha,ga];xa={...xa,...Aa!==void 0&&{rotateX:ya?[Aa,0]:Aa},...Ca!==void 0&&{rotateY:ya?[Ca,0]:Ca},...Sa!==void 0&&{rotateZ:ya?[Sa,0]:Sa}}}if(sa!==void 0&&(xa.rotate=ya?[sa,0]:sa),oa){const{x:Aa,y:Ca}=oa;xa={...xa,...Aa!==void 0&&{skewX:ya?[Aa,0]:Aa},...Ca!==void 0&&{skewY:ya?[Ca,0]:Ca}}}else xa={...xa,...ua!==void 0&&{skewX:ya?[ua,0]:ua},...da!==void 0&&{skewY:ya?[da,0]:da}};if(aa)if(typeof aa=="number")xa.scale=ya?[aa,1]:aa;else{const{x:Aa,y:Ca}=aa;xa={...xa,...Aa!==void 0&&{scaleX:ya?[Aa,1]:Aa},...Ca!==void 0&&{scaleY:ya?[Ca,1]:Ca}}}if(ca){const{x:Aa,y:Ca,z:Sa}=ca,wa=`${Aa||0} ${Ca||0} ${Sa||0}`;xa.transformOrigin=[wa,wa]}return{parts:{offset:va,params:{...ma,...xa}},reset:fa}},inAnimator$c=moveAndTransformAnimator("in"),outAnimator$c=moveAndTransformAnimator("out"),maskAnimator=ea=>(na,ra={})=>{const oa=wrapElement(na,document.createElement("div"));oa.classList.add("animator-mask-container");const aa=getComputedCSSValue(na,"width"),sa=getComputedCSSValue(na,"height");aa!==null&&aa!=="auto"&&(na.style.width="100%",oa.style.width=aa),sa!==null&&sa!=="auto"&&(na.style.height="100%",oa.style.height=sa),oa.style.overflow="hidden";const{reset:la,parts:{params:ca,offset:ua}}=moveAnimator(ea)(na,ra);return{parts:{offset:ua,params:ca},reset:()=>{la(),unwrapElement(oa)}}},inAnimator$b=maskAnimator("in"),outAnimator$b=maskAnimator("out");({...moveAndTransformDefaultParams});const maskAndTransform=ea=>(na,ra={})=>{const oa=wrapElement(na,document.createElement("div"));oa.classList.add("animator-mask-container");const aa=getComputedCSSValue(na,"width"),sa=getComputedCSSValue(na,"height");aa!==null&&aa!=="auto"&&(na.style.width="100%",oa.style.width=aa),sa!==null&&sa!=="auto"&&(na.style.height="100%",oa.style.height=sa),oa.style.overflow="hidden";const{reset:la,parts:{params:ca,offset:ua}}=moveAndTransformAnimator(ea)(na,ra);return{parts:{offset:ua,params:ca},reset:()=>{la(),unwrapElement(oa)}}},inAnimator$a=maskAndTransform("in"),outAnimator$a=maskAndTransform("out");function hasOwnProperty$2(ea,na){return ea.hasOwnProperty(na)}const getAnimeParams=(ea,na,ra,oa)=>{const aa=list$3[ra];if(hasOwnProperty$2(aa,ea)){const sa=aa[ea],{parts:la,reset:ca}=sa(na,oa);return{reset:ca,parts:la}}else throw new Error("Animation type not found.")},revealDefaultParams={coverInAnim:{type:"moveAndTransform",...moveAndTransformDefaultParams},coverOutAnim:{type:"moveAndTransform",...moveAndTransformDefaultParams},targetAnim:{type:"none"}},revealAnimator=ea=>(na,ra)=>{const oa={...revealDefaultParams,...ra},{coverColor:aa,duration:sa,delay:la=0,coverInAnim:{type:ca,...ua},coverOutAnim:{type:da,...pa}}=oa,ha=document.createElement("div"),ga=document.createElement("div");ha.classList.add("animator-mask-container"),wrapElement(na,ha),ha.append(ga),Object.assign(ha.style,{position:"relative",overflow:"hidden",display:"inline-block",verticalAlign:"middle",width:"100%",height:"100%"}),Object.assign(ga.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:aa});const{reset:fa,parts:ma}=getAnimeParams(ca,ga,"in",{...ua,duration:sa?sa/2:ua.duration,delay:sa?la:ua.delay}),{offset:va=0,params:xa}=ma,ya=va+xa.duration;let{targetAnim:Aa}=oa;const Ca=Aa.type==="none";Ca&&(Aa={type:"move",fade:!0,movement:0,direction:"left"});const{type:Sa,...wa}=Aa,{reset:ba,parts:Ea}=getAnimeParams(Sa,na,ea,{...wa,duration:Ca?1:sa?sa/2:wa.duration,delay:sa?la+sa/2:ya+(wa.delay||0)});let $a=[],Ma=null;if(!wa.fade){const{reset:Da,parts:Ta}=getAnimeParams("fade",na,ea,{fade:!0,movement:0,direction:"left",duration:1,delay:sa?la+sa/2:ya+(wa.delay||0)});$a=[Ta],Ma=Da}const{reset:Ia,parts:Oa}=getAnimeParams(da,ga,"out",{...pa,duration:sa?sa/2:wa.duration,delay:sa?la+sa/2:ya+(pa.delay||0)});return{parts:[ma,...$a,Ea,Oa],reset:()=>{fa(),Ia(),ba(),Ma?.(),ga.remove(),unwrapElement(ha),ha.remove()}}},inAnimator$9=revealAnimator("in"),outAnimator$9=revealAnimator("out"),shuffleArray=ea=>{const na=ea;let ra=ea.length,oa;for(;ra!==0;)oa=Math.floor(Math.random()*ra),ra-=1,[na[ra],na[oa]]=[na[oa],na[ra]];return na};function copyTypographyAndBoxStyles(ea,na){const ra=["font-size","font-family","font-weight","font-style","line-height","text-align","text-transform","letter-spacing","word-spacing","padding","box-sizing","border"],oa=getComputedStyle(ea);for(const aa of ra)na.style.setProperty(aa,oa.getPropertyValue(aa))}const splitLines=(ea,na=!0)=>{const ra=ea?.textContent;if(!ea||!ea.parentElement||ea.nodeType!==3||!ra)return[];if(na){const{width:da}=ea.parentElement.getBoundingClientRect(),{offsetWidth:pa}=ea.parentElement;if(Math.round(da)!==pa){const ga=ea.cloneNode(!0),fa=document.createElement("div");fa.appendChild(ga),copyTypographyAndBoxStyles(ea.parentElement,fa),fa.style.width=`${pa}px`;const ma=document.createElement("div");ma.style.position="absolute",ma.style.visibility="hidden",ma.appendChild(fa),document.body.appendChild(ma);const va=splitLines(fa.firstChild,!1);return ma.remove(),va}}const oa=document.createRange(),aa=[];oa.setStart(ea,0);let sa=oa.getBoundingClientRect().bottom,la=1,ca=0,ua=0;for(;la<=ra.length;)oa.setStart(ea,la),la<ra.length-1&&oa.setEnd(ea,la+1),ua=oa.getBoundingClientRect().bottom,ua>sa&&(aa.push(ra.substr(ca,la-ca)),sa=ua,ca=la),la+=1;return aa.push(ra.substr(ca)),aa},splitWords=ea=>ea.split(/(\s+)/),splitChars=ea=>ea.split(""),stringToElement=(ea,na,ra,oa,aa)=>ea.map((sa,la)=>{const ca=/\S/.test(sa);return sa?`<${na} ${ca&&ra?`class="${ra} ${la===0?"first":""}"`:""}${ca&&oa?` style="${oa}"`:""}>${sa}</${na}>`:null}).filter(sa=>sa!==null),splitString=(ea,na)=>{const ra=["letter","word","line"],oa=ra.slice(ra.indexOf(ea)),aa=ea==="word",sa=ea==="letter",la=[];if(oa.includes("line")){const ca=splitLines(na);let ua=[];oa.includes("word")?ca.forEach(da=>{const pa=splitWords(da);let ha=[];oa.includes("letter")?pa.forEach(ga=>{const fa=splitChars(ga),ma=stringToElement(fa,"span",sa?"animator-letter":"",sa?"display:inline-block":"").join("");ha.push(ma)}):ha=pa,ua.push(stringToElement(ha,"span",aa?"animator-word":"",aa?"display:inline-block":"").join(""))}):ua=ca,la.push(stringToElement(ua,"div","animator-line","white-space: nowrap; display: inline-block;").join(""))}return la.join("")},parseTextShadowString=ea=>{const na=ea.match(/(-?\d+px)\s+(-?\d+px)\s+(\d+px)/);if(!na)return{horizontal:0,vertical:0};const[,ra,oa,aa]=na.map(ca=>parseFloat(ca)),sa=Math.abs(ra)+aa,la=Math.abs(oa)+aa;return{horizontal:sa,vertical:la}},textDefaultParams={segmentBy:"letter",staggerDirection:"left",overlap:.05,segmentAnimType:"moveAndTransform",...baseDefaultParams,...moveAndTransformDefaultParams,...revealDefaultParams},textAnimator=ea=>(na,ra)=>{const{segmentBy:oa,staggerDirection:aa,delay:sa=0,duration:la=1e3,overlap:ca=.05,segmentAnimType:ua,...da}={...textDefaultParams,...ra};oa==="letter"&&(na.style.fontKerning="none");let pa=findAllTextNodes(na).filter(wa=>wa.textContent!==" ");const ha=firstFirstCommonAncestorMultiple(pa),ga=wrapChildren(ha),fa=ga.cloneNode(!0);ha.appendChild(fa),ga.style.display="none";const ma=window.getComputedStyle(ha).textTransform;pa=findAllTextNodes(fa).filter(wa=>wa.textContent!==" ");const va=document.createElement("span");pa.forEach(wa=>{va.innerHTML=splitString(oa,wa),wa.replaceWith(...va.childNodes)}),va.remove();const xa=[],ya=[],Aa=[...fa.querySelectorAll(`.animator-${oa}`)];let Ca=aa==="left"?Aa:Aa.reverse();aa==="shuffle"&&(Ca=shuffleArray(Ca));const Sa=la/((Ca.length-1)*(1-ca)+1);return Ca.forEach((wa,ba)=>{const{parts:Ea,reset:$a}=getAnimeParams(ua,wa,ea,{...da,delay:ba*(1-ca)*Sa+sa,duration:Sa});Array.isArray(Ea)?xa.push(...Ea):xa.push(Ea),ya.push($a)}),fa.querySelectorAll(".animator-mask-container").forEach(wa=>{wa.style.display="inline-flex";const ba=window.getComputedStyle(ha).textShadow;if(ba!=="none"&&ba!==""){const{horizontal:Ea,vertical:$a}=parseTextShadowString(ba);wa.style.padding=`${$a}px ${Ea}px`,wa.style.margin=`${-$a}px ${-Ea}px`}}),ma==="capitalize"&&oa==="letter"&&(fa.style.textTransform="initial",fa.querySelectorAll(".animator-letter.first").forEach(wa=>{wa.style.textTransform="capitalize"})),{parts:xa,reset:()=>{ya.forEach(wa=>wa()),unwrapChildren(ga),fa.remove()}}},inAnimator$8=textAnimator("in"),outAnimator$8=textAnimator("out"),fadeAnimator=ea=>(na,ra={})=>{const{parts:{params:oa,offset:aa},reset:sa}=baseAnimator(na,ra),la={},ca=ea==="in";return la.opacity=ca?[0,1]:0,{parts:{offset:aa,params:{...oa,...la}},reset:sa}},inAnimator$7=fadeAnimator("in"),outAnimator$7=fadeAnimator("out"),withUnit=ea=>typeof ea=="number"?`${ea}px`:`${ea.value}${ea.unit}`,generateInsetWidth=(ea,na)=>{const ra=typeof ea=="number"?ea:ea.value,oa=typeof ea=="number"?"px":ea.unit;return{from:withUnit({value:na==="in"?ra:0,unit:oa}),to:withUnit({value:na==="in"?0:ra,unit:oa})}},generateClipInset=(ea,na)=>{const ra=Object.keys(ea),oa={};ra.forEach(ua=>{const da=generateInsetWidth(ea[ua],na);oa[ua]=da});const{top:aa,right:sa,bottom:la,left:ca}=oa;return{from:`inset(${aa?.from||0} ${sa?.from||0} ${la?.from||0} ${ca?.from||0})`,to:`inset(${aa?.to||0} ${sa?.to||0} ${la?.to||0} ${ca?.to||0})`}},presetInsetDirectionValues={top:{bottom:{value:100,unit:"%"},left:{value:0,unit:"%"}},bottom:{top:{value:100,unit:"%"},left:{value:0,unit:"%"}},left:{top:{value:0,unit:"%"},right:{value:100,unit:"%"}},right:{top:{value:0,unit:"%"},left:{value:100,unit:"%"}}},clipDefaultParams$4={...baseDefaultParams},clipInsetAnimator=ea=>(na,ra)=>{const{direction:oa,directionsValue:aa={top:0,right:0,bottom:0,left:0}}={...clipDefaultParams$4,...ra},sa=oa?presetInsetDirectionValues[oa]:aa,{parts:{params:la,offset:ca},reset:ua}=baseAnimator(na,ra),da={},{from:pa,to:ha}=generateClipInset(sa,ea);return na.style.clipPath=pa,da.clipPath=[pa,ha],{parts:{offset:ca,params:{...la,...da}},reset:()=>{na.style.removeProperty("clip-path"),ua()}}},inAnimator$6=clipInsetAnimator("in"),outAnimator$6=clipInsetAnimator("out"),originsMap$1={tl:"left top",tr:"right top",tc:"center top",ml:"left center",mc:"center center",mr:"right center",bl:"left bottom",br:"right bottom",bc:"center bottom"},generateCircleRadius=(ea,na)=>{switch(ea){case"mc":default:return Math.sqrt(na.width**2+na.height**2)*.5;case"tl":case"tr":case"bl":case"br":return Math.sqrt(na.width**2+na.height**2);case"tc":case"bc":return Math.sqrt((na.width/2)**2+na.height**2);case"ml":case"mr":return Math.sqrt(na.width**2+(na.height/2)**2)}},generateClipCircle=(ea,na,ra,oa)=>{let aa=typeof ea=="number"?ea:ea.value;const sa=typeof ea=="number"?"px":ea.unit,[la,ca]=originsMap$1[na].split(" ");sa==="%"&&(aa=generateCircleRadius(na,ra)*aa/100);const ua=withUnit({value:oa==="in"?0:aa,unit:"px"}),da=withUnit({value:oa==="in"?aa:0,unit:"px"});return{from:`circle(${ua} at ${la} ${ca})`,to:`circle(${da} at ${la} ${ca})`}},clipDefaultParams$3={...baseDefaultParams},clipCircleAnimator=ea=>(na,ra)=>{const{circleOrigin:oa="mc",radius:aa={value:100,unit:"%"}}={...clipDefaultParams$3,...ra},{parts:{params:sa,offset:la},reset:ca}=baseAnimator(na,ra),ua={},da=na.clientWidth,pa=na.clientHeight,{from:ha,to:ga}=generateClipCircle(aa,oa,{width:da,height:pa},ea);return na.style.clipPath=ha,ua.clipPath=[ha,ga],{parts:{offset:la,params:{...sa,...ua}},reset:()=>{na.style.removeProperty("clip-path"),ca()}}},inAnimator$5=clipCircleAnimator("in"),outAnimator$5=clipCircleAnimator("out"),generateClipPolygon=(ea,na)=>{const ra=ea.map(sa=>{const{x:la,y:ca}=sa.from,{x:ua,y:da}=sa.to;return{from:`${withUnit(la)} ${withUnit(ca)}`,to:`${withUnit(ua)} ${withUnit(da)}`}}),oa=ra.map(sa=>sa.from).join(","),aa=ra.map(sa=>sa.to).join(",");return{from:`polygon(${na==="in"?oa:aa})`,to:`polygon(${na==="in"?aa:oa})`}},clipDefaultParams$2={...baseDefaultParams,direction:"tl",use45deg:!0},presetPoints={tl:[{from:{x:0,y:0},to:{x:0,y:0}},{from:{x:0,y:0},to:{x:{value:200,unit:"%"},y:0}},{from:{x:0,y:0},to:{x:0,y:{value:200,unit:"%"}}}],tr:[{from:{x:{value:100,unit:"%"},y:0},to:{x:{value:100,unit:"%"},y:0}},{from:{x:{value:100,unit:"%"},y:0},to:{x:{value:-200,unit:"%"},y:0}},{from:{x:{value:100,unit:"%"},y:0},to:{x:{value:100,unit:"%"},y:{value:200,unit:"%"}}}],br:[{from:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}},to:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}}},{from:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}},to:{x:{value:-200,unit:"%"},y:{value:100,unit:"%"}}},{from:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}},to:{x:{value:100,unit:"%"},y:{value:-200,unit:"%"}}}],bl:[{from:{x:0,y:{value:100,unit:"%"}},to:{x:0,y:{value:100,unit:"%"}}},{from:{x:0,y:{value:100,unit:"%"}},to:{x:{value:200,unit:"%"},y:{value:100,unit:"%"}}},{from:{x:0,y:{value:100,unit:"%"}},to:{x:0,y:{value:-200,unit:"%"}}}]},preset45DPoints=(ea,na)=>({tl:[{from:{x:0,y:0},to:{x:0,y:0}},{from:{x:0,y:0},to:{x:{value:ea+na,unit:"px"},y:0}},{from:{x:0,y:0},to:{x:0,y:{value:ea+na,unit:"px"}}}],tr:[{from:{x:{value:100,unit:"%"},y:0},to:{x:{value:100,unit:"%"},y:0}},{from:{x:{value:ea,unit:"px"},y:0},to:{x:{value:-na,unit:"px"},y:0}},{from:{x:{value:100,unit:"%"},y:0},to:{x:{value:100,unit:"%"},y:{value:ea+na,unit:"px"}}}],br:[{from:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}},to:{x:{value:100,unit:"%"},y:{value:100,unit:"%"}}},{from:{x:{value:ea,unit:"%"},y:{value:100,unit:"%"}},to:{x:{value:-na,unit:"px"},y:{value:100,unit:"%"}}},{from:{x:{value:100,unit:"%"},y:{value:na,unit:"%"}},to:{x:{value:100,unit:"%"},y:{value:-ea,unit:"px"}}}],bl:[{from:{x:0,y:{value:100,unit:"%"}},to:{x:0,y:{value:100,unit:"%"}}},{from:{x:0,y:{value:100,unit:"%"}},to:{x:{value:na+ea,unit:"px"},y:{value:100,unit:"%"}}},{from:{x:0,y:{value:na,unit:"%"}},to:{x:0,y:{value:-ea,unit:"px"}}}]}),clipDiagonalAnimator=ea=>(na,ra)=>{const{direction:oa,use45deg:aa}={...clipDefaultParams$2,...ra},{parts:{params:sa,offset:la},reset:ca}=baseAnimator(na,ra),ua={},{from:da,to:pa}=generateClipPolygon(aa?preset45DPoints(na.clientWidth,na.clientHeight)[oa]:presetPoints[oa],ea);return na.style.clipPath=da,ua.clipPath=[da,pa],{parts:{offset:la,params:{...sa,...ua}},reset:()=>{na.style.removeProperty("clip-path"),ca()}}},inAnimator$4=clipDiagonalAnimator("in"),outAnimator$4=clipDiagonalAnimator("out"),clipDefaultParams$1={...baseDefaultParams},clipPolygonAnimator=ea=>(na,ra)=>{const{points:oa=[]}={...clipDefaultParams$1,...ra},{parts:{params:aa,offset:sa},reset:la}=baseAnimator(na,ra),ca={},{from:ua,to:da}=generateClipPolygon(oa,ea);return na.style.clipPath=ua,ca.clipPath=[ua,da],{parts:{offset:sa,params:{...aa,...ca}},reset:()=>{na.style.removeProperty("clip-path"),la()}}},inAnimator$3=clipPolygonAnimator("in"),outAnimator$3=clipPolygonAnimator("out"),clipDefaultParams={type:"inset"},clipAnimator=ea=>(na,ra)=>{const{type:oa,...aa}={...clipDefaultParams,...ra};let sa;switch(oa){case"circle":sa=clipCircleAnimator(ea)(na,aa);break;case"inset":case"rect":default:const{direction:da="left"}=aa;["left","right","top","bottom"].includes(da)?sa=clipInsetAnimator(ea)(na,aa):sa=clipDiagonalAnimator(ea)(na,aa);break;case"diagonal":sa=clipDiagonalAnimator(ea)(na,aa);break;case"polygon":sa=clipPolygonAnimator(ea)(na,aa);break}const{reset:la,parts:{params:ca,offset:ua}}=sa;return{parts:{offset:ua,params:ca},reset:la}},inAnimator$2=clipAnimator("in"),outAnimator$2=clipAnimator("out"),clipAndTransformDefaultParams={...baseDefaultParams,clipParams:clipDefaultParams,moveAndTransformParams:moveAndTransformDefaultParams},clipAndTransform=ea=>(na,ra)=>{const{duration:oa,delay:aa,easing:sa,clipParams:la,...ca}={...clipAndTransformDefaultParams,...ra},ua=wrapElement(na,document.createElement("div")),da=getComputedCSSValue(na,"width"),pa=getComputedCSSValue(na,"height");da!==null&&da!=="auto"&&(na.style.width="100%",ua.style.width=da),pa!==null&&pa!=="auto"&&(na.style.height="100%",ua.style.height=pa),ua.style.overflow="hidden";const{reset:ha,parts:ga}=clipAnimator(ea)(ua,{duration:oa,delay:aa,easing:sa,...la}),{reset:fa,parts:ma}=moveAndTransformAnimator(ea)(na,{duration:oa,delay:aa,easing:sa,...ca});return{parts:[ga,ma],reset:()=>{fa(),ha(),unwrapElement(ua)}}},inAnimator$1=clipAndTransform("in"),outAnimator$1=clipAndTransform("out"),limitFloatRange=(ea,na=1)=>Math.round(ea*10**na)/10**na,fitToBox=(ea,na,ra,oa,aa,sa=0)=>{const la=na/oa,ca=ra/aa,ua=Math.max(la,ca);return sa!==void 0?{width:limitFloatRange(oa*ua,sa),height:limitFloatRange(aa*ua,sa)}:{width:oa*ua,height:aa*ua}};function calcFocalPointMediaPosition(ea,na,ra,oa,aa,sa,la=!1){(la||ea<aa||na<sa)&&({width:ea,height:na}=fitToBox("cover",aa,sa,ea,na));const ca={x:ea*ra-aa/2,y:na*oa-sa/2};return ca.x=Math.min(ea-aa,Math.max(0,ca.x)),ca.y=Math.min(na-sa,Math.max(0,ca.y)),{position:ca,mediaSize:{width:ea,height:na}}}const kenBurnsDefaultParams={...baseDefaultParams,fade:!1,scale:1,duration:5e3},kenBurnsAnimator=ea=>(na,ra)=>{const{selector:oa="img",focalPoint:aa={x:.5,y:.5},set:sa,scale:la,...ca}={...kenBurnsDefaultParams,...ra},{offsetWidth:ua,offsetHeight:da}=na,pa=na.querySelector(oa),ha={},ga={width:pa.clientWidth,height:pa.clientHeight};if(!ha?.focalPoint){const{left:wa,top:ba}=getComputedStyle(pa);ha.focalPoint={x:(-parseFloat(wa==="auto"?"0":wa)+ua/2)/ga.width,y:(-parseFloat(ba==="auto"?"0":ba)+da/2)/ga.height}}const{position:fa,mediaSize:ma}=calcFocalPointMediaPosition(ga.width,ga.height,ha.focalPoint.x,ha.focalPoint.y,ua,da),{position:va,mediaSize:xa}=calcFocalPointMediaPosition(ga.width*la,ga.height*la,aa.x,aa.y,ua,da),ya=pa.style.transformOrigin,Aa=pa.style.transform;Object.assign(pa.style,{transformOrigin:"top left"});const{parts:Ca,reset:Sa}=moveAndTransformAnimator(ea)(pa,{...ca,direction:"custom",x:fa.x-va.x,y:fa.y-va.y,scale:xa.width/ma.width});return na.style.overflow="hidden",{parts:Ca,reset:()=>{Sa(),pa.style.transformOrigin=ya,pa.style.transform=Aa,anime.remove(pa)}}},inAnimator=kenBurnsAnimator("in"),outAnimator=kenBurnsAnimator("out"),list$3={in:{move:inAnimator$d,moveAndTransform:inAnimator$c,mask:inAnimator$b,maskAndTransform:inAnimator$a,reveal:inAnimator$9,text:inAnimator$8,revealText:inAnimator$8,fade:inAnimator$7,clipInset:inAnimator$6,clipCircle:inAnimator$5,clip:inAnimator$2,clipAndTransform:inAnimator$1,clipPolygon:inAnimator$3,clipDiagonal:inAnimator$4,kenBurns:inAnimator},out:{move:outAnimator$d,moveAndTransform:outAnimator$c,mask:outAnimator$b,maskAndTransform:outAnimator$a,reveal:outAnimator$9,text:outAnimator$8,revealText:outAnimator$8,fade:outAnimator$7,clipInset:outAnimator$6,clipCircle:outAnimator$5,clip:outAnimator$2,clipAndTransform:outAnimator$1,clipPolygon:outAnimator$3,clipDiagonal:outAnimator$4,kenBurns:outAnimator}},animate=(ea,na,ra,oa,aa,sa,la=0)=>{const{parts:ca,reset:ua}=getAnimeParams(ea,na,ra,oa);if(aa||(aa=anime.timeline(sa)),Array.isArray(ca))ca.forEach(da=>{const{offset:pa=0,params:ha}=da;aa.add(ha,typeof pa=="string"?pa:pa+la)});else{const{offset:da=0,params:pa}=ca;aa.add(pa,typeof da=="string"?da:da+la)}return{timeline:aa,reset:ua,parts:ca,phase:ra}},animator={animate,getAnimeParams,list:list$3},Animator=ea=>{const{className:na,children:ra,id:oa,innerSelector:aa}=ea,sa=reactExports.useRef(null),la=reactExports.useRef(null),ca=useSelector(getProvisionalAnimations),ua=reactExports.useMemo(()=>ca.find(ya=>ya.target===oa),[oa,ca]),da=reactExports.useRef(null),pa=useSelector(getSelectedElements,shallowEqual$2),ha=useSyncHTMLRefToContext(`${oa}_animation`),ga=useSyncHTMLRefToContext(`${oa}_loop_animation`),fa=useDispatch(),ma=()=>{da.current&&(da.current(),da.current=null)};reactExports.useEffect(()=>{ma()},[pa,fa]),reactExports.useEffect(()=>{if(ma(),ua&&sa.current&&la.current){const{data:{type:ya,phase:Aa,params:Ca}}=ua,Sa=Aa==="loop",wa=Sa?"out":Aa,ba=Sa?la.current:sa.current;let Ea={autoplay:!0};Sa&&(Ea={loop:!0,direction:Ca.timelineOptions?.direction||"alternate",autoplay:!0});const $a=animator.animate(ya,ba,wa,Ca,void 0,Ea);da.current=$a.reset}return ma},[oa,ua]);const va=reactExports.useCallback(ya=>{let Aa=ya;Aa&&aa&&(Aa=Aa.querySelector(aa)||Aa),Aa&&ha(Aa),sa.current=Aa},[ha,aa]),xa=reactExports.useCallback(ya=>{const Aa=ya;Aa&&ga(Aa),la.current=Aa},[ga]);return jsxRuntimeExports.jsx("div",{className:`${na} ms-element-animator-wrapper`,ref:va,children:jsxRuntimeExports.jsx("div",{className:"depicter-loop-animation-wrapper",ref:xa,children:ra})})},Animator$1=dt$1(Animator).withConfig({displayName:"Animator",componentId:"sc-5qflbm-0"})(["width:100%;height:100%;> div{width:100%;height:100%;}"]),findFirstCommonAncestor=(ea,na)=>{const ra=new Range;return ra.setStartBefore(ea),ra.setEndAfter(na),ra.collapsed&&(ra.setStartBefore(na),ra.setEndAfter(ea)),ra.commonAncestorContainer},getRelativeOffset=(ea,na)=>{if(ea===na)return{left:0,top:0};const ra={left:ea.offsetLeft,top:ea.offsetTop};if(ea.offsetParent&&ea.offsetParent!==na&&ea.offsetParent!==na.offsetParent){const{left:oa,top:aa}=getRelativeOffset(ea.offsetParent,na);ra.left+=oa,ra.top+=aa}else ea.offsetParent===na.offsetParent&&(ra.left+=na.offsetLeft-ea.offsetLeft,ra.top+=na.offsetTop-ea.offsetTop);return ra},getElementRelativeBoundaries=(ea,na)=>{const ra=findFirstCommonAncestor(ea,na),{top:oa,left:aa}=getRelativeOffset(ea,ra),{top:sa,left:la}=getRelativeOffset(na,ra),ca={top:oa-sa,left:aa-la};return{...ca,x:ca.left,y:ca.top,width:ea.offsetWidth,height:ea.offsetHeight,right:ca.left+ea.offsetWidth,bottom:ca.top+ea.offsetHeight}},useUpdateElementComputedValues=(ea,na)=>{const ra=useDispatch(),oa=useSelector(ha=>getElementData(ea)(ha).position,equal),aa=useSelector(getActiveBreakpoint),sa=useSelector(getTransformToolState),{origin:la="tl",positionType:ca}=getResponsiveValue(oa,aa)||{},ua=useSelector(getElementComputedValues(ea)),da=reactExports.useRef(null),pa=()=>{const ha=da.current,ga=document.getElementById(na);if(!ha||sa==="start")return;const fa=getElementRelativeBoundaries(ha,ga),ma=getRelativeOffset(ha,ha.offsetParent),va=window.getComputedStyle(ha),xa={x:ma.left,y:ma.top};if(ca!=="static"){const Ca={top:la.charAt(0)==="m"?Math.round(ha.clientHeight/2):0,left:la.charAt(1)==="c"?Math.round(ha.clientWidth/2):0};fa.left-=Ca.left,fa.top-=Ca.top,fa.right-=Ca.left,fa.bottom-=Ca.top,xa.x-=Ca.left,xa.y-=Ca.top}fa.x=fa.left,fa.y=fa.top;const ya={width:parseFloat(va.width.replace(/px/g,"")),height:parseFloat(va.height.replace(/px/g,""))},Aa={position:xa,boundaries:fa,size:ya};equal(Aa,ua)||ra(updateElementComputedValues({id:ea,values:Aa}))};return reactExports.useLayoutEffect(()=>{pa()}),ha=>{da.current=ha}},defaultColors$1N={hover:{outlineColor:"#00D4E4",lockedOutlineColor:"#aaaaaa"},border:{locked:"#aaaaaa",hidden:"#E49154",hover:"#00D4E4",innerHover:"rgba(0, 212, 228, 0.46)",selected:"#00D4E4"},lockBadge:{background:"#aaaaaa",color:"white"},hiddenBadge:{background:"#E49154",color:"white"},noSource:{background:"rgba(215, 215, 215, 0.85)",color:"rgba(7, 7, 7, 1)"},noSourceBadge:{background:"rgba(255, 255, 255, 1)",color:"#00D4E4"}},colors$1N={dark:defaultColors$1N},defaultSizes$f={hover:{outlineWidth:"1px"},lockBadge:{height:"16px",fontSize:"10px",fontWeight:"600"},hiddenBadge:{height:"16px",fontSize:"10px",fontWeight:"600"},noSourceBadge:{padding:"0 5px",height:"17px",width:"110px",fontSize:"12px",fontWeight:"600",border:"6px"}},sizes$1N={default:defaultSizes$f},scheme$1j=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1N,sizes:sizes$1N},Symbol.toStringTag,{value:"Module"})),SvgHiddenIcon=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:10.607,viewBox:"0 0 11 10.607",...ea},reactExports.createElement("g",{id:"Group_651","data-name":"Group 651",transform:"translate(-876 -531.293)"},reactExports.createElement("path",{id:"Exclusion_7","data-name":"Exclusion 7",d:"M6615.5-600a5.68,5.68,0,0,1-5.5-3.5,5.679,5.679,0,0,1,5.5-3.5,5.685,5.685,0,0,1,5.5,3.5A5.687,5.687,0,0,1,6615.5-600Zm0-6a2.5,2.5,0,0,0-2.5,2.5,2.5,2.5,0,0,0,2.5,2.5,2.5,2.5,0,0,0,2.5-2.5A2.5,2.5,0,0,0,6615.5-606Z",transform:"translate(-5734 1140)"}),reactExports.createElement("rect",{id:"Rectangle_2866","data-name":"Rectangle 2866",width:2,height:13,rx:1,transform:"translate(876.293 532.707) rotate(-45)"}))),HiddenBadge=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(SvgHiddenIcon,{}),na("hidden")]})},theme$3i=withTheme(scheme$1j),HiddenBadge$1=dt$1(HiddenBadge).withConfig({displayName:"HiddenBadge",componentId:"sc-1sob4as-0"})(["display:flex;align-items:center;padding:0 5px;border-radius:0 0 3px 0;text-transform:uppercase;svg{margin-right:5px;}"," ",""],theme$3i.colors(ea=>lt$1(["color:",";background:",";svg{fill:",";}"],ea.hiddenBadge.color,ea.hiddenBadge.background,ea.hiddenBadge.color)),theme$3i.sizes(ea=>lt$1(["font-size:",";font-weight:",";height:",";"],ea.hiddenBadge.fontSize,ea.hiddenBadge.fontWeight,ea.hiddenBadge.height))),SvgSmallLock=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:9,viewBox:"0 0 9 9",...ea},reactExports.createElement("g",{id:"layer_locked","data-name":"layer locked",transform:"translate(-804 -524)"},reactExports.createElement("rect",{id:"Rectangle_494","data-name":"Rectangle 494",width:9,height:5,rx:1,transform:"translate(804 528)"}),reactExports.createElement("path",{id:"Exclusion_2","data-name":"Exclusion 2",d:"M2.4,5H1V4A3,3,0,1,1,7,4V5H5.6V3.743a1.6,1.6,0,1,0-3.2,0V5Z",transform:"translate(804.5 523)"}))),LockedBadge=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(SvgSmallLock,{}),na("locked")]})},theme$3h=withTheme(scheme$1j),LockedBadge$1=dt$1(LockedBadge).withConfig({displayName:"LockedBadge",componentId:"sc-rb47uk-0"})(["display:flex;align-items:center;padding:0 5px;border-radius:0 0 3px 0;text-transform:uppercase;svg{margin-right:5px;}"," ",""],theme$3h.colors(ea=>lt$1(["color:",";background:",";svg{fill:",";}"],ea.lockBadge.color,ea.lockBadge.background,ea.lockBadge.color)),theme$3h.sizes(ea=>lt$1(["font-size:",";font-weight:",";height:",";"],ea.lockBadge.fontSize,ea.lockBadge.fontWeight,ea.lockBadge.height))),NoSourceBadge=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,children:na("Source not found")})},theme$3g=withTheme(scheme$1j),NoSourceBadge$1=dt$1(NoSourceBadge).withConfig({displayName:"NoSourceBadge",componentId:"sc-4ipdcv-0"})(["align-self:flex-start;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;"," ",""],theme$3g.colors(ea=>lt$1(["background:",";color:",";"],ea.noSourceBadge.background,ea.noSourceBadge.color)),theme$3g.sizes(ea=>lt$1(["height:",";width:",";padding:",";font-size:",";font-weight:",";border-radius:",";"],ea.noSourceBadge.height,ea.noSourceBadge.width,ea.noSourceBadge.padding,ea.noSourceBadge.fontSize,ea.noSourceBadge.fontWeight,ea.noSourceBadge.border))),ElementOverlay=ea=>{const{children:na,locked:ra,className:oa,emptyDataSource:aa,hidden:sa,selected:la}=ea;return jsxRuntimeExports.jsxs("div",{className:classnames(oa,{"ms-locked-element":ra,"ms-hidden-element":sa,"ms-no-source-element":aa}),children:[na,aa&&jsxRuntimeExports.jsx(NoSourceBadge$1,{}),la&&ra&&jsxRuntimeExports.jsx(LockedBadge$1,{}),la&&sa&&jsxRuntimeExports.jsx(HiddenBadge$1,{})]})},theme$3f=withTheme(scheme$1j),ElementOverlay$1=dt$1(ElementOverlay).withConfig({displayName:"ElementOverlay",componentId:"sc-165tkn-0"})(["position:absolute;display:flex;flex-direction:row;align-content:flex-start;width:100%;height:100%;z-index:100;color:transparent;pointer-events:none;transition:color 200ms;"," ","{margin-right:1px;}"," + ","{border-radius:0 0 3px 3px;}"],theme$3f.colors(ea=>lt$1([".dp-element:not(.dp-element-selected).dp-element-hovered > &,.dp-element:not(.dp-element-selected).dp-drop-active > & .dp{box-shadow:0 0 0 calc(2px / var(--depicter-workspace-zoom));color:",";&.ms-locked-element{color:",";}&.ms-hidden-element{color:",";}}.dp-element .dp-element-selected > &{box-shadow:0 0 0 calc(2px / var(--depicter-workspace-zoom));color:",";}.dp-element .dp-element:not(.dp-element-selected).dp-element-hovered > &{box-shadow:0 0 0 calc(2px / var(--depicter-workspace-zoom));color:",";}&.ms-no-source-element{background:",";}.dp-element-selected &.ms-locked-element{box-shadow:0 0 0 calc(2px / var(--depicter-workspace-zoom));color:",";}"],ea.border.hover,ea.border.locked,ea.border.hidden,ea.border.selected,ea.border.innerHover,ea.noSource.background,ea.border.locked)),LockedBadge$1,LockedBadge$1,HiddenBadge$1),ElementInnerContainer=dt$1.div.withConfig({displayName:"BaseElement__ElementInnerContainer",componentId:"sc-1ooe10e-0"})(["width:100%;height:100%;position:relative;"]),BaseElement=React.memo(React.forwardRef((ea,na)=>{const{contentStyle:ra,className:oa,overlayContent:aa,contentClassName:sa,id:la,styles:ca,style:ua,onElementClick:da,onElementDoubleClick:pa,children:ha,locked:ga=!1,depth:fa,size:ma,onMouseDown:va,onMouseEnter:xa,onMouseUp:ya,onMouseLeave:Aa,section:Ca,options:Sa,position:wa,parent:ba,emptyDataSource:Ea,transformToolConfig:$a=defaultTransformToolConfig,animatorSelector:Ma,onSelectStatusChange:Ia,dndType:Oa=dragTypes.GROUPABLE_ELEMENT,enableDnd:Da=!0}=ea,Ta=useSelector(getActiveSection),_a=useUpdateElementComputedValues(la,Ta),{isSelected:La,selectHandler:Na,selectedClassName:za,selectableClassName:Fa}=useSelectElement(la,ga,ba,!1,Ia),Ha=wa.default.positionType==="static",Va=reactExports.useMemo(()=>{const xl=Ha?[...$a?.offAbles||[],"draggable"]:$a?.offAbles;return{...$a,staticPosition:Ha,offAbles:xl}},[Ha,$a]),{passEvent:Ua,setTransformToolRef:Qa,transformToolClassName:Wa}=useSetupTransformTool(la,Va,ba,ma);useFixElementSection(la,isForeground(Ca),Ca,Ta),useUpdateAutoOrigin(la,wa);const{transform:Za,styles:Xa}=usePosition(wa,fa,ba),tl=useSelector(getActiveOptionsPanelTab(!0))==="hover"&&La,{transform:il,...Ja}=useHover(ca,tl,Za),nl=useSelector(getShowHiddenItems),Ya=useTransform(ca?.transform,Za),rl=useIsHidden(la,Ta),sl=useIsSelected(la),[dl,pl]=useHoverElement(la,sl),ml={onMouseEnter:xa,onMouseLeave:Aa,onMouseUp:ya},Rl={...ra,...useIsHiddenStyle(rl,!nl),...Ja},Tl=reactExports.useCallback(xl=>{da?.(la,xl)},[la,da]),Il=reactExports.useCallback(xl=>{xl.stopPropagation(),pa?.(xl)},[pa]),{setNodeRef:Ol,listeners:Fl,isDragging:Vl}=useDraggable({id:la,source:ba,type:Oa,disabled:!Da,data:{staticPosition:Ha}}),Wl=reactExports.useCallback(xl=>{xl&&(assignRef(xl,na),_a(xl),Qa(xl),Ol(xl))},[na,_a,Qa,Ol]),vl=reactExports.useCallback(xl=>{va?.(xl),Na(xl),Ua(xl)},[va,Ua,Na]),kl={...Xa,...useSize(ma),...ua,...useMargin(ca?.margin),transform:il||Ya?.transform},zl=reactExports.useCallback(()=>{pl()},[pl]),Al=reactExports.useCallback(()=>{pl(!0)},[pl]),gl=classnames("dp-element","draggable-item",oa,za,Wa,Fa,{"dp-element-hovered":dl});return jsxRuntimeExports.jsxs("div",{ref:Wl,id:la,onClick:Tl,onMouseDown:vl,onDoubleClick:Il,onPointerEnter:zl,onPointerLeave:Al,style:kl,"data-is-dragging":Vl,className:gl,...ml,...Fl,children:[jsxRuntimeExports.jsx(ElementOverlay$1,{locked:ga,emptyDataSource:Ea,hidden:rl,selected:sl,children:aa}),jsxRuntimeExports.jsx(Animator$1,{id:la,innerSelector:Ma,children:jsxRuntimeExports.jsx(ElementInnerContainer,{className:sa,style:Rl,children:ha})}),jsxRuntimeExports.jsx("style",{children:Sa?.customStyle?.replaceAll("selector",`#${la}`)})]})})),BaseElement$1=dt$1(BaseElement).withConfig({displayName:"BaseElement",componentId:"sc-1ooe10e-1"})(["position:absolute;user-select:none;min-width:1px;min-height:1px;",""],ea=>ea?.invisible?lt$1(["visibility:hidden;pointer-events:none;"]):""),getOS=()=>{const{userAgent:ea}=window.navigator,{platform:na}=window.navigator,ra=["Macintosh","MacIntel","MacPPC","Mac68K"],oa=["Win32","Win64","Windows","WinCE"],aa=["iPhone","iPad","iPod"];let sa=null;return ra.indexOf(na)!==-1?sa="Mac OS":aa.indexOf(na)!==-1?sa="iOS":oa.indexOf(na)!==-1?sa="Windows":/Android/.test(ea)?sa="Android":!sa&&/Linux/.test(na)&&(sa="Linux"),sa},DropHintOverlay=ea=>{const{className:na,style:ra}=ea;return jsxRuntimeExports.jsx("div",{className:na,style:ra,children:jsxRuntimeExports.jsxs("p",{children:["Hold ",jsxRuntimeExports.jsx("strong",{children:getOS()==="Mac OS"?"⎇ Alt":"Alt"})," to drop in."]})})},DropHintOverlay$1=dt$1(DropHintOverlay).withConfig({displayName:"DropHintOverlay",componentId:"sc-th0isu-0"})(["transition:opacity 300ms;pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:rgba(255,255,255,0.8);padding-top:10px;padding-left:10px;p{background-color:rgba(2,2,2,0.7);display:inline-block;font-size:11px;padding:5px 10px;border-radius:5px;box-shadow:0 0 5px rgba(0,0,0,0.1);color:white;backdrop-filter:blur(3px);transform:scale(calc(1 / var(--depicter-workspace-zoom)));transform-origin:top left;}"]),AllBoxSizes$1=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"corners",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsx("clipPath",{id:"clip-path",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4291","data-name":"Rectangle 4291",d:"M3,0H5A0,0,0,0,1,5,0V5A0,0,0,0,1,5,5H0A0,0,0,0,1,0,5V3A3,3,0,0,1,3,0Z",transform:"translate(1161 2442)",fill:"#3f3f3f"})}),jsxRuntimeExports.jsx("clipPath",{id:"clip-path-2",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4296","data-name":"Rectangle 4296",d:"M0,0H5A0,0,0,0,1,5,0V2A3,3,0,0,1,2,5H0A0,0,0,0,1,0,5V0A0,0,0,0,1,0,0Z",transform:"translate(1167 2449.248)",fill:"#3f3f3f"})}),jsxRuntimeExports.jsx("clipPath",{id:"clip-path-3",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4294","data-name":"Rectangle 4294",d:"M0,0H5A0,0,0,0,1,5,0V5A0,0,0,0,1,5,5H3A3,3,0,0,1,0,2V0A0,0,0,0,1,0,0Z",transform:"translate(1161 2449.248)",fill:"#3f3f3f"})}),jsxRuntimeExports.jsx("clipPath",{id:"clip-path-4",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4299","data-name":"Rectangle 4299",d:"M0,0H2A3,3,0,0,1,5,3V5A0,0,0,0,1,5,5H0A0,0,0,0,1,0,5V0A0,0,0,0,1,0,0Z",transform:"translate(1167 2443.248)",fill:"#3f3f3f"})})]}),jsxRuntimeExports.jsxs("g",{id:"Group_1204","data-name":"Group 1204",transform:"translate(-1133 -2438)",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4289","data-name":"Rectangle 4289",transform:"translate(1133 2438)",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",rx:"2",fill:"none"})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_68","data-name":"Mask Group 68",transform:"translate(-28 -4)",clipPath:"url(#clip-path)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4290","data-name":"Rectangle 4290",transform:"translate(1161 2442)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_70","data-name":"Mask Group 70",transform:"translate(-1159 -2441.248)",clipPath:"url(#clip-path-2)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4295","data-name":"Rectangle 4295",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_69","data-name":"Mask Group 69",transform:"translate(-1161 -2441.248)",clipPath:"url(#clip-path-3)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4293","data-name":"Rectangle 4293",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_71","data-name":"Mask Group 71",transform:"translate(-1159 -2443.248)",clipPath:"url(#clip-path-4)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4298","data-name":"Rectangle 4298",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),topLeft=()=>jsxRuntimeExports.jsxs("svg",{id:"top_left","data-name":"top left",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip-path",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4291","data-name":"Rectangle 4291",d:"M3,0H5A0,0,0,0,1,5,0V5A0,0,0,0,1,5,5H0A0,0,0,0,1,0,5V3A3,3,0,0,1,3,0Z",transform:"translate(1161 2442)",fill:"#3f3f3f"})})}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_4289","data-name":"Rectangle 4289",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",rx:"2",fill:"none"})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_68","data-name":"Mask Group 68",transform:"translate(-1161 -2442)",clipPath:"url(#clip-path)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4290","data-name":"Rectangle 4290",transform:"translate(1161 2442)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),topRight=()=>jsxRuntimeExports.jsxs("svg",{id:"top_right","data-name":"top right",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip-path",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4299","data-name":"Rectangle 4299",d:"M0,0H2A3,3,0,0,1,5,3V5A0,0,0,0,1,5,5H0A0,0,0,0,1,0,5V0A0,0,0,0,1,0,0Z",transform:"translate(1167 2443.248)",fill:"#3f3f3f"})})}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_4300","data-name":"Rectangle 4300",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",rx:"2",fill:"none"})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_71","data-name":"Mask Group 71",transform:"translate(-1159 -2443.248)",clipPath:"url(#clip-path)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4298","data-name":"Rectangle 4298",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),bottomLeft=()=>jsxRuntimeExports.jsxs("svg",{id:"bottom_left","data-name":"bottom left",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip-path",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4294","data-name":"Rectangle 4294",d:"M0,0H5A0,0,0,0,1,5,0V5A0,0,0,0,1,5,5H3A3,3,0,0,1,0,2V0A0,0,0,0,1,0,0Z",transform:"translate(1161 2449.248)",fill:"#3f3f3f"})})}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_4292","data-name":"Rectangle 4292",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",rx:"2",fill:"none"})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_69","data-name":"Mask Group 69",transform:"translate(-1161 -2441.248)",clipPath:"url(#clip-path)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4293","data-name":"Rectangle 4293",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),bottomRight=()=>jsxRuntimeExports.jsxs("svg",{id:"bottom_right","data-name":"bottom right",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip-path",children:jsxRuntimeExports.jsx("path",{id:"Rectangle_4296","data-name":"Rectangle 4296",d:"M0,0H5A0,0,0,0,1,5,0V2A3,3,0,0,1,2,5H0A0,0,0,0,1,0,5V0A0,0,0,0,1,0,0Z",transform:"translate(1167 2449.248)",fill:"#3f3f3f"})})}),jsxRuntimeExports.jsxs("g",{id:"Rectangle_4297","data-name":"Rectangle 4297",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",rx:"2",fill:"none"})]}),jsxRuntimeExports.jsx("g",{id:"Mask_Group_70","data-name":"Mask Group 70",transform:"translate(-1159 -2441.248)",clipPath:"url(#clip-path)",children:jsxRuntimeExports.jsxs("g",{id:"Rectangle_4295","data-name":"Rectangle 4295",transform:"translate(1161 2443.248)",fill:"none",stroke:"#fff",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"11",height:"11",rx:"3",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"9",height:"9",rx:"2",fill:"none"})]})})]}),defaultColors$1M={iconDisabled:"#707070",icon:"#FFF"},colors$1M={dark:defaultColors$1M},defaultSizing$1x={inputWidth:"102px"},sizes$1M={default:defaultSizing$1x},Scheme$j=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1M,sizes:sizes$1M},Symbol.toStringTag,{value:"Module"})),SvgLock$2=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"lock",width:8,height:10,viewBox:"0 0 8 10",...ea},reactExports.createElement("rect",{id:"Rectangle_4433","data-name":"Rectangle 4433",width:8,height:6,rx:1,transform:"translate(0 4)"}),reactExports.createElement("path",{id:"Exclusion_2","data-name":"Exclusion 2",d:"M1.2,4H0V3A3,3,0,1,1,6,3V4H4.8V2.943a1.8,1.8,0,1,0-3.6,0V4Z",transform:"translate(1)"})),SvgUnlock$2=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"unlock",width:11,height:10,viewBox:"0 0 11 10",...ea},reactExports.createElement("rect",{id:"Rectangle_4543","data-name":"Rectangle 4543",width:8,height:6,rx:1,transform:"translate(3 4)"}),reactExports.createElement("path",{id:"Exclusion_2","data-name":"Exclusion 2",d:"M1.2,4H0V3A3,3,0,1,1,6,3V4H4.8V2.943a1.8,1.8,0,1,0-3.6,0V4Z"})),LinkUp$1=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewBox="0 0 20 10">
  <g id="link_up" data-name="link up" transform="translate(-313 -1953.5)">
    <line id="Line_502" data-name="Line 502" x2="5" transform="translate(313 1954.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_503" data-name="Line 503" x2="5" transform="translate(328 1954.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_504" data-name="Line 504" y2="10" transform="translate(323 1953.5)" fill="none" stroke="#696969" stroke-width="1"/>
  </g>
</svg>
`,LinkDown$1=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10.5" viewBox="0 0 20 10.5">
  <g id="link_down" data-name="link down" transform="translate(-313 -1984.5)">
    <line id="Line_505" data-name="Line 505" y2="10" transform="translate(323 1984.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_506" data-name="Line 506" x2="5" transform="translate(313 1994.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_507" data-name="Line 507" x2="5" transform="translate(328 1994.5)" fill="none" stroke="#696969" stroke-width="1"/>
  </g>
</svg>
`,LinkButton$2=ea=>{const{className:na,indeterminate:ra,link:oa,...aa}=ea;return jsxRuntimeExports.jsx(IconButton,{className:na,icon:!oa&&!ra?jsxRuntimeExports.jsx(SvgUnlock$2,{}):jsxRuntimeExports.jsx(SvgLock$2,{}),...aa})},LinkButton$3=dt$1(LinkButton$2).withConfig({displayName:"LinkButton",componentId:"sc-aqokjf-0"})(["position:relative;> span{display:inline-block;}",""],({link:ea,indeterminate:na})=>!ea&&!na?lt$1(["&:before{content:'';position:absolute;top:-11px;left:50%;background:url('","');width:20px;height:10px;transform:translateX(-50%);}&:after{content:'';position:absolute;bottom:-11px;left:50%;background:url('","');width:20px;height:10px;transform:translateX(-50%);}"],encodeSvg(LinkUp$1),encodeSvg(LinkDown$1)):lt$1(["&:before{content:'';position:absolute;top:50%;left:3px;background-color:#696969;width:5px;height:1px;transform:translateY(-50%);}"])),NumberInput$1=dt$1(Number$2).withConfig({displayName:"BoxEdgeSizing__NumberInput",componentId:"sc-1w2mq5k-0"})([""]),NumberInputWrapper$1=dt$1.div.withConfig({displayName:"BoxEdgeSizing__NumberInputWrapper",componentId:"sc-1w2mq5k-1"})([""]),defaultUnits$1=[{value:"px",label:i18next.t("px")},{value:"%",label:i18next.t("%")}],origins$1=["topRight","topLeft","bottomRight","bottomLeft"],BoxEdgeSizing=ea=>{const{className:na,value:ra,onChange:oa}=ea,aa=isIndeterminate(ra),sa=!!ra.link,la=reactExports.useCallback(da=>{const pa=origins$1.reduce((ha,ga)=>({...ha,[ga]:da}),{link:!0});oa?.(pa)},[oa]),ca=reactExports.useCallback(()=>{const da=origins$1.reduce((pa,ha)=>({...pa,[ha]:aa?{value:0,unit:"px"}:ra.topLeft}),{link:!ra.link});oa?.(da)},[aa,ra,oa]),ua=reactExports.useCallback((da,pa)=>{const ha={...ra,[pa]:da,link:!1};oa?.(ha)},[ra,oa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[sa?jsxRuntimeExports.jsxs(NumberInputWrapper$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:AllBoxSizes$1}),jsxRuntimeExports.jsx(NumberInput$1,{value:aa?INDETERMINATE_VALUE:ra.topLeft,units:defaultUnits$1,onChange:la})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(NumberInputWrapper$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:topLeft}),jsxRuntimeExports.jsx(NumberInput$1,{value:aa?INDETERMINATE_VALUE:ra.topLeft,units:defaultUnits$1,onChange:da=>ua(da,"topLeft")})]}),jsxRuntimeExports.jsxs(NumberInputWrapper$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:topRight}),jsxRuntimeExports.jsx(NumberInput$1,{value:aa?INDETERMINATE_VALUE:ra.topRight,units:defaultUnits$1,onChange:da=>ua(da,"topRight")})]}),jsxRuntimeExports.jsxs(NumberInputWrapper$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:bottomLeft}),jsxRuntimeExports.jsx(NumberInput$1,{value:aa?INDETERMINATE_VALUE:ra.bottomLeft,units:defaultUnits$1,onChange:da=>ua(da,"bottomLeft")})]}),jsxRuntimeExports.jsxs(NumberInputWrapper$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:bottomRight}),jsxRuntimeExports.jsx(NumberInput$1,{value:aa?INDETERMINATE_VALUE:ra.bottomRight,units:defaultUnits$1,onChange:da=>ua(da,"bottomRight")})]})]}),jsxRuntimeExports.jsx(LinkButton$3,{link:sa,indeterminate:aa,onClick:ca})]})},theme$3e=withTheme(Scheme$j),BoxEdgeSizing$1=dt$1(BoxEdgeSizing).withConfig({displayName:"BoxEdgeSizing",componentId:"sc-1w2mq5k-2"})(["display:inline-grid;grid-template-columns:auto 30px auto;grid-template-rows:auto auto;align-items:center;justify-content:center;grid-row-gap:",";","{position:relative;display:inline-block;","{position:absolute;top:50%;left:9px;transform:translateY(-50%);z-index:1;}&:nth-of-type(1){grid-area:1 / 1 / 2 / 2;}&:nth-of-type(2){grid-area:1 / 3 / 2 / 4;}&:nth-of-type(3){grid-area:2 / 1 / 3 / 2;}&:nth-of-type(4){grid-area:2 / 3 / 3 / 4;}}","{input{padding-left:25px;}}","{grid-area:1 / 2 / 3 / 3;}",""],ea=>ea?.value?.link?"0":"10px",NumberInputWrapper$1,Icon$4,NumberInput$1,LinkButton$3,theme$3e.sizes(ea=>lt$1(["","{width:",";}"],NumberInput$1,ea.inputWidth))),AllBoxSizes=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",id:"edges",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4437","data-name":"Rectangle 4437",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"1",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",fill:"none"})]}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4438","data-name":"Rectangle 4438",width:"2",height:"9",transform:"translate(0 2)",fill:"#fff"}),jsxRuntimeExports.jsx("path",{id:"Path_1368","data-name":"Path 1368",d:"M0,0H9V2H0Z",transform:"translate(2 11)",fill:"#fff"}),jsxRuntimeExports.jsx("path",{id:"Path_1369","data-name":"Path 1369",d:"M0,0H9V2H0Z",transform:"translate(2)",fill:"#fff"}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4440","data-name":"Rectangle 4440",width:"2",height:"9",transform:"translate(11 2)",fill:"#fff"})]}),Left=()=>jsxRuntimeExports.jsxs("svg",{id:"left",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4551","data-name":"Rectangle 4551",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"1",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",fill:"none"})]}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4553","data-name":"Rectangle 4553",width:"2",height:"9",transform:"translate(0 2)",fill:"#fff"})]}),Right=()=>jsxRuntimeExports.jsxs("svg",{id:"right",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4549","data-name":"Rectangle 4549",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"1",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",fill:"none"})]}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4555","data-name":"Rectangle 4555",width:"2",height:"9",transform:"translate(11 2)",fill:"#fff"})]}),Bottom=()=>jsxRuntimeExports.jsxs("svg",{id:"bottom",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4550","data-name":"Rectangle 4550",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"1",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",fill:"none"})]}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4556","data-name":"Rectangle 4556",width:"9",height:"2",transform:"translate(2 11)",fill:"#fff"})]}),Top=()=>jsxRuntimeExports.jsxs("svg",{id:"top",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",children:[jsxRuntimeExports.jsxs("g",{id:"Rectangle_4552","data-name":"Rectangle 4552",fill:"none",stroke:"#707070",strokeWidth:"2",children:[jsxRuntimeExports.jsx("rect",{width:"13",height:"13",rx:"1",stroke:"none"}),jsxRuntimeExports.jsx("rect",{x:"1",y:"1",width:"11",height:"11",fill:"none"})]}),jsxRuntimeExports.jsx("rect",{id:"Rectangle_4554","data-name":"Rectangle 4554",width:"9",height:"2",transform:"translate(2)",fill:"#fff"})]}),defaultColors$1L={iconDisabled:"#707070",icon:"#FFF"},colors$1L={dark:defaultColors$1L},defaultSizing$1w={inputWidth:"102px"},sizes$1L={default:defaultSizing$1w},Scheme$i=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1L,sizes:sizes$1L},Symbol.toStringTag,{value:"Module"})),SvgLock$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"lock",width:8,height:10,viewBox:"0 0 8 10",...ea},reactExports.createElement("rect",{id:"Rectangle_4433","data-name":"Rectangle 4433",width:8,height:6,rx:1,transform:"translate(0 4)"}),reactExports.createElement("path",{id:"Exclusion_2","data-name":"Exclusion 2",d:"M1.2,4H0V3A3,3,0,1,1,6,3V4H4.8V2.943a1.8,1.8,0,1,0-3.6,0V4Z",transform:"translate(1)"})),SvgUnlock$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"unlock",width:11,height:10,viewBox:"0 0 11 10",...ea},reactExports.createElement("rect",{id:"Rectangle_4543","data-name":"Rectangle 4543",width:8,height:6,rx:1,transform:"translate(3 4)"}),reactExports.createElement("path",{id:"Exclusion_2","data-name":"Exclusion 2",d:"M1.2,4H0V3A3,3,0,1,1,6,3V4H4.8V2.943a1.8,1.8,0,1,0-3.6,0V4Z"})),LinkUp=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewBox="0 0 20 10">
  <g id="link_up" data-name="link up" transform="translate(-313 -1953.5)">
    <line id="Line_502" data-name="Line 502" x2="5" transform="translate(313 1954.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_503" data-name="Line 503" x2="5" transform="translate(328 1954.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_504" data-name="Line 504" y2="10" transform="translate(323 1953.5)" fill="none" stroke="#696969" stroke-width="1"/>
  </g>
</svg>
`,LinkDown=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="10.5" viewBox="0 0 20 10.5">
  <g id="link_down" data-name="link down" transform="translate(-313 -1984.5)">
    <line id="Line_505" data-name="Line 505" y2="10" transform="translate(323 1984.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_506" data-name="Line 506" x2="5" transform="translate(313 1994.5)" fill="none" stroke="#696969" stroke-width="1"/>
    <line id="Line_507" data-name="Line 507" x2="5" transform="translate(328 1994.5)" fill="none" stroke="#696969" stroke-width="1"/>
  </g>
</svg>
`,LinkButton=ea=>{const{className:na,indeterminate:ra,link:oa,...aa}=ea;return jsxRuntimeExports.jsx(IconButton,{className:na,icon:!oa&&!ra?jsxRuntimeExports.jsx(SvgUnlock$1,{}):jsxRuntimeExports.jsx(SvgLock$1,{}),...aa})},LinkButton$1=dt$1(LinkButton).withConfig({displayName:"LinkButton",componentId:"sc-105jaz8-0"})(["position:relative;> span{display:inline-block;}",""],({link:ea,indeterminate:na,directional:ra="both"})=>!ea&&!na&&ra==="both"?lt$1(["&:before{content:'';position:absolute;top:-11px;left:50%;background:url('","');width:20px;height:10px;transform:translateX(-50%);}&:after{content:'';position:absolute;bottom:-11px;left:50%;background:url('","');width:20px;height:10px;transform:translateX(-50%);}"],encodeSvg(LinkUp),encodeSvg(LinkDown)):lt$1(["&:before{content:'';position:absolute;top:50%;left:3px;background-color:#696969;width:5px;height:1px;transform:translateY(-50%);}"])),NumberInput=dt$1(Number$2).withConfig({displayName:"BoxSideSizing__NumberInput",componentId:"sc-1a2k6oy-0"})([""]),NumberInputWrapper=dt$1.div.withConfig({displayName:"BoxSideSizing__NumberInputWrapper",componentId:"sc-1a2k6oy-1"})([""]),defaultUnits=[{value:"px",label:i18next.t("px")},{value:"%",label:i18next.t("%")}],origins=["top","right","bottom","left"],BoxSideSizing=ea=>{const{className:na,value:ra,onChange:oa,directional:aa="both"}=ea,sa=isIndeterminate(ra),la=!!ra.link,ca=reactExports.useMemo(()=>aa==="both"?origins:aa==="vertical"?["top","bottom"]:["left","right"],[aa]),ua=reactExports.useCallback(ha=>{const ga=ca.reduce((fa,ma)=>({...fa,[ma]:ha}),{link:!0});oa?.(ga)},[ca,oa]),da=reactExports.useCallback(()=>{const ha=ca.reduce((ga,fa)=>({...ga,[fa]:sa?{value:0,unit:"px"}:ra.top||ra.left}),{link:!ra.link});oa?.(ha)},[ca,ra,oa,sa]),pa=reactExports.useCallback((ha,ga)=>{const fa={...ra,[ga]:ha,link:!1};oa?.(fa)},[ra,oa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[la?jsxRuntimeExports.jsxs(NumberInputWrapper,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:AllBoxSizes}),jsxRuntimeExports.jsx(NumberInput,{value:sa?INDETERMINATE_VALUE:ra.left??ra.top,units:defaultUnits,onChange:ua})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[(aa==="vertical"||aa==="both")&&jsxRuntimeExports.jsxs(NumberInputWrapper,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:Top}),jsxRuntimeExports.jsx(NumberInput,{value:sa?INDETERMINATE_VALUE:ra.top,units:defaultUnits,onChange:ha=>pa(ha,"top")})]}),(aa==="horizontal"||aa==="both")&&jsxRuntimeExports.jsxs(NumberInputWrapper,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:Right}),jsxRuntimeExports.jsx(NumberInput,{value:sa?INDETERMINATE_VALUE:ra.right,units:defaultUnits,onChange:ha=>pa(ha,"right")})]}),(aa==="horizontal"||aa==="both")&&jsxRuntimeExports.jsxs(NumberInputWrapper,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:Left}),jsxRuntimeExports.jsx(NumberInput,{value:sa?INDETERMINATE_VALUE:ra.left,units:defaultUnits,onChange:ha=>pa(ha,"left")})]}),(aa==="vertical"||aa==="both")&&jsxRuntimeExports.jsxs(NumberInputWrapper,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:Bottom}),jsxRuntimeExports.jsx(NumberInput,{value:sa?INDETERMINATE_VALUE:ra.bottom,units:defaultUnits,onChange:ha=>pa(ha,"bottom")})]})]}),jsxRuntimeExports.jsx(LinkButton$1,{link:la,indeterminate:sa,directional:aa,onClick:da})]})},theme$3d=withTheme(Scheme$i),BoxSideSizing$1=dt$1(BoxSideSizing).withConfig({displayName:"BoxSideSizing",componentId:"sc-1a2k6oy-2"})(["display:inline-grid;grid-template-columns:auto 30px auto;grid-template-rows:auto auto;align-items:center;justify-content:center;grid-row-gap:",";","{position:relative;display:inline-block;","{position:absolute;top:50%;left:9px;transform:translateY(-50%);z-index:1;}&:nth-of-type(1){grid-area:1 / 1 / 2 / 2;}&:nth-of-type(2){grid-area:1 / 3 / 2 / 4;}&:nth-of-type(3){grid-area:2 / 1 / 3 / 2;}&:nth-of-type(4){grid-area:2 / 3 / 3 / 4;}}","{input{padding-left:25px;}}","{grid-area:1 / 2 / 3 / 3;}",""],ea=>!ea?.value?.link&&ea.directional==="both"?"10px":"0",NumberInputWrapper,Icon$4,NumberInput,LinkButton$1,theme$3d.sizes(ea=>lt$1(["","{width:",";}"],NumberInput,ea.inputWidth))),theme$3c=withTheme(scheme$1q),PopoverEditButton=dt$1(BaseButton$1).withConfig({displayName:"PopoverEditButton",componentId:"sc-nm1gl4-0"})(["font-size:12px;font-weight:400;padding-right:0;",""],theme$3c.colors(ea=>lt$1(["color:",";:hover{color:",";}"],ea.editColor,ea.editHoverColor))),defaultColors$1K={label:"rgba(129, 129, 129, 0.87)"},colors$1K={dark:defaultColors$1K},defaultSizing$1v={borderWidth:"calc(100% + 30px)",borderSpace:"5px -15px 15px -15px",label:"10px;",padding:"0 15px",gap:"10px",bottomSpace:"10px",labelSpace:"15px"},sizes$1K={default:defaultSizing$1v},scheme$1i=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1K,sizes:sizes$1K},Symbol.toStringTag,{value:"Module"})),theme$3b=withTheme(scheme$1i),Fieldset=({...ea})=>{const na=useOpenUpgradeToPro(),ra=reactExports.useCallback(()=>{na({source:"depicter_editor",medium:"options",content:ea.id,term:ea.label})},[na,ea.id,ea.label]);return jsxRuntimeExports.jsx(BaseFieldset$2,{...ea,badgeSymbol:jsxRuntimeExports.jsx(ProBadge$1,{}),onBadgeClick:ra})},Fieldset$1=dt$1(Fieldset).withConfig({displayName:"Fieldset",componentId:"sc-14ezzwe-0"})(["display:flex;flex-wrap:wrap;","{flex-basis:100%;}","{flex:1;}","{display:flex;width:100%;min-height:20px;align-items:center;flex-wrap:wrap;&:empty{display:none;}"," :last-child{margin-bottom:0;}}"," ","{z-index:235;box-shadow:-2px 1px 25px 5px #363636;}",""],FieldsetLabel,Field$1,FieldsetRow,FieldsetRow,theme$3b.colors(ea=>lt$1(["","{color:",";}"],FieldsetLabel,ea.label)),BadgeSymbolsWrapper$1,theme$3b.sizes(ea=>lt$1(["padding:",";","{column-gap:",";margin-bottom:",";}","{width:",";margin:",";}","{font-size:",";margin-bottom:",";}"],ea.padding,FieldsetRow,ea.gap,ea.bottomSpace,FieldsetDivider,ea.borderWidth,ea.borderSpace,FieldsetLabel,ea.label,ea.labelSpace))),PopoverOpenStateContext=React.createContext({open:!1,setOpen:()=>{}}),tooltipOptions$9={options:{id:"workspace"}},popoverPlacement$6={yPlacement:"top",xPlacement:"insideRight",space:{top:0,right:-15}},InnerPopoverBtn$2=dt$1(PopoverEditButton).withConfig({displayName:"Popover__InnerPopoverBtn",componentId:"sc-123piny-0"})([""]),PopoverOptionControl=ea=>{const{className:na,value:ra,disabled:oa,onChange:aa,switchBoxProps:sa,closeLabel:la,openLabel:ca,optionControls:ua,overridePopoverInViewPort:da,...pa}=ea,[ha,ga]=reactExports.useState(!1),{t:fa}=useTranslation(),{setOpen:ma,open:va}=reactExports.useContext(PopoverOpenStateContext);reactExports.useEffect(()=>{va||ga(!1)},[va]);const xa=reactExports.useCallback(()=>{ma(!1),ga(!1)},[ma]),ya=reactExports.useCallback(()=>{ma(!0),ga(!0)},[ma]),Aa=reactExports.useCallback(Sa=>{aa?.(Sa)},[aa]),Ca=reactExports.useMemo(()=>({...popoverPlacement$6,...da}),[da]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(SwitchBox$1,{...sa,value:!!ra,onChange:Aa,disabled:oa})}),ra&&!oa&&jsxRuntimeExports.jsxs(Popover$3,{inViewportOptions:Ca,...pa,onOpen:ya,onClose:xa,open:ha,onOutsideClick:xa,handler:jsxRuntimeExports.jsx(PopoverEditButton,{onClick:()=>ga(!ha),children:ca||fa("Edit")}),children:[jsxRuntimeExports.jsx(InnerPopoverBtn$2,{onClick:xa,children:la||fa("Close")}),jsxRuntimeExports.jsx(OCManager,{optionControls:ua,fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$9})]})]})},Popover$1=dt$1(PopoverOptionControl).withConfig({displayName:"Popover",componentId:"sc-123piny-1"})(["display:flex;align-items:center;justify-content:space-between;> ","{display:inline-flex;> ","{padding:15px 0;}}","{margin:0;}","{position:absolute;top:15px;right:15px;z-index:2;}"],Popover$3,PopoverWrapper$1,OCManager,InnerPopoverBtn$2),borderStyleOptions=[{value:"none",label:"None"},{value:"dotted",label:"Dotted"},{value:"dashed",label:"Dashed"},{value:"solid",label:"Solid"},{value:"double",label:"Double"},{value:"groove",label:"Groove"},{value:"ridge",label:"Ridge"},{value:"inset",label:"Inset"},{value:"outset",label:"Outset"}],borderStylesPopoverControls=({action:ea,selector:na})=>[{id:"borderStylesPopover",optionControls:[[createOptionControl({id:"borderColor",label:i18next.t("Border Color"),control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!1,allowedType:"solid"},selector:na("border.color"),action:ea("border.color")})],[createOptionControl({id:"borderStyle",label:i18next.t("Border style"),control:Select$1,controlProps:{options:borderStyleOptions,size:"small"},selector:na("border.style"),action:ea("border.style")})],[createOptionControl({id:"borderSizing",label:i18next.t("Border Size"),control:BoxSideSizing$1,selector:na("border"),action:ea("border",!0)})]]}],SvgInset=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12.998,viewBox:"0 0 13 12.998",...ea},reactExports.createElement("path",{id:"Path_1266","data-name":"Path 1266",d:"M11648,3505v-12h12v12Zm1-1h10v-10h-10Zm8-1v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm1-1v-1h-1v-1h-1v-1h1v1h1v1h1v1Zm5-1v-1h-1v-1h1v1h1v1Zm0-2v-1h-1v-1h1v1h1v1Zm-6,0v-1h-1v-1h1v1h1v1Zm6-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm1-1v-1h1v1Z",transform:"translate(-11647.501 -3492.501)",strokeWidth:1})),SvgOutset=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.002,height:13,viewBox:"0 0 12.002 13",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M11657,3505v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h1v1Zm-2,0v-1h1v1Zm7-1v-1h1v1Zm-6,0v-1h1v1Zm5-1v-1h1v1Zm-2,0v-1h1v1Zm-2,0v-1h1v1Zm-2,0v-1h1v1Zm7-1v-1h1v1Zm-1-1v-1h1v1Zm-9,0v-8h8v8Zm1-1h6v-6h-6Zm9,0v-1h1v1Zm-1-1v-1h1v1Zm1-1v-1h1v1Z",transform:"translate(-11647.499 -3492.5)"})),boxShadowPositionButtons=[{value:"outset",label:i18next.t("Outset"),iconShape:SvgOutset},{value:"inset",label:i18next.t("Inset"),iconShape:SvgInset}],boxShadowStylesPopoverControls=({action:ea,selector:na})=>[{id:"boxShadowStylesPopover",optionControls:[[createOptionControl({id:"boxShadowColor",label:i18next.t("Shadow Color"),control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:na("boxShadow.color"),action:ea("boxShadow.color")})],[createOptionControl({id:"boxShadowPosition",label:i18next.t("Shadow position"),control:ToggleButtons$1,controlProps:{buttons:boxShadowPositionButtons,multiple:!1},valueFilter:ra=>ra?"inset":"outset",onChangeValueFilter:ra=>ra==="inset",selector:na("boxShadow.inset"),action:ea("boxShadow.inset")})],[createOptionControl({id:"boxShadowOffsetX",label:i18next.t("X Position"),control:SliderWithNumber,controlProps:{min:-30,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("boxShadow.offsetX"),action:ea("boxShadow.offsetX")})],[createOptionControl({id:"boxShadowOffsetY",label:i18next.t("Y Position"),control:SliderWithNumber,controlProps:{min:-30,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("boxShadow.offsetY"),action:ea("boxShadow.offsetY")})],[createOptionControl({id:"boxShadowBlur",label:i18next.t("Blur"),control:SliderWithNumber,controlProps:{min:0,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("boxShadow.blur"),action:ea("boxShadow.blur")})],[createOptionControl({id:"boxShadowSpread",label:i18next.t("Spread"),control:SliderWithNumber,controlProps:{min:-30,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("boxShadow.spread"),action:ea("boxShadow.spread")})]]}],useChoose=(ea,na,ra)=>{const oa=(sa,la)=>{ra&&ra(la)},aa=ea.map((sa,la)=>reactExports.cloneElement(sa,{key:la,selected:sa.props.value===na,onClick:(ca,ua)=>{sa.props.onClick&&!sa.props.onClick(ca,ua)||oa(ca,ua)}}));return[na,aa]},SimpleItem=ea=>{const{className:na,children:ra,onClick:oa,value:aa,tooltip:sa,selected:la}=ea,ca={"data-tip":sa?.value,"data-place":sa?.place,"data-for":sa?.group},ua=da=>{oa&&oa(da,aa)};return jsxRuntimeExports.jsx("div",{className:`${na} ${la?"depicter-selected-item":""}`,onClick:ua,...ca,children:ra})};SimpleItem.defaultProps={indicator:!0};const SimpleTabLogic=dt$1(SimpleItem).withConfig({displayName:"SimpleTab__SimpleTabLogic",componentId:"sc-ja0ymy-0"})(["cursor:pointer;position:relative;transition:color 300ms;display:inline-flex;align-items:center;"," ",""],ea=>ea.indicator&&lt$1(["&::after{content:'';position:absolute;left:0;bottom:0;display:block;width:100%;opacity:0;transition:opacity 300ms;border-radius:10em;}"]),ea=>ea.selected&&lt$1(["&::after{opacity:1;}"])),SimpleTab=withDefaultProps(SimpleTabLogic,{indicator:!0}),Choose=ea=>{const{children:na,onChange:ra,className:oa,value:aa}=ea,[,sa]=useChoose(na,aa,ra||null);return jsxRuntimeExports.jsx("div",{className:oa,children:sa})},PresetImage="data:image/jpeg;base64, ",presetOptions=[{value:"cali",label:i18next.t("Cali"),iconShape:PresetImage,options:{brightness:120,contrast:58,saturation:140,hue:0,blur:0}},{value:"drama",label:i18next.t("Drama"),iconShape:PresetImage,options:{brightness:82,contrast:144,saturation:164,hue:388,blur:0}},{value:"edge",label:i18next.t("Edge"),iconShape:PresetImage,options:{brightness:110,contrast:68,saturation:164,hue:353,blur:0}},{value:"festive",label:i18next.t("Festive"),iconShape:PresetImage,options:{brightness:114,contrast:124,saturation:130,hue:0,blur:0}},{value:"grayscale",label:i18next.t("Grayscale"),iconShape:PresetImage,options:{brightness:114,contrast:78,saturation:0,hue:0,blur:0}},{value:"nordic",label:i18next.t("Nordic"),iconShape:PresetImage,options:{brightness:114,contrast:76,saturation:50,hue:0,blur:0}},{value:"rosie",label:i18next.t("Rosie"),iconShape:PresetImage,options:{brightness:105,contrast:158,saturation:72,hue:324,blur:0}},{value:"street",label:i18next.t("Street"),iconShape:PresetImage,options:{brightness:90,contrast:128,saturation:0,hue:0,blur:0}},{value:"blues",label:i18next.t("The Blues"),iconShape:PresetImage,options:{brightness:138,contrast:68,saturation:70,hue:0,blur:0}},{value:"vintage",label:i18next.t("Vintage"),iconShape:PresetImage,options:{brightness:146,contrast:70,saturation:64,hue:32,blur:0}}],PresetItem$1=({className:ea,options:na,...ra})=>jsxRuntimeExports.jsx("div",{className:ea,style:{...useFilter({default:{enable:!0,...na}})},children:jsxRuntimeExports.jsx(SimpleItem,{...ra})}),PresetItem$2=dt$1(PresetItem$1).withConfig({displayName:"PresetItem",componentId:"sc-1yq4tq0-0"})(["cursor:pointer;display:inline-block;border-radius:3px;overflow:hidden;",""],ea=>ea.selected&&lt$1(["box-shadow:0 0 0 1px #4980f5;"])),Preset=({className:ea,value:na,onChange:ra})=>{const oa=sa=>jsxRuntimeExports.jsx(PresetItem$2,{value:sa.value,tooltip:{value:sa.label,group:"workspace",place:"bottom"},options:sa.options,children:jsxRuntimeExports.jsx(Icon$4,{shape:sa.iconShape})},sa.value),aa=sa=>{const la=presetOptions.find(ca=>ca.value===sa);ra&&ra({preset:sa,...la?.options})};return jsxRuntimeExports.jsx(Choose,{className:ea,value:na,onChange:aa,children:presetOptions.map(oa)})},Presets=dt$1(Preset).withConfig({displayName:"Presets",componentId:"sc-1ivejdj-0"})(["display:grid;grid-template-columns:42px 42px 42px 42px 42px;gap:6px 6px;justify-content:space-between;align-content:stretch;justify-items:stretch;align-items:end;margin:10px 0;","{height:42px;img{width:100%;height:100%;}}"],PresetItem$2),filterStylesPopoverControls=({action:ea,selector:na})=>[{id:"filterStylesPopover",optionControls:[[createOptionControl({id:"filterPreset",label:i18next.t("Filter presets"),control:Presets,selector:na("filter.preset"),action:ea("filter",!0)})],[createOptionControl({id:"filterBrightness",label:i18next.t("Brightness"),control:SliderWithNumber,controlProps:{min:0,max:200,floatRange:-1,numberProps:{units:"%"}},selector:na("filter.brightness"),action:ea("filter.brightness")})],[createOptionControl({id:"filterContrast",label:i18next.t("Contrast"),control:SliderWithNumber,controlProps:{min:0,max:200,floatRange:-1,numberProps:{units:"%"}},selector:na("filter.contrast"),action:ea("filter.contrast")})],[createOptionControl({id:"filterSaturation",label:i18next.t("Saturation"),control:SliderWithNumber,controlProps:{min:0,max:200,floatRange:-1,numberProps:{units:"%"}},selector:na("filter.saturation"),action:ea("filter.saturation")})],[createOptionControl({id:"filterHue",label:i18next.t("Hue"),control:SliderWithNumber,controlProps:{min:0,max:365,floatRange:-1,numberProps:{units:"°"}},selector:na("filter.hue"),action:ea("filter.hue")})],[createOptionControl({id:"filterBlur",label:i18next.t("Blur"),control:SliderWithNumber,controlProps:{min:0,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("filter.blur"),action:ea("filter.blur")})]]}],backgroundBlurStylesPopoverControls=({action:ea,selector:na})=>[{id:"backgroundBlurStylesPopover",optionControls:[[createOptionControl({id:"backgroundBlurBlur",label:i18next.t("Blur"),control:SliderWithNumber,controlProps:{min:0,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("backgroundBlur.blur"),action:ea("backgroundBlur.blur")})],[createOptionControl({id:"backgroundBlurBrightness",label:i18next.t("Brightness"),control:SliderWithNumber,controlProps:{min:0,max:200,floatRange:-1,numberProps:{units:"%"}},selector:na("backgroundBlur.brightness"),action:ea("backgroundBlur.brightness")})],[createOptionControl({id:"backgroundBlurOpacity",label:i18next.t("Opacity"),control:SliderWithNumber,controlProps:{min:0,max:100,floatRange:-1,numberProps:{units:"%"}},selector:na("backgroundBlur.opacity"),action:ea("backgroundBlur.opacity")})]]}],stylesOptionControls=({action:ea,selector:na})=>[{id:"stylesGroup#1",border:"bottom",optionControls:[[createOptionControl({id:"backgroundColor",control:ColorPicker$1,label:i18next.t("Background Color"),selector:na("backgroundColor"),action:ea("backgroundColor")})],[createOptionControl({id:"padding",control:BoxSideSizing$1,label:i18next.t("Padding"),selector:na("padding"),action:ea("padding")})],[createOptionControl({id:"corner",control:BoxEdgeSizing$1,label:i18next.t("Corner Radius"),selector:na("corner"),action:ea("corner")})]]},{id:"stylesGroup#2",border:"bottom",optionControls:[[createOptionControl({id:"border",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("border.enable"),action:ea("border.enable")})],[createOptionControl({id:"boxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("boxShadow.enable"),action:ea("boxShadow.enable")})],[createOptionControl({id:"filter",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Filter")},optionControls:filterStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("filter.enable"),action:ea("filter.enable")})],[createOptionControl({id:"backgroundBlur",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Background Blur")},optionControls:backgroundBlurStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("backgroundBlur.enable"),action:ea("backgroundBlur.enable")})]]}],FontsSelect=React.memo(({value:ea="Open Sans",onChange:na,...ra})=>{const{t:oa}=useTranslation(),{manager:aa,isLoading:sa}=useGetFonts(),[la,ca]=reactExports.useState([]),ua=useSelector(getDocumentFonts),da=reactExports.useCallback(pa=>{na&&na(pa)},[na]);return reactExports.useEffect(()=>{let pa=!1;return aa.getDropDownFontFamilies(ha=>ha==="inherit"?oa("Inherit from theme"):ha).then(ha=>{pa||ca([{label:oa("Recent Fonts"),options:ua.map(ga=>({value:ga,label:ga}))},...ha.filter(ga=>ga.options.length).map(ga=>({...ga,options:ga.options.map(fa=>({...fa,key:`${ga.label}-${fa.value}`}))}))])}),()=>{pa=!0}},[ua,aa,oa]),jsxRuntimeExports.jsx(Select$1,{showSearch:!0,options:la,loading:sa,optionFilterProp:"label",value:sa?oa("Loading..."):ea,onChange:da,...ra})}),FontWeightSelect=({className:ea,value:na="regular",onChange:ra,...oa})=>{const aa=useSelector(getSelectedElementsValueByPathAndPrefix("styles")("typography.font")),{manager:sa,isLoading:la}=useGetFonts(),[ca,ua]=reactExports.useState([]),da=reactExports.useCallback(pa=>{ra&&ra(pa)},[ra]);return reactExports.useEffect(()=>{let pa=!1;return ua([]),aa&&!isIndeterminate(aa)&&sa.getDropDownFontVariants(aa,!1).then(ha=>{pa||ua(ha),ha.length&&!isIndeterminate(na)&&!ha.find(ga=>ga.value===na)&&da(ha[0].value)}),()=>{pa=!0}},[aa,sa,da,na]),jsxRuntimeExports.jsx(Select$1,{className:ea,loading:la,options:ca,value:na,onChange:da,...oa})},SvgCenter$2=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:11,viewBox:"0 0 15 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3781.5,1904a.5.5,0,0,1,0-1h4a.5.5,0,0,1,0,1Zm-4-3a.5.5,0,1,1,0-1h11a.5.5,0,0,1,0,1Zm2-3a.5.5,0,1,1,0-1h8a.5.5,0,1,1,0,1Zm-3-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Z",transform:"translate(-3775.5 -1893.501)"})),SvgJustify=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:11,viewBox:"0 0 15 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3776.5,1904a.5.5,0,1,1,0-1h4a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Z",transform:"translate(-3775.5 -1893.501)"})),SvgLeft$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:11,viewBox:"0 0 15 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3776.5,1904a.5.5,0,1,1,0-1h4a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h11a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h8a.5.5,0,1,1,0,1Zm0-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Z",transform:"translate(-3775.5 -1893.501)"})),SvgRight$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:11,viewBox:"0 0 15 11",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3785.5,1904a.5.5,0,1,1,0-1h4a.5.5,0,1,1,0,1Zm-9-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Zm5-3a.5.5,0,0,1,0-1h8a.5.5,0,1,1,0,1Zm-5-3a.5.5,0,1,1,0-1h13a.5.5,0,1,1,0,1Z",transform:"translate(-3775.5 -1893.501)"})),textAlignmentButtons=[{value:"left",label:i18next.t("Left"),iconShape:SvgLeft$1},{value:"center",label:i18next.t("Center"),iconShape:SvgCenter$2},{value:"right",label:i18next.t("Right"),iconShape:SvgRight$1},{value:"justify",label:i18next.t("Justify"),iconShape:SvgJustify}],textAlignmentButtonsRTL=[{value:"right",label:i18next.t("Right"),iconShape:SvgRight$1},{value:"center",label:i18next.t("Center"),iconShape:SvgCenter$2},{value:"left",label:i18next.t("Left"),iconShape:SvgLeft$1},{value:"justify",label:i18next.t("Justify"),iconShape:SvgJustify}],TextAlignment={ltr:textAlignmentButtons,rtl:textAlignmentButtonsRTL},SvgLeftToRight=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.5,height:11.001,viewBox:"0 0 12.5 11.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3785.5,1904v-9h-1v-1h3v1h-1v9Zm-2,0v-4h-1a3,3,0,1,1,0-6h2v10Zm-7.5-7.5,3,2-3,2Z",transform:"translate(-3775.5 -1893.5)"})),SvgRightToLeft=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.5,height:11.001,viewBox:"0 0 12.5 11.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3782,1904v-9h-1v-1h3v1h-1v9Zm-2,0v-4h-1a3,3,0,0,1,0-6h2v10Zm4.5-5.5,3-2v4Z",transform:"translate(-3775.5 -1893.5)"})),textDirectionButtons=[{value:"ltr",label:i18next.t("Left to Right"),iconShape:SvgLeftToRight},{value:"rtl",label:i18next.t("Right to Left"),iconShape:SvgRightToLeft}],SvgLowerCase=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:8.881,height:9.337,viewBox:"0 0 8.881 9.337",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M701.06,544.061v1.8h1.3v1.23h-1.3v4.129a.913.913,0,0,0,.167.612.775.775,0,0,0,.6.188,2.522,2.522,0,0,0,.581-.068v1.282a4.017,4.017,0,0,1-1.1.158q-1.914,0-1.914-2.112v-4.19h-1.217v-1.235H699.4v-1.8Zm4.655,0v1.8h1.306v1.23h-1.306v4.129a.913.913,0,0,0,.167.612.775.775,0,0,0,.6.188,2.522,2.522,0,0,0,.581-.068v1.282a4.017,4.017,0,0,1-1.095.158q-1.914,0-1.914-2.112v-4.19h-1.217v-1.235h1.217v-1.8Z",transform:"translate(-698.182 -544.055)"})),SvgSentenceCase=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.47,height:10.089,viewBox:"0 0 12.47 10.089",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M645.074,544.455h-3.1v8.559h-1.716v-8.559h-3.076v-1.394h7.892Zm3.227-.636v1.8h1.306v1.23h-1.3v4.129a.913.913,0,0,0,.167.612.775.775,0,0,0,.6.188,2.522,2.522,0,0,0,.581-.068v1.283a4.052,4.052,0,0,1-1.094.157q-1.914,0-1.914-2.112v-4.19h-1.218v-1.234h1.217v-1.8Z",transform:"translate(-637.182 -543.061)"})),SvgUpperCase=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16.506,height:9.953,viewBox:"0 0 16.506 9.953",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M584.074,544.455h-3.1v8.559h-1.716v-8.559h-3.076v-1.394h7.892Zm8.606,0h-3.1v8.559h-1.716v-8.559h-3.076v-1.394h7.9Z",transform:"translate(-576.182 -543.061)"})),textTransformButtons=[{value:"uppercase",label:i18next.t("Uppercase"),iconShape:SvgUpperCase},{value:"capitalize",label:i18next.t("Capitalize"),iconShape:SvgSentenceCase},{value:"lowercase",label:i18next.t("Lowercase"),iconShape:SvgLowerCase}],SvgSubtraction=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:7.895,height:10.953,viewBox:"0 0 7.895 10.953",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M821.974,554.014h-1.715v-3h1.715Zm0-7h-1.715v-2.558h-3.076v-1.4h7.9v1.4h-3.1v2.558Z",transform:"translate(-817.183 -543.061)"})),SvgUnderline=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:13.954,viewBox:"0 0 13 13.954",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3776,1906.954v-1h12v1Zm5.076-3v-8.559H3778V1894h7.891v1.394h-3.1v8.559Z",transform:"translate(-3775.5 -1893.5)"})),textDecorationButtons=[{value:"underline",label:i18next.t("Underline"),iconShape:SvgUnderline},{value:"line-through",label:i18next.t("Strike through"),iconShape:SvgSubtraction}],SvgBreakWord=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.002,height:14.5,viewBox:"0 0 13.002 14.5",...ea},reactExports.createElement("path",{id:"Path_1401","data-name":"Path 1401",d:"M16994,8214l5-3.5v2.5h1a1,1,0,0,0,1-1v-1a1,1,0,0,0-1-1v-2a3.005,3.005,0,0,1,3,3v1a3,3,0,0,1-3,3h-1v2.5Zm-4,1v-2h3v2Zm0-5v-2h10v2Zm0-5v-2h13v2Z",transform:"translate(-16990.002 -8202.999)"})),SvgNormal=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:2,viewBox:"0 0 13 2",...ea},reactExports.createElement("path",{id:"Path_1402","data-name":"Path 1402",d:"M0,0H13V2H0Z"})),textWrapButtons=[{value:!0,label:i18next.t("Break Word"),iconShape:SvgBreakWord},{value:!1,label:i18next.t("Normal"),iconShape:SvgNormal}],typographyOptionControls=({action:ea,selector:na})=>[{id:"typography",border:"bottom",label:i18next.t("Typography"),optionControls:[[createOptionControl({id:"fontName",control:FontsSelect,label:i18next.t("Font Face"),selector:na("font"),action:ea("font")})],[createOptionControl({id:"fontWeight",control:FontWeightSelect,label:i18next.t("Weight"),selector:na("fontVariant"),action:ea("fontVariant")}),createOptionControl({id:"fontSize",control:Number$2,controlProps:{units:"px",floatRange:1},label:i18next.t("Size"),selector:na("fontSize"),action:ea("fontSize"),styles:{flex:.44}})],[createOptionControl({id:"textColor",control:ColorPicker$1,label:i18next.t("Color"),selector:na("color"),action:ea("color"),styles:{flex:"0 0 auto"}}),createOptionControl({id:"lineHeight",control:Number$2,controlProps:{units:"%"},label:i18next.t("Line Height"),selector:na("lineHeight"),action:ea("lineHeight"),styles:{flex:"1"}}),createOptionControl({id:"letterSpace",control:Number$2,controlProps:{units:"px"},label:i18next.t("Letter Space"),selector:na("letterSpacing"),action:ea("letterSpacing"),styles:{flex:"1"}})],[createOptionControl({id:"textAlignment",control:ToggleButtons$1,controlProps:{buttons:TextAlignment.ltr},label:i18next.t("Alignment"),selector:na("align"),action:ea("align"),dependency:ra=>na("direction")(ra)!=="rtl",styles:{flex:"0 0 auto"}}),createOptionControl({id:"textAlignmentRTL",control:ToggleButtons$1,controlProps:{buttons:TextAlignment.rtl},label:i18next.t("Alignment"),selector:na("align"),action:ea("align"),dependency:ra=>na("direction")(ra)!=="ltr",styles:{flex:"0 0 auto"}}),createOptionControl({id:"textDirection",control:ToggleButtons$1,controlProps:{buttons:textDirectionButtons},label:i18next.t("Direction"),selector:na("direction"),action:ea("direction"),styles:{flex:"0 0 auto"}})],[createOptionControl({id:"textTransform",control:ToggleButtons$1,controlProps:{buttons:textTransformButtons,deselect:!0},label:i18next.t("Transform"),selector:na("transform"),action:ea("transform"),styles:{flex:"0 0 auto"}}),createOptionControl({id:"textDecoration",control:ToggleButtons$1,controlProps:{buttons:textDecorationButtons,deselect:!0},label:i18next.t("Decoration"),selector:na("decoration"),action:ea("decoration"),styles:{flex:"0 0 auto"}})],[createOptionControl({id:"textWrap",control:ToggleButtons$1,controlProps:{buttons:textWrapButtons},label:i18next.t("Text Wrapping"),selector:na("wordwrap"),action:ea("wordwrap")})]]}],textShadowStylesPopoverControls=({action:ea,selector:na})=>[{id:"textShadowStylesPopover",optionControls:[[createOptionControl({id:"textShadowColor",label:i18next.t("Shadow Color"),control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:na("textShadow.color"),action:ea("textShadow.color")})],[createOptionControl({id:"textShadowOffsetX",label:i18next.t("X Position"),control:SliderWithNumber,controlProps:{min:-30,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("textShadow.offsetX"),action:ea("textShadow.offsetX")})],[createOptionControl({id:"textShadowOffsetY",label:i18next.t("Y Position"),control:SliderWithNumber,controlProps:{min:-30,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("textShadow.offsetY"),action:ea("textShadow.offsetY")})],[createOptionControl({id:"textShadowBlur",label:i18next.t("Blur"),control:SliderWithNumber,controlProps:{min:0,max:30,floatRange:-1,numberProps:{units:"px"}},selector:na("textShadow.blur"),action:ea("textShadow.blur")})]]}],hoverStylesOptionControls$3=({action:ea,selector:na})=>[{id:"hoverStylesSwitch",border:"bottom",optionControls:[[createOptionControl({id:"enableHoverStyles",control:SwitchBox$1,controlProps:{label:i18next.t("Enable hover styles")},selector:na("enable"),action:ea("enable")})]]},{id:"hoverStyles",border:"bottom",optionControls:[[createOptionControl({id:"hoverBackgroundColor",control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},label:i18next.t("Background Color"),selector:na("backgroundColor"),action:ea("backgroundColor"),disabledWhen:ra=>!na("enable")(ra)})],[createOptionControl({id:"hoverBorderColor",control:ColorPicker$1,label:i18next.t("Border Color"),selector:na("border.color"),action:ea("border.color"),disabledWhen:ra=>!na("enable")(ra),controlProps:{showHex:!0,showAlpha:!1,allowedType:"solid"}})],[createOptionControl({id:"hoverOpacity",control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"}},label:i18next.t("Opacity"),selector:na("opacity"),action:ea("opacity"),disabledWhen:ra=>!na("enable")(ra)})],[createOptionControl({disabledWhen:ra=>!na("enable")(ra),id:"hoverBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("boxShadow.enable"),action:ea("boxShadow.enable")})],[createOptionControl({id:"hoverScale",control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"},min:0,max:200},label:i18next.t("Scale"),selector:na("transform.scale"),action:ea("transform.scale"),disabledWhen:ra=>!na("enable")(ra)})]]},{id:"hoverStylesTransition",border:"bottom",optionControls:[[createOptionControl({id:"enableHoverTransition",control:SwitchBox$1,controlProps:{label:i18next.t("Enable hover animation")},selector:na("transition.enable"),action:ea("transition.enable"),disabledWhen:ra=>!na("enable")(ra)})],[createOptionControl({id:"enableHoverEase",control:EasingFunctionSelect$1,controlProps:{easingType:"css"},selector:na("transition.timingFunction"),action:ea("transition.timingFunction"),disabledWhen:ra=>!na("enable")(ra),dependency:ra=>na("transition.enable")(ra)})],[createOptionControl({id:"enableHoverTransitionDuration",control:Number$2,label:i18next.t("Duration"),controlProps:{units:"s",valueType:"number"},selector:na("transition.duration"),action:ea("transition.duration"),disabledWhen:ra=>!na("enable")(ra),dependency:ra=>na("transition.enable")(ra),styles:{flex:.5}})]]}],hoverTextStylesOptionControls=({action:ea,selector:na})=>[{id:"hoverTextStyles",border:"bottom",optionControls:[[createOptionControl({id:"hoverTextColor",control:ColorPicker$1,label:i18next.t("Text Color"),selector:na("typography.color"),action:ea("typography.color"),disabledWhen:ra=>!na("enable")(ra),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"}})],[createOptionControl({disabledWhen:ra=>!na("enable")(ra),id:"hoverTextShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Text Shadow")},optionControls:textShadowStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("textShadow.enable"),action:ea("textShadow.enable")})]]}],hoverSvgStylesOptionControls=({action:ea,selector:na})=>[{id:"hoverSvgStyles",border:"bottom",optionControls:[[createOptionControl({id:"hoverFillColor",control:ColorPicker$1,label:i18next.t("Fill Color"),selector:na("svg.fill"),action:ea("svg.fill"),disabledWhen:ra=>!na("enable")(ra),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"}})]]}],svgOptionControls=({action:ea,selector:na})=>[{id:"svgGroup",border:"bottom",optionControls:[[createOptionControl({id:"fillColor",control:ColorPicker$1,label:i18next.t("Fill Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:na("fill"),action:ea("fill")})],[createOptionControl({id:"strokeColor",control:ColorPicker$1,label:i18next.t("Stroke Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:na("stroke"),action:ea("stroke")})],[createOptionControl({id:"strokeWidth",label:i18next.t("Stroke width"),control:Number$2,controlProps:{units:"px"},styles:{flex:"0 0 85px"},selector:na("strokeWidth"),action:ea("strokeWidth")})]]}],textStylesOptionControls=({action:ea,selector:na})=>[{id:"textStylesGroup",border:"bottom",optionControls:[[createOptionControl({id:"textShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Text Shadow")},optionControls:textShadowStylesPopoverControls({action:ea,selector:na})},hideOnIntersection:!0,selector:na("textShadow.enable"),action:ea("textShadow.enable")})]]}],layoutItemOptionControls=({action:ea,selector:na})=>{const ra=oa=>getSelectedElementIsFlexItem(oa);return[{id:"flexItemGroup",border:"bottom",label:i18next.t("Layout"),optionControls:[[createOptionControl({id:"selfAlignFlex",label:i18next.t("Self alignment"),control:Select$1,defaultValue:"auto",controlProps:{options:[{value:"auto",label:i18next.t("Auto")},{value:"flex-start",label:i18next.t("Start")},{value:"center",label:i18next.t("Center")},{value:"flex-end",label:i18next.t("End")}]},maxWidth:"120px",selector:na("alignSelf"),action:ea("alignSelf"),dependency:ra})]]}]},elementStylesOptionControls=stylesOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles"),selector:getSelectedElementsValueByPathAndPrefix("styles")}),elementTextStylesOptionControls=textStylesOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles"),selector:getSelectedElementsValueByPathAndPrefix("styles")}),elementTypographyOptionControls=typographyOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles.typography"),selector:getSelectedElementsValueByPathAndPrefix("styles.typography")}),elementHoverStylesOptionControls=hoverStylesOptionControls$3({action:updateSelectedElementsValueByPathAndPrefix("styles.hover"),selector:getSelectedElementsValueByPathAndPrefix("styles.hover")}),elementHoverTextStylesOptionControls=hoverTextStylesOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles.hover"),selector:getSelectedElementsValueByPathAndPrefix("styles.hover")}),elementSvgStylesOptionControls=svgOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles.svg"),selector:getSelectedElementsValueByPathAndPrefix("styles.svg")}),elementHoverSvgStylesOptionControls=hoverSvgStylesOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles.hover"),selector:getSelectedElementsValueByPathAndPrefix("styles.hover")}),elementLayoutStylesOptionControls=layoutItemOptionControls({action:updateSelectedElementsValueByPathAndPrefix("styles.flex"),selector:getSelectedElementsValueByPathAndPrefix("styles.flex")}),optionButtonColor={background:"rgba(0, 0, 0, 0.06)"},optionButtonColors={dark:optionButtonColor},optionButtonSize={width:"29px",height:"29px",border:"5px"},optionButtonSizes={default:optionButtonSize},optionButton={colors:optionButtonColors,sizes:optionButtonSizes},theme$3a=withTheme(optionButton),OptionButton=dt$1(IconButton).withConfig({displayName:"OptionButton",componentId:"sc-omh8ea-0"})(["display:inline-flex;"," ",""],theme$3a.colors(ea=>lt$1(["background:",";"],ea.background)),theme$3a.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.width,ea.height,ea.border))),SvgBack=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.081,height:15.001,viewBox:"0 0 10.081 15.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3776,1908v-2h8v2Zm0-8h3v-5a1,1,0,0,1,2,0v5h3l-4,5Z",transform:"translate(-3774.96 -1893.5)"})),SvgBackward=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.081,height:13.3,viewBox:"0 0 10.081 13.3",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3776,1901h3v-6a1,1,0,0,1,2,0v6h3l-4,5Z",transform:"translate(-3774.96 -1893.5)"})),SvgForward=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.081,height:13.3,viewBox:"0 0 10.081 13.3",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3779,1905v-6h2v6a1,1,0,0,1-2,0Zm-3-6,4-5,4,5Z",transform:"translate(-3774.96 -1893.2)"})),SvgFront=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10.081,height:15,viewBox:"0 0 10.081 15",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M3779,1907v-5h-3l4-5,4,5h-3v5a1,1,0,0,1-2,0Zm-3-11v-2h8v2Z",transform:"translate(-3774.96 -1893.5)"})),ArrangeDepth=({className:ea,disabled:na})=>{const{t:ra}=useTranslation(),oa=useSelector(getSelectedElements),aa=useDispatchAndToHistory(),sa=la=>{aa(changeElementDepth({id:oa[0],to:la}))};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>sa("forward"),tooltip:{content:ra("Bring Forward"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgForward})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>sa("backward"),tooltip:{content:ra("Send Backward"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBackward})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>sa("front"),tooltip:{content:ra("Bring to Front"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgFront})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>sa("back"),tooltip:{content:ra("Send to Back"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBack})})]})},ArrangeDepth$1=dt$1(ArrangeDepth).withConfig({displayName:"ArrangeDepth",componentId:"sc-y89nuv-0"})(["","{margin-right:5px;&:last-of-type{margin-right:0px;}}"],OptionButton),SvgNoWrap=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:11.999,viewBox:"0 0 18 11.999",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M11661,3504h-1v-1h1v-1h1v2Zm-4,0v-1h2v1Zm-3,0v-1h2v1Zm-2,0h-1v-2h1v1h1v1Zm11-2v-7h2v7Zm-10,0v-7h7v7Zm-5,0v-7h2v7Zm13-1v-2h1v2Zm-10,0v-2h1v2Zm10-3v-2h1v2Zm-10,0v-2h1v2Zm10-3v-1h-1v-1h2v2Zm-10,0v-2h2v1h-1v1Zm6-1v-1h2v1Zm-3,0v-1h2v1Z",transform:"translate(-11647.5 -3492.5)"})),SvgWrap=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12.002,height:11.999,viewBox:"0 0 12.002 11.999",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M11658,3504h-1v-1h1v-1h1v2Zm-4,0v-1h2v1Zm-3,0v-1h2v1Zm-2,0h-1v-2h1v1h1v1Zm1-2v-7h7v7Zm8-1v-2h1v2Zm-10,0v-2h1v2Zm10-3v-2h1v2Zm-10,0v-2h1v2Zm10-3v-1h-1v-1h2v2Zm-10,0v-2h2v1h-1v1Zm6-1v-1h2v1Zm-3,0v-1h2v1Z",transform:"translate(-11647.499 -3492.5)"})),wrappingButtons=[{value:!0,label:i18next.t("Wrap"),iconShape:SvgWrap},{value:!1,label:i18next.t("No Wrap"),iconShape:SvgNoWrap}],SvgBottom=ea=>reactExports.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 14.5C0 14.2239 0.223858 14 0.5 14H14.5C14.7761 14 15 14.2239 15 14.5C15 14.7761 14.7761 15 14.5 15H0.5C0.223858 15 0 14.7761 0 14.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H12C12.5523 5 13 5.44772 13 6V11C13 11.5523 12.5523 12 12 12H9C8.44772 12 8 11.5523 8 11V6Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1C3 0.447715 3.44772 0 4 0H5C5.55228 0 6 0.447715 6 1V11C6 11.5523 5.55228 12 5 12H4C3.44772 12 3 11.5523 3 11V1Z"})),SvgCenter$1=ea=>reactExports.createElement("svg",{width:13,height:15,viewBox:"0 0 13 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 0.5C6 0.223858 6.22386 0 6.5 0C6.77614 0 7 0.223858 7 0.5V14.5C7 14.7761 6.77614 15 6.5 15C6.22386 15 6 14.7761 6 14.5V0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3C3 2.44772 3.44772 2 4 2H9C9.55228 2 10 2.44772 10 3V6C10 6.55228 9.55228 7 9 7H4C3.44772 7 3 6.55228 3 6V3Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11C0 10.4477 0.447715 10 1 10H12C12.5523 10 13 10.4477 13 11V12C13 12.5523 12.5523 13 12 13H1C0.447715 13 0 12.5523 0 12V11Z"})),SvgLeft=ea=>reactExports.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.5C0 0.223858 0.223858 0 0.5 0C0.776142 0 1 0.223858 1 0.5V14.5C1 14.7761 0.776142 15 0.5 15C0.223858 15 0 14.7761 0 14.5V0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3C3 2.44772 3.44772 2 4 2H9C9.55228 2 10 2.44772 10 3V6C10 6.55228 9.55228 7 9 7H4C3.44772 7 3 6.55228 3 6V3Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 11C3 10.4477 3.44772 10 4 10H14C14.5523 10 15 10.4477 15 11V12C15 12.5523 14.5523 13 14 13H4C3.44772 13 3 12.5523 3 12V11Z"})),SvgMiddle=ea=>reactExports.createElement("svg",{width:15,height:12,viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.5C0 6.22386 0.223858 6 0.5 6H14.5C14.7761 6 15 6.22386 15 6.5C15 6.77614 14.7761 7 14.5 7H0.5C0.223858 7 0 6.77614 0 6.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4C8 3.44772 8.44772 3 9 3H12C12.5523 3 13 3.44772 13 4V9C13 9.55228 12.5523 10 12 10H9C8.44772 10 8 9.55228 8 9V4Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1C3 0.447715 3.44772 0 4 0H5C5.55228 0 6 0.447715 6 1V11C6 11.5523 5.55228 12 5 12H4C3.44772 12 3 11.5523 3 11V1Z"})),SvgRight=ea=>reactExports.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 0.5C14 0.223858 14.2239 0 14.5 0C14.7761 0 15 0.223858 15 0.5V14.5C15 14.7761 14.7761 15 14.5 15C14.2239 15 14 14.7761 14 14.5V0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3C5 2.44772 5.44772 2 6 2H11C11.5523 2 12 2.44772 12 3V6C12 6.55228 11.5523 7 11 7H6C5.44772 7 5 6.55228 5 6V3Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11C0 10.4477 0.447715 10 1 10H11C11.5523 10 12 10.4477 12 11V12C12 12.5523 11.5523 13 11 13H1C0.447715 13 0 12.5523 0 12V11Z"})),SvgTop=ea=>reactExports.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.5C0 0.223858 0.223858 0 0.5 0H14.5C14.7761 0 15 0.223858 15 0.5C15 0.776142 14.7761 1 14.5 1H0.5C0.223858 1 0 0.776142 0 0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4C8 3.44772 8.44772 3 9 3H12C12.5523 3 13 3.44772 13 4V9C13 9.55228 12.5523 10 12 10H9C8.44772 10 8 9.55228 8 9V4Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4C3 3.44772 3.44772 3 4 3H5C5.55228 3 6 3.44772 6 4V14C6 14.5523 5.55228 15 5 15H4C3.44772 15 3 14.5523 3 14V4Z"})),SvgVertically=ea=>reactExports.createElement("svg",{width:15,height:13,viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.5C0 0.223858 0.223858 0 0.5 0H14.5C14.7761 0 15 0.223858 15 0.5C15 0.776142 14.7761 1 14.5 1H0.5C0.223858 1 0 0.776142 0 0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 12.5C0 12.2239 0.223858 12 0.5 12H14.5C14.7761 12 15 12.2239 15 12.5C15 12.7761 14.7761 13 14.5 13H0.5C0.223858 13 0 12.7761 0 12.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 4.44772 2.44772 4 3 4H12C12.5523 4 13 4.44772 13 5V8C13 8.55228 12.5523 9 12 9H3C2.44771 9 2 8.55228 2 8V5Z"})),SvgHorizontally=ea=>reactExports.createElement("svg",{width:13,height:15,viewBox:"0 0 13 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0.5C12 0.223858 12.2239 0 12.5 0C12.7761 0 13 0.223858 13 0.5V14.5C13 14.7761 12.7761 15 12.5 15C12.2239 15 12 14.7761 12 14.5V0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.5C0 0.223858 0.223858 0 0.5 0C0.776142 0 1 0.223858 1 0.5V14.5C1 14.7761 0.776142 15 0.5 15C0.223858 15 0 14.7761 0 14.5V0.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4 2.44771 4.44772 2 5 2H8C8.55228 2 9 2.44772 9 3V12C9 12.5523 8.55228 13 8 13H5C4.44772 13 4 12.5523 4 12V3Z"})),alignElements=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa),sa=aa.length>1,la=getActiveBreakpoint(oa),ca=getSelectedElementsIsGrouped(oa),ua=getDocumentOptionsByPathAndPrefix("general")("keepAspect")(oa),da=getActiveTransformToolFrameBoundaries(oa),pa=aa.map(ha=>{const ga=getSelectedElementsData(oa)[ha],{size:fa,position:ma,boundaries:va}=getElementsComputedValues(oa)[ha],xa=getElementParentBoundaries(ha)(oa),ya=sa&&!ca?da:xa,Aa=getResponsiveValue(ga.position,la),[Ca,Sa]=calcElementPositionByAlignment(ea,ya,fa,sa&&!ca),wa=calcElementPosition(Aa,{...ma,[Sa]:Ca},va,xa,ua&&!ca?"tl":void 0);return wa.x.unit="px",wa.y.unit="px",wa});na(updateElementsByPath({values:pa,ids:aa,path:`position.${la}`}))},alignElementsEvenly=ea=>(na,ra)=>{const oa=ra(),aa=getSelectedElements(oa),sa=getSelectedElementsIsGrouped(oa),la=getActiveTransformToolFrameBoundaries(oa),ca=getElementParentBoundaries(aa[0])(oa),ua=sa?ca:la,da=getSelectedElementsComputedValues(oa),pa=getActiveBreakpoint(oa),ha=getDocumentOptionsByPathAndPrefix("general")("keepAspect")(oa);let ga=[],fa=[];switch(ea){case"vertically":{ga=Object.keys(da).sort((ya,Aa)=>da[ya].position.y-da[Aa].position.y);const ma=ga.reduce((ya,Aa)=>ya+da[Aa].size.height,0),va=(ua.height-ma)/(aa.length-1);let xa=sa?0:ua.top;fa=ga.map(ya=>{const Aa=getSelectedElementsData(oa)[ya],Ca=getResponsiveValue(Aa.position,pa),Sa=calcElementPosition(Ca,{...da[ya].position,y:xa},da[ya].boundaries,ca,ha&&!sa?"tl":void 0);return Sa.x.unit="px",Sa.y.unit="px",xa+=da[ya].size.height+va,Sa})}break;case"horizontally":{ga=Object.keys(da).sort((ya,Aa)=>da[ya].position.x-da[Aa].position.x);const ma=ga.reduce((ya,Aa)=>ya+da[Aa].size.width,0),va=(ua.width-ma)/(aa.length-1);let xa=sa?0:ua.left;fa=ga.map(ya=>{const Aa=getSelectedElementsData(oa)[ya],Ca=getResponsiveValue(Aa.position,pa),Sa=calcElementPosition(Ca,{...da[ya].position,x:xa},da[ya].boundaries,ca,ha&&!sa?"tl":void 0);return Sa.x.unit="px",Sa.y.unit="px",xa+=da[ya].size.width+va,Sa})}break}na(updateElementsByPath({values:fa,ids:ga,path:`position.${pa}`}))},Alignment=({className:ea,disabled:na})=>{const{t:ra}=useTranslation(),oa=useDispatchAndToHistory(),aa=sa=>{oa(alignElements(sa))};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("left"),tooltip:{content:ra("Align Left"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgLeft})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("center"),tooltip:{content:ra("Align Center"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgCenter$1})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("right"),tooltip:{content:ra("Align Right"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgRight})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("top"),tooltip:{content:ra("Align Top"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTop})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("middle"),tooltip:{content:ra("Align Middle"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgMiddle})}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,onClick:()=>aa("bottom"),tooltip:{content:ra("Align Bottom"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBottom})})]})},Alignment$1=dt$1(Alignment).withConfig({displayName:"Alignment",componentId:"sc-15oa89k-0"})(["","{margin-right:5px;&:last-of-type{margin-right:0px;}}"],OptionButton),SpaceEvenly=({className:ea,disabled:na})=>{const{t:ra}=useTranslation(),oa=useDispatchAndToHistory(),aa=sa=>{oa(alignElementsEvenly(sa))};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(OptionButton,{disabled:na,tooltip:{content:ra("Vertically"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgVertically}),onClick:()=>aa("vertically")}),jsxRuntimeExports.jsx(OptionButton,{disabled:na,tooltip:{content:ra("Horizontally"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgHorizontally}),onClick:()=>aa("horizontally")})]})},SpaceEvenly$1=dt$1(SpaceEvenly).withConfig({displayName:"SpaceEvenly",componentId:"sc-ijs07m-0"})(["","{margin-right:5px;&:last-of-type{margin-right:0px;}}"],OptionButton),elementArrangeDepth=createOptionControl({id:"elementArrangeDepth",label:i18next.t("Arrange"),control:ArrangeDepth$1,styles:{flex:"auto"}}),elementWrapping=createOptionControl({id:"elementWrapping",label:i18next.t("Wrapping"),control:ToggleButtons$1,controlProps:{buttons:wrappingButtons},selector:getSelectedElementsValueByPathAndPrefix("")("wrap"),action:updateSelectedElementsValueByPathAndPrefix("")("wrap"),styles:{flex:"auto"}}),elementAlignment=createOptionControl({id:"elementAlignment",label:i18next.t("Alignment"),control:Alignment$1,styles:{flex:"auto"},dependency:ea=>getSelectedElementsIsGroupable(ea)&&getSelectedElementsValueByPathAndPrefix("position")("positionType")(ea)!=="static"}),elementSpaceEvenly=createOptionControl({id:"elementSpaceEvenly",label:i18next.t("Distribute Spacing"),control:SpaceEvenly$1,styles:{flex:"auto"},dependency:ea=>{if(!elementAlignment.dependency(ea))return!1;const na=getSelectedElements(ea),ra=getSelectedElementsParent(ea),oa=Object.values(ra),aa=oa.every(sa=>sa===oa[0]);return na.length>2&&aa}}),elementArrangeOptionControls=()=>[{id:"elementArrange",border:"bottom",optionControls:[[elementAlignment],[elementSpaceEvenly],[elementArrangeDepth,elementWrapping]]}],blendingModeOptions=[{value:"normal",label:"Normal"},{value:"multiply",label:"Multiply"},{value:"screen",label:"Screen"},{value:"overlay",label:"Overlay"},{value:"darken",label:"Darken"},{value:"lighten",label:"Lighten"},{value:"color-dodge",label:"Color Dodge"},{value:"color-burn",label:"Color Burn"},{value:"difference",label:"Difference"},{value:"exclusion",label:"Exclusion"},{value:"hue",label:"Hue"},{value:"saturation",label:"Saturation"},{value:"color",label:"Color"},{value:"luminosity",label:"Luminosity"}],layerStyles=({action:ea,selector:na})=>[{id:"layerStyles",border:"bottom",optionControls:[[createOptionControl({id:"opacity",control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"}},label:i18next.t("Opacity"),selector:na("opacity"),action:ea("opacity")})],[createOptionControl({id:"blendingMode",control:SwitchBox$1,controlProps:{label:i18next.t("Blending mode")},selector:na("blendingMode.enable"),action:ea("blendingMode.enable")})],[createOptionControl({id:"blendingModeType",control:Select$1,controlProps:{options:blendingModeOptions},dependency:ra=>na("blendingMode.enable")(ra),selector:na("blendingMode.type"),action:ea("blendingMode.type")})]]}],elementLayerStyles=layerStyles({action:updateSelectedElementsValueByPathAndPrefix("styles"),selector:getSelectedElementsValueByPathAndPrefix("styles")}),reducer$1=(ea,{type:na,payload:ra})=>{switch(na){case"updateAnimationData":{const oa={...ea};return lodashExports.mergeWith(oa,ra,(sa,la)=>{if(Array.isArray(la))return la})}default:return ea}},SvgIn=ea=>reactExports.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 0.895431 11.1046 0 10 0H2V1H10C10.5523 1 11 1.44772 11 2V10C11 10.5523 10.5523 11 10 11H2V12H10C11.1046 12 12 11.1046 12 10V2Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6L5 9V3L9 6Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 5H6V7H0V5Z"})),SvgOut=ea=>reactExports.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2V10C0 11.1046 0.89543 12 2 12H10V11H2C1.44772 11 1 10.5523 1 10V2C1 1.44772 1.44772 1 2 1H10V0H2C0.895431 0 0 0.895431 0 2Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6L8 9V3L12 6Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5H9V7H3V5Z"})),SvgLoop=ea=>reactExports.createElement("svg",{width:13,height:11,viewBox:"0 0 13 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M7.5 0.00195312C8.5878 0.00195314 9.65117 0.324523 10.5556 0.92887C11.4601 1.53322 12.1651 2.3922 12.5813 3.39719C12.9976 4.40219 13.1065 5.50805 12.8943 6.57495C12.6821 7.64185 12.1583 8.62185 11.3891 9.39104C10.6199 10.1602 9.63989 10.6841 8.573 10.8963C7.5061 11.1085 6.40023 10.9996 5.39524 10.5833C4.39025 10.167 3.53126 9.46206 2.92692 8.55759C2.32257 7.65312 2 6.58975 2 5.50195H3.23813C3.23813 6.34487 3.48808 7.16886 3.95638 7.86972C4.42468 8.57058 5.0903 9.11684 5.86905 9.43941C6.64781 9.76198 7.50473 9.84638 8.33145 9.68194C9.15817 9.51749 9.91757 9.11159 10.5136 8.51555C11.1096 7.91952 11.5155 7.16013 11.68 6.3334C11.8444 5.50668 11.76 4.64976 11.4375 3.87101C11.1149 3.09225 10.5686 2.42664 9.86777 1.95834C9.16691 1.49003 8.34292 1.24008 7.5 1.24008V0.00195312Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1L6 6H0L3 1Z"})),initialState$2={phase:"in",tabs:[{name:i18next.t("In"),value:"in",icon:SvgIn},{name:i18next.t("Out"),value:"out",icon:SvgOut},{name:i18next.t("Loop"),value:"loop",icon:SvgLoop}],excludedTabs:[],excludedControls:[],categories:{items:[],selected:null,search:""},configurationState:"animationCategories",elementType:"",currentAnimation:null,action:lodashExports.noop,elements:[],selector:lodashExports.noop},AnimationsContext=reactExports.createContext([initialState$2,()=>{}]),updateAnimationContextData=ea=>({type:"updateAnimationData",payload:ea}),restAnimationContextData=()=>({type:"updateAnimationData",payload:{categories:{selected:null,search:""},configurationState:"animationCategories",currentAnimation:null,isWizard:!1}}),defaultColors$1J={color:"rgba(170, 170, 170, 0.6)",selected:"#FFFFFF",text:{color:"#AAAAAA",background:"#242424",selected:{color:"white",background:"#000000"}},icon:"#AAA"},lightColors$2={color:"#8D8E99",selected:"#050A0E",text:{color:"#AAAAAA",background:"#242424",selected:{color:"white",background:"#000000"}},icon:"#AAA"},colors$1J={dark:defaultColors$1J,light:lightColors$2},defaultSizing$1u={padding:"0 12px",fontSize:"14px",text:{height:"29px",fontSize:"11px",fontWeight:"600"}},sizes$1J={default:defaultSizing$1u},schema$8=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1J,sizes:sizes$1J},Symbol.toStringTag,{value:"Module"})),NameHolder$2=dt$1.span.withConfig({displayName:"TextTab__NameHolder",componentId:"sc-1k7gllw-0"})([""]),TextTab=ea=>{const{name:na,icon:ra,...oa}=ea;return jsxRuntimeExports.jsxs(SimpleItem,{...oa,children:[ra&&jsxRuntimeExports.jsx(Icon$4,{shape:ra}),jsxRuntimeExports.jsx(NameHolder$2,{children:na})]})},theme$39=withTheme(schema$8),TextTab$1=dt$1(TextTab).withConfig({displayName:"TextTab",componentId:"sc-1k7gllw-1"})(["cursor:pointer;display:flex;flex:1;justify-content:center;align-items:center;gap:3px;"," "," ","{display:block;}&:first-child{border-radius:5px 0 0 5px;}&:last-child{border-radius:0 5px 5px 0;}"],theme$39.colors((ea,na)=>lt$1(["background-color:",";color:",";"," svg{fill:",";}"],na.selected?ea.text.selected.background:ea.text.background,na.selected?ea.text.selected.color:ea.text.color,Icon$4,na.selected?ea.text.selected.color:ea.icon)),theme$39.sizes(ea=>lt$1(["height:",";font-size:",";font-weight:",";"],ea.text.height,ea.text.fontSize,ea.text.fontWeight)),NameHolder$2),NameHolder$1=dt$1.span.withConfig({displayName:"ButtonTab__NameHolder",componentId:"sc-1eoj5hn-0"})([""]),ButtonTab=ea=>{const{name:na,className:ra,icon:oa,selected:aa,...sa}=ea;return jsxRuntimeExports.jsxs(SimpleItem,{className:`${ra} ${aa?"ms-item-selected":""}`,...sa,children:[oa&&jsxRuntimeExports.jsx(Icon$4,{shape:oa}),jsxRuntimeExports.jsx(NameHolder$1,{children:na})]})},theme$38=withTheme(schema$8),ButtonTab$1=dt$1(ButtonTab).withConfig({displayName:"ButtonTab",componentId:"sc-1eoj5hn-1"})(["cursor:pointer;","{margin-right:3px;}"," ",""],Icon$4,theme$38.colors((ea,na)=>lt$1(["color:",";"," svg{fill:",";}&:hover{color:",";}"],na.selected?ea.selected:ea.color,Icon$4,na.selected?ea.text.selected.color:ea.icon,ea.selected)),theme$38.sizes(ea=>lt$1(["padding:",";font-size:",";"],ea.padding,ea.fontSize))),Tabs=ea=>{const{items:na=[],variant:ra="button",...oa}=ea,aa=ra==="button"?ButtonTab$1:TextTab$1;return jsxRuntimeExports.jsx(Choose,{...oa,children:na.map(({name:sa,value:la,icon:ca})=>jsxRuntimeExports.jsx(aa,{name:sa,value:la,icon:ca},la))})},Tabs$1=dt$1(Tabs).withConfig({displayName:"Tabs",componentId:"sc-1aaq81k-0"})(["align-items:center;user-select:none;",",","{&:first-of-type{padding-left:0;}&:last-of-type{padding-right:0;}}",""],ButtonTab$1,TextTab$1,({stretch:ea})=>lt$1(ea?["width:100%;display:flex;"]:["display:inline-flex;flex-flow:row wrap;"])),useAnimationsData=()=>reactExports.useContext(AnimationsContext),AnimationPhaseTabs=ea=>{const{className:na}=ea,[{phase:ra,tabs:oa,excludedTabs:aa},sa]=useAnimationsData(),la=reactExports.useMemo(()=>oa.filter(ua=>!aa.includes(ua.value)),[oa,aa]),ca=ua=>{sa(updateAnimationContextData({phase:ua}))};return jsxRuntimeExports.jsx(Tabs$1,{className:na,stretch:!0,variant:"text",items:la,value:ra,onChange:ca})},AnimationPhaseTabs$1=dt$1(AnimationPhaseTabs).withConfig({displayName:"AnimationPhaseTabs",componentId:"sc-7cgu5h-0"})([""]),defaultColors$1I={title:"#AAAAAA",content:"#AAAAAA",link:"#FFFFFF",linkHover:"#FFFFFF"},colors$1I={dark:defaultColors$1I},defaultSizing$1t={content:{fontSize:"14px",fontWeight:"400"},title:{fontSize:"20px",fontWeight:"600",marginBottom:"10px"}},sizes$1I={default:defaultSizing$1t},scheme$1h=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1I,sizes:sizes$1I},Symbol.toStringTag,{value:"Module"})),Disconnected="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56.678'%20height='56.678'%20viewBox='0%200%2056.678%2056.678'%3e%3cg%20id='disconnected'%20transform='translate(-234.022%20-201.139)'%3e%3cpath%20id='Rectangle_5496'%20data-name='Rectangle%205496'%20d='M4.092,0H7.261A12.277,12.277,0,0,1,19.538,12.277v0A12.277,12.277,0,0,1,7.261,24.554H4.092A4.092,4.092,0,0,1,0,20.462V4.092A4.092,4.092,0,0,1,4.092,0Z'%20transform='translate(265.199%20244.001)%20rotate(135)'%20fill='%23aaa'/%3e%3cpath%20id='Rectangle_5497'%20data-name='Rectangle%205497'%20d='M12.277,0h3.5a4.092,4.092,0,0,1,4.092,4.092V20.462a4.092,4.092,0,0,1-4.092,4.092h-3.5A12.277,12.277,0,0,1,0,12.277v0A12.277,12.277,0,0,1,12.277,0Z'%20transform='translate(290.7%20218.501)%20rotate(135)'%20fill='%23aaa'/%3e%3crect%20id='Rectangle_5498'%20data-name='Rectangle%205498'%20width='10.464'%20height='5.224'%20rx='2'%20transform='translate(247.468%20247.695)%20rotate(135)'%20fill='%23aaa'/%3e%3crect%20id='Rectangle_5499'%20data-name='Rectangle%205499'%20width='12.538'%20height='5.224'%20rx='2'%20transform='translate(289.211%20205.952)%20rotate(135)'%20fill='%23aaa'/%3e%3cpath%20id='Rectangle_5500'%20data-name='Rectangle%205500'%20d='M2.09,0H9.4a0,0,0,0,1,0,0V4.179a0,0,0,0,1,0,0H2.09A2.09,2.09,0,0,1,0,2.09v0A2.09,2.09,0,0,1,2.09,0Z'%20transform='translate(268.155%20233.658)%20rotate(135)'%20fill='%23aaa'/%3e%3cpath%20id='Rectangle_5501'%20data-name='Rectangle%205501'%20d='M2.09,0H9.4a0,0,0,0,1,0,0V4.179a0,0,0,0,1,0,0H2.09A2.09,2.09,0,0,1,0,2.09v0A2.09,2.09,0,0,1,2.09,0Z'%20transform='translate(261.136%20226.639)%20rotate(135)'%20fill='%23aaa'/%3e%3c/g%3e%3c/svg%3e",defaultColors$1H={color:"#4980F5",hover:"#FFFFFF",hoverUnderline:!1},colors$1H={dark:defaultColors$1H,light:{color:"#2F80ED",hover:"#2F80ED",hoverUnderline:!0}},defaultSizing$1s={route:{size:"16px",fontWeight:"600"},default:{size:"12px",fontWeight:"600"}},sizes$1H={default:defaultSizing$1s},scheme$1g=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1H,sizes:sizes$1H},Symbol.toStringTag,{value:"Module"})),StyledLink$1=({backIcon:ea,children:na,...ra})=>jsxRuntimeExports.jsxs(Link$1,{...ra,children:[ea&&jsxRuntimeExports.jsx(SvgBackArrow,{}),na]}),theme$37=withTheme(scheme$1g);dt$1(StyledLink$1).withConfig({displayName:"RouterLink",componentId:"sc-i9vts4-0"})(["text-decoration:none;transition:color 150ms ease-out;svg{margin-right:5px;}"," ",""],theme$37.colors(ea=>lt$1(["color:",";svg{fill:",";}&:hover{color:",";}"],ea.color,ea.color,ea.hover)),theme$37.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.route.size,ea.route.fontWeight)));const StyledLink=ea=>jsxRuntimeExports.jsx(BaseButton$1,{...ea}),theme$36=withTheme(scheme$1g),SimpleLink=dt$1(StyledLink).withConfig({displayName:"SimpleLink",componentId:"sc-jae7wj-0"})(["text-decoration:none;transition:color 150ms ease-out;"," "," svg{fill:currentColor;margin-right:4px;}",""],({inline:ea})=>ea?lt$1(["display:inline;margin:auto;padding:0;"]):"",theme$36.colors(ea=>lt$1(["color:",";&:hover,&:active,&:focus{color:",";","}"],ea.color,ea.hover,ea.hoverUnderline?"text-decoration: underline;":"")),theme$36.sizes(ea=>lt$1(["font-weight:",";"],ea.default.fontWeight))),Title$A=dt$1.h4.withConfig({displayName:"AccessBlockedNotice__Title",componentId:"sc-3dja26-0"})([""]),Content$g=dt$1.p.withConfig({displayName:"AccessBlockedNotice__Content",componentId:"sc-3dja26-1"})([""]),AccessBlockedNotice=({className:ea,iconWidth:na="38px",iconHeight:ra="38px",title:oa})=>{const{t:aa}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"cover",src:Disconnected,width:na,height:ra}),oa&&jsxRuntimeExports.jsx(Title$A,{children:oa}),jsxRuntimeExports.jsx(Content$g,{children:aa("Your website does not have access to Depicter’s assets server. Please ask your hosting provider to whitelist `api.depicter.com`")})]})},theme$35=withTheme(scheme$1h),AccessBlockedNotice$1=dt$1(AccessBlockedNotice).withConfig({displayName:"AccessBlockedNotice",componentId:"sc-3dja26-2"})(["display:flex;flex-flow:column wrap;align-items:center;text-align:center;> ","{margin-bottom:10px;}"," ",""],ImageBox$1,theme$35.colors(ea=>lt$1(["> ","{color:",";}> ","{color:",";}> ","{color:",";}"],Content$g,ea.content,SimpleLink,ea.link,Title$A,ea.title)),theme$35.sizes(ea=>lt$1(["> ","{font-size:",";font-weight:",";margin-bottom:",";}> ","{font-size:",";font-weight:",";}"],Title$A,ea.title.fontSize,ea.title.fontWeight,ea.title.marginBottom,Content$g,ea.content.fontSize,ea.content.fontWeight))),defaultColors$1G={searchInput:{background:"#272727",icon:"#AAAAAA",placeholder:"#696969",text:"white",border:"#505050"},clearButton:{color:"white",hoverBackground:"#3C3C3C"},backButton:{icon:"white",background:"#4980F5",hover:{icon:"black",background:"white"}}},lightColors$1={searchInput:{background:"rgba(112, 121, 139, 0.2)",icon:"#000",placeholder:"#8D8E99",text:"#000000",border:"rgba(112, 121, 139, 0.2)"},clearButton:{color:"#000",hoverBackground:"#FFF"},backButton:{icon:"#000",background:"#4980F5",hover:{icon:"#FFF",background:"#000"}}},colors$1G={dark:defaultColors$1G,light:lightColors$1},defaultSizing$1r={large:{searchIcon:{left:"14px",top:"14px"},clearIcon:{width:"28px",height:"28px"},searchInput:{height:"44px",borderRadius:"5px",fontSize:"15px",padding:"0 12px 0 42px"},backButton:{space:"10px",width:"40px",height:"40px",borderRadius:"5px"}},medium:{searchIcon:{top:"9px",left:"11px"},clearIcon:{width:"19px",height:"19px"},searchInput:{height:"31px",borderRadius:"5px",fontSize:"12px",padding:"0 12px 0 31px"},backButton:{space:"5px",width:"31px",height:"31px",borderRadius:"5px"}}},sizes$1G={default:defaultSizing$1r},scheme$1f=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1G,sizes:sizes$1G},Symbol.toStringTag,{value:"Module"})),SearchIconComponent=dt$1(({className:ea,size:na})=>na==="medium"?jsxRuntimeExports.jsx(SvgSearchMedium,{className:ea}):jsxRuntimeExports.jsx(SvgSearch,{className:ea})).withConfig({displayName:"SearchIcon",componentId:"sc-zji32k-0"})([""]),IconWrapper=dt$1.div.withConfig({displayName:"SearchBar__IconWrapper",componentId:"sc-y7pc15-0"})([""]),ClearButtonIcon=dt$1(Icon$4).withConfig({displayName:"SearchBar__ClearButtonIcon",componentId:"sc-y7pc15-1"})([""]),StyledSearchIcon=dt$1(Icon$4).withConfig({displayName:"SearchBar__StyledSearchIcon",componentId:"sc-y7pc15-2"})([""]),SearchBar=reactExports.forwardRef((ea,na)=>{const{value:ra="",size:oa="large",onSearch:aa,backButton:sa=!1,onBack:la,className:ca,searchPlaceholder:ua,clearButton:da=!0,throttleSearch:pa,emptyValue:ha,preventClearChange:ga,searchIcon:fa=SearchIconComponent,onFocus:ma,onBlur:va,onInput:xa,onClear:ya,onKeyDown:Aa,onInputClear:Ca}=ea,[Sa,wa]=reactExports.useState(ra),ba=reactExports.useRef();reactExports.useEffect(()=>{wa(ra)},[ra]);const Ea=reactExports.useCallback(Ia=>{Ia.preventDefault(),aa&&(clearTimeout(ba.current),aa(Sa))},[aa,Sa]),$a=reactExports.useCallback(Ia=>{const Oa=Ia.currentTarget.value;if(clearTimeout(ba.current),wa(Oa),!Oa.length){Ca?.(),aa?.("");return}pa?ba.current=window.setTimeout(()=>{aa?.(Oa)},pa):aa?.(Oa)},[Ca,aa,pa]);reactExports.useEffect(()=>()=>{clearTimeout(ba.current)},[]);const Ma=reactExports.useCallback(()=>{wa(ha||""),ya?.(),!ga&&aa&&aa(ha||"")},[ga,ha,ya,aa]);return jsxRuntimeExports.jsxs("div",{className:ca,children:[sa&&jsxRuntimeExports.jsx(BaseButton$1,{onClick:la,icon:jsxRuntimeExports.jsx(SvgBack$1,{})}),jsxRuntimeExports.jsxs("form",{onSubmit:Ea,children:[jsxRuntimeExports.jsx(IconWrapper,{children:typeof fa=="string"?jsxRuntimeExports.jsx(StyledSearchIcon,{shape:fa}):jsxRuntimeExports.jsx(fa,{size:oa})}),da&&Sa&&jsxRuntimeExports.jsx(ClearButtonIcon,{onClick:Ma,shape:oa==="medium"?SvgCrossMedium:SvgCross}),jsxRuntimeExports.jsx("input",{placeholder:ua,type:"text",value:Sa,onChange:$a,ref:na,onFocus:ma,onInput:xa,onBlur:va,onKeyDown:Aa})]})]})}),theme$34=withTheme(scheme$1f),SearchBar$1=dt$1(SearchBar).withConfig({displayName:"SearchBar",componentId:"sc-y7pc15-3"})(["display:flex;width:100%;margin:10px 0;","{display:flex;align-items:center;justify-content:center;}form{position:relative;flex:1;}input{border:solid 1px;width:100%;"," ","}","{position:absolute;pointer-events:none;",";",";}","{position:absolute;width:40px;height:100%;right:0;display:flex;align-items:center;justify-content:center;cursor:pointer;&::after{content:'';display:block;border-radius:50%;position:absolute;opacity:0;transition:opacity 100ms;",";}&:hover::after{opacity:1;}svg{position:relative;z-index:1;}",";}","{&,svg{transition:all 300ms;}",";",";}"],BaseButton$1,theme$34.colors(({searchInput:ea})=>lt$1(["background:",";color:",";&::placeholder{color:",";}border-color:",";"],ea.background,ea.text,ea.placeholder,ea.border)),theme$34.sizes((ea,{size:na="large"})=>lt$1(["padding:",";height:",";border-radius:",";font-size:",";"],ea[na].searchInput.padding,ea[na].searchInput.height,ea[na].searchInput.borderRadius,ea[na].searchInput.fontSize)),IconWrapper,theme$34.sizes((ea,{size:na="large"})=>lt$1(["top:",";left:",";"],ea[na].searchIcon.top,ea[na].searchIcon.left)),theme$34.colors(({searchInput:ea})=>lt$1(["svg{fill:",";}"],ea.icon)),ClearButtonIcon,theme$34.sizes((ea,{size:na="large"})=>lt$1(["top:calc(50% - "," / 2px);left:calc(50% - "," / 2px);width:",";height:",";"],ea[na].clearIcon.width,ea[na].clearIcon.height,ea[na].clearIcon.width,ea[na].clearIcon.height)),theme$34.colors(({clearButton:ea})=>lt$1(["fill:",";&::after{background-color:",";}"],ea.color,ea.hoverBackground)),BaseButton$1,theme$34.colors(({backButton:ea})=>lt$1(["background:",";svg{fill:",";}&:hover{background:",";svg{fill:",";}}"],ea.background,ea.icon,ea.hover.background,ea.hover.icon)),theme$34.sizes((ea,{size:na="large"})=>lt$1(["width:",";height:",";margin-right:",";border-radius:",";"],ea[na].backButton.width,ea[na].backButton.height,ea[na].backButton.space,ea[na].backButton.borderRadius))),defaultColors$1F={background:"rgba(0,0,0,0.34)",label:"#AAAAAA",icon:"#FFFFFF",hover:{border:"#4980F5"}},colors$1F={dark:defaultColors$1F},defaultSizing$1q={borderRadius:"4px",label:{fontSize:"12px",fontWeight:"600",space:"5px"},hover:{borderWidth:"2px",borderRadius:"4px"}},sizes$1F={default:defaultSizing$1q},schema$7=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1F,sizes:sizes$1F},Symbol.toStringTag,{value:"Module"})),IconContainer=dt$1.div.withConfig({displayName:"IconBox__IconContainer",componentId:"sc-f2qn4l-0"})([""]),IconBox=ea=>{const{className:na,icon:ra,label:oa,onClick:aa,value:sa,backgroundColor:la}=ea,ca=reactExports.useMemo(()=>la?{backgroundColor:la}:void 0,[la]);return jsxRuntimeExports.jsxs("div",{className:na,onClick:ua=>aa?.(ua,sa),children:[jsxRuntimeExports.jsx(IconContainer,{style:ca,children:jsxRuntimeExports.jsx("div",{children:ra})}),oa&&jsxRuntimeExports.jsx("p",{children:oa})]})},theme$33=withTheme(schema$7),IconBox$1=dt$1(IconBox).withConfig({displayName:"IconBox",componentId:"sc-f2qn4l-1"})(["display:flex;flex-direction:column;align-items:center;cursor:pointer;&:hover{","::after{opacity:1;}}","{position:relative;width:100%;padding-bottom:100%;> div{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-around;}&::after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;border:solid;opacity:0;transition:opacity 300ms;}}p{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;}"," "," ",";"],IconContainer,IconContainer,({selected:ea})=>ea&&lt$1(["","::after{opacity:1 !important;}"],IconContainer),theme$33.colors((ea,na)=>lt$1(["color:",";"," ","{background-color:",";&::after{border-color:",";}}"],ea.label,na.setIconColor!==!1?lt$1(["svg{fill:",";}"],ea.icon):"",IconContainer,ea.background,ea.hover.border)),theme$33.sizes(ea=>lt$1(["","{border-radius:",";&::after{border-width:",";border-radius:",";}}p{font-size:",";font-weight:",";margin-top:",";}"],IconContainer,ea.borderRadius,ea.hover.borderWidth,ea.hover.borderRadius,ea.label.fontSize,ea.label.fontWeight,ea.label.space))),defaultColors$1E={animationCategory:{background:"rgba(0,0,0,0.34)",name:"#AAAAAA",icon:"#FFFFFF"},presetAnimationItem:{background:"rgba(0,0,0,0.34)",color:"#FFFFFF",hover:{background:"#4980F5"}},animationNotice:{title:"#FFFFFF",desc:"#AAAAAA"},animationWizard:{hover:"#4980F5"}},colors$1E={dark:defaultColors$1E},defaultSizing$1p={categoriesList:{marginTop:"0",space:"10px"},animationCategory:{width:"71px",height:"71px",borderRadius:"4px",name:{fontSize:"12px",fontWeight:"600",space:"5px"}},presetAnimationItem:{fontWeight:"600",fontSize:"12px",padding:"16px 15px",borderRadius:"5px",space:"5px"},animationNotice:{title:{fontSize:"16px",fontWeight:"500"},desc:{fontSize:"16px",fontWeight:"500"}}},sizes$1E={default:defaultSizing$1p},schema$6=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1E,sizes:sizes$1E},Symbol.toStringTag,{value:"Module"})),directionMap=new Map([["top","bottom"],["bottom","top"],["left","right"],["right","left"],["front","back"],["back","front"],["custom","custom"],["none","none"],["shuffle","shuffle"]]),originsMap=new Map([["tl","br"],["br","tl"],["tr","bl"],["bl","tr"],["tc","bc"],["bc","tc"],["ml","mr"],["mr","ml"],["mc","mc"]]),presetsMap=new Map([["coverFromLeft","coverFromRight"],["coverFromRight","coverFromLeft"],["coverFromTop","coverFromBottom"],["coverFromBottom","coverFromTop"],["coverToLeft","coverToRight"],["coverToRight","coverToLeft"],["coverToTop","coverToBottom"],["coverToBottom","coverToTop"],["none","none"],["contentFromLeft","contentFromRight"],["contentFromRight","contentFromLeft"],["contentFromTop","contentFromBottom"],["contentFromBottom","contentFromTop"],["contentScaleUp","contentScaleDown"],["contentScaleDown","contentScaleUp"]]),getOppositeDirection=ea=>{if(!directionMap.has(ea))throw new Error(`Opposite value not found for direction: ${ea}`);return directionMap.get(ea)},getOppositeOrigin=ea=>{if(!originsMap.has(ea))throw new Error(`Opposite value not found for origin: ${ea}`);return originsMap.get(ea)},getOppositePreset=ea=>{if(!presetsMap.has(ea))throw new Error(`Opposite value not found for preset: ${ea}`);return presetsMap.get(ea)},revertNumberValue=ea=>typeof ea=="number"?-ea:{value:-ea.value,unit:ea.unit},keyFunctionsMap={direction:getOppositeDirection,staggerDirection:getOppositeDirection,x:revertNumberValue,y:revertNumberValue,z:revertNumberValue,rotate:revertNumberValue,circleOrigin:getOppositeOrigin,presetId:getOppositePreset},getAnimatorInheritValue=ea=>{const na={...ea},ra=Object.keys(keyFunctionsMap);return Object.keys(na).forEach(oa=>{if(ra.includes(oa)){const aa=keyFunctionsMap[oa];na[oa]=aa(na[oa])}else typeof na[oa]=="object"&&(na[oa]=getAnimatorInheritValue(na[oa]))}),na},InheritedItem=dt$1(OutlineButton$1).withConfig({displayName:"AnimationCategoriesList__InheritedItem",componentId:"sc-zgiuxi-0"})([""]),AnimationCategoriesList=ea=>{const{className:na}=ea,[{phase:ra,categories:{items:oa},selector:aa,action:sa},la]=useAnimationsData(),ca=useSelector(reactExports.useMemo(()=>aa("in.data.$bp"),[aa])),ua=useDispatchAndToHistory(),{t:da}=useTranslation(),pa=reactExports.useCallback(fa=>{la(updateAnimationContextData({categories:{selected:fa,search:""},configurationState:"animationPresets"}))},[la]),ha=reactExports.useCallback(fa=>{const{id:ma,name:va,thumbnail:xa}=fa;return jsxRuntimeExports.jsx(IconBox$1,{onClick:()=>pa(fa),label:va,value:ma,icon:jsxRuntimeExports.jsx("img",{src:xa,alt:va})},ma)},[pa]),ga=reactExports.useCallback(()=>{const{type:fa,params:ma}=ca;ua(sa("out.data.$bp")({value:{type:fa,params:getAnimatorInheritValue(ma),phase:"out",wizard:!1}}))},[sa,ca,ua]);return jsxRuntimeExports.jsxs("div",{className:na,children:[ra==="out"&&ca?jsxRuntimeExports.jsx(InheritedItem,{size:"small",onClick:ga,children:da("Copy from Animation In")}):null,oa.map(ha)]})},theme$32=withTheme(schema$6),AnimationCategoriesList$1=dt$1(AnimationCategoriesList).withConfig({displayName:"AnimationCategoriesList",componentId:"sc-zgiuxi-1"})(["display:grid;grid-template-columns:repeat(3,minmax(0,1fr));","{margin-top:10px;}","{width:100%;}","{grid-column:1 / -1;}",""],AccessBlockedNotice$1,IconBox$1,InheritedItem,theme$32.sizes(ea=>lt$1(["grid-gap:",";"],ea.categoriesList.space))),AnimationSearchBar=ea=>{const{className:na}=ea,[{categories:{selected:ra,search:oa}},aa]=useAnimationsData(),sa=useDispatch(),{t:la}=useTranslation(),ca=reactExports.useCallback(da=>{aa(updateAnimationContextData({categories:{search:da},configurationState:da?"animationPresets":"animationCategories"}))},[aa]),ua=reactExports.useCallback(()=>{aa(updateAnimationContextData({categories:{selected:null,search:""},configurationState:"animationCategories"})),sa(updateActiveSectionOptionsTab("animation"))},[aa,sa]);return jsxRuntimeExports.jsx(SearchBar$1,{className:na,backButton:!!ra,onBack:ua,value:oa,onSearch:ca,size:"medium",searchPlaceholder:la("Search..."),throttleSearch:1e3})},AnimationSearchBar$1=dt$1(AnimationSearchBar).withConfig({displayName:"AnimationSearchBar",componentId:"sc-jok3on-0"})(["margin:0;"]),assetsNotfound="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56.569'%20height='56.569'%20viewBox='0%200%2056.569%2056.569'%3e%3cg%20id='no_image'%20data-name='no%20image'%20transform='translate(-228.414%20-193.848)'%3e%3cg%20id='Rectangle_1776'%20data-name='Rectangle%201776'%20transform='translate(231.623%20197)'%20fill='none'%20stroke='%23aaa'%20stroke-width='2'%3e%3crect%20width='51'%20height='51'%20rx='7'%20stroke='none'/%3e%3crect%20x='1'%20y='1'%20width='49'%20height='49'%20rx='6'%20fill='none'/%3e%3c/g%3e%3cg%20id='Group_464'%20data-name='Group%20464'%20transform='translate(239.752%20207.451)'%3e%3cpath%20id='Polygon_1'%20data-name='Polygon%201'%20d='M7,0l7,12H0Z'%20transform='translate(-0.129%2018.549)'%20fill='%23aaa'/%3e%3cpath%20id='Polygon_2'%20data-name='Polygon%202'%20d='M12,0,24,19H0Z'%20transform='translate(10.871%2011.549)'%20fill='%23aaa'/%3e%3ccircle%20id='Ellipse_59'%20data-name='Ellipse%2059'%20cx='5.5'%20cy='5.5'%20r='5.5'%20transform='translate(7.871%20-0.451)'%20fill='%23aaa'/%3e%3c/g%3e%3crect%20id='Rectangle_3088'%20data-name='Rectangle%203088'%20width='68'%20height='4'%20transform='translate(233.828%20246.881)%20rotate(-45)'%20fill='%23363636'/%3e%3crect%20id='Rectangle_1777'%20data-name='Rectangle%201777'%20width='77'%20height='3'%20rx='1.5'%20transform='translate(228.414%20248.295)%20rotate(-45)'%20fill='%23aaa'/%3e%3c/g%3e%3c/svg%3e",NoAssetsFound=({className:ea,children:na})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx("img",{src:assetsNotfound,alt:""}),jsxRuntimeExports.jsx("span",{children:na})]}),NoAssetsFound$1=dt$1(NoAssetsFound).withConfig({displayName:"NoAssetsFound",componentId:"sc-19r28kt-0"})(["align-self:center;margin-top:40px;text-align:center;color:#aaaaaa;margin-right:30px;display:flex;flex-direction:column;align-items:center;span{max-width:70%;display:block;font-weight:500;font-size:16px;margin-top:5px;}"]);/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var extendStatics$1=function(ea,na){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)oa.hasOwnProperty(aa)&&(ra[aa]=oa[aa])},extendStatics$1(ea,na)};function __extends$1(ea,na){extendStatics$1(ea,na);function ra(){this.constructor=ea}ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var __assign$2=function(){return __assign$2=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$2.apply(this,arguments)};function throttle(ea,na,ra,oa){var aa,sa=!1,la=0;function ca(){aa&&clearTimeout(aa)}function ua(){ca(),sa=!0}typeof na!="boolean"&&(oa=ra,ra=na,na=void 0);function da(){var pa=this,ha=Date.now()-la,ga=arguments;if(sa)return;function fa(){la=Date.now(),ra.apply(pa,ga)}function ma(){aa=void 0}oa&&!aa&&fa(),ca(),oa===void 0&&ha>ea?fa():na!==!0&&(aa=setTimeout(oa?ma:fa,oa===void 0?ea-ha:ea))}return da.cancel=ua,da}var ThresholdUnits={Pixel:"Pixel",Percent:"Percent"},defaultThreshold={unit:ThresholdUnits.Percent,value:.8};function parseThreshold(ea){return typeof ea=="number"?{unit:ThresholdUnits.Percent,value:ea*100}:typeof ea=="string"?ea.match(/^(\d*(\.\d+)?)px$/)?{unit:ThresholdUnits.Pixel,value:parseFloat(ea)}:ea.match(/^(\d*(\.\d+)?)%$/)?{unit:ThresholdUnits.Percent,value:parseFloat(ea)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),defaultThreshold):(console.warn("scrollThreshold should be string or number"),defaultThreshold)}var InfiniteScroll$2=function(ea){__extends$1(na,ea);function na(ra){var oa=ea.call(this,ra)||this;return oa.lastScrollTop=0,oa.actionTriggered=!1,oa.startY=0,oa.currentY=0,oa.dragging=!1,oa.maxPullDownDistance=0,oa.getScrollableTarget=function(){return oa.props.scrollableTarget instanceof HTMLElement?oa.props.scrollableTarget:typeof oa.props.scrollableTarget=="string"?document.getElementById(oa.props.scrollableTarget):(oa.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
        happen because the element may not have been added to DOM yet.
        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
      `),null)},oa.onStart=function(aa){oa.lastScrollTop||(oa.dragging=!0,aa instanceof MouseEvent?oa.startY=aa.pageY:aa instanceof TouchEvent&&(oa.startY=aa.touches[0].pageY),oa.currentY=oa.startY,oa._infScroll&&(oa._infScroll.style.willChange="transform",oa._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},oa.onMove=function(aa){oa.dragging&&(aa instanceof MouseEvent?oa.currentY=aa.pageY:aa instanceof TouchEvent&&(oa.currentY=aa.touches[0].pageY),!(oa.currentY<oa.startY)&&(oa.currentY-oa.startY>=Number(oa.props.pullDownToRefreshThreshold)&&oa.setState({pullToRefreshThresholdBreached:!0}),!(oa.currentY-oa.startY>oa.maxPullDownDistance*1.5)&&oa._infScroll&&(oa._infScroll.style.overflow="visible",oa._infScroll.style.transform="translate3d(0px, "+(oa.currentY-oa.startY)+"px, 0px)")))},oa.onEnd=function(){oa.startY=0,oa.currentY=0,oa.dragging=!1,oa.state.pullToRefreshThresholdBreached&&(oa.props.refreshFunction&&oa.props.refreshFunction(),oa.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){oa._infScroll&&(oa._infScroll.style.overflow="auto",oa._infScroll.style.transform="none",oa._infScroll.style.willChange="none")})},oa.onScrollListener=function(aa){typeof oa.props.onScroll=="function"&&setTimeout(function(){return oa.props.onScroll&&oa.props.onScroll(aa)},0);var sa=oa.props.height||oa._scrollableNode?aa.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!oa.actionTriggered){var la=oa.props.inverse?oa.isElementAtTop(sa,oa.props.scrollThreshold):oa.isElementAtBottom(sa,oa.props.scrollThreshold);la&&oa.props.hasMore&&(oa.actionTriggered=!0,oa.setState({showLoader:!0}),oa.props.next&&oa.props.next()),oa.lastScrollTop=sa.scrollTop}},oa.state={showLoader:!1,pullToRefreshThresholdBreached:!1},oa.throttledOnScrollListener=throttle(150,oa.onScrollListener).bind(oa),oa.onStart=oa.onStart.bind(oa),oa.onMove=oa.onMove.bind(oa),oa.onEnd=oa.onEnd.bind(oa),oa}return na.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
          Pull Down To Refresh functionality will not work
          as expected. Check README.md for usage'`)},na.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},na.prototype.UNSAFE_componentWillReceiveProps=function(ra){this.props.dataLength!==ra.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},na.prototype.isElementAtTop=function(ra,oa){oa===void 0&&(oa=.8);var aa=ra===document.body||ra===document.documentElement?window.screen.availHeight:ra.clientHeight,sa=parseThreshold(oa);return sa.unit===ThresholdUnits.Pixel?ra.scrollTop<=sa.value+aa-ra.scrollHeight+1||ra.scrollTop===0:ra.scrollTop<=sa.value/100+aa-ra.scrollHeight+1||ra.scrollTop===0},na.prototype.isElementAtBottom=function(ra,oa){oa===void 0&&(oa=.8);var aa=ra===document.body||ra===document.documentElement?window.screen.availHeight:ra.clientHeight,sa=parseThreshold(oa);return sa.unit===ThresholdUnits.Pixel?ra.scrollTop+aa>=ra.scrollHeight-sa.value:ra.scrollTop+aa>=sa.value/100*ra.scrollHeight},na.prototype.render=function(){var ra=this,oa=__assign$2({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),aa=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),sa=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return React.createElement("div",{style:sa,className:"infinite-scroll-component__outerdiv"},React.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(la){return ra._infScroll=la},style:oa},this.props.pullDownToRefresh&&React.createElement("div",{style:{position:"relative"},ref:function(la){return ra._pullDown=la}},React.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!aa&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},na}(reactExports.Component),lib$3={},Scrollbars$2={},raf={exports:{}},performanceNow$1={exports:{}},performanceNow=performanceNow$1.exports,hasRequiredPerformanceNow;function requirePerformanceNow(){return hasRequiredPerformanceNow||(hasRequiredPerformanceNow=1,function(){var ea,na,ra,oa,aa,sa;typeof performance<"u"&&performance!==null&&performance.now?performanceNow$1.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow$1.exports=function(){return(ea()-aa)/1e6},na=process.hrtime,ea=function(){var la;return la=na(),la[0]*1e9+la[1]},oa=ea(),sa=process.uptime()*1e9,aa=oa-sa):Date.now?(performanceNow$1.exports=function(){return Date.now()-ra},ra=Date.now()):(performanceNow$1.exports=function(){return new Date().getTime()-ra},ra=new Date().getTime())}.call(performanceNow)),performanceNow$1.exports}var hasRequiredRaf;function requireRaf(){if(hasRequiredRaf)return raf.exports;hasRequiredRaf=1;for(var ea=requirePerformanceNow(),na=typeof window>"u"?commonjsGlobal$1:window,ra=["moz","webkit"],oa="AnimationFrame",aa=na["request"+oa],sa=na["cancel"+oa]||na["cancelRequest"+oa],la=0;!aa&&la<ra.length;la++)aa=na[ra[la]+"Request"+oa],sa=na[ra[la]+"Cancel"+oa]||na[ra[la]+"CancelRequest"+oa];if(!aa||!sa){var ca=0,ua=0,da=[],pa=1e3/60;aa=function(ha){if(da.length===0){var ga=ea(),fa=Math.max(0,pa-(ga-ca));ca=fa+ga,setTimeout(function(){var ma=da.slice(0);da.length=0;for(var va=0;va<ma.length;va++)if(!ma[va].cancelled)try{ma[va].callback(ca)}catch(xa){setTimeout(function(){throw xa},0)}},Math.round(fa))}return da.push({handle:++ua,callback:ha,cancelled:!1}),ua},sa=function(ha){for(var ga=0;ga<da.length;ga++)da[ga].handle===ha&&(da[ga].cancelled=!0)}}return raf.exports=function(ha){return aa.call(na,ha)},raf.exports.cancel=function(){sa.apply(na,arguments)},raf.exports.polyfill=function(ha){ha||(ha=na),ha.requestAnimationFrame=aa,ha.cancelAnimationFrame=sa},raf.exports}var domCss={exports:{}},prefixStyle,hasRequiredPrefixStyle;function requirePrefixStyle(){if(hasRequiredPrefixStyle)return prefixStyle;hasRequiredPrefixStyle=1;var ea=null,na=["Webkit","Moz","O","ms"];return prefixStyle=function(oa){ea||(ea=document.createElement("div"));var aa=ea.style;if(oa in aa)return oa;for(var sa=oa.charAt(0).toUpperCase()+oa.slice(1),la=na.length;la>=0;la--){var ca=na[la]+sa;if(ca in aa)return ca}return!1},prefixStyle}var toNoCase_1,hasRequiredToNoCase;function requireToNoCase(){if(hasRequiredToNoCase)return toNoCase_1;hasRequiredToNoCase=1,toNoCase_1=oa;var ea=/\s/,na=/(_|-|\.|:)/,ra=/([a-z][A-Z]|[A-Z][a-z])/;function oa(ua){return ea.test(ua)?ua.toLowerCase():na.test(ua)?(sa(ua)||ua).toLowerCase():ra.test(ua)?ca(ua).toLowerCase():ua.toLowerCase()}var aa=/[\W_]+(.|$)/g;function sa(ua){return ua.replace(aa,function(da,pa){return pa?" "+pa:""})}var la=/(.)([A-Z]+)/g;function ca(ua){return ua.replace(la,function(da,pa,ha){return pa+" "+ha.toLowerCase().split("").join(" ")})}return toNoCase_1}var toSpaceCase_1,hasRequiredToSpaceCase;function requireToSpaceCase(){if(hasRequiredToSpaceCase)return toSpaceCase_1;hasRequiredToSpaceCase=1;var ea=requireToNoCase();toSpaceCase_1=na;function na(ra){return ea(ra).replace(/[\W_]+(.|$)/g,function(oa,aa){return aa?" "+aa:""}).trim()}return toSpaceCase_1}var toCamelCase_1,hasRequiredToCamelCase;function requireToCamelCase(){if(hasRequiredToCamelCase)return toCamelCase_1;hasRequiredToCamelCase=1;var ea=requireToSpaceCase();toCamelCase_1=na;function na(ra){return ea(ra).replace(/\s(\w)/g,function(oa,aa){return aa.toUpperCase()})}return toCamelCase_1}var addPxToStyle,hasRequiredAddPxToStyle;function requireAddPxToStyle(){if(hasRequiredAddPxToStyle)return addPxToStyle;hasRequiredAddPxToStyle=1;var ea={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return addPxToStyle=function(na,ra){return typeof ra=="number"&&!ea[na]?ra+"px":ra},addPxToStyle}var hasRequiredDomCss;function requireDomCss(){if(hasRequiredDomCss)return domCss.exports;hasRequiredDomCss=1;var ea=requirePrefixStyle(),na=requireToCamelCase(),ra={float:"cssFloat"},oa=requireAddPxToStyle();function aa(ua,da,pa){var ha=ra[da];if(typeof ha>"u"&&(ha=la(da)),ha){if(pa===void 0)return ua.style[ha];ua.style[ha]=oa(ha,pa)}}function sa(ua,da){for(var pa in da)da.hasOwnProperty(pa)&&aa(ua,pa,da[pa])}function la(ua){var da=na(ua),pa=ea(da);return ra[da]=ra[ua]=ra[pa]=pa,pa}function ca(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:sa(arguments[0],arguments[1]):aa(arguments[0],arguments[1],arguments[2])}return domCss.exports=ca,domCss.exports.set=ca,domCss.exports.get=function(ua,da){return Array.isArray(da)?da.reduce(function(pa,ha){return pa[ha]=aa(ua,ha||""),pa},{}):aa(ua,da||"")},domCss.exports}var isString={},hasRequiredIsString;function requireIsString(){return hasRequiredIsString||(hasRequiredIsString=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=na;function na(ra){return typeof ra=="string"}}(isString)),isString}var getScrollbarWidth$1={},hasRequiredGetScrollbarWidth;function requireGetScrollbarWidth(){return hasRequiredGetScrollbarWidth||(hasRequiredGetScrollbarWidth=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=sa;var na=requireDomCss(),ra=oa(na);function oa(la){return la&&la.__esModule?la:{default:la}}var aa=!1;function sa(){if(aa!==!1)return aa;if(typeof document<"u"){var la=document.createElement("div");(0,ra.default)(la,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(la),aa=la.offsetWidth-la.clientWidth,document.body.removeChild(la)}else aa=0;return aa||0}}(getScrollbarWidth$1)),getScrollbarWidth$1}var returnFalse={},hasRequiredReturnFalse;function requireReturnFalse(){return hasRequiredReturnFalse||(hasRequiredReturnFalse=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=na;function na(){return!1}}(returnFalse)),returnFalse}var getInnerWidth={},hasRequiredGetInnerWidth;function requireGetInnerWidth(){return hasRequiredGetInnerWidth||(hasRequiredGetInnerWidth=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=na;function na(ra){var oa=ra.clientWidth,aa=getComputedStyle(ra),sa=aa.paddingLeft,la=aa.paddingRight;return oa-parseFloat(sa)-parseFloat(la)}}(getInnerWidth)),getInnerWidth}var getInnerHeight={},hasRequiredGetInnerHeight;function requireGetInnerHeight(){return hasRequiredGetInnerHeight||(hasRequiredGetInnerHeight=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=na;function na(ra){var oa=ra.clientHeight,aa=getComputedStyle(ra),sa=aa.paddingTop,la=aa.paddingBottom;return oa-parseFloat(sa)-parseFloat(la)}}(getInnerHeight)),getInnerHeight}var styles={},hasRequiredStyles;function requireStyles(){return hasRequiredStyles||(hasRequiredStyles=1,Object.defineProperty(styles,"__esModule",{value:!0}),styles.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},styles.containerStyleAutoHeight={height:"auto"},styles.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},styles.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},styles.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},styles.trackHorizontalStyleDefault={position:"absolute",height:6},styles.trackVerticalStyleDefault={position:"absolute",width:6},styles.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},styles.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},styles.disableSelectStyle={userSelect:"none"},styles.disableSelectStyleReset={userSelect:""}),styles}var defaultRenderElements={},hasRequiredDefaultRenderElements;function requireDefaultRenderElements(){if(hasRequiredDefaultRenderElements)return defaultRenderElements;hasRequiredDefaultRenderElements=1,Object.defineProperty(defaultRenderElements,"__esModule",{value:!0});var ea=Object.assign||function(pa){for(var ha=1;ha<arguments.length;ha++){var ga=arguments[ha];for(var fa in ga)Object.prototype.hasOwnProperty.call(ga,fa)&&(pa[fa]=ga[fa])}return pa};defaultRenderElements.renderViewDefault=sa,defaultRenderElements.renderTrackHorizontalDefault=la,defaultRenderElements.renderTrackVerticalDefault=ca,defaultRenderElements.renderThumbHorizontalDefault=ua,defaultRenderElements.renderThumbVerticalDefault=da;var na=requireReact(),ra=oa(na);function oa(pa){return pa&&pa.__esModule?pa:{default:pa}}function aa(pa,ha){var ga={};for(var fa in pa)ha.indexOf(fa)>=0||Object.prototype.hasOwnProperty.call(pa,fa)&&(ga[fa]=pa[fa]);return ga}function sa(pa){return ra.default.createElement("div",pa)}function la(pa){var ha=pa.style,ga=aa(pa,["style"]),fa=ea({},ha,{right:2,bottom:2,left:2,borderRadius:3});return ra.default.createElement("div",ea({style:fa},ga))}function ca(pa){var ha=pa.style,ga=aa(pa,["style"]),fa=ea({},ha,{right:2,bottom:2,top:2,borderRadius:3});return ra.default.createElement("div",ea({style:fa},ga))}function ua(pa){var ha=pa.style,ga=aa(pa,["style"]),fa=ea({},ha,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return ra.default.createElement("div",ea({style:fa},ga))}function da(pa){var ha=pa.style,ga=aa(pa,["style"]),fa=ea({},ha,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return ra.default.createElement("div",ea({style:fa},ga))}return defaultRenderElements}var hasRequiredScrollbars;function requireScrollbars(){return hasRequiredScrollbars||(hasRequiredScrollbars=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0});var na=Object.assign||function(Da){for(var Ta=1;Ta<arguments.length;Ta++){var _a=arguments[Ta];for(var La in _a)Object.prototype.hasOwnProperty.call(_a,La)&&(Da[La]=_a[La])}return Da},ra=function(){function Da(Ta,_a){for(var La=0;La<_a.length;La++){var Na=_a[La];Na.enumerable=Na.enumerable||!1,Na.configurable=!0,"value"in Na&&(Na.writable=!0),Object.defineProperty(Ta,Na.key,Na)}}return function(Ta,_a,La){return _a&&Da(Ta.prototype,_a),La&&Da(Ta,La),Ta}}(),oa=requireRaf(),aa=ba(oa),sa=requireDomCss(),la=ba(sa),ca=requireReact(),ua=requirePropTypes(),da=ba(ua),pa=requireIsString(),ha=ba(pa),ga=requireGetScrollbarWidth(),fa=ba(ga),ma=requireReturnFalse(),va=ba(ma),xa=requireGetInnerWidth(),ya=ba(xa),Aa=requireGetInnerHeight(),Ca=ba(Aa),Sa=requireStyles(),wa=requireDefaultRenderElements();function ba(Da){return Da&&Da.__esModule?Da:{default:Da}}function Ea(Da,Ta){var _a={};for(var La in Da)Ta.indexOf(La)>=0||Object.prototype.hasOwnProperty.call(Da,La)&&(_a[La]=Da[La]);return _a}function $a(Da,Ta){if(!(Da instanceof Ta))throw new TypeError("Cannot call a class as a function")}function Ma(Da,Ta){if(!Da)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ta&&(typeof Ta=="object"||typeof Ta=="function")?Ta:Da}function Ia(Da,Ta){if(typeof Ta!="function"&&Ta!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ta);Da.prototype=Object.create(Ta&&Ta.prototype,{constructor:{value:Da,enumerable:!1,writable:!0,configurable:!0}}),Ta&&(Object.setPrototypeOf?Object.setPrototypeOf(Da,Ta):Da.__proto__=Ta)}var Oa=function(Da){Ia(Ta,Da);function Ta(_a){var La;$a(this,Ta);for(var Na=arguments.length,za=Array(Na>1?Na-1:0),Fa=1;Fa<Na;Fa++)za[Fa-1]=arguments[Fa];var Ha=Ma(this,(La=Ta.__proto__||Object.getPrototypeOf(Ta)).call.apply(La,[this,_a].concat(za)));return Ha.getScrollLeft=Ha.getScrollLeft.bind(Ha),Ha.getScrollTop=Ha.getScrollTop.bind(Ha),Ha.getScrollWidth=Ha.getScrollWidth.bind(Ha),Ha.getScrollHeight=Ha.getScrollHeight.bind(Ha),Ha.getClientWidth=Ha.getClientWidth.bind(Ha),Ha.getClientHeight=Ha.getClientHeight.bind(Ha),Ha.getValues=Ha.getValues.bind(Ha),Ha.getThumbHorizontalWidth=Ha.getThumbHorizontalWidth.bind(Ha),Ha.getThumbVerticalHeight=Ha.getThumbVerticalHeight.bind(Ha),Ha.getScrollLeftForOffset=Ha.getScrollLeftForOffset.bind(Ha),Ha.getScrollTopForOffset=Ha.getScrollTopForOffset.bind(Ha),Ha.scrollLeft=Ha.scrollLeft.bind(Ha),Ha.scrollTop=Ha.scrollTop.bind(Ha),Ha.scrollToLeft=Ha.scrollToLeft.bind(Ha),Ha.scrollToTop=Ha.scrollToTop.bind(Ha),Ha.scrollToRight=Ha.scrollToRight.bind(Ha),Ha.scrollToBottom=Ha.scrollToBottom.bind(Ha),Ha.handleTrackMouseEnter=Ha.handleTrackMouseEnter.bind(Ha),Ha.handleTrackMouseLeave=Ha.handleTrackMouseLeave.bind(Ha),Ha.handleHorizontalTrackMouseDown=Ha.handleHorizontalTrackMouseDown.bind(Ha),Ha.handleVerticalTrackMouseDown=Ha.handleVerticalTrackMouseDown.bind(Ha),Ha.handleHorizontalThumbMouseDown=Ha.handleHorizontalThumbMouseDown.bind(Ha),Ha.handleVerticalThumbMouseDown=Ha.handleVerticalThumbMouseDown.bind(Ha),Ha.handleWindowResize=Ha.handleWindowResize.bind(Ha),Ha.handleScroll=Ha.handleScroll.bind(Ha),Ha.handleDrag=Ha.handleDrag.bind(Ha),Ha.handleDragEnd=Ha.handleDragEnd.bind(Ha),Ha.state={didMountUniversal:!1},Ha}return ra(Ta,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var La=this.props.universal;La&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,oa.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var La=this.view||{},Na=La.scrollLeft,za=Na===void 0?0:Na,Fa=La.scrollTop,Ha=Fa===void 0?0:Fa,Va=La.scrollWidth,Ua=Va===void 0?0:Va,Qa=La.scrollHeight,Wa=Qa===void 0?0:Qa,Za=La.clientWidth,Xa=Za===void 0?0:Za,tl=La.clientHeight,il=tl===void 0?0:tl;return{left:za/(Ua-Xa)||0,top:Ha/(Wa-il)||0,scrollLeft:za,scrollTop:Ha,scrollWidth:Ua,scrollHeight:Wa,clientWidth:Xa,clientHeight:il}}},{key:"getThumbHorizontalWidth",value:function(){var La=this.props,Na=La.thumbSize,za=La.thumbMinSize,Fa=this.view,Ha=Fa.scrollWidth,Va=Fa.clientWidth,Ua=(0,ya.default)(this.trackHorizontal),Qa=Math.ceil(Va/Ha*Ua);return Ua===Qa?0:Na||Math.max(Qa,za)}},{key:"getThumbVerticalHeight",value:function(){var La=this.props,Na=La.thumbSize,za=La.thumbMinSize,Fa=this.view,Ha=Fa.scrollHeight,Va=Fa.clientHeight,Ua=(0,Ca.default)(this.trackVertical),Qa=Math.ceil(Va/Ha*Ua);return Ua===Qa?0:Na||Math.max(Qa,za)}},{key:"getScrollLeftForOffset",value:function(La){var Na=this.view,za=Na.scrollWidth,Fa=Na.clientWidth,Ha=(0,ya.default)(this.trackHorizontal),Va=this.getThumbHorizontalWidth();return La/(Ha-Va)*(za-Fa)}},{key:"getScrollTopForOffset",value:function(La){var Na=this.view,za=Na.scrollHeight,Fa=Na.clientHeight,Ha=(0,Ca.default)(this.trackVertical),Va=this.getThumbVerticalHeight();return La/(Ha-Va)*(za-Fa)}},{key:"scrollLeft",value:function(){var La=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=La)}},{key:"scrollTop",value:function(){var La=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=La)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var La=this.view,Na=this.trackHorizontal,za=this.trackVertical,Fa=this.thumbHorizontal,Ha=this.thumbVertical;La.addEventListener("scroll",this.handleScroll),(0,fa.default)()&&(Na.addEventListener("mouseenter",this.handleTrackMouseEnter),Na.addEventListener("mouseleave",this.handleTrackMouseLeave),Na.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),za.addEventListener("mouseenter",this.handleTrackMouseEnter),za.addEventListener("mouseleave",this.handleTrackMouseLeave),za.addEventListener("mousedown",this.handleVerticalTrackMouseDown),Fa.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),Ha.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var La=this.view,Na=this.trackHorizontal,za=this.trackVertical,Fa=this.thumbHorizontal,Ha=this.thumbVertical;La.removeEventListener("scroll",this.handleScroll),(0,fa.default)()&&(Na.removeEventListener("mouseenter",this.handleTrackMouseEnter),Na.removeEventListener("mouseleave",this.handleTrackMouseLeave),Na.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),za.removeEventListener("mouseenter",this.handleTrackMouseEnter),za.removeEventListener("mouseleave",this.handleTrackMouseLeave),za.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),Fa.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),Ha.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(La){var Na=this,za=this.props,Fa=za.onScroll,Ha=za.onScrollFrame;Fa&&Fa(La),this.update(function(Va){var Ua=Va.scrollLeft,Qa=Va.scrollTop;Na.viewScrollLeft=Ua,Na.viewScrollTop=Qa,Ha&&Ha(Va)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var La=this.props.onScrollStart;La&&La(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var La=this.props.autoHide;La&&this.showTracks()}},{key:"handleScrollStop",value:function(){var La=this.props.onScrollStop;La&&La(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var La=this.props.autoHide;La&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(La){La.preventDefault();var Na=La.target,za=La.clientX,Fa=Na.getBoundingClientRect(),Ha=Fa.left,Va=this.getThumbHorizontalWidth(),Ua=Math.abs(Ha-za)-Va/2;this.view.scrollLeft=this.getScrollLeftForOffset(Ua)}},{key:"handleVerticalTrackMouseDown",value:function(La){La.preventDefault();var Na=La.target,za=La.clientY,Fa=Na.getBoundingClientRect(),Ha=Fa.top,Va=this.getThumbVerticalHeight(),Ua=Math.abs(Ha-za)-Va/2;this.view.scrollTop=this.getScrollTopForOffset(Ua)}},{key:"handleHorizontalThumbMouseDown",value:function(La){La.preventDefault(),this.handleDragStart(La);var Na=La.target,za=La.clientX,Fa=Na.offsetWidth,Ha=Na.getBoundingClientRect(),Va=Ha.left;this.prevPageX=Fa-(za-Va)}},{key:"handleVerticalThumbMouseDown",value:function(La){La.preventDefault(),this.handleDragStart(La);var Na=La.target,za=La.clientY,Fa=Na.offsetHeight,Ha=Na.getBoundingClientRect(),Va=Ha.top;this.prevPageY=Fa-(za-Va)}},{key:"setupDragging",value:function(){(0,la.default)(document.body,Sa.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=va.default}},{key:"teardownDragging",value:function(){(0,la.default)(document.body,Sa.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(La){this.dragging=!0,La.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(La){if(this.prevPageX){var Na=La.clientX,za=this.trackHorizontal.getBoundingClientRect(),Fa=za.left,Ha=this.getThumbHorizontalWidth(),Va=Ha-this.prevPageX,Ua=-Fa+Na-Va;this.view.scrollLeft=this.getScrollLeftForOffset(Ua)}if(this.prevPageY){var Qa=La.clientY,Wa=this.trackVertical.getBoundingClientRect(),Za=Wa.top,Xa=this.getThumbVerticalHeight(),tl=Xa-this.prevPageY,il=-Za+Qa-tl;this.view.scrollTop=this.getScrollTopForOffset(il)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var La=this.props.autoHide;La&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var La=this.props.autoHide;La&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var La=this.props.autoHide;La&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,la.default)(this.trackHorizontal,{opacity:1}),(0,la.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var La=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var Na=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,la.default)(La.trackHorizontal,{opacity:0}),(0,la.default)(La.trackVertical,{opacity:0})},Na)}}},{key:"detectScrolling",value:function(){var La=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){La.lastViewScrollLeft===La.viewScrollLeft&&La.lastViewScrollTop===La.viewScrollTop&&(clearInterval(La.detectScrollingInterval),La.scrolling=!1,La.handleScrollStop()),La.lastViewScrollLeft=La.viewScrollLeft,La.lastViewScrollTop=La.viewScrollTop},100))}},{key:"raf",value:function(La){var Na=this;this.requestFrame&&aa.default.cancel(this.requestFrame),this.requestFrame=(0,aa.default)(function(){Na.requestFrame=void 0,La()})}},{key:"update",value:function(La){var Na=this;this.raf(function(){return Na._update(La)})}},{key:"_update",value:function(La){var Na=this.props,za=Na.onUpdate,Fa=Na.hideTracksWhenNotNeeded,Ha=this.getValues();if((0,fa.default)()){var Va=Ha.scrollLeft,Ua=Ha.clientWidth,Qa=Ha.scrollWidth,Wa=(0,ya.default)(this.trackHorizontal),Za=this.getThumbHorizontalWidth(),Xa=Va/(Qa-Ua)*(Wa-Za),tl={width:Za,transform:"translateX("+Xa+"px)"},il=Ha.scrollTop,Ja=Ha.clientHeight,nl=Ha.scrollHeight,Ya=(0,Ca.default)(this.trackVertical),rl=this.getThumbVerticalHeight(),sl=il/(nl-Ja)*(Ya-rl),dl={height:rl,transform:"translateY("+sl+"px)"};if(Fa){var pl={visibility:Qa>Ua?"visible":"hidden"},ml={visibility:nl>Ja?"visible":"hidden"};(0,la.default)(this.trackHorizontal,pl),(0,la.default)(this.trackVertical,ml)}(0,la.default)(this.thumbHorizontal,tl),(0,la.default)(this.thumbVertical,dl)}za&&za(Ha),typeof La=="function"&&La(Ha)}},{key:"render",value:function(){var La=this,Na=(0,fa.default)(),za=this.props;za.onScroll,za.onScrollFrame,za.onScrollStart,za.onScrollStop,za.onUpdate;var Fa=za.renderView,Ha=za.renderTrackHorizontal,Va=za.renderTrackVertical,Ua=za.renderThumbHorizontal,Qa=za.renderThumbVertical,Wa=za.tagName;za.hideTracksWhenNotNeeded;var Za=za.autoHide;za.autoHideTimeout;var Xa=za.autoHideDuration;za.thumbSize,za.thumbMinSize;var tl=za.universal,il=za.autoHeight,Ja=za.autoHeightMin,nl=za.autoHeightMax,Ya=za.style,rl=za.children,sl=Ea(za,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),dl=this.state.didMountUniversal,pl=na({},Sa.containerStyleDefault,il&&na({},Sa.containerStyleAutoHeight,{minHeight:Ja,maxHeight:nl}),Ya),ml=na({},Sa.viewStyleDefault,{marginRight:Na?-Na:0,marginBottom:Na?-Na:0},il&&na({},Sa.viewStyleAutoHeight,{minHeight:(0,ha.default)(Ja)?"calc("+Ja+" + "+Na+"px)":Ja+Na,maxHeight:(0,ha.default)(nl)?"calc("+nl+" + "+Na+"px)":nl+Na}),il&&tl&&!dl&&{minHeight:Ja,maxHeight:nl},tl&&!dl&&Sa.viewStyleUniversalInitial),Rl={transition:"opacity "+Xa+"ms",opacity:0},Tl=na({},Sa.trackHorizontalStyleDefault,Za&&Rl,(!Na||tl&&!dl)&&{display:"none"}),Il=na({},Sa.trackVerticalStyleDefault,Za&&Rl,(!Na||tl&&!dl)&&{display:"none"});return(0,ca.createElement)(Wa,na({},sl,{style:pl,ref:function(Fl){La.container=Fl}}),[(0,ca.cloneElement)(Fa({style:ml}),{key:"view",ref:function(Fl){La.view=Fl}},rl),(0,ca.cloneElement)(Ha({style:Tl}),{key:"trackHorizontal",ref:function(Fl){La.trackHorizontal=Fl}},(0,ca.cloneElement)(Ua({style:Sa.thumbHorizontalStyleDefault}),{ref:function(Fl){La.thumbHorizontal=Fl}})),(0,ca.cloneElement)(Va({style:Il}),{key:"trackVertical",ref:function(Fl){La.trackVertical=Fl}},(0,ca.cloneElement)(Qa({style:Sa.thumbVerticalStyleDefault}),{ref:function(Fl){La.thumbVertical=Fl}}))])}}]),Ta}(ca.Component);ea.default=Oa,Oa.propTypes={onScroll:da.default.func,onScrollFrame:da.default.func,onScrollStart:da.default.func,onScrollStop:da.default.func,onUpdate:da.default.func,renderView:da.default.func,renderTrackHorizontal:da.default.func,renderTrackVertical:da.default.func,renderThumbHorizontal:da.default.func,renderThumbVertical:da.default.func,tagName:da.default.string,thumbSize:da.default.number,thumbMinSize:da.default.number,hideTracksWhenNotNeeded:da.default.bool,autoHide:da.default.bool,autoHideTimeout:da.default.number,autoHideDuration:da.default.number,autoHeight:da.default.bool,autoHeightMin:da.default.oneOfType([da.default.number,da.default.string]),autoHeightMax:da.default.oneOfType([da.default.number,da.default.string]),universal:da.default.bool,style:da.default.object,children:da.default.node},Oa.defaultProps={renderView:wa.renderViewDefault,renderTrackHorizontal:wa.renderTrackHorizontalDefault,renderTrackVertical:wa.renderTrackVerticalDefault,renderThumbHorizontal:wa.renderThumbHorizontalDefault,renderThumbVertical:wa.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(Scrollbars$2)),Scrollbars$2}var hasRequiredLib$3;function requireLib$3(){return hasRequiredLib$3||(hasRequiredLib$3=1,function(ea){Object.defineProperty(ea,"__esModule",{value:!0}),ea.Scrollbars=void 0;var na=requireScrollbars(),ra=oa(na);function oa(aa){return aa&&aa.__esModule?aa:{default:aa}}ea.default=ra.default,ea.Scrollbars=ra.default}(lib$3)),lib$3}var libExports$3=requireLib$3();const Scrollbars$1=getDefaultExportFromCjs(libExports$3),defaultColors$1D={background:"#444444",hover:"#AAAAAA",loadingBackground:"#191919"},colors$1D={dark:defaultColors$1D},defaultSizing$1o={width:"4px",borderRadius:"3px"},sizes$1D={default:defaultSizing$1o},scheme$1e=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1D,sizes:sizes$1D},Symbol.toStringTag,{value:"Module"})),VerticalTrack=dt$1.div.withConfig({displayName:"RenderedElements__VerticalTrack",componentId:"sc-1feym8c-0"})(["right:5px;bottom:2px;top:2px;"]),HorizontalTrack=dt$1.div.withConfig({displayName:"RenderedElements__HorizontalTrack",componentId:"sc-1feym8c-1"})(["right:2px;left:2px;bottom:5px;"]),VerticalThumb=dt$1.div.withConfig({displayName:"RenderedElements__VerticalThumb",componentId:"sc-1feym8c-2"})(["cursor:pointer;border-radius:inherit;"]),HorizontalThumb=dt$1.div.withConfig({displayName:"RenderedElements__HorizontalThumb",componentId:"sc-1feym8c-3"})(["cursor:pointer;border-radius:inherit;"]),ScrollbarsView=dt$1.div.withConfig({displayName:"RenderedElements__ScrollbarsView",componentId:"sc-1feym8c-4"})([""]);let scrollbarWidth=!1;function getScrollbarWidth(){if(scrollbarWidth!==!1)return scrollbarWidth;const ea=document.createElement("div");ea.style.visibility="hidden",ea.style.overflow="scroll",ea.style.msOverflowStyle="scrollbar",document.body.appendChild(ea);const na=document.createElement("div");return ea.appendChild(na),scrollbarWidth=ea.offsetWidth-na.offsetWidth,ea.parentNode.removeChild(ea),scrollbarWidth>0?scrollbarWidth+3:scrollbarWidth}const CustomScrollView=({style:ea,...na})=>{const ra=getScrollbarWidth();return jsxRuntimeExports.jsx(ScrollbarsView,{...na,style:{...ea,marginRight:`-${ra}px`,marginBottom:`-${ra}px`}})},renderVerticalThumb=ea=>jsxRuntimeExports.jsx(VerticalThumb,{...ea}),renderHorizontalThumb=ea=>jsxRuntimeExports.jsx(HorizontalThumb,{...ea}),renderVerticalTrack=ea=>jsxRuntimeExports.jsx(VerticalTrack,{...ea}),renderHorizontalTrack=ea=>jsxRuntimeExports.jsx(HorizontalTrack,{...ea}),CustomScrollbars=reactExports.forwardRef((ea,na)=>jsxRuntimeExports.jsx(Scrollbars$1,{ref:na,renderView:CustomScrollView,renderThumbVertical:renderVerticalThumb,renderThumbHorizontal:renderHorizontalThumb,renderTrackVertical:renderVerticalTrack,renderTrackHorizontal:renderHorizontalTrack,...ea})),theme$31=withTheme(scheme$1e),Scrollbars=dt$1(CustomScrollbars).withConfig({displayName:"Scrollbars",componentId:"sc-f4860c-0"})(["",",","{z-index:10;}"," ",""],VerticalThumb,HorizontalThumb,theme$31.colors(ea=>lt$1(["",",","{background-color:",";&:hover,&:active{background-color:",";}}"],VerticalThumb,HorizontalThumb,ea.background,ea.hover)),theme$31.sizes(ea=>lt$1(["","{width:"," !important;border-radius:",";}","{height:"," !important;border-radius:",";}"],VerticalTrack,ea.width,ea.borderRadius,HorizontalTrack,ea.width,ea.borderRadius))),CustomView=reactExports.forwardRef(({id:ea,className:na,children:ra},oa)=>{const aa=getScrollbarWidth();return jsxRuntimeExports.jsx("div",{ref:oa,style:{position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px",overflow:"scroll",marginRight:`-${aa}px`,marginBottom:`-${aa}px`},id:ea,className:na,children:ra})}),customScrollView=ea=>na=>jsxRuntimeExports.jsx(CustomView,{...na,id:ea}),InfiniteScroll=reactExports.forwardRef((ea,na)=>{const{children:ra,className:oa,next:aa,dataLength:sa,hasMore:la,...ca}=ea,ua=reactExports.useMemo(nanoid,[]),da=reactExports.useMemo(()=>customScrollView(ua),[ua]),[pa,ha]=reactExports.useState(0),[ga,fa]=reactExports.useState(0),ma=reactExports.useRef(),va=reactExports.useRef();return reactExports.useEffect(()=>{va.current&&ma.current&&(ha(ma.current.getBoundingClientRect().height),fa(va.current.getBoundingClientRect().height))}),reactExports.useEffect(()=>{la&&ga<pa&&aa()},[pa,ga]),jsxRuntimeExports.jsx(Scrollbars,{className:oa,renderView:da,ref:xa=>{xa&&(ma.current=xa.view,assignRef$1(xa,na))},children:jsxRuntimeExports.jsx(InfiniteScroll$2,{next:aa,dataLength:sa,scrollableTarget:ua,hasMore:la,ref:xa=>{xa&&(va.current=xa._infScroll)},...ca,children:ra})})}),InfiniteScroll$1=dt$1(InfiniteScroll).withConfig({displayName:"InfiniteScroll",componentId:"sc-1w65dp0-0"})(["& > div{z-index:1;}"]),ApplyPresetAnimationButton=dt$1(SolidButton).attrs({children:i18next.t("Apply")}).withConfig({displayName:"ApplyPresetAnimationButton",componentId:"sc-kk71zt-0"})(["background:#fff;color:#4980f5;position:relative;&:before{content:'';width:100%;height:100%;position:absolute;right:100%;top:0;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(73,128,245,1) 90%);}"]),PresetAnimation=ea=>{const{className:na,name:ra,type:oa,setProvisional:aa=!0,params:sa,phase:la}=ea,ca=useDispatch(),ua=useDispatchAndToHistory(),[{action:da,categories:{items:pa,selected:ha},tier:ga},fa]=useAnimationsData(),ma=!useUserTierAuth(ga||ha?.tier||Tiers.FREE),va=()=>{ca(changeProvisionalAnimation({type:oa,params:sa,phase:la}))},xa=useOpenUpgradeToPro(),ya=reactExports.useCallback(()=>{xa({source:"depicter_editor",medium:"animations",content:oa,term:ra})},[ra,xa,oa]),Aa=()=>{aa&&ca(removeProvisionalAnimation())},Ca=()=>{ma||reactDomExports.unstable_batchedUpdates(()=>{const ba=`${animatorsConfig.get(oa)?.categoryResolver?.(sa)}-${la}`,Ea=pa.find(Ma=>Ma.id===ba||Ma.category===ba),$a={type:oa,params:sa,phase:la,appliedBy:"user"};ua(da(`${la}.data.$bp`)({value:$a})),aa&&ca(removeProvisionalAnimation()),fa(updateAnimationContextData({configurationState:"animationOptions",categories:{selected:Ea},currentAnimation:$a}))})},Sa=reactExports.useMemo(()=>({position:{top:"18px",right:"15px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})}),[]);return jsxRuntimeExports.jsx("div",{className:na,onMouseEnter:va,onMouseLeave:Aa,onClick:Ca,children:jsxRuntimeExports.jsx(WithBadge,{visible:ma,onClick:ya,symbolsData:Sa,children:jsxRuntimeExports.jsxs("div",{className:"ms-inner-wrap",children:[jsxRuntimeExports.jsx("p",{style:{width:ma?"70%":"auto"},children:ra}),!ma&&jsxRuntimeExports.jsx(ApplyPresetAnimationButton,{size:"tiny",onClick:Ca})]})})})},theme$30=withTheme(schema$6),PresetAnimation$1=dt$1(PresetAnimation).withConfig({displayName:"PresetAnimation",componentId:"sc-1dvw6aw-0"})(["display:flex;flex-direction:column;cursor:pointer;transition:background-color 300ms;user-select:none;.ms-inner-wrap{position:relative;&:hover{","{opacity:1;visibility:visible;}}}p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;}","{position:absolute;top:50%;transform:translateY(-50%);right:10px;opacity:0;visibility:hidden;transition:opacity 150ms ease-out;}.ms-inner-wrap{"," ","}",""],ApplyPresetAnimationButton,ApplyPresetAnimationButton,theme$30.colors(ea=>lt$1(["background-color:",";color:",";&:hover{background-color:",";}"],ea.presetAnimationItem.background,ea.presetAnimationItem.color,ea.presetAnimationItem.hover.background)),theme$30.sizes(ea=>lt$1(["padding:",";border-radius:",";font-size:",";font-weight:",";"],ea.presetAnimationItem.padding,ea.presetAnimationItem.borderRadius,ea.presetAnimationItem.fontSize,ea.presetAnimationItem.fontWeight)),theme$30.sizes(ea=>lt$1(["padding-bottom:",";"],ea.presetAnimationItem.space))),ProCompactBadge=({className:ea})=>jsxRuntimeExports.jsx("span",{className:ea,children:jsxRuntimeExports.jsx(Icon$4,{shape:GemIcon})}),theme$2$=withTheme(scheme$1u),ProCompact=dt$1(ProCompactBadge).withConfig({displayName:"ProCompact",componentId:"sc-ldy9nt-0"})(["display:inline-flex;padding:3px;transition:all 150ms ease-out;","{line-height:0;}"," ",""],Icon$4,theme$2$.colors((ea,{isHover:na})=>lt$1(["> span{color:",";}","{filter:grayscale(",");}background:",";"],ea.pro.color,Icon$4,na?0:100,na?ea.pro.hover.background:ea.pro.background)),theme$2$.sizes(ea=>lt$1(["border-radius:",";"],ea.proCompact.border))),Label$4=dt$1.div.withConfig({displayName:"PresetItem__Label",componentId:"sc-9gxuge-0"})([""]),PresetItem=ea=>{const{className:na,name:ra,thumbnail:oa,params:aa}=ea,[{phase:sa,action:la,elements:ca,tier:ua},da]=useAnimationsData(),pa=useSelector(getActiveSectionAnimationWizardData(sa)),ha=useDispatch(),{initialState:ga,animations:fa}=aa,ma=reactExports.useMemo(()=>new AnimationWizardModule().setOptions({...ga,elementsCount:ca.length}).setData(Object.values(pa)).setAnimations(fa).sort(),[pa,fa,ca.length,ga]),va=reactExports.useRef(null),xa=reactExports.useCallback(Ea=>{ha(removeProvisionalAnimation()),va.current&&Ea&&(clearInterval(va.current),va.current=null)},[ha]),ya=useOpenUpgradeToPro(),Aa=!useUserTierAuth(ua||Tiers.FREE),Ca=reactExports.useCallback(()=>{ya({source:"depicter_editor",medium:"animations",content:"wizard",term:ra})},[ra,ya]),Sa=reactExports.useCallback(()=>{const Ea=Object.entries(ma.getAnimateParams()).map(([Ia,Oa])=>({target:Ia,data:Oa,loop:!1})),$a=Ea[Ea.length-1],Ma=$a.data.params.duration+$a.data.params.delay;ha(setProvisionalAnimations(Ea)),va.current=setInterval(()=>{xa(!1),ha(setProvisionalAnimations(Ea))},Ma)},[ma,ha,xa]),wa=reactExports.useCallback(()=>{if(Aa){Ca();return}const{elementsCount:Ea,defaultElementsCount:$a,...Ma}=ma.getOptions(),Ia={type:"wizard",phase:sa,params:{...Ma,animations:fa}};reactDomExports.unstable_batchedUpdates(()=>{ha(la(`${sa}.data.$bp`)({value:Ia})),da(updateAnimationContextData({configurationState:"animationOptions",currentAnimation:Ia}))})},[la,ma,fa,da,ha,Aa,Ca,sa]);reactExports.useEffect(()=>()=>{xa(!0)},[xa]);const ba=reactExports.useMemo(()=>({position:{top:"17px",left:"15px"},symbols:jsxRuntimeExports.jsx(ProCompact,{})}),[]);return jsxRuntimeExports.jsx("div",{className:na,onMouseEnter:Sa,onMouseLeave:()=>xa(!0),onClick:wa,children:jsxRuntimeExports.jsx(WithBadge,{visible:Aa,symbolsData:ba,children:jsxRuntimeExports.jsxs("div",{className:classnames("ms-inner-wrap",{"ms-inner-wrap--locked":Aa}),children:[jsxRuntimeExports.jsx(Label$4,{children:ra}),oa&&jsxRuntimeExports.jsx(Icon$4,{shape:oa})]})})})},theme$2_=withTheme(schema$6),WizardPresetAnimation=dt$1(PresetItem).withConfig({displayName:"PresetItem",componentId:"sc-9gxuge-1"})([".ms-inner-wrap{display:flex;flex-direction:row;justify-content:space-between;align-items:center;cursor:pointer;transition:background-color 300ms;user-select:none;}.ms-inner-wrap--locked{","{margin-left:24px;}}","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;}","{display:flex;}"," ",""],Label$4,Label$4,Icon$4,theme$2_.colors(ea=>lt$1(["background-color:",";color:",";&:hover{background-color:",";}"],ea.presetAnimationItem.background,ea.presetAnimationItem.color,ea.presetAnimationItem.hover.background)),theme$2_.sizes(ea=>lt$1([".ms-inner-wrap{padding:",";}border-radius:",";font-size:",";font-weight:",";margin-bottom:",";"],ea.presetAnimationItem.padding,ea.presetAnimationItem.borderRadius,ea.presetAnimationItem.fontSize,ea.presetAnimationItem.fontWeight,ea.presetAnimationItem.space))),PresetAnimationsList=ea=>{const{className:na}=ea,[{phase:ra,categories:{search:oa,selected:aa},elementType:sa}]=useAnimationsData(),[{search:la,items:ca,page:ua,hasMore:da,noResult:pa},ha]=reactExports.useState({items:[],page:1,hasMore:!1,search:oa,noResult:!1}),{t:ga}=useTranslation(),[fa,ma]=reactExports.useState(!0),va=reactExports.useMemo(()=>aa?.type.includes("wizard"),[aa?.type]);reactExports.useEffect(()=>{ma(!0),ha({search:oa,items:[],page:1,hasMore:!1,noResult:!1})},[oa,sa]),reactExports.useEffect(()=>{let Aa=!1;const Ca={s:la,category:va?`wizard-${ra}`:aa?.type||"",page:ua,perpage:20,elementType:sa,phase:va?"wizard":ra};return axios$5.request(getAnimationPresets(Ca)).then(({data:Sa})=>{Aa||(Sa.items?ha({items:[...ca,...Sa.items],page:ua,hasMore:Sa.hasMore,search:la,noResult:!1}):ha({items:[],hasMore:!1,page:ua,search:la,noResult:!0}),ma(!1))}),()=>{Aa=!0}},[sa,ua,ra,aa,la]);const xa=reactExports.useCallback(()=>{ha({page:ua+1,items:ca,hasMore:da,search:la,noResult:pa})},[da,ca,ua,la,pa]),ya=reactExports.useCallback(Aa=>va?jsxRuntimeExports.jsx(WizardPresetAnimation,{...Aa},Aa.id):jsxRuntimeExports.jsx(PresetAnimation$1,{...Aa},Aa.id),[va]);return jsxRuntimeExports.jsx("div",{className:na,children:pa?jsxRuntimeExports.jsx(NoAssetsFound$1,{children:ga("Sorry, we couldn't find any items here.")}):jsxRuntimeExports.jsx(LoadingSplash$1,{visible:fa,children:jsxRuntimeExports.jsx(InfiniteScroll$1,{dataLength:ca.length,next:xa,hasMore:da,loader:jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),children:ca.map(ya)})})})},PresetAnimationsList$1=dt$1(PresetAnimationsList).withConfig({displayName:"PresetAnimationsList",componentId:"sc-14yyvgf-0"})(["display:flex;flex-direction:column;height:100%;width:100%;","{justify-content:center;margin:5px 0;}","{margin-right:0;}","{width:calc(100% + 15px) !important;> div:first-of-type{padding-right:15px;}}"],DotSpinner$1,NoAssetsFound$1,Scrollbars),AnimWizardIcon="data:image/svg+xml,%3csvg%20width='37'%20height='34'%20viewBox='0%200%2037%2034'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5057%2019.5741C21.1735%2020.2418%2021.3801%2021.118%2020.9672%2021.5309L10.555%2031.9431C9.80917%2032.6889%208.22687%2032.3157%207.02079%2031.1097C5.81471%2029.9036%205.44157%2028.3213%206.18737%2027.5755L16.5996%2017.1633C17.0125%2016.7504%2017.8886%2016.957%2018.5564%2017.6248L20.5057%2019.5741Z'%20fill='url(%23paint0_linear_9648_24553)'/%3e%3cpath%20d='M26.6521%2014.4552L19.2006%2021.9067C18.81%2022.2972%2018.1769%2022.2972%2017.7864%2021.9067L16.2361%2020.3565C15.8459%2019.9659%2015.8457%2019.3327%2016.2361%2018.9422L23.6877%2011.4907C24.0781%2011.1003%2024.7113%2011.1005%2025.1019%2011.4907L26.6521%2013.0409C27.0426%2013.4315%2027.0426%2014.0646%2026.6521%2014.4552Z'%20stroke='url(%23paint1_linear_9648_24553)'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28%2024L29.42%2026.58L32%2028L29.42%2029.42L28%2032L26.58%2029.42L24%2028L26.58%2026.58L28%2024Z'%20fill='url(%23paint2_linear_9648_24553)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.6504%200L15.6029%203.5475L19.1504%205.5L15.6029%207.4525L13.6504%2011L11.6979%207.4525L8.15039%205.5L11.6979%203.5475L13.6504%200Z'%20fill='url(%23paint3_linear_9648_24553)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M35%208L35.71%209.29L37%2010L35.71%2010.71L35%2012L34.29%2010.71L33%2010L34.29%209.29L35%208Z'%20fill='url(%23paint4_linear_9648_24553)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2011L2.71%2012.29L4%2013L2.71%2013.71L2%2015L1.29%2013.71L0%2013L1.29%2012.29L2%2011Z'%20fill='url(%23paint5_linear_9648_24553)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_9648_24553'%20x1='15.4597'%20y1='27.0383'%20x2='11.0921'%20y2='22.6707'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_9648_24553'%20x1='23.6334'%20y1='18.8881'%20x2='19.2551'%20y2='14.5097'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_9648_24553'%20x1='28'%20y1='24'%20x2='28'%20y2='32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_9648_24553'%20x1='13.6504'%20y1='0'%20x2='13.6504'%20y2='11'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_9648_24553'%20x1='35'%20y1='8'%20x2='35'%20y2='12'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_9648_24553'%20x1='2'%20y1='11'%20x2='2'%20y2='15'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D0844E'/%3e%3cstop%20offset='1'%20stop-color='%23FFF642'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",generateWizardCategory=ea=>({id:`wizard-${ea}`,type:`wizard-${ea}`,name:i18next.t("Animation {{phase}} Wizard",{phase:ea}),tier:Tiers.PRO,thumbnail:AnimWizardIcon}),Label$3=dt$1.span.withConfig({displayName:"AnimationWizard__Label",componentId:"sc-1nwoimg-0"})([""]),AnimationWizard=ea=>{const{className:na,...ra}=ea,{t:oa}=useTranslation(),[{phase:aa,elements:sa},la]=useAnimationsData(),{closeQuickTip:ca}=reactExports.useContext(QuickTipContext),ua=useOpenNotice("alert"),da=useSelector(getActiveOptionsPanelTabPath());reactExports.useEffect(()=>()=>{ca(!0)},[ca]);const pa=reactExports.useCallback(()=>{sa.length?la(updateAnimationContextData({categories:{selected:generateWizardCategory(aa)},configurationState:"animationPresets"})):ua({title:oa("Animation Wizard"),content:oa("There are no elements in this section. You should add at least 1 element to use the Animation Wizard."),okLabel:oa("Ok")})},[la,sa.length,ua,aa,oa]);return reactExports.useEffect(()=>{da==="animation/animationWizard"&&requestAnimationFrame(()=>{pa()})},[da,pa]),jsxRuntimeExports.jsx("div",{className:na,onClick:pa,children:jsxRuntimeExports.jsxs(Fieldset$1,{...ra,children:[jsxRuntimeExports.jsx(Label$3,{children:oa("Animation Wizard")}),jsxRuntimeExports.jsx(Icon$4,{shape:AnimWizardIcon})]})})},theme$2Z=withTheme(schema$6),AnimationWizard$1=dt$1(AnimationWizard).withConfig({displayName:"AnimationWizard",componentId:"sc-1nwoimg-1"})(["overflow:hidden;border-radius:5px;transition:box-shadow 300ms;","{display:flex;justify-content:space-between;align-items:center;background-color:rgba(0,0,0,0.34);padding:9px 15px 9px 20px;cursor:pointer;","{display:flex;}","{font-size:12px;font-weight:600;line-height:16px;color:#fff;}}",""],Fieldset$1,Icon$4,Label$3,theme$2Z.colors(ea=>lt$1(["&:hover{box-shadow:0 0 0 2px ",";}"],ea.animationWizard.hover))),defaultColors$1C={background:"rgba(0,0,0,0.34)",label:"#AAAAAA",icon:"#FFFFFF",backLabel:"#4980F5",backLabelHover:"white"},colors$1C={dark:defaultColors$1C},defaultSizing$1n={height:"71px",borderRadius:"4px",iconContainer:{width:"71px",space:"8px"},label:{fontSize:"12px",fontWeight:"600"},backLabel:{fontSize:"12px",fontWeight:"600",space:"8px"}},sizes$1C={default:defaultSizing$1n},schema$5=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1C,sizes:sizes$1C},Symbol.toStringTag,{value:"Module"})),theme$2Y=withTheme(schema$5),OptionsSectionHeader=ea=>{const{t:na}=useTranslation(),{className:ra,label:oa,icon:aa,backLabel:sa=na("Back"),onBack:la}=ea;return jsxRuntimeExports.jsxs("div",{className:ra,children:[aa&&jsxRuntimeExports.jsx("div",{children:aa}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("p",{children:oa}),jsxRuntimeExports.jsx("span",{onClick:la,children:sa})]})]})},OptionsSectionHeader$1=dt$1(OptionsSectionHeader).withConfig({displayName:"OptionsSectionHeader",componentId:"sc-5igtmy-0"})(["display:flex;width:100%;flex-direction:row;align-items:center;align-content:flex-start;& > div{display:flex;align-items:center;justify-content:center;height:100%;}p,span{line-height:100%;}span{display:block;cursor:pointer;}"," ",""],theme$2Y.colors(ea=>lt$1(["background-color:",";svg{fill:",";}p{color:",";}span{color:",";&:hover{color:",";}}"],ea.background,ea.icon,ea.label,ea.backLabel,ea.backLabelHover)),theme$2Y.sizes((ea,{icon:na})=>lt$1(["height:",";& > div{width:",";}section{margin-left:",";}p{margin-bottom:",";font-size:",";font-weight:",";}span{font-size:",";font-weight:",";}"],ea.height,ea.iconContainer.width,na?ea.iconContainer.space:"20px",ea.backLabel.space,ea.label.fontSize,ea.label.fontWeight,ea.backLabel.fontSize,ea.backLabel.fontWeight))),tooltipOptions$8={options:{id:"workspace"}},AnimatorOptions=ea=>{const{className:na}=ea,[{currentAnimation:ra,categories:{selected:oa},phase:aa,action:sa,selector:la,excludedControls:ca}]=useAnimationsData(),ua=useDispatch(),{t:da}=useTranslation(),pa=reactExports.useCallback(()=>{reactDomExports.unstable_batchedUpdates(()=>{ua(sa(`${aa}.data.$bp`)({value:void 0}))})},[sa,ua,aa]),ha=animatorsConfig.get(ra.type).options,ga=useUserTierAuthCallback();if(!ha)return console.error(`Options are not registered for this type: ${ra.type}`),null;const{name:fa,thumbnail:ma}=oa;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(OptionsSectionHeader$1,{icon:jsxRuntimeExports.jsx("img",{style:{marginRight:-8},src:ma,alt:fa}),label:da("{{animationName}} options",{animationName:fa}),backLabel:da("Change animation"),onBack:pa}),jsxRuntimeExports.jsx(OCManager,{optionControls:excludeControls(ha(aa,sa,la),ca),fieldsetComponent:Fieldset$1,tierChecker:ga,tooltip:tooltipOptions$8})]})},AnimatorOptions$1=dt$1(AnimatorOptions).withConfig({displayName:"AnimatorOptions",componentId:"sc-1vqsmp8-0"})(["& > span{color:silver;}","{margin:0 -15px 10px -15px;width:calc(100% + 30px);}","{margin-left:-15px !important;margin-right:-15px !important;}"],OptionsSectionHeader$1,OCManager),AnimationPhase=ea=>{const{className:na,children:ra}=ea,[{categories:{items:oa,selected:aa},configurationState:sa,hasWizard:la,wizardProps:ca,currentAnimation:ua},da]=useAnimationsData(),pa=sa==="animationCategories",ha=sa==="animationPresets",ga=sa==="animationOptions",fa=la&&aa?.type.includes("wizard");return reactExports.useEffect(()=>{let ma={categories:{items:oa,selected:null,search:""},configurationState:"animationCategories",isWizard:!1};if(ua){const{type:va,params:xa,phase:ya}=ua,Aa=va==="wizard",Ca=va?animatorsConfig.get(va)?.categoryResolver?.(xa):null,Sa=Ca?`${Ca}-${ya}`:null;ma={...ma,categories:{items:oa,search:"",selected:Aa?generateWizardCategory(ya):oa.find(wa=>wa.id===Sa||wa.category===Sa)||null},isWizard:Aa,configurationState:"animationOptions"}}da(updateAnimationContextData(ma))},[ua,da,la,oa]),jsxRuntimeExports.jsxs("div",{className:na,children:[la&&ca&&pa&&jsxRuntimeExports.jsx(AnimationWizard$1,{...ca}),!ga&&jsxRuntimeExports.jsx(AnimationSearchBar$1,{}),!fa&&!ga&&ra,pa&&jsxRuntimeExports.jsx(AnimationCategoriesList$1,{}),ha&&jsxRuntimeExports.jsx(PresetAnimationsList$1,{}),ga&&ua&&jsxRuntimeExports.jsx(AnimatorOptions$1,{})]})},AnimationPhase$1=dt$1(AnimationPhase).withConfig({displayName:"AnimationPhase",componentId:"sc-1y6ykme-0"})(["display:flex;flex-direction:column;gap:15px;height:100%;","{margin:0;}"],SearchBar$1),AnimationsProvider=ea=>{const{className:na,initialValues:ra,children:oa}=ea,[aa,sa]=reactExports.useState(!1),[la,ca]=reactExports.useReducer(reducer$1,lodashExports.merge({},initialState$2,ra)),ua=reactExports.useMemo(()=>[la,ca],[la]),da=useSelector(getActiveSectionElementsId),{phase:pa,selector:ha,action:ga,isWizard:fa,configurationState:ma}=la,va=useDispatch(),xa=useSelector(ha(`${pa}.data.$bp`),shallowEqual$2),ya=reactExports.useCallback(({items:ba})=>{ca(updateAnimationContextData({categories:{items:ba}}))},[]),Aa=reactExports.useCallback(ba=>{sa(ba?.response?.status===503)},[]),Ca=reactExports.useCallback(ba=>getAnimationCategories(ba),[]),[Sa,{status:wa}]=useRequest(Ca,{onSuccess:ya,onError:Aa,successDelay:100});return reactExports.useEffect(()=>{ca(updateAnimationContextData({elements:da,currentAnimation:xa||null})),fa&&!da.length&&xa?(ca(restAnimationContextData()),va(ga(`${pa}.data.$bp`)({value:void 0}))):xa||ca(restAnimationContextData())},[ga,xa,da,fa,pa,va]),reactExports.useEffect(()=>{Sa({phase:la.phase,elementType:la.elementType})},[Sa,la.elementType,la.phase]),jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsxs(AnimationsContext.Provider,{value:ua,children:[jsxRuntimeExports.jsx(AnimationPhaseTabs$1,{}),jsxRuntimeExports.jsx(LoadingSplash$1,{overlay:!1,visible:wa==="loading"||!xa&&ma==="animationOptions",fadeMode:"off",children:aa?jsxRuntimeExports.jsx(AccessBlockedNotice$1,{}):jsxRuntimeExports.jsx(AnimationPhase$1,{children:oa})})]})})},AnimationsProvider$1=dt$1(AnimationsProvider).withConfig({displayName:"AnimationsProvider",componentId:"sc-lokhl7-0"})(["display:flex;flex-direction:column;gap:15px;height:calc(100vh - 155px);margin:0 15px;","{margin-top:50px;}"],AccessBlockedNotice$1),Animation=({className:ea,tier:na,excludedTabs:ra=[],excludedControls:oa=[],hasWizard:aa=!1,wizardProps:sa,action:la,tabs:ca,selector:ua,children:da})=>{const pa=useSelector(getSelectedElementsType)[0],ha=reactExports.useMemo(()=>({excludedTabs:ra,action:la,selector:ua,elementType:pa||"section",excludedControls:oa,tabs:ca,hasWizard:aa,wizardProps:sa,tier:na}),[ra,la,ua,pa,oa,ca,aa,sa,na]);return jsxRuntimeExports.jsx(AnimationsProvider$1,{className:ea,initialValues:ha,children:da})},AnimationOptions=dt$1(Animation).withConfig({displayName:"AnimationOptions",componentId:"sc-r1vhty-0"})([""]),NameValidator=({className:ea,value:na,onChange:ra})=>{const oa=useSelector(getElementsName),aa=reactExports.useCallback(sa=>sa?!oa.find(la=>la.label===sa):!1,[oa]);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Input$2,{variant:"small",value:na,pattern:aa,onChange:ra,validationOn:"blur",onBlurChange:!0})})},NameValidator$1=dt$1(NameValidator).withConfig({displayName:"NameValidator",componentId:"sc-dj4ivf-0"})([""]);var lib$2={},ace$2={},ace$1={exports:{}},hasRequiredAce$1;function requireAce$1(){return hasRequiredAce$1||(hasRequiredAce$1=1,function(ea,na){(function(){var ra="ace",oa=function(){return this}();!oa&&typeof window<"u"&&(oa=window);var aa=function(pa,ha,ga){if(typeof pa!="string"){aa.original?aa.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(ga=ha),aa.modules[pa]||(aa.payloads[pa]=ga,aa.modules[pa]=null)};aa.modules={},aa.payloads={};var sa=function(pa,ha,ga){if(typeof ha=="string"){var fa=ua(pa,ha);if(fa!=null)return ga&&ga(),fa}else if(Object.prototype.toString.call(ha)==="[object Array]"){for(var ma=[],va=0,xa=ha.length;va<xa;++va){var ya=ua(pa,ha[va]);if(ya==null&&la.original)return;ma.push(ya)}return ga&&ga.apply(null,ma)||!0}},la=function(pa,ha){var ga=sa("",pa,ha);return ga==null&&la.original?la.original.apply(this,arguments):ga},ca=function(pa,ha){if(ha.indexOf("!")!==-1){var ga=ha.split("!");return ca(pa,ga[0])+"!"+ca(pa,ga[1])}if(ha.charAt(0)=="."){var fa=pa.split("/").slice(0,-1).join("/");for(ha=fa+"/"+ha;ha.indexOf(".")!==-1&&ma!=ha;){var ma=ha;ha=ha.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return ha},ua=function(pa,ha){ha=ca(pa,ha);var ga=aa.modules[ha];if(!ga){if(ga=aa.payloads[ha],typeof ga=="function"){var fa={},ma={id:ha,uri:"",exports:fa,packaged:!0},va=function(ya,Aa){return sa(ha,ya,Aa)},xa=ga(va,fa,ma);fa=xa||ma.exports,aa.modules[ha]=fa,delete aa.payloads[ha]}ga=aa.modules[ha]=fa||ga}return ga};function da(pa){var ha=oa;oa[pa]||(oa[pa]={}),ha=oa[pa],(!ha.define||!ha.define.packaged)&&(aa.original=ha.define,ha.define=aa,ha.define.packaged=!0),(!ha.require||!ha.require.packaged)&&(la.original=ha.require,ha.require=la,ha.require.packaged=!0)}da(ra)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(ra,oa,aa){function sa(la,ca,ua){Object.defineProperty(la,ca,{value:ua,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||sa(String.prototype,"startsWith",function(la,ca){return ca=ca||0,this.lastIndexOf(la,ca)===ca}),String.prototype.endsWith||sa(String.prototype,"endsWith",function(la,ca){var ua=this;(ca===void 0||ca>ua.length)&&(ca=ua.length),ca-=la.length;var da=ua.indexOf(la,ca);return da!==-1&&da===ca}),String.prototype.repeat||sa(String.prototype,"repeat",function(la){for(var ca="",ua=this;la>0;)la&1&&(ca+=ua),(la>>=1)&&(ua+=ua);return ca}),String.prototype.includes||sa(String.prototype,"includes",function(la,ca){return this.indexOf(la,ca)!=-1}),Object.assign||(Object.assign=function(la){if(la==null)throw new TypeError("Cannot convert undefined or null to object");for(var ca=Object(la),ua=1;ua<arguments.length;ua++){var da=arguments[ua];da!=null&&Object.keys(da).forEach(function(pa){ca[pa]=da[pa]})}return ca}),Object.values||(Object.values=function(la){return Object.keys(la).map(function(ca){return la[ca]})}),Array.prototype.find||sa(Array.prototype,"find",function(la){for(var ca=this.length,ua=arguments[1],da=0;da<ca;da++){var pa=this[da];if(la.call(ua,pa,da,this))return pa}}),Array.prototype.findIndex||sa(Array.prototype,"findIndex",function(la){for(var ca=this.length,ua=arguments[1],da=0;da<ca;da++){var pa=this[da];if(la.call(ua,pa,da,this))return da}}),Array.prototype.includes||sa(Array.prototype,"includes",function(la,ca){return this.indexOf(la,ca)!=-1}),Array.prototype.fill||sa(Array.prototype,"fill",function(la){for(var ca=this,ua=ca.length>>>0,da=arguments[1],pa=da>>0,ha=pa<0?Math.max(ua+pa,0):Math.min(pa,ua),ga=arguments[2],fa=ga===void 0?ua:ga>>0,ma=fa<0?Math.max(ua+fa,0):Math.min(fa,ua);ha<ma;)ca[ha]=la,ha++;return ca}),Array.of||sa(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(ra,oa,aa){ra("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(ra,oa,aa){oa.deepCopy=function sa(la){if(typeof la!="object"||!la)return la;var ca;if(Array.isArray(la)){ca=[];for(var ua=0;ua<la.length;ua++)ca[ua]=sa(la[ua]);return ca}if(Object.prototype.toString.call(la)!=="[object Object]")return la;ca={};for(var ua in la)ca[ua]=sa(la[ua]);return ca}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(ra,oa,aa){oa.last=function(ca){return ca[ca.length-1]},oa.stringReverse=function(ca){return ca.split("").reverse().join("")},oa.stringRepeat=function(ca,ua){for(var da="";ua>0;)ua&1&&(da+=ca),(ua>>=1)&&(ca+=ca);return da};var sa=/^\s\s*/,la=/\s\s*$/;oa.stringTrimLeft=function(ca){return ca.replace(sa,"")},oa.stringTrimRight=function(ca){return ca.replace(la,"")},oa.copyObject=function(ca){var ua={};for(var da in ca)ua[da]=ca[da];return ua},oa.copyArray=function(ca){for(var ua=[],da=0,pa=ca.length;da<pa;da++)ca[da]&&typeof ca[da]=="object"?ua[da]=this.copyObject(ca[da]):ua[da]=ca[da];return ua},oa.deepCopy=ra("./deep_copy").deepCopy,oa.arrayToMap=function(ca){for(var ua={},da=0;da<ca.length;da++)ua[ca[da]]=1;return ua},oa.createMap=function(ca){var ua=Object.create(null);for(var da in ca)ua[da]=ca[da];return ua},oa.arrayRemove=function(ca,ua){for(var da=0;da<=ca.length;da++)ua===ca[da]&&ca.splice(da,1)},oa.escapeRegExp=function(ca){return ca.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},oa.escapeHTML=function(ca){return(""+ca).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},oa.getMatchOffsets=function(ca,ua){var da=[];return ca.replace(ua,function(pa){da.push({offset:arguments[arguments.length-2],length:pa.length})}),da},oa.deferredCall=function(ca){var ua=null,da=function(){ua=null,ca()},pa=function(ha){return pa.cancel(),ua=setTimeout(da,ha||0),pa};return pa.schedule=pa,pa.call=function(){return this.cancel(),ca(),pa},pa.cancel=function(){return clearTimeout(ua),ua=null,pa},pa.isPending=function(){return ua},pa},oa.delayedCall=function(ca,ua){var da=null,pa=function(){da=null,ca()},ha=function(ga){da==null&&(da=setTimeout(pa,ga||ua))};return ha.delay=function(ga){da&&clearTimeout(da),da=setTimeout(pa,ga||ua)},ha.schedule=ha,ha.call=function(){this.cancel(),ca()},ha.cancel=function(){da&&clearTimeout(da),da=null},ha.isPending=function(){return da},ha},oa.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},oa.skipEmptyMatch=function(ca,ua,da){return da&&ca.codePointAt(ua)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(ra,oa,aa){oa.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},oa.getOS=function(){return oa.isMac?oa.OS.MAC:oa.isLinux?oa.OS.LINUX:oa.OS.WINDOWS};var sa=typeof navigator=="object"?navigator:{},la=(/mac|win|linux/i.exec(sa.platform)||["other"])[0].toLowerCase(),ca=sa.userAgent||"",ua=sa.appName||"";oa.isWin=la=="win",oa.isMac=la=="mac",oa.isLinux=la=="linux",oa.isIE=ua=="Microsoft Internet Explorer"||ua.indexOf("MSAppHost")>=0?parseFloat((ca.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((ca.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),oa.isOldIE=oa.isIE&&oa.isIE<9,oa.isGecko=oa.isMozilla=ca.match(/ Gecko\/\d+/),oa.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",oa.isWebKit=parseFloat(ca.split("WebKit/")[1])||void 0,oa.isChrome=parseFloat(ca.split(" Chrome/")[1])||void 0,oa.isSafari=parseFloat(ca.split(" Safari/")[1])&&!oa.isChrome||void 0,oa.isEdge=parseFloat(ca.split(" Edge/")[1])||void 0,oa.isAIR=ca.indexOf("AdobeAIR")>=0,oa.isAndroid=ca.indexOf("Android")>=0,oa.isChromeOS=ca.indexOf(" CrOS ")>=0,oa.isIOS=/iPad|iPhone|iPod/.test(ca)&&!window.MSStream,oa.isIOS&&(oa.isMac=!0),oa.isMobile=oa.isIOS||oa.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("./useragent"),la="http://www.w3.org/1999/xhtml";oa.buildDom=function ga(fa,ma,va){if(typeof fa=="string"&&fa){var xa=document.createTextNode(fa);return ma&&ma.appendChild(xa),xa}if(!Array.isArray(fa))return fa&&fa.appendChild&&ma&&ma.appendChild(fa),fa;if(typeof fa[0]!="string"||!fa[0]){for(var ya=[],Aa=0;Aa<fa.length;Aa++){var Ca=ga(fa[Aa],ma,va);Ca&&ya.push(Ca)}return ya}var Sa=document.createElement(fa[0]),wa=fa[1],ba=1;wa&&typeof wa=="object"&&!Array.isArray(wa)&&(ba=2);for(var Aa=ba;Aa<fa.length;Aa++)ga(fa[Aa],Sa,va);return ba==2&&Object.keys(wa).forEach(function(Ea){var $a=wa[Ea];Ea==="class"?Sa.className=Array.isArray($a)?$a.join(" "):$a:typeof $a=="function"||Ea=="value"||Ea[0]=="$"?Sa[Ea]=$a:Ea==="ref"?va&&(va[$a]=Sa):Ea==="style"?typeof $a=="string"&&(Sa.style.cssText=$a):$a!=null&&Sa.setAttribute(Ea,$a)}),ma&&ma.appendChild(Sa),Sa},oa.getDocumentHead=function(ga){return ga||(ga=document),ga.head||ga.getElementsByTagName("head")[0]||ga.documentElement},oa.createElement=function(ga,fa){return document.createElementNS?document.createElementNS(fa||la,ga):document.createElement(ga)},oa.removeChildren=function(ga){ga.innerHTML=""},oa.createTextNode=function(ga,fa){var ma=fa?fa.ownerDocument:document;return ma.createTextNode(ga)},oa.createFragment=function(ga){var fa=ga?ga.ownerDocument:document;return fa.createDocumentFragment()},oa.hasCssClass=function(ga,fa){var ma=(ga.className+"").split(/\s+/g);return ma.indexOf(fa)!==-1},oa.addCssClass=function(ga,fa){oa.hasCssClass(ga,fa)||(ga.className+=" "+fa)},oa.removeCssClass=function(ga,fa){for(var ma=ga.className.split(/\s+/g);;){var va=ma.indexOf(fa);if(va==-1)break;ma.splice(va,1)}ga.className=ma.join(" ")},oa.toggleCssClass=function(ga,fa){for(var ma=ga.className.split(/\s+/g),va=!0;;){var xa=ma.indexOf(fa);if(xa==-1)break;va=!1,ma.splice(xa,1)}return va&&ma.push(fa),ga.className=ma.join(" "),va},oa.setCssClass=function(ga,fa,ma){ma?oa.addCssClass(ga,fa):oa.removeCssClass(ga,fa)},oa.hasCssString=function(ga,fa){var ma=0,va;if(fa=fa||document,va=fa.querySelectorAll("style")){for(;ma<va.length;)if(va[ma++].id===ga)return!0}},oa.removeElementById=function(ga,fa){fa=fa||document,fa.getElementById(ga)&&fa.getElementById(ga).remove()};var ca,ua=[];oa.useStrictCSP=function(ga){ca=ga,ga==!1?da():ua||(ua=[])};function da(){var ga=ua;ua=null,ga&&ga.forEach(function(fa){pa(fa[0],fa[1])})}function pa(ga,fa,ma){if(!(typeof document>"u")){if(ua){if(ma)da();else if(ma===!1)return ua.push([ga,fa])}if(!ca){var va=ma;!ma||!ma.getRootNode?va=document:(va=ma.getRootNode(),(!va||va==ma)&&(va=document));var xa=va.ownerDocument||va;if(fa&&oa.hasCssString(fa,va))return null;fa&&(ga+=`
/*# sourceURL=ace/css/`+fa+" */");var ya=oa.createElement("style");ya.appendChild(xa.createTextNode(ga)),fa&&(ya.id=fa),va==xa&&(va=oa.getDocumentHead(xa)),va.insertBefore(ya,va.firstChild)}}}if(oa.importCssString=pa,oa.importCssStylsheet=function(ga,fa){oa.buildDom(["link",{rel:"stylesheet",href:ga}],oa.getDocumentHead(fa))},oa.scrollbarWidth=function(ga){var fa=oa.createElement("ace_inner");fa.style.width="100%",fa.style.minWidth="0px",fa.style.height="200px",fa.style.display="block";var ma=oa.createElement("ace_outer"),va=ma.style;va.position="absolute",va.left="-10000px",va.overflow="hidden",va.width="200px",va.minWidth="0px",va.height="150px",va.display="block",ma.appendChild(fa);var xa=ga&&ga.documentElement||document&&document.documentElement;if(!xa)return 0;xa.appendChild(ma);var ya=fa.offsetWidth;va.overflow="scroll";var Aa=fa.offsetWidth;return ya===Aa&&(Aa=ma.clientWidth),xa.removeChild(ma),ya-Aa},oa.computedStyle=function(ga,fa){return window.getComputedStyle(ga,"")||{}},oa.setStyle=function(ga,fa,ma){ga[fa]!==ma&&(ga[fa]=ma)},oa.HAS_CSS_ANIMATION=!1,oa.HAS_CSS_TRANSFORMS=!1,oa.HI_DPI=sa.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,sa.isChromeOS&&(oa.HI_DPI=!1),typeof document<"u"){var ha=document.createElement("div");oa.HI_DPI&&ha.style.transform!==void 0&&(oa.HAS_CSS_TRANSFORMS=!0),!sa.isEdge&&typeof ha.style.animationName<"u"&&(oa.HAS_CSS_ANIMATION=!0),ha=null}oa.HAS_CSS_TRANSFORMS?oa.translate=function(ga,fa,ma){ga.style.transform="translate("+Math.round(fa)+"px, "+Math.round(ma)+"px)"}:oa.translate=function(ga,fa,ma){ga.style.top=Math.round(ma)+"px",ga.style.left=Math.round(fa)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(ra,oa,aa){/*
* based on code from:
*
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/var sa=ra("./dom");oa.get=function(la,ca){var ua=new XMLHttpRequest;ua.open("GET",la,!0),ua.onreadystatechange=function(){ua.readyState===4&&ca(ua.responseText)},ua.send(null)},oa.loadScript=function(la,ca){var ua=sa.getDocumentHead(),da=document.createElement("script");da.src=la,ua.appendChild(da),da.onload=da.onreadystatechange=function(pa,ha){(ha||!da.readyState||da.readyState=="loaded"||da.readyState=="complete")&&(da=da.onload=da.onreadystatechange=null,ha||ca())}},oa.qualifyURL=function(la){var ca=document.createElement("a");return ca.href=la,ca.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(ra,oa,aa){oa.inherits=function(sa,la){sa.super_=la,sa.prototype=Object.create(la.prototype,{constructor:{value:sa,enumerable:!1,writable:!0,configurable:!0}})},oa.mixin=function(sa,la){for(var ca in la)sa[ca]=la[ca];return sa},oa.implement=function(sa,la){oa.mixin(sa,la)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(ra,oa,aa){var sa={},la=function(){this.propagationStopped=!0},ca=function(){this.defaultPrevented=!0};sa._emit=sa._dispatchEvent=function(ua,da){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var pa=this._eventRegistry[ua]||[],ha=this._defaultHandlers[ua];if(!(!pa.length&&!ha)){(typeof da!="object"||!da)&&(da={}),da.type||(da.type=ua),da.stopPropagation||(da.stopPropagation=la),da.preventDefault||(da.preventDefault=ca),pa=pa.slice();for(var ga=0;ga<pa.length&&(pa[ga](da,this),!da.propagationStopped);ga++);if(ha&&!da.defaultPrevented)return ha(da,this)}},sa._signal=function(ua,da){var pa=(this._eventRegistry||{})[ua];if(pa){pa=pa.slice();for(var ha=0;ha<pa.length;ha++)pa[ha](da,this)}},sa.once=function(ua,da){var pa=this;if(this.on(ua,function ha(){pa.off(ua,ha),da.apply(null,arguments)}),!da)return new Promise(function(ha){da=ha})},sa.setDefaultHandler=function(ua,da){var pa=this._defaultHandlers;if(pa||(pa=this._defaultHandlers={_disabled_:{}}),pa[ua]){var ha=pa[ua],ga=pa._disabled_[ua];ga||(pa._disabled_[ua]=ga=[]),ga.push(ha);var fa=ga.indexOf(da);fa!=-1&&ga.splice(fa,1)}pa[ua]=da},sa.removeDefaultHandler=function(ua,da){var pa=this._defaultHandlers;if(pa){var ha=pa._disabled_[ua];if(pa[ua]==da)ha&&this.setDefaultHandler(ua,ha.pop());else if(ha){var ga=ha.indexOf(da);ga!=-1&&ha.splice(ga,1)}}},sa.on=sa.addEventListener=function(ua,da,pa){this._eventRegistry=this._eventRegistry||{};var ha=this._eventRegistry[ua];return ha||(ha=this._eventRegistry[ua]=[]),ha.indexOf(da)==-1&&ha[pa?"unshift":"push"](da),da},sa.off=sa.removeListener=sa.removeEventListener=function(ua,da){this._eventRegistry=this._eventRegistry||{};var pa=this._eventRegistry[ua];if(pa){var ha=pa.indexOf(da);ha!==-1&&pa.splice(ha,1)}},sa.removeAllListeners=function(ua){ua||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[ua]=void 0),this._defaultHandlers&&(this._defaultHandlers[ua]=void 0)},oa.EventEmitter=sa}),ace.define("ace/lib/report_error",["require","exports","module"],function(ra,oa,aa){oa.reportError=function(la,ca){var ua=new Error(la);ua.data=ca,typeof console=="object"&&console.error&&console.error(ua),setTimeout(function(){throw ua})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(ra,oa,aa){var sa={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};oa.defaultEnglishMessages=sa}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(ra,oa,aa){"no use strict";var sa=ra("./oop"),la=ra("./event_emitter").EventEmitter,ca=ra("./report_error").reportError,ua=ra("./default_english_messages").defaultEnglishMessages,da={setOptions:function(ma){Object.keys(ma).forEach(function(va){this.setOption(va,ma[va])},this)},getOptions:function(ma){var va={};if(ma)Array.isArray(ma)||(va=ma,ma=Object.keys(va));else{var xa=this.$options;ma=Object.keys(xa).filter(function(ya){return!xa[ya].hidden})}return ma.forEach(function(ya){va[ya]=this.getOption(ya)},this),va},setOption:function(ma,va){if(this["$"+ma]!==va){var xa=this.$options[ma];if(!xa)return pa('misspelled option "'+ma+'"');if(xa.forwardTo)return this[xa.forwardTo]&&this[xa.forwardTo].setOption(ma,va);xa.handlesSet||(this["$"+ma]=va),xa&&xa.set&&xa.set.call(this,va)}},getOption:function(ma){var va=this.$options[ma];return va?va.forwardTo?this[va.forwardTo]&&this[va.forwardTo].getOption(ma):va&&va.get?va.get.call(this):this["$"+ma]:pa('misspelled option "'+ma+'"')}};function pa(ma){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var ha,ga,fa=function(){function ma(){this.$defaultOptions={},ha=ua,ga="dollarSigns"}return ma.prototype.defineOptions=function(va,xa,ya){return va.$options||(this.$defaultOptions[xa]=va.$options={}),Object.keys(ya).forEach(function(Aa){var Ca=ya[Aa];typeof Ca=="string"&&(Ca={forwardTo:Ca}),Ca.name||(Ca.name=Aa),va.$options[Ca.name]=Ca,"initialValue"in Ca&&(va["$"+Ca.name]=Ca.initialValue)}),sa.implement(va,da),this},ma.prototype.resetOptions=function(va){Object.keys(va.$options).forEach(function(xa){var ya=va.$options[xa];"value"in ya&&va.setOption(xa,ya.value)})},ma.prototype.setDefaultValue=function(va,xa,ya){if(!va){for(va in this.$defaultOptions)if(this.$defaultOptions[va][xa])break;if(!this.$defaultOptions[va][xa])return!1}var Aa=this.$defaultOptions[va]||(this.$defaultOptions[va]={});Aa[xa]&&(Aa.forwardTo?this.setDefaultValue(Aa.forwardTo,xa,ya):Aa[xa].value=ya)},ma.prototype.setDefaultValues=function(va,xa){Object.keys(xa).forEach(function(ya){this.setDefaultValue(va,ya,xa[ya])},this)},ma.prototype.setMessages=function(va,xa){ha=va,xa&&xa.placeholders&&(ga=xa.placeholders)},ma.prototype.nls=function(va,xa,ya){ha[va]||(pa("No message found for the key '"+va+"' in messages with id "+ha.$id+", trying to find a translation for the default string '"+xa+"'."),ha[xa]||pa("No message found for the default string '"+xa+"' in the provided messages. Falling back to the default English message."));var Aa=ha[va]||ha[xa]||xa;return ya&&(ga==="dollarSigns"&&(Aa=Aa.replace(/\$(\$|[\d]+)/g,function(Ca,Sa){return Sa=="$"?"$":ya[Sa]})),ga==="curlyBrackets"&&(Aa=Aa.replace(/\{([^\}]+)\}/g,function(Ca,Sa){return ya[Sa]}))),Aa},ma}();fa.prototype.warn=pa,fa.prototype.reportError=ca,sa.implement(fa.prototype,la),oa.AppConfig=fa}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(ra,oa,aa){aa.exports=`.ace-tm .ace_gutter {
  background: #f0f0f0;
  color: #333;
}

.ace-tm .ace_print-margin {
  width: 1px;
  background: #e8e8e8;
}

.ace-tm .ace_fold {
    background-color: #6B72E6;
}

.ace-tm {
  background-color: #FFFFFF;
  color: black;
}

.ace-tm .ace_cursor {
  color: black;
}
        
.ace-tm .ace_invisible {
  color: rgb(191, 191, 191);
}

.ace-tm .ace_storage,
.ace-tm .ace_keyword {
  color: blue;
}

.ace-tm .ace_constant {
  color: rgb(197, 6, 11);
}

.ace-tm .ace_constant.ace_buildin {
  color: rgb(88, 72, 246);
}

.ace-tm .ace_constant.ace_language {
  color: rgb(88, 92, 246);
}

.ace-tm .ace_constant.ace_library {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_invalid {
  background-color: rgba(255, 0, 0, 0.1);
  color: red;
}

.ace-tm .ace_support.ace_function {
  color: rgb(60, 76, 114);
}

.ace-tm .ace_support.ace_constant {
  color: rgb(6, 150, 14);
}

.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
  color: rgb(109, 121, 222);
}

.ace-tm .ace_keyword.ace_operator {
  color: rgb(104, 118, 135);
}

.ace-tm .ace_string {
  color: rgb(3, 106, 7);
}

.ace-tm .ace_comment {
  color: rgb(76, 136, 107);
}

.ace-tm .ace_comment.ace_doc {
  color: rgb(0, 102, 255);
}

.ace-tm .ace_comment.ace_doc.ace_tag {
  color: rgb(128, 159, 191);
}

.ace-tm .ace_constant.ace_numeric {
  color: rgb(0, 0, 205);
}

.ace-tm .ace_variable {
  color: rgb(49, 132, 149);
}

.ace-tm .ace_xml-pe {
  color: rgb(104, 104, 91);
}

.ace-tm .ace_entity.ace_name.ace_function {
  color: #0000A2;
}


.ace-tm .ace_heading {
  color: rgb(12, 7, 255);
}

.ace-tm .ace_list {
  color:rgb(185, 6, 144);
}

.ace-tm .ace_meta.ace_tag {
  color:rgb(0, 22, 142);
}

.ace-tm .ace_string.ace_regex {
  color: rgb(255, 0, 0)
}

.ace-tm .ace_marker-layer .ace_selection {
  background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
  background: rgb(252, 255, 0);
}

.ace-tm .ace_marker-layer .ace_stack {
  background: rgb(164, 229, 101);
}

.ace-tm .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid rgb(192, 192, 192);
}

.ace-tm .ace_marker-layer .ace_active-line {
  background: rgba(0, 0, 0, 0.07);
}

.ace-tm .ace_gutter-active-line {
    background-color : #dcdcdc;
}

.ace-tm .ace_marker-layer .ace_selected-word {
  background: rgb(250, 250, 255);
  border: 1px solid rgb(200, 200, 250);
}

.ace-tm .ace_indent-guide {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
}

.ace-tm .ace_indent-guide-active {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
}
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(ra,oa,aa){oa.isDark=!1,oa.cssClass="ace-tm",oa.cssText=ra("./textmate-css"),oa.$id="ace/theme/textmate";var sa=ra("../lib/dom");sa.importCssString(oa.cssText,oa.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(ra,oa,aa){"no use strict";var sa=ra("./lib/lang"),la=ra("./lib/net"),ca=ra("./lib/dom"),ua=ra("./lib/app_config").AppConfig;aa.exports=oa=new ua;var da={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};oa.get=function(fa){if(!da.hasOwnProperty(fa))throw new Error("Unknown config key: "+fa);return da[fa]},oa.set=function(fa,ma){if(da.hasOwnProperty(fa))da[fa]=ma;else if(this.setDefaultValue("",fa,ma)==!1)throw new Error("Unknown config key: "+fa);fa=="useStrictCSP"&&ca.useStrictCSP(ma)},oa.all=function(){return sa.copyObject(da)},oa.$modes={},oa.moduleUrl=function(fa,ma){if(da.$moduleUrls[fa])return da.$moduleUrls[fa];var va=fa.split("/");ma=ma||va[va.length-2]||"";var xa=ma=="snippets"?"/":"-",ya=va[va.length-1];if(ma=="worker"&&xa=="-"){var Aa=new RegExp("^"+ma+"[\\-_]|[\\-_]"+ma+"$","g");ya=ya.replace(Aa,"")}(!ya||ya==ma)&&va.length>1&&(ya=va[va.length-2]);var Ca=da[ma+"Path"];return Ca==null?Ca=da.basePath:xa=="/"&&(ma=xa=""),Ca&&Ca.slice(-1)!="/"&&(Ca+="/"),Ca+ma+xa+ya+this.get("suffix")},oa.setModuleUrl=function(fa,ma){return da.$moduleUrls[fa]=ma};var pa=function(fa,ma){if(fa==="ace/theme/textmate"||fa==="./theme/textmate")return ma(null,ra("./theme/textmate"));if(ha)return ha(fa,ma);console.error("loader is not configured")},ha;oa.setLoader=function(fa){ha=fa},oa.dynamicModules=Object.create(null),oa.$loading={},oa.$loaded={},oa.loadModule=function(fa,ma){var va;if(Array.isArray(fa))var xa=fa[0],ya=fa[1];else if(typeof fa=="string")var ya=fa;var Aa=function(Ca){if(Ca&&!oa.$loading[ya])return ma&&ma(Ca);if(oa.$loading[ya]||(oa.$loading[ya]=[]),oa.$loading[ya].push(ma),!(oa.$loading[ya].length>1)){var Sa=function(){pa(ya,function(wa,ba){ba&&(oa.$loaded[ya]=ba),oa._emit("load.module",{name:ya,module:ba});var Ea=oa.$loading[ya];oa.$loading[ya]=null,Ea.forEach(function($a){$a&&$a(ba)})})};if(!oa.get("packaged"))return Sa();la.loadScript(oa.moduleUrl(ya,xa),Sa),ga()}};if(oa.dynamicModules[ya])oa.dynamicModules[ya]().then(function(Ca){Ca.default?Aa(Ca.default):Aa(Ca)});else{try{va=this.$require(ya)}catch{}Aa(va||oa.$loaded[ya])}},oa.$require=function(fa){if(typeof aa.require=="function"){var ma="require";return aa[ma](fa)}},oa.setModuleLoader=function(fa,ma){oa.dynamicModules[fa]=ma};var ga=function(){!da.basePath&&!da.workerPath&&!da.modePath&&!da.themePath&&!Object.keys(da.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),ga=function(){})};oa.version="1.39.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(ra,oa,aa){ra("./lib/fixoldbrowsers");var sa=ra("./config");sa.setLoader(function(da,pa){ra([da],function(ha){pa(null,ha)})});var la=function(){return this||typeof window<"u"&&window}();aa.exports=function(da){sa.init=ca,sa.$require=ra,da.require=ra},ca(!0);function ca(da){if(!(!la||!la.document)){sa.set("packaged",da||ra.packaged||aa.packaged||la.define&&(void 0).packaged);var pa={},ha="",ga=document.currentScript||document._currentScript,fa=ga&&ga.ownerDocument||document;ga&&ga.src&&(ha=ga.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var ma=fa.getElementsByTagName("script"),va=0;va<ma.length;va++){var xa=ma[va],ya=xa.src||xa.getAttribute("src");if(ya){for(var Aa=xa.attributes,Ca=0,Sa=Aa.length;Ca<Sa;Ca++){var wa=Aa[Ca];wa.name.indexOf("data-ace-")===0&&(pa[ua(wa.name.replace(/^data-ace-/,""))]=wa.value)}var ba=ya.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);ba&&(ha=ba[1])}}ha&&(pa.base=pa.base||ha,pa.packaged=!0),pa.basePath=pa.base,pa.workerPath=pa.workerPath||pa.base,pa.modePath=pa.modePath||pa.base,pa.themePath=pa.themePath||pa.base,delete pa.base;for(var Ea in pa)typeof pa[Ea]<"u"&&sa.set(Ea,pa[Ea])}}function ua(da){return da.replace(/-(.)/g,function(pa,ha){return ha.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(ra,oa,aa){var sa=function(){function la(ca,ua,da,pa){this.start={row:ca,column:ua},this.end={row:da,column:pa}}return la.prototype.isEqual=function(ca){return this.start.row===ca.start.row&&this.end.row===ca.end.row&&this.start.column===ca.start.column&&this.end.column===ca.end.column},la.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},la.prototype.contains=function(ca,ua){return this.compare(ca,ua)==0},la.prototype.compareRange=function(ca){var ua,da=ca.end,pa=ca.start;return ua=this.compare(da.row,da.column),ua==1?(ua=this.compare(pa.row,pa.column),ua==1?2:ua==0?1:0):ua==-1?-2:(ua=this.compare(pa.row,pa.column),ua==-1?-1:ua==1?42:0)},la.prototype.comparePoint=function(ca){return this.compare(ca.row,ca.column)},la.prototype.containsRange=function(ca){return this.comparePoint(ca.start)==0&&this.comparePoint(ca.end)==0},la.prototype.intersects=function(ca){var ua=this.compareRange(ca);return ua==-1||ua==0||ua==1},la.prototype.isEnd=function(ca,ua){return this.end.row==ca&&this.end.column==ua},la.prototype.isStart=function(ca,ua){return this.start.row==ca&&this.start.column==ua},la.prototype.setStart=function(ca,ua){typeof ca=="object"?(this.start.column=ca.column,this.start.row=ca.row):(this.start.row=ca,this.start.column=ua)},la.prototype.setEnd=function(ca,ua){typeof ca=="object"?(this.end.column=ca.column,this.end.row=ca.row):(this.end.row=ca,this.end.column=ua)},la.prototype.inside=function(ca,ua){return this.compare(ca,ua)==0?!(this.isEnd(ca,ua)||this.isStart(ca,ua)):!1},la.prototype.insideStart=function(ca,ua){return this.compare(ca,ua)==0?!this.isEnd(ca,ua):!1},la.prototype.insideEnd=function(ca,ua){return this.compare(ca,ua)==0?!this.isStart(ca,ua):!1},la.prototype.compare=function(ca,ua){return!this.isMultiLine()&&ca===this.start.row?ua<this.start.column?-1:ua>this.end.column?1:0:ca<this.start.row?-1:ca>this.end.row?1:this.start.row===ca?ua>=this.start.column?0:-1:this.end.row===ca?ua<=this.end.column?0:1:0},la.prototype.compareStart=function(ca,ua){return this.start.row==ca&&this.start.column==ua?-1:this.compare(ca,ua)},la.prototype.compareEnd=function(ca,ua){return this.end.row==ca&&this.end.column==ua?1:this.compare(ca,ua)},la.prototype.compareInside=function(ca,ua){return this.end.row==ca&&this.end.column==ua?1:this.start.row==ca&&this.start.column==ua?-1:this.compare(ca,ua)},la.prototype.clipRows=function(ca,ua){if(this.end.row>ua)var da={row:ua+1,column:0};else if(this.end.row<ca)var da={row:ca,column:0};if(this.start.row>ua)var pa={row:ua+1,column:0};else if(this.start.row<ca)var pa={row:ca,column:0};return la.fromPoints(pa||this.start,da||this.end)},la.prototype.extend=function(ca,ua){var da=this.compare(ca,ua);if(da==0)return this;if(da==-1)var pa={row:ca,column:ua};else var ha={row:ca,column:ua};return la.fromPoints(pa||this.start,ha||this.end)},la.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},la.prototype.isMultiLine=function(){return this.start.row!==this.end.row},la.prototype.clone=function(){return la.fromPoints(this.start,this.end)},la.prototype.collapseRows=function(){return this.end.column==0?new la(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new la(this.start.row,0,this.end.row,0)},la.prototype.toScreenRange=function(ca){var ua=ca.documentToScreenPosition(this.start),da=ca.documentToScreenPosition(this.end);return new la(ua.row,ua.column,da.row,da.column)},la.prototype.moveBy=function(ca,ua){this.start.row+=ca,this.start.column+=ua,this.end.row+=ca,this.end.column+=ua},la}();sa.fromPoints=function(la,ca){return new sa(la.row,la.column,ca.row,ca.column)},sa.comparePoints=function(la,ca){return la.row-ca.row||la.column-ca.column},oa.Range=sa}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(ra,oa,aa){for(var sa=ra("./oop"),la={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},ca={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},ua=0;ua<10;ua++)ca["Digit"+ua]=48+ua,ca["Numpad"+ua]=96+ua,la.PRINTABLE_KEYS[48+ua]=""+ua,la.FUNCTION_KEYS[96+ua]="Numpad"+ua;for(var ua=65;ua<91;ua++){var da=String.fromCharCode(ua+32);ca["Key"+da.toUpperCase()]=ua,la.PRINTABLE_KEYS[ua]=da}for(var ua=1;ua<13;ua++)ca["F"+ua]=111+ua,la.FUNCTION_KEYS[111+ua]="F"+ua;var pa={Shift:16,Control:17,Alt:18,Meta:224};for(var ha in pa)ca[ha]=ca[ha+"Left"]=ca[ha+"Right"]=pa[ha];oa.$codeToKeyCode=ca,la.PRINTABLE_KEYS[173]="-";for(var ga in la.FUNCTION_KEYS){var fa=la.FUNCTION_KEYS[ga].toLowerCase();la[fa]=parseInt(ga,10)}for(var ga in la.PRINTABLE_KEYS){var fa=la.PRINTABLE_KEYS[ga].toLowerCase();la[fa]=parseInt(ga,10)}sa.mixin(la,la.MODIFIER_KEYS),sa.mixin(la,la.PRINTABLE_KEYS),sa.mixin(la,la.FUNCTION_KEYS),la.enter=la.return,la.escape=la.esc,la.del=la.delete,function(){for(var ma=["cmd","ctrl","alt","shift"],va=Math.pow(2,ma.length);va--;)la.KEY_MODS[va]=ma.filter(function(xa){return va&la.KEY_MODS[xa]}).join("-")+"-"}(),la.KEY_MODS[0]="",la.KEY_MODS[-1]="input-",sa.mixin(oa,la),oa.default=oa,oa.keyCodeToString=function(ma){var va=la[ma];return typeof va!="string"&&(va=String.fromCharCode(ma)),va.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("./keys"),la=ra("./useragent"),ca=null,ua=0,da;function pa(){da=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return da={passive:!1},!0}})}catch{}}function ha(){return da==null&&pa(),da}function ga(Ca,Sa,wa){this.elem=Ca,this.type=Sa,this.callback=wa}ga.prototype.destroy=function(){ma(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var fa=oa.addListener=function(Ca,Sa,wa,ba){Ca.addEventListener(Sa,wa,ha()),ba&&ba.$toDestroy.push(new ga(Ca,Sa,wa))},ma=oa.removeListener=function(Ca,Sa,wa){Ca.removeEventListener(Sa,wa,ha())};oa.stopEvent=function(Ca){return oa.stopPropagation(Ca),oa.preventDefault(Ca),!1},oa.stopPropagation=function(Ca){Ca.stopPropagation&&Ca.stopPropagation()},oa.preventDefault=function(Ca){Ca.preventDefault&&Ca.preventDefault()},oa.getButton=function(Ca){return Ca.type=="dblclick"?0:Ca.type=="contextmenu"||la.isMac&&Ca.ctrlKey&&!Ca.altKey&&!Ca.shiftKey?2:Ca.button},oa.capture=function(Ca,Sa,wa){var ba=Ca&&Ca.ownerDocument||document;function Ea($a){Sa&&Sa($a),wa&&wa($a),ma(ba,"mousemove",Sa),ma(ba,"mouseup",Ea),ma(ba,"dragstart",Ea)}return fa(ba,"mousemove",Sa),fa(ba,"mouseup",Ea),fa(ba,"dragstart",Ea),Ea},oa.addMouseWheelListener=function(Ca,Sa,wa){fa(Ca,"wheel",function(ba){var Ea=.15,$a=ba.deltaX||0,Ma=ba.deltaY||0;switch(ba.deltaMode){case ba.DOM_DELTA_PIXEL:ba.wheelX=$a*Ea,ba.wheelY=Ma*Ea;break;case ba.DOM_DELTA_LINE:var Ia=15;ba.wheelX=$a*Ia,ba.wheelY=Ma*Ia;break;case ba.DOM_DELTA_PAGE:var Oa=150;ba.wheelX=$a*Oa,ba.wheelY=Ma*Oa;break}Sa(ba)},wa)},oa.addMultiMouseDownListener=function(Ca,Sa,wa,ba,Ea){var $a=0,Ma,Ia,Oa,Da={2:"dblclick",3:"tripleclick",4:"quadclick"};function Ta(_a){if(oa.getButton(_a)!==0?$a=0:_a.detail>1?($a++,$a>4&&($a=1)):$a=1,la.isIE){var La=Math.abs(_a.clientX-Ma)>5||Math.abs(_a.clientY-Ia)>5;(!Oa||La)&&($a=1),Oa&&clearTimeout(Oa),Oa=setTimeout(function(){Oa=null},Sa[$a-1]||600),$a==1&&(Ma=_a.clientX,Ia=_a.clientY)}if(_a._clicks=$a,wa[ba]("mousedown",_a),$a>4)$a=0;else if($a>1)return wa[ba](Da[$a],_a)}Array.isArray(Ca)||(Ca=[Ca]),Ca.forEach(function(_a){fa(_a,"mousedown",Ta,Ea)})};function va(Ca){return 0|(Ca.ctrlKey?1:0)|(Ca.altKey?2:0)|(Ca.shiftKey?4:0)|(Ca.metaKey?8:0)}oa.getModifierString=function(Ca){return sa.KEY_MODS[va(Ca)]};function xa(Ca,Sa,wa){var ba=va(Sa);if(!wa&&Sa.code&&(wa=sa.$codeToKeyCode[Sa.code]||wa),!la.isMac&&ca){if(Sa.getModifierState&&(Sa.getModifierState("OS")||Sa.getModifierState("Win"))&&(ba|=8),ca.altGr)if((3&ba)!=3)ca.altGr=0;else return;if(wa===18||wa===17){var Ea=Sa.location;if(wa===17&&Ea===1)ca[wa]==1&&(ua=Sa.timeStamp);else if(wa===18&&ba===3&&Ea===2){var $a=Sa.timeStamp-ua;$a<50&&(ca.altGr=!0)}}}if(wa in sa.MODIFIER_KEYS&&(wa=-1),!(!ba&&wa===13&&Sa.location===3&&(Ca(Sa,ba,-wa),Sa.defaultPrevented))){if(la.isChromeOS&&ba&8){if(Ca(Sa,ba,wa),Sa.defaultPrevented)return;ba&=-9}return!ba&&!(wa in sa.FUNCTION_KEYS)&&!(wa in sa.PRINTABLE_KEYS)?!1:Ca(Sa,ba,wa)}}oa.addCommandKeyListener=function(Ca,Sa,wa){var ba=null;fa(Ca,"keydown",function(Ea){ca[Ea.keyCode]=(ca[Ea.keyCode]||0)+1;var $a=xa(Sa,Ea,Ea.keyCode);return ba=Ea.defaultPrevented,$a},wa),fa(Ca,"keypress",function(Ea){ba&&(Ea.ctrlKey||Ea.altKey||Ea.shiftKey||Ea.metaKey)&&(oa.stopEvent(Ea),ba=null)},wa),fa(Ca,"keyup",function(Ea){ca[Ea.keyCode]=null},wa),ca||(ya(),fa(window,"focus",ya))};function ya(){ca=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!la.isOldIE){var Aa=1;oa.nextTick=function(Ca,Sa){Sa=Sa||window;var wa="zero-timeout-message-"+Aa++,ba=function(Ea){Ea.data==wa&&(oa.stopPropagation(Ea),ma(Sa,"message",ba),Ca())};fa(Sa,"message",ba),Sa.postMessage(wa,"*")}}oa.$idleBlocked=!1,oa.onIdle=function(Ca,Sa){return setTimeout(function wa(){oa.$idleBlocked?setTimeout(wa,100):Ca()},Sa)},oa.$idleBlockId=null,oa.blockIdle=function(Ca){oa.$idleBlockId&&clearTimeout(oa.$idleBlockId),oa.$idleBlocked=!0,oa.$idleBlockId=setTimeout(function(){oa.$idleBlocked=!1},Ca||100)},oa.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),oa.nextFrame?oa.nextFrame=oa.nextFrame.bind(window):oa.nextFrame=function(Ca){setTimeout(Ca,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(ra,oa,aa){var sa;aa.exports={lineMode:!1,pasteCancelled:function(){return sa&&sa>Date.now()-50?!0:sa=!1},cancel:function(){sa=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(ra,oa,aa){var sa=ra("../lib/event"),la=ra("../config").nls,ca=ra("../lib/useragent"),ua=ra("../lib/dom"),da=ra("../lib/lang"),pa=ra("../clipboard"),ha=ca.isChrome<18,ga=ca.isIE,fa=ca.isChrome>63,ma=400,va=ra("../lib/keys"),xa=va.KEY_MODS,ya=ca.isIOS,Aa=ya?/\s/:/\n/,Ca=ca.isMobile,Sa;Sa=function(wa,ba){var Ea=ua.createElement("textarea");Ea.className="ace_text-input",Ea.setAttribute("wrap","off"),Ea.setAttribute("autocorrect","off"),Ea.setAttribute("autocapitalize","off"),Ea.setAttribute("spellcheck","false"),Ea.style.opacity="0",wa.insertBefore(Ea,wa.firstChild);var $a=!1,Ma=!1,Ia=!1,Oa=!1,Da="";Ca||(Ea.style.fontSize="1px");var Ta=!1,_a=!1,La="",Na=0,za=0,Fa=0,Ha=Number.MAX_SAFE_INTEGER,Va=Number.MIN_SAFE_INTEGER,Ua=0;try{var Qa=document.activeElement===Ea}catch{}this.setNumberOfExtraLines=function(Al){if(Ha=Number.MAX_SAFE_INTEGER,Va=Number.MIN_SAFE_INTEGER,Al<0){Ua=0;return}Ua=Al},this.setAriaLabel=function(){var Al="";if(ba.$textInputAriaLabel&&(Al+="".concat(ba.$textInputAriaLabel,", ")),ba.session){var gl=ba.session.selection.cursor.row;Al+=la("text-input.aria-label","Cursor at row $0",[gl+1])}Ea.setAttribute("aria-label",Al)},this.setAriaOptions=function(Al){Al.activeDescendant?(Ea.setAttribute("aria-haspopup","true"),Ea.setAttribute("aria-autocomplete",Al.inline?"both":"list"),Ea.setAttribute("aria-activedescendant",Al.activeDescendant)):(Ea.setAttribute("aria-haspopup","false"),Ea.setAttribute("aria-autocomplete","both"),Ea.removeAttribute("aria-activedescendant")),Al.role&&Ea.setAttribute("role",Al.role),Al.setLabel&&(Ea.setAttribute("aria-roledescription",la("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),sa.addListener(Ea,"blur",function(Al){_a||(ba.onBlur(Al),Qa=!1)},ba),sa.addListener(Ea,"focus",function(Al){if(!_a){if(Qa=!0,ca.isEdge)try{if(!document.hasFocus())return}catch{}ba.onFocus(Al),ca.isEdge?setTimeout(Za):Za()}},ba),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:ba.renderer.enableKeyboardAccessibility}),Da||fa||this.$focusScroll=="browser")return Ea.focus({preventScroll:!0});var Al=Ea.style.top;Ea.style.position="fixed",Ea.style.top="0px";try{var gl=Ea.getBoundingClientRect().top!=0}catch{return}var xl=[];if(gl)for(var Sl=Ea.parentElement;Sl&&Sl.nodeType==1;)xl.push(Sl),Sl.setAttribute("ace_nocontext","true"),!Sl.parentElement&&Sl.getRootNode?Sl=Sl.getRootNode().host:Sl=Sl.parentElement;Ea.focus({preventScroll:!0}),gl&&xl.forEach(function($l){$l.removeAttribute("ace_nocontext")}),setTimeout(function(){Ea.style.position="",Ea.style.top=="0px"&&(Ea.style.top=Al)},0)},this.blur=function(){Ea.blur()},this.isFocused=function(){return Qa},ba.on("beforeEndOperation",function(){var Al=ba.curOp,gl=Al&&Al.command&&Al.command.name;if(gl!="insertstring"){var xl=gl&&(Al.docChanged||Al.selectionChanged);Ia&&xl&&(La=Ea.value="",Il()),Za()}}),ba.on("changeSelection",this.setAriaLabel);var Wa=function(Al,gl){for(var xl=gl,Sl=1;Sl<=Al-Ha&&Sl<2*Ua+1;Sl++)xl+=ba.session.getLine(Al-Sl).length+1;return xl},Za=ya?function(Al){if(!(!Qa||$a&&!Al||Oa)){Al||(Al="");var gl=`
 ab`+Al+`cde fg
`;gl!=Ea.value&&(Ea.value=La=gl);var xl=4,Sl=4+(Al.length||(ba.selection.isEmpty()?0:1));(Na!=xl||za!=Sl)&&Ea.setSelectionRange(xl,Sl),Na=xl,za=Sl}}:function(){if(!(Ia||Oa)&&!(!Qa&&!Ja)){Ia=!0;var Al=0,gl=0,xl="";if(ba.session){var Sl=ba.selection,$l=Sl.getRange(),Bl=Sl.cursor.row;Bl===Va+1?(Ha=Va+1,Va=Ha+2*Ua):Bl===Ha-1?(Va=Ha-1,Ha=Va-2*Ua):(Bl<Ha-1||Bl>Va+1)&&(Ha=Bl>Ua?Bl-Ua:0,Va=Bl>Ua?Bl+Ua:2*Ua);for(var Ul=[],ec=Ha;ec<=Va;ec++)Ul.push(ba.session.getLine(ec));if(xl=Ul.join(`
`),Al=Wa($l.start.row,$l.start.column),gl=Wa($l.end.row,$l.end.column),$l.start.row<Ha){var Kl=ba.session.getLine(Ha-1);Al=$l.start.row<Ha-1?0:Al,gl+=Kl.length+1,xl=Kl+`
`+xl}else if($l.end.row>Va){var rc=ba.session.getLine(Va+1);gl=$l.end.row>Va+1?rc.length:$l.end.column,gl+=xl.length+1,xl=xl+`
`+rc}else Ca&&Bl>0&&(xl=`
`+xl,gl+=1,Al+=1);xl.length>ma&&(Al<ma&&gl<ma?xl=xl.slice(0,ma):(xl=`
`,Al==gl?Al=gl=0:(Al=0,gl=1)));var wl=xl+`

`;wl!=La&&(Ea.value=La=wl,Na=za=wl.length)}if(Ja&&(Na=Ea.selectionStart,za=Ea.selectionEnd),za!=gl||Na!=Al||Ea.selectionEnd!=za)try{Ea.setSelectionRange(Al,gl),Na=Al,za=gl}catch{}Ia=!1}};this.resetSelection=Za,Qa&&ba.onFocus();var Xa=function(Al){return Al.selectionStart===0&&Al.selectionEnd>=La.length&&Al.value===La&&La&&Al.selectionEnd!==za},tl=function(Al){Ia||($a?$a=!1:Xa(Ea)?(ba.selectAll(),Za()):Ca&&Ea.selectionStart!=Na&&Za())},il=null;this.setInputHandler=function(Al){il=Al},this.getInputHandler=function(){return il};var Ja=!1,nl=function(Al,gl){if(Ja&&(Ja=!1),Ma)return Za(),Al&&ba.onPaste(Al),Ma=!1,"";for(var xl=Ea.selectionStart,Sl=Ea.selectionEnd,$l=Na,Bl=La.length-za,Ul=Al,ec=Al.length-xl,Kl=Al.length-Sl,rc=0;$l>0&&La[rc]==Al[rc];)rc++,$l--;for(Ul=Ul.slice(rc),rc=1;Bl>0&&La.length-rc>Na-1&&La[La.length-rc]==Al[Al.length-rc];)rc++,Bl--;ec-=rc-1,Kl-=rc-1;var wl=Ul.length-rc+1;if(wl<0&&($l=-wl,wl=0),Ul=Ul.slice(0,wl),!gl&&!Ul&&!ec&&!$l&&!Bl&&!Kl)return"";Oa=!0;var Ll=!1;return ca.isAndroid&&Ul==". "&&(Ul="  ",Ll=!0),Ul&&!$l&&!Bl&&!ec&&!Kl||Ta?ba.onTextInput(Ul):ba.onTextInput(Ul,{extendLeft:$l,extendRight:Bl,restoreStart:ec,restoreEnd:Kl}),Oa=!1,La=Al,Na=xl,za=Sl,Fa=Kl,Ll?`
`:Ul},Ya=function(Al){if(Ia)return Tl();if(Al&&Al.inputType){if(Al.inputType=="historyUndo")return ba.execCommand("undo");if(Al.inputType=="historyRedo")return ba.execCommand("redo")}var gl=Ea.value,xl=nl(gl,!0);(gl.length>ma+100||Aa.test(xl)||Ca&&Na<1&&Na==za)&&Za()},rl=function(Al,gl,xl){var Sl=Al.clipboardData||window.clipboardData;if(!(!Sl||ha)){var $l=ga||xl?"Text":"text/plain";try{return gl?Sl.setData($l,gl)!==!1:Sl.getData($l)}catch(Bl){if(!xl)return rl(Bl,gl,!0)}}},sl=function(Al,gl){var xl=ba.getCopyText();if(!xl)return sa.preventDefault(Al);rl(Al,xl)?(ya&&(Za(xl),$a=xl,setTimeout(function(){$a=!1},10)),gl?ba.onCut():ba.onCopy(),sa.preventDefault(Al)):($a=!0,Ea.value=xl,Ea.select(),setTimeout(function(){$a=!1,Za(),gl?ba.onCut():ba.onCopy()}))},dl=function(Al){sl(Al,!0)},pl=function(Al){sl(Al,!1)},ml=function(Al){var gl=rl(Al);pa.pasteCancelled()||(typeof gl=="string"?(gl&&ba.onPaste(gl,Al),ca.isIE&&setTimeout(Za),sa.preventDefault(Al)):(Ea.value="",Ma=!0))};sa.addCommandKeyListener(Ea,function(Al,gl,xl){if(!Ia)return ba.onCommandKey(Al,gl,xl)},ba),sa.addListener(Ea,"select",tl,ba),sa.addListener(Ea,"input",Ya,ba),sa.addListener(Ea,"cut",dl,ba),sa.addListener(Ea,"copy",pl,ba),sa.addListener(Ea,"paste",ml,ba),(!("oncut"in Ea)||!("oncopy"in Ea)||!("onpaste"in Ea))&&sa.addListener(wa,"keydown",function(Al){if(!(ca.isMac&&!Al.metaKey||!Al.ctrlKey))switch(Al.keyCode){case 67:pl(Al);break;case 86:ml(Al);break;case 88:dl(Al);break}},ba);var Rl=function(Al){if(!(Ia||!ba.onCompositionStart||ba.$readOnly)&&(Ia={},!Ta)){Al.data&&(Ia.useTextareaForIME=!1),setTimeout(Tl,0),ba._signal("compositionStart"),ba.on("mousedown",Ol);var gl=ba.getSelectionRange();gl.end.row=gl.start.row,gl.end.column=gl.start.column,Ia.markerRange=gl,Ia.selectionStart=Na,ba.onCompositionStart(Ia),Ia.useTextareaForIME?(La=Ea.value="",Na=0,za=0):(Ea.msGetInputContext&&(Ia.context=Ea.msGetInputContext()),Ea.getInputContext&&(Ia.context=Ea.getInputContext()))}},Tl=function(){if(!(!Ia||!ba.onCompositionUpdate||ba.$readOnly)){if(Ta)return Ol();if(Ia.useTextareaForIME)ba.onCompositionUpdate(Ea.value);else{var Al=Ea.value;nl(Al),Ia.markerRange&&(Ia.context&&(Ia.markerRange.start.column=Ia.selectionStart=Ia.context.compositionStartOffset),Ia.markerRange.end.column=Ia.markerRange.start.column+za-Ia.selectionStart+Fa)}}},Il=function(Al){!ba.onCompositionEnd||ba.$readOnly||(Ia=!1,ba.onCompositionEnd(),ba.off("mousedown",Ol),Al&&Ya())};function Ol(){_a=!0,Ea.blur(),Ea.focus(),_a=!1}var Fl=da.delayedCall(Tl,50).schedule.bind(null,null);function Vl(Al){Al.keyCode==27&&Ea.value.length<Ea.selectionStart&&(Ia||(La=Ea.value),Na=za=-1,Za()),Fl()}sa.addListener(Ea,"compositionstart",Rl,ba),sa.addListener(Ea,"compositionupdate",Tl,ba),sa.addListener(Ea,"keyup",Vl,ba),sa.addListener(Ea,"keydown",Fl,ba),sa.addListener(Ea,"compositionend",Il,ba),this.getElement=function(){return Ea},this.setCommandMode=function(Al){Ta=Al,Ea.readOnly=!1},this.setReadOnly=function(Al){Ta||(Ea.readOnly=Al)},this.setCopyWithEmptySelection=function(Al){},this.onContextMenu=function(Al){Ja=!0,Za(),ba._emit("nativecontextmenu",{target:ba,domEvent:Al}),this.moveToMouse(Al,!0)},this.moveToMouse=function(Al,gl){Da||(Da=Ea.style.cssText),Ea.style.cssText=(gl?"z-index:100000;":"")+(ca.isIE?"opacity:0.1;":"")+"text-indent: -"+(Na+za)*ba.renderer.characterWidth*.5+"px;";var xl=ba.container.getBoundingClientRect(),Sl=ua.computedStyle(ba.container),$l=xl.top+(parseInt(Sl.borderTopWidth)||0),Bl=xl.left+(parseInt(Sl.borderLeftWidth)||0),Ul=xl.bottom-$l-Ea.clientHeight-2,ec=function(Kl){ua.translate(Ea,Kl.clientX-Bl-2,Math.min(Kl.clientY-$l-2,Ul))};ec(Al),Al.type=="mousedown"&&(ba.renderer.$isMousePressed=!0,clearTimeout(Wl),ca.isWin&&sa.capture(ba.container,ec,vl))},this.onContextMenuClose=vl;var Wl;function vl(){clearTimeout(Wl),Wl=setTimeout(function(){Da&&(Ea.style.cssText=Da,Da=""),ba.renderer.$isMousePressed=!1,ba.renderer.$keepTextAreaAtCursor&&ba.renderer.$moveTextAreaToCursor()},0)}var kl=function(Al){ba.textInput.onContextMenu(Al),vl()};sa.addListener(Ea,"mouseup",kl,ba),sa.addListener(Ea,"mousedown",function(Al){Al.preventDefault(),vl()},ba),sa.addListener(ba.renderer.scroller,"contextmenu",kl,ba),sa.addListener(Ea,"contextmenu",kl,ba),ya&&zl(wa,ba,Ea);function zl(Al,gl,xl){var Sl=null,$l=!1;xl.addEventListener("keydown",function(Ul){Sl&&clearTimeout(Sl),$l=!0},!0),xl.addEventListener("keyup",function(Ul){Sl=setTimeout(function(){$l=!1},100)},!0);var Bl=function(Ul){if(document.activeElement===xl&&!($l||Ia||gl.$mouseHandler.isMousePressed)&&!$a){var ec=xl.selectionStart,Kl=xl.selectionEnd,rc=null,wl=0;if(ec==0?rc=va.up:ec==1?rc=va.home:Kl>za&&La[Kl]==`
`?rc=va.end:ec<Na&&La[ec-1]==" "?(rc=va.left,wl=xa.option):ec<Na||ec==Na&&za!=Na&&ec==Kl?rc=va.left:Kl>za&&La.slice(0,Kl).split(`
`).length>2?rc=va.down:Kl>za&&La[Kl-1]==" "?(rc=va.right,wl=xa.option):(Kl>za||Kl==za&&za!=Na&&ec==Kl)&&(rc=va.right),ec!==Kl&&(wl|=xa.shift),rc){var Ll=gl.onCommandKey({},wl,rc);if(!Ll&&gl.commands){rc=va.keyCodeToString(rc);var ic=gl.commands.findKeyCommand(wl,rc);ic&&gl.execCommand(ic)}Na=ec,za=Kl,Za("")}}};document.addEventListener("selectionchange",Bl),gl.on("destroy",function(){document.removeEventListener("selectionchange",Bl)})}this.destroy=function(){Ea.parentElement&&Ea.parentElement.removeChild(Ea)}},oa.TextInput=Sa,oa.$setUserAgentForTests=function(wa,ba){Ca=wa,ya=ba}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("../lib/useragent"),la=0,ca=550,ua=function(){function ha(ga){ga.$clickSelection=null;var fa=ga.editor;fa.setDefaultHandler("mousedown",this.onMouseDown.bind(ga)),fa.setDefaultHandler("dblclick",this.onDoubleClick.bind(ga)),fa.setDefaultHandler("tripleclick",this.onTripleClick.bind(ga)),fa.setDefaultHandler("quadclick",this.onQuadClick.bind(ga)),fa.setDefaultHandler("mousewheel",this.onMouseWheel.bind(ga));var ma=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];ma.forEach(function(va){ga[va]=this[va]},this),ga.selectByLines=this.extendSelectionBy.bind(ga,"getLineRange"),ga.selectByWords=this.extendSelectionBy.bind(ga,"getWordRange")}return ha.prototype.onMouseDown=function(ga){var fa=ga.inSelection(),ma=ga.getDocumentPosition();this.mousedownEvent=ga;var va=this.editor,xa=ga.getButton();if(xa!==0){var ya=va.getSelectionRange(),Aa=ya.isEmpty();(Aa||xa==1)&&va.selection.moveToPosition(ma),xa==2&&(va.textInput.onContextMenu(ga.domEvent),sa.isMozilla||ga.preventDefault());return}if(this.mousedownEvent.time=Date.now(),fa&&!va.isFocused()&&(va.focus(),this.$focusTimeout&&!this.$clickSelection&&!va.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(ga);return}return this.captureMouse(ga),this.startSelect(ma,ga.domEvent._clicks>1),ga.preventDefault()},ha.prototype.startSelect=function(ga,fa){ga=ga||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var ma=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?ma.selection.selectToPosition(ga):fa||ma.selection.moveToPosition(ga),fa||this.select(),ma.setStyle("ace_selecting"),this.setState("select"))},ha.prototype.select=function(){var ga,fa=this.editor,ma=fa.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var va=this.$clickSelection.comparePoint(ma);if(va==-1)ga=this.$clickSelection.end;else if(va==1)ga=this.$clickSelection.start;else{var xa=pa(this.$clickSelection,ma);ma=xa.cursor,ga=xa.anchor}fa.selection.setSelectionAnchor(ga.row,ga.column)}fa.selection.selectToPosition(ma),fa.renderer.scrollCursorIntoView()},ha.prototype.extendSelectionBy=function(ga){var fa,ma=this.editor,va=ma.renderer.screenToTextCoordinates(this.x,this.y),xa=ma.selection[ga](va.row,va.column);if(this.$clickSelection){var ya=this.$clickSelection.comparePoint(xa.start),Aa=this.$clickSelection.comparePoint(xa.end);if(ya==-1&&Aa<=0)fa=this.$clickSelection.end,(xa.end.row!=va.row||xa.end.column!=va.column)&&(va=xa.start);else if(Aa==1&&ya>=0)fa=this.$clickSelection.start,(xa.start.row!=va.row||xa.start.column!=va.column)&&(va=xa.end);else if(ya==-1&&Aa==1)va=xa.end,fa=xa.start;else{var Ca=pa(this.$clickSelection,va);va=Ca.cursor,fa=Ca.anchor}ma.selection.setSelectionAnchor(fa.row,fa.column)}ma.selection.selectToPosition(va),ma.renderer.scrollCursorIntoView()},ha.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},ha.prototype.focusWait=function(){var ga=da(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),fa=Date.now();(ga>la||fa-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},ha.prototype.onDoubleClick=function(ga){var fa=ga.getDocumentPosition(),ma=this.editor,va=ma.session,xa=va.getBracketRange(fa);xa?(xa.isEmpty()&&(xa.start.column--,xa.end.column++),this.setState("select")):(xa=ma.selection.getWordRange(fa.row,fa.column),this.setState("selectByWords")),this.$clickSelection=xa,this.select()},ha.prototype.onTripleClick=function(ga){var fa=ga.getDocumentPosition(),ma=this.editor;this.setState("selectByLines");var va=ma.getSelectionRange();va.isMultiLine()&&va.contains(fa.row,fa.column)?(this.$clickSelection=ma.selection.getLineRange(va.start.row),this.$clickSelection.end=ma.selection.getLineRange(va.end.row).end):this.$clickSelection=ma.selection.getLineRange(fa.row),this.select()},ha.prototype.onQuadClick=function(ga){var fa=this.editor;fa.selectAll(),this.$clickSelection=fa.getSelectionRange(),this.setState("selectAll")},ha.prototype.onMouseWheel=function(ga){if(!ga.getAccelKey()){ga.getShiftKey()&&ga.wheelY&&!ga.wheelX&&(ga.wheelX=ga.wheelY,ga.wheelY=0);var fa=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var ma=this.$lastScroll,va=ga.domEvent.timeStamp,xa=va-ma.t,ya=xa?ga.wheelX/xa:ma.vx,Aa=xa?ga.wheelY/xa:ma.vy;xa<ca&&(ya=(ya+ma.vx)/2,Aa=(Aa+ma.vy)/2);var Ca=Math.abs(ya/Aa),Sa=!1;if(Ca>=1&&fa.renderer.isScrollableBy(ga.wheelX*ga.speed,0)&&(Sa=!0),Ca<=1&&fa.renderer.isScrollableBy(0,ga.wheelY*ga.speed)&&(Sa=!0),Sa)ma.allowed=va;else if(va-ma.allowed<ca){var wa=Math.abs(ya)<=1.5*Math.abs(ma.vx)&&Math.abs(Aa)<=1.5*Math.abs(ma.vy);wa?(Sa=!0,ma.allowed=va):ma.allowed=0}if(ma.t=va,ma.vx=ya,ma.vy=Aa,Sa)return fa.renderer.scrollBy(ga.wheelX*ga.speed,ga.wheelY*ga.speed),ga.stop()}},ha}();ua.prototype.selectEnd=ua.prototype.selectByLinesEnd,ua.prototype.selectAllEnd=ua.prototype.selectByLinesEnd,ua.prototype.selectByWordsEnd=ua.prototype.selectByLinesEnd,oa.DefaultHandlers=ua;function da(ha,ga,fa,ma){return Math.sqrt(Math.pow(fa-ha,2)+Math.pow(ma-ga,2))}function pa(ha,ga){if(ha.start.row==ha.end.row)var fa=2*ga.column-ha.start.column-ha.end.column;else if(ha.start.row==ha.end.row-1&&!ha.start.column&&!ha.end.column)var fa=ga.column-4;else var fa=2*ga.row-ha.start.row-ha.end.row;return fa<0?{cursor:ha.start,anchor:ha.end}:{cursor:ha.end,anchor:ha.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(ra,oa,aa){oa.preventParentScroll=function(la){la.stopPropagation();var ca=la.currentTarget,ua=ca.scrollHeight>ca.clientHeight;ua||la.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var va=function(xa,ya){return va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Aa,Ca){Aa.__proto__=Ca}||function(Aa,Ca){for(var Sa in Ca)Object.prototype.hasOwnProperty.call(Ca,Sa)&&(Aa[Sa]=Ca[Sa])},va(xa,ya)};return function(xa,ya){if(typeof ya!="function"&&ya!==null)throw new TypeError("Class extends value "+String(ya)+" is not a constructor or null");va(xa,ya);function Aa(){this.constructor=xa}xa.prototype=ya===null?Object.create(ya):(Aa.prototype=ya.prototype,new Aa)}}(),la=this&&this.__values||function(va){var xa=typeof Symbol=="function"&&Symbol.iterator,ya=xa&&va[xa],Aa=0;if(ya)return ya.call(va);if(va&&typeof va.length=="number")return{next:function(){return va&&Aa>=va.length&&(va=void 0),{value:va&&va[Aa++],done:!va}}};throw new TypeError(xa?"Object is not iterable.":"Symbol.iterator is not defined.")},ca=ra("./lib/dom");ra("./lib/event");var ua=ra("./range").Range,da=ra("./lib/scroll").preventParentScroll,pa="ace_tooltip",ha=function(){function va(xa){this.isOpen=!1,this.$element=null,this.$parentNode=xa}return va.prototype.$init=function(){return this.$element=ca.createElement("div"),this.$element.className=pa,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},va.prototype.getElement=function(){return this.$element||this.$init()},va.prototype.setText=function(xa){this.getElement().textContent=xa},va.prototype.setHtml=function(xa){this.getElement().innerHTML=xa},va.prototype.setPosition=function(xa,ya){this.getElement().style.left=xa+"px",this.getElement().style.top=ya+"px"},va.prototype.setClassName=function(xa){ca.addCssClass(this.getElement(),xa)},va.prototype.setTheme=function(xa){this.$element.className=pa+" "+(xa.isDark?"ace_dark ":"")+(xa.cssClass||"")},va.prototype.show=function(xa,ya,Aa){xa!=null&&this.setText(xa),ya!=null&&Aa!=null&&this.setPosition(ya,Aa),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},va.prototype.hide=function(xa){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=pa,this.isOpen=!1)},va.prototype.getHeight=function(){return this.getElement().offsetHeight},va.prototype.getWidth=function(){return this.getElement().offsetWidth},va.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},va}(),ga=function(){function va(){this.popups=[]}return va.prototype.addPopup=function(xa){this.popups.push(xa),this.updatePopups()},va.prototype.removePopup=function(xa){var ya=this.popups.indexOf(xa);ya!==-1&&(this.popups.splice(ya,1),this.updatePopups())},va.prototype.updatePopups=function(){var xa,ya,Aa,Ca;this.popups.sort(function(Da,Ta){return Ta.priority-Da.priority});var Sa=[];try{for(var wa=la(this.popups),ba=wa.next();!ba.done;ba=wa.next()){var Ea=ba.value,$a=!0;try{for(var Ma=(Aa=void 0,la(Sa)),Ia=Ma.next();!Ia.done;Ia=Ma.next()){var Oa=Ia.value;if(this.doPopupsOverlap(Oa,Ea)){$a=!1;break}}}catch(Da){Aa={error:Da}}finally{try{Ia&&!Ia.done&&(Ca=Ma.return)&&Ca.call(Ma)}finally{if(Aa)throw Aa.error}}$a?Sa.push(Ea):Ea.hide()}}catch(Da){xa={error:Da}}finally{try{ba&&!ba.done&&(ya=wa.return)&&ya.call(wa)}finally{if(xa)throw xa.error}}},va.prototype.doPopupsOverlap=function(xa,ya){var Aa=xa.getElement().getBoundingClientRect(),Ca=ya.getElement().getBoundingClientRect();return Aa.left<Ca.right&&Aa.right>Ca.left&&Aa.top<Ca.bottom&&Aa.bottom>Ca.top},va}(),fa=new ga;oa.popupManager=fa,oa.Tooltip=ha;var ma=function(va){sa(xa,va);function xa(ya){ya===void 0&&(ya=document.body);var Aa=va.call(this,ya)||this;Aa.timeout=void 0,Aa.lastT=0,Aa.idleTime=350,Aa.lastEvent=void 0,Aa.onMouseOut=Aa.onMouseOut.bind(Aa),Aa.onMouseMove=Aa.onMouseMove.bind(Aa),Aa.waitForHover=Aa.waitForHover.bind(Aa),Aa.hide=Aa.hide.bind(Aa);var Ca=Aa.getElement();return Ca.style.whiteSpace="pre-wrap",Ca.style.pointerEvents="auto",Ca.addEventListener("mouseout",Aa.onMouseOut),Ca.tabIndex=-1,Ca.addEventListener("blur",function(){Ca.contains(document.activeElement)||this.hide()}.bind(Aa)),Ca.addEventListener("wheel",da),Aa}return xa.prototype.addToEditor=function(ya){ya.on("mousemove",this.onMouseMove),ya.on("mousedown",this.hide),ya.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},xa.prototype.removeFromEditor=function(ya){ya.off("mousemove",this.onMouseMove),ya.off("mousedown",this.hide),ya.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},xa.prototype.onMouseMove=function(ya,Aa){this.lastEvent=ya,this.lastT=Date.now();var Ca=Aa.$mouseHandler.isMousePressed;if(this.isOpen){var Sa=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(Sa.row,Sa.column)||Ca||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||Ca||(this.lastEvent=ya,this.timeout=setTimeout(this.waitForHover,this.idleTime))},xa.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var ya=Date.now()-this.lastT;if(this.idleTime-ya>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-ya);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},xa.prototype.isOutsideOfText=function(ya){var Aa=ya.editor,Ca=ya.getDocumentPosition(),Sa=Aa.session.getLine(Ca.row);if(Ca.column==Sa.length){var wa=Aa.renderer.pixelToScreenCoordinates(ya.clientX,ya.clientY),ba=Aa.session.documentToScreenPosition(Ca.row,Ca.column);if(ba.column!=wa.column||ba.row!=wa.row)return!0}return!1},xa.prototype.setDataProvider=function(ya){this.$gatherData=ya},xa.prototype.showForRange=function(ya,Aa,Ca,Sa){var wa=10;if(!(Sa&&Sa!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var ba=ya.renderer;this.isOpen||(fa.addPopup(this),this.$registerCloseEvents(),this.setTheme(ba.theme)),this.isOpen=!0,this.addMarker(Aa,ya.session),this.range=ua.fromPoints(Aa.start,Aa.end);var Ea=ba.textToScreenCoordinates(Aa.start.row,Aa.start.column),$a=ba.scroller.getBoundingClientRect();Ea.pageX<$a.left&&(Ea.pageX=$a.left);var Ma=this.getElement();Ma.innerHTML="",Ma.appendChild(Ca),Ma.style.maxHeight="",Ma.style.display="block";var Ia=Ma.clientHeight,Oa=Ma.clientWidth,Da=window.innerHeight-Ea.pageY-ba.lineHeight,Ta=!0;Ea.pageY-Ia<0&&Ea.pageY<Da&&(Ta=!1),Ma.style.maxHeight=(Ta?Ea.pageY:Da)-wa+"px",Ma.style.top=Ta?"":Ea.pageY+ba.lineHeight+"px",Ma.style.bottom=Ta?window.innerHeight-Ea.pageY+"px":"",Ma.style.left=Math.min(Ea.pageX,window.innerWidth-Oa-wa)+"px"}},xa.prototype.addMarker=function(ya,Aa){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=Aa,this.marker=Aa&&Aa.addMarker(ya,"ace_highlight-marker","text")},xa.prototype.hide=function(ya){!ya&&document.activeElement==this.getElement()||ya&&ya.target&&(ya.type!="keydown"||ya.ctrlKey||ya.metaKey)&&this.$element.contains(ya.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,fa.removePopup(this)))},xa.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},xa.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},xa.prototype.onMouseOut=function(ya){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!ya.relatedTarget||this.getElement().contains(ya.relatedTarget)||ya&&ya.currentTarget.contains(ya.relatedTarget)||ya.relatedTarget.classList.contains("ace_content")||this.hide())},xa}(ha);oa.HoverTooltip=ma}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var va=function(xa,ya){return va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Aa,Ca){Aa.__proto__=Ca}||function(Aa,Ca){for(var Sa in Ca)Object.prototype.hasOwnProperty.call(Ca,Sa)&&(Aa[Sa]=Ca[Sa])},va(xa,ya)};return function(xa,ya){if(typeof ya!="function"&&ya!==null)throw new TypeError("Class extends value "+String(ya)+" is not a constructor or null");va(xa,ya);function Aa(){this.constructor=xa}xa.prototype=ya===null?Object.create(ya):(Aa.prototype=ya.prototype,new Aa)}}(),la=this&&this.__values||function(va){var xa=typeof Symbol=="function"&&Symbol.iterator,ya=xa&&va[xa],Aa=0;if(ya)return ya.call(va);if(va&&typeof va.length=="number")return{next:function(){return va&&Aa>=va.length&&(va=void 0),{value:va&&va[Aa++],done:!va}}};throw new TypeError(xa?"Object is not iterable.":"Symbol.iterator is not defined.")},ca=ra("../lib/dom"),ua=ra("../lib/event"),da=ra("../tooltip").Tooltip,pa=ra("../config").nls,ha=5,ga=3;oa.GUTTER_TOOLTIP_LEFT_OFFSET=ha,oa.GUTTER_TOOLTIP_TOP_OFFSET=ga;function fa(va){var xa=va.editor,ya=xa.renderer.$gutterLayer,Aa=new ma(xa,!0);va.editor.setDefaultHandler("guttermousedown",function($a){if(!(!xa.isFocused()||$a.getButton()!=0)){var Ma=ya.getRegion($a);if(Ma!="foldWidgets"){var Ia=$a.getDocumentPosition().row,Oa=xa.session.selection;if($a.getShiftKey())Oa.selectTo(Ia,0);else{if($a.domEvent.detail==2)return xa.selectAll(),$a.preventDefault();va.$clickSelection=xa.selection.getLineRange(Ia)}return va.setState("selectByLines"),va.captureMouse($a),$a.preventDefault()}}});var Ca,Sa;function wa(){var $a=Sa.getDocumentPosition().row,Ma=xa.session.getLength();if($a==Ma){var Ia=xa.renderer.pixelToScreenCoordinates(0,Sa.y).row,Oa=Sa.$pos;if(Ia>xa.session.documentToScreenRow(Oa.row,Oa.column))return ba()}if(Aa.showTooltip($a),!!Aa.isOpen)if(xa.on("mousewheel",ba),xa.on("changeSession",ba),window.addEventListener("keydown",ba,!0),va.$tooltipFollowsMouse)Ea(Sa);else{var Da=Sa.getGutterRow(),Ta=ya.$lines.get(Da);if(Ta){var _a=Ta.element.querySelector(".ace_gutter_annotation"),La=_a.getBoundingClientRect(),Na=Aa.getElement().style;Na.left=La.right-ha+"px",Na.top=La.bottom-ga+"px"}else Ea(Sa)}}function ba($a){$a&&$a.type==="keydown"&&($a.ctrlKey||$a.metaKey)||$a&&$a.type==="mouseout"&&(!$a.relatedTarget||Aa.getElement().contains($a.relatedTarget))||(Ca&&(Ca=clearTimeout(Ca)),Aa.isOpen&&(Aa.hideTooltip(),xa.off("mousewheel",ba),xa.off("changeSession",ba),window.removeEventListener("keydown",ba,!0)))}function Ea($a){Aa.setPosition($a.x,$a.y)}va.editor.setDefaultHandler("guttermousemove",function($a){var Ma=$a.domEvent.target||$a.domEvent.srcElement;if(ca.hasCssClass(Ma,"ace_fold-widget"))return ba();Aa.isOpen&&va.$tooltipFollowsMouse&&Ea($a),Sa=$a,!Ca&&(Ca=setTimeout(function(){Ca=null,Sa&&!va.isMousePressed&&wa()},50))}),ua.addListener(xa.renderer.$gutter,"mouseout",function($a){Sa=null,Aa.isOpen&&(Ca=setTimeout(function(){Ca=null,ba($a)},50))},xa)}oa.GutterHandler=fa;var ma=function(va){sa(xa,va);function xa(ya,Aa){Aa===void 0&&(Aa=!1);var Ca=va.call(this,ya.container)||this;Ca.editor=ya,Ca.visibleTooltipRow;var Sa=Ca.getElement();return Sa.setAttribute("role","tooltip"),Sa.style.pointerEvents="auto",Aa&&(Ca.onMouseOut=Ca.onMouseOut.bind(Ca),Sa.addEventListener("mouseout",Ca.onMouseOut)),Ca}return xa.prototype.onMouseOut=function(ya){this.isOpen&&(!ya.relatedTarget||this.getElement().contains(ya.relatedTarget)||ya&&ya.currentTarget.contains(ya.relatedTarget)||this.hideTooltip())},xa.prototype.setPosition=function(ya,Aa){var Ca=window.innerWidth||document.documentElement.clientWidth,Sa=window.innerHeight||document.documentElement.clientHeight,wa=this.getWidth(),ba=this.getHeight();ya+=15,Aa+=15,ya+wa>Ca&&(ya-=ya+wa-Ca),Aa+ba>Sa&&(Aa-=20+ba),da.prototype.setPosition.call(this,ya,Aa)},Object.defineProperty(xa,"annotationLabels",{get:function(){return{error:{singular:pa("gutter-tooltip.aria-label.error.singular","error"),plural:pa("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:pa("gutter-tooltip.aria-label.security.singular","security finding"),plural:pa("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:pa("gutter-tooltip.aria-label.warning.singular","warning"),plural:pa("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:pa("gutter-tooltip.aria-label.info.singular","information message"),plural:pa("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:pa("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:pa("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),xa.prototype.showTooltip=function(ya){var Aa,Ca=this.editor.renderer.$gutterLayer,Sa=Ca.$annotations[ya],wa;Sa?wa={displayText:Array.from(Sa.displayText),type:Array.from(Sa.type)}:wa={displayText:[],type:[]};var ba=Ca.session.getFoldLine(ya);if(ba&&Ca.$showFoldedAnnotations){for(var Ea={error:[],security:[],warning:[],info:[],hint:[]},$a={error:1,security:2,warning:3,info:4,hint:5},Ma,Ia=ya+1;Ia<=ba.end.row;Ia++)if(Ca.$annotations[Ia])for(var Oa=0;Oa<Ca.$annotations[Ia].text.length;Oa++){var Da=Ca.$annotations[Ia].type[Oa];Ea[Da].push(Ca.$annotations[Ia].text[Oa]),(!Ma||$a[Da]<$a[Ma])&&(Ma=Da)}if(["error","security","warning"].includes(Ma)){var Ta="".concat(xa.annotationsToSummaryString(Ea)," in folded code.");wa.displayText.push(Ta),wa.type.push(Ma+"_fold")}}if(wa.displayText.length===0)return this.hideTooltip();for(var _a={error:[],security:[],warning:[],info:[],hint:[]},La=Ca.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",Ia=0;Ia<wa.displayText.length;Ia++){var Na=ca.createElement("span"),za=ca.createElement("span");(Aa=za.classList).add.apply(Aa,["ace_".concat(wa.type[Ia]),La]),za.setAttribute("aria-label","".concat(xa.annotationLabels[wa.type[Ia].replace("_fold","")].singular)),za.setAttribute("role","img"),za.appendChild(ca.createTextNode(" ")),Na.appendChild(za),Na.appendChild(ca.createTextNode(wa.displayText[Ia])),Na.appendChild(ca.createElement("br")),_a[wa.type[Ia].replace("_fold","")].push(Na)}var Fa=this.getElement();ca.removeChildren(Fa),_a.error.forEach(function(Ha){return Fa.appendChild(Ha)}),_a.security.forEach(function(Ha){return Fa.appendChild(Ha)}),_a.warning.forEach(function(Ha){return Fa.appendChild(Ha)}),_a.info.forEach(function(Ha){return Fa.appendChild(Ha)}),_a.hint.forEach(function(Ha){return Fa.appendChild(Ha)}),Fa.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=ya,this.editor._signal("showGutterTooltip",this)},xa.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},xa.annotationsToSummaryString=function(ya){var Aa,Ca,Sa=[],wa=["error","security","warning","info","hint"];try{for(var ba=la(wa),Ea=ba.next();!Ea.done;Ea=ba.next()){var $a=Ea.value;if(ya[$a].length){var Ma=ya[$a].length===1?xa.annotationLabels[$a].singular:xa.annotationLabels[$a].plural;Sa.push("".concat(ya[$a].length," ").concat(Ma))}}}catch(Ia){Aa={error:Ia}}finally{try{Ea&&!Ea.done&&(Ca=ba.return)&&Ca.call(ba)}finally{if(Aa)throw Aa.error}}return Sa.join(", ")},xa}(da);oa.GutterTooltip=ma}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("../lib/event"),la=ra("../lib/useragent"),ca=function(){function ua(da,pa){this.speed,this.wheelX,this.wheelY,this.domEvent=da,this.editor=pa,this.x=this.clientX=da.clientX,this.y=this.clientY=da.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return ua.prototype.stopPropagation=function(){sa.stopPropagation(this.domEvent),this.propagationStopped=!0},ua.prototype.preventDefault=function(){sa.preventDefault(this.domEvent),this.defaultPrevented=!0},ua.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},ua.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},ua.prototype.getGutterRow=function(){var da=this.getDocumentPosition().row,pa=this.editor.session.documentToScreenRow(da,0),ha=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return pa-ha},ua.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var da=this.editor,pa=da.getSelectionRange();if(pa.isEmpty())this.$inSelection=!1;else{var ha=this.getDocumentPosition();this.$inSelection=pa.contains(ha.row,ha.column)}return this.$inSelection},ua.prototype.getButton=function(){return sa.getButton(this.domEvent)},ua.prototype.getShiftKey=function(){return this.domEvent.shiftKey},ua.prototype.getAccelKey=function(){return la.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},ua}();oa.MouseEvent=ca}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=ra("../lib/event"),ca=ra("../lib/useragent"),ua=200,da=200,pa=5;function ha(fa){var ma=fa.editor,va=sa.createElement("div");va.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",va.textContent=" ";var xa=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];xa.forEach(function(Wa){fa[Wa]=this[Wa]},this),ma.on("mousedown",this.onMouseDown.bind(fa));var ya=ma.container,Aa,Ca,Sa,wa,ba,Ea,$a=0,Ma,Ia,Oa,Da,Ta;this.onDragStart=function(Wa){if(this.cancelDrag||!ya.draggable){var Za=this;return setTimeout(function(){Za.startSelect(),Za.captureMouse(Wa)},0),Wa.preventDefault()}ba=ma.getSelectionRange();var Xa=Wa.dataTransfer;Xa.effectAllowed=ma.getReadOnly()?"copy":"copyMove",ma.container.appendChild(va),Xa.setDragImage&&Xa.setDragImage(va,0,0),setTimeout(function(){ma.container.removeChild(va)}),Xa.clearData(),Xa.setData("Text",ma.session.getTextRange()),Ia=!0,this.setState("drag")},this.onDragEnd=function(Wa){if(ya.draggable=!1,Ia=!1,this.setState(null),!ma.getReadOnly()){var Za=Wa.dataTransfer.dropEffect;!Ma&&Za=="move"&&ma.session.remove(ma.getSelectionRange()),ma.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Wa){if(!(ma.getReadOnly()||!Ua(Wa.dataTransfer)))return Ca=Wa.clientX,Sa=Wa.clientY,Aa||za(),$a++,Wa.dataTransfer.dropEffect=Ma=Qa(Wa),la.preventDefault(Wa)},this.onDragOver=function(Wa){if(!(ma.getReadOnly()||!Ua(Wa.dataTransfer)))return Ca=Wa.clientX,Sa=Wa.clientY,Aa||(za(),$a++),Ha!==null&&(Ha=null),Wa.dataTransfer.dropEffect=Ma=Qa(Wa),la.preventDefault(Wa)},this.onDragLeave=function(Wa){if($a--,$a<=0&&Aa)return Fa(),Ma=null,la.preventDefault(Wa)},this.onDrop=function(Wa){if(Ea){var Za=Wa.dataTransfer;if(Ia)switch(Ma){case"move":ba.contains(Ea.row,Ea.column)?ba={start:Ea,end:Ea}:ba=ma.moveText(ba,Ea);break;case"copy":ba=ma.moveText(ba,Ea,!0);break}else{var Xa=Za.getData("Text");ba={start:Ea,end:ma.session.insert(Ea,Xa)},ma.focus(),Ma=null}return Fa(),la.preventDefault(Wa)}},la.addListener(ya,"dragstart",this.onDragStart.bind(fa),ma),la.addListener(ya,"dragend",this.onDragEnd.bind(fa),ma),la.addListener(ya,"dragenter",this.onDragEnter.bind(fa),ma),la.addListener(ya,"dragover",this.onDragOver.bind(fa),ma),la.addListener(ya,"dragleave",this.onDragLeave.bind(fa),ma),la.addListener(ya,"drop",this.onDrop.bind(fa),ma);function _a(Wa,Za){var Xa=Date.now(),tl=!Za||Wa.row!=Za.row,il=!Za||Wa.column!=Za.column;if(!Da||tl||il)ma.moveCursorToPosition(Wa),Da=Xa,Ta={x:Ca,y:Sa};else{var Ja=ga(Ta.x,Ta.y,Ca,Sa);Ja>pa?Da=null:Xa-Da>=da&&(ma.renderer.scrollCursorIntoView(),Da=null)}}function La(Wa,Za){var Xa=Date.now(),tl=ma.renderer.layerConfig.lineHeight,il=ma.renderer.layerConfig.characterWidth,Ja=ma.renderer.scroller.getBoundingClientRect(),nl={x:{left:Ca-Ja.left,right:Ja.right-Ca},y:{top:Sa-Ja.top,bottom:Ja.bottom-Sa}},Ya=Math.min(nl.x.left,nl.x.right),rl=Math.min(nl.y.top,nl.y.bottom),sl={row:Wa.row,column:Wa.column};Ya/il<=2&&(sl.column+=nl.x.left<nl.x.right?-3:2),rl/tl<=1&&(sl.row+=nl.y.top<nl.y.bottom?-1:1);var dl=Wa.row!=sl.row,pl=Wa.column!=sl.column,ml=!Za||Wa.row!=Za.row;dl||pl&&!ml?Oa?Xa-Oa>=ua&&ma.renderer.scrollCursorIntoView(sl):Oa=Xa:Oa=null}function Na(){var Wa=Ea;Ea=ma.renderer.screenToTextCoordinates(Ca,Sa),_a(Ea,Wa),La(Ea,Wa)}function za(){ba=ma.selection.toOrientedRange(),Aa=ma.session.addMarker(ba,"ace_selection",ma.getSelectionStyle()),ma.clearSelection(),ma.isFocused()&&ma.renderer.$cursorLayer.setBlinking(!1),clearInterval(wa),Na(),wa=setInterval(Na,20),$a=0,la.addListener(document,"mousemove",Va)}function Fa(){clearInterval(wa),ma.session.removeMarker(Aa),Aa=null,ma.selection.fromOrientedRange(ba),ma.isFocused()&&!Ia&&ma.$resetCursorStyle(),ba=null,Ea=null,$a=0,Oa=null,Da=null,la.removeListener(document,"mousemove",Va)}var Ha=null;function Va(){Ha==null&&(Ha=setTimeout(function(){Ha!=null&&Aa&&Fa()},20))}function Ua(Wa){var Za=Wa.types;return!Za||Array.prototype.some.call(Za,function(Xa){return Xa=="text/plain"||Xa=="Text"})}function Qa(Wa){var Za=["copy","copymove","all","uninitialized"],Xa=["move","copymove","linkmove","all","uninitialized"],tl=ca.isMac?Wa.altKey:Wa.ctrlKey,il="uninitialized";try{il=Wa.dataTransfer.effectAllowed.toLowerCase()}catch{}var Ja="none";return tl&&Za.indexOf(il)>=0?Ja="copy":Xa.indexOf(il)>=0?Ja="move":Za.indexOf(il)>=0&&(Ja="copy"),Ja}}(function(){this.dragWait=function(){var fa=Date.now()-this.mousedownEvent.time;fa>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var fa=this.editor.container;fa.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(fa){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var fa=this.editor,ma=fa.container;ma.draggable=!0,fa.renderer.$cursorLayer.setBlinking(!1),fa.setStyle("ace_dragging");var va=ca.isWin?"default":"move";fa.renderer.setCursorStyle(va),this.setState("dragReady")},this.onMouseDrag=function(fa){var ma=this.editor.container;if(ca.isIE&&this.state=="dragReady"){var va=ga(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);va>3&&ma.dragDrop()}if(this.state==="dragWait"){var va=ga(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);va>0&&(ma.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(fa){if(this.$dragEnabled){this.mousedownEvent=fa;var ma=this.editor,va=fa.inSelection(),xa=fa.getButton(),ya=fa.domEvent.detail||1;if(ya===1&&xa===0&&va){if(fa.editor.inMultiSelectMode&&(fa.getAccelKey()||fa.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Aa=fa.domEvent.target||fa.domEvent.srcElement;if("unselectable"in Aa&&(Aa.unselectable="on"),ma.getDragDelay()){if(ca.isWebKit){this.cancelDrag=!0;var Ca=ma.container;Ca.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(fa,this.onMouseDrag.bind(this)),fa.defaultPrevented=!0}}}}).call(ha.prototype);function ga(fa,ma,va,xa){return Math.sqrt(Math.pow(va-fa,2)+Math.pow(xa-ma,2))}oa.DragdropHandler=ha}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(ra,oa,aa){var sa=ra("./mouse_event").MouseEvent,la=ra("../lib/event"),ca=ra("../lib/dom");oa.addTouchListeners=function(ua,da){var pa="scroll",ha,ga,fa,ma,va,xa,ya=0,Aa,Ca=0,Sa=0,wa=0,ba,Ea;function $a(){var _a=window.navigator&&window.navigator.clipboard,La=!1,Na=function(){var Ha=da.getCopyText(),Va=da.session.getUndoManager().hasUndo();Ea.replaceChild(ca.buildDom(La?["span",!Ha&&za("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Ha&&za("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Ha&&za("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],_a&&za("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Va&&za("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],za("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],za("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),Ea.firstChild)},za=function(Ha){return da.commands.canExecute(Ha,da)},Fa=function(Ha){var Va=Ha.target.getAttribute("action");if(Va=="more"||!La)return La=!La,Na();Va=="paste"?_a.readText().then(function(Ua){da.execCommand(Va,Ua)}):Va&&((Va=="cut"||Va=="copy")&&(_a?_a.writeText(da.getCopyText()):document.execCommand("copy")),da.execCommand(Va)),Ea.firstChild.style.display="none",La=!1,Va!="openCommandPalette"&&da.focus()};Ea=ca.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Ha){pa="menu",Ha.stopPropagation(),Ha.preventDefault(),da.textInput.focus()},ontouchend:function(Ha){Ha.stopPropagation(),Ha.preventDefault(),Fa(Ha)},onclick:Fa},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],da.container)}function Ma(){if(!da.getOption("enableMobileMenu")){Ea&&Ia();return}Ea||$a();var _a=da.selection.cursor,La=da.renderer.textToScreenCoordinates(_a.row,_a.column),Na=da.renderer.textToScreenCoordinates(0,0).pageX,za=da.renderer.scrollLeft,Fa=da.container.getBoundingClientRect();Ea.style.top=La.pageY-Fa.top-3+"px",La.pageX-Fa.left<Fa.width-70?(Ea.style.left="",Ea.style.right="10px"):(Ea.style.right="",Ea.style.left=Na+za-Fa.left+"px"),Ea.style.display="",Ea.firstChild.style.display="none",da.on("input",Ia)}function Ia(_a){Ea&&(Ea.style.display="none"),da.off("input",Ia)}function Oa(){va=null,clearTimeout(va);var _a=da.selection.getRange(),La=_a.contains(Aa.row,Aa.column);(_a.isEmpty()||!La)&&(da.selection.moveToPosition(Aa),da.selection.selectWord()),pa="wait",Ma()}function Da(){va=null,clearTimeout(va),da.selection.moveToPosition(Aa);var _a=Ca>=2?da.selection.getLineRange(Aa.row):da.session.getBracketRange(Aa);_a&&!_a.isEmpty()?da.selection.setRange(_a):da.selection.selectWord(),pa="wait"}la.addListener(ua,"contextmenu",function(_a){if(ba){var La=da.textInput.getElement();La.focus()}},da),la.addListener(ua,"touchstart",function(_a){var La=_a.touches;if(va||La.length>1){clearTimeout(va),va=null,fa=-1,pa="zoom";return}ba=da.$mouseHandler.isMousePressed=!0;var Na=da.renderer.layerConfig.lineHeight,za=da.renderer.layerConfig.lineHeight,Fa=_a.timeStamp;ma=Fa;var Ha=La[0],Va=Ha.clientX,Ua=Ha.clientY;Math.abs(ha-Va)+Math.abs(ga-Ua)>Na&&(fa=-1),ha=_a.clientX=Va,ga=_a.clientY=Ua,Sa=wa=0;var Qa=new sa(_a,da);if(Aa=Qa.getDocumentPosition(),Fa-fa<500&&La.length==1&&!ya)Ca++,_a.preventDefault(),_a.button=0,Da();else{Ca=0;var Wa=da.selection.cursor,Za=da.selection.isEmpty()?Wa:da.selection.anchor,Xa=da.renderer.$cursorLayer.getPixelPosition(Wa,!0),tl=da.renderer.$cursorLayer.getPixelPosition(Za,!0),il=da.renderer.scroller.getBoundingClientRect(),Ja=da.renderer.layerConfig.offset,nl=da.renderer.scrollLeft,Ya=function(dl,pl){return dl=dl/za,pl=pl/Na-.75,dl*dl+pl*pl};if(_a.clientX<il.left){pa="zoom";return}var rl=Ya(_a.clientX-il.left-Xa.left+nl,_a.clientY-il.top-Xa.top+Ja),sl=Ya(_a.clientX-il.left-tl.left+nl,_a.clientY-il.top-tl.top+Ja);rl<3.5&&sl<3.5&&(pa=rl>sl?"cursor":"anchor"),sl<3.5?pa="anchor":rl<3.5?pa="cursor":pa="scroll",va=setTimeout(Oa,450)}fa=Fa},da),la.addListener(ua,"touchend",function(_a){ba=da.$mouseHandler.isMousePressed=!1,xa&&clearInterval(xa),pa=="zoom"?(pa="",ya=0):va?(da.selection.moveToPosition(Aa),ya=0,Ma()):pa=="scroll"?(Ta(),Ia()):Ma(),clearTimeout(va),va=null},da),la.addListener(ua,"touchmove",function(_a){va&&(clearTimeout(va),va=null);var La=_a.touches;if(!(La.length>1||pa=="zoom")){var Na=La[0],za=ha-Na.clientX,Fa=ga-Na.clientY;if(pa=="wait")if(za*za+Fa*Fa>4)pa="cursor";else return _a.preventDefault();ha=Na.clientX,ga=Na.clientY,_a.clientX=Na.clientX,_a.clientY=Na.clientY;var Ha=_a.timeStamp,Va=Ha-ma;if(ma=Ha,pa=="scroll"){var Ua=new sa(_a,da);Ua.speed=1,Ua.wheelX=za,Ua.wheelY=Fa,10*Math.abs(za)<Math.abs(Fa)&&(za=0),10*Math.abs(Fa)<Math.abs(za)&&(Fa=0),Va!=0&&(Sa=za/Va,wa=Fa/Va),da._emit("mousewheel",Ua),Ua.propagationStopped||(Sa=wa=0)}else{var Qa=new sa(_a,da),Wa=Qa.getDocumentPosition();pa=="cursor"?da.selection.moveCursorToPosition(Wa):pa=="anchor"&&da.selection.setSelectionAnchor(Wa.row,Wa.column),da.renderer.scrollCursorIntoView(Wa),_a.preventDefault()}}},da);function Ta(){ya+=60,xa=setInterval(function(){ya--<=0&&(clearInterval(xa),xa=null),Math.abs(Sa)<.01&&(Sa=0),Math.abs(wa)<.01&&(wa=0),ya<20&&(Sa=.9*Sa),ya<20&&(wa=.9*wa);var _a=da.session.getScrollTop();da.renderer.scrollBy(10*Sa,10*wa),_a==da.session.getScrollTop()&&(ya=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(ra,oa,aa){var sa=ra("../lib/event"),la=ra("../lib/useragent"),ca=ra("./default_handlers").DefaultHandlers,ua=ra("./default_gutter_handler").GutterHandler,da=ra("./mouse_event").MouseEvent,pa=ra("./dragdrop_handler").DragdropHandler,ha=ra("./touch_handler").addTouchListeners,ga=ra("../config"),fa=function(){function ma(va){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var xa=this;this.editor=va,new ca(this),new ua(this),new pa(this);var ya=function(Sa){var wa=!document.hasFocus||!document.hasFocus()||!va.isFocused()&&document.activeElement==(va.textInput&&va.textInput.getElement());wa&&window.focus(),va.focus(),setTimeout(function(){va.isFocused()||va.focus()})},Aa=va.renderer.getMouseEventTarget();sa.addListener(Aa,"click",this.onMouseEvent.bind(this,"click"),va),sa.addListener(Aa,"mousemove",this.onMouseMove.bind(this,"mousemove"),va),sa.addMultiMouseDownListener([Aa,va.renderer.scrollBarV&&va.renderer.scrollBarV.inner,va.renderer.scrollBarH&&va.renderer.scrollBarH.inner,va.textInput&&va.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",va),sa.addMouseWheelListener(va.container,this.onMouseWheel.bind(this,"mousewheel"),va),ha(va.container,va);var Ca=va.renderer.$gutter;sa.addListener(Ca,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),va),sa.addListener(Ca,"click",this.onMouseEvent.bind(this,"gutterclick"),va),sa.addListener(Ca,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),va),sa.addListener(Ca,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),va),sa.addListener(Aa,"mousedown",ya,va),sa.addListener(Ca,"mousedown",ya,va),la.isIE&&va.renderer.scrollBarV&&(sa.addListener(va.renderer.scrollBarV.element,"mousedown",ya,va),sa.addListener(va.renderer.scrollBarH.element,"mousedown",ya,va)),va.on("mousemove",function(Sa){if(!(xa.state||xa.$dragDelay||!xa.$dragEnabled)){var wa=va.renderer.screenToTextCoordinates(Sa.x,Sa.y),ba=va.session.selection.getRange(),Ea=va.renderer;!ba.isEmpty()&&ba.insideStart(wa.row,wa.column)?Ea.setCursorStyle("default"):Ea.setCursorStyle("")}},va)}return ma.prototype.onMouseEvent=function(va,xa){this.editor.session&&this.editor._emit(va,new da(xa,this.editor))},ma.prototype.onMouseMove=function(va,xa){var ya=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!ya||!ya.length||this.editor._emit(va,new da(xa,this.editor))},ma.prototype.onMouseWheel=function(va,xa){var ya=new da(xa,this.editor);ya.speed=this.$scrollSpeed*2,ya.wheelX=xa.wheelX,ya.wheelY=xa.wheelY,this.editor._emit(va,ya)},ma.prototype.setState=function(va){this.state=va},ma.prototype.captureMouse=function(va,xa){this.x=va.x,this.y=va.y,this.isMousePressed=!0;var ya=this.editor,Aa=this.editor.renderer;Aa.$isMousePressed=!0;var Ca=this,Sa=function(Ma){if(Ma){if(la.isWebKit&&!Ma.which&&Ca.releaseMouse)return Ca.releaseMouse();Ca.x=Ma.clientX,Ca.y=Ma.clientY,xa&&xa(Ma),Ca.mouseEvent=new da(Ma,Ca.editor),Ca.$mouseMoved=!0}},wa=function(Ma){ya.off("beforeEndOperation",Ea),clearInterval($a),ya.session&&ba(),Ca[Ca.state+"End"]&&Ca[Ca.state+"End"](Ma),Ca.state="",Ca.isMousePressed=Aa.$isMousePressed=!1,Aa.$keepTextAreaAtCursor&&Aa.$moveTextAreaToCursor(),Ca.$onCaptureMouseMove=Ca.releaseMouse=null,Ma&&Ca.onMouseEvent("mouseup",Ma),ya.endOperation()},ba=function(){Ca[Ca.state]&&Ca[Ca.state](),Ca.$mouseMoved=!1};if(la.isOldIE&&va.domEvent.type=="dblclick")return setTimeout(function(){wa(va)});var Ea=function(Ma){Ca.releaseMouse&&ya.curOp.command.name&&ya.curOp.selectionChanged&&(Ca[Ca.state+"End"]&&Ca[Ca.state+"End"](),Ca.state="",Ca.releaseMouse())};ya.on("beforeEndOperation",Ea),ya.startOperation({command:{name:"mouse"}}),Ca.$onCaptureMouseMove=Sa,Ca.releaseMouse=sa.capture(this.editor.container,Sa,wa);var $a=setInterval(ba,20)},ma.prototype.cancelContextMenu=function(){var va=function(xa){xa&&xa.domEvent&&xa.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",va),xa&&xa.domEvent&&sa.stopEvent(xa.domEvent))}.bind(this);setTimeout(va,10),this.editor.on("nativecontextmenu",va)},ma.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},ma}();fa.prototype.releaseMouse=null,ga.defineOptions(fa.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:la.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),oa.MouseHandler=fa}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=function(){function ca(ua){ua.on("click",function(da){var pa=da.getDocumentPosition(),ha=ua.session,ga=ha.getFoldAt(pa.row,pa.column,1);ga&&(da.getAccelKey()?ha.removeFold(ga):ha.expandFold(ga),da.stop());var fa=da.domEvent&&da.domEvent.target;fa&&sa.hasCssClass(fa,"ace_inline_button")&&sa.hasCssClass(fa,"ace_toggle_wrap")&&(ha.setOption("wrap",!ha.getUseWrapMode()),ua.renderer.scrollCursorIntoView())}),ua.on("gutterclick",function(da){var pa=ua.renderer.$gutterLayer.getRegion(da);if(pa=="foldWidgets"){var ha=da.getDocumentPosition().row,ga=ua.session;ga.foldWidgets&&ga.foldWidgets[ha]&&ua.session.onFoldWidgetClick(ha,da),ua.isFocused()||ua.focus(),da.stop()}}),ua.on("gutterdblclick",function(da){var pa=ua.renderer.$gutterLayer.getRegion(da);if(pa=="foldWidgets"){var ha=da.getDocumentPosition().row,ga=ua.session,fa=ga.getParentFoldRangeData(ha,!0),ma=fa.range||fa.firstRange;if(ma){ha=ma.start.row;var va=ga.getFoldAt(ha,ga.getLine(ha).length,1);va?ga.removeFold(va):(ga.addFold("...",ma),ua.renderer.scrollCursorIntoView({row:ma.start.row,column:0}))}da.stop()}})}return ca}();oa.FoldHandler=la}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(ra,oa,aa){var sa=ra("../lib/keys"),la=ra("../lib/event"),ca=function(){function ua(da){this.$editor=da,this.$data={editor:da},this.$handlers=[],this.setDefaultHandler(da.commands)}return ua.prototype.setDefaultHandler=function(da){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=da,this.addKeyboardHandler(da,0)},ua.prototype.setKeyboardHandler=function(da){var pa=this.$handlers;if(pa[pa.length-1]!=da){for(;pa[pa.length-1]&&pa[pa.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(pa[pa.length-1]);this.addKeyboardHandler(da,1)}},ua.prototype.addKeyboardHandler=function(da,pa){if(da){typeof da=="function"&&!da.handleKeyboard&&(da.handleKeyboard=da);var ha=this.$handlers.indexOf(da);ha!=-1&&this.$handlers.splice(ha,1),pa==null?this.$handlers.push(da):this.$handlers.splice(pa,0,da),ha==-1&&da.attach&&da.attach(this.$editor)}},ua.prototype.removeKeyboardHandler=function(da){var pa=this.$handlers.indexOf(da);return pa==-1?!1:(this.$handlers.splice(pa,1),da.detach&&da.detach(this.$editor),!0)},ua.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},ua.prototype.getStatusText=function(){var da=this.$data,pa=da.editor;return this.$handlers.map(function(ha){return ha.getStatusText&&ha.getStatusText(pa,da)||""}).filter(Boolean).join(" ")},ua.prototype.$callKeyboardHandlers=function(da,pa,ha,ga){for(var fa,ma=!1,va=this.$editor.commands,xa=this.$handlers.length;xa--&&(fa=this.$handlers[xa].handleKeyboard(this.$data,da,pa,ha,ga),!(!(!fa||!fa.command)&&(fa.command=="null"?ma=!0:ma=va.exec(fa.command,this.$editor,fa.args,ga),ma&&ga&&da!=-1&&fa.passEvent!=!0&&fa.command.passEvent!=!0&&la.stopEvent(ga),ma))););return!ma&&da==-1&&(fa={command:"insertstring"},ma=va.exec("insertstring",this.$editor,pa)),ma&&this.$editor._signal&&this.$editor._signal("keyboardActivity",fa),ma},ua.prototype.onCommandKey=function(da,pa,ha){var ga=sa.keyCodeToString(ha);return this.$callKeyboardHandlers(pa,ga,ha,da)},ua.prototype.onTextInput=function(da){return this.$callKeyboardHandlers(-1,da)},ua}();oa.KeyBinding=ca}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(ra,oa,aa){var sa=0,la=0,ca=!1,ua=!1,da=!1,pa=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ha=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],ga=0,fa=1,ma=0,va=1,xa=2,ya=3,Aa=4,Ca=5,Sa=6,wa=7,ba=8,Ea=9,$a=10,Ma=11,Ia=12,Oa=13,Da=14,Ta=15,_a=16,La=17,Na=18,za=[Na,Na,Na,Na,Na,Na,Na,Na,Na,Sa,Ca,Sa,ba,Ca,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Ca,Ca,Ca,Sa,ba,Aa,Aa,Ma,Ma,Ma,Aa,Aa,Aa,Aa,Aa,$a,Ea,$a,Ea,Ea,xa,xa,xa,xa,xa,xa,xa,xa,xa,xa,Ea,Aa,Aa,Aa,Aa,Aa,Aa,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,Aa,Aa,Aa,Aa,Aa,Aa,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,ma,Aa,Aa,Aa,Aa,Na,Na,Na,Na,Na,Na,Ca,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Na,Ea,Aa,Ma,Ma,Ma,Ma,Aa,Aa,Aa,Aa,ma,Aa,Aa,Na,Aa,Aa,Ma,Ma,xa,xa,Aa,ma,Aa,Aa,Aa,xa,ma,Aa,Aa,Aa,Aa,Aa],Fa=[ba,ba,ba,ba,ba,ba,ba,ba,ba,ba,ba,Na,Na,Na,ma,va,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,ba,Ca,Oa,Da,Ta,_a,La,Ea,Ma,Ma,Ma,Ma,Ma,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Ea,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,Aa,ba];function Ha(Wa,Za,Xa,tl){var il=sa?ha:pa,Ja=null,nl=null,Ya=null,rl=0,sl=null,dl=null,pl=-1,ml=null,Rl=null,Tl=[];if(!tl)for(ml=0,tl=[];ml<Xa;ml++)tl[ml]=Qa(Wa[ml]);for(la=sa,ca=!1,ua=!1,da=!1,Rl=0;Rl<Xa;Rl++){if(Ja=rl,Tl[Rl]=nl=Ua(Wa,tl,Tl,Rl),rl=il[Ja][nl],sl=rl&240,rl&=15,Za[Rl]=Ya=il[rl][5],sl>0)if(sl==16){for(ml=pl;ml<Rl;ml++)Za[ml]=1;pl=-1}else pl=-1;if(dl=il[rl][6],dl)pl==-1&&(pl=Rl);else if(pl>-1){for(ml=pl;ml<Rl;ml++)Za[ml]=Ya;pl=-1}tl[Rl]==Ca&&(Za[Rl]=0),la|=Ya}if(da){for(ml=0;ml<Xa;ml++)if(tl[ml]==Sa){Za[ml]=sa;for(var Il=ml-1;Il>=0&&tl[Il]==ba;Il--)Za[Il]=sa}}}function Va(Wa,Za,Xa){if(!(la<Wa)){if(Wa==1&&sa==fa&&!ua){Xa.reverse();return}for(var tl=Xa.length,il=0,Ja,nl,Ya,rl;il<tl;){if(Za[il]>=Wa){for(Ja=il+1;Ja<tl&&Za[Ja]>=Wa;)Ja++;for(nl=il,Ya=Ja-1;nl<Ya;nl++,Ya--)rl=Xa[nl],Xa[nl]=Xa[Ya],Xa[Ya]=rl;il=Ja}il++}}}function Ua(Wa,Za,Xa,tl){var il=Za[tl],Ja,nl,Ya,rl;switch(il){case ma:case va:ca=!1;case Aa:case ya:return il;case xa:return ca?ya:xa;case wa:return ca=!0,va;case ba:return Aa;case Ea:return tl<1||tl+1>=Za.length||(Ja=Xa[tl-1])!=xa&&Ja!=ya||(nl=Za[tl+1])!=xa&&nl!=ya?Aa:(ca&&(nl=ya),nl==Ja?nl:Aa);case $a:return Ja=tl>0?Xa[tl-1]:Ca,Ja==xa&&tl+1<Za.length&&Za[tl+1]==xa?xa:Aa;case Ma:if(tl>0&&Xa[tl-1]==xa)return xa;if(ca)return Aa;for(rl=tl+1,Ya=Za.length;rl<Ya&&Za[rl]==Ma;)rl++;return rl<Ya&&Za[rl]==xa?xa:Aa;case Ia:for(Ya=Za.length,rl=tl+1;rl<Ya&&Za[rl]==Ia;)rl++;if(rl<Ya){var sl=Wa[tl],dl=sl>=1425&&sl<=2303||sl==64286;if(Ja=Za[rl],dl&&(Ja==va||Ja==wa))return va}return tl<1||(Ja=Za[tl-1])==Ca?Aa:Xa[tl-1];case Ca:return ca=!1,ua=!0,sa;case Sa:return da=!0,Aa;case Oa:case Da:case _a:case La:case Ta:ca=!1;case Na:return Aa}}function Qa(Wa){var Za=Wa.charCodeAt(0),Xa=Za>>8;return Xa==0?Za>191?ma:za[Za]:Xa==5?/[\u0591-\u05f4]/.test(Wa)?va:ma:Xa==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Wa)?Ia:/[\u0660-\u0669\u066b-\u066c]/.test(Wa)?ya:Za==1642?Ma:/[\u06f0-\u06f9]/.test(Wa)?xa:wa:Xa==32&&Za<=8287?Fa[Za&255]:Xa==254&&Za>=65136?wa:Aa}oa.L=ma,oa.R=va,oa.EN=xa,oa.ON_R=3,oa.AN=4,oa.R_H=5,oa.B=6,oa.RLE=7,oa.DOT="·",oa.doBidiReorder=function(Wa,Za,Xa){if(Wa.length<2)return{};var tl=Wa.split(""),il=new Array(tl.length),Ja=new Array(tl.length),nl=[];sa=Xa?fa:ga,Ha(tl,nl,tl.length,Za);for(var Ya=0;Ya<il.length;il[Ya]=Ya,Ya++);Va(2,nl,il),Va(1,nl,il);for(var Ya=0;Ya<il.length-1;Ya++)Za[Ya]===ya?nl[Ya]=oa.AN:nl[Ya]===va&&(Za[Ya]>wa&&Za[Ya]<Oa||Za[Ya]===Aa||Za[Ya]===Na)?nl[Ya]=oa.ON_R:Ya>0&&tl[Ya-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(tl[Ya])&&(nl[Ya-1]=nl[Ya]=oa.R_H,Ya++);tl[tl.length-1]===oa.DOT&&(nl[tl.length-1]=oa.B),tl[0]==="‫"&&(nl[0]=oa.RLE);for(var Ya=0;Ya<il.length;Ya++)Ja[Ya]=nl[il[Ya]];return{logicalFromVisual:il,bidiLevels:Ja}},oa.hasBidiCharacters=function(Wa,Za){for(var Xa=!1,tl=0;tl<Wa.length;tl++)Za[tl]=Qa(Wa.charAt(tl)),!Xa&&(Za[tl]==va||Za[tl]==wa||Za[tl]==ya)&&(Xa=!0);return Xa},oa.getVisualFromLogicalIdx=function(Wa,Za){for(var Xa=0;Xa<Za.logicalFromVisual.length;Xa++)if(Za.logicalFromVisual[Xa]==Wa)return Xa;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(ra,oa,aa){var sa=ra("./lib/bidiutil"),la=ra("./lib/lang"),ca=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,ua=function(){function da(pa){this.session=pa,this.bidiMap={},this.currentRow=null,this.bidiUtil=sa,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=ca.test(pa.getValue())}return da.prototype.isBidiRow=function(pa,ha,ga){return this.seenBidi?(pa!==this.currentRow&&(this.currentRow=pa,this.updateRowLine(ha,ga),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},da.prototype.onChange=function(pa){this.seenBidi?this.currentRow=null:pa.action=="insert"&&ca.test(pa.lines.join(`
`))&&(this.seenBidi=!0,this.currentRow=null)},da.prototype.getDocumentRow=function(){var pa=0,ha=this.session.$screenRowCache;if(ha.length){var ga=this.session.$getRowCacheIndex(ha,this.currentRow);ga>=0&&(pa=this.session.$docRowCache[ga])}return pa},da.prototype.getSplitIndex=function(){var pa=0,ha=this.session.$screenRowCache;if(ha.length)for(var ga,fa=this.session.$getRowCacheIndex(ha,this.currentRow);this.currentRow-pa>0&&(ga=this.session.$getRowCacheIndex(ha,this.currentRow-pa-1),ga===fa);)fa=ga,pa++;else pa=this.currentRow;return pa},da.prototype.updateRowLine=function(pa,ha){pa===void 0&&(pa=this.getDocumentRow());var ga=pa===this.session.getLength()-1,fa=ga?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(pa),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var ma=this.session.$wrapData[pa];ma&&(ha===void 0&&(ha=this.getSplitIndex()),ha>0&&ma.length?(this.wrapIndent=ma.indent,this.wrapOffset=this.wrapIndent*this.charWidths[sa.L],this.line=ha<ma.length?this.line.substring(ma[ha-1],ma[ha]):this.line.substring(ma[ma.length-1])):this.line=this.line.substring(0,ma[ha]),ha==ma.length&&(this.line+=this.showInvisibles?fa:sa.DOT))}else this.line+=this.showInvisibles?fa:sa.DOT;var va=this.session,xa=0,ya;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(Aa,Ca){return Aa==="	"||va.isFullWidth(Aa.charCodeAt(0))?(ya=Aa==="	"?va.getScreenTabSize(Ca+xa):2,xa+=ya-1,la.stringRepeat(sa.DOT,ya)):Aa}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==sa.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},da.prototype.updateBidiMap=function(){var pa=[];sa.hasBidiCharacters(this.line,pa)||this.isRtlDir?this.bidiMap=sa.doBidiReorder(this.line,pa,this.isRtlDir):this.bidiMap={}},da.prototype.markAsDirty=function(){this.currentRow=null},da.prototype.updateCharacterWidths=function(pa){if(this.characterWidth!==pa.$characterSize.width){this.fontMetrics=pa;var ha=this.characterWidth=pa.$characterSize.width,ga=pa.$measureCharWidth("ה");this.charWidths[sa.L]=this.charWidths[sa.EN]=this.charWidths[sa.ON_R]=ha,this.charWidths[sa.R]=this.charWidths[sa.AN]=ga,this.charWidths[sa.R_H]=ga*.45,this.charWidths[sa.B]=this.charWidths[sa.RLE]=0,this.currentRow=null}},da.prototype.setShowInvisibles=function(pa){this.showInvisibles=pa,this.currentRow=null},da.prototype.setEolChar=function(pa){this.EOL=pa},da.prototype.setContentWidth=function(pa){this.contentWidth=pa},da.prototype.isRtlLine=function(pa){return this.$isRtl?!0:pa!=null?this.session.getLine(pa).charAt(0)==this.RLE:this.isRtlDir},da.prototype.setRtlDirection=function(pa,ha){for(var ga=pa.getCursorPosition(),fa=pa.selection.getSelectionAnchor().row;fa<=ga.row;fa++)!ha&&pa.session.getLine(fa).charAt(0)===pa.session.$bidiHandler.RLE?pa.session.doc.removeInLine(fa,0,1):ha&&pa.session.getLine(fa).charAt(0)!==pa.session.$bidiHandler.RLE&&pa.session.doc.insert({column:0,row:fa},pa.session.$bidiHandler.RLE)},da.prototype.getPosLeft=function(pa){pa-=this.wrapIndent;var ha=this.line.charAt(0)===this.RLE?1:0,ga=pa>ha?this.session.getOverwrite()?pa:pa-1:ha,fa=sa.getVisualFromLogicalIdx(ga,this.bidiMap),ma=this.bidiMap.bidiLevels,va=0;!this.session.getOverwrite()&&pa<=ha&&ma[fa]%2!==0&&fa++;for(var xa=0;xa<fa;xa++)va+=this.charWidths[ma[xa]];return!this.session.getOverwrite()&&pa>ha&&ma[fa]%2===0&&(va+=this.charWidths[ma[fa]]),this.wrapIndent&&(va+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(va+=this.rtlLineOffset),va},da.prototype.getSelections=function(pa,ha){var ga=this.bidiMap,fa=ga.bidiLevels,ma,va=[],xa=0,ya=Math.min(pa,ha)-this.wrapIndent,Aa=Math.max(pa,ha)-this.wrapIndent,Ca=!1,Sa=!1,wa=0;this.wrapIndent&&(xa+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var ba,Ea=0;Ea<fa.length;Ea++)ba=ga.logicalFromVisual[Ea],ma=fa[Ea],Ca=ba>=ya&&ba<Aa,Ca&&!Sa?wa=xa:!Ca&&Sa&&va.push({left:wa,width:xa-wa}),xa+=this.charWidths[ma],Sa=Ca;if(Ca&&Ea===fa.length&&va.push({left:wa,width:xa-wa}),this.isRtlDir)for(var $a=0;$a<va.length;$a++)va[$a].left+=this.rtlLineOffset;return va},da.prototype.offsetToCol=function(ga){this.isRtlDir&&(ga-=this.rtlLineOffset);var ha=0,ga=Math.max(ga,0),fa=0,ma=0,va=this.bidiMap.bidiLevels,xa=this.charWidths[va[ma]];for(this.wrapIndent&&(ga-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);ga>fa+xa/2;){if(fa+=xa,ma===va.length-1){xa=0;break}xa=this.charWidths[va[++ma]]}return ma>0&&va[ma-1]%2!==0&&va[ma]%2===0?(ga<fa&&ma--,ha=this.bidiMap.logicalFromVisual[ma]):ma>0&&va[ma-1]%2===0&&va[ma]%2!==0?ha=1+(ga>fa?this.bidiMap.logicalFromVisual[ma]:this.bidiMap.logicalFromVisual[ma-1]):this.isRtlDir&&ma===va.length-1&&xa===0&&va[ma-1]%2===0||!this.isRtlDir&&ma===0&&va[ma]%2!==0?ha=1+this.bidiMap.logicalFromVisual[ma]:(ma>0&&va[ma-1]%2!==0&&xa!==0&&ma--,ha=this.bidiMap.logicalFromVisual[ma]),ha===0&&this.isRtlDir&&ha++,ha+this.wrapIndent},da}();oa.BidiHandler=ua}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./lib/lang"),ca=ra("./lib/event_emitter").EventEmitter,ua=ra("./range").Range,da=function(){function pa(ha){this.session=ha,this.doc=ha.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var ga=this;this.cursor.on("change",function(fa){ga.$cursorChanged=!0,ga.$silent||ga._emit("changeCursor"),!ga.$isEmpty&&!ga.$silent&&ga._emit("changeSelection"),!ga.$keepDesiredColumnOnChange&&fa.old.column!=fa.value.column&&(ga.$desiredColumn=null)}),this.anchor.on("change",function(){ga.$anchorChanged=!0,!ga.$isEmpty&&!ga.$silent&&ga._emit("changeSelection")})}return pa.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},pa.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},pa.prototype.getCursor=function(){return this.lead.getPosition()},pa.prototype.setAnchor=function(ha,ga){this.$isEmpty=!1,this.anchor.setPosition(ha,ga)},pa.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},pa.prototype.getSelectionLead=function(){return this.lead.getPosition()},pa.prototype.isBackwards=function(){var ha=this.anchor,ga=this.lead;return ha.row>ga.row||ha.row==ga.row&&ha.column>ga.column},pa.prototype.getRange=function(){var ha=this.anchor,ga=this.lead;return this.$isEmpty?ua.fromPoints(ga,ga):this.isBackwards()?ua.fromPoints(ga,ha):ua.fromPoints(ha,ga)},pa.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},pa.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},pa.prototype.setRange=function(ha,ga){var fa=ga?ha.end:ha.start,ma=ga?ha.start:ha.end;this.$setSelection(fa.row,fa.column,ma.row,ma.column)},pa.prototype.$setSelection=function(ha,ga,fa,ma){if(!this.$silent){var va=this.$isEmpty,xa=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(ha,ga),this.cursor.setPosition(fa,ma),this.$isEmpty=!ua.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||va!=this.$isEmpty||xa)&&this._emit("changeSelection")}},pa.prototype.$moveSelection=function(ha){var ga=this.lead;this.$isEmpty&&this.setSelectionAnchor(ga.row,ga.column),ha.call(this)},pa.prototype.selectTo=function(ha,ga){this.$moveSelection(function(){this.moveCursorTo(ha,ga)})},pa.prototype.selectToPosition=function(ha){this.$moveSelection(function(){this.moveCursorToPosition(ha)})},pa.prototype.moveTo=function(ha,ga){this.clearSelection(),this.moveCursorTo(ha,ga)},pa.prototype.moveToPosition=function(ha){this.clearSelection(),this.moveCursorToPosition(ha)},pa.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},pa.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},pa.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},pa.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},pa.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},pa.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},pa.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},pa.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},pa.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},pa.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},pa.prototype.getWordRange=function(ha,ga){if(typeof ga>"u"){var fa=ha||this.lead;ha=fa.row,ga=fa.column}return this.session.getWordRange(ha,ga)},pa.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},pa.prototype.selectAWord=function(){var ha=this.getCursor(),ga=this.session.getAWordRange(ha.row,ha.column);this.setSelectionRange(ga)},pa.prototype.getLineRange=function(ha,ga){var fa=typeof ha=="number"?ha:this.lead.row,ma,va=this.session.getFoldLine(fa);return va?(fa=va.start.row,ma=va.end.row):ma=fa,ga===!0?new ua(fa,0,ma,this.session.getLine(ma).length):new ua(fa,0,ma+1,0)},pa.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},pa.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},pa.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},pa.prototype.wouldMoveIntoSoftTab=function(ha,ga,fa){var ma=ha.column,va=ha.column+ga;return fa<0&&(ma=ha.column-ga,va=ha.column),this.session.isTabStop(ha)&&this.doc.getLine(ha.row).slice(ma,va).split(" ").length-1==ga},pa.prototype.moveCursorLeft=function(){var ha=this.lead.getPosition(),ga;if(ga=this.session.getFoldAt(ha.row,ha.column,-1))this.moveCursorTo(ga.start.row,ga.start.column);else if(ha.column===0)ha.row>0&&this.moveCursorTo(ha.row-1,this.doc.getLine(ha.row-1).length);else{var fa=this.session.getTabSize();this.wouldMoveIntoSoftTab(ha,fa,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-fa):this.moveCursorBy(0,-1)}},pa.prototype.moveCursorRight=function(){var ha=this.lead.getPosition(),ga;if(ga=this.session.getFoldAt(ha.row,ha.column,1))this.moveCursorTo(ga.end.row,ga.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var fa=this.session.getTabSize(),ha=this.lead;this.wouldMoveIntoSoftTab(ha,fa,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,fa):this.moveCursorBy(0,1)}},pa.prototype.moveCursorLineStart=function(){var ha=this.lead.row,ga=this.lead.column,fa=this.session.documentToScreenRow(ha,ga),ma=this.session.screenToDocumentPosition(fa,0),va=this.session.getDisplayLine(ha,null,ma.row,ma.column),xa=va.match(/^\s*/);xa[0].length!=ga&&!this.session.$useEmacsStyleLineStart&&(ma.column+=xa[0].length),this.moveCursorToPosition(ma)},pa.prototype.moveCursorLineEnd=function(){var ha=this.lead,ga=this.session.getDocumentLastRowColumnPosition(ha.row,ha.column);if(this.lead.column==ga.column){var fa=this.session.getLine(ga.row);if(ga.column==fa.length){var ma=fa.search(/\s+$/);ma>0&&(ga.column=ma)}}this.moveCursorTo(ga.row,ga.column)},pa.prototype.moveCursorFileEnd=function(){var ha=this.doc.getLength()-1,ga=this.doc.getLine(ha).length;this.moveCursorTo(ha,ga)},pa.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},pa.prototype.moveCursorLongWordRight=function(){var ha=this.lead.row,ga=this.lead.column,fa=this.doc.getLine(ha),ma=fa.substring(ga);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var va=this.session.getFoldAt(ha,ga,1);if(va){this.moveCursorTo(va.end.row,va.end.column);return}if(this.session.nonTokenRe.exec(ma)&&(ga+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,ma=fa.substring(ga)),ga>=fa.length){this.moveCursorTo(ha,fa.length),this.moveCursorRight(),ha<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(ma)&&(ga+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(ha,ga)},pa.prototype.moveCursorLongWordLeft=function(){var ha=this.lead.row,ga=this.lead.column,fa;if(fa=this.session.getFoldAt(ha,ga,-1)){this.moveCursorTo(fa.start.row,fa.start.column);return}var ma=this.session.getFoldStringAt(ha,ga,-1);ma==null&&(ma=this.doc.getLine(ha).substring(0,ga));var va=la.stringReverse(ma);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(va)&&(ga-=this.session.nonTokenRe.lastIndex,va=va.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),ga<=0){this.moveCursorTo(ha,0),this.moveCursorLeft(),ha>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(va)&&(ga-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(ha,ga)},pa.prototype.$shortWordEndIndex=function(ha){var ga=0,fa,ma=/\s/,va=this.session.tokenRe;if(va.lastIndex=0,this.session.tokenRe.exec(ha))ga=this.session.tokenRe.lastIndex;else{for(;(fa=ha[ga])&&ma.test(fa);)ga++;if(ga<1){for(va.lastIndex=0;(fa=ha[ga])&&!va.test(fa);)if(va.lastIndex=0,ga++,ma.test(fa))if(ga>2){ga--;break}else{for(;(fa=ha[ga])&&ma.test(fa);)ga++;if(ga>2)break}}}return va.lastIndex=0,ga},pa.prototype.moveCursorShortWordRight=function(){var ha=this.lead.row,ga=this.lead.column,fa=this.doc.getLine(ha),ma=fa.substring(ga),va=this.session.getFoldAt(ha,ga,1);if(va)return this.moveCursorTo(va.end.row,va.end.column);if(ga==fa.length){var xa=this.doc.getLength();do ha++,ma=this.doc.getLine(ha);while(ha<xa&&/^\s*$/.test(ma));/^\s+/.test(ma)||(ma=""),ga=0}var ya=this.$shortWordEndIndex(ma);this.moveCursorTo(ha,ga+ya)},pa.prototype.moveCursorShortWordLeft=function(){var ha=this.lead.row,ga=this.lead.column,fa;if(fa=this.session.getFoldAt(ha,ga,-1))return this.moveCursorTo(fa.start.row,fa.start.column);var ma=this.session.getLine(ha).substring(0,ga);if(ga===0){do ha--,ma=this.doc.getLine(ha);while(ha>0&&/^\s*$/.test(ma));ga=ma.length,/\s+$/.test(ma)||(ma="")}var va=la.stringReverse(ma),xa=this.$shortWordEndIndex(va);return this.moveCursorTo(ha,ga-xa)},pa.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},pa.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},pa.prototype.moveCursorBy=function(ha,ga){var fa=this.session.documentToScreenPosition(this.lead.row,this.lead.column),ma;if(ga===0&&(ha!==0&&(this.session.$bidiHandler.isBidiRow(fa.row,this.lead.row)?(ma=this.session.$bidiHandler.getPosLeft(fa.column),fa.column=Math.round(ma/this.session.$bidiHandler.charWidths[0])):ma=fa.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?fa.column=this.$desiredColumn:this.$desiredColumn=fa.column),ha!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var va=this.session.lineWidgets[this.lead.row];ha<0?ha-=va.rowsAbove||0:ha>0&&(ha+=va.rowCount-(va.rowsAbove||0))}var xa=this.session.screenToDocumentPosition(fa.row+ha,fa.column,ma);ha!==0&&ga===0&&xa.row===this.lead.row&&(xa.column,this.lead.column),this.moveCursorTo(xa.row,xa.column+ga,ga===0)},pa.prototype.moveCursorToPosition=function(ha){this.moveCursorTo(ha.row,ha.column)},pa.prototype.moveCursorTo=function(ha,ga,fa){var ma=this.session.getFoldAt(ha,ga,1);ma&&(ha=ma.start.row,ga=ma.start.column),this.$keepDesiredColumnOnChange=!0;var va=this.session.getLine(ha);/[\uDC00-\uDFFF]/.test(va.charAt(ga))&&va.charAt(ga-1)&&(this.lead.row==ha&&this.lead.column==ga+1?ga=ga-1:ga=ga+1),this.lead.setPosition(ha,ga),this.$keepDesiredColumnOnChange=!1,fa||(this.$desiredColumn=null)},pa.prototype.moveCursorToScreen=function(ha,ga,fa){var ma=this.session.screenToDocumentPosition(ha,ga);this.moveCursorTo(ma.row,ma.column,fa)},pa.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},pa.prototype.fromOrientedRange=function(ha){this.setSelectionRange(ha,ha.cursor==ha.start),this.$desiredColumn=ha.desiredColumn||this.$desiredColumn},pa.prototype.toOrientedRange=function(ha){var ga=this.getRange();return ha?(ha.start.column=ga.start.column,ha.start.row=ga.start.row,ha.end.column=ga.end.column,ha.end.row=ga.end.row):ha=ga,ha.cursor=this.isBackwards()?ha.start:ha.end,ha.desiredColumn=this.$desiredColumn,ha},pa.prototype.getRangeOfMovements=function(ha){var ga=this.getCursor();try{ha(this);var fa=this.getCursor();return ua.fromPoints(ga,fa)}catch{return ua.fromPoints(ga,ga)}finally{this.moveCursorToPosition(ga)}},pa.prototype.toJSON=function(){if(this.rangeCount)var ha=this.ranges.map(function(ga){var fa=ga.clone();return fa.isBackwards=ga.cursor==ga.start,fa});else{var ha=this.getRange();ha.isBackwards=this.isBackwards()}return ha},pa.prototype.fromJSON=function(ha){if(ha.start==null)if(this.rangeList&&ha.length>1){this.toSingleRange(ha[0]);for(var ga=ha.length;ga--;){var fa=ua.fromPoints(ha[ga].start,ha[ga].end);ha[ga].isBackwards&&(fa.cursor=fa.start),this.addRange(fa,!0)}return}else ha=ha[0];this.rangeList&&this.toSingleRange(ha),this.setSelectionRange(ha,ha.isBackwards)},pa.prototype.isEqual=function(ha){if((ha.length||this.rangeCount)&&ha.length!=this.rangeCount)return!1;if(!ha.length||!this.ranges)return this.getRange().isEqual(ha);for(var ga=this.ranges.length;ga--;)if(!this.ranges[ga].isEqual(ha[ga]))return!1;return!0},pa}();da.prototype.setSelectionAnchor=da.prototype.setAnchor,da.prototype.getSelectionAnchor=da.prototype.getAnchor,da.prototype.setSelectionRange=da.prototype.setRange,sa.implement(da.prototype,ca),oa.Selection=da}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(ra,oa,aa){var sa=ra("./lib/report_error").reportError,la=2e3,ca=function(){function ua(da){this.splitRegex,this.states=da,this.regExps={},this.matchMappings={};for(var pa in this.states){for(var ha=this.states[pa],ga=[],fa=0,ma=this.matchMappings[pa]={defaultToken:"text"},va="g",xa=[],ya=0;ya<ha.length;ya++){var Aa=ha[ya];if(Aa.defaultToken&&(ma.defaultToken=Aa.defaultToken),Aa.caseInsensitive&&va.indexOf("i")===-1&&(va+="i"),Aa.unicode&&va.indexOf("u")===-1&&(va+="u"),Aa.regex!=null){Aa.regex instanceof RegExp&&(Aa.regex=Aa.regex.toString().slice(1,-1));var Ca=Aa.regex,Sa=new RegExp("(?:("+Ca+")|(.))").exec("a").length-2;Array.isArray(Aa.token)?Aa.token.length==1||Sa==1?Aa.token=Aa.token[0]:Sa-1!=Aa.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:Aa,groupCount:Sa-1}),Aa.token=Aa.token[0]):(Aa.tokenArray=Aa.token,Aa.token=null,Aa.onMatch=this.$arrayTokens):typeof Aa.token=="function"&&!Aa.onMatch&&(Sa>1?Aa.onMatch=this.$applyToken:Aa.onMatch=Aa.token),Sa>1&&(/\\\d/.test(Aa.regex)?Ca=Aa.regex.replace(/\\([0-9]+)/g,function(wa,ba){return"\\"+(parseInt(ba,10)+fa+1)}):(Sa=1,Ca=this.removeCapturingGroups(Aa.regex)),!Aa.splitRegex&&typeof Aa.token!="string"&&xa.push(Aa)),ma[fa]=ya,fa+=Sa,ga.push(Ca),Aa.onMatch||(Aa.onMatch=null)}}ga.length||(ma[0]=0,ga.push("$")),xa.forEach(function(wa){wa.splitRegex=this.createSplitterRegexp(wa.regex,va)},this),this.regExps[pa]=new RegExp("("+ga.join(")|(")+")|($)",va)}}return ua.prototype.$setMaxTokenCount=function(da){la=da|0},ua.prototype.$applyToken=function(da){var pa=this.splitRegex.exec(da).slice(1),ha=this.token.apply(this,pa);if(typeof ha=="string")return[{type:ha,value:da}];for(var ga=[],fa=0,ma=ha.length;fa<ma;fa++)pa[fa]&&(ga[ga.length]={type:ha[fa],value:pa[fa]});return ga},ua.prototype.$arrayTokens=function(da){if(!da)return[];var pa=this.splitRegex.exec(da);if(!pa)return"text";for(var ha=[],ga=this.tokenArray,fa=0,ma=ga.length;fa<ma;fa++)pa[fa+1]&&(ha[ha.length]={type:ga[fa],value:pa[fa+1]});return ha},ua.prototype.removeCapturingGroups=function(da){var pa=da.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(ha,ga){return ga?"(?:":ha});return pa},ua.prototype.createSplitterRegexp=function(da,pa){if(da.indexOf("(?=")!=-1){var ha=0,ga=!1,fa={};da.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(ma,va,xa,ya,Aa,Ca){return ga?ga=Aa!="]":Aa?ga=!0:ya?(ha==fa.stack&&(fa.end=Ca+1,fa.stack=-1),ha--):xa&&(ha++,xa.length!=1&&(fa.stack=ha,fa.start=Ca)),ma}),fa.end!=null&&/^\)*$/.test(da.substr(fa.end))&&(da=da.substring(0,fa.start)+da.substr(fa.end))}return da.charAt(0)!="^"&&(da="^"+da),da.charAt(da.length-1)!="$"&&(da+="$"),new RegExp(da,(pa||"").replace("g",""))},ua.prototype.getLineTokens=function(da,pa){if(pa&&typeof pa!="string"){var ha=pa.slice(0);pa=ha[0],pa==="#tmp"&&(ha.shift(),pa=ha.shift())}else var ha=[];var ga=pa||"start",fa=this.states[ga];fa||(ga="start",fa=this.states[ga]);var ma=this.matchMappings[ga],va=this.regExps[ga];va.lastIndex=0;for(var xa,ya=[],Aa=0,Ca=0,Sa={type:null,value:""};xa=va.exec(da);){var wa=ma.defaultToken,ba=null,Ea=xa[0],$a=va.lastIndex;if($a-Ea.length>Aa){var Ma=da.substring(Aa,$a-Ea.length);Sa.type==wa?Sa.value+=Ma:(Sa.type&&ya.push(Sa),Sa={type:wa,value:Ma})}for(var Ia=0;Ia<xa.length-2;Ia++)if(xa[Ia+1]!==void 0){ba=fa[ma[Ia]],ba.onMatch?wa=ba.onMatch(Ea,ga,ha,da):wa=ba.token,ba.next&&(typeof ba.next=="string"?ga=ba.next:ga=ba.next(ga,ha),fa=this.states[ga],fa||(this.reportError("state doesn't exist",ga),ga="start",fa=this.states[ga]),ma=this.matchMappings[ga],Aa=$a,va=this.regExps[ga],va.lastIndex=$a),ba.consumeLineEnd&&(Aa=$a);break}if(Ea){if(typeof wa=="string")(!ba||ba.merge!==!1)&&Sa.type===wa?Sa.value+=Ea:(Sa.type&&ya.push(Sa),Sa={type:wa,value:Ea});else if(wa){Sa.type&&ya.push(Sa),Sa={type:null,value:""};for(var Ia=0;Ia<wa.length;Ia++)ya.push(wa[Ia])}}if(Aa==da.length)break;if(Aa=$a,Ca++>la){for(Ca>2*da.length&&this.reportError("infinite loop with in ace tokenizer",{startState:pa,line:da});Aa<da.length;)Sa.type&&ya.push(Sa),Sa={value:da.substring(Aa,Aa+=500),type:"overflow"};ga="start",ha=[];break}}return Sa.type&&ya.push(Sa),ha.length>1&&ha[0]!==ga&&ha.unshift("#tmp",ga),{tokens:ya,state:ha.length?ha:ga}},ua}();ca.prototype.reportError=sa,oa.Tokenizer=ca}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(ra,oa,aa){var sa=ra("../lib/deep_copy").deepCopy,la;la=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},function(){this.addRules=function(da,pa){if(!pa){for(var ha in da)this.$rules[ha]=da[ha];return}for(var ha in da){for(var ga=da[ha],fa=0;fa<ga.length;fa++){var ma=ga[fa];(ma.next||ma.onMatch)&&(typeof ma.next=="string"&&ma.next.indexOf(pa)!==0&&(ma.next=pa+ma.next),ma.nextState&&ma.nextState.indexOf(pa)!==0&&(ma.nextState=pa+ma.nextState))}this.$rules[pa+ha]=ga}},this.getRules=function(){return this.$rules},this.embedRules=function(da,pa,ha,ga,fa){var ma=typeof da=="function"?new da().getRules():da;if(ga)for(var va=0;va<ga.length;va++)ga[va]=pa+ga[va];else{ga=[];for(var xa in ma)ga.push(pa+xa)}if(this.addRules(ma,pa),ha)for(var ya=Array.prototype[fa?"push":"unshift"],va=0;va<ga.length;va++)ya.apply(this.$rules[ga[va]],sa(ha));this.$embeds||(this.$embeds=[]),this.$embeds.push(pa)},this.getEmbeds=function(){return this.$embeds};var ca=function(da,pa){return(da!="start"||pa.length)&&pa.unshift(this.nextState,da),this.nextState},ua=function(da,pa){return pa.shift(),pa.shift()||"start"};this.normalizeRules=function(){var da=0,pa=this.$rules;function ha(ga){var fa=pa[ga];fa.processed=!0;for(var ma=0;ma<fa.length;ma++){var va=fa[ma],xa=null;Array.isArray(va)&&(xa=va,va={}),!va.regex&&va.start&&(va.regex=va.start,va.next||(va.next=[]),va.next.push({defaultToken:va.token},{token:va.token+".end",regex:va.end||va.start,next:"pop"}),va.token=va.token+".start",va.push=!0);var ya=va.next||va.push;if(ya&&Array.isArray(ya)){var Aa=va.stateName;Aa||(Aa=va.token,typeof Aa!="string"&&(Aa=Aa[0]||""),pa[Aa]&&(Aa+=da++)),pa[Aa]=ya,va.next=Aa,ha(Aa)}else ya=="pop"&&(va.next=ua);if(va.push&&(va.nextState=va.next||va.push,va.next=ca,delete va.push),va.rules)for(var Ca in va.rules)pa[Ca]?pa[Ca].push&&pa[Ca].push.apply(pa[Ca],va.rules[Ca]):pa[Ca]=va.rules[Ca];var Sa=typeof va=="string"?va:va.include;if(Sa&&(Sa==="$self"&&(Sa="start"),Array.isArray(Sa)?xa=Sa.map(function(ba){return pa[ba]}):xa=pa[Sa]),xa){var wa=[ma,1].concat(xa);va.noEscape&&(wa=wa.filter(function(ba){return!ba.next})),fa.splice.apply(fa,wa),ma--}va.keywordMap&&(va.token=this.createKeywordMapper(va.keywordMap,va.defaultToken||"text",va.caseInsensitive),delete va.defaultToken)}}Object.keys(pa).forEach(ha,this)},this.createKeywordMapper=function(da,pa,ha,ga){var fa=Object.create(null);return this.$keywordList=[],Object.keys(da).forEach(function(ma){for(var va=da[ma],xa=va.split(ga||"|"),ya=xa.length;ya--;){var Aa=xa[ya];this.$keywordList.push(Aa),ha&&(Aa=Aa.toLowerCase()),fa[Aa]=ma}},this),da=null,ha?function(ma){return fa[ma.toLowerCase()]||pa}:function(ma){return fa[ma]||pa}},this.getKeywords=function(){return this.$keywords}}.call(la.prototype),oa.TextHighlightRules=la}),ace.define("ace/mode/behaviour",["require","exports","module"],function(ra,oa,aa){var sa;sa=function(){this.$behaviours={}},function(){this.add=function(la,ca,ua){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[la]:this.$behaviours[la]={}}this.$behaviours[la][ca]=ua},this.addBehaviours=function(la){for(var ca in la)for(var ua in la[ca])this.add(ca,ua,la[ca][ua])},this.remove=function(la){this.$behaviours&&this.$behaviours[la]&&delete this.$behaviours[la]},this.inherit=function(la,ca){if(typeof la=="function")var ua=new la().getBehaviours(ca);else var ua=la.getBehaviours(ca);this.addBehaviours(ua)},this.getBehaviours=function(la){if(la){for(var ca={},ua=0;ua<la.length;ua++)this.$behaviours[la[ua]]&&(ca[la[ua]]=this.$behaviours[la[ua]]);return ca}else return this.$behaviours}}.call(sa.prototype),oa.Behaviour=sa}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("./range").Range,la=function(){function ca(ua,da,pa){this.$session=ua,this.$row=da,this.$rowTokens=ua.getTokens(da);var ha=ua.getTokenAt(da,pa);this.$tokenIndex=ha?ha.index:-1}return ca.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},ca.prototype.stepForward=function(){this.$tokenIndex+=1;for(var ua;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,ua||(ua=this.$session.getLength()),this.$row>=ua)return this.$row=ua-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},ca.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},ca.prototype.getCurrentTokenRow=function(){return this.$row},ca.prototype.getCurrentTokenColumn=function(){var ua=this.$rowTokens,da=this.$tokenIndex,pa=ua[da].start;if(pa!==void 0)return pa;for(pa=0;da>0;)da-=1,pa+=ua[da].value.length;return pa},ca.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},ca.prototype.getCurrentTokenRange=function(){var ua=this.$rowTokens[this.$tokenIndex],da=this.getCurrentTokenColumn();return new sa(this.$row,da,this.$row,da+ua.value.length)},ca}();oa.TokenIterator=la}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../behaviour").Behaviour,ca=ra("../../token_iterator").TokenIterator,ua=ra("../../lib/lang"),da=["text","paren.rparen","rparen","paren","punctuation.operator"],pa=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],ha,ga={},fa={'"':'"',"'":"'"},ma=function(ya){var Aa=-1;if(ya.multiSelect&&(Aa=ya.selection.index,ga.rangeCount!=ya.multiSelect.rangeCount&&(ga={rangeCount:ya.multiSelect.rangeCount})),ga[Aa])return ha=ga[Aa];ha=ga[Aa]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},va=function(ya,Aa,Ca,Sa){var wa=ya.end.row-ya.start.row;return{text:Ca+Aa+Sa,selection:[0,ya.start.column+1,wa,ya.end.column+(wa?0:1)]}},xa;xa=function(ya){ya=ya||{},this.add("braces","insertion",function(Aa,Ca,Sa,wa,ba){var Ea=Sa.getCursorPosition(),$a=wa.doc.getLine(Ea.row);if(ba=="{"){ma(Sa);var Ma=Sa.getSelectionRange(),Ia=wa.doc.getTextRange(Ma),Oa=wa.getTokenAt(Ea.row,Ea.column);if(Ia!==""&&Ia!=="{"&&Sa.getWrapBehavioursEnabled())return va(Ma,Ia,"{","}");if(Oa&&/(?:string)\.quasi|\.xml/.test(Oa.type)){var Da=[/tag\-(?:open|name)/,/attribute\-name/];return Da.some(function(Ha){return Ha.test(Oa.type)})||/(string)\.quasi/.test(Oa.type)&&Oa.value[Ea.column-Oa.start-1]!=="$"?void 0:(xa.recordAutoInsert(Sa,wa,"}"),{text:"{}",selection:[1,1]})}else if(xa.isSaneInsertion(Sa,wa))return/[\]\}\)]/.test($a[Ea.column])||Sa.inMultiSelectMode||ya.braces?(xa.recordAutoInsert(Sa,wa,"}"),{text:"{}",selection:[1,1]}):(xa.recordMaybeInsert(Sa,wa,"{"),{text:"{",selection:[1,1]})}else if(ba=="}"){ma(Sa);var Ta=$a.substring(Ea.column,Ea.column+1);if(Ta=="}"){var _a=wa.$findOpeningBracket("}",{column:Ea.column+1,row:Ea.row});if(_a!==null&&xa.isAutoInsertedClosing(Ea,$a,ba))return xa.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(ba==`
`||ba==`\r
`){ma(Sa);var La="";xa.isMaybeInsertedClosing(Ea,$a)&&(La=ua.stringRepeat("}",ha.maybeInsertedBrackets),xa.clearMaybeInsertedClosing());var Ta=$a.substring(Ea.column,Ea.column+1);if(Ta==="}"){var Na=wa.findMatchingBracket({row:Ea.row,column:Ea.column+1},"}");if(!Na)return null;var za=this.$getIndent(wa.getLine(Na.row))}else if(La)var za=this.$getIndent($a);else{xa.clearMaybeInsertedClosing();return}var Fa=za+wa.getTabString();return{text:`
`+Fa+`
`+za+La,selection:[1,Fa.length,1,Fa.length]}}else xa.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(Aa,Ca,Sa,wa,ba){var Ea=wa.doc.getTextRange(ba);if(!ba.isMultiLine()&&Ea=="{"){ma(Sa);var $a=wa.doc.getLine(ba.start.row),Ma=$a.substring(ba.end.column,ba.end.column+1);if(Ma=="}")return ba.end.column++,ba;ha.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Aa,Ca,Sa,wa,ba){if(ba=="("){ma(Sa);var Ea=Sa.getSelectionRange(),$a=wa.doc.getTextRange(Ea);if($a!==""&&Sa.getWrapBehavioursEnabled())return va(Ea,$a,"(",")");if(xa.isSaneInsertion(Sa,wa))return xa.recordAutoInsert(Sa,wa,")"),{text:"()",selection:[1,1]}}else if(ba==")"){ma(Sa);var Ma=Sa.getCursorPosition(),Ia=wa.doc.getLine(Ma.row),Oa=Ia.substring(Ma.column,Ma.column+1);if(Oa==")"){var Da=wa.$findOpeningBracket(")",{column:Ma.column+1,row:Ma.row});if(Da!==null&&xa.isAutoInsertedClosing(Ma,Ia,ba))return xa.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(Aa,Ca,Sa,wa,ba){var Ea=wa.doc.getTextRange(ba);if(!ba.isMultiLine()&&Ea=="("){ma(Sa);var $a=wa.doc.getLine(ba.start.row),Ma=$a.substring(ba.start.column+1,ba.start.column+2);if(Ma==")")return ba.end.column++,ba}}),this.add("brackets","insertion",function(Aa,Ca,Sa,wa,ba){if(ba=="["){ma(Sa);var Ea=Sa.getSelectionRange(),$a=wa.doc.getTextRange(Ea);if($a!==""&&Sa.getWrapBehavioursEnabled())return va(Ea,$a,"[","]");if(xa.isSaneInsertion(Sa,wa))return xa.recordAutoInsert(Sa,wa,"]"),{text:"[]",selection:[1,1]}}else if(ba=="]"){ma(Sa);var Ma=Sa.getCursorPosition(),Ia=wa.doc.getLine(Ma.row),Oa=Ia.substring(Ma.column,Ma.column+1);if(Oa=="]"){var Da=wa.$findOpeningBracket("]",{column:Ma.column+1,row:Ma.row});if(Da!==null&&xa.isAutoInsertedClosing(Ma,Ia,ba))return xa.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(Aa,Ca,Sa,wa,ba){var Ea=wa.doc.getTextRange(ba);if(!ba.isMultiLine()&&Ea=="["){ma(Sa);var $a=wa.doc.getLine(ba.start.row),Ma=$a.substring(ba.start.column+1,ba.start.column+2);if(Ma=="]")return ba.end.column++,ba}}),this.add("string_dquotes","insertion",function(Aa,Ca,Sa,wa,ba){var Ea=wa.$mode.$quotes||fa;if(ba.length==1&&Ea[ba]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(ba)!=-1)return;ma(Sa);var $a=ba,Ma=Sa.getSelectionRange(),Ia=wa.doc.getTextRange(Ma);if(Ia!==""&&(Ia.length!=1||!Ea[Ia])&&Sa.getWrapBehavioursEnabled())return va(Ma,Ia,$a,$a);if(!Ia){var Oa=Sa.getCursorPosition(),Da=wa.doc.getLine(Oa.row),Ta=Da.substring(Oa.column-1,Oa.column),_a=Da.substring(Oa.column,Oa.column+1),La=wa.getTokenAt(Oa.row,Oa.column),Na=wa.getTokenAt(Oa.row,Oa.column+1);if(Ta=="\\"&&La&&/escape/.test(La.type))return null;var za=La&&/string|escape/.test(La.type),Fa=!Na||/string|escape/.test(Na.type),Ha;if(_a==$a)Ha=za!==Fa,Ha&&/string\.end/.test(Na.type)&&(Ha=!1);else{if(za&&!Fa||za&&Fa)return null;var Va=wa.$mode.tokenRe;Va.lastIndex=0;var Ua=Va.test(Ta);Va.lastIndex=0;var Qa=Va.test(_a),Wa=wa.$mode.$pairQuotesAfter,Za=Wa&&Wa[$a]&&Wa[$a].test(Ta);if(!Za&&Ua||Qa||_a&&!/[\s;,.})\]\\]/.test(_a))return null;var Xa=Da[Oa.column-2];if(Ta==$a&&(Xa==$a||Va.test(Xa)))return null;Ha=!0}return{text:Ha?$a+$a:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Aa,Ca,Sa,wa,ba){var Ea=wa.$mode.$quotes||fa,$a=wa.doc.getTextRange(ba);if(!ba.isMultiLine()&&Ea.hasOwnProperty($a)){ma(Sa);var Ma=wa.doc.getLine(ba.start.row),Ia=Ma.substring(ba.start.column+1,ba.start.column+2);if(Ia==$a)return ba.end.column++,ba}}),ya.closeDocComment!==!1&&this.add("doc comment end","insertion",function(Aa,Ca,Sa,wa,ba){if(Aa==="doc-start"&&(ba===`
`||ba===`\r
`)&&Sa.selection.isEmpty()){var Ea=Sa.getCursorPosition();if(Ea.column===0)return;for(var $a=wa.doc.getLine(Ea.row),Ma=wa.doc.getLine(Ea.row+1),Ia=wa.getTokens(Ea.row),Oa=0,Da=0;Da<Ia.length;Da++){Oa+=Ia[Da].value.length;var Ta=Ia[Da];if(Oa>=Ea.column){if(Oa===Ea.column){if(!/\.doc/.test(Ta.type))return;if(/\*\//.test(Ta.value)){var _a=Ia[Da+1];if(!_a||!/\.doc/.test(_a.type))return}}var La=Ea.column-(Oa-Ta.value.length),Na=Ta.value.indexOf("*/"),za=Ta.value.indexOf("/**",Na>-1?Na+2:0);if(za!==-1&&La>za&&La<za+3||Na!==-1&&za!==-1&&La>=Na&&La<=za||!/\.doc/.test(Ta.type))return;break}}var Fa=this.$getIndent($a);if(/\s*\*/.test(Ma))return/^\s*\*/.test($a)?{text:ba+Fa+"* ",selection:[1,2+Fa.length,1,2+Fa.length]}:{text:ba+Fa+" * ",selection:[1,3+Fa.length,1,3+Fa.length]};if(/\/\*\*/.test($a.substring(0,Ea.column)))return{text:ba+Fa+" * "+ba+" "+Fa+"*/",selection:[1,4+Fa.length,1,4+Fa.length]}}})},xa.isSaneInsertion=function(ya,Aa){var Ca=ya.getCursorPosition(),Sa=new ca(Aa,Ca.row,Ca.column);if(!this.$matchTokenType(Sa.getCurrentToken()||"text",da)){if(/[)}\]]/.test(ya.session.getLine(Ca.row)[Ca.column]))return!0;var wa=new ca(Aa,Ca.row,Ca.column+1);if(!this.$matchTokenType(wa.getCurrentToken()||"text",da))return!1}return Sa.stepForward(),Sa.getCurrentTokenRow()!==Ca.row||this.$matchTokenType(Sa.getCurrentToken()||"text",pa)},xa.$matchTokenType=function(ya,Aa){return Aa.indexOf(ya.type||ya)>-1},xa.recordAutoInsert=function(ya,Aa,Ca){var Sa=ya.getCursorPosition(),wa=Aa.doc.getLine(Sa.row);this.isAutoInsertedClosing(Sa,wa,ha.autoInsertedLineEnd[0])||(ha.autoInsertedBrackets=0),ha.autoInsertedRow=Sa.row,ha.autoInsertedLineEnd=Ca+wa.substr(Sa.column),ha.autoInsertedBrackets++},xa.recordMaybeInsert=function(ya,Aa,Ca){var Sa=ya.getCursorPosition(),wa=Aa.doc.getLine(Sa.row);this.isMaybeInsertedClosing(Sa,wa)||(ha.maybeInsertedBrackets=0),ha.maybeInsertedRow=Sa.row,ha.maybeInsertedLineStart=wa.substr(0,Sa.column)+Ca,ha.maybeInsertedLineEnd=wa.substr(Sa.column),ha.maybeInsertedBrackets++},xa.isAutoInsertedClosing=function(ya,Aa,Ca){return ha.autoInsertedBrackets>0&&ya.row===ha.autoInsertedRow&&Ca===ha.autoInsertedLineEnd[0]&&Aa.substr(ya.column)===ha.autoInsertedLineEnd},xa.isMaybeInsertedClosing=function(ya,Aa){return ha.maybeInsertedBrackets>0&&ya.row===ha.maybeInsertedRow&&Aa.substr(ya.column)===ha.maybeInsertedLineEnd&&Aa.substr(0,ya.column)==ha.maybeInsertedLineStart},xa.popAutoInsertedClosing=function(){ha.autoInsertedLineEnd=ha.autoInsertedLineEnd.substr(1),ha.autoInsertedBrackets--},xa.clearMaybeInsertedClosing=function(){ha&&(ha.maybeInsertedBrackets=0,ha.maybeInsertedRow=-1)},sa.inherits(xa,la),oa.CstyleBehaviour=xa}),ace.define("ace/unicode",["require","exports","module"],function(ra,oa,aa){for(var sa=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],la=0,ca=[],ua=0;ua<sa.length;ua+=2)ca.push(la+=sa[ua]),sa[ua+1]&&ca.push(45,la+=sa[ua+1]);oa.wordChars=String.fromCharCode.apply(null,ca)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(ra,oa,aa){var sa=ra("../config"),la=ra("../tokenizer").Tokenizer,ca=ra("./text_highlight_rules").TextHighlightRules,ua=ra("./behaviour/cstyle").CstyleBehaviour,da=ra("../unicode"),pa=ra("../lib/lang"),ha=ra("../token_iterator").TokenIterator,ga=ra("../range").Range,fa;fa=function(){this.HighlightRules=ca},function(){this.$defaultBehaviour=new ua,this.tokenRe=new RegExp("^["+da.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+da.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new la(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(ma,va,xa,ya){var Aa=va.doc,Ca=!0,Sa=!0,wa=1/0,ba=va.getTabSize(),Ea=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var Ia=this.lineCommentStart.map(pa.escapeRegExp).join("|"),$a=this.lineCommentStart[0];else var Ia=pa.escapeRegExp(this.lineCommentStart),$a=this.lineCommentStart;Ia=new RegExp("^(\\s*)(?:"+Ia+") ?"),Ea=va.getUseSoftTabs();var Ta=function(Qa,Wa){var Za=Qa.match(Ia);if(Za){var Xa=Za[1].length,tl=Za[0].length;!Na(Qa,Xa,tl)&&Za[0][tl-1]==" "&&tl--,Aa.removeInLine(Wa,Xa,tl)}},La=$a+" ",Da=function(Qa,Wa){(!Ca||/\S/.test(Qa))&&(Na(Qa,wa,wa)?Aa.insertInLine({row:Wa,column:wa},La):Aa.insertInLine({row:Wa,column:wa},$a))},_a=function(Qa,Wa){return Ia.test(Qa)},Na=function(Qa,Wa,Za){for(var Xa=0;Wa--&&Qa.charAt(Wa)==" ";)Xa++;if(Xa%ba!=0)return!1;for(var Xa=0;Qa.charAt(Za++)==" ";)Xa++;return ba>2?Xa%ba!=ba-1:Xa%ba==0}}else{if(!this.blockComment)return!1;var $a=this.blockComment.start,Ma=this.blockComment.end,Ia=new RegExp("^(\\s*)(?:"+pa.escapeRegExp($a)+")"),Oa=new RegExp("(?:"+pa.escapeRegExp(Ma)+")\\s*$"),Da=function(Ha,Va){_a(Ha,Va)||(!Ca||/\S/.test(Ha))&&(Aa.insertInLine({row:Va,column:Ha.length},Ma),Aa.insertInLine({row:Va,column:wa},$a))},Ta=function(Ha,Va){var Ua;(Ua=Ha.match(Oa))&&Aa.removeInLine(Va,Ha.length-Ua[0].length,Ha.length),(Ua=Ha.match(Ia))&&Aa.removeInLine(Va,Ua[1].length,Ua[0].length)},_a=function(Ha,Va){if(Ia.test(Ha))return!0;for(var Ua=va.getTokens(Va),Qa=0;Qa<Ua.length;Qa++)if(Ua[Qa].type==="comment")return!0}}function za(Ha){for(var Va=xa;Va<=ya;Va++)Ha(Aa.getLine(Va),Va)}var Fa=1/0;za(function(Ha,Va){var Ua=Ha.search(/\S/);Ua!==-1?(Ua<wa&&(wa=Ua),Sa&&!_a(Ha,Va)&&(Sa=!1)):Fa>Ha.length&&(Fa=Ha.length)}),wa==1/0&&(wa=Fa,Ca=!1,Sa=!1),Ea&&wa%ba!=0&&(wa=Math.floor(wa/ba)*ba),za(Sa?Ta:Da)},this.toggleBlockComment=function(ma,va,xa,ya){var Aa=this.blockComment;if(Aa){!Aa.start&&Aa[0]&&(Aa=Aa[0]);var Ca=new ha(va,ya.row,ya.column),Sa=Ca.getCurrentToken();va.selection;var wa=va.selection.toOrientedRange(),ba,Ea;if(Sa&&/comment/.test(Sa.type)){for(var $a,Ma;Sa&&/comment/.test(Sa.type);){var Ia=Sa.value.indexOf(Aa.start);if(Ia!=-1){var Oa=Ca.getCurrentTokenRow(),Da=Ca.getCurrentTokenColumn()+Ia;$a=new ga(Oa,Da,Oa,Da+Aa.start.length);break}Sa=Ca.stepBackward()}for(var Ca=new ha(va,ya.row,ya.column),Sa=Ca.getCurrentToken();Sa&&/comment/.test(Sa.type);){var Ia=Sa.value.indexOf(Aa.end);if(Ia!=-1){var Oa=Ca.getCurrentTokenRow(),Da=Ca.getCurrentTokenColumn()+Ia;Ma=new ga(Oa,Da,Oa,Da+Aa.end.length);break}Sa=Ca.stepForward()}Ma&&va.remove(Ma),$a&&(va.remove($a),ba=$a.start.row,Ea=-Aa.start.length)}else Ea=Aa.start.length,ba=xa.start.row,va.insert(xa.end,Aa.end),va.insert(xa.start,Aa.start);wa.start.row==ba&&(wa.start.column+=Ea),wa.end.row==ba&&(wa.end.column+=Ea),va.selection.fromOrientedRange(wa)}},this.getNextLineIndent=function(ma,va,xa){return this.$getIndent(va)},this.checkOutdent=function(ma,va,xa){return!1},this.autoOutdent=function(ma,va,xa){},this.$getIndent=function(ma){return ma.match(/^\s*/)[0]},this.createWorker=function(ma){return null},this.createModeDelegates=function(ma){this.$embeds=[],this.$modes={};for(var va in ma)if(ma[va]){var xa=ma[va],ya=xa.prototype.$id,Aa=sa.$modes[ya];Aa||(sa.$modes[ya]=Aa=new xa),sa.$modes[va]||(sa.$modes[va]=Aa),this.$embeds.push(va),this.$modes[va]=Aa}for(var Ca=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],Sa=function(ba){(function(Ea){var $a=Ca[ba],Ma=Ea[$a];Ea[Ca[ba]]=function(){return this.$delegator($a,arguments,Ma)}})(wa)},wa=this,va=0;va<Ca.length;va++)Sa(va)},this.$delegator=function(ma,va,xa){var ya=va[0]||"start";if(typeof ya!="string"){if(Array.isArray(ya[2])){var Aa=ya[2][ya[2].length-1],Ca=this.$modes[Aa];if(Ca)return Ca[ma].apply(Ca,[ya[1]].concat([].slice.call(va,1)))}ya=ya[0]||"start"}for(var Sa=0;Sa<this.$embeds.length;Sa++)if(this.$modes[this.$embeds[Sa]]){var wa=ya.split(this.$embeds[Sa]);if(!wa[0]&&wa[1]){va[0]=wa[1];var Ca=this.$modes[this.$embeds[Sa]];return Ca[ma].apply(Ca,va)}}var ba=xa.apply(this,va);return xa?ba:void 0},this.transformAction=function(ma,va,xa,ya,Aa){if(this.$behaviour){var Ca=this.$behaviour.getBehaviours();for(var Sa in Ca)if(Ca[Sa][va]){var wa=Ca[Sa][va].apply(this,arguments);if(wa)return wa}}},this.getKeywords=function(ma){if(!this.completionKeywords){var va=this.$tokenizer.rules,xa=[];for(var ya in va)for(var Aa=va[ya],Ca=0,Sa=Aa.length;Ca<Sa;Ca++)if(typeof Aa[Ca].token=="string")/keyword|support|storage/.test(Aa[Ca].token)&&xa.push(Aa[Ca].regex);else if(typeof Aa[Ca].token=="object"){for(var wa=0,ba=Aa[Ca].token.length;wa<ba;wa++)if(/keyword|support|storage/.test(Aa[Ca].token[wa])){var ya=Aa[Ca].regex.match(/\(.+?\)/g)[wa];xa.push(ya.substr(1,ya.length-2))}}this.completionKeywords=xa}return ma?xa.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(ma,va,xa,ya){var Aa=this.$keywordList||this.$createKeywordList();return Aa.map(function(Ca){return{name:Ca,value:Ca,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}.call(fa.prototype),oa.Mode=fa}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(ra,oa,aa){var sa=ra("./lib/dom"),la=function(){function ca(ua){this.session=ua,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return ca.prototype.getRowLength=function(ua){var da;return this.lineWidgets?da=this.lineWidgets[ua]&&this.lineWidgets[ua].rowCount||0:da=0,!this.$useWrapMode||!this.$wrapData[ua]?1+da:this.$wrapData[ua].length+1+da},ca.prototype.$getWidgetScreenLength=function(){var ua=0;return this.lineWidgets.forEach(function(da){da&&da.rowCount&&!da.hidden&&(ua+=da.rowCount)}),ua},ca.prototype.$onChangeEditor=function(ua){this.attach(ua.editor)},ca.prototype.attach=function(ua){ua&&ua.widgetManager&&ua.widgetManager!=this&&ua.widgetManager.detach(),this.editor!=ua&&(this.detach(),this.editor=ua,ua&&(ua.widgetManager=this,ua.renderer.on("beforeRender",this.measureWidgets),ua.renderer.on("afterRender",this.renderWidgets)))},ca.prototype.detach=function(ua){var da=this.editor;if(da){this.editor=null,da.widgetManager=null,da.renderer.off("beforeRender",this.measureWidgets),da.renderer.off("afterRender",this.renderWidgets);var pa=this.session.lineWidgets;pa&&pa.forEach(function(ha){ha&&ha.el&&ha.el.parentNode&&(ha._inDocument=!1,ha.el.parentNode.removeChild(ha.el))})}},ca.prototype.updateOnFold=function(ua,da){var pa=da.lineWidgets;if(!(!pa||!ua.action)){for(var ha=ua.data,ga=ha.start.row,fa=ha.end.row,ma=ua.action=="add",va=ga+1;va<fa;va++)pa[va]&&(pa[va].hidden=ma);pa[fa]&&(ma?pa[ga]?pa[fa].hidden=ma:pa[ga]=pa[fa]:(pa[ga]==pa[fa]&&(pa[ga]=void 0),pa[fa].hidden=ma))}},ca.prototype.updateOnChange=function(ua){var da=this.session.lineWidgets;if(da){var pa=ua.start.row,ha=ua.end.row-pa;if(ha!==0)if(ua.action=="remove"){var ga=da.splice(pa+1,ha);!da[pa]&&ga[ga.length-1]&&(da[pa]=ga.pop()),ga.forEach(function(ma){ma&&this.removeLineWidget(ma)},this),this.$updateRows()}else{var fa=new Array(ha);da[pa]&&da[pa].column!=null&&ua.start.column>da[pa].column&&pa++,fa.unshift(pa,0),da.splice.apply(da,fa),this.$updateRows()}}},ca.prototype.$updateRows=function(){var ua=this.session.lineWidgets;if(ua){var da=!0;ua.forEach(function(pa,ha){if(pa)for(da=!1,pa.row=ha;pa.$oldWidget;)pa.$oldWidget.row=ha,pa=pa.$oldWidget}),da&&(this.session.lineWidgets=null)}},ca.prototype.$registerLineWidget=function(ua){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var da=this.session.lineWidgets[ua.row];return da&&(ua.$oldWidget=da,da.el&&da.el.parentNode&&(da.el.parentNode.removeChild(da.el),da._inDocument=!1)),this.session.lineWidgets[ua.row]=ua,ua},ca.prototype.addLineWidget=function(ua){if(this.$registerLineWidget(ua),ua.session=this.session,!this.editor)return ua;var da=this.editor.renderer;ua.html&&!ua.el&&(ua.el=sa.createElement("div"),ua.el.innerHTML=ua.html),ua.text&&!ua.el&&(ua.el=sa.createElement("div"),ua.el.textContent=ua.text),ua.el&&(sa.addCssClass(ua.el,"ace_lineWidgetContainer"),ua.className&&sa.addCssClass(ua.el,ua.className),ua.el.style.position="absolute",ua.el.style.zIndex="5",da.container.appendChild(ua.el),ua._inDocument=!0,ua.coverGutter||(ua.el.style.zIndex="3"),ua.pixelHeight==null&&(ua.pixelHeight=ua.el.offsetHeight)),ua.rowCount==null&&(ua.rowCount=ua.pixelHeight/da.layerConfig.lineHeight);var pa=this.session.getFoldAt(ua.row,0);if(ua.$fold=pa,pa){var ha=this.session.lineWidgets;ua.row==pa.end.row&&!ha[pa.start.row]?ha[pa.start.row]=ua:ua.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:ua.row}}}),this.$updateRows(),this.renderWidgets(null,da),this.onWidgetChanged(ua),ua},ca.prototype.removeLineWidget=function(ua){if(ua._inDocument=!1,ua.session=null,ua.el&&ua.el.parentNode&&ua.el.parentNode.removeChild(ua.el),ua.editor&&ua.editor.destroy)try{ua.editor.destroy()}catch{}if(this.session.lineWidgets){var da=this.session.lineWidgets[ua.row];if(da==ua)this.session.lineWidgets[ua.row]=ua.$oldWidget,ua.$oldWidget&&this.onWidgetChanged(ua.$oldWidget);else for(;da;){if(da.$oldWidget==ua){da.$oldWidget=ua.$oldWidget;break}da=da.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:ua.row}}}),this.$updateRows()},ca.prototype.getWidgetsAtRow=function(ua){for(var da=this.session.lineWidgets,pa=da&&da[ua],ha=[];pa;)ha.push(pa),pa=pa.$oldWidget;return ha},ca.prototype.onWidgetChanged=function(ua){this.session._changedWidgets.push(ua),this.editor&&this.editor.renderer.updateFull()},ca.prototype.measureWidgets=function(ua,da){var pa=this.session._changedWidgets,ha=da.layerConfig;if(!(!pa||!pa.length)){for(var ga=1/0,fa=0;fa<pa.length;fa++){var ma=pa[fa];if(!(!ma||!ma.el)&&ma.session==this.session){if(!ma._inDocument){if(this.session.lineWidgets[ma.row]!=ma)continue;ma._inDocument=!0,da.container.appendChild(ma.el)}ma.h=ma.el.offsetHeight,ma.fixedWidth||(ma.w=ma.el.offsetWidth,ma.screenWidth=Math.ceil(ma.w/ha.characterWidth));var va=ma.h/ha.lineHeight;ma.coverLine&&(va-=this.session.getRowLineCount(ma.row),va<0&&(va=0)),ma.rowCount!=va&&(ma.rowCount=va,ma.row<ga&&(ga=ma.row))}}ga!=1/0&&(this.session._emit("changeFold",{data:{start:{row:ga}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},ca.prototype.renderWidgets=function(ua,da){var pa=da.layerConfig,ha=this.session.lineWidgets;if(ha){for(var ga=Math.min(this.firstRow,pa.firstRow),fa=Math.max(this.lastRow,pa.lastRow,ha.length);ga>0&&!ha[ga];)ga--;this.firstRow=pa.firstRow,this.lastRow=pa.lastRow,da.$cursorLayer.config=pa;for(var ma=ga;ma<=fa;ma++){var va=ha[ma];if(!(!va||!va.el)){if(va.hidden){va.el.style.top=-100-(va.pixelHeight||0)+"px";continue}va._inDocument||(va._inDocument=!0,da.container.appendChild(va.el));var xa=da.$cursorLayer.getPixelPosition({row:ma,column:0},!0).top;va.coverLine||(xa+=pa.lineHeight*this.session.getRowLineCount(va.row)),va.el.style.top=xa-pa.offset+"px";var ya=va.coverGutter?0:da.gutterWidth;va.fixedWidth||(ya-=da.scrollLeft),va.el.style.left=ya+"px",va.fullWidth&&va.screenWidth&&(va.el.style.minWidth=pa.width+2*pa.padding+"px"),va.fixedWidth?va.el.style.right=da.scrollBar.getWidth()+"px":va.el.style.right=""}}}},ca}();oa.LineWidgets=la}),ace.define("ace/apply_delta",["require","exports","module"],function(ra,oa,aa){oa.applyDelta=function(sa,la,ca){var ua=la.start.row,da=la.start.column,pa=sa[ua]||"";switch(la.action){case"insert":var ha=la.lines;if(ha.length===1)sa[ua]=pa.substring(0,da)+la.lines[0]+pa.substring(da);else{var ga=[ua,1].concat(la.lines);sa.splice.apply(sa,ga),sa[ua]=pa.substring(0,da)+sa[ua],sa[ua+la.lines.length-1]+=pa.substring(da)}break;case"remove":var fa=la.end.column,ma=la.end.row;ua===ma?sa[ua]=pa.substring(0,da)+pa.substring(fa):sa.splice(ua,ma-ua+1,pa.substring(0,da)+sa[ma].substring(fa));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./lib/event_emitter").EventEmitter,ca=function(){function pa(ha,ga,fa){this.$onChange=this.onChange.bind(this),this.attach(ha),typeof ga!="number"?this.setPosition(ga.row,ga.column):this.setPosition(ga,fa)}return pa.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},pa.prototype.getDocument=function(){return this.document},pa.prototype.onChange=function(ha){if(!(ha.start.row==ha.end.row&&ha.start.row!=this.row)&&!(ha.start.row>this.row)){var ga=da(ha,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ga.row,ga.column,!0)}},pa.prototype.setPosition=function(ha,ga,fa){var ma;if(fa?ma={row:ha,column:ga}:ma=this.$clipPositionToDocument(ha,ga),!(this.row==ma.row&&this.column==ma.column)){var va={row:this.row,column:this.column};this.row=ma.row,this.column=ma.column,this._signal("change",{old:va,value:ma})}},pa.prototype.detach=function(){this.document.off("change",this.$onChange)},pa.prototype.attach=function(ha){this.document=ha||this.document,this.document.on("change",this.$onChange)},pa.prototype.$clipPositionToDocument=function(ha,ga){var fa={};return ha>=this.document.getLength()?(fa.row=Math.max(0,this.document.getLength()-1),fa.column=this.document.getLine(fa.row).length):ha<0?(fa.row=0,fa.column=0):(fa.row=ha,fa.column=Math.min(this.document.getLine(fa.row).length,Math.max(0,ga))),ga<0&&(fa.column=0),fa},pa}();ca.prototype.$insertRight=!1,sa.implement(ca.prototype,la);function ua(pa,ha,ga){var fa=ga?pa.column<=ha.column:pa.column<ha.column;return pa.row<ha.row||pa.row==ha.row&&fa}function da(pa,ha,ga){var fa=pa.action=="insert",ma=(fa?1:-1)*(pa.end.row-pa.start.row),va=(fa?1:-1)*(pa.end.column-pa.start.column),xa=pa.start,ya=fa?xa:pa.end;return ua(ha,xa,ga)?{row:ha.row,column:ha.column}:ua(ya,ha,!ga)?{row:ha.row+ma,column:ha.column+(ha.row==ya.row?va:0)}:{row:xa.row,column:xa.column}}oa.Anchor=ca}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./apply_delta").applyDelta,ca=ra("./lib/event_emitter").EventEmitter,ua=ra("./range").Range,da=ra("./anchor").Anchor,pa=function(){function ha(ga){this.$lines=[""],ga.length===0?this.$lines=[""]:Array.isArray(ga)?this.insertMergedLines({row:0,column:0},ga):this.insert({row:0,column:0},ga)}return ha.prototype.setValue=function(ga){var fa=this.getLength()-1;this.remove(new ua(0,0,fa,this.getLine(fa).length)),this.insert({row:0,column:0},ga||"")},ha.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},ha.prototype.createAnchor=function(ga,fa){return new da(this,ga,fa)},ha.prototype.$detectNewLine=function(ga){var fa=ga.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=fa?fa[1]:`
`,this._signal("changeNewLineMode")},ha.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},ha.prototype.setNewLineMode=function(ga){this.$newLineMode!==ga&&(this.$newLineMode=ga,this._signal("changeNewLineMode"))},ha.prototype.getNewLineMode=function(){return this.$newLineMode},ha.prototype.isNewLine=function(ga){return ga==`\r
`||ga=="\r"||ga==`
`},ha.prototype.getLine=function(ga){return this.$lines[ga]||""},ha.prototype.getLines=function(ga,fa){return this.$lines.slice(ga,fa+1)},ha.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},ha.prototype.getLength=function(){return this.$lines.length},ha.prototype.getTextRange=function(ga){return this.getLinesForRange(ga).join(this.getNewLineCharacter())},ha.prototype.getLinesForRange=function(ga){var fa;if(ga.start.row===ga.end.row)fa=[this.getLine(ga.start.row).substring(ga.start.column,ga.end.column)];else{fa=this.getLines(ga.start.row,ga.end.row),fa[0]=(fa[0]||"").substring(ga.start.column);var ma=fa.length-1;ga.end.row-ga.start.row==ma&&(fa[ma]=fa[ma].substring(0,ga.end.column))}return fa},ha.prototype.insertLines=function(ga,fa){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(ga,fa)},ha.prototype.removeLines=function(ga,fa){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(ga,fa)},ha.prototype.insertNewLine=function(ga){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(ga,["",""])},ha.prototype.insert=function(ga,fa){return this.getLength()<=1&&this.$detectNewLine(fa),this.insertMergedLines(ga,this.$split(fa))},ha.prototype.insertInLine=function(ga,fa){var ma=this.clippedPos(ga.row,ga.column),va=this.pos(ga.row,ga.column+fa.length);return this.applyDelta({start:ma,end:va,action:"insert",lines:[fa]},!0),this.clonePos(va)},ha.prototype.clippedPos=function(ga,fa){var ma=this.getLength();ga===void 0?ga=ma:ga<0?ga=0:ga>=ma&&(ga=ma-1,fa=void 0);var va=this.getLine(ga);return fa==null&&(fa=va.length),fa=Math.min(Math.max(fa,0),va.length),{row:ga,column:fa}},ha.prototype.clonePos=function(ga){return{row:ga.row,column:ga.column}},ha.prototype.pos=function(ga,fa){return{row:ga,column:fa}},ha.prototype.$clipPosition=function(ga){var fa=this.getLength();return ga.row>=fa?(ga.row=Math.max(0,fa-1),ga.column=this.getLine(fa-1).length):(ga.row=Math.max(0,ga.row),ga.column=Math.min(Math.max(ga.column,0),this.getLine(ga.row).length)),ga},ha.prototype.insertFullLines=function(ga,fa){ga=Math.min(Math.max(ga,0),this.getLength());var ma=0;ga<this.getLength()?(fa=fa.concat([""]),ma=0):(fa=[""].concat(fa),ga--,ma=this.$lines[ga].length),this.insertMergedLines({row:ga,column:ma},fa)},ha.prototype.insertMergedLines=function(ga,fa){var ma=this.clippedPos(ga.row,ga.column),va={row:ma.row+fa.length-1,column:(fa.length==1?ma.column:0)+fa[fa.length-1].length};return this.applyDelta({start:ma,end:va,action:"insert",lines:fa}),this.clonePos(va)},ha.prototype.remove=function(ga){var fa=this.clippedPos(ga.start.row,ga.start.column),ma=this.clippedPos(ga.end.row,ga.end.column);return this.applyDelta({start:fa,end:ma,action:"remove",lines:this.getLinesForRange({start:fa,end:ma})}),this.clonePos(fa)},ha.prototype.removeInLine=function(ga,fa,ma){var va=this.clippedPos(ga,fa),xa=this.clippedPos(ga,ma);return this.applyDelta({start:va,end:xa,action:"remove",lines:this.getLinesForRange({start:va,end:xa})},!0),this.clonePos(va)},ha.prototype.removeFullLines=function(ga,fa){ga=Math.min(Math.max(0,ga),this.getLength()-1),fa=Math.min(Math.max(0,fa),this.getLength()-1);var ma=fa==this.getLength()-1&&ga>0,va=fa<this.getLength()-1,xa=ma?ga-1:ga,ya=ma?this.getLine(xa).length:0,Aa=va?fa+1:fa,Ca=va?0:this.getLine(Aa).length,Sa=new ua(xa,ya,Aa,Ca),wa=this.$lines.slice(ga,fa+1);return this.applyDelta({start:Sa.start,end:Sa.end,action:"remove",lines:this.getLinesForRange(Sa)}),wa},ha.prototype.removeNewLine=function(ga){ga<this.getLength()-1&&ga>=0&&this.applyDelta({start:this.pos(ga,this.getLine(ga).length),end:this.pos(ga+1,0),action:"remove",lines:["",""]})},ha.prototype.replace=function(ga,fa){if(ga instanceof ua||(ga=ua.fromPoints(ga.start,ga.end)),fa.length===0&&ga.isEmpty())return ga.start;if(fa==this.getTextRange(ga))return ga.end;this.remove(ga);var ma;return fa?ma=this.insert(ga.start,fa):ma=ga.start,ma},ha.prototype.applyDeltas=function(ga){for(var fa=0;fa<ga.length;fa++)this.applyDelta(ga[fa])},ha.prototype.revertDeltas=function(ga){for(var fa=ga.length-1;fa>=0;fa--)this.revertDelta(ga[fa])},ha.prototype.applyDelta=function(ga,fa){var ma=ga.action=="insert";(ma?ga.lines.length<=1&&!ga.lines[0]:!ua.comparePoints(ga.start,ga.end))||(ma&&ga.lines.length>2e4?this.$splitAndapplyLargeDelta(ga,2e4):(la(this.$lines,ga,fa),this._signal("change",ga)))},ha.prototype.$safeApplyDelta=function(ga){var fa=this.$lines.length;(ga.action=="remove"&&ga.start.row<fa&&ga.end.row<fa||ga.action=="insert"&&ga.start.row<=fa)&&this.applyDelta(ga)},ha.prototype.$splitAndapplyLargeDelta=function(ga,fa){for(var ma=ga.lines,va=ma.length-fa+1,xa=ga.start.row,ya=ga.start.column,Aa=0,Ca=0;Aa<va;Aa=Ca){Ca+=fa-1;var Sa=ma.slice(Aa,Ca);Sa.push(""),this.applyDelta({start:this.pos(xa+Aa,ya),end:this.pos(xa+Ca,ya=0),action:ga.action,lines:Sa},!0)}ga.lines=ma.slice(Aa),ga.start.row=xa+Aa,ga.start.column=ya,this.applyDelta(ga,!0)},ha.prototype.revertDelta=function(ga){this.$safeApplyDelta({start:this.clonePos(ga.start),end:this.clonePos(ga.end),action:ga.action=="insert"?"remove":"insert",lines:ga.lines.slice()})},ha.prototype.indexToPosition=function(ga,fa){for(var ma=this.$lines||this.getAllLines(),va=this.getNewLineCharacter().length,xa=fa||0,ya=ma.length;xa<ya;xa++)if(ga-=ma[xa].length+va,ga<0)return{row:xa,column:ga+ma[xa].length+va};return{row:ya-1,column:ga+ma[ya-1].length+va}},ha.prototype.positionToIndex=function(ga,fa){for(var ma=this.$lines||this.getAllLines(),va=this.getNewLineCharacter().length,xa=0,ya=Math.min(ga.row,ma.length),Aa=fa||0;Aa<ya;++Aa)xa+=ma[Aa].length+va;return xa+ga.column},ha.prototype.$split=function(ga){return ga.split(/\r\n|\r|\n/)},ha}();pa.prototype.$autoNewLine="",pa.prototype.$newLineMode="auto",sa.implement(pa.prototype,ca),oa.Document=pa}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./lib/event_emitter").EventEmitter,ca=function(){function ua(da,pa){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=da;var ha=this;this.$worker=function(){if(ha.running){for(var ga=new Date,fa=ha.currentLine,ma=-1,va=ha.doc,xa=fa;ha.lines[fa];)fa++;var ya=va.getLength(),Aa=0;for(ha.running=!1;fa<ya;){ha.$tokenizeRow(fa),ma=fa;do fa++;while(ha.lines[fa]);if(Aa++,Aa%5===0&&new Date-ga>20){ha.running=setTimeout(ha.$worker,20);break}}ha.currentLine=fa,ma==-1&&(ma=fa),xa<=ma&&ha.fireUpdateEvent(xa,ma)}}}return ua.prototype.setTokenizer=function(da){this.tokenizer=da,this.lines=[],this.states=[],this.start(0)},ua.prototype.setDocument=function(da){this.doc=da,this.lines=[],this.states=[],this.stop()},ua.prototype.fireUpdateEvent=function(da,pa){var ha={first:da,last:pa};this._signal("update",{data:ha})},ua.prototype.start=function(da){this.currentLine=Math.min(da||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},ua.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},ua.prototype.$updateOnChange=function(da){var pa=da.start.row,ha=da.end.row-pa;if(ha===0)this.lines[pa]=null;else if(da.action=="remove")this.lines.splice(pa,ha+1,null),this.states.splice(pa,ha+1,null);else{var ga=Array(ha+1);ga.unshift(pa,1),this.lines.splice.apply(this.lines,ga),this.states.splice.apply(this.states,ga)}this.currentLine=Math.min(pa,this.currentLine,this.doc.getLength()),this.stop()},ua.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},ua.prototype.getTokens=function(da){return this.lines[da]||this.$tokenizeRow(da)},ua.prototype.getState=function(da){return this.currentLine==da&&this.$tokenizeRow(da),this.states[da]||"start"},ua.prototype.$tokenizeRow=function(da){var pa=this.doc.getLine(da),ha=this.states[da-1],ga=this.tokenizer.getLineTokens(pa,ha,da);return this.states[da]+""!=ga.state+""?(this.states[da]=ga.state,this.lines[da+1]=null,this.currentLine>da+1&&(this.currentLine=da+1)):this.currentLine==da&&(this.currentLine=da+1),this.lines[da]=ga.tokens},ua.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},ua}();sa.implement(ca.prototype,la),oa.BackgroundTokenizer=ca}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(ra,oa,aa){var sa=ra("./lib/lang"),la=ra("./range").Range,ca=function(){function ua(da,pa,ha){ha===void 0&&(ha="text"),this.setRegexp(da),this.clazz=pa,this.type=ha,this.docLen=0}return ua.prototype.setRegexp=function(da){this.regExp+""!=da+""&&(this.regExp=da,this.cache=[])},ua.prototype.update=function(da,pa,ha,ga){if(this.regExp){for(var fa=ga.firstRow,ma=ga.lastRow,va={},xa=ha.$editor.$search,ya=xa.$isMultilineSearch(ha.$editor.getLastSearchOptions()),Aa=fa;Aa<=ma;Aa++){var Ca=this.cache[Aa];if(Ca==null||ha.getValue().length!=this.docLen){if(ya){Ca=[];var Sa=xa.$multiLineForward(ha,this.regExp,Aa,ma);if(Sa){var wa=Sa.endRow<=ma?Sa.endRow-1:ma;wa>Aa&&(Aa=wa),Ca.push(new la(Sa.startRow,Sa.startCol,Sa.endRow,Sa.endCol))}Ca.length>this.MAX_RANGES&&(Ca=Ca.slice(0,this.MAX_RANGES))}else Ca=sa.getMatchOffsets(ha.getLine(Aa),this.regExp),Ca.length>this.MAX_RANGES&&(Ca=Ca.slice(0,this.MAX_RANGES)),Ca=Ca.map(function(Ma){return new la(Aa,Ma.offset,Aa,Ma.offset+Ma.length)});this.cache[Aa]=Ca.length?Ca:""}if(Ca.length!==0)for(var ba=Ca.length;ba--;){var Ea=Ca[ba].toScreenRange(ha),$a=Ea.toString();va[$a]||(va[$a]=!0,pa.drawSingleLineMarker(da,Ea,this.clazz,ga))}}this.docLen=ha.getValue().length}},ua}();ca.prototype.MAX_RANGES=500,oa.SearchHighlight=ca}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=function(){function wa(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return wa.prototype.addSession=function(ba){this.$session=ba},wa.prototype.add=function(ba,Ea,$a){if(!this.$fromUndo&&ba!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),Ea===!1||!this.lastDeltas){this.lastDeltas=[];var Ma=this.$undoStack.length;Ma>this.$undoDepth-1&&this.$undoStack.splice(0,Ma-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),ba.id=this.$rev=++this.$maxRev}(ba.action=="remove"||ba.action=="insert")&&(this.$lastDelta=ba),this.lastDeltas.push(ba)}},wa.prototype.addSelection=function(ba,Ea){this.selections.push({value:ba,rev:Ea||this.$rev})},wa.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},wa.prototype.markIgnored=function(ba,Ea){Ea==null&&(Ea=this.$rev+1);for(var $a=this.$undoStack,Ma=$a.length;Ma--;){var Ia=$a[Ma][0];if(Ia.id<=ba)break;Ia.id<Ea&&(Ia.ignore=!0)}this.lastDeltas=null},wa.prototype.getSelection=function(ba,Ea){for(var $a=this.selections,Ma=$a.length;Ma--;){var Ia=$a[Ma];if(Ia.rev<ba)return Ea&&(Ia=$a[Ma+1]),Ia}},wa.prototype.getRevision=function(){return this.$rev},wa.prototype.getDeltas=function(ba,Ea){Ea==null&&(Ea=this.$rev+1);for(var $a=this.$undoStack,Ma=null,Ia=0,Oa=$a.length;Oa--;){var Da=$a[Oa][0];if(Da.id<Ea&&!Ma&&(Ma=Oa+1),Da.id<=ba){Ia=Oa+1;break}}return $a.slice(Ia,Ma)},wa.prototype.getChangedRanges=function(ba,Ea){Ea==null&&(Ea=this.$rev+1)},wa.prototype.getChangedLines=function(ba,Ea){Ea==null&&(Ea=this.$rev+1)},wa.prototype.undo=function(ba,Ea){this.lastDeltas=null;var $a=this.$undoStack;if(la($a,$a.length)){ba||(ba=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var Ma=$a.pop(),Ia=null;return Ma&&(Ia=ba.undoChanges(Ma,Ea),this.$redoStack.push(Ma),this.$syncRev()),this.$fromUndo=!1,Ia}},wa.prototype.redo=function(ba,Ea){if(this.lastDeltas=null,ba||(ba=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var $a=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);Sa(this.$redoStack,$a),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(Oa){Oa[0].id=++this.$maxRev},this)}var Ma=this.$redoStack.pop(),Ia=null;return Ma&&(Ia=ba.redoChanges(Ma,Ea),this.$undoStack.push(Ma),this.$syncRev()),this.$fromUndo=!1,Ia},wa.prototype.$syncRev=function(){var ba=this.$undoStack,Ea=ba[ba.length-1],$a=Ea&&Ea[0].id||0;this.$redoStackBaseRev=$a,this.$rev=$a},wa.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},wa.prototype.canUndo=function(){return this.$undoStack.length>0},wa.prototype.canRedo=function(){return this.$redoStack.length>0},wa.prototype.bookmark=function(ba){ba==null&&(ba=this.$rev),this.mark=ba},wa.prototype.isAtBookmark=function(){return this.$rev===this.mark},wa.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},wa.prototype.fromJSON=function(ba){this.reset(),this.$undoStack=ba.$undoStack,this.$redoStack=ba.$redoStack},wa.prototype.$prettyPrint=function(ba){return ba?ha(ba):ha(this.$undoStack)+`
---
`+ha(this.$redoStack)},wa}();sa.prototype.hasUndo=sa.prototype.canUndo,sa.prototype.hasRedo=sa.prototype.canRedo,sa.prototype.isClean=sa.prototype.isAtBookmark,sa.prototype.markClean=sa.prototype.bookmark;function la(wa,ba){for(var Ea=ba;Ea--;){var $a=wa[Ea];if($a&&!$a[0].ignore){for(;Ea<ba-1;){var Ma=ma(wa[Ea],wa[Ea+1]);wa[Ea]=Ma[0],wa[Ea+1]=Ma[1],Ea++}return!0}}}var ca=ra("./range").Range,ua=ca.comparePoints;ca.comparePoints;function da(wa){return{row:wa.row,column:wa.column}}function pa(wa){return{start:da(wa.start),end:da(wa.end),action:wa.action,lines:wa.lines.slice()}}function ha(wa){if(wa=wa||this,Array.isArray(wa))return wa.map(ha).join(`
`);var ba="";return wa.action?(ba=wa.action=="insert"?"+":"-",ba+="["+wa.lines+"]"):wa.value&&(Array.isArray(wa.value)?ba=wa.value.map(ga).join(`
`):ba=ga(wa.value)),wa.start&&(ba+=ga(wa)),(wa.id||wa.rev)&&(ba+="	("+(wa.id||wa.rev)+")"),ba}function ga(wa){return wa.start.row+":"+wa.start.column+"=>"+wa.end.row+":"+wa.end.column}function fa(wa,ba){var Ea=wa.action=="insert",$a=ba.action=="insert";if(Ea&&$a)if(ua(ba.start,wa.end)>=0)xa(ba,wa,-1);else if(ua(ba.start,wa.start)<=0)xa(wa,ba,1);else return null;else if(Ea&&!$a)if(ua(ba.start,wa.end)>=0)xa(ba,wa,-1);else if(ua(ba.end,wa.start)<=0)xa(wa,ba,-1);else return null;else if(!Ea&&$a)if(ua(ba.start,wa.start)>=0)xa(ba,wa,1);else if(ua(ba.start,wa.start)<=0)xa(wa,ba,1);else return null;else if(!Ea&&!$a)if(ua(ba.start,wa.start)>=0)xa(ba,wa,1);else if(ua(ba.end,wa.start)<=0)xa(wa,ba,-1);else return null;return[ba,wa]}function ma(wa,ba){for(var Ea=wa.length;Ea--;)for(var $a=0;$a<ba.length;$a++)if(!fa(wa[Ea],ba[$a])){for(;Ea<wa.length;){for(;$a--;)fa(ba[$a],wa[Ea]);$a=ba.length,Ea++}return[wa,ba]}return wa.selectionBefore=ba.selectionBefore=wa.selectionAfter=ba.selectionAfter=null,[ba,wa]}function va(wa,ba){var Ea=wa.action=="insert",$a=ba.action=="insert";if(Ea&&$a)ua(wa.start,ba.start)<0?xa(ba,wa,1):xa(wa,ba,1);else if(Ea&&!$a)ua(wa.start,ba.end)>=0?xa(wa,ba,-1):(ua(wa.start,ba.start)<=0||xa(wa,ca.fromPoints(ba.start,wa.start),-1),xa(ba,wa,1));else if(!Ea&&$a)ua(ba.start,wa.end)>=0?xa(ba,wa,-1):(ua(ba.start,wa.start)<=0||xa(ba,ca.fromPoints(wa.start,ba.start),-1),xa(wa,ba,1));else if(!Ea&&!$a)if(ua(ba.start,wa.end)>=0)xa(ba,wa,-1);else if(ua(ba.end,wa.start)<=0)xa(wa,ba,-1);else{var Ma,Ia;return ua(wa.start,ba.start)<0&&(Ma=wa,wa=Aa(wa,ba.start)),ua(wa.end,ba.end)>0&&(Ia=Aa(wa,ba.end)),ya(ba.end,wa.start,wa.end,-1),Ia&&!Ma&&(wa.lines=Ia.lines,wa.start=Ia.start,wa.end=Ia.end,Ia=wa),[ba,Ma,Ia].filter(Boolean)}return[ba,wa]}function xa(wa,ba,Ea){ya(wa.start,ba.start,ba.end,Ea),ya(wa.end,ba.start,ba.end,Ea)}function ya(wa,ba,Ea,$a){wa.row==($a==1?ba:Ea).row&&(wa.column+=$a*(Ea.column-ba.column)),wa.row+=$a*(Ea.row-ba.row)}function Aa(wa,ba){var Ea=wa.lines,$a=wa.end;wa.end=da(ba);var Ma=wa.end.row-wa.start.row,Ia=Ea.splice(Ma,Ea.length),Oa=Ma?ba.column:ba.column-wa.start.column;Ea.push(Ia[0].substring(0,Oa)),Ia[0]=Ia[0].substr(Oa);var Da={start:da(ba),end:$a,lines:Ia,action:wa.action};return Da}function Ca(wa,ba){ba=pa(ba);for(var Ea=wa.length;Ea--;){for(var $a=wa[Ea],Ma=0;Ma<$a.length;Ma++){var Ia=$a[Ma],Oa=va(Ia,ba);ba=Oa[0],Oa.length!=2&&(Oa[2]?($a.splice(Ma+1,1,Oa[1],Oa[2]),Ma++):Oa[1]||($a.splice(Ma,1),Ma--))}$a.length||wa.splice(Ea,1)}return wa}function Sa(wa,ba){for(var Ea=0;Ea<ba.length;Ea++)for(var $a=ba[Ea],Ma=0;Ma<$a.length;Ma++)Ca(wa,$a[Ma])}oa.UndoManager=sa}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../range").Range,la=function(){function ca(ua,da){this.foldData=ua,Array.isArray(da)?this.folds=da:da=this.folds=[da];var pa=da[da.length-1];this.range=new sa(da[0].start.row,da[0].start.column,pa.end.row,pa.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(ha){ha.setFoldLine(this)},this)}return ca.prototype.shiftRow=function(ua){this.start.row+=ua,this.end.row+=ua,this.folds.forEach(function(da){da.start.row+=ua,da.end.row+=ua})},ca.prototype.addFold=function(ua){if(ua.sameRow){if(ua.start.row<this.startRow||ua.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(ua),this.folds.sort(function(da,pa){return-da.range.compareEnd(pa.start.row,pa.start.column)}),this.range.compareEnd(ua.start.row,ua.start.column)>0?(this.end.row=ua.end.row,this.end.column=ua.end.column):this.range.compareStart(ua.end.row,ua.end.column)<0&&(this.start.row=ua.start.row,this.start.column=ua.start.column)}else if(ua.start.row==this.end.row)this.folds.push(ua),this.end.row=ua.end.row,this.end.column=ua.end.column;else if(ua.end.row==this.start.row)this.folds.unshift(ua),this.start.row=ua.start.row,this.start.column=ua.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");ua.foldLine=this},ca.prototype.containsRow=function(ua){return ua>=this.start.row&&ua<=this.end.row},ca.prototype.walk=function(ua,da,pa){var ha=0,ga=this.folds,fa,ma,va,xa=!0;da==null&&(da=this.end.row,pa=this.end.column);for(var ya=0;ya<ga.length;ya++){if(fa=ga[ya],ma=fa.range.compareStart(da,pa),ma==-1){ua(null,da,pa,ha,xa);return}if(va=ua(null,fa.start.row,fa.start.column,ha,xa),va=!va&&ua(fa.placeholder,fa.start.row,fa.start.column,ha),va||ma===0)return;xa=!fa.sameRow,ha=fa.end.column}ua(null,da,pa,ha,xa)},ca.prototype.getNextFoldTo=function(ua,da){for(var pa,ha,ga=0;ga<this.folds.length;ga++){if(pa=this.folds[ga],ha=pa.range.compareEnd(ua,da),ha==-1)return{fold:pa,kind:"after"};if(ha===0)return{fold:pa,kind:"inside"}}return null},ca.prototype.addRemoveChars=function(ua,da,pa){var ha=this.getNextFoldTo(ua,da),ga,fa;if(ha){if(ga=ha.fold,ha.kind=="inside"&&ga.start.column!=da&&ga.start.row!=ua)window.console&&window.console.log(ua,da,ga);else if(ga.start.row==ua){fa=this.folds;var ma=fa.indexOf(ga);for(ma===0&&(this.start.column+=pa),ma;ma<fa.length;ma++){if(ga=fa[ma],ga.start.column+=pa,!ga.sameRow)return;ga.end.column+=pa}this.end.column+=pa}}},ca.prototype.split=function(ua,da){var pa=this.getNextFoldTo(ua,da);if(!pa||pa.kind=="inside")return null;var ha=pa.fold,ga=this.folds,fa=this.foldData,ma=ga.indexOf(ha),va=ga[ma-1];this.end.row=va.end.row,this.end.column=va.end.column,ga=ga.splice(ma,ga.length-ma);var xa=new ca(fa,ga);return fa.splice(fa.indexOf(this)+1,0,xa),xa},ca.prototype.merge=function(ua){for(var da=ua.folds,pa=0;pa<da.length;pa++)this.addFold(da[pa]);var ha=this.foldData;ha.splice(ha.indexOf(ua),1)},ca.prototype.toString=function(){var ua=[this.range.toString()+": ["];return this.folds.forEach(function(da){ua.push("  "+da.toString())}),ua.push("]"),ua.join(`
`)},ca.prototype.idxToPosition=function(ua){for(var da=0,pa=0;pa<this.folds.length;pa++){var ha=this.folds[pa];if(ua-=ha.start.column-da,ua<0)return{row:ha.start.row,column:ha.start.column+ua};if(ua-=ha.placeholder.length,ua<0)return ha.start;da=ha.end.column}return{row:this.end.row,column:this.end.column+ua}},ca}();oa.FoldLine=la}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("./range").Range,la=sa.comparePoints,ca=function(){function ua(){this.ranges=[],this.$bias=1}return ua.prototype.pointIndex=function(da,pa,ha){for(var ga=this.ranges,fa=ha||0;fa<ga.length;fa++){var ma=ga[fa],va=la(da,ma.end);if(!(va>0)){var xa=la(da,ma.start);return va===0?pa&&xa!==0?-fa-2:fa:xa>0||xa===0&&!pa?fa:-fa-1}}return-fa-1},ua.prototype.add=function(da){var pa=!da.isEmpty(),ha=this.pointIndex(da.start,pa);ha<0&&(ha=-ha-1);var ga=this.pointIndex(da.end,pa,ha);return ga<0?ga=-ga-1:ga++,this.ranges.splice(ha,ga-ha,da)},ua.prototype.addList=function(da){for(var pa=[],ha=da.length;ha--;)pa.push.apply(pa,this.add(da[ha]));return pa},ua.prototype.substractPoint=function(da){var pa=this.pointIndex(da);if(pa>=0)return this.ranges.splice(pa,1)},ua.prototype.merge=function(){var da=[],pa=this.ranges;pa=pa.sort(function(va,xa){return la(va.start,xa.start)});for(var ha=pa[0],ga,fa=1;fa<pa.length;fa++){ga=ha,ha=pa[fa];var ma=la(ga.end,ha.start);ma<0||ma==0&&!ga.isEmpty()&&!ha.isEmpty()||(la(ga.end,ha.end)<0&&(ga.end.row=ha.end.row,ga.end.column=ha.end.column),pa.splice(fa,1),da.push(ha),ha=ga,fa--)}return this.ranges=pa,da},ua.prototype.contains=function(da,pa){return this.pointIndex({row:da,column:pa})>=0},ua.prototype.containsPoint=function(da){return this.pointIndex(da)>=0},ua.prototype.rangeAtPoint=function(da){var pa=this.pointIndex(da);if(pa>=0)return this.ranges[pa]},ua.prototype.clipRows=function(da,pa){var ha=this.ranges;if(ha[0].start.row>pa||ha[ha.length-1].start.row<da)return[];var ga=this.pointIndex({row:da,column:0});ga<0&&(ga=-ga-1);var fa=this.pointIndex({row:pa,column:0},ga);fa<0&&(fa=-fa-1);for(var ma=[],va=ga;va<fa;va++)ma.push(ha[va]);return ma},ua.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},ua.prototype.attach=function(da){this.session&&this.detach(),this.session=da,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},ua.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},ua.prototype.$onChange=function(da){for(var pa=da.start,ha=da.end,ga=pa.row,fa=ha.row,ma=this.ranges,va=0,xa=ma.length;va<xa;va++){var ya=ma[va];if(ya.end.row>=ga)break}if(da.action=="insert")for(var Aa=fa-ga,Ca=-pa.column+ha.column;va<xa;va++){var ya=ma[va];if(ya.start.row>ga)break;if(ya.start.row==ga&&ya.start.column>=pa.column&&(ya.start.column==pa.column&&this.$bias<=0||(ya.start.column+=Ca,ya.start.row+=Aa)),ya.end.row==ga&&ya.end.column>=pa.column){if(ya.end.column==pa.column&&this.$bias<0)continue;ya.end.column==pa.column&&Ca>0&&va<xa-1&&ya.end.column>ya.start.column&&ya.end.column==ma[va+1].start.column&&(ya.end.column-=Ca),ya.end.column+=Ca,ya.end.row+=Aa}}else for(var Aa=ga-fa,Ca=pa.column-ha.column;va<xa;va++){var ya=ma[va];if(ya.start.row>fa)break;ya.end.row<fa&&(ga<ya.end.row||ga==ya.end.row&&pa.column<ya.end.column)?(ya.end.row=ga,ya.end.column=pa.column):ya.end.row==fa?ya.end.column<=ha.column?(Aa||ya.end.column>pa.column)&&(ya.end.column=pa.column,ya.end.row=pa.row):(ya.end.column+=Ca,ya.end.row+=Aa):ya.end.row>fa&&(ya.end.row+=Aa),ya.start.row<fa&&(ga<ya.start.row||ga==ya.start.row&&pa.column<ya.start.column)?(ya.start.row=ga,ya.start.column=pa.column):ya.start.row==fa?ya.start.column<=ha.column?(Aa||ya.start.column>pa.column)&&(ya.start.column=pa.column,ya.start.row=pa.row):(ya.start.column+=Ca,ya.start.row+=Aa):ya.start.row>fa&&(ya.start.row+=Aa)}if(Aa!=0&&va<xa)for(;va<xa;va++){var ya=ma[va];ya.start.row+=Aa,ya.end.row+=Aa}},ua}();ca.prototype.comparePoints=la,oa.RangeList=ca}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var ga=function(fa,ma){return ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(va,xa){va.__proto__=xa}||function(va,xa){for(var ya in xa)Object.prototype.hasOwnProperty.call(xa,ya)&&(va[ya]=xa[ya])},ga(fa,ma)};return function(fa,ma){if(typeof ma!="function"&&ma!==null)throw new TypeError("Class extends value "+String(ma)+" is not a constructor or null");ga(fa,ma);function va(){this.constructor=fa}fa.prototype=ma===null?Object.create(ma):(va.prototype=ma.prototype,new va)}}(),la=ra("../range_list").RangeList,ca=function(ga){sa(fa,ga);function fa(ma,va){var xa=ga.call(this)||this;return xa.foldLine=null,xa.placeholder=va,xa.range=ma,xa.start=ma.start,xa.end=ma.end,xa.sameRow=ma.start.row==ma.end.row,xa.subFolds=xa.ranges=[],xa}return fa.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},fa.prototype.setFoldLine=function(ma){this.foldLine=ma,this.subFolds.forEach(function(va){va.setFoldLine(ma)})},fa.prototype.clone=function(){var ma=this.range.clone(),va=new fa(ma,this.placeholder);return this.subFolds.forEach(function(xa){va.subFolds.push(xa.clone())}),va.collapseChildren=this.collapseChildren,va},fa.prototype.addSubFold=function(ma){if(!this.range.isEqual(ma)){da(ma,this.start);for(var Ca=ma.start.row,Sa=ma.start.column,va=0,xa=-1;va<this.subFolds.length&&(xa=this.subFolds[va].range.compare(Ca,Sa),xa==1);va++);var ya=this.subFolds[va],Aa=0;if(xa==0){if(ya.range.containsRange(ma))return ya.addSubFold(ma);Aa=1}for(var Ca=ma.range.end.row,Sa=ma.range.end.column,wa=va,xa=-1;wa<this.subFolds.length&&(xa=this.subFolds[wa].range.compare(Ca,Sa),xa==1);wa++);xa==0&&wa++;for(var ba=this.subFolds.splice(va,wa-va,ma),Ea=xa==0?ba.length-1:ba.length,$a=Aa;$a<Ea;$a++)ma.addSubFold(ba[$a]);return ma.setFoldLine(this.foldLine),ma}},fa.prototype.restoreRange=function(ma){return ha(ma,this.start)},fa}(la);function ua(ga,fa){ga.row-=fa.row,ga.row==0&&(ga.column-=fa.column)}function da(ga,fa){ua(ga.start,fa),ua(ga.end,fa)}function pa(ga,fa){ga.row==0&&(ga.column+=fa.column),ga.row+=fa.row}function ha(ga,fa){pa(ga.start,fa),pa(ga.end,fa)}oa.Fold=ca}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(ra,oa,aa){var sa=ra("../range").Range,la=ra("./fold_line").FoldLine,ca=ra("./fold").Fold,ua=ra("../token_iterator").TokenIterator,da=ra("../mouse/mouse_event").MouseEvent;function pa(){this.getFoldAt=function(ha,ga,fa){var ma=this.getFoldLine(ha);if(!ma)return null;for(var va=ma.folds,xa=0;xa<va.length;xa++){var ya=va[xa].range;if(ya.contains(ha,ga)){if(fa==1&&ya.isEnd(ha,ga)&&!ya.isEmpty())continue;if(fa==-1&&ya.isStart(ha,ga)&&!ya.isEmpty())continue;return va[xa]}}},this.getFoldsInRange=function(ha){var ga=ha.start,fa=ha.end,ma=this.$foldData,va=[];ga.column+=1,fa.column-=1;for(var xa=0;xa<ma.length;xa++){var ya=ma[xa].range.compareRange(ha);if(ya!=2){if(ya==-2)break;for(var Aa=ma[xa].folds,Ca=0;Ca<Aa.length;Ca++){var Sa=Aa[Ca];if(ya=Sa.range.compareRange(ha),ya==-2)break;if(ya==2)continue;if(ya==42)break;va.push(Sa)}}}return ga.column-=1,fa.column+=1,va},this.getFoldsInRangeList=function(ha){if(Array.isArray(ha)){var ga=[];ha.forEach(function(fa){ga=ga.concat(this.getFoldsInRange(fa))},this)}else var ga=this.getFoldsInRange(ha);return ga},this.getAllFolds=function(){for(var ha=[],ga=this.$foldData,fa=0;fa<ga.length;fa++)for(var ma=0;ma<ga[fa].folds.length;ma++)ha.push(ga[fa].folds[ma]);return ha},this.getFoldStringAt=function(ha,ga,fa,ma){if(ma=ma||this.getFoldLine(ha),!ma)return null;for(var va={end:{column:0}},xa,ya,Aa=0;Aa<ma.folds.length;Aa++){ya=ma.folds[Aa];var Ca=ya.range.compareEnd(ha,ga);if(Ca==-1){xa=this.getLine(ya.start.row).substring(va.end.column,ya.start.column);break}else if(Ca===0)return null;va=ya}return xa||(xa=this.getLine(ya.start.row).substring(va.end.column)),fa==-1?xa.substring(0,ga-va.end.column):fa==1?xa.substring(ga-va.end.column):xa},this.getFoldLine=function(ha,ga){var fa=this.$foldData,ma=0;for(ga&&(ma=fa.indexOf(ga)),ma==-1&&(ma=0),ma;ma<fa.length;ma++){var va=fa[ma];if(va.start.row<=ha&&va.end.row>=ha)return va;if(va.end.row>ha)return null}return null},this.getNextFoldLine=function(ha,ga){var fa=this.$foldData,ma=0;for(ga&&(ma=fa.indexOf(ga)),ma==-1&&(ma=0),ma;ma<fa.length;ma++){var va=fa[ma];if(va.end.row>=ha)return va}return null},this.getFoldedRowCount=function(ha,ga){for(var fa=this.$foldData,ma=ga-ha+1,va=0;va<fa.length;va++){var xa=fa[va],ya=xa.end.row,Aa=xa.start.row;if(ya>=ga){Aa<ga&&(Aa>=ha?ma-=ga-Aa:ma=0);break}else ya>=ha&&(Aa>=ha?ma-=ya-Aa:ma-=ya-ha+1)}return ma},this.$addFoldLine=function(ha){return this.$foldData.push(ha),this.$foldData.sort(function(ga,fa){return ga.start.row-fa.start.row}),ha},this.addFold=function(ha,ga){var fa=this.$foldData,ma=!1,va;ha instanceof ca?va=ha:(va=new ca(ga,ha),va.collapseChildren=ga.collapseChildren),this.$clipRangeToDocument(va.range);var xa=va.start.row,ya=va.start.column,Aa=va.end.row,Ca=va.end.column,Sa=this.getFoldAt(xa,ya,1),wa=this.getFoldAt(Aa,Ca,-1);if(Sa&&wa==Sa)return Sa.addSubFold(va);Sa&&!Sa.range.isStart(xa,ya)&&this.removeFold(Sa),wa&&!wa.range.isEnd(Aa,Ca)&&this.removeFold(wa);var ba=this.getFoldsInRange(va.range);ba.length>0&&(this.removeFolds(ba),va.collapseChildren||ba.forEach(function(Ia){va.addSubFold(Ia)}));for(var Ea=0;Ea<fa.length;Ea++){var $a=fa[Ea];if(Aa==$a.start.row){$a.addFold(va),ma=!0;break}else if(xa==$a.end.row){if($a.addFold(va),ma=!0,!va.sameRow){var Ma=fa[Ea+1];if(Ma&&Ma.start.row==Aa){$a.merge(Ma);break}}break}else if(Aa<=$a.start.row)break}return ma||($a=this.$addFoldLine(new la(this.$foldData,va))),this.$useWrapMode?this.$updateWrapData($a.start.row,$a.start.row):this.$updateRowLengthCache($a.start.row,$a.start.row),this.$modified=!0,this._signal("changeFold",{data:va,action:"add"}),va},this.addFolds=function(ha){ha.forEach(function(ga){this.addFold(ga)},this)},this.removeFold=function(ha){var ga=ha.foldLine,fa=ga.start.row,ma=ga.end.row,va=this.$foldData,xa=ga.folds;if(xa.length==1)va.splice(va.indexOf(ga),1);else if(ga.range.isEnd(ha.end.row,ha.end.column))xa.pop(),ga.end.row=xa[xa.length-1].end.row,ga.end.column=xa[xa.length-1].end.column;else if(ga.range.isStart(ha.start.row,ha.start.column))xa.shift(),ga.start.row=xa[0].start.row,ga.start.column=xa[0].start.column;else if(ha.sameRow)xa.splice(xa.indexOf(ha),1);else{var ya=ga.split(ha.start.row,ha.start.column);xa=ya.folds,xa.shift(),ya.start.row=xa[0].start.row,ya.start.column=xa[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(fa,ma):this.$updateRowLengthCache(fa,ma)),this.$modified=!0,this._signal("changeFold",{data:ha,action:"remove"})},this.removeFolds=function(ha){for(var ga=[],fa=0;fa<ha.length;fa++)ga.push(ha[fa]);ga.forEach(function(ma){this.removeFold(ma)},this),this.$modified=!0},this.expandFold=function(ha){this.removeFold(ha),ha.subFolds.forEach(function(ga){ha.restoreRange(ga),this.addFold(ga)},this),ha.collapseChildren>0&&this.foldAll(ha.start.row+1,ha.end.row,ha.collapseChildren-1),ha.subFolds=[]},this.expandFolds=function(ha){ha.forEach(function(ga){this.expandFold(ga)},this)},this.unfold=function(ha,ga){var fa,ma;if(ha==null)fa=new sa(0,0,this.getLength(),0),ga==null&&(ga=!0);else if(typeof ha=="number")fa=new sa(ha,0,ha,this.getLine(ha).length);else if("row"in ha)fa=sa.fromPoints(ha,ha);else{if(Array.isArray(ha))return ma=[],ha.forEach(function(xa){ma=ma.concat(this.unfold(xa))},this),ma;fa=ha}ma=this.getFoldsInRangeList(fa);for(var va=ma;ma.length==1&&sa.comparePoints(ma[0].start,fa.start)<0&&sa.comparePoints(ma[0].end,fa.end)>0;)this.expandFolds(ma),ma=this.getFoldsInRangeList(fa);if(ga!=!1?this.removeFolds(ma):this.expandFolds(ma),va.length)return va},this.isRowFolded=function(ha,ga){return!!this.getFoldLine(ha,ga)},this.getRowFoldEnd=function(ha,ga){var fa=this.getFoldLine(ha,ga);return fa?fa.end.row:ha},this.getRowFoldStart=function(ha,ga){var fa=this.getFoldLine(ha,ga);return fa?fa.start.row:ha},this.getFoldDisplayLine=function(ha,ga,fa,ma,va){ma==null&&(ma=ha.start.row),va==null&&(va=0),ga==null&&(ga=ha.end.row),fa==null&&(fa=this.getLine(ga).length);var xa=this.doc,ya="";return ha.walk(function(Aa,Ca,Sa,wa){if(!(Ca<ma)){if(Ca==ma){if(Sa<va)return;wa=Math.max(va,wa)}Aa!=null?ya+=Aa:ya+=xa.getLine(Ca).substring(wa,Sa)}},ga,fa),ya},this.getDisplayLine=function(ha,ga,fa,ma){var va=this.getFoldLine(ha);if(va)return this.getFoldDisplayLine(va,ha,ga,fa,ma);var xa;return xa=this.doc.getLine(ha),xa.substring(ma||0,ga||xa.length)},this.$cloneFoldData=function(){var ha=[];return ha=this.$foldData.map(function(ga){var fa=ga.folds.map(function(ma){return ma.clone()});return new la(ha,fa)}),ha},this.toggleFold=function(ha){var ga=this.selection,fa=ga.getRange(),ma,va;if(fa.isEmpty()){var xa=fa.start;if(ma=this.getFoldAt(xa.row,xa.column),ma){this.expandFold(ma);return}else(va=this.findMatchingBracket(xa))?fa.comparePoint(va)==1?fa.end=va:(fa.start=va,fa.start.column++,fa.end.column--):(va=this.findMatchingBracket({row:xa.row,column:xa.column+1}))?(fa.comparePoint(va)==1?fa.end=va:fa.start=va,fa.start.column++):fa=this.getCommentFoldRange(xa.row,xa.column)||fa}else{var ya=this.getFoldsInRange(fa);if(ha&&ya.length){this.expandFolds(ya);return}else ya.length==1&&(ma=ya[0])}if(ma||(ma=this.getFoldAt(fa.start.row,fa.start.column)),ma&&ma.range.toString()==fa.toString()){this.expandFold(ma);return}var Aa="...";if(!fa.isMultiLine()){if(Aa=this.getTextRange(fa),Aa.length<4)return;Aa=Aa.trim().substring(0,2)+".."}this.addFold(Aa,fa)},this.getCommentFoldRange=function(ha,ga,fa){var ma=new ua(this,ha,ga),va=ma.getCurrentToken(),xa=va&&va.type;if(va&&/^comment|string/.test(xa)){xa=xa.match(/comment|string/)[0],xa=="comment"&&(xa+="|doc-start|\\.doc");var ya=new RegExp(xa),Aa=new sa;if(fa!=1){do va=ma.stepBackward();while(va&&ya.test(va.type));va=ma.stepForward()}Aa.start.row=ma.getCurrentTokenRow(),Aa.start.column=ma.getCurrentTokenColumn()+va.value.length,ma=new ua(this,ha,ga);var Ca=this.getState(ma.$row);if(fa!=-1){var Sa=-1;do if(va=ma.stepForward(),Sa==-1){var wa=this.getState(ma.$row);Ca.toString()!==wa.toString()&&(Sa=ma.$row)}else if(ma.$row>Sa)break;while(va&&ya.test(va.type));va=ma.stepBackward()}else va=ma.getCurrentToken();return Aa.end.row=ma.getCurrentTokenRow(),Aa.end.column=ma.getCurrentTokenColumn(),Aa}},this.foldAll=function(ha,ga,fa,ma){fa==null&&(fa=1e5);var va=this.foldWidgets;if(va){ga=ga||this.getLength(),ha=ha||0;for(var xa=ha;xa<ga;xa++)if(va[xa]==null&&(va[xa]=this.getFoldWidget(xa)),va[xa]=="start"&&!(ma&&!ma(xa))){var ya=this.getFoldWidgetRange(xa);ya&&ya.isMultiLine()&&ya.end.row<=ga&&ya.start.row>=ha&&(xa=ya.end.row,ya.collapseChildren=fa,this.addFold("...",ya))}}},this.foldToLevel=function(ha){for(this.foldAll();ha-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var ha=this;this.foldAll(null,null,null,function(ga){for(var fa=ha.getTokens(ga),ma=0;ma<fa.length;ma++){var va=fa[ma];if(!(va.type=="text"&&/^\s+$/.test(va.value)))return!!/comment/.test(va.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(ha){if(!this.$foldStyles[ha])throw new Error("invalid fold style: "+ha+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=ha){this.$foldStyle=ha,ha=="manual"&&this.unfold();var ga=this.$foldMode;this.$setFolding(null),this.$setFolding(ga)}},this.$setFolding=function(ha){if(this.$foldMode!=ha){if(this.$foldMode=ha,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!ha||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=ha.getFoldWidget.bind(ha,this,this.$foldStyle),this.getFoldWidgetRange=ha.getFoldWidgetRange.bind(ha,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(ha,ga){var fa=this.foldWidgets;if(!fa||ga&&fa[ha])return{};for(var ma=ha-1,va;ma>=0;){var xa=fa[ma];if(xa==null&&(xa=fa[ma]=this.getFoldWidget(ma)),xa=="start"){var ya=this.getFoldWidgetRange(ma);if(va||(va=ya),ya&&ya.end.row>=ha)break}ma--}return{range:ma!==-1&&ya,firstRange:va}},this.onFoldWidgetClick=function(ha,ga){ga instanceof da&&(ga=ga.domEvent);var fa={children:ga.shiftKey,all:ga.ctrlKey||ga.metaKey,siblings:ga.altKey},ma=this.$toggleFoldWidget(ha,fa);if(!ma){var va=ga.target||ga.srcElement;va&&/ace_fold-widget/.test(va.className)&&(va.className+=" ace_invalid")}},this.$toggleFoldWidget=function(ha,ga){if(this.getFoldWidget){var fa=this.getFoldWidget(ha),ma=this.getLine(ha),va=fa==="end"?-1:1,xa=this.getFoldAt(ha,va===-1?0:ma.length,va);if(xa)return ga.children||ga.all?this.removeFold(xa):this.expandFold(xa),xa;var ya=this.getFoldWidgetRange(ha,!0);if(ya&&!ya.isMultiLine()&&(xa=this.getFoldAt(ya.start.row,ya.start.column,1),xa&&ya.isEqual(xa.range)))return this.removeFold(xa),xa;if(ga.siblings){var Aa=this.getParentFoldRangeData(ha);if(Aa.range)var Ca=Aa.range.start.row+1,Sa=Aa.range.end.row;this.foldAll(Ca,Sa,ga.all?1e4:0)}else ga.children?(Sa=ya?ya.end.row:this.getLength(),this.foldAll(ha+1,Sa,ga.all?1e4:0)):ya&&(ga.all&&(ya.collapseChildren=1e4),this.addFold("...",ya));return ya}},this.toggleFoldWidget=function(ha){var ga=this.selection.getCursor().row;ga=this.getRowFoldStart(ga);var fa=this.$toggleFoldWidget(ga,{});if(!fa){var ma=this.getParentFoldRangeData(ga,!0);if(fa=ma.range||ma.firstRange,fa){ga=fa.start.row;var va=this.getFoldAt(ga,this.getLine(ga).length,1);va?this.removeFold(va):this.addFold("...",fa)}}},this.updateFoldWidgets=function(ha){var ga=ha.start.row,fa=ha.end.row-ga;if(fa===0)this.foldWidgets[ga]=null;else if(ha.action=="remove")this.foldWidgets.splice(ga,fa+1,null);else{var ma=Array(fa+1);ma.unshift(ga,1),this.foldWidgets.splice.apply(this.foldWidgets,ma)}},this.tokenizerUpdateFoldWidgets=function(ha){var ga=ha.data;ga.first!=ga.last&&this.foldWidgets.length>ga.first&&this.foldWidgets.splice(ga.first,this.foldWidgets.length)}}oa.Folding=pa}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(ra,oa,aa){var sa=ra("../token_iterator").TokenIterator,la=ra("../range").Range;function ca(){this.findMatchingBracket=function(ua,da){if(ua.column==0)return null;var pa=da||this.getLine(ua.row).charAt(ua.column-1);if(pa=="")return null;var ha=pa.match(/([\(\[\{])|([\)\]\}])/);return ha?ha[1]?this.$findClosingBracket(ha[1],ua):this.$findOpeningBracket(ha[2],ua):null},this.getBracketRange=function(ua){var da=this.getLine(ua.row),pa=!0,ha,ga=da.charAt(ua.column-1),fa=ga&&ga.match(/([\(\[\{])|([\)\]\}])/);if(fa||(ga=da.charAt(ua.column),ua={row:ua.row,column:ua.column+1},fa=ga&&ga.match(/([\(\[\{])|([\)\]\}])/),pa=!1),!fa)return null;if(fa[1]){var ma=this.$findClosingBracket(fa[1],ua);if(!ma)return null;ha=la.fromPoints(ua,ma),pa||(ha.end.column++,ha.start.column--),ha.cursor=ha.end}else{var ma=this.$findOpeningBracket(fa[2],ua);if(!ma)return null;ha=la.fromPoints(ma,ua),pa||(ha.start.column++,ha.end.column--),ha.cursor=ha.start}return ha},this.getMatchingBracketRanges=function(ua,da){var pa=this.getLine(ua.row),ha=/([\(\[\{])|([\)\]\}])/,ga=!da&&pa.charAt(ua.column-1),fa=ga&&ga.match(ha);if(fa||(ga=(da===void 0||da)&&pa.charAt(ua.column),ua={row:ua.row,column:ua.column+1},fa=ga&&ga.match(ha)),!fa)return null;var ma=new la(ua.row,ua.column-1,ua.row,ua.column),va=fa[1]?this.$findClosingBracket(fa[1],ua):this.$findOpeningBracket(fa[2],ua);if(!va)return[ma];var xa=new la(va.row,va.column,va.row,va.column+1);return[ma,xa]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(ua,da,pa){var ha=this.$brackets[ua],ga=1,fa=new sa(this,da.row,da.column),ma=fa.getCurrentToken();if(ma||(ma=fa.stepForward()),!!ma){pa||(pa=new RegExp("(\\.?"+ma.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var va=da.column-fa.getCurrentTokenColumn()-2,xa=ma.value;;){for(;va>=0;){var ya=xa.charAt(va);if(ya==ha){if(ga-=1,ga==0)return{row:fa.getCurrentTokenRow(),column:va+fa.getCurrentTokenColumn()}}else ya==ua&&(ga+=1);va-=1}do ma=fa.stepBackward();while(ma&&!pa.test(ma.type));if(ma==null)break;xa=ma.value,va=xa.length-1}return null}},this.$findClosingBracket=function(ua,da,pa){var ha=this.$brackets[ua],ga=1,fa=new sa(this,da.row,da.column),ma=fa.getCurrentToken();if(ma||(ma=fa.stepForward()),!!ma){pa||(pa=new RegExp("(\\.?"+ma.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var va=da.column-fa.getCurrentTokenColumn();;){for(var xa=ma.value,ya=xa.length;va<ya;){var Aa=xa.charAt(va);if(Aa==ha){if(ga-=1,ga==0)return{row:fa.getCurrentTokenRow(),column:va+fa.getCurrentTokenColumn()}}else Aa==ua&&(ga+=1);va+=1}do ma=fa.stepForward();while(ma&&!pa.test(ma.type));if(ma==null)break;va=0}return null}},this.getMatchingTags=function(ua){var da=new sa(this,ua.row,ua.column),pa=this.$findTagName(da);if(pa){var ha=da.stepBackward();return ha.value==="<"?this.$findClosingTag(da,pa):this.$findOpeningTag(da,pa)}},this.$findTagName=function(ua){var da=ua.getCurrentToken(),pa=!1,ha=!1;if(da&&da.type.indexOf("tag-name")===-1)do ha?da=ua.stepBackward():da=ua.stepForward(),da&&(da.value==="/>"?ha=!0:da.type.indexOf("tag-name")!==-1&&(pa=!0));while(da&&!pa);return da},this.$findClosingTag=function(ua,da){var pa,ha=da.value,ga=da.value,fa=0,ma=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);da=ua.stepForward();var va=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+da.value.length),xa=!1;do{if(pa=da,pa.type.indexOf("tag-close")!==-1&&!xa){var ya=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);xa=!0}if(da=ua.stepForward(),da){if(da.value===">"&&!xa){var ya=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);xa=!0}if(da.type.indexOf("tag-name")!==-1){if(ha=da.value,ga===ha){if(pa.value==="<")fa++;else if(pa.value==="</"&&(fa--,fa<0)){ua.stepBackward();var Aa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+2);da=ua.stepForward();var Ca=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+da.value.length);if(da.type.indexOf("tag-close")===-1&&(da=ua.stepForward()),da&&da.value===">")var Sa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);else return}}}else if(ga===ha&&da.value==="/>"&&(fa--,fa<0))var Aa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+2),Ca=Aa,Sa=Ca,ya=new la(va.end.row,va.end.column,va.end.row,va.end.column+1)}}while(da&&fa>=0);if(ma&&ya&&Aa&&Sa&&va&&Ca)return{openTag:new la(ma.start.row,ma.start.column,ya.end.row,ya.end.column),closeTag:new la(Aa.start.row,Aa.start.column,Sa.end.row,Sa.end.column),openTagName:va,closeTagName:Ca}},this.$findOpeningTag=function(ua,da){var pa=ua.getCurrentToken(),ha=da.value,ga=0,fa=ua.getCurrentTokenRow(),ma=ua.getCurrentTokenColumn(),va=ma+2,xa=new la(fa,ma,fa,va);ua.stepForward();var ya=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+da.value.length);if(da.type.indexOf("tag-close")===-1&&(da=ua.stepForward()),!(!da||da.value!==">")){var Aa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);ua.stepBackward(),ua.stepBackward();do if(da=pa,fa=ua.getCurrentTokenRow(),ma=ua.getCurrentTokenColumn(),va=ma+da.value.length,pa=ua.stepBackward(),da){if(da.type.indexOf("tag-name")!==-1){if(ha===da.value)if(pa.value==="<"){if(ga++,ga>0){var Ca=new la(fa,ma,fa,va),Sa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1);do da=ua.stepForward();while(da&&da.value!==">");var wa=new la(ua.getCurrentTokenRow(),ua.getCurrentTokenColumn(),ua.getCurrentTokenRow(),ua.getCurrentTokenColumn()+1)}}else pa.value==="</"&&ga--}else if(da.value==="/>"){for(var ba=0,Ea=pa;Ea;){if(Ea.type.indexOf("tag-name")!==-1&&Ea.value===ha){ga--;break}else if(Ea.value==="<")break;Ea=ua.stepBackward(),ba++}for(var $a=0;$a<ba;$a++)ua.stepForward()}}while(pa&&ga<=0);if(Sa&&wa&&xa&&Aa&&Ca&&ya)return{openTag:new la(Sa.start.row,Sa.start.column,wa.end.row,wa.end.column),closeTag:new la(xa.start.row,xa.start.column,Aa.end.row,Aa.end.column),openTagName:Ca,closeTagName:ya}}}}oa.BracketMatch=ca}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./lib/lang"),ca=ra("./bidihandler").BidiHandler,ua=ra("./config"),da=ra("./lib/event_emitter").EventEmitter,pa=ra("./selection").Selection,ha=ra("./mode/text").Mode,ga=ra("./range").Range,fa=ra("./line_widgets").LineWidgets,ma=ra("./document").Document,va=ra("./background_tokenizer").BackgroundTokenizer,xa=ra("./search_highlight").SearchHighlight,ya=ra("./undomanager").UndoManager,Aa=function(){function Da(Ta,_a){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++Da.$uid,this.$foldData.toString=function(){return this.join(`
`)},this.bgTokenizer=new va(new ha().getTokenizer(),this);var La=this;this.bgTokenizer.on("update",function(Na){La._signal("tokenizerUpdate",Na)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof Ta!="object"||!Ta.getLine)&&(Ta=new ma(Ta)),this.setDocument(Ta),this.selection=new pa(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new ca(this),ua.resetOptions(this),this.setMode(_a),ua._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return Da.prototype.$initOperationListeners=function(){var Ta=this;this.curOp=null,this.on("change",function(){Ta.curOp||(Ta.startOperation(),Ta.curOp.selectionBefore=Ta.$lastSel),Ta.curOp.docChanged=!0},!0),this.on("changeSelection",function(){Ta.curOp||(Ta.startOperation(),Ta.curOp.selectionBefore=Ta.$lastSel),Ta.curOp.selectionChanged=!0},!0),this.$operationResetTimer=la.delayedCall(this.endOperation.bind(this,!0))},Da.prototype.startOperation=function(Ta){if(this.curOp){if(!Ta||this.curOp.command)return;this.prevOp=this.curOp}Ta||(Ta={}),this.$operationResetTimer.schedule(),this.curOp={command:Ta.command||{},args:Ta.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",Ta)},Da.prototype.endOperation=function(Ta){if(this.curOp){if(Ta&&Ta.returnValue===!1){this.curOp=null,this._signal("endOperation",Ta);return}if(Ta==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var _a=this.selection.toJSON();this.curOp.selectionAfter=_a,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(_a),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",Ta)}},Da.prototype.setDocument=function(Ta){this.doc&&this.doc.off("change",this.$onChange),this.doc=Ta,Ta.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},Da.prototype.getDocument=function(){return this.doc},Object.defineProperty(Da.prototype,"widgetManager",{get:function(){var Ta=new fa(this);return this.widgetManager=Ta,this.$editor&&Ta.attach(this.$editor),Ta},set:function(Ta){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:Ta})},enumerable:!1,configurable:!0}),Da.prototype.$resetRowCache=function(Ta){if(!Ta){this.$docRowCache=[],this.$screenRowCache=[];return}var _a=this.$docRowCache.length,La=this.$getRowCacheIndex(this.$docRowCache,Ta)+1;_a>La&&(this.$docRowCache.splice(La,_a),this.$screenRowCache.splice(La,_a))},Da.prototype.$getRowCacheIndex=function(Ta,_a){for(var La=0,Na=Ta.length-1;La<=Na;){var za=La+Na>>1,Fa=Ta[za];if(_a>Fa)La=za+1;else if(_a<Fa)Na=za-1;else return za}return La-1},Da.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},Da.prototype.onChangeFold=function(Ta){var _a=Ta.data;this.$resetRowCache(_a.start.row)},Da.prototype.onChange=function(Ta){this.$modified=!0,this.$bidiHandler.onChange(Ta),this.$resetRowCache(Ta.start.row);var _a=this.$updateInternalDataOnChange(Ta);!this.$fromUndo&&this.$undoManager&&(_a&&_a.length&&(this.$undoManager.add({action:"removeFolds",folds:_a},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(Ta,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(Ta),this._signal("change",Ta)},Da.prototype.onSelectionChange=function(){this._signal("changeSelection")},Da.prototype.setValue=function(Ta){this.doc.setValue(Ta),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},Da.fromJSON=function(Ta){typeof Ta=="string"&&(Ta=JSON.parse(Ta));var _a=new ya;_a.$undoStack=Ta.history.undo,_a.$redoStack=Ta.history.redo,_a.mark=Ta.history.mark,_a.$rev=Ta.history.rev;var La=new Da(Ta.value);return Ta.folds.forEach(function(Na){La.addFold("...",ga.fromPoints(Na.start,Na.end))}),La.setAnnotations(Ta.annotations),La.setBreakpoints(Ta.breakpoints),La.setMode(Ta.mode),La.setScrollLeft(Ta.scrollLeft),La.setScrollTop(Ta.scrollTop),La.setUndoManager(_a),La.selection.fromJSON(Ta.selection),La},Da.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(Ta){return Ta.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},Da.prototype.toString=function(){return this.doc.getValue()},Da.prototype.getSelection=function(){return this.selection},Da.prototype.getState=function(Ta){return this.bgTokenizer.getState(Ta)},Da.prototype.getTokens=function(Ta){return this.bgTokenizer.getTokens(Ta)},Da.prototype.getTokenAt=function(Ta,_a){var La=this.bgTokenizer.getTokens(Ta),Na,za=0;if(_a==null){var Fa=La.length-1;za=this.getLine(Ta).length}else for(var Fa=0;Fa<La.length&&(za+=La[Fa].value.length,!(za>=_a));Fa++);return Na=La[Fa],Na?(Na.index=Fa,Na.start=za-Na.value.length,Na):null},Da.prototype.setUndoManager=function(Ta){if(this.$undoManager=Ta,this.$informUndoManager&&this.$informUndoManager.cancel(),Ta){var _a=this;Ta.addSession(this),this.$syncInformUndoManager=function(){_a.$informUndoManager.cancel(),_a.mergeUndoDeltas=!1},this.$informUndoManager=la.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},Da.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},Da.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},Da.prototype.getTabString=function(){return this.getUseSoftTabs()?la.stringRepeat(" ",this.getTabSize()):"	"},Da.prototype.setUseSoftTabs=function(Ta){this.setOption("useSoftTabs",Ta)},Da.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},Da.prototype.setTabSize=function(Ta){this.setOption("tabSize",Ta)},Da.prototype.getTabSize=function(){return this.$tabSize},Da.prototype.isTabStop=function(Ta){return this.$useSoftTabs&&Ta.column%this.$tabSize===0},Da.prototype.setNavigateWithinSoftTabs=function(Ta){this.setOption("navigateWithinSoftTabs",Ta)},Da.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},Da.prototype.setOverwrite=function(Ta){this.setOption("overwrite",Ta)},Da.prototype.getOverwrite=function(){return this.$overwrite},Da.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},Da.prototype.addGutterDecoration=function(Ta,_a){this.$decorations[Ta]||(this.$decorations[Ta]=""),this.$decorations[Ta]+=" "+_a,this._signal("changeBreakpoint",{})},Da.prototype.removeGutterDecoration=function(Ta,_a){this.$decorations[Ta]=(this.$decorations[Ta]||"").replace(" "+_a,""),this._signal("changeBreakpoint",{})},Da.prototype.getBreakpoints=function(){return this.$breakpoints},Da.prototype.setBreakpoints=function(Ta){this.$breakpoints=[];for(var _a=0;_a<Ta.length;_a++)this.$breakpoints[Ta[_a]]="ace_breakpoint";this._signal("changeBreakpoint",{})},Da.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},Da.prototype.setBreakpoint=function(Ta,_a){_a===void 0&&(_a="ace_breakpoint"),_a?this.$breakpoints[Ta]=_a:delete this.$breakpoints[Ta],this._signal("changeBreakpoint",{})},Da.prototype.clearBreakpoint=function(Ta){delete this.$breakpoints[Ta],this._signal("changeBreakpoint",{})},Da.prototype.addMarker=function(Ta,_a,La,Na){var za=this.$markerId++,Fa={range:Ta,type:La||"line",renderer:typeof La=="function"?La:null,clazz:_a,inFront:!!Na,id:za};return Na?(this.$frontMarkers[za]=Fa,this._signal("changeFrontMarker")):(this.$backMarkers[za]=Fa,this._signal("changeBackMarker")),za},Da.prototype.addDynamicMarker=function(Ta,_a){if(Ta.update){var La=this.$markerId++;return Ta.id=La,Ta.inFront=!!_a,_a?(this.$frontMarkers[La]=Ta,this._signal("changeFrontMarker")):(this.$backMarkers[La]=Ta,this._signal("changeBackMarker")),Ta}},Da.prototype.removeMarker=function(Ta){var _a=this.$frontMarkers[Ta]||this.$backMarkers[Ta];if(_a){var La=_a.inFront?this.$frontMarkers:this.$backMarkers;delete La[Ta],this._signal(_a.inFront?"changeFrontMarker":"changeBackMarker")}},Da.prototype.getMarkers=function(Ta){return Ta?this.$frontMarkers:this.$backMarkers},Da.prototype.highlight=function(Ta){if(!this.$searchHighlight){var _a=new xa(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_a)}this.$searchHighlight.setRegexp(Ta)},Da.prototype.highlightLines=function(Ta,_a,La,Na){typeof _a!="number"&&(La=_a,_a=Ta),La||(La="ace_step");var za=new ga(Ta,0,_a,1/0);return za.id=this.addMarker(za,La,"fullLine",Na),za},Da.prototype.setAnnotations=function(Ta){this.$annotations=Ta,this._signal("changeAnnotation",{})},Da.prototype.getAnnotations=function(){return this.$annotations||[]},Da.prototype.clearAnnotations=function(){this.setAnnotations([])},Da.prototype.$detectNewLine=function(Ta){var _a=Ta.match(/^.*?(\r?\n)/m);_a?this.$autoNewLine=_a[1]:this.$autoNewLine=`
`},Da.prototype.getWordRange=function(Ta,_a){var La=this.getLine(Ta),Na=!1;if(_a>0&&(Na=!!La.charAt(_a-1).match(this.tokenRe)),Na||(Na=!!La.charAt(_a).match(this.tokenRe)),Na)var za=this.tokenRe;else if(/^\s+$/.test(La.slice(_a-1,_a+1)))var za=/\s/;else var za=this.nonTokenRe;var Fa=_a;if(Fa>0){do Fa--;while(Fa>=0&&La.charAt(Fa).match(za));Fa++}for(var Ha=_a;Ha<La.length&&La.charAt(Ha).match(za);)Ha++;return new ga(Ta,Fa,Ta,Ha)},Da.prototype.getAWordRange=function(Ta,_a){for(var La=this.getWordRange(Ta,_a),Na=this.getLine(La.end.row);Na.charAt(La.end.column).match(/[ \t]/);)La.end.column+=1;return La},Da.prototype.setNewLineMode=function(Ta){this.doc.setNewLineMode(Ta)},Da.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},Da.prototype.setUseWorker=function(Ta){this.setOption("useWorker",Ta)},Da.prototype.getUseWorker=function(){return this.$useWorker},Da.prototype.onReloadTokenizer=function(Ta){var _a=Ta.data;this.bgTokenizer.start(_a.first),this._signal("tokenizerUpdate",Ta)},Da.prototype.setMode=function(Ta,_a){if(Ta&&typeof Ta=="object"){if(Ta.getTokenizer)return this.$onChangeMode(Ta);var La=Ta,Na=La.path}else Na=Ta||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new ha),this.$modes[Na]&&!La){this.$onChangeMode(this.$modes[Na]),_a&&_a();return}this.$modeId=Na,ua.loadModule(["mode",Na],function(za){if(!this.destroyed){if(this.$modeId!==Na)return _a&&_a();this.$modes[Na]&&!La?this.$onChangeMode(this.$modes[Na]):za&&za.Mode&&(za=new za.Mode(La),La||(this.$modes[Na]=za,za.$id=Na),this.$onChangeMode(za)),_a&&_a()}}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},Da.prototype.$onChangeMode=function(Ta,_a){if(_a||(this.$modeId=Ta.$id),this.$mode!==Ta){var La=this.$mode;this.$mode=Ta,this.$stopWorker(),this.$useWorker&&this.$startWorker();var Na=Ta.getTokenizer();if(Na.on!==void 0){var za=this.onReloadTokenizer.bind(this);Na.on("update",za)}this.bgTokenizer.setTokenizer(Na),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=Ta.tokenRe,this.nonTokenRe=Ta.nonTokenRe,_a||(Ta.attachToSession&&Ta.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(Ta.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:La,mode:Ta}))}},Da.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},Da.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(Ta){ua.warn("Could not load worker",Ta),this.$worker=null}},Da.prototype.getMode=function(){return this.$mode},Da.prototype.setScrollTop=function(Ta){this.$scrollTop===Ta||isNaN(Ta)||(this.$scrollTop=Ta,this._signal("changeScrollTop",Ta))},Da.prototype.getScrollTop=function(){return this.$scrollTop},Da.prototype.setScrollLeft=function(Ta){this.$scrollLeft===Ta||isNaN(Ta)||(this.$scrollLeft=Ta,this._signal("changeScrollLeft",Ta))},Da.prototype.getScrollLeft=function(){return this.$scrollLeft},Da.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},Da.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var Ta=0;return this.lineWidgets.forEach(function(_a){_a&&_a.screenWidth>Ta&&(Ta=_a.screenWidth)}),this.lineWidgetWidth=Ta},Da.prototype.$computeWidth=function(Ta){if(this.$modified||Ta){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _a=this.doc.getAllLines(),La=this.$rowLengthCache,Na=0,za=0,Fa=this.$foldData[za],Ha=Fa?Fa.start.row:1/0,Va=_a.length,Ua=0;Ua<Va;Ua++){if(Ua>Ha){if(Ua=Fa.end.row+1,Ua>=Va)break;Fa=this.$foldData[za++],Ha=Fa?Fa.start.row:1/0}La[Ua]==null&&(La[Ua]=this.$getStringScreenWidth(_a[Ua])[0]),La[Ua]>Na&&(Na=La[Ua])}this.screenWidth=Na}},Da.prototype.getLine=function(Ta){return this.doc.getLine(Ta)},Da.prototype.getLines=function(Ta,_a){return this.doc.getLines(Ta,_a)},Da.prototype.getLength=function(){return this.doc.getLength()},Da.prototype.getTextRange=function(Ta){return this.doc.getTextRange(Ta||this.selection.getRange())},Da.prototype.insert=function(Ta,_a){return this.doc.insert(Ta,_a)},Da.prototype.remove=function(Ta){return this.doc.remove(Ta)},Da.prototype.removeFullLines=function(Ta,_a){return this.doc.removeFullLines(Ta,_a)},Da.prototype.undoChanges=function(Ta,_a){if(Ta.length){this.$fromUndo=!0;for(var La=Ta.length-1;La!=-1;La--){var Na=Ta[La];Na.action=="insert"||Na.action=="remove"?this.doc.revertDelta(Na):Na.folds&&this.addFolds(Na.folds)}!_a&&this.$undoSelect&&(Ta.selectionBefore?this.selection.fromJSON(Ta.selectionBefore):this.selection.setRange(this.$getUndoSelection(Ta,!0))),this.$fromUndo=!1}},Da.prototype.redoChanges=function(Ta,_a){if(Ta.length){this.$fromUndo=!0;for(var La=0;La<Ta.length;La++){var Na=Ta[La];(Na.action=="insert"||Na.action=="remove")&&this.doc.$safeApplyDelta(Na)}!_a&&this.$undoSelect&&(Ta.selectionAfter?this.selection.fromJSON(Ta.selectionAfter):this.selection.setRange(this.$getUndoSelection(Ta,!1))),this.$fromUndo=!1}},Da.prototype.setUndoSelect=function(Ta){this.$undoSelect=Ta},Da.prototype.$getUndoSelection=function(Ta,_a){function La(Va){return _a?Va.action!=="insert":Va.action==="insert"}for(var Na,za,Fa=0;Fa<Ta.length;Fa++){var Ha=Ta[Fa];if(Ha.start){if(!Na){La(Ha)?Na=ga.fromPoints(Ha.start,Ha.end):Na=ga.fromPoints(Ha.start,Ha.start);continue}La(Ha)?(za=Ha.start,Na.compare(za.row,za.column)==-1&&Na.setStart(za),za=Ha.end,Na.compare(za.row,za.column)==1&&Na.setEnd(za)):(za=Ha.start,Na.compare(za.row,za.column)==-1&&(Na=ga.fromPoints(Ha.start,Ha.start)))}}return Na},Da.prototype.replace=function(Ta,_a){return this.doc.replace(Ta,_a)},Da.prototype.moveText=function(Ta,_a,La){var Na=this.getTextRange(Ta),za=this.getFoldsInRange(Ta),Fa=ga.fromPoints(_a,_a);if(!La){this.remove(Ta);var Ha=Ta.start.row-Ta.end.row,Va=Ha?-Ta.end.column:Ta.start.column-Ta.end.column;Va&&(Fa.start.row==Ta.end.row&&Fa.start.column>Ta.end.column&&(Fa.start.column+=Va),Fa.end.row==Ta.end.row&&Fa.end.column>Ta.end.column&&(Fa.end.column+=Va)),Ha&&Fa.start.row>=Ta.end.row&&(Fa.start.row+=Ha,Fa.end.row+=Ha)}if(Fa.end=this.insert(Fa.start,Na),za.length){var Ua=Ta.start,Qa=Fa.start,Ha=Qa.row-Ua.row,Va=Qa.column-Ua.column;this.addFolds(za.map(function(Xa){return Xa=Xa.clone(),Xa.start.row==Ua.row&&(Xa.start.column+=Va),Xa.end.row==Ua.row&&(Xa.end.column+=Va),Xa.start.row+=Ha,Xa.end.row+=Ha,Xa}))}return Fa},Da.prototype.indentRows=function(Ta,_a,La){La=La.replace(/\t/g,this.getTabString());for(var Na=Ta;Na<=_a;Na++)this.doc.insertInLine({row:Na,column:0},La)},Da.prototype.outdentRows=function(Ta){for(var _a=Ta.collapseRows(),La=new ga(0,0,0,0),Na=this.getTabSize(),za=_a.start.row;za<=_a.end.row;++za){var Fa=this.getLine(za);La.start.row=za,La.end.row=za;for(var Ha=0;Ha<Na&&Fa.charAt(Ha)==" ";++Ha);Ha<Na&&Fa.charAt(Ha)=="	"?(La.start.column=Ha,La.end.column=Ha+1):(La.start.column=0,La.end.column=Ha),this.remove(La)}},Da.prototype.$moveLines=function(Ta,_a,La){if(Ta=this.getRowFoldStart(Ta),_a=this.getRowFoldEnd(_a),La<0){var Na=this.getRowFoldStart(Ta+La);if(Na<0)return 0;var za=Na-Ta}else if(La>0){var Na=this.getRowFoldEnd(_a+La);if(Na>this.doc.getLength()-1)return 0;var za=Na-_a}else{Ta=this.$clipRowToDocument(Ta),_a=this.$clipRowToDocument(_a);var za=_a-Ta+1}var Fa=new ga(Ta,0,_a,Number.MAX_VALUE),Ha=this.getFoldsInRange(Fa).map(function(Ua){return Ua=Ua.clone(),Ua.start.row+=za,Ua.end.row+=za,Ua}),Va=La==0?this.doc.getLines(Ta,_a):this.doc.removeFullLines(Ta,_a);return this.doc.insertFullLines(Ta+za,Va),Ha.length&&this.addFolds(Ha),za},Da.prototype.moveLinesUp=function(Ta,_a){return this.$moveLines(Ta,_a,-1)},Da.prototype.moveLinesDown=function(Ta,_a){return this.$moveLines(Ta,_a,1)},Da.prototype.duplicateLines=function(Ta,_a){return this.$moveLines(Ta,_a,0)},Da.prototype.$clipRowToDocument=function(Ta){return Math.max(0,Math.min(Ta,this.doc.getLength()-1))},Da.prototype.$clipColumnToRow=function(Ta,_a){return _a<0?0:Math.min(this.doc.getLine(Ta).length,_a)},Da.prototype.$clipPositionToDocument=function(Ta,_a){if(_a=Math.max(0,_a),Ta<0)Ta=0,_a=0;else{var La=this.doc.getLength();Ta>=La?(Ta=La-1,_a=this.doc.getLine(La-1).length):_a=Math.min(this.doc.getLine(Ta).length,_a)}return{row:Ta,column:_a}},Da.prototype.$clipRangeToDocument=function(Ta){Ta.start.row<0?(Ta.start.row=0,Ta.start.column=0):Ta.start.column=this.$clipColumnToRow(Ta.start.row,Ta.start.column);var _a=this.doc.getLength()-1;return Ta.end.row>_a?(Ta.end.row=_a,Ta.end.column=this.doc.getLine(_a).length):Ta.end.column=this.$clipColumnToRow(Ta.end.row,Ta.end.column),Ta},Da.prototype.setUseWrapMode=function(Ta){if(Ta!=this.$useWrapMode){if(this.$useWrapMode=Ta,this.$modified=!0,this.$resetRowCache(0),Ta){var _a=this.getLength();this.$wrapData=Array(_a),this.$updateWrapData(0,_a-1)}this._signal("changeWrapMode")}},Da.prototype.getUseWrapMode=function(){return this.$useWrapMode},Da.prototype.setWrapLimitRange=function(Ta,_a){(this.$wrapLimitRange.min!==Ta||this.$wrapLimitRange.max!==_a)&&(this.$wrapLimitRange={min:Ta,max:_a},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},Da.prototype.adjustWrapLimit=function(Ta,_a){var La=this.$wrapLimitRange;La.max<0&&(La={min:_a,max:_a});var Na=this.$constrainWrapLimit(Ta,La.min,La.max);return Na!=this.$wrapLimit&&Na>1?(this.$wrapLimit=Na,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},Da.prototype.$constrainWrapLimit=function(Ta,_a,La){return _a&&(Ta=Math.max(_a,Ta)),La&&(Ta=Math.min(La,Ta)),Ta},Da.prototype.getWrapLimit=function(){return this.$wrapLimit},Da.prototype.setWrapLimit=function(Ta){this.setWrapLimitRange(Ta,Ta)},Da.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},Da.prototype.$updateInternalDataOnChange=function(Ta){var _a=this.$useWrapMode,La=Ta.action,Na=Ta.start,za=Ta.end,Fa=Na.row,Ha=za.row,Va=Ha-Fa,Ua=null;if(this.$updating=!0,Va!=0)if(La==="remove"){this[_a?"$wrapData":"$rowLengthCache"].splice(Fa,Va);var Qa=this.$foldData;Ua=this.getFoldsInRange(Ta),this.removeFolds(Ua);var Wa=this.getFoldLine(za.row),Za=0;if(Wa){Wa.addRemoveChars(za.row,za.column,Na.column-za.column),Wa.shiftRow(-Va);var Xa=this.getFoldLine(Fa);Xa&&Xa!==Wa&&(Xa.merge(Wa),Wa=Xa),Za=Qa.indexOf(Wa)+1}for(Za;Za<Qa.length;Za++){var Wa=Qa[Za];Wa.start.row>=za.row&&Wa.shiftRow(-Va)}Ha=Fa}else{var tl=Array(Va);tl.unshift(Fa,0);var il=_a?this.$wrapData:this.$rowLengthCache;il.splice.apply(il,tl);var Qa=this.$foldData,Wa=this.getFoldLine(Fa),Za=0;if(Wa){var Ja=Wa.range.compareInside(Na.row,Na.column);Ja==0?(Wa=Wa.split(Na.row,Na.column),Wa&&(Wa.shiftRow(Va),Wa.addRemoveChars(Ha,0,za.column-Na.column))):Ja==-1&&(Wa.addRemoveChars(Fa,0,za.column-Na.column),Wa.shiftRow(Va)),Za=Qa.indexOf(Wa)+1}for(Za;Za<Qa.length;Za++){var Wa=Qa[Za];Wa.start.row>=Fa&&Wa.shiftRow(Va)}}else{Va=Math.abs(Ta.start.column-Ta.end.column),La==="remove"&&(Ua=this.getFoldsInRange(Ta),this.removeFolds(Ua),Va=-Va);var Wa=this.getFoldLine(Fa);Wa&&Wa.addRemoveChars(Fa,Na.column,Va)}return _a&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_a?this.$updateWrapData(Fa,Ha):this.$updateRowLengthCache(Fa,Ha),Ua},Da.prototype.$updateRowLengthCache=function(Ta,_a){this.$rowLengthCache[Ta]=null,this.$rowLengthCache[_a]=null},Da.prototype.$updateWrapData=function(Ta,_a){var La=this.doc.getAllLines(),Na=this.getTabSize(),za=this.$wrapData,Fa=this.$wrapLimit,Ha,Va,Ua=Ta;for(_a=Math.min(_a,La.length-1);Ua<=_a;)Va=this.getFoldLine(Ua,Va),Va?(Ha=[],Va.walk(function(Qa,Wa,Za,Xa){var tl;if(Qa!=null){tl=this.$getDisplayTokens(Qa,Ha.length),tl[0]=wa;for(var il=1;il<tl.length;il++)tl[il]=ba}else tl=this.$getDisplayTokens(La[Wa].substring(Xa,Za),Ha.length);Ha=Ha.concat(tl)}.bind(this),Va.end.row,La[Va.end.row].length+1),za[Va.start.row]=this.$computeWrapSplits(Ha,Fa,Na),Ua=Va.end.row+1):(Ha=this.$getDisplayTokens(La[Ua]),za[Ua]=this.$computeWrapSplits(Ha,Fa,Na),Ua++)},Da.prototype.$computeWrapSplits=function(Ta,_a,La){if(Ta.length==0)return[];var Na=[],za=Ta.length,Fa=0,Ha=0,Va=this.$wrapAsCode,Ua=this.$indentedSoftWrap,Qa=_a<=Math.max(2*La,8)||Ua===!1?0:Math.floor(_a/2);function Wa(){var Ja=0;if(Qa===0)return Ja;if(Ua)for(var nl=0;nl<Ta.length;nl++){var Ya=Ta[nl];if(Ya==$a)Ja+=1;else if(Ya==Ma)Ja+=La;else{if(Ya==Ia)continue;break}}return Va&&Ua!==!1&&(Ja+=La),Math.min(Ja,Qa)}function Za(Ja){for(var nl=Ja-Fa,Ya=Fa;Ya<Ja;Ya++){var rl=Ta[Ya];(rl===12||rl===2)&&(nl-=1)}Na.length||(Xa=Wa(),Na.indent=Xa),Ha+=nl,Na.push(Ha),Fa=Ja}for(var Xa=0;za-Fa>_a-Xa;){var tl=Fa+_a-Xa;if(Ta[tl-1]>=$a&&Ta[tl]>=$a){Za(tl);continue}if(Ta[tl]==wa||Ta[tl]==ba){for(tl;tl!=Fa-1&&Ta[tl]!=wa;tl--);if(tl>Fa){Za(tl);continue}for(tl=Fa+_a,tl;tl<Ta.length&&Ta[tl]==ba;tl++);if(tl==Ta.length)break;Za(tl);continue}for(var il=Math.max(tl-(_a-(_a>>2)),Fa-1);tl>il&&Ta[tl]<wa;)tl--;if(Va){for(;tl>il&&Ta[tl]<wa;)tl--;for(;tl>il&&Ta[tl]==Ea;)tl--}else for(;tl>il&&Ta[tl]<$a;)tl--;if(tl>il){Za(++tl);continue}tl=Fa+_a,Ta[tl]==Sa&&tl--,Za(tl-Xa)}return Na},Da.prototype.$getDisplayTokens=function(Ta,_a){var La=[],Na;_a=_a||0;for(var za=0;za<Ta.length;za++){var Fa=Ta.charCodeAt(za);if(Fa==9){Na=this.getScreenTabSize(La.length+_a),La.push(Ma);for(var Ha=1;Ha<Na;Ha++)La.push(Ia)}else Fa==32?La.push($a):Fa>39&&Fa<48||Fa>57&&Fa<64?La.push(Ea):Fa>=4352&&Oa(Fa)?La.push(Ca,Sa):La.push(Ca)}return La},Da.prototype.$getStringScreenWidth=function(Ta,_a,La){if(_a==0)return[0,0];_a==null&&(_a=1/0),La=La||0;var Na,za;for(za=0;za<Ta.length&&(Na=Ta.charCodeAt(za),Na==9?La+=this.getScreenTabSize(La):Na>=4352&&Oa(Na)?La+=2:La+=1,!(La>_a));za++);return[La,za]},Da.prototype.getRowLength=function(Ta){var _a=1;return this.lineWidgets&&(_a+=this.lineWidgets[Ta]&&this.lineWidgets[Ta].rowCount||0),!this.$useWrapMode||!this.$wrapData[Ta]?_a:this.$wrapData[Ta].length+_a},Da.prototype.getRowLineCount=function(Ta){return!this.$useWrapMode||!this.$wrapData[Ta]?1:this.$wrapData[Ta].length+1},Da.prototype.getRowWrapIndent=function(Ta){if(this.$useWrapMode){var _a=this.screenToDocumentPosition(Ta,Number.MAX_VALUE),La=this.$wrapData[_a.row];return La.length&&La[0]<_a.column?La.indent:0}else return 0},Da.prototype.getScreenLastRowColumn=function(Ta){var _a=this.screenToDocumentPosition(Ta,Number.MAX_VALUE);return this.documentToScreenColumn(_a.row,_a.column)},Da.prototype.getDocumentLastRowColumn=function(Ta,_a){var La=this.documentToScreenRow(Ta,_a);return this.getScreenLastRowColumn(La)},Da.prototype.getDocumentLastRowColumnPosition=function(Ta,_a){var La=this.documentToScreenRow(Ta,_a);return this.screenToDocumentPosition(La,Number.MAX_VALUE/10)},Da.prototype.getRowSplitData=function(Ta){if(this.$useWrapMode)return this.$wrapData[Ta]},Da.prototype.getScreenTabSize=function(Ta){return this.$tabSize-(Ta%this.$tabSize|0)},Da.prototype.screenToDocumentRow=function(Ta,_a){return this.screenToDocumentPosition(Ta,_a).row},Da.prototype.screenToDocumentColumn=function(Ta,_a){return this.screenToDocumentPosition(Ta,_a).column},Da.prototype.screenToDocumentPosition=function(Ta,_a,La){if(Ta<0)return{row:0,column:0};var Na,za=0,Fa=0,Ha,Va=0,Ua=0,Qa=this.$screenRowCache,Wa=this.$getRowCacheIndex(Qa,Ta),Za=Qa.length;if(Za&&Wa>=0)var Va=Qa[Wa],za=this.$docRowCache[Wa],Xa=Ta>Qa[Za-1];else var Xa=!Za;for(var tl=this.getLength()-1,il=this.getNextFoldLine(za),Ja=il?il.start.row:1/0;Va<=Ta&&(Ua=this.getRowLength(za),!(Va+Ua>Ta||za>=tl));)Va+=Ua,za++,za>Ja&&(za=il.end.row+1,il=this.getNextFoldLine(za,il),Ja=il?il.start.row:1/0),Xa&&(this.$docRowCache.push(za),this.$screenRowCache.push(Va));if(il&&il.start.row<=za)Na=this.getFoldDisplayLine(il),za=il.start.row;else{if(Va+Ua<=Ta||za>tl)return{row:tl,column:this.getLine(tl).length};Na=this.getLine(za),il=null}var nl=0,Ya=Math.floor(Ta-Va);if(this.$useWrapMode){var rl=this.$wrapData[za];rl&&(Ha=rl[Ya],Ya>0&&rl.length&&(nl=rl.indent,Fa=rl[Ya-1]||rl[rl.length-1],Na=Na.substring(Fa)))}return La!==void 0&&this.$bidiHandler.isBidiRow(Va+Ya,za,Ya)&&(_a=this.$bidiHandler.offsetToCol(La)),Fa+=this.$getStringScreenWidth(Na,_a-nl)[1],this.$useWrapMode&&Fa>=Ha&&(Fa=Ha-1),il?il.idxToPosition(Fa):{row:za,column:Fa}},Da.prototype.documentToScreenPosition=function(Ta,_a){if(typeof _a>"u")var La=this.$clipPositionToDocument(Ta.row,Ta.column);else La=this.$clipPositionToDocument(Ta,_a);Ta=La.row,_a=La.column;var Na=0,za=null,Fa=null;Fa=this.getFoldAt(Ta,_a,1),Fa&&(Ta=Fa.start.row,_a=Fa.start.column);var Ha,Va=0,Ua=this.$docRowCache,Qa=this.$getRowCacheIndex(Ua,Ta),Wa=Ua.length;if(Wa&&Qa>=0)var Va=Ua[Qa],Na=this.$screenRowCache[Qa],Za=Ta>Ua[Wa-1];else var Za=!Wa;for(var Xa=this.getNextFoldLine(Va),tl=Xa?Xa.start.row:1/0;Va<Ta;){if(Va>=tl){if(Ha=Xa.end.row+1,Ha>Ta)break;Xa=this.getNextFoldLine(Ha,Xa),tl=Xa?Xa.start.row:1/0}else Ha=Va+1;Na+=this.getRowLength(Va),Va=Ha,Za&&(this.$docRowCache.push(Va),this.$screenRowCache.push(Na))}var il="";Xa&&Va>=tl?(il=this.getFoldDisplayLine(Xa,Ta,_a),za=Xa.start.row):(il=this.getLine(Ta).substring(0,_a),za=Ta);var Ja=0;if(this.$useWrapMode){var nl=this.$wrapData[za];if(nl){for(var Ya=0;il.length>=nl[Ya];)Na++,Ya++;il=il.substring(nl[Ya-1]||0,il.length),Ja=Ya>0?nl.indent:0}}return this.lineWidgets&&this.lineWidgets[Va]&&this.lineWidgets[Va].rowsAbove&&(Na+=this.lineWidgets[Va].rowsAbove),{row:Na,column:Ja+this.$getStringScreenWidth(il)[0]}},Da.prototype.documentToScreenColumn=function(Ta,_a){return this.documentToScreenPosition(Ta,_a).column},Da.prototype.documentToScreenRow=function(Ta,_a){return this.documentToScreenPosition(Ta,_a).row},Da.prototype.getScreenLength=function(){var Ta=0,_a=null;if(this.$useWrapMode)for(var za=this.$wrapData.length,Fa=0,Na=0,_a=this.$foldData[Na++],Ha=_a?_a.start.row:1/0;Fa<za;){var Va=this.$wrapData[Fa];Ta+=Va?Va.length+1:1,Fa++,Fa>Ha&&(Fa=_a.end.row+1,_a=this.$foldData[Na++],Ha=_a?_a.start.row:1/0)}else{Ta=this.getLength();for(var La=this.$foldData,Na=0;Na<La.length;Na++)_a=La[Na],Ta-=_a.end.row-_a.start.row}return this.lineWidgets&&(Ta+=this.$getWidgetScreenLength()),Ta},Da.prototype.$setFontMetrics=function(Ta){this.$enableVarChar&&(this.$getStringScreenWidth=function(_a,La,Na){if(La===0)return[0,0];La||(La=1/0),Na=Na||0;var za,Fa;for(Fa=0;Fa<_a.length&&(za=_a.charAt(Fa),za==="	"?Na+=this.getScreenTabSize(Na):Na+=Ta.getCharacterWidth(za),!(Na>La));Fa++);return[Na,Fa]})},Da.prototype.getPrecedingCharacter=function(){var Ta=this.selection.getCursor();if(Ta.column===0)return Ta.row===0?"":this.doc.getNewLineCharacter();var _a=this.getLine(Ta.row);return _a[Ta.column-1]},Da.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},Da}();Aa.$uid=0,Aa.prototype.$modes=ua.$modes,Aa.prototype.getValue=Aa.prototype.toString,Aa.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},Aa.prototype.$overwrite=!1,Aa.prototype.$mode=null,Aa.prototype.$modeId=null,Aa.prototype.$scrollTop=0,Aa.prototype.$scrollLeft=0,Aa.prototype.$wrapLimit=80,Aa.prototype.$useWrapMode=!1,Aa.prototype.$wrapLimitRange={min:null,max:null},Aa.prototype.lineWidgets=null,Aa.prototype.isFullWidth=Oa,sa.implement(Aa.prototype,da);var Ca=1,Sa=2,wa=3,ba=4,Ea=9,$a=10,Ma=11,Ia=12;function Oa(Da){return Da<4352?!1:Da>=4352&&Da<=4447||Da>=4515&&Da<=4519||Da>=4602&&Da<=4607||Da>=9001&&Da<=9002||Da>=11904&&Da<=11929||Da>=11931&&Da<=12019||Da>=12032&&Da<=12245||Da>=12272&&Da<=12283||Da>=12288&&Da<=12350||Da>=12353&&Da<=12438||Da>=12441&&Da<=12543||Da>=12549&&Da<=12589||Da>=12593&&Da<=12686||Da>=12688&&Da<=12730||Da>=12736&&Da<=12771||Da>=12784&&Da<=12830||Da>=12832&&Da<=12871||Da>=12880&&Da<=13054||Da>=13056&&Da<=19903||Da>=19968&&Da<=42124||Da>=42128&&Da<=42182||Da>=43360&&Da<=43388||Da>=44032&&Da<=55203||Da>=55216&&Da<=55238||Da>=55243&&Da<=55291||Da>=63744&&Da<=64255||Da>=65040&&Da<=65049||Da>=65072&&Da<=65106||Da>=65108&&Da<=65126||Da>=65128&&Da<=65131||Da>=65281&&Da<=65376||Da>=65504&&Da<=65510}ra("./edit_session/folding").Folding.call(Aa.prototype),ra("./edit_session/bracket_match").BracketMatch.call(Aa.prototype),ua.defineOptions(Aa.prototype,"session",{wrap:{set:function(Da){if(!Da||Da=="off"?Da=!1:Da=="free"?Da=!0:Da=="printMargin"?Da=-1:typeof Da=="string"&&(Da=parseInt(Da,10)||!1),this.$wrap!=Da)if(this.$wrap=Da,!Da)this.setUseWrapMode(!1);else{var Ta=typeof Da=="number"?Da:null;this.setWrapLimitRange(Ta,Ta),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(Da){Da=Da=="auto"?this.$mode.type!="text":Da!="text",Da!=this.$wrapAsCode&&(this.$wrapAsCode=Da,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(Da){this.$useWorker=Da,this.$stopWorker(),Da&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(Da){Da=parseInt(Da),Da>0&&this.$tabSize!==Da&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=Da,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(Da){this.setFoldStyle(Da)},handlesSet:!0},overwrite:{set:function(Da){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(Da){this.doc.setNewLineMode(Da)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(Da){this.setMode(Da)},get:function(){return this.$modeId},handlesSet:!0}}),oa.EditSession=Aa}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ra,oa,aa){var sa=ra("./lib/lang"),la=ra("./lib/oop"),ca=ra("./range").Range,ua=function(){function ga(){this.$options={}}return ga.prototype.set=function(fa){return la.mixin(this.$options,fa),this},ga.prototype.getOptions=function(){return sa.copyObject(this.$options)},ga.prototype.setOptions=function(fa){this.$options=fa},ga.prototype.find=function(fa){var ma=this.$options,va=this.$matchIterator(fa,ma);if(!va)return!1;var xa=null;return va.forEach(function(ya,Aa,Ca,Sa){return xa=new ca(ya,Aa,Ca,Sa),Aa==Sa&&ma.start&&ma.start.start&&ma.skipCurrent!=!1&&xa.isEqual(ma.start)?(xa=null,!1):!0}),xa},ga.prototype.findAll=function(fa){var ma=this.$options;if(!ma.needle)return[];this.$assembleRegExp(ma);var va=ma.range,xa=va?fa.getLines(va.start.row,va.end.row):fa.doc.getAllLines(),ya=[],Aa=ma.re;if(ma.$isMultiLine){var Ca=Aa.length,Sa=xa.length-Ca,wa;e:for(var ba=Aa.offset||0;ba<=Sa;ba++){for(var Ea=0;Ea<Ca;Ea++)if(xa[ba+Ea].search(Aa[Ea])==-1)continue e;var $a=xa[ba],Ma=xa[ba+Ca-1],Ia=$a.length-$a.match(Aa[0])[0].length,Oa=Ma.match(Aa[Ca-1])[0].length;wa&&wa.end.row===ba&&wa.end.column>Ia||(ya.push(wa=new ca(ba,Ia,ba+Ca-1,Oa)),Ca>2&&(ba=ba+Ca-2))}}else for(var Da,Ta=0;Ta<xa.length;Ta++)if(this.$isMultilineSearch(ma)){var _a=xa.length-1;if(Da=this.$multiLineForward(fa,Aa,Ta,_a),Da){var La=Da.endRow<=_a?Da.endRow-1:_a;La>Ta&&(Ta=La),ya.push(new ca(Da.startRow,Da.startCol,Da.endRow,Da.endCol))}}else{Da=sa.getMatchOffsets(xa[Ta],Aa);for(var Ea=0;Ea<Da.length;Ea++){var Na=Da[Ea];ya.push(new ca(Ta,Na.offset,Ta,Na.offset+Na.length))}}if(va){for(var za=va.start.column,Fa=va.end.column,Ta=0,Ea=ya.length-1;Ta<Ea&&ya[Ta].start.column<za&&ya[Ta].start.row==0;)Ta++;for(var Ha=va.end.row-va.start.row;Ta<Ea&&ya[Ea].end.column>Fa&&ya[Ea].end.row==Ha;)Ea--;for(ya=ya.slice(Ta,Ea+1),Ta=0,Ea=ya.length;Ta<Ea;Ta++)ya[Ta].start.row+=va.start.row,ya[Ta].end.row+=va.start.row}return ya},ga.prototype.parseReplaceString=function(fa){for(var ma={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},va="",xa=0,ya=fa.length;xa<ya;xa++){var Aa=fa.charCodeAt(xa);if(Aa===ma.Backslash){if(xa++,xa>=ya){va+="\\";break}var Ca=fa.charCodeAt(xa);switch(Ca){case ma.Backslash:va+="\\";break;case ma.n:va+=`
`;break;case ma.t:va+="	";break}continue}if(Aa===ma.DollarSign){if(xa++,xa>=ya){va+="$";break}var Sa=fa.charCodeAt(xa);if(Sa===ma.DollarSign){va+="$$";continue}if(Sa===ma.Digit0||Sa===ma.Ampersand){va+="$&";continue}if(ma.Digit1<=Sa&&Sa<=ma.Digit9){va+="$"+fa[xa];continue}}va+=fa[xa]}return va||fa},ga.prototype.replace=function(fa,ma){var va=this.$options,xa=this.$assembleRegExp(va);if(va.$isMultiLine)return ma;if(xa){var ya=this.$isMultilineSearch(va);ya&&(fa=fa.replace(/\r\n|\r|\n/g,`
`));var Aa=xa.exec(fa);if(!Aa||!ya&&Aa[0].length!=fa.length)return null;if(ma=va.regExp?this.parseReplaceString(ma):ma.replace(/\$/g,"$$$$"),ma=fa.replace(xa,ma),va.preserveCase){ma=ma.split("");for(var Ca=Math.min(fa.length,fa.length);Ca--;){var Sa=fa[Ca];Sa&&Sa.toLowerCase()!=Sa?ma[Ca]=ma[Ca].toUpperCase():ma[Ca]=ma[Ca].toLowerCase()}ma=ma.join("")}return ma}},ga.prototype.$assembleRegExp=function(fa,ma){if(fa.needle instanceof RegExp)return fa.re=fa.needle;var va=fa.needle;if(!fa.needle)return fa.re=!1;fa.regExp||(va=sa.escapeRegExp(va));var xa=fa.caseSensitive?"gm":"gmi";try{new RegExp(va,"u"),fa.$supportsUnicodeFlag=!0,xa+="u"}catch{fa.$supportsUnicodeFlag=!1}if(fa.wholeWord&&(va=da(va,fa)),fa.$isMultiLine=!ma&&/[\n\r]/.test(va),fa.$isMultiLine)return fa.re=this.$assembleMultilineRegExp(va,xa);try{var ya=new RegExp(va,xa)}catch{ya=!1}return fa.re=ya},ga.prototype.$assembleMultilineRegExp=function(fa,ma){for(var va=fa.replace(/\r\n|\r|\n/g,`$
^`).split(`
`),xa=[],ya=0;ya<va.length;ya++)try{xa.push(new RegExp(va[ya],ma))}catch{return!1}return xa},ga.prototype.$isMultilineSearch=function(fa){return fa.re&&/\\r\\n|\\r|\\n/.test(fa.re.source)&&fa.regExp&&!fa.$isMultiLine},ga.prototype.$multiLineForward=function(fa,ma,va,xa){for(var ya,Aa=ha(fa,va),Ca=va;Ca<=xa;){for(var Sa=0;Sa<Aa&&!(Ca>xa);Sa++){var wa=fa.getLine(Ca++);ya=ya==null?wa:ya+`
`+wa}var ba=ma.exec(ya);if(ma.lastIndex=0,ba){var Ea=ya.slice(0,ba.index).split(`
`),$a=ba[0].split(`
`),Ma=va+Ea.length-1,Ia=Ea[Ea.length-1].length,Oa=Ma+$a.length-1,Da=$a.length==1?Ia+$a[0].length:$a[$a.length-1].length;return{startRow:Ma,startCol:Ia,endRow:Oa,endCol:Da}}}return null},ga.prototype.$multiLineBackward=function(fa,ma,va,xa,ya){for(var Aa,Ca=ha(fa,xa),Sa=fa.getLine(xa).length-va,wa=xa;wa>=ya;){for(var ba=0;ba<Ca&&wa>=ya;ba++){var Ea=fa.getLine(wa--);Aa=Aa==null?Ea:Ea+`
`+Aa}var $a=pa(Aa,ma,Sa);if($a){var Ma=Aa.slice(0,$a.index).split(`
`),Ia=$a[0].split(`
`),Oa=wa+Ma.length,Da=Ma[Ma.length-1].length,Ta=Oa+Ia.length-1,_a=Ia.length==1?Da+Ia[0].length:Ia[Ia.length-1].length;return{startRow:Oa,startCol:Da,endRow:Ta,endCol:_a}}}return null},ga.prototype.$matchIterator=function(fa,ma){var va=this.$assembleRegExp(ma);if(!va)return!1;var xa=this.$isMultilineSearch(ma),ya=this.$multiLineForward,Aa=this.$multiLineBackward,Ca=ma.backwards==!0,Sa=ma.skipCurrent!=!1,wa=va.unicode,ba=ma.range,Ea=ma.start;Ea||(Ea=ba?ba[Ca?"end":"start"]:fa.selection.getRange()),Ea.start&&(Ea=Ea[Sa!=Ca?"end":"start"]);var $a=ba?ba.start.row:0,Ma=ba?ba.end.row:fa.getLength()-1;if(Ca)var Ia=function(Ta){var _a=Ea.row;if(!Da(_a,Ea.column,Ta)){for(_a--;_a>=$a;_a--)if(Da(_a,Number.MAX_VALUE,Ta))return;if(ma.wrap!=!1){for(_a=Ma,$a=Ea.row;_a>=$a;_a--)if(Da(_a,Number.MAX_VALUE,Ta))return}}};else var Ia=function(_a){var La=Ea.row;if(!Da(La,Ea.column,_a)){for(La=La+1;La<=Ma;La++)if(Da(La,0,_a))return;if(ma.wrap!=!1){for(La=$a,Ma=Ea.row;La<=Ma;La++)if(Da(La,0,_a))return}}};if(ma.$isMultiLine)var Oa=va.length,Da=function(Ta,_a,La){var Na=Ca?Ta-Oa+1:Ta;if(!(Na<0||Na+Oa>fa.getLength())){var za=fa.getLine(Na),Fa=za.search(va[0]);if(!(!Ca&&Fa<_a||Fa===-1)){for(var Ha=1;Ha<Oa;Ha++)if(za=fa.getLine(Na+Ha),za.search(va[Ha])==-1)return;var Va=za.match(va[Oa-1])[0].length;if(!(Ca&&Va>_a)&&La(Na,Fa,Na+Oa-1,Va))return!0}}};else if(Ca)var Da=function(_a,La,Na){if(xa){var za=Aa(fa,va,La,_a,$a);if(!za)return!1;if(Na(za.startRow,za.startCol,za.endRow,za.endCol))return!0}else{var Fa=fa.getLine(_a),Ha=[],Va,Ua=0;for(va.lastIndex=0;Va=va.exec(Fa);){var Qa=Va[0].length;if(Ua=Va.index,!Qa){if(Ua>=Fa.length)break;va.lastIndex=Ua+=sa.skipEmptyMatch(Fa,Ua,wa)}if(Va.index+Qa>La)break;Ha.push(Va.index,Qa)}for(var Wa=Ha.length-1;Wa>=0;Wa-=2){var Za=Ha[Wa-1],Qa=Ha[Wa];if(Na(_a,Za,_a,Za+Qa))return!0}}};else var Da=function(_a,La,Na){if(va.lastIndex=La,xa){var za=ya(fa,va,_a,Ma);if(za){var Fa=za.endRow<=Ma?za.endRow-1:Ma;Fa>_a&&(_a=Fa)}if(!za)return!1;if(Na(za.startRow,za.startCol,za.endRow,za.endCol))return!0}else for(var Ha=fa.getLine(_a),Va,Ua;Ua=va.exec(Ha);){var Qa=Ua[0].length;if(Va=Ua.index,Na(_a,Va,_a,Va+Qa))return!0;if(!Qa&&(va.lastIndex=Va+=sa.skipEmptyMatch(Ha,Va,wa),Va>=Ha.length))return!1}};return{forEach:Ia}},ga}();function da(ga,fa){var ma=sa.supportsLookbehind();function va(Ca,Sa){Sa===void 0&&(Sa=!0);var wa=ma&&fa.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return wa.test(Ca)||fa.regExp?ma&&fa.$supportsUnicodeFlag?Sa?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var xa=Array.from(ga),ya=xa[0],Aa=xa[xa.length-1];return va(ya)+ga+va(Aa,!1)}function pa(ga,fa,ma){for(var va=null,xa=0;xa<=ga.length;){fa.lastIndex=xa;var ya=fa.exec(ga);if(!ya)break;var Aa=ya.index+ya[0].length;if(Aa>ga.length-ma)break;(!va||Aa>va.index+va[0].length)&&(va=ya),xa=ya.index+1}return va}function ha(ga,fa){var ma=5e3,va={row:fa,column:0},xa=ga.doc.positionToIndex(va),ya=xa+ma,Aa=ga.doc.indexToPosition(ya),Ca=Aa.row;return Ca+1}oa.Search=ua}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var ga=function(fa,ma){return ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(va,xa){va.__proto__=xa}||function(va,xa){for(var ya in xa)Object.prototype.hasOwnProperty.call(xa,ya)&&(va[ya]=xa[ya])},ga(fa,ma)};return function(fa,ma){if(typeof ma!="function"&&ma!==null)throw new TypeError("Class extends value "+String(ma)+" is not a constructor or null");ga(fa,ma);function va(){this.constructor=fa}fa.prototype=ma===null?Object.create(ma):(va.prototype=ma.prototype,new va)}}(),la=ra("../lib/keys"),ca=ra("../lib/useragent"),ua=la.KEY_MODS,da=function(){function ga(fa,ma){this.$init(fa,ma,!1)}return ga.prototype.$init=function(fa,ma,va){this.platform=ma||(ca.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(fa),this.$singleCommand=va},ga.prototype.addCommand=function(fa){this.commands[fa.name]&&this.removeCommand(fa),this.commands[fa.name]=fa,fa.bindKey&&this._buildKeyHash(fa)},ga.prototype.removeCommand=function(fa,ma){var va=fa&&(typeof fa=="string"?fa:fa.name);fa=this.commands[va],ma||delete this.commands[va];var xa=this.commandKeyBinding;for(var ya in xa){var Aa=xa[ya];if(Aa==fa)delete xa[ya];else if(Array.isArray(Aa)){var Ca=Aa.indexOf(fa);Ca!=-1&&(Aa.splice(Ca,1),Aa.length==1&&(xa[ya]=Aa[0]))}}},ga.prototype.bindKey=function(fa,ma,va){if(typeof fa=="object"&&fa&&(va==null&&(va=fa.position),fa=fa[this.platform]),!!fa){if(typeof ma=="function")return this.addCommand({exec:ma,bindKey:fa,name:ma.name||fa});fa.split("|").forEach(function(xa){var ya="";if(xa.indexOf(" ")!=-1){var Aa=xa.split(/\s+/);xa=Aa.pop(),Aa.forEach(function(wa){var ba=this.parseKeys(wa),Ea=ua[ba.hashId]+ba.key;ya+=(ya?" ":"")+Ea,this._addCommandToBinding(ya,"chainKeys")},this),ya+=" "}var Ca=this.parseKeys(xa),Sa=ua[Ca.hashId]+Ca.key;this._addCommandToBinding(ya+Sa,ma,va)},this)}},ga.prototype._addCommandToBinding=function(fa,ma,va){var xa=this.commandKeyBinding,ya;if(!ma)delete xa[fa];else if(!xa[fa]||this.$singleCommand)xa[fa]=ma;else{Array.isArray(xa[fa])?(ya=xa[fa].indexOf(ma))!=-1&&xa[fa].splice(ya,1):xa[fa]=[xa[fa]],typeof va!="number"&&(va=pa(ma));var Aa=xa[fa];for(ya=0;ya<Aa.length;ya++){var Ca=Aa[ya],Sa=pa(Ca);if(Sa>va)break}Aa.splice(ya,0,ma)}},ga.prototype.addCommands=function(fa){fa&&Object.keys(fa).forEach(function(ma){var va=fa[ma];if(va){if(typeof va=="string")return this.bindKey(va,ma);typeof va=="function"&&(va={exec:va}),typeof va=="object"&&(va.name||(va.name=ma),this.addCommand(va))}},this)},ga.prototype.removeCommands=function(fa){Object.keys(fa).forEach(function(ma){this.removeCommand(fa[ma])},this)},ga.prototype.bindKeys=function(fa){Object.keys(fa).forEach(function(ma){this.bindKey(ma,fa[ma])},this)},ga.prototype._buildKeyHash=function(fa){this.bindKey(fa.bindKey,fa)},ga.prototype.parseKeys=function(fa){var ma=fa.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Sa){return Sa}),va=ma.pop(),xa=la[va];if(la.FUNCTION_KEYS[xa])va=la.FUNCTION_KEYS[xa].toLowerCase();else if(ma.length){if(ma.length==1&&ma[0]=="shift")return{key:va.toUpperCase(),hashId:-1}}else return{key:va,hashId:-1};for(var ya=0,Aa=ma.length;Aa--;){var Ca=la.KEY_MODS[ma[Aa]];if(Ca==null)return typeof console<"u"&&console.error("invalid modifier "+ma[Aa]+" in "+fa),!1;ya|=Ca}return{key:va,hashId:ya}},ga.prototype.findKeyCommand=function(fa,ma){var va=ua[fa]+ma;return this.commandKeyBinding[va]},ga.prototype.handleKeyboard=function(fa,ma,va,xa){if(!(xa<0)){var ya=ua[ma]+va,Aa=this.commandKeyBinding[ya];return fa.$keyChain&&(fa.$keyChain+=" "+ya,Aa=this.commandKeyBinding[fa.$keyChain]||Aa),Aa&&(Aa=="chainKeys"||Aa[Aa.length-1]=="chainKeys")?(fa.$keyChain=fa.$keyChain||ya,{command:"null"}):(fa.$keyChain&&((!ma||ma==4)&&va.length==1?fa.$keyChain=fa.$keyChain.slice(0,-ya.length-1):(ma==-1||xa>0)&&(fa.$keyChain="")),{command:Aa})}},ga.prototype.getStatusText=function(fa,ma){return ma.$keyChain||""},ga}();function pa(ga){return typeof ga=="object"&&ga.bindKey&&ga.bindKey.position||(ga.isDefault?-100:0)}var ha=function(ga){sa(fa,ga);function fa(ma,va){var xa=ga.call(this,ma,va)||this;return xa.$singleCommand=!0,xa}return fa}(da);ha.call=function(ga,fa,ma){da.prototype.$init.call(ga,fa,ma,!0)},da.call=function(ga,fa,ma){da.prototype.$init.call(ga,fa,ma,!1)},oa.HashHandler=ha,oa.MultiHashHandler=da}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var pa=function(ha,ga){return pa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fa,ma){fa.__proto__=ma}||function(fa,ma){for(var va in ma)Object.prototype.hasOwnProperty.call(ma,va)&&(fa[va]=ma[va])},pa(ha,ga)};return function(ha,ga){if(typeof ga!="function"&&ga!==null)throw new TypeError("Class extends value "+String(ga)+" is not a constructor or null");pa(ha,ga);function fa(){this.constructor=ha}ha.prototype=ga===null?Object.create(ga):(fa.prototype=ga.prototype,new fa)}}(),la=ra("../lib/oop"),ca=ra("../keyboard/hash_handler").MultiHashHandler,ua=ra("../lib/event_emitter").EventEmitter,da=function(pa){sa(ha,pa);function ha(ga,fa){var ma=pa.call(this,fa,ga)||this;return ma.byName=ma.commands,ma.setDefaultHandler("exec",function(va){return va.args?va.command.exec(va.editor,va.args,va.event,!1):va.command.exec(va.editor,{},va.event,!0)}),ma}return ha.prototype.exec=function(ga,fa,ma){if(Array.isArray(ga)){for(var va=ga.length;va--;)if(this.exec(ga[va],fa,ma))return!0;return!1}if(typeof ga=="string"&&(ga=this.commands[ga]),!this.canExecute(ga,fa))return!1;var xa={editor:fa,command:ga,args:ma};return xa.returnValue=this._emit("exec",xa),this._signal("afterExec",xa),xa.returnValue!==!1},ha.prototype.canExecute=function(ga,fa){return typeof ga=="string"&&(ga=this.commands[ga]),!(!ga||fa&&fa.$readOnly&&!ga.readOnly||this.$checkCommandState!=!1&&ga.isAvailable&&!ga.isAvailable(fa))},ha.prototype.toggleRecording=function(ga){if(!this.$inReplay)return ga&&ga._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(fa){this.macro.push([fa.command,fa.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},ha.prototype.replay=function(ga){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(ga);try{this.$inReplay=!0,this.macro.forEach(function(fa){typeof fa=="string"?this.exec(fa,ga):this.exec(fa[0],ga,fa[1])},this)}finally{this.$inReplay=!1}}},ha.prototype.trimMacro=function(ga){return ga.map(function(fa){return typeof fa[0]!="string"&&(fa[0]=fa[0].name),fa[1]||(fa=fa[0]),fa})},ha}(ca);la.implement(da.prototype,ua),oa.CommandManager=da}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(ra,oa,aa){var sa=ra("../lib/lang"),la=ra("../config"),ca=ra("../range").Range;function ua(pa,ha){return{win:pa,mac:ha}}oa.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:ua("Ctrl-,","Command-,"),exec:function(pa){la.loadModule("ace/ext/settings_menu",function(ha){ha.init(pa),pa.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:ua("Alt-E","F4"),exec:function(pa){la.loadModule("ace/ext/error_marker",function(ha){ha.showErrorMarker(pa,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:ua("Alt-Shift-E","Shift-F4"),exec:function(pa){la.loadModule("ace/ext/error_marker",function(ha){ha.showErrorMarker(pa,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:ua("Ctrl-A","Command-A"),exec:function(pa){pa.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:ua(null,"Ctrl-L"),exec:function(pa){pa.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:ua("Ctrl-L","Command-L"),exec:function(pa,ha){typeof ha=="number"&&!isNaN(ha)&&pa.gotoLine(ha),pa.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:ua("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(pa){pa.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:ua("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(pa){pa.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:ua("F2","F2"),exec:function(pa){pa.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:ua("Alt-F2","Alt-F2"),exec:function(pa){pa.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:ua(null,"Ctrl-Command-Option-0"),exec:function(pa){pa.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:ua(null,"Ctrl-Command-Option-0"),exec:function(pa){pa.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:ua("Alt-0","Command-Option-0"),exec:function(pa){pa.session.foldAll(),pa.session.unfold(pa.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:ua("Alt-Shift-0","Command-Option-Shift-0"),exec:function(pa){pa.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:ua("Ctrl-K","Command-G"),exec:function(pa){pa.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:ua("Ctrl-Shift-K","Command-Shift-G"),exec:function(pa){pa.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:ua("Alt-K","Ctrl-G"),exec:function(pa){pa.selection.isEmpty()?pa.selection.selectWord():pa.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:ua("Alt-Shift-K","Ctrl-Shift-G"),exec:function(pa){pa.selection.isEmpty()?pa.selection.selectWord():pa.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:ua("Ctrl-F","Command-F"),exec:function(pa){la.loadModule("ace/ext/searchbox",function(ha){ha.Search(pa)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(pa){pa.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:ua("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(pa){pa.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:ua("Ctrl-Home","Command-Home|Command-Up"),exec:function(pa){pa.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:ua("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(pa){pa.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:ua("Up","Up|Ctrl-P"),exec:function(pa,ha){pa.navigateUp(ha.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:ua("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(pa){pa.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:ua("Ctrl-End","Command-End|Command-Down"),exec:function(pa){pa.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:ua("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(pa){pa.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:ua("Down","Down|Ctrl-N"),exec:function(pa,ha){pa.navigateDown(ha.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:ua("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(pa){pa.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:ua("Ctrl-Left","Option-Left"),exec:function(pa){pa.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:ua("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(pa){pa.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:ua("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(pa){pa.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:ua("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(pa){pa.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:ua("Left","Left|Ctrl-B"),exec:function(pa,ha){pa.navigateLeft(ha.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:ua("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(pa){pa.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:ua("Ctrl-Right","Option-Right"),exec:function(pa){pa.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:ua("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(pa){pa.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:ua("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(pa){pa.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:ua("Shift-Right","Shift-Right"),exec:function(pa){pa.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:ua("Right","Right|Ctrl-F"),exec:function(pa,ha){pa.navigateRight(ha.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(pa){pa.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:ua(null,"Option-PageDown"),exec:function(pa){pa.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:ua("PageDown","PageDown|Ctrl-V"),exec:function(pa){pa.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(pa){pa.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:ua(null,"Option-PageUp"),exec:function(pa){pa.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(pa){pa.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:ua("Ctrl-Up",null),exec:function(pa){pa.renderer.scrollBy(0,-2*pa.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:ua("Ctrl-Down",null),exec:function(pa){pa.renderer.scrollBy(0,2*pa.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(pa){pa.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(pa){pa.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:ua("Ctrl-Alt-E","Command-Option-E"),exec:function(pa){pa.commands.toggleRecording(pa)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:ua("Ctrl-Shift-E","Command-Shift-E"),exec:function(pa){pa.commands.replay(pa)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:ua("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(pa){pa.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:ua("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(pa){pa.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:ua("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(pa){pa.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:ua(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(pa){},readOnly:!0},{name:"cut",description:"Cut",exec:function(pa){var ha=pa.$copyWithEmptySelection&&pa.selection.isEmpty(),ga=ha?pa.selection.getLineRange():pa.selection.getRange();pa._emit("cut",ga),ga.isEmpty()||pa.session.remove(ga),pa.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(pa,ha){pa.$handlePaste(ha)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:ua("Ctrl-D","Command-D"),exec:function(pa){pa.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:ua("Ctrl-Shift-D","Command-Shift-D"),exec:function(pa){pa.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:ua("Ctrl-Alt-S","Command-Alt-S"),exec:function(pa){pa.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:ua("Ctrl-/","Command-/"),exec:function(pa){pa.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:ua("Ctrl-Shift-/","Command-Shift-/"),exec:function(pa){pa.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:ua("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(pa){pa.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:ua("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(pa){pa.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:ua("Ctrl-H","Command-Option-F"),exec:function(pa){la.loadModule("ace/ext/searchbox",function(ha){ha.Search(pa,!0)})}},{name:"undo",description:"Undo",bindKey:ua("Ctrl-Z","Command-Z"),exec:function(pa){pa.undo()}},{name:"redo",description:"Redo",bindKey:ua("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(pa){pa.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:ua("Alt-Shift-Up","Command-Option-Up"),exec:function(pa){pa.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:ua("Alt-Up","Option-Up"),exec:function(pa){pa.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:ua("Alt-Shift-Down","Command-Option-Down"),exec:function(pa){pa.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:ua("Alt-Down","Option-Down"),exec:function(pa){pa.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:ua("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(pa){pa.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:ua("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(pa){pa.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:ua("Shift-Delete",null),exec:function(pa){if(pa.selection.isEmpty())pa.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:ua("Alt-Backspace","Command-Backspace"),exec:function(pa){pa.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:ua("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(pa){pa.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:ua("Ctrl-Shift-Backspace",null),exec:function(pa){var ha=pa.selection.getRange();ha.start.column=0,pa.session.remove(ha)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:ua("Ctrl-Shift-Delete",null),exec:function(pa){var ha=pa.selection.getRange();ha.end.column=Number.MAX_VALUE,pa.session.remove(ha)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:ua("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(pa){pa.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:ua("Ctrl-Delete","Alt-Delete"),exec:function(pa){pa.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:ua("Shift-Tab","Shift-Tab"),exec:function(pa){pa.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:ua("Tab","Tab"),exec:function(pa){pa.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:ua("Ctrl-[","Ctrl-["),exec:function(pa){pa.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:ua("Ctrl-]","Ctrl-]"),exec:function(pa){pa.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(pa,ha){pa.insert(ha)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(pa,ha){pa.insert(sa.stringRepeat(ha.text||"",ha.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:ua(null,"Ctrl-O"),exec:function(pa){pa.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:ua("Alt-Shift-X","Ctrl-T"),exec:function(pa){pa.transposeLetters()},multiSelectAction:function(pa){pa.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:ua("Ctrl-U","Ctrl-U"),exec:function(pa){pa.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:ua("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(pa){pa.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:ua(null,null),exec:function(pa){pa.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:ua("Ctrl-Shift-L","Command-Shift-L"),exec:function(pa){var ha=pa.selection.getRange();ha.start.column=ha.end.column=0,ha.end.row++,pa.selection.setRange(ha,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:ua("Ctrl+F3","F3"),exec:function(pa){pa.openLink()}},{name:"joinlines",description:"Join lines",bindKey:ua(null,null),exec:function(pa){for(var ha=pa.selection.isBackwards(),ga=ha?pa.selection.getSelectionLead():pa.selection.getSelectionAnchor(),fa=ha?pa.selection.getSelectionAnchor():pa.selection.getSelectionLead(),ma=pa.session.doc.getLine(ga.row).length,va=pa.session.doc.getTextRange(pa.selection.getRange()),xa=va.replace(/\n\s*/," ").length,ya=pa.session.doc.getLine(ga.row),Aa=ga.row+1;Aa<=fa.row+1;Aa++){var Ca=sa.stringTrimLeft(sa.stringTrimRight(pa.session.doc.getLine(Aa)));Ca.length!==0&&(Ca=" "+Ca),ya+=Ca}fa.row+1<pa.session.doc.getLength()-1&&(ya+=pa.session.doc.getNewLineCharacter()),pa.clearSelection(),pa.session.doc.replace(new ca(ga.row,0,fa.row+2,0),ya),xa>0?(pa.selection.moveCursorTo(ga.row,ga.column),pa.selection.selectTo(ga.row,ga.column+xa)):(ma=pa.session.doc.getLine(ga.row).length>ma?ma+1:ma,pa.selection.moveCursorTo(ga.row,ma))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:ua(null,null),exec:function(pa){var ha=pa.session.doc.getLength()-1,ga=pa.session.doc.getLine(ha).length,fa=pa.selection.rangeList.ranges,ma=[];fa.length<1&&(fa=[pa.selection.getRange()]);for(var va=0;va<fa.length;va++)va==fa.length-1&&(fa[va].end.row===ha&&fa[va].end.column===ga||ma.push(new ca(fa[va].end.row,fa[va].end.column,ha,ga))),va===0?fa[va].start.row===0&&fa[va].start.column===0||ma.push(new ca(0,0,fa[va].start.row,fa[va].start.column)):ma.push(new ca(fa[va-1].end.row,fa[va-1].end.column,fa[va].start.row,fa[va].start.column));pa.exitMultiSelectMode(),pa.clearSelection();for(var va=0;va<ma.length;va++)pa.selection.addRange(ma[va],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(pa){pa.selection.clearSelection(),pa.navigateLineEnd(),pa.insert(`
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(pa){pa.selection.clearSelection();var ha=pa.getCursorPosition();pa.selection.moveTo(ha.row-1,Number.MAX_VALUE),pa.insert(`
`),ha.row===0&&pa.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(pa){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),pa.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:ua("F1","F1"),exec:function(pa){pa.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:ua(null,null),exec:function(pa){pa.prompt({$type:"modes"})},readOnly:!0}];for(var da=1;da<9;da++)oa.commands.push({name:"foldToLevel"+da,description:"Fold To Level "+da,level:da,exec:function(pa){pa.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(ra,oa,aa){var sa=ra("../lib/keys"),la=ra("../mouse/default_gutter_handler").GutterTooltip,ca=function(){function da(pa){this.editor=pa,this.gutterLayer=pa.renderer.$gutterLayer,this.element=pa.renderer.$gutter,this.lines=pa.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new la(this.editor)}return da.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},da.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},da.prototype.$onGutterKeyDown=function(pa){if(this.annotationTooltip.isOpen){pa.preventDefault(),pa.keyCode===sa.escape&&this.annotationTooltip.hideTooltip();return}if(pa.target===this.element){if(pa.keyCode!=sa.enter)return;pa.preventDefault();var ha=this.editor.getCursorPosition().row;this.editor.isRowVisible(ha)||this.editor.scrollToLine(ha,!0,!0),setTimeout(function(){var ga=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),fa=this.$findNearestFoldWidget(ga),ma=this.$findNearestAnnotation(ga);if(!(fa===null&&ma===null)){if(fa===null&&ma!==null){this.activeRowIndex=ma,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(fa!==null&&ma===null){this.activeRowIndex=fa,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(ma-ga)<Math.abs(fa-ga)){this.activeRowIndex=ma,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=fa,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}.bind(this),10);return}this.$handleGutterKeyboardInteraction(pa),setTimeout(function(){this.editor._signal("gutterkeydown",new ua(pa,this))}.bind(this),10)},da.prototype.$handleGutterKeyboardInteraction=function(pa){if(pa.keyCode===sa.tab){pa.preventDefault();return}if(pa.keyCode===sa.escape){pa.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(pa.keyCode===sa.up){switch(pa.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(pa.keyCode===sa.down){switch(pa.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(pa.keyCode===sa.left){pa.preventDefault(),this.$switchLane("annotation");return}if(pa.keyCode===sa.right){pa.preventDefault(),this.$switchLane("fold");return}if(pa.keyCode===sa.enter||pa.keyCode===sa.space){switch(pa.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var ha=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),pa),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==ha&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(ha),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var ga=this.lines.cells[this.activeRowIndex].element.childNodes[2],fa=ga.getBoundingClientRect(),ma=this.annotationTooltip.getElement().style;ma.left=fa.right+"px",ma.top=fa.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},da.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},da.prototype.$isFoldWidgetVisible=function(pa){var ha=this.editor.isRowFullyVisible(this.$rowIndexToRow(pa)),ga=this.$getFoldWidget(pa).style.display!=="none";return ha&&ga},da.prototype.$isAnnotationVisible=function(pa){var ha=this.editor.isRowFullyVisible(this.$rowIndexToRow(pa)),ga=this.$getAnnotation(pa).style.display!=="none";return ha&&ga},da.prototype.$getFoldWidget=function(pa){var ha=this.lines.get(pa),ga=ha.element;return ga.childNodes[1]},da.prototype.$getAnnotation=function(pa){var ha=this.lines.get(pa),ga=ha.element;return ga.childNodes[2]},da.prototype.$findNearestFoldWidget=function(pa){if(this.$isFoldWidgetVisible(pa))return pa;for(var ha=0;pa-ha>0||pa+ha<this.lines.getLength()-1;){if(ha++,pa-ha>=0&&this.$isFoldWidgetVisible(pa-ha))return pa-ha;if(pa+ha<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(pa+ha))return pa+ha}return null},da.prototype.$findNearestAnnotation=function(pa){if(this.$isAnnotationVisible(pa))return pa;for(var ha=0;pa-ha>0||pa+ha<this.lines.getLength()-1;){if(ha++,pa-ha>=0&&this.$isAnnotationVisible(pa-ha))return pa-ha;if(pa+ha<=this.lines.getLength()-1&&this.$isAnnotationVisible(pa+ha))return pa+ha}return null},da.prototype.$focusFoldWidget=function(pa){if(pa!=null){var ha=this.$getFoldWidget(pa);ha.classList.add(this.editor.renderer.keyboardFocusClassName),ha.focus()}},da.prototype.$focusAnnotation=function(pa){if(pa!=null){var ha=this.$getAnnotation(pa);ha.classList.add(this.editor.renderer.keyboardFocusClassName),ha.focus()}},da.prototype.$blurFoldWidget=function(pa){var ha=this.$getFoldWidget(pa);ha.classList.remove(this.editor.renderer.keyboardFocusClassName),ha.blur()},da.prototype.$blurAnnotation=function(pa){var ha=this.$getAnnotation(pa);ha.classList.remove(this.editor.renderer.keyboardFocusClassName),ha.blur()},da.prototype.$moveFoldWidgetUp=function(){for(var pa=this.activeRowIndex;pa>0;)if(pa--,this.$isFoldWidgetVisible(pa)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=pa,this.$focusFoldWidget(this.activeRowIndex);return}},da.prototype.$moveFoldWidgetDown=function(){for(var pa=this.activeRowIndex;pa<this.lines.getLength()-1;)if(pa++,this.$isFoldWidgetVisible(pa)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=pa,this.$focusFoldWidget(this.activeRowIndex);return}},da.prototype.$moveAnnotationUp=function(){for(var pa=this.activeRowIndex;pa>0;)if(pa--,this.$isAnnotationVisible(pa)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=pa,this.$focusAnnotation(this.activeRowIndex);return}},da.prototype.$moveAnnotationDown=function(){for(var pa=this.activeRowIndex;pa<this.lines.getLength()-1;)if(pa++,this.$isAnnotationVisible(pa)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=pa,this.$focusAnnotation(this.activeRowIndex);return}},da.prototype.$switchLane=function(pa){switch(pa){case"annotation":if(this.activeLane==="annotation")break;var ha=this.$findNearestAnnotation(this.activeRowIndex);if(ha==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=ha,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var ga=this.$findNearestFoldWidget(this.activeRowIndex);if(ga==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=ga,this.$focusFoldWidget(this.activeRowIndex);break}},da.prototype.$rowIndexToRow=function(pa){var ha=this.lines.get(pa);return ha?ha.row:null},da.prototype.$rowToRowIndex=function(pa){for(var ha=0;ha<this.lines.getLength();ha++){var ga=this.lines.get(ha);if(ga.row==pa)return ha}return null},da}();oa.GutterKeyboardHandler=ca;var ua=function(){function da(pa,ha){this.gutterKeyboardHandler=ha,this.domEvent=pa}return da.prototype.getKey=function(){return sa.keyCodeToString(this.domEvent.keyCode)},da.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},da.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},da.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},da}();oa.GutterKeyboardEvent=ua}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(ra,oa,aa){var sa=this&&this.__values||function(Da){var Ta=typeof Symbol=="function"&&Symbol.iterator,_a=Ta&&Da[Ta],La=0;if(_a)return _a.call(Da);if(Da&&typeof Da.length=="number")return{next:function(){return Da&&La>=Da.length&&(Da=void 0),{value:Da&&Da[La++],done:!Da}}};throw new TypeError(Ta?"Object is not iterable.":"Symbol.iterator is not defined.")},la=ra("./lib/oop"),ca=ra("./lib/dom"),ua=ra("./lib/lang"),da=ra("./lib/useragent"),pa=ra("./keyboard/textinput").TextInput,ha=ra("./mouse/mouse_handler").MouseHandler,ga=ra("./mouse/fold_handler").FoldHandler,fa=ra("./keyboard/keybinding").KeyBinding,ma=ra("./edit_session").EditSession,va=ra("./search").Search,xa=ra("./range").Range,ya=ra("./lib/event_emitter").EventEmitter,Aa=ra("./commands/command_manager").CommandManager,Ca=ra("./commands/default_commands").commands,Sa=ra("./config"),wa=ra("./token_iterator").TokenIterator,ba=ra("./keyboard/gutter_handler").GutterKeyboardHandler,Ea=ra("./config").nls,$a=ra("./clipboard"),Ma=ra("./lib/keys"),Ia=function(){function Da(Ta,_a,La){this.session,this.$toDestroy=[];var Na=Ta.getContainerElement();this.container=Na,this.renderer=Ta,this.id="editor"+ ++Da.$uid,this.commands=new Aa(da.isMac?"mac":"win",Ca),typeof document=="object"&&(this.textInput=new pa(Ta.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new ha(this),new ga(this)),this.keyBinding=new fa(this),this.$search=new va().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=ua.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(za,Fa){Fa._$emitInputEvent.schedule(31)}),this.setSession(_a||La&&La.session||new ma("")),Sa.resetOptions(this),La&&this.setOptions(La),Sa._signal("editor",this)}return Da.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},Da.prototype.startOperation=function(Ta){this.session.startOperation(Ta)},Da.prototype.endOperation=function(Ta){this.session.endOperation(Ta)},Da.prototype.onStartOperation=function(Ta){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,Ta||(this.previousCommand=null)},Da.prototype.onEndOperation=function(Ta){if(this.curOp&&this.session){if(Ta&&Ta.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var _a=this.curOp.command,La=_a&&_a.scrollIntoView;if(La){switch(La){case"center-animate":La="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var Na=this.selection.getRange(),za=this.renderer.layerConfig;(Na.start.row>=za.lastRow||Na.end.row<=za.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}La=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},Da.prototype.$historyTracker=function(Ta){if(this.$mergeUndoDeltas){var _a=this.prevOp,La=this.$mergeableCommands,Na=_a.command&&Ta.command.name==_a.command.name;if(Ta.command.name=="insertstring"){var za=Ta.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),Na=Na&&this.mergeNextCommand&&(!/\s/.test(za)||/\s/.test(_a.args)),this.mergeNextCommand=!0}else Na=Na&&La.indexOf(Ta.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(Na=!1),Na?this.session.mergeUndoDeltas=!0:La.indexOf(Ta.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},Da.prototype.setKeyboardHandler=function(Ta,_a){if(Ta&&typeof Ta=="string"&&Ta!="ace"){this.$keybindingId=Ta;var La=this;Sa.loadModule(["keybinding",Ta],function(Na){La.$keybindingId==Ta&&La.keyBinding.setKeyboardHandler(Na&&Na.handler),_a&&_a()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(Ta),_a&&_a()},Da.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},Da.prototype.setSession=function(Ta){if(this.session!=Ta){this.curOp&&this.endOperation(),this.curOp={};var _a=this.session;if(_a){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var La=this.session.getSelection();La.off("changeCursor",this.$onCursorChange),La.off("changeSelection",this.$onSelectionChange)}this.session=Ta,Ta?(this.$onDocumentChange=this.onDocumentChange.bind(this),Ta.on("change",this.$onDocumentChange),this.renderer.setSession(Ta),this.$onChangeMode=this.onChangeMode.bind(this),Ta.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),Ta.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),Ta.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),Ta.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),Ta.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),Ta.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=Ta.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(Ta)),this._signal("changeSession",{session:Ta,oldSession:_a}),this.curOp=null,_a&&_a._signal("changeEditor",{oldEditor:this}),_a&&(_a.$editor=null),Ta&&Ta._signal("changeEditor",{editor:this}),Ta&&(Ta.$editor=this),Ta&&!Ta.destroyed&&Ta.bgTokenizer.scheduleStart()}},Da.prototype.getSession=function(){return this.session},Da.prototype.setValue=function(Ta,_a){return this.session.doc.setValue(Ta),_a?_a==1?this.navigateFileEnd():_a==-1&&this.navigateFileStart():this.selectAll(),Ta},Da.prototype.getValue=function(){return this.session.getValue()},Da.prototype.getSelection=function(){return this.selection},Da.prototype.resize=function(Ta){this.renderer.onResize(Ta)},Da.prototype.setTheme=function(Ta,_a){this.renderer.setTheme(Ta,_a)},Da.prototype.getTheme=function(){return this.renderer.getTheme()},Da.prototype.setStyle=function(Ta){this.renderer.setStyle(Ta)},Da.prototype.unsetStyle=function(Ta){this.renderer.unsetStyle(Ta)},Da.prototype.getFontSize=function(){return this.getOption("fontSize")||ca.computedStyle(this.container).fontSize},Da.prototype.setFontSize=function(Ta){this.setOption("fontSize",Ta)},Da.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var Ta=this;this.$highlightPending=!0,setTimeout(function(){Ta.$highlightPending=!1;var _a=Ta.session;if(!(!_a||_a.destroyed)){_a.$bracketHighlight&&(_a.$bracketHighlight.markerIds.forEach(function(Wa){_a.removeMarker(Wa)}),_a.$bracketHighlight=null);var La=Ta.getCursorPosition(),Na=Ta.getKeyboardHandler(),za=Na&&Na.$getDirectionForHighlight&&Na.$getDirectionForHighlight(Ta),Fa=_a.getMatchingBracketRanges(La,za);if(!Fa){var Ha=new wa(_a,La.row,La.column),Va=Ha.getCurrentToken();if(Va&&/\b(?:tag-open|tag-name)/.test(Va.type)){var Ua=_a.getMatchingTags(La);Ua&&(Fa=[Ua.openTagName.isEmpty()?Ua.openTag:Ua.openTagName,Ua.closeTagName.isEmpty()?Ua.closeTag:Ua.closeTagName])}}if(!Fa&&_a.$mode.getMatching&&(Fa=_a.$mode.getMatching(Ta.session)),!Fa){Ta.getHighlightIndentGuides()&&Ta.renderer.$textLayer.$highlightIndentGuide();return}var Qa="ace_bracket";Array.isArray(Fa)?Fa.length==1&&(Qa="ace_error_bracket"):Fa=[Fa],Fa.length==2&&(xa.comparePoints(Fa[0].end,Fa[1].start)==0?Fa=[xa.fromPoints(Fa[0].start,Fa[1].end)]:xa.comparePoints(Fa[0].start,Fa[1].end)==0&&(Fa=[xa.fromPoints(Fa[1].start,Fa[0].end)])),_a.$bracketHighlight={ranges:Fa,markerIds:Fa.map(function(Wa){return _a.addMarker(Wa,Qa,"text")})},Ta.getHighlightIndentGuides()&&Ta.renderer.$textLayer.$highlightIndentGuide()}},50)}},Da.prototype.focus=function(){this.textInput.focus()},Da.prototype.isFocused=function(){return this.textInput.isFocused()},Da.prototype.blur=function(){this.textInput.blur()},Da.prototype.onFocus=function(Ta){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",Ta))},Da.prototype.onBlur=function(Ta){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",Ta))},Da.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},Da.prototype.onDocumentChange=function(Ta){var _a=this.session.$useWrapMode,La=Ta.start.row==Ta.end.row?Ta.end.row:1/0;this.renderer.updateLines(Ta.start.row,La,_a),this._signal("change",Ta),this.$cursorChange()},Da.prototype.onTokenizerUpdate=function(Ta){var _a=Ta.data;this.renderer.updateLines(_a.first,_a.last)},Da.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},Da.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},Da.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},Da.prototype.$updateHighlightActiveLine=function(){var Ta=this.getSession(),_a;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(_a=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(_a=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(_a=!1)),Ta.$highlightLineMarker&&!_a)Ta.removeMarker(Ta.$highlightLineMarker.id),Ta.$highlightLineMarker=null;else if(!Ta.$highlightLineMarker&&_a){var La=new xa(_a.row,_a.column,_a.row,1/0);La.id=Ta.addMarker(La,"ace_active-line","screenLine"),Ta.$highlightLineMarker=La}else _a&&(Ta.$highlightLineMarker.start.row=_a.row,Ta.$highlightLineMarker.end.row=_a.row,Ta.$highlightLineMarker.start.column=_a.column,Ta._signal("changeBackMarker"))},Da.prototype.onSelectionChange=function(Ta){var _a=this.session;if(_a.$selectionMarker&&_a.removeMarker(_a.$selectionMarker),_a.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var La=this.selection.getRange(),Na=this.getSelectionStyle();_a.$selectionMarker=_a.addMarker(La,"ace_selection",Na)}var za=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(za),this._signal("changeSelection")},Da.prototype.$getSelectionHighLightRegexp=function(){var Ta=this.session,_a=this.getSelectionRange();if(!(_a.isEmpty()||_a.isMultiLine())){var La=_a.start.column,Na=_a.end.column,za=Ta.getLine(_a.start.row),Fa=za.substring(La,Na);if(!(Fa.length>5e3||!/[\w\d]/.test(Fa))){var Ha=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Fa}),Va=za.substring(La-1,Na+1);if(Ha.test(Va))return Ha}}},Da.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},Da.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},Da.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},Da.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},Da.prototype.onChangeMode=function(Ta){this.renderer.updateText(),this._emit("changeMode",Ta)},Da.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},Da.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},Da.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},Da.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},Da.prototype.getCopyText=function(){var Ta=this.getSelectedText(),_a=this.session.doc.getNewLineCharacter(),La=!1;if(!Ta&&this.$copyWithEmptySelection){La=!0;for(var Na=this.selection.getAllRanges(),za=0;za<Na.length;za++){var Fa=Na[za];za&&Na[za-1].start.row==Fa.start.row||(Ta+=this.session.getLine(Fa.start.row)+_a)}}var Ha={text:Ta};return this._signal("copy",Ha),$a.lineMode=La?Ha.text:!1,Ha.text},Da.prototype.onCopy=function(){this.commands.exec("copy",this)},Da.prototype.onCut=function(){this.commands.exec("cut",this)},Da.prototype.onPaste=function(Ta,_a){var La={text:Ta,event:_a};this.commands.exec("paste",this,La)},Da.prototype.$handlePaste=function(Ta){typeof Ta=="string"&&(Ta={text:Ta}),this._signal("paste",Ta);var _a=Ta.text,La=_a===$a.lineMode,Na=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)La?Na.insert({row:this.selection.lead.row,column:0},_a):this.insert(_a);else if(La)this.selection.rangeList.ranges.forEach(function(Qa){Na.insert({row:Qa.start.row,column:0},_a)});else{var za=_a.split(/\r\n|\r|\n/),Fa=this.selection.rangeList.ranges,Ha=za.length==2&&(!za[0]||!za[1]);if(za.length!=Fa.length||Ha)return this.commands.exec("insertstring",this,_a);for(var Va=Fa.length;Va--;){var Ua=Fa[Va];Ua.isEmpty()||Na.remove(Ua),Na.insert(Ua.start,za[Va])}}},Da.prototype.execCommand=function(Ta,_a){return this.commands.exec(Ta,this,_a)},Da.prototype.insert=function(Ta,_a){var La=this.session,Na=La.getMode(),za=this.getCursorPosition();if(this.getBehavioursEnabled()&&!_a){var Fa=Na.transformAction(La.getState(za.row),"insertion",this,La,Ta);Fa&&(Ta!==Fa.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),Ta=Fa.text)}if(Ta=="	"&&(Ta=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&Ta.indexOf(`
`)==-1){var Ha=xa.fromPoints(za,za);Ha.end.column+=Ta.length,this.session.remove(Ha)}}else{var Ha=this.getSelectionRange();za=this.session.remove(Ha),this.clearSelection()}if(Ta==`
`||Ta==`\r
`){var Wa=La.getLine(za.row);if(za.column>Wa.search(/\S|$/)){var Va=Wa.substr(za.column).search(/\S|$/);La.doc.removeInLine(za.row,za.column,za.column+Va)}}this.clearSelection();var Ua=za.column,Qa=La.getState(za.row),Wa=La.getLine(za.row),Za=Na.checkOutdent(Qa,Wa,Ta);if(La.insert(za,Ta),Fa&&Fa.selection&&(Fa.selection.length==2?this.selection.setSelectionRange(new xa(za.row,Ua+Fa.selection[0],za.row,Ua+Fa.selection[1])):this.selection.setSelectionRange(new xa(za.row+Fa.selection[0],Fa.selection[1],za.row+Fa.selection[2],Fa.selection[3]))),this.$enableAutoIndent){if(La.getDocument().isNewLine(Ta)){var Xa=Na.getNextLineIndent(Qa,Wa.slice(0,za.column),La.getTabString());La.insert({row:za.row+1,column:0},Xa)}Za&&Na.autoOutdent(Qa,La,za.row)}},Da.prototype.autoIndent=function(){for(var Ta=this.session,_a=Ta.getMode(),La=this.selection.isEmpty()?[new xa(0,0,Ta.doc.getLength()-1,0)]:this.selection.getAllRanges(),Na="",za="",Fa="",Ha=Ta.getTabString(),Va=0;Va<La.length;Va++)for(var Ua=La[Va].start.row,Qa=La[Va].end.row,Wa=Ua;Wa<=Qa;Wa++){Wa>0&&(Na=Ta.getState(Wa-1),za=Ta.getLine(Wa-1),Fa=_a.getNextLineIndent(Na,za,Ha));var Za=Ta.getLine(Wa),Xa=_a.$getIndent(Za);if(Fa!==Xa){if(Xa.length>0){var tl=new xa(Wa,0,Wa,Xa.length);Ta.remove(tl)}Fa.length>0&&Ta.insert({row:Wa,column:0},Fa)}_a.autoOutdent(Na,Ta,Wa)}},Da.prototype.onTextInput=function(Ta,_a){if(!_a)return this.keyBinding.onTextInput(Ta);this.startOperation({command:{name:"insertstring"}});var La=this.applyComposition.bind(this,Ta,_a);this.selection.rangeCount?this.forEachSelection(La):La(),this.endOperation()},Da.prototype.applyComposition=function(Ta,_a){if(_a.extendLeft||_a.extendRight){var La=this.selection.getRange();La.start.column-=_a.extendLeft,La.end.column+=_a.extendRight,La.start.column<0&&(La.start.row--,La.start.column+=this.session.getLine(La.start.row).length+1),this.selection.setRange(La),!Ta&&!La.isEmpty()&&this.remove()}if((Ta||!this.selection.isEmpty())&&this.insert(Ta,!0),_a.restoreStart||_a.restoreEnd){var La=this.selection.getRange();La.start.column-=_a.restoreStart,La.end.column-=_a.restoreEnd,this.selection.setRange(La)}},Da.prototype.onCommandKey=function(Ta,_a,La){return this.keyBinding.onCommandKey(Ta,_a,La)},Da.prototype.setOverwrite=function(Ta){this.session.setOverwrite(Ta)},Da.prototype.getOverwrite=function(){return this.session.getOverwrite()},Da.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},Da.prototype.setScrollSpeed=function(Ta){this.setOption("scrollSpeed",Ta)},Da.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},Da.prototype.setDragDelay=function(Ta){this.setOption("dragDelay",Ta)},Da.prototype.getDragDelay=function(){return this.getOption("dragDelay")},Da.prototype.setSelectionStyle=function(Ta){this.setOption("selectionStyle",Ta)},Da.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},Da.prototype.setHighlightActiveLine=function(Ta){this.setOption("highlightActiveLine",Ta)},Da.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},Da.prototype.setHighlightGutterLine=function(Ta){this.setOption("highlightGutterLine",Ta)},Da.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},Da.prototype.setHighlightSelectedWord=function(Ta){this.setOption("highlightSelectedWord",Ta)},Da.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},Da.prototype.setAnimatedScroll=function(Ta){this.renderer.setAnimatedScroll(Ta)},Da.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},Da.prototype.setShowInvisibles=function(Ta){this.renderer.setShowInvisibles(Ta)},Da.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},Da.prototype.setDisplayIndentGuides=function(Ta){this.renderer.setDisplayIndentGuides(Ta)},Da.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},Da.prototype.setHighlightIndentGuides=function(Ta){this.renderer.setHighlightIndentGuides(Ta)},Da.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},Da.prototype.setShowPrintMargin=function(Ta){this.renderer.setShowPrintMargin(Ta)},Da.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},Da.prototype.setPrintMarginColumn=function(Ta){this.renderer.setPrintMarginColumn(Ta)},Da.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},Da.prototype.setReadOnly=function(Ta){this.setOption("readOnly",Ta)},Da.prototype.getReadOnly=function(){return this.getOption("readOnly")},Da.prototype.setBehavioursEnabled=function(Ta){this.setOption("behavioursEnabled",Ta)},Da.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},Da.prototype.setWrapBehavioursEnabled=function(Ta){this.setOption("wrapBehavioursEnabled",Ta)},Da.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},Da.prototype.setShowFoldWidgets=function(Ta){this.setOption("showFoldWidgets",Ta)},Da.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},Da.prototype.setFadeFoldWidgets=function(Ta){this.setOption("fadeFoldWidgets",Ta)},Da.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},Da.prototype.remove=function(Ta){this.selection.isEmpty()&&(Ta=="left"?this.selection.selectLeft():this.selection.selectRight());var _a=this.getSelectionRange();if(this.getBehavioursEnabled()){var La=this.session,Na=La.getState(_a.start.row),za=La.getMode().transformAction(Na,"deletion",this,La,_a);if(_a.end.column===0){var Fa=La.getTextRange(_a);if(Fa[Fa.length-1]==`
`){var Ha=La.getLine(_a.end.row);/^\s+$/.test(Ha)&&(_a.end.column=Ha.length)}}za&&(_a=za)}this.session.remove(_a),this.clearSelection()},Da.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Da.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Da.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},Da.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var Ta=this.getSelectionRange();Ta.start.column==Ta.end.column&&Ta.start.row==Ta.end.row&&(Ta.end.column=0,Ta.end.row++),this.session.remove(Ta),this.clearSelection()},Da.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var Ta=this.getCursorPosition();this.insert(`
`),this.moveCursorToPosition(Ta)},Da.prototype.setGhostText=function(Ta,_a){this.renderer.setGhostText(Ta,_a)},Da.prototype.removeGhostText=function(){this.renderer.removeGhostText()},Da.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var Ta=this.getCursorPosition(),_a=Ta.column;if(_a!==0){var La=this.session.getLine(Ta.row),Na,za;_a<La.length?(Na=La.charAt(_a)+La.charAt(_a-1),za=new xa(Ta.row,_a-1,Ta.row,_a+1)):(Na=La.charAt(_a-1)+La.charAt(_a-2),za=new xa(Ta.row,_a-2,Ta.row,_a)),this.session.replace(za,Na),this.session.selection.moveToPosition(za.end)}}},Da.prototype.toLowerCase=function(){var Ta=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _a=this.getSelectionRange(),La=this.session.getTextRange(_a);this.session.replace(_a,La.toLowerCase()),this.selection.setSelectionRange(Ta)},Da.prototype.toUpperCase=function(){var Ta=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _a=this.getSelectionRange(),La=this.session.getTextRange(_a);this.session.replace(_a,La.toUpperCase()),this.selection.setSelectionRange(Ta)},Da.prototype.indent=function(){var Ta=this.session,_a=this.getSelectionRange();if(_a.start.row<_a.end.row){var La=this.$getSelectedRows();Ta.indentRows(La.first,La.last,"	");return}else if(_a.start.column<_a.end.column){var Na=Ta.getTextRange(_a);if(!/^\s+$/.test(Na)){var La=this.$getSelectedRows();Ta.indentRows(La.first,La.last,"	");return}}var za=Ta.getLine(_a.start.row),Fa=_a.start,Ha=Ta.getTabSize(),Va=Ta.documentToScreenColumn(Fa.row,Fa.column);if(this.session.getUseSoftTabs())var Ua=Ha-Va%Ha,Qa=ua.stringRepeat(" ",Ua);else{for(var Ua=Va%Ha;za[_a.start.column-1]==" "&&Ua;)_a.start.column--,Ua--;this.selection.setSelectionRange(_a),Qa="	"}return this.insert(Qa)},Da.prototype.blockIndent=function(){var Ta=this.$getSelectedRows();this.session.indentRows(Ta.first,Ta.last,"	")},Da.prototype.blockOutdent=function(){var Ta=this.session.getSelection();this.session.outdentRows(Ta.getRange())},Da.prototype.sortLines=function(){for(var Ta=this.$getSelectedRows(),_a=this.session,La=[],Na=Ta.first;Na<=Ta.last;Na++)La.push(_a.getLine(Na));La.sort(function(Ha,Va){return Ha.toLowerCase()<Va.toLowerCase()?-1:Ha.toLowerCase()>Va.toLowerCase()?1:0});for(var za=new xa(0,0,0,0),Na=Ta.first;Na<=Ta.last;Na++){var Fa=_a.getLine(Na);za.start.row=Na,za.end.row=Na,za.end.column=Fa.length,_a.replace(za,La[Na-Ta.first])}},Da.prototype.toggleCommentLines=function(){var Ta=this.session.getState(this.getCursorPosition().row),_a=this.$getSelectedRows();this.session.getMode().toggleCommentLines(Ta,this.session,_a.first,_a.last)},Da.prototype.toggleBlockComment=function(){var Ta=this.getCursorPosition(),_a=this.session.getState(Ta.row),La=this.getSelectionRange();this.session.getMode().toggleBlockComment(_a,this.session,La,Ta)},Da.prototype.getNumberAt=function(Ta,_a){var La=/[\-]?[0-9]+(?:\.[0-9]+)?/g;La.lastIndex=0;for(var Na=this.session.getLine(Ta);La.lastIndex<_a;){var za=La.exec(Na);if(za.index<=_a&&za.index+za[0].length>=_a){var Fa={value:za[0],start:za.index,end:za.index+za[0].length};return Fa}}return null},Da.prototype.modifyNumber=function(Ta){var _a=this.selection.getCursor().row,La=this.selection.getCursor().column,Na=new xa(_a,La-1,_a,La),za=this.session.getTextRange(Na);if(!isNaN(parseFloat(za))&&isFinite(za)){var Fa=this.getNumberAt(_a,La);if(Fa){var Ha=Fa.value.indexOf(".")>=0?Fa.start+Fa.value.indexOf(".")+1:Fa.end,Va=Fa.start+Fa.value.length-Ha,Ua=parseFloat(Fa.value);Ua*=Math.pow(10,Va),Ha!==Fa.end&&La<Ha?Ta*=Math.pow(10,Fa.end-La-1):Ta*=Math.pow(10,Fa.end-La),Ua+=Ta,Ua/=Math.pow(10,Va);var Qa=Ua.toFixed(Va),Wa=new xa(_a,Fa.start,_a,Fa.end);this.session.replace(Wa,Qa),this.moveCursorTo(_a,Math.max(Fa.start+1,La+Qa.length-Fa.value.length))}}else this.toggleWord()},Da.prototype.toggleWord=function(){var Ta=this.selection.getCursor().row,_a=this.selection.getCursor().column;this.selection.selectWord();var La=this.getSelectedText(),Na=this.selection.getWordRange().start.column,za=La.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Fa=_a-Na-1;Fa<0&&(Fa=0);var Ha=0,Va=0,Ua=this;La.match(/[A-Za-z0-9_]+/)&&za.forEach(function(Ya,rl){Va=Ha+Ya.length,Fa>=Ha&&Fa<=Va&&(La=Ya,Ua.selection.clearSelection(),Ua.moveCursorTo(Ta,Ha+Na),Ua.selection.selectTo(Ta,Va+Na)),Ha=Va});for(var Qa=this.$toggleWordPairs,Wa,Za=0;Za<Qa.length;Za++)for(var Xa=Qa[Za],tl=0;tl<=1;tl++){var il=+!tl,Ja=La.match(new RegExp("^\\s?_?("+ua.escapeRegExp(Xa[tl])+")\\s?$","i"));if(Ja){var nl=La.match(new RegExp("([_]|^|\\s)("+ua.escapeRegExp(Ja[1])+")($|\\s)","g"));nl&&(Wa=La.replace(new RegExp(ua.escapeRegExp(Xa[tl]),"i"),function(Ya){var rl=Xa[il];return Ya.toUpperCase()==Ya?rl=rl.toUpperCase():Ya.charAt(0).toUpperCase()==Ya.charAt(0)&&(rl=rl.substr(0,0)+Xa[il].charAt(0).toUpperCase()+rl.substr(1)),rl}),this.insert(Wa),Wa="")}}},Da.prototype.findLinkAt=function(Ta,_a){var La,Na,za=this.session.getLine(Ta),Fa=za.split(/((?:https?|ftp):\/\/[\S]+)/),Ha=_a;Ha<0&&(Ha=0);var Va=0,Ua=0,Qa;try{for(var Wa=sa(Fa),Za=Wa.next();!Za.done;Za=Wa.next()){var Xa=Za.value;if(Ua=Va+Xa.length,Ha>=Va&&Ha<=Ua&&Xa.match(/((?:https?|ftp):\/\/[\S]+)/)){Qa=Xa.replace(/[\s:.,'";}\]]+$/,"");break}Va=Ua}}catch(tl){La={error:tl}}finally{try{Za&&!Za.done&&(Na=Wa.return)&&Na.call(Wa)}finally{if(La)throw La.error}}return Qa},Da.prototype.openLink=function(){var Ta=this.selection.getCursor(),_a=this.findLinkAt(Ta.row,Ta.column);return _a&&window.open(_a,"_blank"),_a!=null},Da.prototype.removeLines=function(){var Ta=this.$getSelectedRows();this.session.removeFullLines(Ta.first,Ta.last),this.clearSelection()},Da.prototype.duplicateSelection=function(){var Ta=this.selection,_a=this.session,La=Ta.getRange(),Na=Ta.isBackwards();if(La.isEmpty()){var za=La.start.row;_a.duplicateLines(za,za)}else{var Fa=Na?La.start:La.end,Ha=_a.insert(Fa,_a.getTextRange(La));La.start=Fa,La.end=Ha,Ta.setSelectionRange(La,Na)}},Da.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},Da.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},Da.prototype.moveText=function(Ta,_a,La){return this.session.moveText(Ta,_a,La)},Da.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},Da.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},Da.prototype.$moveLines=function(Ta,_a){var La,Na,za=this.selection;if(!za.inMultiSelectMode||this.inVirtualSelectionMode){var Fa=za.toOrientedRange();La=this.$getSelectedRows(Fa),Na=this.session.$moveLines(La.first,La.last,_a?0:Ta),_a&&Ta==-1&&(Na=0),Fa.moveBy(Na,0),za.fromOrientedRange(Fa)}else{var Ha=za.rangeList.ranges;za.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Va=0,Ua=0,Qa=Ha.length,Wa=0;Wa<Qa;Wa++){var Za=Wa;Ha[Wa].moveBy(Va,0),La=this.$getSelectedRows(Ha[Wa]);for(var Xa=La.first,tl=La.last;++Wa<Qa;){Ua&&Ha[Wa].moveBy(Ua,0);var il=this.$getSelectedRows(Ha[Wa]);if(_a&&il.first!=tl)break;if(!_a&&il.first>tl+1)break;tl=il.last}for(Wa--,Va=this.session.$moveLines(Xa,tl,_a?0:Ta),_a&&Ta==-1&&(Za=Wa+1);Za<=Wa;)Ha[Za].moveBy(Va,0),Za++;_a||(Va=0),Ua+=Va}za.fromOrientedRange(za.ranges[0]),za.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},Da.prototype.$getSelectedRows=function(Ta){return Ta=(Ta||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(Ta.start.row),last:this.session.getRowFoldEnd(Ta.end.row)}},Da.prototype.onCompositionStart=function(Ta){this.renderer.showComposition(Ta)},Da.prototype.onCompositionUpdate=function(Ta){this.renderer.setCompositionText(Ta)},Da.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},Da.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},Da.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},Da.prototype.isRowVisible=function(Ta){return Ta>=this.getFirstVisibleRow()&&Ta<=this.getLastVisibleRow()},Da.prototype.isRowFullyVisible=function(Ta){return Ta>=this.renderer.getFirstFullyVisibleRow()&&Ta<=this.renderer.getLastFullyVisibleRow()},Da.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},Da.prototype.$moveByPage=function(Ta,_a){var La=this.renderer,Na=this.renderer.layerConfig,za=Ta*Math.floor(Na.height/Na.lineHeight);_a===!0?this.selection.$moveSelection(function(){this.moveCursorBy(za,0)}):_a===!1&&(this.selection.moveCursorBy(za,0),this.selection.clearSelection());var Fa=La.scrollTop;La.scrollBy(0,za*Na.lineHeight),_a!=null&&La.scrollCursorIntoView(null,.5),La.animateScrolling(Fa)},Da.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},Da.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},Da.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},Da.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},Da.prototype.scrollPageDown=function(){this.$moveByPage(1)},Da.prototype.scrollPageUp=function(){this.$moveByPage(-1)},Da.prototype.scrollToRow=function(Ta){this.renderer.scrollToRow(Ta)},Da.prototype.scrollToLine=function(Ta,_a,La,Na){this.renderer.scrollToLine(Ta,_a,La,Na)},Da.prototype.centerSelection=function(){var Ta=this.getSelectionRange(),_a={row:Math.floor(Ta.start.row+(Ta.end.row-Ta.start.row)/2),column:Math.floor(Ta.start.column+(Ta.end.column-Ta.start.column)/2)};this.renderer.alignCursor(_a,.5)},Da.prototype.getCursorPosition=function(){return this.selection.getCursor()},Da.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},Da.prototype.getSelectionRange=function(){return this.selection.getRange()},Da.prototype.selectAll=function(){this.selection.selectAll()},Da.prototype.clearSelection=function(){this.selection.clearSelection()},Da.prototype.moveCursorTo=function(Ta,_a){this.selection.moveCursorTo(Ta,_a)},Da.prototype.moveCursorToPosition=function(Ta){this.selection.moveCursorToPosition(Ta)},Da.prototype.jumpToMatching=function(Ta,_a){var La=this.getCursorPosition(),Na=new wa(this.session,La.row,La.column),za=Na.getCurrentToken(),Fa=0;za&&za.type.indexOf("tag-name")!==-1&&(za=Na.stepBackward());var Ha=za||Na.stepForward();if(Ha){var Va,Ua=!1,Qa={},Wa=La.column-Ha.start,Za,Xa={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Ha.value.match(/[{}()\[\]]/g)){for(;Wa<Ha.value.length&&!Ua;Wa++)if(Xa[Ha.value[Wa]])switch(Za=Xa[Ha.value[Wa]]+"."+Ha.type.replace("rparen","lparen"),isNaN(Qa[Za])&&(Qa[Za]=0),Ha.value[Wa]){case"(":case"[":case"{":Qa[Za]++;break;case")":case"]":case"}":Qa[Za]--,Qa[Za]===-1&&(Va="bracket",Ua=!0);break}}else Ha.type.indexOf("tag-name")!==-1&&(isNaN(Qa[Ha.value])&&(Qa[Ha.value]=0),za.value==="<"&&Fa>1?Qa[Ha.value]++:za.value==="</"&&Qa[Ha.value]--,Qa[Ha.value]===-1&&(Va="tag",Ua=!0));Ua||(za=Ha,Fa++,Ha=Na.stepForward(),Wa=0)}while(Ha&&!Ua);if(Va){var tl,il;if(Va==="bracket")tl=this.session.getBracketRange(La),tl||(tl=new xa(Na.getCurrentTokenRow(),Na.getCurrentTokenColumn()+Wa-1,Na.getCurrentTokenRow(),Na.getCurrentTokenColumn()+Wa-1),il=tl.start,(_a||il.row===La.row&&Math.abs(il.column-La.column)<2)&&(tl=this.session.getBracketRange(il)));else if(Va==="tag"){if(!Ha||Ha.type.indexOf("tag-name")===-1)return;if(tl=new xa(Na.getCurrentTokenRow(),Na.getCurrentTokenColumn()-2,Na.getCurrentTokenRow(),Na.getCurrentTokenColumn()-2),tl.compare(La.row,La.column)===0){var Ja=this.session.getMatchingTags(La);Ja&&(Ja.openTag.contains(La.row,La.column)?(tl=Ja.closeTag,il=tl.start):(tl=Ja.openTag,Ja.closeTag.start.row===La.row&&Ja.closeTag.start.column===La.column?il=tl.end:il=tl.start))}il=il||tl.start}il=tl&&tl.cursor||il,il&&(Ta?tl&&_a?this.selection.setRange(tl):tl&&tl.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(il.row,il.column):this.selection.moveTo(il.row,il.column))}}},Da.prototype.gotoLine=function(Ta,_a,La){this.selection.clearSelection(),this.session.unfold({row:Ta-1,column:_a||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(Ta-1,_a||0),this.isRowFullyVisible(Ta-1)||this.scrollToLine(Ta-1,!0,La)},Da.prototype.navigateTo=function(Ta,_a){this.selection.moveTo(Ta,_a)},Da.prototype.navigateUp=function(Ta){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var _a=this.selection.anchor.getPosition();return this.moveCursorToPosition(_a)}this.selection.clearSelection(),this.selection.moveCursorBy(-Ta||-1,0)},Da.prototype.navigateDown=function(Ta){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var _a=this.selection.anchor.getPosition();return this.moveCursorToPosition(_a)}this.selection.clearSelection(),this.selection.moveCursorBy(Ta||1,0)},Da.prototype.navigateLeft=function(Ta){if(this.selection.isEmpty())for(Ta=Ta||1;Ta--;)this.selection.moveCursorLeft();else{var _a=this.getSelectionRange().start;this.moveCursorToPosition(_a)}this.clearSelection()},Da.prototype.navigateRight=function(Ta){if(this.selection.isEmpty())for(Ta=Ta||1;Ta--;)this.selection.moveCursorRight();else{var _a=this.getSelectionRange().end;this.moveCursorToPosition(_a)}this.clearSelection()},Da.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},Da.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},Da.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},Da.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},Da.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},Da.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},Da.prototype.replace=function(Ta,_a){_a&&this.$search.set(_a);var La=this.$search.find(this.session),Na=0;return La&&(this.$tryReplace(La,Ta)&&(Na=1),this.selection.setSelectionRange(La),this.renderer.scrollSelectionIntoView(La.start,La.end)),Na},Da.prototype.replaceAll=function(Ta,_a){_a&&this.$search.set(_a);var La=this.$search.findAll(this.session),Na=0;if(!La.length)return Na;var za=this.getSelectionRange();this.selection.moveTo(0,0);for(var Fa=La.length-1;Fa>=0;--Fa)this.$tryReplace(La[Fa],Ta)&&Na++;return this.selection.setSelectionRange(za),Na},Da.prototype.$tryReplace=function(Ta,_a){var La=this.session.getTextRange(Ta);return _a=this.$search.replace(La,_a),_a!==null?(Ta.end=this.session.replace(Ta,_a),Ta):null},Da.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},Da.prototype.find=function(Ta,_a,La){_a||(_a={}),typeof Ta=="string"||Ta instanceof RegExp?_a.needle=Ta:typeof Ta=="object"&&la.mixin(_a,Ta);var Na=this.selection.getRange();_a.needle==null&&(Ta=this.session.getTextRange(Na)||this.$search.$options.needle,Ta||(Na=this.session.getWordRange(Na.start.row,Na.start.column),Ta=this.session.getTextRange(Na)),this.$search.set({needle:Ta})),this.$search.set(_a),_a.start||this.$search.set({start:Na});var za=this.$search.find(this.session);if(_a.preventScroll)return za;if(za)return this.revealRange(za,La),za;_a.backwards?Na.start=Na.end:Na.end=Na.start,this.selection.setRange(Na)},Da.prototype.findNext=function(Ta,_a){this.find({skipCurrent:!0,backwards:!1},Ta,_a)},Da.prototype.findPrevious=function(Ta,_a){this.find(Ta,{skipCurrent:!0,backwards:!0},_a)},Da.prototype.revealRange=function(Ta,_a){this.session.unfold(Ta),this.selection.setSelectionRange(Ta);var La=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(Ta.start,Ta.end,.5),_a!==!1&&this.renderer.animateScrolling(La)},Da.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},Da.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},Da.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(Ta){Ta.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},Da.prototype.setAutoScrollEditorIntoView=function(Ta){if(Ta){var _a,La=this,Na=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var za=this.$scrollAnchor;za.style.cssText="position:absolute",this.container.insertBefore(za,this.container.firstChild);var Fa=this.on("changeSelection",function(){Na=!0}),Ha=this.renderer.on("beforeRender",function(){Na&&(_a=La.renderer.container.getBoundingClientRect())}),Va=this.renderer.on("afterRender",function(){if(Na&&_a&&(La.isFocused()||La.searchBox&&La.searchBox.isFocused())){var Ua=La.renderer,Qa=Ua.$cursorLayer.$pixelPos,Wa=Ua.layerConfig,Za=Qa.top-Wa.offset;Qa.top>=0&&Za+_a.top<0?Na=!0:Qa.top<Wa.height&&Qa.top+_a.top+Wa.lineHeight>window.innerHeight?Na=!1:Na=null,Na!=null&&(za.style.top=Za+"px",za.style.left=Qa.left+"px",za.style.height=Wa.lineHeight+"px",za.scrollIntoView(Na)),Na=_a=null}});this.setAutoScrollEditorIntoView=function(Ua){Ua||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Fa),this.renderer.off("afterRender",Va),this.renderer.off("beforeRender",Ha))}}},Da.prototype.$resetCursorStyle=function(){var Ta=this.$cursorStyle||"ace",_a=this.renderer.$cursorLayer;_a&&(_a.setSmoothBlinking(/smooth/.test(Ta)),_a.isBlinking=!this.$readOnly&&Ta!="wide",ca.setCssClass(_a.element,"ace_slim-cursors",/slim/.test(Ta)))},Da.prototype.prompt=function(Ta,_a,La){var Na=this;Sa.loadModule("ace/ext/prompt",function(za){za.prompt(Na,Ta,_a,La)})},Da}();Ia.$uid=0,Ia.prototype.curOp=null,Ia.prototype.prevOp={},Ia.prototype.$mergeableCommands=["backspace","del","insertstring"],Ia.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],la.implement(Ia.prototype,ya),Sa.defineOptions(Ia.prototype,"editor",{selectionStyle:{set:function(Da){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:Da})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(Da){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(Da){this.textInput.setReadOnly(Da),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(Da){this.textInput.setCopyWithEmptySelection(Da)},initialValue:!1},cursorStyle:{set:function(Da){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(Da){this.setAutoScrollEditorIntoView(Da)}},keyboardHandler:{set:function(Da){this.setKeyboardHandler(Da)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(Da){this.session.setValue(Da)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(Da){this.setSession(Da)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(Da){this.renderer.$gutterLayer.setShowLineNumbers(Da),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),Da&&this.$relativeLineNumbers?Oa.attach(this):Oa.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(Da){this.$showLineNumbers&&Da?Oa.attach(this):Oa.detach(this)}},placeholder:{set:function(Da){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var Ta=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(Ta&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),ca.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!Ta&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),ca.addCssClass(this.container,"ace_hasPlaceholder");var _a=ca.createElement("div");_a.className="ace_placeholder",_a.textContent=this.$placeholder||"",this.renderer.placeholderNode=_a,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!Ta&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(Da){var Ta={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(Na){Na.blur(),Na.renderer.scroller.focus()},readOnly:!0},_a=function(Na){if(Na.target==this.renderer.scroller&&Na.keyCode===Ma.enter){Na.preventDefault();var za=this.getCursorPosition().row;this.isRowVisible(za)||this.scrollToLine(za,!0,!0),this.focus()}},La;Da?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(da.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",Ea("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",Ea("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",_a.bind(this)),this.commands.addCommand(Ta),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",Ea("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",Ea("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),La||(La=new ba(this)),La.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",_a.bind(this)),this.commands.removeCommand(Ta),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),La&&La.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(Da){this.$textInputAriaLabel=Da},initialValue:""},enableMobileMenu:{set:function(Da){this.$enableMobileMenu=Da},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var Oa={getText:function(Da,Ta){return(Math.abs(Da.selection.lead.row-Ta)||Ta+1+(Ta<9?"·":""))+""},getWidth:function(Da,Ta,_a){return Math.max(Ta.toString().length,(_a.lastRow+1).toString().length,2)*_a.characterWidth},update:function(Da,Ta){Ta.renderer.$loop.schedule(Ta.renderer.CHANGE_GUTTER)},attach:function(Da){Da.renderer.$gutterLayer.$renderer=this,Da.on("changeSelection",this.update),this.update(null,Da)},detach:function(Da){Da.renderer.$gutterLayer.$renderer==this&&(Da.renderer.$gutterLayer.$renderer=null),Da.off("changeSelection",this.update),this.update(null,Da)}};oa.Editor=Ia}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=function(){function ca(ua,da){this.element=ua,this.canvasHeight=da||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return ca.prototype.moveContainer=function(ua){sa.translate(this.element,0,-(ua.firstRowScreen*ua.lineHeight%this.canvasHeight)-ua.offset*this.$offsetCoefficient)},ca.prototype.pageChanged=function(ua,da){return Math.floor(ua.firstRowScreen*ua.lineHeight/this.canvasHeight)!==Math.floor(da.firstRowScreen*da.lineHeight/this.canvasHeight)},ca.prototype.computeLineTop=function(ua,da,pa){var ha=da.firstRowScreen*da.lineHeight,ga=Math.floor(ha/this.canvasHeight),fa=pa.documentToScreenRow(ua,0)*da.lineHeight;return fa-ga*this.canvasHeight},ca.prototype.computeLineHeight=function(ua,da,pa){return da.lineHeight*pa.getRowLineCount(ua)},ca.prototype.getLength=function(){return this.cells.length},ca.prototype.get=function(ua){return this.cells[ua]},ca.prototype.shift=function(){this.$cacheCell(this.cells.shift())},ca.prototype.pop=function(){this.$cacheCell(this.cells.pop())},ca.prototype.push=function(ua){if(Array.isArray(ua)){this.cells.push.apply(this.cells,ua);for(var da=sa.createFragment(this.element),pa=0;pa<ua.length;pa++)da.appendChild(ua[pa].element);this.element.appendChild(da)}else this.cells.push(ua),this.element.appendChild(ua.element)},ca.prototype.unshift=function(ua){if(Array.isArray(ua)){this.cells.unshift.apply(this.cells,ua);for(var da=sa.createFragment(this.element),pa=0;pa<ua.length;pa++)da.appendChild(ua[pa].element);this.element.firstChild?this.element.insertBefore(da,this.element.firstChild):this.element.appendChild(da)}else this.cells.unshift(ua),this.element.insertAdjacentElement("afterbegin",ua.element)},ca.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},ca.prototype.$cacheCell=function(ua){ua&&(ua.element.remove(),this.cellCache.push(ua))},ca.prototype.createCell=function(ua,da,pa,ha){var ga=this.cellCache.pop();if(!ga){var fa=sa.createElement("div");ha&&ha(fa),this.element.appendChild(fa),ga={element:fa,text:"",row:ua}}return ga.row=ua,ga},ca}();oa.Lines=la}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=ra("../lib/oop"),ca=ra("../lib/lang"),ua=ra("../lib/event_emitter").EventEmitter,da=ra("./lines").Lines,pa=ra("../config").nls,ha=function(){function fa(ma){this.element=sa.createElement("div"),this.element.className="ace_layer ace_gutter-layer",ma.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new da(this.element),this.$lines.$offsetCoefficient=1}return fa.prototype.setSession=function(ma){this.session&&this.session.off("change",this.$updateAnnotations),this.session=ma,ma&&ma.on("change",this.$updateAnnotations)},fa.prototype.addGutterDecoration=function(ma,va){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(ma,va)},fa.prototype.removeGutterDecoration=function(ma,va){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(ma,va)},fa.prototype.setAnnotations=function(ma){this.$annotations=[];for(var va=0;va<ma.length;va++){var xa=ma[va],ya=xa.row,Aa=this.$annotations[ya];Aa||(Aa=this.$annotations[ya]={text:[],type:[],displayText:[]});var Ca=xa.text,Sa=xa.text,wa=xa.type;Ca=Ca?ca.escapeHTML(Ca):xa.html||"",Sa=Sa||xa.html||"",Aa.text.indexOf(Ca)===-1&&(Aa.text.push(Ca),Aa.type.push(wa),Aa.displayText.push(Sa));var ba=xa.className;ba?Aa.className=ba:wa==="error"?Aa.className=" ace_error":wa==="security"&&!/\bace_error\b/.test(Aa.className)?Aa.className=" ace_security":wa==="warning"&&!/\bace_(error|security)\b/.test(Aa.className)?Aa.className=" ace_warning":wa==="info"&&!Aa.className?Aa.className=" ace_info":wa==="hint"&&!Aa.className&&(Aa.className=" ace_hint")}},fa.prototype.$updateAnnotations=function(ma){if(this.$annotations.length){var va=ma.start.row,xa=ma.end.row-va;if(xa!==0)if(ma.action=="remove")this.$annotations.splice(va,xa+1,null);else{var ya=new Array(xa+1);ya.unshift(va,1),this.$annotations.splice.apply(this.$annotations,ya)}}},fa.prototype.update=function(ma){this.config=ma;var va=this.session,xa=ma.firstRow,ya=Math.min(ma.lastRow+ma.gutterOffset,va.getLength()-1);this.oldLastRow=ya,this.config=ma,this.$lines.moveContainer(ma),this.$updateCursorRow();for(var Aa=va.getNextFoldLine(xa),Ca=Aa?Aa.start.row:1/0,Sa=null,wa=-1,ba=xa;;){if(ba>Ca&&(ba=Aa.end.row+1,Aa=va.getNextFoldLine(ba,Aa),Ca=Aa?Aa.start.row:1/0),ba>ya){for(;this.$lines.getLength()>wa+1;)this.$lines.pop();break}Sa=this.$lines.get(++wa),Sa?Sa.row=ba:(Sa=this.$lines.createCell(ba,ma,this.session,ga),this.$lines.push(Sa)),this.$renderCell(Sa,ma,Aa,ba),ba++}this._signal("afterRender"),this.$updateGutterWidth(ma)},fa.prototype.$updateGutterWidth=function(ma){var va=this.session,xa=va.gutterRenderer||this.$renderer,ya=va.$firstLineNumber,Aa=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||va.$useWrapMode)&&(Aa=va.getLength()+ya-1);var Ca=xa?xa.getWidth(va,Aa,ma):Aa.toString().length*ma.characterWidth,Sa=this.$padding||this.$computePadding();Ca+=Sa.left+Sa.right,Ca!==this.gutterWidth&&!isNaN(Ca)&&(this.gutterWidth=Ca,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",Ca))},fa.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var ma=this.session.selection.getCursor();this.$cursorRow!==ma.row&&(this.$cursorRow=ma.row)}},fa.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var ma=this.session.selection.cursor.row;if(this.$cursorRow=ma,!(this.$cursorCell&&this.$cursorCell.row==ma)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var va=this.$lines.cells;this.$cursorCell=null;for(var xa=0;xa<va.length;xa++){var ya=va[xa];if(ya.row>=this.$cursorRow){if(ya.row>this.$cursorRow){var Aa=this.session.getFoldLine(this.$cursorRow);if(xa>0&&Aa&&Aa.start.row==va[xa-1].row)ya=va[xa-1];else break}ya.element.className="ace_gutter-active-line "+ya.element.className,this.$cursorCell=ya;break}}}}},fa.prototype.scrollLines=function(ma){var va=this.config;if(this.config=ma,this.$updateCursorRow(),this.$lines.pageChanged(va,ma))return this.update(ma);this.$lines.moveContainer(ma);var xa=Math.min(ma.lastRow+ma.gutterOffset,this.session.getLength()-1),ya=this.oldLastRow;if(this.oldLastRow=xa,!va||ya<ma.firstRow)return this.update(ma);if(xa<va.firstRow)return this.update(ma);if(va.firstRow<ma.firstRow)for(var Aa=this.session.getFoldedRowCount(va.firstRow,ma.firstRow-1);Aa>0;Aa--)this.$lines.shift();if(ya>xa)for(var Aa=this.session.getFoldedRowCount(xa+1,ya);Aa>0;Aa--)this.$lines.pop();ma.firstRow<va.firstRow&&this.$lines.unshift(this.$renderLines(ma,ma.firstRow,va.firstRow-1)),xa>ya&&this.$lines.push(this.$renderLines(ma,ya+1,xa)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(ma)},fa.prototype.$renderLines=function(ma,va,xa){for(var ya=[],Aa=va,Ca=this.session.getNextFoldLine(Aa),Sa=Ca?Ca.start.row:1/0;Aa>Sa&&(Aa=Ca.end.row+1,Ca=this.session.getNextFoldLine(Aa,Ca),Sa=Ca?Ca.start.row:1/0),!(Aa>xa);){var wa=this.$lines.createCell(Aa,ma,this.session,ga);this.$renderCell(wa,ma,Ca,Aa),ya.push(wa),Aa++}return ya},fa.prototype.$renderCell=function(ma,va,xa,ya){var Aa=ma.element,Ca=this.session,Sa=Aa.childNodes[0],wa=Aa.childNodes[1],ba=Aa.childNodes[2],Ea=ba.firstChild,$a=Ca.$firstLineNumber,Ma=Ca.$breakpoints,Ia=Ca.$decorations,Oa=Ca.gutterRenderer||this.$renderer,Da=this.$showFoldWidgets&&Ca.foldWidgets,Ta=xa?xa.start.row:Number.MAX_VALUE,_a=va.lineHeight+"px",La=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",Na=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",za=(Oa?Oa.getText(Ca,ya):ya+$a).toString();if(this.$highlightGutterLine&&(ya==this.$cursorRow||xa&&ya<this.$cursorRow&&ya>=Ta&&this.$cursorRow<=xa.end.row)&&(La+="ace_gutter-active-line ",this.$cursorCell!=ma&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=ma)),Ma[ya]&&(La+=Ma[ya]),Ia[ya]&&(La+=Ia[ya]),this.$annotations[ya]&&ya!==Ta&&(La+=this.$annotations[ya].className),Da){var Fa=Da[ya];Fa==null&&(Fa=Da[ya]=Ca.getFoldWidget(ya))}if(Fa){var Ha="ace_fold-widget ace_"+Fa,Va=Fa=="start"&&ya==Ta&&ya<xa.end.row;if(Va){Ha+=" ace_closed";for(var Ua="",Qa=!1,Wa=ya+1;Wa<=xa.end.row;Wa++)if(this.$annotations[Wa]){if(this.$annotations[Wa].className===" ace_error"){Qa=!0,Ua=" ace_error_fold";break}this.$annotations[Wa].className===" ace_security"?(Qa=!0,Ua=" ace_security_fold"):this.$annotations[Wa].className===" ace_warning"&&Ua!==" ace_security_fold"&&(Qa=!0,Ua=" ace_warning_fold")}La+=Ua}else Ha+=" ace_open";wa.className!=Ha&&(wa.className=Ha),sa.setStyle(wa.style,"height",_a),sa.setStyle(wa.style,"display","inline-block"),wa.setAttribute("role","button"),wa.setAttribute("tabindex","-1");var Za=Ca.getFoldWidgetRange(ya);Za?wa.setAttribute("aria-label",pa("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Za.start.row+1,Za.end.row+1])):xa?wa.setAttribute("aria-label",pa("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[xa.start.row+1,xa.end.row+1])):wa.setAttribute("aria-label",pa("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[ya+1])),Va?(wa.setAttribute("aria-expanded","false"),wa.setAttribute("title",pa("gutter.code-folding.closed.title","Unfold code"))):(wa.setAttribute("aria-expanded","true"),wa.setAttribute("title",pa("gutter.code-folding.open.title","Fold code")))}else wa&&(sa.setStyle(wa.style,"display","none"),wa.setAttribute("tabindex","0"),wa.removeAttribute("role"),wa.removeAttribute("aria-label"));if(Qa&&this.$showFoldedAnnotations){ba.className="ace_gutter_annotation",Ea.className=Na,Ea.className+=Ua,sa.setStyle(Ea.style,"height",_a),sa.setStyle(ba.style,"display","block"),sa.setStyle(ba.style,"height",_a);var Xa;switch(Ua){case" ace_error_fold":Xa=pa("gutter.annotation.aria-label.error","Error, read annotations row $0",[za]);break;case" ace_security_fold":Xa=pa("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[za]);break;case" ace_warning_fold":Xa=pa("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[za]);break}ba.setAttribute("aria-label",Xa),ba.setAttribute("tabindex","-1"),ba.setAttribute("role","button")}else if(this.$annotations[ya]){ba.className="ace_gutter_annotation",Ea.className=Na,this.$useSvgGutterIcons?Ea.className+=this.$annotations[ya].className:Aa.classList.add(this.$annotations[ya].className.replace(" ","")),sa.setStyle(Ea.style,"height",_a),sa.setStyle(ba.style,"display","block"),sa.setStyle(ba.style,"height",_a);var Xa;switch(this.$annotations[ya].className){case" ace_error":Xa=pa("gutter.annotation.aria-label.error","Error, read annotations row $0",[za]);break;case" ace_security":Xa=pa("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[za]);break;case" ace_warning":Xa=pa("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[za]);break;case" ace_info":Xa=pa("gutter.annotation.aria-label.info","Info, read annotations row $0",[za]);break;case" ace_hint":Xa=pa("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[za]);break}ba.setAttribute("aria-label",Xa),ba.setAttribute("tabindex","-1"),ba.setAttribute("role","button")}else sa.setStyle(ba.style,"display","none"),ba.removeAttribute("aria-label"),ba.removeAttribute("role"),ba.setAttribute("tabindex","0");return za!==Sa.data&&(Sa.data=za),Aa.className!=La&&(Aa.className=La),sa.setStyle(ma.element.style,"height",this.$lines.computeLineHeight(ya,va,Ca)+"px"),sa.setStyle(ma.element.style,"top",this.$lines.computeLineTop(ya,va,Ca)+"px"),ma.text=za,ba.style.display==="none"&&wa.style.display==="none"?ma.element.setAttribute("aria-hidden",!0):ma.element.setAttribute("aria-hidden",!1),ma},fa.prototype.setHighlightGutterLine=function(ma){this.$highlightGutterLine=ma},fa.prototype.setShowLineNumbers=function(ma){this.$renderer=!ma&&{getWidth:function(){return 0},getText:function(){return""}}},fa.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},fa.prototype.setShowFoldWidgets=function(ma){ma?sa.addCssClass(this.element,"ace_folding-enabled"):sa.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=ma,this.$padding=null},fa.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},fa.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var ma=sa.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(ma.borderLeftWidth)||0)+(parseInt(ma.paddingLeft)||0)+1,this.$padding.right=(parseInt(ma.borderRightWidth)||0)+(parseInt(ma.paddingRight)||0),this.$padding},fa.prototype.getRegion=function(ma){var va=this.$padding||this.$computePadding(),xa=this.element.getBoundingClientRect();if(ma.x<va.left+xa.left)return"markers";if(this.$showFoldWidgets&&ma.x>xa.right-va.right)return"foldWidgets"},fa}();ha.prototype.$fixedWidth=!1,ha.prototype.$highlightGutterLine=!0,ha.prototype.$renderer="",ha.prototype.$showLineNumbers=!0,ha.prototype.$showFoldWidgets=!0,la.implement(ha.prototype,ua);function ga(fa){var ma=document.createTextNode("");fa.appendChild(ma);var va=sa.createElement("span");fa.appendChild(va);var xa=sa.createElement("span");fa.appendChild(xa);var ya=sa.createElement("span");return xa.appendChild(ya),fa}oa.Gutter=ha}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(ra,oa,aa){var sa=ra("../range").Range,la=ra("../lib/dom"),ca=function(){function da(pa){this.element=la.createElement("div"),this.element.className="ace_layer ace_marker-layer",pa.appendChild(this.element)}return da.prototype.setPadding=function(pa){this.$padding=pa},da.prototype.setSession=function(pa){this.session=pa},da.prototype.setMarkers=function(pa){this.markers=pa},da.prototype.elt=function(pa,ha){var ga=this.i!=-1&&this.element.childNodes[this.i];ga?this.i++:(ga=document.createElement("div"),this.element.appendChild(ga),this.i=-1),ga.style.cssText=ha,ga.className=pa},da.prototype.update=function(pa){if(pa){this.config=pa,this.i=0;var ha;for(var ga in this.markers){var fa=this.markers[ga];if(!fa.range){fa.update(ha,this,this.session,pa);continue}var ma=fa.range.clipRows(pa.firstRow,pa.lastRow);if(!ma.isEmpty())if(ma=ma.toScreenRange(this.session),fa.renderer){var va=this.$getTop(ma.start.row,pa),xa=this.$padding+ma.start.column*pa.characterWidth;fa.renderer(ha,ma,xa,va,pa)}else fa.type=="fullLine"?this.drawFullLineMarker(ha,ma,fa.clazz,pa):fa.type=="screenLine"?this.drawScreenLineMarker(ha,ma,fa.clazz,pa):ma.isMultiLine()?fa.type=="text"?this.drawTextMarker(ha,ma,fa.clazz,pa):this.drawMultiLineMarker(ha,ma,fa.clazz,pa):this.drawSingleLineMarker(ha,ma,fa.clazz+" ace_start ace_br15",pa)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},da.prototype.$getTop=function(pa,ha){return(pa-ha.firstRowScreen)*ha.lineHeight},da.prototype.drawTextMarker=function(pa,ha,ga,fa,ma){for(var va=this.session,xa=ha.start.row,ya=ha.end.row,Aa=xa,Ca=0,Sa=0,wa=va.getScreenLastRowColumn(Aa),ba=new sa(Aa,ha.start.column,Aa,Sa);Aa<=ya;Aa++)ba.start.row=ba.end.row=Aa,ba.start.column=Aa==xa?ha.start.column:va.getRowWrapIndent(Aa),ba.end.column=wa,Ca=Sa,Sa=wa,wa=Aa+1<ya?va.getScreenLastRowColumn(Aa+1):Aa==ya?0:ha.end.column,this.drawSingleLineMarker(pa,ba,ga+(Aa==xa?" ace_start":"")+" ace_br"+ua(Aa==xa||Aa==xa+1&&ha.start.column,Ca<Sa,Sa>wa,Aa==ya),fa,Aa==ya?0:1,ma)},da.prototype.drawMultiLineMarker=function(pa,ha,ga,fa,ma){var va=this.$padding,xa=fa.lineHeight,ya=this.$getTop(ha.start.row,fa),Aa=va+ha.start.column*fa.characterWidth;if(ma=ma||"",this.session.$bidiHandler.isBidiRow(ha.start.row)){var Ca=ha.clone();Ca.end.row=Ca.start.row,Ca.end.column=this.session.getLine(Ca.start.row).length,this.drawBidiSingleLineMarker(pa,Ca,ga+" ace_br1 ace_start",fa,null,ma)}else this.elt(ga+" ace_br1 ace_start","height:"+xa+"px;right:"+va+"px;top:"+ya+"px;left:"+Aa+"px;"+(ma||""));if(this.session.$bidiHandler.isBidiRow(ha.end.row)){var Ca=ha.clone();Ca.start.row=Ca.end.row,Ca.start.column=0,this.drawBidiSingleLineMarker(pa,Ca,ga+" ace_br12",fa,null,ma)}else{ya=this.$getTop(ha.end.row,fa);var Sa=ha.end.column*fa.characterWidth;this.elt(ga+" ace_br12","height:"+xa+"px;width:"+Sa+"px;top:"+ya+"px;left:"+va+"px;"+(ma||""))}if(xa=(ha.end.row-ha.start.row-1)*fa.lineHeight,!(xa<=0)){ya=this.$getTop(ha.start.row+1,fa);var wa=(ha.start.column?1:0)|(ha.end.column?0:8);this.elt(ga+(wa?" ace_br"+wa:""),"height:"+xa+"px;right:"+va+"px;top:"+ya+"px;left:"+va+"px;"+(ma||""))}},da.prototype.drawSingleLineMarker=function(pa,ha,ga,fa,ma,va){if(this.session.$bidiHandler.isBidiRow(ha.start.row))return this.drawBidiSingleLineMarker(pa,ha,ga,fa,ma,va);var xa=fa.lineHeight,ya=(ha.end.column+(ma||0)-ha.start.column)*fa.characterWidth,Aa=this.$getTop(ha.start.row,fa),Ca=this.$padding+ha.start.column*fa.characterWidth;this.elt(ga,"height:"+xa+"px;width:"+ya+"px;top:"+Aa+"px;left:"+Ca+"px;"+(va||""))},da.prototype.drawBidiSingleLineMarker=function(pa,ha,ga,fa,ma,va){var xa=fa.lineHeight,ya=this.$getTop(ha.start.row,fa),Aa=this.$padding,Ca=this.session.$bidiHandler.getSelections(ha.start.column,ha.end.column);Ca.forEach(function(Sa){this.elt(ga,"height:"+xa+"px;width:"+(Sa.width+(ma||0))+"px;top:"+ya+"px;left:"+(Aa+Sa.left)+"px;"+(va||""))},this)},da.prototype.drawFullLineMarker=function(pa,ha,ga,fa,ma){var va=this.$getTop(ha.start.row,fa),xa=fa.lineHeight;ha.start.row!=ha.end.row&&(xa+=this.$getTop(ha.end.row,fa)-va),this.elt(ga,"height:"+xa+"px;top:"+va+"px;left:0;right:0;"+(ma||""))},da.prototype.drawScreenLineMarker=function(pa,ha,ga,fa,ma){var va=this.$getTop(ha.start.row,fa),xa=fa.lineHeight;this.elt(ga,"height:"+xa+"px;top:"+va+"px;left:0;right:0;"+(ma||""))},da}();ca.prototype.$padding=0;function ua(da,pa,ha,ga){return(da?1:0)|(pa?2:0)|(ha?4:0)|(ga?8:0)}oa.Marker=ca}),ace.define("ace/layer/text_util",["require","exports","module"],function(ra,oa,aa){var sa=new Set(["text","rparen","lparen"]);oa.isTextToken=function(la){return sa.has(la)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("../lib/dom"),ca=ra("../lib/lang"),ua=ra("./lines").Lines,da=ra("../lib/event_emitter").EventEmitter,pa=ra("../config").nls,ha=ra("./text_util").isTextToken,ga=function(){function fa(ma){this.dom=la,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",ma.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new ua(this.element)}return fa.prototype.$updateEolChar=function(){var ma=this.session.doc,va=ma.getNewLineCharacter()==`
`&&ma.getNewLineMode()!="windows",xa=va?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=xa)return this.EOL_CHAR=xa,!0},fa.prototype.setPadding=function(ma){this.$padding=ma,this.element.style.margin="0 "+ma+"px"},fa.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},fa.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},fa.prototype.$setFontMetrics=function(ma){this.$fontMetrics=ma,this.$fontMetrics.on("changeCharacterSize",function(va){this._signal("changeCharacterSize",va)}.bind(this)),this.$pollSizeChanges()},fa.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},fa.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},fa.prototype.setSession=function(ma){this.session=ma,ma&&this.$computeTabString()},fa.prototype.setShowInvisibles=function(ma){return this.showInvisibles==ma?!1:(this.showInvisibles=ma,typeof ma=="string"?(this.showSpaces=/tab/i.test(ma),this.showTabs=/space/i.test(ma),this.showEOL=/eol/i.test(ma)):this.showSpaces=this.showTabs=this.showEOL=ma,this.$computeTabString(),!0)},fa.prototype.setDisplayIndentGuides=function(ma){return this.displayIndentGuides==ma?!1:(this.displayIndentGuides=ma,this.$computeTabString(),!0)},fa.prototype.setHighlightIndentGuides=function(ma){return this.$highlightIndentGuides===ma?!1:(this.$highlightIndentGuides=ma,ma)},fa.prototype.$computeTabString=function(){var ma=this.session.getTabSize();this.tabSize=ma;for(var va=this.$tabStrings=[0],xa=1;xa<ma+1;xa++)if(this.showTabs){var ya=this.dom.createElement("span");ya.className="ace_invisible ace_invisible_tab",ya.textContent=ca.stringRepeat(this.TAB_CHAR,xa),va.push(ya)}else va.push(this.dom.createTextNode(ca.stringRepeat(" ",xa),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var Aa="ace_indent-guide",Ca=this.showSpaces?" ace_invisible ace_invisible_space":"",Sa=this.showSpaces?ca.stringRepeat(this.SPACE_CHAR,this.tabSize):ca.stringRepeat(" ",this.tabSize),wa=this.showTabs?" ace_invisible ace_invisible_tab":"",ba=this.showTabs?ca.stringRepeat(this.TAB_CHAR,this.tabSize):Sa,ya=this.dom.createElement("span");ya.className=Aa+Ca,ya.textContent=Sa,this.$tabStrings[" "]=ya;var ya=this.dom.createElement("span");ya.className=Aa+wa,ya.textContent=ba,this.$tabStrings["	"]=ya}},fa.prototype.updateLines=function(ma,va,xa){if(this.config.lastRow!=ma.lastRow||this.config.firstRow!=ma.firstRow)return this.update(ma);this.config=ma;for(var ya=Math.max(va,ma.firstRow),Aa=Math.min(xa,ma.lastRow),Ca=this.element.childNodes,Sa=0,ba=ma.firstRow;ba<ya;ba++){var Ea=this.session.getFoldLine(ba);if(Ea)if(Ea.containsRow(ya)){ya=Ea.start.row;break}else ba=Ea.end.row;Sa++}for(var wa=!1,ba=ya,Ea=this.session.getNextFoldLine(ba),$a=Ea?Ea.start.row:1/0;ba>$a&&(ba=Ea.end.row+1,Ea=this.session.getNextFoldLine(ba,Ea),$a=Ea?Ea.start.row:1/0),!(ba>Aa);){var Ma=Ca[Sa++];if(Ma){this.dom.removeChildren(Ma),this.$renderLine(Ma,ba,ba==$a?Ea:!1),wa&&(Ma.style.top=this.$lines.computeLineTop(ba,ma,this.session)+"px");var Ia=ma.lineHeight*this.session.getRowLength(ba)+"px";Ma.style.height!=Ia&&(wa=!0,Ma.style.height=Ia)}ba++}if(wa)for(;Sa<this.$lines.cells.length;){var Oa=this.$lines.cells[Sa++];Oa.element.style.top=this.$lines.computeLineTop(Oa.row,ma,this.session)+"px"}},fa.prototype.scrollLines=function(ma){var va=this.config;if(this.config=ma,this.$lines.pageChanged(va,ma))return this.update(ma);this.$lines.moveContainer(ma);var xa=ma.lastRow,ya=va?va.lastRow:-1;if(!va||ya<ma.firstRow)return this.update(ma);if(xa<va.firstRow)return this.update(ma);if(!va||va.lastRow<ma.firstRow)return this.update(ma);if(ma.lastRow<va.firstRow)return this.update(ma);if(va.firstRow<ma.firstRow)for(var Aa=this.session.getFoldedRowCount(va.firstRow,ma.firstRow-1);Aa>0;Aa--)this.$lines.shift();if(va.lastRow>ma.lastRow)for(var Aa=this.session.getFoldedRowCount(ma.lastRow+1,va.lastRow);Aa>0;Aa--)this.$lines.pop();ma.firstRow<va.firstRow&&this.$lines.unshift(this.$renderLinesFragment(ma,ma.firstRow,va.firstRow-1)),ma.lastRow>va.lastRow&&this.$lines.push(this.$renderLinesFragment(ma,va.lastRow+1,ma.lastRow)),this.$highlightIndentGuide()},fa.prototype.$renderLinesFragment=function(ma,va,xa){for(var ya=[],Aa=va,Ca=this.session.getNextFoldLine(Aa),Sa=Ca?Ca.start.row:1/0;Aa>Sa&&(Aa=Ca.end.row+1,Ca=this.session.getNextFoldLine(Aa,Ca),Sa=Ca?Ca.start.row:1/0),!(Aa>xa);){var wa=this.$lines.createCell(Aa,ma,this.session),ba=wa.element;this.dom.removeChildren(ba),la.setStyle(ba.style,"height",this.$lines.computeLineHeight(Aa,ma,this.session)+"px"),la.setStyle(ba.style,"top",this.$lines.computeLineTop(Aa,ma,this.session)+"px"),this.$renderLine(ba,Aa,Aa==Sa?Ca:!1),this.$useLineGroups()?ba.className="ace_line_group":ba.className="ace_line",ya.push(wa),Aa++}return ya},fa.prototype.update=function(ma){this.$lines.moveContainer(ma),this.config=ma;for(var va=ma.firstRow,xa=ma.lastRow,ya=this.$lines;ya.getLength();)ya.pop();ya.push(this.$renderLinesFragment(ma,va,xa))},fa.prototype.$renderToken=function(ma,va,xa,ya){for(var Aa=this,Ca=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,Sa=this.dom.createFragment(this.element),wa,ba=0;wa=Ca.exec(ya);){var Ea=wa[1],$a=wa[2],Ma=wa[3],Ia=wa[4],Oa=wa[5];if(!(!Aa.showSpaces&&$a)){var Da=ba!=wa.index?ya.slice(ba,wa.index):"";if(ba=wa.index+wa[0].length,Da&&Sa.appendChild(this.dom.createTextNode(Da,this.element)),Ea){var Ta=Aa.session.getScreenTabSize(va+wa.index);Sa.appendChild(Aa.$tabStrings[Ta].cloneNode(!0)),va+=Ta-1}else if($a)if(Aa.showSpaces){var _a=this.dom.createElement("span");_a.className="ace_invisible ace_invisible_space",_a.textContent=ca.stringRepeat(Aa.SPACE_CHAR,$a.length),Sa.appendChild(_a)}else Sa.appendChild(this.dom.createTextNode($a,this.element));else if(Ma){var _a=this.dom.createElement("span");_a.className="ace_invisible ace_invisible_space ace_invalid",_a.textContent=ca.stringRepeat(Aa.SPACE_CHAR,Ma.length),Sa.appendChild(_a)}else if(Ia){va+=1;var _a=this.dom.createElement("span");_a.style.width=Aa.config.characterWidth*2+"px",_a.className=Aa.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",_a.textContent=Aa.showSpaces?Aa.SPACE_CHAR:Ia,Sa.appendChild(_a)}else if(Oa){va+=1;var _a=this.dom.createElement("span");_a.style.width=Aa.config.characterWidth*2+"px",_a.className="ace_cjk",_a.textContent=Oa,Sa.appendChild(_a)}}}if(Sa.appendChild(this.dom.createTextNode(ba?ya.slice(ba):ya,this.element)),ha(xa.type))ma.appendChild(Sa);else{var La="ace_"+xa.type.replace(/\./g," ace_"),_a=this.dom.createElement("span");xa.type=="fold"&&(_a.style.width=xa.value.length*this.config.characterWidth+"px",_a.setAttribute("title",pa("inline-fold.closed.title","Unfold code"))),_a.className=La,_a.appendChild(Sa),ma.appendChild(_a)}return va+ya.length},fa.prototype.renderIndentGuide=function(ma,va,xa){var ya=va.search(this.$indentGuideRe);if(ya<=0||ya>=xa)return va;if(va[0]==" "){ya-=ya%this.tabSize;for(var Aa=ya/this.tabSize,Ca=0;Ca<Aa;Ca++)ma.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),va.substr(ya)}else if(va[0]=="	"){for(var Ca=0;Ca<ya;Ca++)ma.appendChild(this.$tabStrings["	"].cloneNode(!0));return this.$highlightIndentGuide(),va.substr(ya)}return this.$highlightIndentGuide(),va},fa.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var ma=this.session.doc.$lines;if(ma){var va=this.session.selection.getCursor(),xa=/^\s*/.exec(this.session.doc.getLine(va.row))[0].length,ya=Math.floor(xa/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:ya,start:va.row};var Aa=this.session.$bracketHighlight;if(Aa){for(var Ca=this.session.$bracketHighlight.ranges,Sa=0;Sa<Ca.length;Sa++)if(va.row!==Ca[Sa].start.row){this.$highlightIndentGuideMarker.end=Ca[Sa].start.row+1,va.row>Ca[Sa].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&ma[va.row]!==""&&va.column===ma[va.row].length){this.$highlightIndentGuideMarker.dir=1;for(var Sa=va.row+1;Sa<ma.length;Sa++){var wa=ma[Sa],ba=/^\s*/.exec(wa)[0].length;if(wa!==""&&(this.$highlightIndentGuideMarker.end=Sa,ba<=xa))break}}this.$renderHighlightIndentGuide()}}},fa.prototype.$clearActiveIndentGuide=function(){var ma=this.element.querySelectorAll(".ace_indent-guide-active");ma.forEach(function(va){va.classList.remove("ace_indent-guide-active")})},fa.prototype.$setIndentGuideActive=function(ma,va){var xa=this.session.doc.getLine(ma.row);if(xa!==""){var ya=ma.element;if(ma.element.classList&&ma.element.classList.contains("ace_line_group"))if(ma.element.childNodes.length>0)ya=ma.element.childNodes[0];else return;var Aa=ya.childNodes;if(Aa){var Ca=Aa[va-1];Ca&&Ca.classList&&Ca.classList.contains("ace_indent-guide")&&Ca.classList.add("ace_indent-guide-active")}}},fa.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var ma=this.$lines.cells;this.$clearActiveIndentGuide();var va=this.$highlightIndentGuideMarker.indentLevel;if(va!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var xa=0;xa<ma.length;xa++){var ya=ma[xa];if(this.$highlightIndentGuideMarker.end&&ya.row>=this.$highlightIndentGuideMarker.start+1){if(ya.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(ya,va)}}else for(var xa=ma.length-1;xa>=0;xa--){var ya=ma[xa];if(this.$highlightIndentGuideMarker.end&&ya.row<this.$highlightIndentGuideMarker.start){if(ya.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(ya,va)}}}},fa.prototype.$createLineElement=function(ma){var va=this.dom.createElement("div");return va.className="ace_line",va.style.height=this.config.lineHeight+"px",va},fa.prototype.$renderWrappedLine=function(ma,va,xa){var ya=0,Aa=0,Ca=xa[0],Sa=0,wa=this.$createLineElement();ma.appendChild(wa);for(var ba=0;ba<va.length;ba++){var Ea=va[ba],$a=Ea.value;if(ba==0&&this.displayIndentGuides){if(ya=$a.length,$a=this.renderIndentGuide(wa,$a,Ca),!$a)continue;ya-=$a.length}if(ya+$a.length<Ca)Sa=this.$renderToken(wa,Sa,Ea,$a),ya+=$a.length;else{for(;ya+$a.length>=Ca;)Sa=this.$renderToken(wa,Sa,Ea,$a.substring(0,Ca-ya)),$a=$a.substring(Ca-ya),ya=Ca,wa=this.$createLineElement(),ma.appendChild(wa),wa.appendChild(this.dom.createTextNode(ca.stringRepeat(" ",xa.indent),this.element)),Aa++,Sa=0,Ca=xa[Aa]||Number.MAX_VALUE;$a.length!=0&&(ya+=$a.length,Sa=this.$renderToken(wa,Sa,Ea,$a))}}xa[xa.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(wa,Sa,null,"",!0)},fa.prototype.$renderSimpleLine=function(ma,va){for(var xa=0,ya=0;ya<va.length;ya++){var Aa=va[ya],Ca=Aa.value;if(!(ya==0&&this.displayIndentGuides&&(Ca=this.renderIndentGuide(ma,Ca),!Ca))){if(xa+Ca.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(ma,xa,Aa,Ca);xa=this.$renderToken(ma,xa,Aa,Ca)}}},fa.prototype.$renderOverflowMessage=function(ma,va,xa,ya,Aa){xa&&this.$renderToken(ma,va,xa,ya.slice(0,this.MAX_LINE_LENGTH-va));var Ca=this.dom.createElement("span");Ca.className="ace_inline_button ace_keyword ace_toggle_wrap",Ca.textContent=Aa?"<hide>":"<click to see more...>",ma.appendChild(Ca)},fa.prototype.$renderLine=function(ma,va,xa){if(!xa&&xa!=!1&&(xa=this.session.getFoldLine(va)),xa)var ya=this.$getFoldLineTokens(va,xa);else var ya=this.session.getTokens(va);var Aa=ma;if(ya.length){var Ca=this.session.getRowSplitData(va);if(Ca&&Ca.length){this.$renderWrappedLine(ma,ya,Ca);var Aa=ma.lastChild}else{var Aa=ma;this.$useLineGroups()&&(Aa=this.$createLineElement(),ma.appendChild(Aa)),this.$renderSimpleLine(Aa,ya)}}else this.$useLineGroups()&&(Aa=this.$createLineElement(),ma.appendChild(Aa));if(this.showEOL&&Aa){xa&&(va=xa.end.row);var Sa=this.dom.createElement("span");Sa.className="ace_invisible ace_invisible_eol",Sa.textContent=va==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,Aa.appendChild(Sa)}},fa.prototype.$getFoldLineTokens=function(ma,va){var xa=this.session,ya=[];function Aa(Sa,wa,ba){for(var Ea=0,$a=0;$a+Sa[Ea].value.length<wa;)if($a+=Sa[Ea].value.length,Ea++,Ea==Sa.length)return;if($a!=wa){var Ma=Sa[Ea].value.substring(wa-$a);Ma.length>ba-wa&&(Ma=Ma.substring(0,ba-wa)),ya.push({type:Sa[Ea].type,value:Ma}),$a=wa+Ma.length,Ea+=1}for(;$a<ba&&Ea<Sa.length;){var Ma=Sa[Ea].value;Ma.length+$a>ba?ya.push({type:Sa[Ea].type,value:Ma.substring(0,ba-$a)}):ya.push(Sa[Ea]),$a+=Ma.length,Ea+=1}}var Ca=xa.getTokens(ma);return va.walk(function(Sa,wa,ba,Ea,$a){Sa!=null?ya.push({type:"fold",value:Sa}):($a&&(Ca=xa.getTokens(wa)),Ca.length&&Aa(Ca,Ea,ba))},va.end.row,this.session.getLine(va.end.row).length),ya},fa.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},fa}();ga.prototype.EOF_CHAR="¶",ga.prototype.EOL_CHAR_LF="¬",ga.prototype.EOL_CHAR_CRLF="¤",ga.prototype.EOL_CHAR=ga.prototype.EOL_CHAR_LF,ga.prototype.TAB_CHAR="—",ga.prototype.SPACE_CHAR="·",ga.prototype.$padding=0,ga.prototype.MAX_LINE_LENGTH=1e4,ga.prototype.showInvisibles=!1,ga.prototype.showSpaces=!1,ga.prototype.showTabs=!1,ga.prototype.showEOL=!1,ga.prototype.displayIndentGuides=!0,ga.prototype.$highlightIndentGuides=!0,ga.prototype.$tabStrings=[],ga.prototype.destroy={},ga.prototype.onChangeTabSize=ga.prototype.$computeTabString,sa.implement(ga.prototype,da),oa.Text=ga}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=function(){function ca(ua){this.element=sa.createElement("div"),this.element.className="ace_layer ace_cursor-layer",ua.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),sa.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return ca.prototype.$updateOpacity=function(ua){for(var da=this.cursors,pa=da.length;pa--;)sa.setStyle(da[pa].style,"opacity",ua?"":"0")},ca.prototype.$startCssAnimation=function(){for(var ua=this.cursors,da=ua.length;da--;)ua[da].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&sa.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},ca.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,sa.removeCssClass(this.element,"ace_animate-blinking")},ca.prototype.setPadding=function(ua){this.$padding=ua},ca.prototype.setSession=function(ua){this.session=ua},ca.prototype.setBlinking=function(ua){ua!=this.isBlinking&&(this.isBlinking=ua,this.restartTimer())},ca.prototype.setBlinkInterval=function(ua){ua!=this.blinkInterval&&(this.blinkInterval=ua,this.restartTimer())},ca.prototype.setSmoothBlinking=function(ua){ua!=this.smoothBlinking&&(this.smoothBlinking=ua,sa.setCssClass(this.element,"ace_smooth-blinking",ua),this.$updateCursors(!0),this.restartTimer())},ca.prototype.addCursor=function(){var ua=sa.createElement("div");return ua.className="ace_cursor",this.element.appendChild(ua),this.cursors.push(ua),ua},ca.prototype.removeCursor=function(){if(this.cursors.length>1){var ua=this.cursors.pop();return ua.parentNode.removeChild(ua),ua}},ca.prototype.hideCursor=function(){this.isVisible=!1,sa.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},ca.prototype.showCursor=function(){this.isVisible=!0,sa.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},ca.prototype.restartTimer=function(){var ua=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,sa.removeCssClass(this.element,"ace_smooth-blinking")),ua(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&sa.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),sa.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var da=function(){this.timeoutId=setTimeout(function(){ua(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){ua(!0),da()},this.blinkInterval),da()}},ca.prototype.getPixelPosition=function(ua,da){if(!this.config||!this.session)return{left:0,top:0};ua||(ua=this.session.selection.getCursor());var pa=this.session.documentToScreenPosition(ua),ha=this.$padding+(this.session.$bidiHandler.isBidiRow(pa.row,ua.row)?this.session.$bidiHandler.getPosLeft(pa.column):pa.column*this.config.characterWidth),ga=(pa.row-(da?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:ha,top:ga}},ca.prototype.isCursorInView=function(ua,da){return ua.top>=0&&ua.top<da.maxHeight},ca.prototype.update=function(ua){this.config=ua;var da=this.session.$selectionMarkers,pa=0,ha=0;(da===void 0||da.length===0)&&(da=[{cursor:null}]);for(var pa=0,ga=da.length;pa<ga;pa++){var fa=this.getPixelPosition(da[pa].cursor,!0);if(!((fa.top>ua.height+ua.offset||fa.top<0)&&pa>1)){var ma=this.cursors[ha++]||this.addCursor(),va=ma.style;this.drawCursor?this.drawCursor(ma,fa,ua,da[pa],this.session):this.isCursorInView(fa,ua)?(sa.setStyle(va,"display","block"),sa.translate(ma,fa.left,fa.top),sa.setStyle(va,"width",Math.round(ua.characterWidth)+"px"),sa.setStyle(va,"height",ua.lineHeight+"px")):sa.setStyle(va,"display","none")}}for(;this.cursors.length>ha;)this.removeCursor();var xa=this.session.getOverwrite();this.$setOverwrite(xa),this.$pixelPos=fa,this.restartTimer()},ca.prototype.$setOverwrite=function(ua){ua!=this.overwrite&&(this.overwrite=ua,ua?sa.addCssClass(this.element,"ace_overwrite-cursors"):sa.removeCssClass(this.element,"ace_overwrite-cursors"))},ca.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},ca}();la.prototype.$padding=0,la.prototype.drawCursor=null,oa.Cursor=la}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var ma=function(va,xa){return ma=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ya,Aa){ya.__proto__=Aa}||function(ya,Aa){for(var Ca in Aa)Object.prototype.hasOwnProperty.call(Aa,Ca)&&(ya[Ca]=Aa[Ca])},ma(va,xa)};return function(va,xa){if(typeof xa!="function"&&xa!==null)throw new TypeError("Class extends value "+String(xa)+" is not a constructor or null");ma(va,xa);function ya(){this.constructor=va}va.prototype=xa===null?Object.create(xa):(ya.prototype=xa.prototype,new ya)}}(),la=ra("./lib/oop"),ca=ra("./lib/dom"),ua=ra("./lib/event"),da=ra("./lib/event_emitter").EventEmitter,pa=32768,ha=function(){function ma(va,xa){this.element=ca.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+xa,this.inner=ca.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),va.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,ua.addListener(this.element,"scroll",this.onScroll.bind(this)),ua.addListener(this.element,"mousedown",ua.preventDefault)}return ma.prototype.setVisible=function(va){this.element.style.display=va?"":"none",this.isVisible=va,this.coeff=1},ma}();la.implement(ha.prototype,da);var ga=function(ma){sa(va,ma);function va(xa,ya){var Aa=ma.call(this,xa,"-v")||this;return Aa.scrollTop=0,Aa.scrollHeight=0,ya.$scrollbarWidth=Aa.width=ca.scrollbarWidth(xa.ownerDocument),Aa.inner.style.width=Aa.element.style.width=(Aa.width||15)+5+"px",Aa.$minWidth=0,Aa}return va.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var xa=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-xa)/(this.coeff-xa)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},va.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},va.prototype.setHeight=function(xa){this.element.style.height=xa+"px"},va.prototype.setScrollHeight=function(xa){this.scrollHeight=xa,xa>pa?(this.coeff=pa/xa,xa=pa):this.coeff!=1&&(this.coeff=1),this.inner.style.height=xa+"px"},va.prototype.setScrollTop=function(xa){this.scrollTop!=xa&&(this.skipEvent=!0,this.scrollTop=xa,this.element.scrollTop=xa*this.coeff)},va}(ha);ga.prototype.setInnerHeight=ga.prototype.setScrollHeight;var fa=function(ma){sa(va,ma);function va(xa,ya){var Aa=ma.call(this,xa,"-h")||this;return Aa.scrollLeft=0,Aa.height=ya.$scrollbarWidth,Aa.inner.style.height=Aa.element.style.height=(Aa.height||15)+5+"px",Aa}return va.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},va.prototype.getHeight=function(){return this.isVisible?this.height:0},va.prototype.setWidth=function(xa){this.element.style.width=xa+"px"},va.prototype.setInnerWidth=function(xa){this.inner.style.width=xa+"px"},va.prototype.setScrollWidth=function(xa){this.inner.style.width=xa+"px"},va.prototype.setScrollLeft=function(xa){this.scrollLeft!=xa&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=xa)},va}(ha);oa.ScrollBar=ga,oa.ScrollBarV=ga,oa.ScrollBarH=fa,oa.VScrollBar=ga,oa.HScrollBar=fa}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(ra,oa,aa){var sa=this&&this.__extends||function(){var fa=function(ma,va){return fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xa,ya){xa.__proto__=ya}||function(xa,ya){for(var Aa in ya)Object.prototype.hasOwnProperty.call(ya,Aa)&&(xa[Aa]=ya[Aa])},fa(ma,va)};return function(ma,va){if(typeof va!="function"&&va!==null)throw new TypeError("Class extends value "+String(va)+" is not a constructor or null");fa(ma,va);function xa(){this.constructor=ma}ma.prototype=va===null?Object.create(va):(xa.prototype=va.prototype,new xa)}}(),la=ra("./lib/oop"),ca=ra("./lib/dom"),ua=ra("./lib/event"),da=ra("./lib/event_emitter").EventEmitter;ca.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
  position: absolute;
  background: rgba(128, 128, 128, 0.6);
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid #bbb;
  border-radius: 2px;
  z-index: 8;
}
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
  position: absolute;
  z-index: 6;
  background: none;
  overflow: hidden!important;
}
.ace_editor>.ace_sb-v {
  z-index: 6;
  right: 0;
  top: 0;
  width: 12px;
}
.ace_editor>.ace_sb-v div {
  z-index: 8;
  right: 0;
  width: 100%;
}
.ace_editor>.ace_sb-h {
  bottom: 0;
  left: 0;
  height: 12px;
}
.ace_editor>.ace_sb-h div {
  bottom: 0;
  height: 100%;
}
.ace_editor>.ace_sb_grabbed {
  z-index: 8;
  background: #000;
}`,"ace_scrollbar.css",!1);var pa=function(){function fa(ma,va){this.element=ca.createElement("div"),this.element.className="ace_sb"+va,this.inner=ca.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,ma.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,ua.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return fa.prototype.setVisible=function(ma){this.element.style.display=ma?"":"none",this.isVisible=ma,this.coeff=1},fa}();la.implement(pa.prototype,da);var ha=function(fa){sa(ma,fa);function ma(va,xa){var ya=fa.call(this,va,"-v")||this;return ya.scrollTop=0,ya.scrollHeight=0,ya.parent=va,ya.width=ya.VScrollWidth,ya.renderer=xa,ya.inner.style.width=ya.element.style.width=(ya.width||15)+"px",ya.$minWidth=0,ya}return ma.prototype.onMouseDown=function(va,xa){if(va==="mousedown"&&!(ua.getButton(xa)!==0||xa.detail===2)){if(xa.target===this.inner){var ya=this,Aa=xa.clientY,Ca=function(Ia){Aa=Ia.clientY},Sa=function(){clearInterval($a)},wa=xa.clientY,ba=this.thumbTop,Ea=function(){if(Aa!==void 0){var Ia=ya.scrollTopFromThumbTop(ba+Aa-wa);Ia!==ya.scrollTop&&ya._emit("scroll",{data:Ia})}};ua.capture(this.inner,Ca,Sa);var $a=setInterval(Ea,20);return ua.preventDefault(xa)}var Ma=xa.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(Ma)}),ua.preventDefault(xa)}},ma.prototype.getHeight=function(){return this.height},ma.prototype.scrollTopFromThumbTop=function(va){var xa=va*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return xa=xa>>0,xa<0?xa=0:xa>this.pageHeight-this.viewHeight&&(xa=this.pageHeight-this.viewHeight),xa},ma.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},ma.prototype.setHeight=function(va){this.height=Math.max(0,va),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},ma.prototype.setScrollHeight=function(va,xa){this.pageHeight===va&&!xa||(this.pageHeight=va,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},ma.prototype.setScrollTop=function(va){this.scrollTop=va,va<0&&(va=0),this.thumbTop=va*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},ma}(pa);ha.prototype.setInnerHeight=ha.prototype.setScrollHeight;var ga=function(fa){sa(ma,fa);function ma(va,xa){var ya=fa.call(this,va,"-h")||this;return ya.scrollLeft=0,ya.scrollWidth=0,ya.height=ya.HScrollHeight,ya.inner.style.height=ya.element.style.height=(ya.height||12)+"px",ya.renderer=xa,ya}return ma.prototype.onMouseDown=function(va,xa){if(va==="mousedown"&&!(ua.getButton(xa)!==0||xa.detail===2)){if(xa.target===this.inner){var ya=this,Aa=xa.clientX,Ca=function(Ia){Aa=Ia.clientX},Sa=function(){clearInterval($a)},wa=xa.clientX,ba=this.thumbLeft,Ea=function(){if(Aa!==void 0){var Ia=ya.scrollLeftFromThumbLeft(ba+Aa-wa);Ia!==ya.scrollLeft&&ya._emit("scroll",{data:Ia})}};ua.capture(this.inner,Ca,Sa);var $a=setInterval(Ea,20);return ua.preventDefault(xa)}var Ma=xa.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(Ma)}),ua.preventDefault(xa)}},ma.prototype.getHeight=function(){return this.isVisible?this.height:0},ma.prototype.scrollLeftFromThumbLeft=function(va){var xa=va*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return xa=xa>>0,xa<0?xa=0:xa>this.pageWidth-this.viewWidth&&(xa=this.pageWidth-this.viewWidth),xa},ma.prototype.setWidth=function(va){this.width=Math.max(0,va),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},ma.prototype.setScrollWidth=function(va,xa){this.pageWidth===va&&!xa||(this.pageWidth=va,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},ma.prototype.setScrollLeft=function(va){this.scrollLeft=va,va<0&&(va=0),this.thumbLeft=va*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},ma}(pa);ga.prototype.setInnerWidth=ga.prototype.setScrollWidth,oa.ScrollBar=ha,oa.ScrollBarV=ha,oa.ScrollBarH=ga,oa.VScrollBar=ha,oa.HScrollBar=ga}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(ra,oa,aa){var sa=ra("./lib/event"),la=function(){function ca(ua,da){this.onRender=ua,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=da||window;var pa=this;this._flush=function(ha){pa.pending=!1;var ga=pa.changes;if(ga&&(sa.blockIdle(100),pa.changes=0,pa.onRender(ga)),pa.changes){if(pa.$recursionLimit--<0)return;pa.schedule()}else pa.$recursionLimit=2}}return ca.prototype.schedule=function(ua){this.changes=this.changes|ua,this.changes&&!this.pending&&(sa.nextFrame(this._flush),this.pending=!0)},ca.prototype.clear=function(ua){var da=this.changes;return this.changes=0,da},ca}();oa.RenderLoop=la}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("../lib/dom"),ca=ra("../lib/lang"),ua=ra("../lib/event"),da=ra("../lib/useragent"),pa=ra("../lib/event_emitter").EventEmitter,ha=512,ga=typeof ResizeObserver=="function",fa=200,ma=function(){function va(xa){this.el=la.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=la.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=la.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),xa.appendChild(this.el),this.$measureNode.textContent=ca.stringRepeat("X",ha),this.$characterSize={width:0,height:0},ga?this.$addObserver():this.checkForSizeChanges()}return va.prototype.$setMeasureNodeStyles=function(xa,ya){xa.width=xa.height="auto",xa.left=xa.top="0px",xa.visibility="hidden",xa.position="absolute",xa.whiteSpace="pre",da.isIE<8?xa["font-family"]="inherit":xa.font="inherit",xa.overflow=ya?"hidden":"visible"},va.prototype.checkForSizeChanges=function(xa){if(xa===void 0&&(xa=this.$measureSizes()),xa&&(this.$characterSize.width!==xa.width||this.$characterSize.height!==xa.height)){this.$measureNode.style.fontWeight="bold";var ya=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=xa,this.charSizes=Object.create(null),this.allowBoldFonts=ya&&ya.width===xa.width&&ya.height===xa.height,this._emit("changeCharacterSize",{data:xa})}},va.prototype.$addObserver=function(){var xa=this;this.$observer=new window.ResizeObserver(function(ya){xa.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},va.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var xa=this;return this.$pollSizeChangesTimer=ua.onIdle(function ya(){xa.checkForSizeChanges(),ua.onIdle(ya,500)},500)},va.prototype.setPolling=function(xa){xa?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},va.prototype.$measureSizes=function(xa){var ya={height:(xa||this.$measureNode).clientHeight,width:(xa||this.$measureNode).clientWidth/ha};return ya.width===0||ya.height===0?null:ya},va.prototype.$measureCharWidth=function(xa){this.$main.textContent=ca.stringRepeat(xa,ha);var ya=this.$main.getBoundingClientRect();return ya.width/ha},va.prototype.getCharacterWidth=function(xa){var ya=this.charSizes[xa];return ya===void 0&&(ya=this.charSizes[xa]=this.$measureCharWidth(xa)/this.$characterSize.width),ya},va.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},va.prototype.$getZoom=function(xa){return!xa||!xa.parentElement?1:(Number(window.getComputedStyle(xa).zoom)||1)*this.$getZoom(xa.parentElement)},va.prototype.$initTransformMeasureNodes=function(){var xa=function(ya,Aa){return["div",{style:"position: absolute;top:"+ya+"px;left:"+Aa+"px;"}]};this.els=la.buildDom([xa(0,0),xa(fa,0),xa(0,fa),xa(fa,fa)],this.el)},va.prototype.transformCoordinates=function(xa,ya){if(xa){var Aa=this.$getZoom(this.el);xa=ba(1/Aa,xa)}function Ca(Va,Ua,Qa){var Wa=Va[1]*Ua[0]-Va[0]*Ua[1];return[(-Ua[1]*Qa[0]+Ua[0]*Qa[1])/Wa,(+Va[1]*Qa[0]-Va[0]*Qa[1])/Wa]}function Sa(Va,Ua){return[Va[0]-Ua[0],Va[1]-Ua[1]]}function wa(Va,Ua){return[Va[0]+Ua[0],Va[1]+Ua[1]]}function ba(Va,Ua){return[Va*Ua[0],Va*Ua[1]]}this.els||this.$initTransformMeasureNodes();function Ea(Va){var Ua=Va.getBoundingClientRect();return[Ua.left,Ua.top]}var $a=Ea(this.els[0]),Ma=Ea(this.els[1]),Ia=Ea(this.els[2]),Oa=Ea(this.els[3]),Da=Ca(Sa(Oa,Ma),Sa(Oa,Ia),Sa(wa(Ma,Ia),wa(Oa,$a))),Ta=ba(1+Da[0],Sa(Ma,$a)),_a=ba(1+Da[1],Sa(Ia,$a));if(ya){var La=ya,Na=Da[0]*La[0]/fa+Da[1]*La[1]/fa+1,za=wa(ba(La[0],Ta),ba(La[1],_a));return wa(ba(1/Na/fa,za),$a)}var Fa=Sa(xa,$a),Ha=Ca(Sa(Ta,ba(Da[0],Fa)),Sa(_a,ba(Da[1],Fa)),Fa);return ba(fa,Ha)},va}();ma.prototype.$characterSize={width:0,height:0},sa.implement(ma.prototype,pa),oa.FontMetrics=ma}),ace.define("ace/css/editor-css",["require","exports","module"],function(ra,oa,aa){aa.exports=`
.ace_br1 {border-top-left-radius    : 3px;}
.ace_br2 {border-top-right-radius   : 3px;}
.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}
.ace_br4 {border-bottom-right-radius: 3px;}
.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}
.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}
.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}
.ace_br8 {border-bottom-left-radius : 3px;}
.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}
.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}
.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}


.ace_editor {
    position: relative;
    overflow: hidden;
    padding: 0;
    font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
    direction: ltr;
    text-align: left;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    forced-color-adjust: none;
}

.ace_scroller {
    position: absolute;
    overflow: hidden;
    top: 0;
    bottom: 0;
    background-color: inherit;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: text;
}

.ace_content {
    position: absolute;
    box-sizing: border-box;
    min-width: 100%;
    contain: style size layout;
    font-variant-ligatures: no-common-ligatures;
}

.ace_keyboard-focus:focus {
    box-shadow: inset 0 0 0 2px #5E9ED6;
    outline: none;
}

.ace_dragging .ace_scroller:before{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    background: rgba(250, 250, 250, 0.01);
    z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before{
    background: rgba(0, 0, 0, 0.01);
}

.ace_gutter {
    position: absolute;
    overflow : hidden;
    width: auto;
    top: 0;
    bottom: 0;
    left: 0;
    cursor: default;
    z-index: 4;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    contain: style size layout;
}

.ace_gutter-active-line {
    position: absolute;
    left: 0;
    right: 0;
}

.ace_scroller.ace_scroll-left:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
    pointer-events: none;
}

.ace_gutter-cell, .ace_gutter-cell_svg-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-left: 19px;
    padding-right: 6px;
    background-repeat: no-repeat;
}

.ace_gutter-cell_svg-icons .ace_gutter_annotation {
    margin-left: -14px;
    float: left;
}

.ace_gutter-cell .ace_gutter_annotation {
    margin-left: -19px;
    float: left;
}

.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: 2px center;
}

.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
}

.ace_icon_svg.ace_error {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
    background-color: crimson;
}
.ace_icon_svg.ace_security {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
    background-color: crimson;
}
.ace_icon_svg.ace_warning {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: darkorange;
}
.ace_icon_svg.ace_info {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
    background-color: royalblue;
}
.ace_icon_svg.ace_hint {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
    background-color: silver;
}

.ace_icon_svg.ace_error_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
    background-color: crimson;
}
.ace_icon_svg.ace_security_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
    background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
    background-color: darkorange;
}

.ace_scrollbar {
    contain: strict;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
}

.ace_scrollbar-inner {
    position: absolute;
    cursor: text;
    left: 0;
    top: 0;
}

.ace_scrollbar-v{
    overflow-x: hidden;
    overflow-y: scroll;
    top: 0;
}

.ace_scrollbar-h {
    overflow-x: scroll;
    overflow-y: hidden;
    left: 0;
}

.ace_print-margin {
    position: absolute;
    height: 100%;
}

.ace_text-input {
    position: absolute;
    z-index: 0;
    width: 0.5em;
    height: 1em;
    opacity: 0;
    background: transparent;
    -moz-appearance: none;
    appearance: none;
    border: none;
    resize: none;
    outline: none;
    overflow: hidden;
    font: inherit;
    padding: 0 1px;
    margin: 0 -1px;
    contain: strict;
    -ms-user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
    /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
    white-space: pre!important;
}
.ace_text-input.ace_composition {
    background: transparent;
    color: inherit;
    z-index: 1000;
    opacity: 1;
}
.ace_composition_placeholder { color: transparent }
.ace_composition_marker { 
    border-bottom: 1px solid;
    position: absolute;
    border-radius: 0;
    margin-top: 1px;
}

[ace_nocontext=true] {
    transform: none!important;
    filter: none!important;
    clip-path: none!important;
    mask : none!important;
    contain: none!important;
    perspective: none!important;
    mix-blend-mode: initial!important;
    z-index: auto;
}

.ace_layer {
    z-index: 1;
    position: absolute;
    overflow: hidden;
    /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
    word-wrap: normal;
    white-space: pre;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    /* setting pointer-events: auto; on node under the mouse, which changes
        during scroll, will break mouse wheel scrolling in Safari */
    pointer-events: none;
}

.ace_gutter-layer {
    position: relative;
    width: auto;
    text-align: right;
    pointer-events: auto;
    height: 1000000px;
    contain: style size layout;
}

.ace_text-layer {
    font: inherit !important;
    position: absolute;
    height: 1000000px;
    width: 1000000px;
    contain: style size layout;
}

.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
    contain: style size layout;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
    contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line, 
.ace_hidpi .ace_text-layer > .ace_line_group {
    contain: strict;
}

.ace_cjk {
    display: inline-block;
    text-align: center;
}

.ace_cursor-layer {
    z-index: 4;
}

.ace_cursor {
    z-index: 4;
    position: absolute;
    box-sizing: border-box;
    border-left: 2px solid;
    /* workaround for smooth cursor repaintng whole screen in chrome */
    transform: translatez(0);
}

.ace_multiselect .ace_cursor {
    border-left-width: 1px;
}

.ace_slim-cursors .ace_cursor {
    border-left-width: 1px;
}

.ace_overwrite-cursors .ace_cursor {
    border-left-width: 0;
    border-bottom: 1px solid;
}

.ace_hidden-cursors .ace_cursor {
    opacity: 0.2;
}

.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
    opacity: 0;
}

.ace_smooth-blinking .ace_cursor {
    transition: opacity 0.18s;
}

.ace_animate-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: step-end;
    animation-name: blink-ace-animate;
    animation-iteration-count: infinite;
}

.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
    animation-duration: 1000ms;
    animation-timing-function: ease-in-out;
    animation-name: blink-ace-animate-smooth;
}
    
@keyframes blink-ace-animate {
    from, to { opacity: 1; }
    60% { opacity: 0; }
}

@keyframes blink-ace-animate-smooth {
    from, to { opacity: 1; }
    45% { opacity: 1; }
    60% { opacity: 0; }
    85% { opacity: 0; }
}

.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
    position: absolute;
    z-index: 3;
}

.ace_marker-layer .ace_selection {
    position: absolute;
    z-index: 5;
}

.ace_marker-layer .ace_bracket {
    position: absolute;
    z-index: 6;
}

.ace_marker-layer .ace_error_bracket {
    position: absolute;
    border-bottom: 1px solid #DE5555;
    border-radius: 0;
}

.ace_marker-layer .ace_active-line {
    position: absolute;
    z-index: 2;
}

.ace_marker-layer .ace_selected-word {
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
}

.ace_line .ace_fold {
    box-sizing: border-box;

    display: inline-block;
    height: 11px;
    margin-top: -2px;
    vertical-align: middle;

    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
    background-repeat: no-repeat, repeat-x;
    background-position: center center, top left;
    color: transparent;

    border: 1px solid black;
    border-radius: 2px;

    cursor: pointer;
    pointer-events: auto;
}

.ace_dark .ace_fold {
}

.ace_fold:hover{
    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
}

.ace_tooltip {
    background-color: #f5f5f5;
    border: 1px solid gray;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: black;
    max-width: 100%;
    padding: 3px 4px;
    position: fixed;
    z-index: 999999;
    box-sizing: border-box;
    cursor: default;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    pointer-events: none;
    overflow: auto;
    max-width: min(60em, 66vw);
    overscroll-behavior: contain;
}
.ace_tooltip pre {
    white-space: pre-wrap;
}

.ace_tooltip.ace_dark {
    background-color: #636363;
    color: #fff;
}

.ace_tooltip:focus {
    outline: 1px solid #5E9ED6;
}

.ace_icon {
    display: inline-block;
    width: 18px;
    vertical-align: top;
}

.ace_icon_svg {
    display: inline-block;
    width: 12px;
    vertical-align: top;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 12px;
    -webkit-mask-position: center;
}

.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
    padding-right: 13px;
}

.ace_fold-widget {
    box-sizing: border-box;

    margin: 0 -12px 0 1px;
    display: none;
    width: 11px;
    vertical-align: top;

    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 3px;
    
    border: 1px solid transparent;
    cursor: pointer;
}

.ace_folding-enabled .ace_fold-widget {
    display: inline-block;   
}

.ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
}

.ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
}

.ace_fold-widget:hover {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.ace_fold-widget:active {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
 * Dark version for fold widgets
 */
.ace_dark .ace_fold-widget {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
}
.ace_dark .ace_fold-widget.ace_end {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget.ace_closed {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
}
.ace_dark .ace_fold-widget:hover {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.ace_inline_button {
    border: 1px solid lightgray;
    display: inline-block;
    margin: -1px 8px;
    padding: 0 5px;
    pointer-events: auto;
    cursor: pointer;
}
.ace_inline_button:hover {
    border-color: gray;
    background: rgba(200,200,200,0.2);
    display: inline-block;
    pointer-events: auto;
}

.ace_fold-widget.ace_invalid {
    background-color: #FFB4B4;
    border-color: #DE5555;
}

.ace_fade-fold-widgets .ace_fold-widget {
    transition: opacity 0.4s ease 0.05s;
    opacity: 0;
}

.ace_fade-fold-widgets:hover .ace_fold-widget {
    transition: opacity 0.05s ease 0.05s;
    opacity:1;
}

.ace_underline {
    text-decoration: underline;
}

.ace_bold {
    font-weight: bold;
}

.ace_nobold .ace_bold {
    font-weight: normal;
}

.ace_italic {
    font-style: italic;
}


.ace_error-marker {
    background-color: rgba(255, 0, 0,0.2);
    position: absolute;
    z-index: 9;
}

.ace_highlight-marker {
    background-color: rgba(255, 255, 0,0.2);
    position: absolute;
    z-index: 8;
}

.ace_mobile-menu {
    position: absolute;
    line-height: 1.5;
    border-radius: 4px;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    background: white;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #dcdcdc;
    color: black;
}
.ace_dark > .ace_mobile-menu {
    background: #333;
    color: #ccc;
    box-shadow: 1px 3px 2px grey;
    border: 1px solid #444;

}
.ace_mobile-button {
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
}
.ace_mobile-button:hover {
    background-color: #eee;
    opacity:1;
}
.ace_mobile-button:active {
    background-color: #ddd;
}

.ace_placeholder {
    position: relative;
    font-family: arial;
    transform: scale(0.9);
    transform-origin: left;
    white-space: pre;
    opacity: 0.7;
    margin: 0 10px;
    z-index: 1;
}

.ace_ghost_text {
    opacity: 0.5;
    font-style: italic;
}

.ace_ghost_text_container > div {
    white-space: pre;
}

.ghost_text_line_wrapped::after {
    content: "↩";
    position: absolute;
}

.ace_lineWidgetContainer.ace_ghost_text {
    margin: 0px 4px
}

.ace_screenreader-only {
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}

.ace_hidden_token {
    display: none;
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=ra("../lib/oop"),ca=ra("../lib/event_emitter").EventEmitter,ua=function(){function da(pa,ha){this.canvas=sa.createElement("canvas"),this.renderer=ha,this.pixelRatio=1,this.maxHeight=ha.layerConfig.maxHeight,this.lineHeight=ha.layerConfig.lineHeight,this.canvasHeight=pa.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=pa.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},pa.element.appendChild(this.canvas)}return da.prototype.$updateDecorators=function(pa){var ha=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(pa){this.maxHeight=pa.maxHeight,this.lineHeight=pa.lineHeight,this.canvasHeight=pa.height;var ga=(pa.lastRow+1)*this.lineHeight;ga<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var fa=this.canvas.getContext("2d");function ma(Oa,Da){return Oa.priority<Da.priority?-1:Oa.priority>Da.priority?1:0}var va=this.renderer.session.$annotations;if(fa.clearRect(0,0,this.canvas.width,this.canvas.height),va){var xa={info:1,warning:2,error:3};va.forEach(function(Oa){Oa.priority=xa[Oa.type]||null}),va=va.sort(ma);for(var ya=this.renderer.session.$foldData,Aa=0;Aa<va.length;Aa++){var Ca=va[Aa].row,Sa=this.compensateFoldRows(Ca,ya),wa=Math.round((Ca-Sa)*this.lineHeight*this.heightRatio),ba=Math.round((Ca-Sa)*this.lineHeight*this.heightRatio),Ea=Math.round(((Ca-Sa)*this.lineHeight+this.lineHeight)*this.heightRatio),$a=Ea-ba;if($a<this.minDecorationHeight){var Ma=(ba+Ea)/2|0;Ma<this.halfMinDecorationHeight?Ma=this.halfMinDecorationHeight:Ma+this.halfMinDecorationHeight>this.canvasHeight&&(Ma=this.canvasHeight-this.halfMinDecorationHeight),ba=Math.round(Ma-this.halfMinDecorationHeight),Ea=Math.round(Ma+this.halfMinDecorationHeight)}fa.fillStyle=ha[va[Aa].type]||null,fa.fillRect(0,wa,this.canvasWidth,Ea-ba)}}var Ia=this.renderer.session.selection.getCursor();if(Ia){var Sa=this.compensateFoldRows(Ia.row,ya),wa=Math.round((Ia.row-Sa)*this.lineHeight*this.heightRatio);fa.fillStyle="rgba(0, 0, 0, 0.5)",fa.fillRect(0,wa,this.canvasWidth,2)}},da.prototype.compensateFoldRows=function(pa,ha){var ga=0;if(ha&&ha.length>0)for(var fa=0;fa<ha.length;fa++)pa>ha[fa].start.row&&pa<ha[fa].end.row?ga+=pa-ha[fa].start.row:pa>=ha[fa].end.row&&(ga+=ha[fa].end.row-ha[fa].start.row);return ga},da}();la.implement(ua.prototype,ca),oa.Decorator=ua}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(ra,oa,aa){var sa=ra("./lib/oop"),la=ra("./lib/dom"),ca=ra("./lib/lang"),ua=ra("./config"),da=ra("./layer/gutter").Gutter,pa=ra("./layer/marker").Marker,ha=ra("./layer/text").Text,ga=ra("./layer/cursor").Cursor,fa=ra("./scrollbar").HScrollBar,ma=ra("./scrollbar").VScrollBar,va=ra("./scrollbar_custom").HScrollBar,xa=ra("./scrollbar_custom").VScrollBar,ya=ra("./renderloop").RenderLoop,Aa=ra("./layer/font_metrics").FontMetrics,Ca=ra("./lib/event_emitter").EventEmitter,Sa=ra("./css/editor-css"),wa=ra("./layer/decorators").Decorator,ba=ra("./lib/useragent"),Ea=ra("./layer/text_util").isTextToken;la.importCssString(Sa,"ace_editor.css",!1);var $a=function(){function Ma(Ia,Oa){var Da=this;this.container=Ia||la.createElement("div"),la.addCssClass(this.container,"ace_editor"),la.HI_DPI&&la.addCssClass(this.container,"ace_hidpi"),this.setTheme(Oa),ua.get("useStrictCSP")==null&&ua.set("useStrictCSP",!1),this.$gutter=la.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=la.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=la.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new da(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new pa(this.content);var Ta=this.$textLayer=new ha(this.content);this.canvas=Ta.element,this.$markerFront=new pa(this.content),this.$cursorLayer=new ga(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new ma(this.container,this),this.scrollBarH=new fa(this.container,this),this.scrollBarV.on("scroll",function(_a){Da.$scrollAnimation||Da.session.setScrollTop(_a.data-Da.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_a){Da.$scrollAnimation||Da.session.setScrollLeft(_a.data-Da.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Aa(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(_a){Da.updateCharacterSize(),Da.onResize(!0,Da.gutterWidth,Da.$size.width,Da.$size.height),Da._signal("changeCharacterSize",_a)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!ba.isIOS,this.$loop=new ya(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),ua.resetOptions(this),ua._signal("renderer",this)}return Ma.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),la.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},Ma.prototype.setSession=function(Ia){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=Ia,Ia&&this.scrollMargin.top&&Ia.getScrollTop()<=0&&Ia.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(Ia),this.$markerBack.setSession(Ia),this.$markerFront.setSession(Ia),this.$gutterLayer.setSession(Ia),this.$textLayer.setSession(Ia),Ia&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},Ma.prototype.updateLines=function(Ia,Oa,Da){if(Oa===void 0&&(Oa=1/0),this.$changedLines?(this.$changedLines.firstRow>Ia&&(this.$changedLines.firstRow=Ia),this.$changedLines.lastRow<Oa&&(this.$changedLines.lastRow=Oa)):this.$changedLines={firstRow:Ia,lastRow:Oa},this.$changedLines.lastRow<this.layerConfig.firstRow)if(Da)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},Ma.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},Ma.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},Ma.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},Ma.prototype.updateFull=function(Ia){Ia?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},Ma.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},Ma.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},Ma.prototype.onResize=function(Ia,Oa,Da,Ta){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=Ia?1:0;var _a=this.container;Ta||(Ta=_a.clientHeight||_a.scrollHeight),!Ta&&this.$maxLines&&this.lineHeight>1&&(!_a.style.height||_a.style.height=="0px")&&(_a.style.height="1px",Ta=_a.clientHeight||_a.scrollHeight),Da||(Da=_a.clientWidth||_a.scrollWidth);var La=this.$updateCachedSize(Ia,Oa,Da,Ta);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!Da&&!Ta)return this.resizing=0;Ia&&(this.$gutterLayer.$padding=null),Ia?this.$renderChanges(La|this.$changes,!0):this.$loop.schedule(La|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},Ma.prototype.$updateCachedSize=function(Ia,Oa,Da,Ta){Ta-=this.$extraHeight||0;var _a=0,La=this.$size,Na={width:La.width,height:La.height,scrollerHeight:La.scrollerHeight,scrollerWidth:La.scrollerWidth};if(Ta&&(Ia||La.height!=Ta)&&(La.height=Ta,_a|=this.CHANGE_SIZE,La.scrollerHeight=La.height,this.$horizScroll&&(La.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(La.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_a=_a|this.CHANGE_SCROLL),Da&&(Ia||La.width!=Da)){_a|=this.CHANGE_SIZE,La.width=Da,Oa==null&&(Oa=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=Oa,la.setStyle(this.scrollBarH.element.style,"left",Oa+"px"),la.setStyle(this.scroller.style,"left",Oa+this.margin.left+"px"),La.scrollerWidth=Math.max(0,Da-Oa-this.scrollBarV.getWidth()-this.margin.h),la.setStyle(this.$gutter.style,"left",this.margin.left+"px");var za=this.scrollBarV.getWidth()+"px";la.setStyle(this.scrollBarH.element.style,"right",za),la.setStyle(this.scroller.style,"right",za),la.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(La.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||Ia)&&(_a|=this.CHANGE_FULL)}return La.$dirty=!Da||!Ta,_a&&this._signal("resize",Na),_a},Ma.prototype.onGutterResize=function(Ia){var Oa=this.$showGutter?Ia:0;Oa!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,Oa,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},Ma.prototype.adjustWrapLimit=function(){var Ia=this.$size.scrollerWidth-this.$padding*2,Oa=Math.floor(Ia/this.characterWidth);return this.session.adjustWrapLimit(Oa,this.$showPrintMargin&&this.$printMarginColumn)},Ma.prototype.setAnimatedScroll=function(Ia){this.setOption("animatedScroll",Ia)},Ma.prototype.getAnimatedScroll=function(){return this.$animatedScroll},Ma.prototype.setShowInvisibles=function(Ia){this.setOption("showInvisibles",Ia),this.session.$bidiHandler.setShowInvisibles(Ia)},Ma.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},Ma.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},Ma.prototype.setDisplayIndentGuides=function(Ia){this.setOption("displayIndentGuides",Ia)},Ma.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},Ma.prototype.setHighlightIndentGuides=function(Ia){this.setOption("highlightIndentGuides",Ia)},Ma.prototype.setShowPrintMargin=function(Ia){this.setOption("showPrintMargin",Ia)},Ma.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},Ma.prototype.setPrintMarginColumn=function(Ia){this.setOption("printMarginColumn",Ia)},Ma.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},Ma.prototype.getShowGutter=function(){return this.getOption("showGutter")},Ma.prototype.setShowGutter=function(Ia){return this.setOption("showGutter",Ia)},Ma.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},Ma.prototype.setFadeFoldWidgets=function(Ia){this.setOption("fadeFoldWidgets",Ia)},Ma.prototype.setHighlightGutterLine=function(Ia){this.setOption("highlightGutterLine",Ia)},Ma.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},Ma.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var Ia=la.createElement("div");Ia.className="ace_layer ace_print-margin-layer",this.$printMarginEl=la.createElement("div"),this.$printMarginEl.className="ace_print-margin",Ia.appendChild(this.$printMarginEl),this.content.insertBefore(Ia,this.content.firstChild)}var Oa=this.$printMarginEl.style;Oa.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",Oa.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},Ma.prototype.getContainerElement=function(){return this.container},Ma.prototype.getMouseEventTarget=function(){return this.scroller},Ma.prototype.getTextAreaContainer=function(){return this.container},Ma.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var Ia=this.textarea.style,Oa=this.$composition;if(!this.$keepTextAreaAtCursor&&!Oa){la.translate(this.textarea,-100,0);return}var Da=this.$cursorLayer.$pixelPos;if(Da){Oa&&Oa.markerRange&&(Da=this.$cursorLayer.getPixelPosition(Oa.markerRange.start,!0));var Ta=this.layerConfig,_a=Da.top,La=Da.left;_a-=Ta.offset;var Na=Oa&&Oa.useTextareaForIME||ba.isMobile?this.lineHeight:1;if(_a<0||_a>Ta.height-Na){la.translate(this.textarea,0,0);return}var za=1,Fa=this.$size.height-Na;if(!Oa)_a+=this.lineHeight;else if(Oa.useTextareaForIME){var Ha=this.textarea.value;za=this.characterWidth*this.session.$getStringScreenWidth(Ha)[0]}else _a+=this.lineHeight+2;La-=this.scrollLeft,La>this.$size.scrollerWidth-za&&(La=this.$size.scrollerWidth-za),La+=this.gutterWidth+this.margin.left,la.setStyle(Ia,"height",Na+"px"),la.setStyle(Ia,"width",za+"px"),la.translate(this.textarea,Math.min(La,this.$size.scrollerWidth-za),Math.min(_a,Fa))}}},Ma.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},Ma.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},Ma.prototype.getLastFullyVisibleRow=function(){var Ia=this.layerConfig,Oa=Ia.lastRow,Da=this.session.documentToScreenRow(Oa,0)*Ia.lineHeight;return Da-this.session.getScrollTop()>Ia.height-Ia.lineHeight?Oa-1:Oa},Ma.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},Ma.prototype.setPadding=function(Ia){this.$padding=Ia,this.$textLayer.setPadding(Ia),this.$cursorLayer.setPadding(Ia),this.$markerFront.setPadding(Ia),this.$markerBack.setPadding(Ia),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},Ma.prototype.setScrollMargin=function(Ia,Oa,Da,Ta){var _a=this.scrollMargin;_a.top=Ia|0,_a.bottom=Oa|0,_a.right=Ta|0,_a.left=Da|0,_a.v=_a.top+_a.bottom,_a.h=_a.left+_a.right,_a.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_a.top),this.updateFull()},Ma.prototype.setMargin=function(Ia,Oa,Da,Ta){var _a=this.margin;_a.top=Ia|0,_a.bottom=Oa|0,_a.right=Ta|0,_a.left=Da|0,_a.v=_a.top+_a.bottom,_a.h=_a.left+_a.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},Ma.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},Ma.prototype.setHScrollBarAlwaysVisible=function(Ia){this.setOption("hScrollBarAlwaysVisible",Ia)},Ma.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},Ma.prototype.setVScrollBarAlwaysVisible=function(Ia){this.setOption("vScrollBarAlwaysVisible",Ia)},Ma.prototype.$updateScrollBarV=function(){var Ia=this.layerConfig.maxHeight,Oa=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(Ia-=(Oa-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>Ia-Oa&&(Ia=this.scrollTop+Oa,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(Ia+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},Ma.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},Ma.prototype.freeze=function(){this.$frozen=!0},Ma.prototype.unfreeze=function(){this.$frozen=!1},Ma.prototype.$renderChanges=function(Ia,Oa){if(this.$changes&&(Ia|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!Ia&&!Oa){this.$changes|=Ia;return}if(this.$size.$dirty)return this.$changes|=Ia,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",Ia),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var Da=this.layerConfig;if(Ia&this.CHANGE_FULL||Ia&this.CHANGE_SIZE||Ia&this.CHANGE_TEXT||Ia&this.CHANGE_LINES||Ia&this.CHANGE_SCROLL||Ia&this.CHANGE_H_SCROLL){if(Ia|=this.$computeLayerConfig()|this.$loop.clear(),Da.firstRow!=this.layerConfig.firstRow&&Da.firstRowScreen==this.layerConfig.firstRowScreen){var Ta=this.scrollTop+(Da.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;Ta>0&&(this.scrollTop=Ta,Ia=Ia|this.CHANGE_SCROLL,Ia|=this.$computeLayerConfig()|this.$loop.clear())}Da=this.layerConfig,this.$updateScrollBarV(),Ia&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),la.translate(this.content,-this.scrollLeft,-Da.offset);var _a=Da.width+2*this.$padding+"px",La=Da.minHeight+"px";la.setStyle(this.content.style,"width",_a),la.setStyle(this.content.style,"height",La)}if(Ia&this.CHANGE_H_SCROLL&&(la.translate(this.content,-this.scrollLeft,-Da.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),Ia&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(Da),this.$showGutter&&this.$gutterLayer.update(Da),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da),this.$markerBack.update(Da),this.$markerFront.update(Da),this.$cursorLayer.update(Da),this.$moveTextAreaToCursor(),this._signal("afterRender",Ia);return}if(Ia&this.CHANGE_SCROLL){this.$changedLines=null,Ia&this.CHANGE_TEXT||Ia&this.CHANGE_LINES?this.$textLayer.update(Da):this.$textLayer.scrollLines(Da),this.$showGutter&&(Ia&this.CHANGE_GUTTER||Ia&this.CHANGE_LINES?this.$gutterLayer.update(Da):this.$gutterLayer.scrollLines(Da)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da),this.$markerBack.update(Da),this.$markerFront.update(Da),this.$cursorLayer.update(Da),this.$moveTextAreaToCursor(),this._signal("afterRender",Ia);return}Ia&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(Da),this.$showGutter&&this.$gutterLayer.update(Da),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da)):Ia&this.CHANGE_LINES?((this.$updateLines()||Ia&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(Da),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da)):Ia&this.CHANGE_TEXT||Ia&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(Da),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da)):Ia&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(Da),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(Da)),Ia&this.CHANGE_CURSOR&&(this.$cursorLayer.update(Da),this.$moveTextAreaToCursor()),Ia&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(Da),Ia&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(Da),this._signal("afterRender",Ia)},Ma.prototype.$autosize=function(){var Ia=this.session.getScreenLength()*this.lineHeight,Oa=this.$maxLines*this.lineHeight,Da=Math.min(Oa,Math.max((this.$minLines||1)*this.lineHeight,Ia))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(Da+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&Da>this.$maxPixelHeight&&(Da=this.$maxPixelHeight);var Ta=Da<=2*this.lineHeight,_a=!Ta&&Ia>Oa;if(Da!=this.desiredHeight||this.$size.height!=this.desiredHeight||_a!=this.$vScroll){_a!=this.$vScroll&&(this.$vScroll=_a,this.scrollBarV.setVisible(_a));var La=this.container.clientWidth;this.container.style.height=Da+"px",this.$updateCachedSize(!0,this.$gutterWidth,La,Da),this.desiredHeight=Da,this._signal("autosize")}},Ma.prototype.$computeLayerConfig=function(){var Ia=this.session,Oa=this.$size,Da=Oa.height<=2*this.lineHeight,Ta=this.session.getScreenLength(),_a=Ta*this.lineHeight,La=this.$getLongestLine(),Na=!Da&&(this.$hScrollBarAlwaysVisible||Oa.scrollerWidth-La-2*this.$padding<0),za=this.$horizScroll!==Na;za&&(this.$horizScroll=Na,this.scrollBarH.setVisible(Na));var Fa=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),Da=Oa.height<=2*this.lineHeight);var Ha=Oa.scrollerHeight+this.lineHeight,Va=!this.$maxLines&&this.$scrollPastEnd?(Oa.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;_a+=Va;var Ua=this.scrollMargin;this.session.setScrollTop(Math.max(-Ua.top,Math.min(this.scrollTop,_a-Oa.scrollerHeight+Ua.bottom))),this.session.setScrollLeft(Math.max(-Ua.left,Math.min(this.scrollLeft,La+2*this.$padding-Oa.scrollerWidth+Ua.right)));var Qa=!Da&&(this.$vScrollBarAlwaysVisible||Oa.scrollerHeight-_a+Va<0||this.scrollTop>Ua.top),Wa=Fa!==Qa;Wa&&(this.$vScroll=Qa,this.scrollBarV.setVisible(Qa));var Za=this.scrollTop%this.lineHeight,Xa=Math.ceil(Ha/this.lineHeight)-1,tl=Math.max(0,Math.round((this.scrollTop-Za)/this.lineHeight)),il=tl+Xa,Ja,nl,Ya=this.lineHeight;tl=Ia.screenToDocumentRow(tl,0);var rl=Ia.getFoldLine(tl);rl&&(tl=rl.start.row),Ja=Ia.documentToScreenRow(tl,0),nl=Ia.getRowLength(tl)*Ya,il=Math.min(Ia.screenToDocumentRow(il,0),Ia.getLength()-1),Ha=Oa.scrollerHeight+Ia.getRowLength(il)*Ya+nl,Za=this.scrollTop-Ja*Ya;var sl=0;return(this.layerConfig.width!=La||za)&&(sl=this.CHANGE_H_SCROLL),(za||Wa)&&(sl|=this.$updateCachedSize(!0,this.gutterWidth,Oa.width,Oa.height),this._signal("scrollbarVisibilityChanged"),Wa&&(La=this.$getLongestLine())),this.layerConfig={width:La,padding:this.$padding,firstRow:tl,firstRowScreen:Ja,lastRow:il,lineHeight:Ya,characterWidth:this.characterWidth,minHeight:Ha,maxHeight:_a,offset:Za,gutterOffset:Ya?Math.max(0,Math.ceil((Za+Oa.height-Oa.scrollerHeight)/Ya)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(La-this.$padding),sl},Ma.prototype.$updateLines=function(){if(this.$changedLines){var Ia=this.$changedLines.firstRow,Oa=this.$changedLines.lastRow;this.$changedLines=null;var Da=this.layerConfig;if(!(Ia>Da.lastRow+1)&&!(Oa<Da.firstRow)){if(Oa===1/0){this.$showGutter&&this.$gutterLayer.update(Da),this.$textLayer.update(Da);return}return this.$textLayer.updateLines(Da,Ia,Oa),!0}}},Ma.prototype.$getLongestLine=function(){var Ia=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(Ia+=1),this.$textLayer&&Ia>this.$textLayer.MAX_LINE_LENGTH&&(Ia=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(Ia*this.characterWidth))},Ma.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},Ma.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},Ma.prototype.addGutterDecoration=function(Ia,Oa){this.$gutterLayer.addGutterDecoration(Ia,Oa)},Ma.prototype.removeGutterDecoration=function(Ia,Oa){this.$gutterLayer.removeGutterDecoration(Ia,Oa)},Ma.prototype.updateBreakpoints=function(Ia){this._rows=Ia,this.$loop.schedule(this.CHANGE_GUTTER)},Ma.prototype.setAnnotations=function(Ia){this.$gutterLayer.setAnnotations(Ia),this.$loop.schedule(this.CHANGE_GUTTER)},Ma.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},Ma.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},Ma.prototype.showCursor=function(){this.$cursorLayer.showCursor()},Ma.prototype.scrollSelectionIntoView=function(Ia,Oa,Da){this.scrollCursorIntoView(Ia,Da),this.scrollCursorIntoView(Oa,Da)},Ma.prototype.scrollCursorIntoView=function(Ia,Oa,Da){if(this.$size.scrollerHeight!==0){var Ta=this.$cursorLayer.getPixelPosition(Ia),_a=Ta.left,La=Ta.top,Na=Da&&Da.top||0,za=Da&&Da.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var Fa=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Fa+Na>La?(Oa&&Fa+Na>La+this.lineHeight&&(La-=Oa*this.$size.scrollerHeight),La===0&&(La=-this.scrollMargin.top),this.session.setScrollTop(La)):Fa+this.$size.scrollerHeight-za<La+this.lineHeight&&(Oa&&Fa+this.$size.scrollerHeight-za<La-this.lineHeight&&(La+=Oa*this.$size.scrollerHeight),this.session.setScrollTop(La+this.lineHeight+za-this.$size.scrollerHeight));var Ha=this.scrollLeft,Va=2*this.layerConfig.characterWidth;_a-Va<Ha?(_a-=Va,_a<this.$padding+Va&&(_a=-this.scrollMargin.left),this.session.setScrollLeft(_a)):(_a+=Va,Ha+this.$size.scrollerWidth<_a+this.characterWidth?this.session.setScrollLeft(Math.round(_a+this.characterWidth-this.$size.scrollerWidth)):Ha<=this.$padding&&_a-Ha<this.characterWidth&&this.session.setScrollLeft(0))}},Ma.prototype.getScrollTop=function(){return this.session.getScrollTop()},Ma.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},Ma.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},Ma.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},Ma.prototype.scrollToRow=function(Ia){this.session.setScrollTop(Ia*this.lineHeight)},Ma.prototype.alignCursor=function(Ia,Oa){typeof Ia=="number"&&(Ia={row:Ia,column:0});var Da=this.$cursorLayer.getPixelPosition(Ia),Ta=this.$size.scrollerHeight-this.lineHeight,_a=Da.top-Ta*(Oa||0);return this.session.setScrollTop(_a),_a},Ma.prototype.$calcSteps=function(Ia,Oa){var Da=0,Ta=this.STEPS,_a=[],La=function(Na,za,Fa){return Fa*(Math.pow(Na-1,3)+1)+za};for(Da=0;Da<Ta;++Da)_a.push(La(Da/this.STEPS,Ia,Oa-Ia));return _a},Ma.prototype.scrollToLine=function(Ia,Oa,Da,Ta){var _a=this.$cursorLayer.getPixelPosition({row:Ia,column:0}),La=_a.top;Oa&&(La-=this.$size.scrollerHeight/2);var Na=this.scrollTop;this.session.setScrollTop(La),Da!==!1&&this.animateScrolling(Na,Ta)},Ma.prototype.animateScrolling=function(Ia,Oa){var Da=this.scrollTop;if(!this.$animatedScroll)return;var Ta=this;if(Ia==Da)return;if(this.$scrollAnimation){var _a=this.$scrollAnimation.steps;if(_a.length&&(Ia=_a[0],Ia==Da))return}var La=Ta.$calcSteps(Ia,Da);this.$scrollAnimation={from:Ia,to:Da,steps:La},clearInterval(this.$timer),Ta.session.setScrollTop(La.shift()),Ta.session.$scrollTop=Da;function Na(){Ta.$timer=clearInterval(Ta.$timer),Ta.$scrollAnimation=null,Ta.$stopAnimation=!1,Oa&&Oa()}this.$timer=setInterval(function(){if(Ta.$stopAnimation){Na();return}if(!Ta.session)return clearInterval(Ta.$timer);La.length?(Ta.session.setScrollTop(La.shift()),Ta.session.$scrollTop=Da):Da!=null?(Ta.session.$scrollTop=-1,Ta.session.setScrollTop(Da),Da=null):Na()},10)},Ma.prototype.scrollToY=function(Ia){this.scrollTop!==Ia&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=Ia)},Ma.prototype.scrollToX=function(Ia){this.scrollLeft!==Ia&&(this.scrollLeft=Ia),this.$loop.schedule(this.CHANGE_H_SCROLL)},Ma.prototype.scrollTo=function(Ia,Oa){this.session.setScrollTop(Oa),this.session.setScrollLeft(Ia)},Ma.prototype.scrollBy=function(Ia,Oa){Oa&&this.session.setScrollTop(this.session.getScrollTop()+Oa),Ia&&this.session.setScrollLeft(this.session.getScrollLeft()+Ia)},Ma.prototype.isScrollableBy=function(Ia,Oa){if(Oa<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||Oa>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||Ia<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||Ia>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},Ma.prototype.pixelToScreenCoordinates=function(Ia,Oa){var Da;if(this.$hasCssTransforms){Da={top:0,left:0};var Ta=this.$fontMetrics.transformCoordinates([Ia,Oa]);Ia=Ta[1]-this.gutterWidth-this.margin.left,Oa=Ta[0]}else Da=this.scroller.getBoundingClientRect();var _a=Ia+this.scrollLeft-Da.left-this.$padding,La=_a/this.characterWidth,Na=Math.floor((Oa+this.scrollTop-Da.top)/this.lineHeight),za=this.$blockCursor?Math.floor(La):Math.round(La);return{row:Na,column:za,side:La-za>0?1:-1,offsetX:_a}},Ma.prototype.screenToTextCoordinates=function(Ia,Oa){var Da;if(this.$hasCssTransforms){Da={top:0,left:0};var Ta=this.$fontMetrics.transformCoordinates([Ia,Oa]);Ia=Ta[1]-this.gutterWidth-this.margin.left,Oa=Ta[0]}else Da=this.scroller.getBoundingClientRect();var _a=Ia+this.scrollLeft-Da.left-this.$padding,La=_a/this.characterWidth,Na=this.$blockCursor?Math.floor(La):Math.round(La),za=Math.floor((Oa+this.scrollTop-Da.top)/this.lineHeight);return this.session.screenToDocumentPosition(za,Math.max(Na,0),_a)},Ma.prototype.textToScreenCoordinates=function(Ia,Oa){var Da=this.scroller.getBoundingClientRect(),Ta=this.session.documentToScreenPosition(Ia,Oa),_a=this.$padding+(this.session.$bidiHandler.isBidiRow(Ta.row,Ia)?this.session.$bidiHandler.getPosLeft(Ta.column):Math.round(Ta.column*this.characterWidth)),La=Ta.row*this.lineHeight;return{pageX:Da.left+_a-this.scrollLeft,pageY:Da.top+La-this.scrollTop}},Ma.prototype.visualizeFocus=function(){la.addCssClass(this.container,"ace_focus")},Ma.prototype.visualizeBlur=function(){la.removeCssClass(this.container,"ace_focus")},Ma.prototype.showComposition=function(Ia){this.$composition=Ia,Ia.cssText||(Ia.cssText=this.textarea.style.cssText),Ia.useTextareaForIME==null&&(Ia.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(la.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):Ia.markerId=this.session.addMarker(Ia.markerRange,"ace_composition_marker","text")},Ma.prototype.setCompositionText=function(Ia){var Oa=this.session.selection.cursor;this.addToken(Ia,"composition_placeholder",Oa.row,Oa.column),this.$moveTextAreaToCursor()},Ma.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),la.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var Ia=this.session.selection.cursor;this.removeExtraToken(Ia.row,Ia.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},Ma.prototype.setGhostText=function(Ia,Oa){var Da=this.session.selection.cursor,Ta=Oa||{row:Da.row,column:Da.column};this.removeGhostText();var _a=this.$calculateWrappedTextChunks(Ia,Ta);this.addToken(_a[0].text,"ghost_text",Ta.row,Ta.column),this.$ghostText={text:Ia,position:{row:Ta.row,column:Ta.column}};var La=la.createElement("div");if(_a.length>1){var Na=this.hideTokensAfterPosition(Ta.row,Ta.column),za;_a.slice(1).forEach(function(Wa){var Za=la.createElement("div"),Xa=la.createElement("span");Xa.className="ace_ghost_text",Wa.wrapped&&(Za.className="ghost_text_line_wrapped"),Wa.text.length===0&&(Wa.text=" "),Xa.appendChild(la.createTextNode(Wa.text)),Za.appendChild(Xa),La.appendChild(Za),za=Za}),Na.forEach(function(Wa){var Za=la.createElement("span");Ea(Wa.type)||(Za.className="ace_"+Wa.type.replace(/\./g," ace_")),Za.appendChild(la.createTextNode(Wa.value)),za.appendChild(Za)}),this.$ghostTextWidget={el:La,row:Ta.row,column:Ta.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var Fa=this.$cursorLayer.getPixelPosition(Ta,!0),Ha=this.container,Va=Ha.getBoundingClientRect().height,Ua=_a.length*this.lineHeight,Qa=Ua<Va-Fa.top;if(Qa)return;Ua<Va?this.scrollBy(0,(_a.length-1)*this.lineHeight):this.scrollToRow(Ta.row)}},Ma.prototype.$calculateWrappedTextChunks=function(Ia,Oa){var Da=this.$size.scrollerWidth-this.$padding*2,Ta=Math.floor(Da/this.characterWidth)-2;Ta=Ta<=0?60:Ta;for(var _a=Ia.split(/\r?\n/),La=[],Na=0;Na<_a.length;Na++){var za=this.session.$getDisplayTokens(_a[Na],Oa.column),Fa=this.session.$computeWrapSplits(za,Ta,this.session.$tabSize);if(Fa.length>0){var Ha=0;Fa.push(_a[Na].length);for(var Va=0;Va<Fa.length;Va++){var Ua=_a[Na].slice(Ha,Fa[Va]);La.push({text:Ua,wrapped:!0}),Ha=Fa[Va]}}else La.push({text:_a[Na],wrapped:!1})}return La},Ma.prototype.removeGhostText=function(){if(this.$ghostText){var Ia=this.$ghostText.position;this.removeExtraToken(Ia.row,Ia.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},Ma.prototype.addToken=function(Ia,Oa,Da,Ta){var _a=this.session;_a.bgTokenizer.lines[Da]=null;var La={type:Oa,value:Ia},Na=_a.getTokens(Da);if(Ta==null||!Na.length)Na.push(La);else for(var za=0,Fa=0;Fa<Na.length;Fa++){var Ha=Na[Fa];if(za+=Ha.value.length,Ta<=za){var Va=Ha.value.length-(za-Ta),Ua=Ha.value.slice(0,Va),Qa=Ha.value.slice(Va);Na.splice(Fa,1,{type:Ha.type,value:Ua},La,{type:Ha.type,value:Qa});break}}this.updateLines(Da,Da)},Ma.prototype.hideTokensAfterPosition=function(Ia,Oa){for(var Da=this.session.getTokens(Ia),Ta=0,_a=!1,La=[],Na=0;Na<Da.length;Na++){var za=Da[Na];if(Ta+=za.value.length,za.type!=="ghost_text"){if(_a){La.push({type:za.type,value:za.value}),za.type="hidden_token";continue}Ta===Oa&&(_a=!0)}}return this.updateLines(Ia,Ia),La},Ma.prototype.removeExtraToken=function(Ia,Oa){this.session.bgTokenizer.lines[Ia]=null,this.updateLines(Ia,Ia)},Ma.prototype.setTheme=function(Ia,Oa){var Da=this;if(this.$themeId=Ia,Da._dispatchEvent("themeChange",{theme:Ia}),!Ia||typeof Ia=="string"){var Ta=Ia||this.$options.theme.initialValue;ua.loadModule(["theme",Ta],_a)}else _a(Ia);function _a(La){if(Da.$themeId!=Ia)return Oa&&Oa();if(!La||!La.cssClass)throw new Error("couldn't load module "+Ia+" or it didn't call define");La.$id&&(Da.$themeId=La.$id),la.importCssString(La.cssText,La.cssClass,Da.container),Da.theme&&la.removeCssClass(Da.container,Da.theme.cssClass);var Na="padding"in La?La.padding:"padding"in(Da.theme||{})?4:Da.$padding;Da.$padding&&Na!=Da.$padding&&Da.setPadding(Na),Da.$theme=La.cssClass,Da.theme=La,la.addCssClass(Da.container,La.cssClass),la.setCssClass(Da.container,"ace_dark",La.isDark),Da.$size&&(Da.$size.width=0,Da.$updateSizeAsync()),Da._dispatchEvent("themeLoaded",{theme:La}),Oa&&Oa(),ba.isSafari&&Da.scroller&&(Da.scroller.style.background="red",Da.scroller.style.background="")}},Ma.prototype.getTheme=function(){return this.$themeId},Ma.prototype.setStyle=function(Ia,Oa){la.setCssClass(this.container,Ia,Oa!==!1)},Ma.prototype.unsetStyle=function(Ia){la.removeCssClass(this.container,Ia)},Ma.prototype.setCursorStyle=function(Ia){la.setStyle(this.scroller.style,"cursor",Ia)},Ma.prototype.setMouseCursor=function(Ia){la.setStyle(this.scroller.style,"cursor",Ia)},Ma.prototype.attachToShadowRoot=function(){la.importCssString(Sa,"ace_editor.css",this.container)},Ma.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},Ma.prototype.$updateCustomScrollbar=function(Ia){var Oa=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,Ia===!0?(this.scrollBarV=new xa(this.container,this),this.scrollBarH=new va(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(Da){Oa.$scrollAnimation||Oa.session.setScrollTop(Da.data-Oa.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(Da){Oa.$scrollAnimation||Oa.session.setScrollLeft(Da.data-Oa.scrollMargin.left)}),this.$scrollDecorator=new wa(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new ma(this.container,this),this.scrollBarH=new fa(this.container,this),this.scrollBarV.addEventListener("scroll",function(Da){Oa.$scrollAnimation||Oa.session.setScrollTop(Da.data-Oa.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(Da){Oa.$scrollAnimation||Oa.session.setScrollLeft(Da.data-Oa.scrollMargin.left)}))},Ma.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var Ia=this;this.$resizeTimer=ca.delayedCall(function(){Ia.destroyed||Ia.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(Oa){var Da=Oa[0].contentRect.width,Ta=Oa[0].contentRect.height;Math.abs(Ia.$size.width-Da)>1||Math.abs(Ia.$size.height-Ta)>1?Ia.$resizeTimer.delay():Ia.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},Ma}();$a.prototype.CHANGE_CURSOR=1,$a.prototype.CHANGE_MARKER=2,$a.prototype.CHANGE_GUTTER=4,$a.prototype.CHANGE_SCROLL=8,$a.prototype.CHANGE_LINES=16,$a.prototype.CHANGE_TEXT=32,$a.prototype.CHANGE_SIZE=64,$a.prototype.CHANGE_MARKER_BACK=128,$a.prototype.CHANGE_MARKER_FRONT=256,$a.prototype.CHANGE_FULL=512,$a.prototype.CHANGE_H_SCROLL=1024,$a.prototype.$changes=0,$a.prototype.$padding=null,$a.prototype.$frozen=!1,$a.prototype.STEPS=8,sa.implement($a.prototype,Ca),ua.defineOptions($a.prototype,"renderer",{useResizeObserver:{set:function(Ma){!Ma&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):Ma&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(Ma){this.$textLayer.setShowInvisibles(Ma)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(Ma){typeof Ma=="number"&&(this.$printMarginColumn=Ma),this.$showPrintMargin=!!Ma,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(Ma){this.$gutter.style.display=Ma?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(Ma){this.$gutterLayer.$useSvgGutterIcons=Ma},initialValue:!1},showFoldedAnnotations:{set:function(Ma){this.$gutterLayer.$showFoldedAnnotations=Ma},initialValue:!1},fadeFoldWidgets:{set:function(Ma){la.setCssClass(this.$gutter,"ace_fade-fold-widgets",Ma)},initialValue:!1},showFoldWidgets:{set:function(Ma){this.$gutterLayer.setShowFoldWidgets(Ma),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(Ma){this.$textLayer.setDisplayIndentGuides(Ma)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(Ma){this.$textLayer.setHighlightIndentGuides(Ma)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(Ma){this.$gutterLayer.setHighlightGutterLine(Ma),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(Ma){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(Ma){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(Ma){typeof Ma=="number"&&(Ma=Ma+"px"),this.container.style.fontSize=Ma,this.updateFontSize()},initialValue:12},fontFamily:{set:function(Ma){this.container.style.fontFamily=Ma,this.updateFontSize()}},maxLines:{set:function(Ma){this.updateFull()}},minLines:{set:function(Ma){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(Ma){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(Ma){Ma=+Ma||0,this.$scrollPastEnd!=Ma&&(this.$scrollPastEnd=Ma,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(Ma){this.$gutterLayer.$fixedWidth=!!Ma,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(Ma){this.$updateCustomScrollbar(Ma)},initialValue:!1},theme:{set:function(Ma){this.setTheme(Ma)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!ba.isMobile&&!ba.isIE}}),oa.VirtualRenderer=$a}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("../lib/net"),ca=ra("../lib/event_emitter").EventEmitter,ua=ra("../config");function da(fa){var ma="importScripts('"+la.qualifyURL(fa)+"');";try{return new Blob([ma],{type:"application/javascript"})}catch{var va=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,xa=new va;return xa.append(ma),xa.getBlob("application/javascript")}}function pa(fa){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(ua.get("loadWorkerFromBlob")){var ma=da(fa),va=window.URL||window.webkitURL,xa=va.createObjectURL(ma);return new Worker(xa)}return new Worker(fa)}var ha=function(fa){fa.postMessage||(fa=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=fa,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){sa.implement(this,ca),this.$createWorkerFromOldConfig=function(fa,ma,va,xa,ya){if(ra.nameToUrl&&!ra.toUrl&&(ra.toUrl=ra.nameToUrl),ua.get("packaged")||!ra.toUrl)xa=xa||ua.moduleUrl(ma,"worker");else{var Aa=this.$normalizePath;xa=xa||Aa(ra.toUrl("ace/worker/worker.js",null,"_"));var Ca={};fa.forEach(function(Sa){Ca[Sa]=Aa(ra.toUrl(Sa,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=pa(xa),ya&&this.send("importScripts",ya),this.$worker.postMessage({init:!0,tlns:Ca,module:ma,classname:va}),this.$worker},this.onMessage=function(fa){var ma=fa.data;switch(ma.type){case"event":this._signal(ma.name,{data:ma.data});break;case"call":var va=this.callbacks[ma.id];va&&(va(ma.data),delete this.callbacks[ma.id]);break;case"error":this.reportError(ma.data);break;case"log":window.console&&console.log&&console.log.apply(console,ma.data);break}},this.reportError=function(fa){window.console&&console.error&&console.error(fa)},this.$normalizePath=function(fa){return la.qualifyURL(fa)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(fa){fa.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(fa,ma){this.$worker.postMessage({command:fa,args:ma})},this.call=function(fa,ma,va){if(va){var xa=this.callbackId++;this.callbacks[xa]=va,ma.push(xa)}this.send(fa,ma)},this.emit=function(fa,ma){try{ma.data&&ma.data.err&&(ma.data.err={message:ma.data.err.message,stack:ma.data.err.stack,code:ma.data.err.code}),this.$worker&&this.$worker.postMessage({event:fa,data:{data:ma.data}})}catch(va){console.error(va.stack)}},this.attachToDocument=function(fa){this.$doc&&this.terminate(),this.$doc=fa,this.call("setValue",[fa.getValue()]),fa.on("change",this.changeListener,!0)},this.changeListener=function(fa){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),fa.action=="insert"?this.deltaQueue.push(fa.start,fa.lines):this.deltaQueue.push(fa.start,fa.end)},this.$sendDeltaQueue=function(){var fa=this.deltaQueue;fa&&(this.deltaQueue=null,fa.length>50&&fa.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:fa}))}}).call(ha.prototype);var ga=function(fa,ma,va){var xa=null,ya=!1,Aa=Object.create(ca),Ca=[],Sa=new ha({messageBuffer:Ca,terminate:function(){},postMessage:function(ba){Ca.push(ba),xa&&(ya?setTimeout(wa):wa())}});Sa.setEmitSync=function(ba){ya=ba};var wa=function(){var ba=Ca.shift();ba.command?xa[ba.command].apply(xa,ba.args):ba.event&&Aa._signal(ba.event,ba.data)};return Aa.postMessage=function(ba){Sa.onMessage({data:ba})},Aa.callback=function(ba,Ea){this.postMessage({type:"call",id:Ea,data:ba})},Aa.emit=function(ba,Ea){this.postMessage({type:"event",name:ba,data:Ea})},ua.loadModule(["worker",ma],function(ba){for(xa=new ba[va](Aa);Ca.length;)wa()}),Sa};oa.UIWorkerClient=ga,oa.WorkerClient=ha,oa.createWorker=pa}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(ra,oa,aa){var sa=ra("./range").Range,la=ra("./lib/event_emitter").EventEmitter,ca=ra("./lib/oop"),ua=function(){function da(pa,ha,ga,fa,ma,va){var xa=this;this.length=ha,this.session=pa,this.doc=pa.getDocument(),this.mainClass=ma,this.othersClass=va,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=fa,this.$onCursorChange=function(){setTimeout(function(){xa.onCursorChange()})},this.$pos=ga;var ya=pa.getUndoManager().$undoStack||pa.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=ya.length,this.setup(),pa.selection.on("changeCursor",this.$onCursorChange)}return da.prototype.setup=function(){var pa=this,ha=this.doc,ga=this.session;this.selectionBefore=ga.selection.toJSON(),ga.selection.inMultiSelectMode&&ga.selection.toSingleRange(),this.pos=ha.createAnchor(this.$pos.row,this.$pos.column);var fa=this.pos;fa.$insertRight=!0,fa.detach(),fa.markerId=ga.addMarker(new sa(fa.row,fa.column,fa.row,fa.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(ma){var va=ha.createAnchor(ma.row,ma.column);va.$insertRight=!0,va.detach(),pa.others.push(va)}),ga.setUndoSelect(!1)},da.prototype.showOtherMarkers=function(){if(!this.othersActive){var pa=this.session,ha=this;this.othersActive=!0,this.others.forEach(function(ga){ga.markerId=pa.addMarker(new sa(ga.row,ga.column,ga.row,ga.column+ha.length),ha.othersClass,null,!1)})}},da.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var pa=0;pa<this.others.length;pa++)this.session.removeMarker(this.others[pa].markerId)}},da.prototype.onUpdate=function(pa){if(this.$updating)return this.updateAnchors(pa);var ha=pa;if(ha.start.row===ha.end.row&&ha.start.row===this.pos.row){this.$updating=!0;var ga=pa.action==="insert"?ha.end.column-ha.start.column:ha.start.column-ha.end.column,fa=ha.start.column>=this.pos.column&&ha.start.column<=this.pos.column+this.length+1,ma=ha.start.column-this.pos.column;if(this.updateAnchors(pa),fa&&(this.length+=ga),fa&&!this.session.$fromUndo){if(pa.action==="insert")for(var va=this.others.length-1;va>=0;va--){var xa=this.others[va],ya={row:xa.row,column:xa.column+ma};this.doc.insertMergedLines(ya,pa.lines)}else if(pa.action==="remove")for(var va=this.others.length-1;va>=0;va--){var xa=this.others[va],ya={row:xa.row,column:xa.column+ma};this.doc.remove(new sa(ya.row,ya.column,ya.row,ya.column-ga))}}this.$updating=!1,this.updateMarkers()}},da.prototype.updateAnchors=function(pa){this.pos.onChange(pa);for(var ha=this.others.length;ha--;)this.others[ha].onChange(pa);this.updateMarkers()},da.prototype.updateMarkers=function(){if(!this.$updating){var pa=this,ha=this.session,ga=function(ma,va){ha.removeMarker(ma.markerId),ma.markerId=ha.addMarker(new sa(ma.row,ma.column,ma.row,ma.column+pa.length),va,null,!1)};ga(this.pos,this.mainClass);for(var fa=this.others.length;fa--;)ga(this.others[fa],this.othersClass)}},da.prototype.onCursorChange=function(pa){if(!(this.$updating||!this.session)){var ha=this.session.selection.getCursor();ha.row===this.pos.row&&ha.column>=this.pos.column&&ha.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",pa)):(this.hideOtherMarkers(),this._emit("cursorLeave",pa))}},da.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},da.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var pa=this.session.getUndoManager(),ha=(pa.$undoStack||pa.$undostack).length-this.$undoStackDepth,ga=0;ga<ha;ga++)pa.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},da}();ca.implement(ua.prototype,la),oa.PlaceHolder=ua}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("../lib/event"),la=ra("../lib/useragent");function ca(da,pa){return da.row==pa.row&&da.column==pa.column}function ua(da){var pa=da.domEvent,ha=pa.altKey,ga=pa.shiftKey,fa=pa.ctrlKey,ma=da.getAccelKey(),va=da.getButton();if(fa&&la.isMac&&(va=pa.button),da.editor.inMultiSelectMode&&va==2){da.editor.textInput.onContextMenu(da.domEvent);return}if(!fa&&!ha&&!ma){va===0&&da.editor.inMultiSelectMode&&da.editor.exitMultiSelectMode();return}if(va===0){var xa=da.editor,ya=xa.selection,Aa=xa.inMultiSelectMode,Ca=da.getDocumentPosition(),Sa=ya.getCursor(),wa=da.inSelection()||ya.isEmpty()&&ca(Ca,Sa),ba=da.x,Ea=da.y,$a=function(Ua){ba=Ua.clientX,Ea=Ua.clientY},Ma=xa.session,Ia=xa.renderer.pixelToScreenCoordinates(ba,Ea),Oa=Ia,Da;if(xa.$mouseHandler.$enableJumpToDef)fa&&ha||ma&&ha?Da=ga?"block":"add":ha&&xa.$blockSelectEnabled&&(Da="block");else if(ma&&!ha){if(Da="add",!Aa&&ga)return}else ha&&xa.$blockSelectEnabled&&(Da="block");if(Da&&la.isMac&&pa.ctrlKey&&xa.$mouseHandler.cancelContextMenu(),Da=="add"){if(!Aa&&wa)return;if(!Aa){var Ta=ya.toOrientedRange();xa.addSelectionMarker(Ta)}var _a=ya.rangeList.rangeAtPoint(Ca);xa.inVirtualSelectionMode=!0,ga&&(_a=null,Ta=ya.ranges[0]||Ta,xa.removeSelectionMarker(Ta)),xa.once("mouseup",function(){var Ua=ya.toOrientedRange();_a&&Ua.isEmpty()&&ca(_a.cursor,Ua.cursor)?ya.substractPoint(Ua.cursor):(ga?ya.substractPoint(Ta.cursor):Ta&&(xa.removeSelectionMarker(Ta),ya.addRange(Ta)),ya.addRange(Ua)),xa.inVirtualSelectionMode=!1})}else if(Da=="block"){da.stop(),xa.inVirtualSelectionMode=!0;var La,Na=[],za=function(){var Ua=xa.renderer.pixelToScreenCoordinates(ba,Ea),Qa=Ma.screenToDocumentPosition(Ua.row,Ua.column,Ua.offsetX);ca(Oa,Ua)&&ca(Qa,ya.lead)||(Oa=Ua,xa.selection.moveToPosition(Qa),xa.renderer.scrollCursorIntoView(),xa.removeSelectionMarkers(Na),Na=ya.rectangularRangeBlock(Oa,Ia),xa.$mouseHandler.$clickSelection&&Na.length==1&&Na[0].isEmpty()&&(Na[0]=xa.$mouseHandler.$clickSelection.clone()),Na.forEach(xa.addSelectionMarker,xa),xa.updateSelectionMarkers())};Aa&&!ma?ya.toSingleRange():!Aa&&ma&&(La=ya.toOrientedRange(),xa.addSelectionMarker(La)),ga?Ia=Ma.documentToScreenPosition(ya.lead):ya.moveToPosition(Ca),Oa={row:-1,column:-1};var Fa=function(Ua){za(),clearInterval(Va),xa.removeSelectionMarkers(Na),Na.length||(Na=[ya.toOrientedRange()]),La&&(xa.removeSelectionMarker(La),ya.toSingleRange(La));for(var Qa=0;Qa<Na.length;Qa++)ya.addRange(Na[Qa]);xa.inVirtualSelectionMode=!1,xa.$mouseHandler.$clickSelection=null},Ha=za;sa.capture(xa.container,$a,Fa);var Va=setInterval(function(){Ha()},20);return da.preventDefault()}}}oa.onMouseDown=ua}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(ra,oa,aa){oa.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(la){la.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(la){la.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(la){la.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(la){la.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(la){la.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(la){la.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(la){la.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(la){la.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(la){la.multiSelect.rangeCount>1?la.multiSelect.joinSelections():la.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(la){la.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(la){la.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(la){la.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],oa.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(la){la.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(la){return la&&la.inMultiSelectMode}}];var sa=ra("../keyboard/hash_handler").HashHandler;oa.keyboardHandler=new sa(oa.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(ra,oa,aa){var sa=ra("./range_list").RangeList,la=ra("./range").Range,ca=ra("./selection").Selection,ua=ra("./mouse/multi_select_handler").onMouseDown,da=ra("./lib/event"),pa=ra("./lib/lang"),ha=ra("./commands/multi_select_commands");oa.commands=ha.defaultCommands.concat(ha.multiSelectCommands);var ga=ra("./search").Search,fa=new ga;function ma(Sa,wa,ba){return fa.$options.wrap=!0,fa.$options.needle=wa,fa.$options.backwards=ba==-1,fa.find(Sa)}var va=ra("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(va.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(Sa,wa){if(Sa){if(!this.inMultiSelectMode&&this.rangeCount===0){var ba=this.toOrientedRange();if(this.rangeList.add(ba),this.rangeList.add(Sa),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),wa||this.fromOrientedRange(Sa);this.rangeList.removeAll(),this.rangeList.add(ba),this.$onAddRange(ba)}Sa.cursor||(Sa.cursor=Sa.end);var Ea=this.rangeList.add(Sa);return this.$onAddRange(Sa),Ea.length&&this.$onRemoveRange(Ea),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),wa||this.fromOrientedRange(Sa)}},this.toSingleRange=function(Sa){Sa=Sa||this.ranges[0];var wa=this.rangeList.removeAll();wa.length&&this.$onRemoveRange(wa),Sa&&this.fromOrientedRange(Sa)},this.substractPoint=function(Sa){var wa=this.rangeList.substractPoint(Sa);if(wa)return this.$onRemoveRange(wa),wa[0]},this.mergeOverlappingRanges=function(){var Sa=this.rangeList.merge();Sa.length&&this.$onRemoveRange(Sa)},this.$onAddRange=function(Sa){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(Sa),this._signal("addRange",{range:Sa})},this.$onRemoveRange=function(Sa){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var wa=this.rangeList.ranges.pop();Sa.push(wa),this.rangeCount=0}for(var ba=Sa.length;ba--;){var Ea=this.ranges.indexOf(Sa[ba]);this.ranges.splice(Ea,1)}this._signal("removeRange",{ranges:Sa}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),wa=wa||this.ranges[0],wa&&!wa.isEqual(this.getRange())&&this.fromOrientedRange(wa)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new sa,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var Sa=this.ranges.length?this.ranges:[this.getRange()],wa=[],ba=0;ba<Sa.length;ba++){var Ea=Sa[ba],$a=Ea.start.row,Ma=Ea.end.row;if($a===Ma)wa.push(Ea.clone());else{for(wa.push(new la($a,Ea.start.column,$a,this.session.getLine($a).length));++$a<Ma;)wa.push(this.getLineRange($a,!0));wa.push(new la(Ma,0,Ma,Ea.end.column))}ba==0&&!this.isBackwards()&&(wa=wa.reverse())}this.toSingleRange();for(var ba=wa.length;ba--;)this.addRange(wa[ba])},this.joinSelections=function(){var Sa=this.rangeList.ranges,wa=Sa[Sa.length-1],ba=la.fromPoints(Sa[0].start,wa.end);this.toSingleRange(),this.setSelectionRange(ba,wa.cursor==wa.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var Sa=this.rangeList.ranges,wa=Sa[Sa.length-1],ba=la.fromPoints(Sa[0].start,wa.end);this.toSingleRange(),this.setSelectionRange(ba,wa.cursor==wa.start)}else{var Ea=this.session.documentToScreenPosition(this.cursor),$a=this.session.documentToScreenPosition(this.anchor),Ma=this.rectangularRangeBlock(Ea,$a);Ma.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(Sa,wa,ba){var Ea=[],$a=Sa.column<wa.column;if($a)var Ma=Sa.column,Ia=wa.column,Oa=Sa.offsetX,Da=wa.offsetX;else var Ma=wa.column,Ia=Sa.column,Oa=wa.offsetX,Da=Sa.offsetX;var Ta=Sa.row<wa.row;if(Ta)var _a=Sa.row,La=wa.row;else var _a=wa.row,La=Sa.row;Ma<0&&(Ma=0),_a<0&&(_a=0),_a==La&&(ba=!0);for(var Na,za=_a;za<=La;za++){var Fa=la.fromPoints(this.session.screenToDocumentPosition(za,Ma,Oa),this.session.screenToDocumentPosition(za,Ia,Da));if(Fa.isEmpty()){if(Na&&ya(Fa.end,Na))break;Na=Fa.end}Fa.cursor=$a?Fa.start:Fa.end,Ea.push(Fa)}if(Ta&&Ea.reverse(),!ba){for(var Ha=Ea.length-1;Ea[Ha].isEmpty()&&Ha>0;)Ha--;if(Ha>0)for(var Va=0;Ea[Va].isEmpty();)Va++;for(var Ua=Ha;Ua>=Va;Ua--)Ea[Ua].isEmpty()&&Ea.splice(Ua,1)}return Ea}}.call(ca.prototype);var xa=ra("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(Sa){Sa.cursor||(Sa.cursor=Sa.end);var wa=this.getSelectionStyle();return Sa.marker=this.session.addMarker(Sa,"ace_selection",wa),this.session.$selectionMarkers.push(Sa),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,Sa},this.removeSelectionMarker=function(Sa){if(Sa.marker){this.session.removeMarker(Sa.marker);var wa=this.session.$selectionMarkers.indexOf(Sa);wa!=-1&&this.session.$selectionMarkers.splice(wa,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(Sa){for(var wa=this.session.$selectionMarkers,ba=Sa.length;ba--;){var Ea=Sa[ba];if(Ea.marker){this.session.removeMarker(Ea.marker);var $a=wa.indexOf(Ea);$a!=-1&&wa.splice($a,1)}}this.session.selectionMarkerCount=wa.length},this.$onAddRange=function(Sa){this.addSelectionMarker(Sa.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(Sa){this.removeSelectionMarkers(Sa.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(Sa){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(ha.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(Sa){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(ha.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(Sa){var wa=Sa.command,ba=Sa.editor;if(ba.multiSelect){if(wa.multiSelectAction)wa.multiSelectAction=="forEach"?Ea=ba.forEachSelection(wa,Sa.args):wa.multiSelectAction=="forEachLine"?Ea=ba.forEachSelection(wa,Sa.args,!0):wa.multiSelectAction=="single"?(ba.exitMultiSelectMode(),Ea=wa.exec(ba,Sa.args||{})):Ea=wa.multiSelectAction(ba,Sa.args||{});else{var Ea=wa.exec(ba,Sa.args||{});ba.multiSelect.addRange(ba.multiSelect.toOrientedRange()),ba.multiSelect.mergeOverlappingRanges()}return Ea}},this.forEachSelection=function(Sa,wa,ba){if(!this.inVirtualSelectionMode){var Ea=ba&&ba.keepOrder,$a=ba==!0||ba&&ba.$byLines,Ma=this.session,Ia=this.selection,Oa=Ia.rangeList,Da=(Ea?Ia:Oa).ranges,Ta;if(!Da.length)return Sa.exec?Sa.exec(this,wa||{}):Sa(this,wa||{});var _a=Ia._eventRegistry;Ia._eventRegistry={};var La=new ca(Ma);this.inVirtualSelectionMode=!0;for(var Na=Da.length;Na--;){if($a)for(;Na>0&&Da[Na].start.row==Da[Na-1].end.row;)Na--;La.fromOrientedRange(Da[Na]),La.index=Na,this.selection=Ma.selection=La;var za=Sa.exec?Sa.exec(this,wa||{}):Sa(this,wa||{});!Ta&&za!==void 0&&(Ta=za),La.toOrientedRange(Da[Na])}La.detach(),this.selection=Ma.selection=Ia,this.inVirtualSelectionMode=!1,Ia._eventRegistry=_a,Ia.mergeOverlappingRanges(),Ia.ranges[0]&&Ia.fromOrientedRange(Ia.ranges[0]);var Fa=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Fa&&Fa.from==Fa.to&&this.renderer.animateScrolling(Fa.from),Ta}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var Sa="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var wa=this.multiSelect.rangeList.ranges,ba=[],Ea=0;Ea<wa.length;Ea++)ba.push(this.session.getTextRange(wa[Ea]));var $a=this.session.getDocument().getNewLineCharacter();Sa=ba.join($a),Sa.length==(ba.length-1)*$a.length&&(Sa="")}else this.selection.isEmpty()||(Sa=this.session.getTextRange(this.getSelectionRange()));return Sa},this.$checkMultiselectChange=function(Sa,wa){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var ba=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&wa==this.multiSelect.anchor)return;var Ea=wa==this.multiSelect.anchor?ba.cursor==ba.start?ba.end:ba.start:ba.cursor;Ea.row!=wa.row||this.session.$clipPositionToDocument(Ea.row,Ea.column).column!=wa.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(Sa,wa,ba){if(wa=wa||{},wa.needle=Sa||wa.needle,wa.needle==null){var Ea=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();wa.needle=this.session.getTextRange(Ea)}this.$search.set(wa);var $a=this.$search.findAll(this.session);if(!$a.length)return 0;var Ma=this.multiSelect;ba||Ma.toSingleRange($a[0]);for(var Ia=$a.length;Ia--;)Ma.addRange($a[Ia],!0);return Ea&&Ma.rangeList.rangeAtPoint(Ea.start)&&Ma.addRange(Ea,!0),$a.length},this.selectMoreLines=function(Sa,wa){var ba=this.selection.toOrientedRange(),Ea=ba.cursor==ba.end,$a=this.session.documentToScreenPosition(ba.cursor);this.selection.$desiredColumn&&($a.column=this.selection.$desiredColumn);var Ma=this.session.screenToDocumentPosition($a.row+Sa,$a.column);if(ba.isEmpty())var Oa=Ma;else var Ia=this.session.documentToScreenPosition(Ea?ba.end:ba.start),Oa=this.session.screenToDocumentPosition(Ia.row+Sa,Ia.column);if(Ea){var Da=la.fromPoints(Ma,Oa);Da.cursor=Da.start}else{var Da=la.fromPoints(Oa,Ma);Da.cursor=Da.end}if(Da.desiredColumn=$a.column,!this.selection.inMultiSelectMode)this.selection.addRange(ba);else if(wa)var Ta=ba.cursor;this.selection.addRange(Da),Ta&&this.selection.substractPoint(Ta)},this.transposeSelections=function(Sa){for(var wa=this.session,ba=wa.multiSelect,Ea=ba.ranges,$a=Ea.length;$a--;){var Ma=Ea[$a];if(Ma.isEmpty()){var Ia=wa.getWordRange(Ma.start.row,Ma.start.column);Ma.start.row=Ia.start.row,Ma.start.column=Ia.start.column,Ma.end.row=Ia.end.row,Ma.end.column=Ia.end.column}}ba.mergeOverlappingRanges();for(var Oa=[],$a=Ea.length;$a--;){var Ma=Ea[$a];Oa.unshift(wa.getTextRange(Ma))}Sa<0?Oa.unshift(Oa.pop()):Oa.push(Oa.shift());for(var $a=Ea.length;$a--;){var Ma=Ea[$a],Da=Ma.clone();wa.replace(Ma,Oa[$a]),Ma.start.row=Da.start.row,Ma.start.column=Da.start.column}ba.fromOrientedRange(ba.ranges[0])},this.selectMore=function(Sa,wa,ba){var Ea=this.session,$a=Ea.multiSelect,Ma=$a.toOrientedRange();if(!(Ma.isEmpty()&&(Ma=Ea.getWordRange(Ma.start.row,Ma.start.column),Ma.cursor=Sa==-1?Ma.start:Ma.end,this.multiSelect.addRange(Ma),ba))){var Ia=Ea.getTextRange(Ma),Oa=ma(Ea,Ia,Sa);Oa&&(Oa.cursor=Sa==-1?Oa.start:Oa.end,this.session.unfold(Oa),this.multiSelect.addRange(Oa),this.renderer.scrollCursorIntoView(null,.5)),wa&&this.multiSelect.substractPoint(Ma.cursor)}},this.alignCursors=function(){var Sa=this.session,wa=Sa.multiSelect,ba=wa.ranges,Ea=-1,$a=ba.filter(function(Ha){if(Ha.cursor.row==Ea)return!0;Ea=Ha.cursor.row});if(!ba.length||$a.length==ba.length-1){var Ma=this.selection.getRange(),Ia=Ma.start.row,Oa=Ma.end.row,Da=Ia==Oa;if(Da){var Ta=this.session.getLength(),_a;do _a=this.session.getLine(Oa);while(/[=:]/.test(_a)&&++Oa<Ta);do _a=this.session.getLine(Ia);while(/[=:]/.test(_a)&&--Ia>0);Ia<0&&(Ia=0),Oa>=Ta&&(Oa=Ta-1)}var La=this.session.removeFullLines(Ia,Oa);La=this.$reAlignText(La,Da),this.session.insert({row:Ia,column:0},La.join(`
`)+`
`),Da||(Ma.start.column=0,Ma.end.column=La[La.length-1].length),this.selection.setRange(Ma)}else{$a.forEach(function(Ha){wa.substractPoint(Ha.cursor)});var Na=0,za=1/0,Fa=ba.map(function(Ha){var Va=Ha.cursor,Ua=Sa.getLine(Va.row),Qa=Ua.substr(Va.column).search(/\S/g);return Qa==-1&&(Qa=0),Va.column>Na&&(Na=Va.column),Qa<za&&(za=Qa),Qa});ba.forEach(function(Ha,Va){var Ua=Ha.cursor,Qa=Na-Ua.column,Wa=Fa[Va]-za;Qa>Wa?Sa.insert(Ua,pa.stringRepeat(" ",Qa-Wa)):Sa.remove(new la(Ua.row,Ua.column,Ua.row,Ua.column-Qa+Wa)),Ha.start.column=Ha.end.column=Na,Ha.start.row=Ha.end.row=Ua.row,Ha.cursor=Ha.end}),wa.fromOrientedRange(ba[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(Sa,wa){var ba=!0,Ea=!0,$a,Ma,Ia;return Sa.map(function(La){var Na=La.match(/(\s*)(.*?)(\s*)([=:].*)/);return Na?$a==null?($a=Na[1].length,Ma=Na[2].length,Ia=Na[3].length,Na):($a+Ma+Ia!=Na[1].length+Na[2].length+Na[3].length&&(Ea=!1),$a!=Na[1].length&&(ba=!1),$a>Na[1].length&&($a=Na[1].length),Ma<Na[2].length&&(Ma=Na[2].length),Ia>Na[3].length&&(Ia=Na[3].length),Na):[La]}).map(wa?Da:ba?Ea?Ta:Da:_a);function Oa(La){return pa.stringRepeat(" ",La)}function Da(La){return La[2]?Oa($a)+La[2]+Oa(Ma-La[2].length+Ia)+La[4].replace(/^([=:])\s+/,"$1 "):La[0]}function Ta(La){return La[2]?Oa($a+Ma-La[2].length)+La[2]+Oa(Ia)+La[4].replace(/^([=:])\s+/,"$1 "):La[0]}function _a(La){return La[2]?Oa($a)+La[2]+Oa(Ia)+La[4].replace(/^([=:])\s+/,"$1 "):La[0]}}}).call(xa.prototype);function ya(Sa,wa){return Sa.row==wa.row&&Sa.column==wa.column}oa.onSessionChange=function(Sa){var wa=Sa.session;wa&&!wa.multiSelect&&(wa.$selectionMarkers=[],wa.selection.$initRangeList(),wa.multiSelect=wa.selection),this.multiSelect=wa&&wa.multiSelect;var ba=Sa.oldSession;ba&&(ba.multiSelect.off("addRange",this.$onAddRange),ba.multiSelect.off("removeRange",this.$onRemoveRange),ba.multiSelect.off("multiSelect",this.$onMultiSelect),ba.multiSelect.off("singleSelect",this.$onSingleSelect),ba.multiSelect.lead.off("change",this.$checkMultiselectChange),ba.multiSelect.anchor.off("change",this.$checkMultiselectChange)),wa&&(wa.multiSelect.on("addRange",this.$onAddRange),wa.multiSelect.on("removeRange",this.$onRemoveRange),wa.multiSelect.on("multiSelect",this.$onMultiSelect),wa.multiSelect.on("singleSelect",this.$onSingleSelect),wa.multiSelect.lead.on("change",this.$checkMultiselectChange),wa.multiSelect.anchor.on("change",this.$checkMultiselectChange)),wa&&this.inMultiSelectMode!=wa.selection.inMultiSelectMode&&(wa.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function Aa(Sa){Sa.$multiselectOnSessionChange||(Sa.$onAddRange=Sa.$onAddRange.bind(Sa),Sa.$onRemoveRange=Sa.$onRemoveRange.bind(Sa),Sa.$onMultiSelect=Sa.$onMultiSelect.bind(Sa),Sa.$onSingleSelect=Sa.$onSingleSelect.bind(Sa),Sa.$multiselectOnSessionChange=oa.onSessionChange.bind(Sa),Sa.$checkMultiselectChange=Sa.$checkMultiselectChange.bind(Sa),Sa.$multiselectOnSessionChange(Sa),Sa.on("changeSession",Sa.$multiselectOnSessionChange),Sa.on("mousedown",ua),Sa.commands.addCommands(ha.defaultCommands),Ca(Sa))}function Ca(Sa){if(!Sa.textInput)return;var wa=Sa.textInput.getElement(),ba=!1;da.addListener(wa,"keydown",function($a){var Ma=$a.keyCode==18&&!($a.ctrlKey||$a.shiftKey||$a.metaKey);Sa.$blockSelectEnabled&&Ma?ba||(Sa.renderer.setMouseCursor("crosshair"),ba=!0):ba&&Ea()},Sa),da.addListener(wa,"keyup",Ea,Sa),da.addListener(wa,"blur",Ea,Sa);function Ea($a){ba&&(Sa.renderer.setMouseCursor(""),ba=!1)}}oa.MultiSelect=Aa,ra("./config").defineOptions(xa.prototype,"editor",{enableMultiselect:{set:function(Sa){Aa(this),Sa?this.on("mousedown",ua):this.off("mousedown",ua)},value:!0},enableBlockSelect:{set:function(Sa){this.$blockSelectEnabled=Sa},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../../range").Range,la=oa.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(ca,ua,da){var pa=ca.getLine(da);return this.foldingStartMarker.test(pa)?"start":ua=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(pa)?"end":""},this.getFoldWidgetRange=function(ca,ua,da){return null},this.indentationBlock=function(ca,ua,da){var pa=/\S/,ha=ca.getLine(ua),ga=ha.search(pa);if(ga!=-1){for(var fa=da||ha.length,ma=ca.getLength(),va=ua,xa=ua;++ua<ma;){var ya=ca.getLine(ua).search(pa);if(ya!=-1){if(ya<=ga){var Aa=ca.getTokenAt(ua,0);if(!Aa||Aa.type!=="string")break}xa=ua}}if(xa>va){var Ca=ca.getLine(xa).length;return new sa(va,fa,xa,Ca)}}},this.openingBracketBlock=function(ca,ua,da,pa,ha){var ga={row:da,column:pa+1},fa=ca.$findClosingBracket(ua,ga,ha);if(fa){var ma=ca.foldWidgets[fa.row];return ma==null&&(ma=ca.getFoldWidget(fa.row)),ma=="start"&&fa.row>ga.row&&(fa.row--,fa.column=ca.getLine(fa.row).length),sa.fromPoints(ga,fa)}},this.closingBracketBlock=function(ca,ua,da,pa,ha){var ga={row:da,column:pa},fa=ca.$findOpeningBracket(ua,ga);if(fa)return fa.column++,ga.column--,sa.fromPoints(fa,ga)}}).call(la.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(ra,oa,aa){var sa=ra("../lib/dom"),la=ra("../range").Range,ca=ra("../config").nls;function ua(pa,ha,ga){for(var fa=0,ma=pa.length-1;fa<=ma;){var va=fa+ma>>1,xa=ga(ha,pa[va]);if(xa>0)fa=va+1;else if(xa<0)ma=va-1;else return va}return-(fa+1)}function da(pa,ha,ga){var fa=pa.getAnnotations().sort(la.comparePoints);if(fa.length){var ma=ua(fa,{row:ha,column:-1},la.comparePoints);ma<0&&(ma=-ma-1),ma>=fa.length?ma=ga>0?0:fa.length-1:ma===0&&ga<0&&(ma=fa.length-1);var va=fa[ma];if(!(!va||!ga)){if(va.row===ha){do va=fa[ma+=ga];while(va&&va.row===ha);if(!va)return fa.slice()}var xa=[];ha=va.row;do xa[ga<0?"unshift":"push"](va),va=fa[ma+=ga];while(va&&va.row==ha);return xa.length&&xa}}}oa.showErrorMarker=function(pa,ha){var ga=pa.session,fa=pa.getCursorPosition(),ma=fa.row,va=ga.widgetManager.getWidgetsAtRow(ma).filter(function($a){return $a.type=="errorMarker"})[0];va?va.destroy():ma-=ha;var xa=da(ga,ma,ha),ya;if(xa){var Aa=xa[0];fa.column=(Aa.pos&&typeof Aa.column!="number"?Aa.pos.sc:Aa.column)||0,fa.row=Aa.row,ya=pa.renderer.$gutterLayer.$annotations[fa.row]}else{if(va)return;ya={displayText:[ca("error-marker.good-state","Looks good!")],className:"ace_ok"}}pa.session.unfold(fa.row),pa.selection.moveToPosition(fa);var Ca={row:fa.row,fixedWidth:!0,coverGutter:!0,el:sa.createElement("div"),type:"errorMarker"},Sa=Ca.el.appendChild(sa.createElement("div")),wa=Ca.el.appendChild(sa.createElement("div"));wa.className="error_widget_arrow "+ya.className;var ba=pa.renderer.$cursorLayer.getPixelPosition(fa).left;wa.style.left=ba+pa.renderer.gutterWidth-5+"px",Ca.el.className="error_widget_wrapper",Sa.className="error_widget "+ya.className,ya.displayText.forEach(function($a,Ma){Sa.appendChild(sa.createTextNode($a)),Ma<ya.displayText.length-1&&Sa.appendChild(sa.createElement("br"))}),Sa.appendChild(sa.createElement("div"));var Ea=function($a,Ma,Ia){if(Ma===0&&(Ia==="esc"||Ia==="return"))return Ca.destroy(),{command:"null"}};Ca.destroy=function(){pa.$mouseHandler.isMousePressed||(pa.keyBinding.removeKeyboardHandler(Ea),ga.widgetManager.removeLineWidget(Ca),pa.off("changeSelection",Ca.destroy),pa.off("changeSession",Ca.destroy),pa.off("mouseup",Ca.destroy),pa.off("change",Ca.destroy))},pa.keyBinding.addKeyboardHandler(Ea),pa.on("changeSelection",Ca.destroy),pa.on("changeSession",Ca.destroy),pa.on("mouseup",Ca.destroy),pa.on("change",Ca.destroy),pa.session.widgetManager.addLineWidget(Ca),Ca.el.onmousedown=pa.focus.bind(pa),pa.renderer.scrollCursorIntoView(null,.5,{bottom:Ca.el.offsetHeight})},sa.importCssString(`
    .error_widget_wrapper {
        background: inherit;
        color: inherit;
        border:none
    }
    .error_widget {
        border-top: solid 2px;
        border-bottom: solid 2px;
        margin: 5px 0;
        padding: 10px 40px;
        white-space: pre-wrap;
    }
    .error_widget.ace_error, .error_widget_arrow.ace_error{
        border-color: #ff5a5a
    }
    .error_widget.ace_warning, .error_widget_arrow.ace_warning{
        border-color: #F1D817
    }
    .error_widget.ace_info, .error_widget_arrow.ace_info{
        border-color: #5a5a5a
    }
    .error_widget.ace_ok, .error_widget_arrow.ace_ok{
        border-color: #5aaa5a
    }
    .error_widget_arrow {
        position: absolute;
        border: solid 5px;
        border-top-color: transparent!important;
        border-right-color: transparent!important;
        border-left-color: transparent!important;
        top: -5px;
    }
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(ra,oa,aa){ra("./loader_build")(oa);var sa=ra("./lib/dom"),la=ra("./range").Range,ca=ra("./editor").Editor,ua=ra("./edit_session").EditSession,da=ra("./undomanager").UndoManager,pa=ra("./virtual_renderer").VirtualRenderer;ra("./worker/worker_client"),ra("./keyboard/hash_handler"),ra("./placeholder"),ra("./multi_select"),ra("./mode/folding/fold_mode"),ra("./theme/textmate"),ra("./ext/error_marker"),oa.config=ra("./config"),oa.edit=function(ga,fa){if(typeof ga=="string"){var ma=ga;if(ga=document.getElementById(ma),!ga)throw new Error("ace.edit can't find div #"+ma)}if(ga&&ga.env&&ga.env.editor instanceof ca)return ga.env.editor;var va="";if(ga&&/input|textarea/i.test(ga.tagName)){var xa=ga;va=xa.value,ga=sa.createElement("pre"),xa.parentNode.replaceChild(ga,xa)}else ga&&(va=ga.textContent,ga.innerHTML="");var ya=oa.createEditSession(va),Aa=new ca(new pa(ga),ya,fa),Ca={document:ya,editor:Aa,onResize:Aa.resize.bind(Aa,null)};return xa&&(Ca.textarea=xa),Aa.on("destroy",function(){Ca.editor.container.env=null}),Aa.container.env=Aa.env=Ca,Aa},oa.createEditSession=function(ga,fa){var ma=new ua(ga,fa);return ma.setUndoManager(new da),ma},oa.Range=la,oa.Editor=ca,oa.EditSession=ua,oa.UndoManager=da,oa.VirtualRenderer=pa;var ha=oa.config.version;oa.version=ha}),function(){ace.require(["ace/ace"],function(ra){ra&&(ra.config.init(!0),ra.define=ace.define);var oa=function(){return this}();!oa&&typeof window<"u"&&(oa=window),!oa&&typeof self<"u"&&(oa=self),oa.ace||(oa.ace=ra);for(var aa in ra)ra.hasOwnProperty(aa)&&(oa.ace[aa]=ra[aa]);oa.ace.default=oa.ace,ea&&(ea.exports=oa.ace)})}()}(ace$1)),ace$1.exports}var lodash_isequal={exports:{}};lodash_isequal.exports;var hasRequiredLodash_isequal;function requireLodash_isequal(){return hasRequiredLodash_isequal||(hasRequiredLodash_isequal=1,function(ea,na){var ra=200,oa="__lodash_hash_undefined__",aa=1,sa=2,la=9007199254740991,ca="[object Arguments]",ua="[object Array]",da="[object AsyncFunction]",pa="[object Boolean]",ha="[object Date]",ga="[object Error]",fa="[object Function]",ma="[object GeneratorFunction]",va="[object Map]",xa="[object Number]",ya="[object Null]",Aa="[object Object]",Ca="[object Promise]",Sa="[object Proxy]",wa="[object RegExp]",ba="[object Set]",Ea="[object String]",$a="[object Symbol]",Ma="[object Undefined]",Ia="[object WeakMap]",Oa="[object ArrayBuffer]",Da="[object DataView]",Ta="[object Float32Array]",_a="[object Float64Array]",La="[object Int8Array]",Na="[object Int16Array]",za="[object Int32Array]",Fa="[object Uint8Array]",Ha="[object Uint8ClampedArray]",Va="[object Uint16Array]",Ua="[object Uint32Array]",Qa=/[\\^$.*+?()[\]{}|]/g,Wa=/^\[object .+?Constructor\]$/,Za=/^(?:0|[1-9]\d*)$/,Xa={};Xa[Ta]=Xa[_a]=Xa[La]=Xa[Na]=Xa[za]=Xa[Fa]=Xa[Ha]=Xa[Va]=Xa[Ua]=!0,Xa[ca]=Xa[ua]=Xa[Oa]=Xa[pa]=Xa[Da]=Xa[ha]=Xa[ga]=Xa[fa]=Xa[va]=Xa[xa]=Xa[Aa]=Xa[wa]=Xa[ba]=Xa[Ea]=Xa[Ia]=!1;var tl=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,il=typeof self=="object"&&self&&self.Object===Object&&self,Ja=tl||il||Function("return this")(),nl=na&&!na.nodeType&&na,Ya=nl&&!0&&ea&&!ea.nodeType&&ea,rl=Ya&&Ya.exports===nl,sl=rl&&tl.process,dl=function(){try{return sl&&sl.binding&&sl.binding("util")}catch{}}(),pl=dl&&dl.isTypedArray;function ml(fl,Pl){for(var Xl=-1,yc=fl==null?0:fl.length,Cu=0,Zc=[];++Xl<yc;){var Du=fl[Xl];Pl(Du,Xl,fl)&&(Zc[Cu++]=Du)}return Zc}function Rl(fl,Pl){for(var Xl=-1,yc=Pl.length,Cu=fl.length;++Xl<yc;)fl[Cu+Xl]=Pl[Xl];return fl}function Tl(fl,Pl){for(var Xl=-1,yc=fl==null?0:fl.length;++Xl<yc;)if(Pl(fl[Xl],Xl,fl))return!0;return!1}function Il(fl,Pl){for(var Xl=-1,yc=Array(fl);++Xl<fl;)yc[Xl]=Pl(Xl);return yc}function Ol(fl){return function(Pl){return fl(Pl)}}function Fl(fl,Pl){return fl.has(Pl)}function Vl(fl,Pl){return fl?.[Pl]}function Wl(fl){var Pl=-1,Xl=Array(fl.size);return fl.forEach(function(yc,Cu){Xl[++Pl]=[Cu,yc]}),Xl}function vl(fl,Pl){return function(Xl){return fl(Pl(Xl))}}function kl(fl){var Pl=-1,Xl=Array(fl.size);return fl.forEach(function(yc){Xl[++Pl]=yc}),Xl}var zl=Array.prototype,Al=Function.prototype,gl=Object.prototype,xl=Ja["__core-js_shared__"],Sl=Al.toString,$l=gl.hasOwnProperty,Bl=function(){var fl=/[^.]+$/.exec(xl&&xl.keys&&xl.keys.IE_PROTO||"");return fl?"Symbol(src)_1."+fl:""}(),Ul=gl.toString,ec=RegExp("^"+Sl.call($l).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kl=rl?Ja.Buffer:void 0,rc=Ja.Symbol,wl=Ja.Uint8Array,Ll=gl.propertyIsEnumerable,ic=zl.splice,Yl=rc?rc.toStringTag:void 0,gc=Object.getOwnPropertySymbols,Rc=Kl?Kl.isBuffer:void 0,Ic=vl(Object.keys,Object),bc=ku(Ja,"DataView"),kc=ku(Ja,"Map"),Kc=ku(Ja,"Promise"),Tc=ku(Ja,"Set"),ac=ku(Ja,"WeakMap"),sc=ku(Object,"create"),dc=hd(bc),Pc=hd(kc),qc=hd(Kc),uc=hd(Tc),lc=hd(ac),hc=rc?rc.prototype:void 0,pc=hc?hc.valueOf:void 0;function xc(fl){var Pl=-1,Xl=fl==null?0:fl.length;for(this.clear();++Pl<Xl;){var yc=fl[Pl];this.set(yc[0],yc[1])}}function Gc(){this.__data__=sc?sc(null):{},this.size=0}function Lu(fl){var Pl=this.has(fl)&&delete this.__data__[fl];return this.size-=Pl?1:0,Pl}function vu(fl){var Pl=this.__data__;if(sc){var Xl=Pl[fl];return Xl===oa?void 0:Xl}return $l.call(Pl,fl)?Pl[fl]:void 0}function ju(fl){var Pl=this.__data__;return sc?Pl[fl]!==void 0:$l.call(Pl,fl)}function su(fl,Pl){var Xl=this.__data__;return this.size+=this.has(fl)?0:1,Xl[fl]=sc&&Pl===void 0?oa:Pl,this}xc.prototype.clear=Gc,xc.prototype.delete=Lu,xc.prototype.get=vu,xc.prototype.has=ju,xc.prototype.set=su;function uu(fl){var Pl=-1,Xl=fl==null?0:fl.length;for(this.clear();++Pl<Xl;){var yc=fl[Pl];this.set(yc[0],yc[1])}}function Bu(){this.__data__=[],this.size=0}function Qu(fl){var Pl=this.__data__,Xl=Vu(Pl,fl);if(Xl<0)return!1;var yc=Pl.length-1;return Xl==yc?Pl.pop():ic.call(Pl,Xl,1),--this.size,!0}function wd(fl){var Pl=this.__data__,Xl=Vu(Pl,fl);return Xl<0?void 0:Pl[Xl][1]}function Tu(fl){return Vu(this.__data__,fl)>-1}function Ju(fl,Pl){var Xl=this.__data__,yc=Vu(Xl,fl);return yc<0?(++this.size,Xl.push([fl,Pl])):Xl[yc][1]=Pl,this}uu.prototype.clear=Bu,uu.prototype.delete=Qu,uu.prototype.get=wd,uu.prototype.has=Tu,uu.prototype.set=Ju;function cc(fl){var Pl=-1,Xl=fl==null?0:fl.length;for(this.clear();++Pl<Xl;){var yc=fl[Pl];this.set(yc[0],yc[1])}}function mc(){this.size=0,this.__data__={hash:new xc,map:new(kc||uu),string:new xc}}function Dc(fl){var Pl=Iu(this,fl).delete(fl);return this.size-=Pl?1:0,Pl}function zc(fl){return Iu(this,fl).get(fl)}function gu(fl){return Iu(this,fl).has(fl)}function qd(fl,Pl){var Xl=Iu(this,fl),yc=Xl.size;return Xl.set(fl,Pl),this.size+=Xl.size==yc?0:1,this}cc.prototype.clear=mc,cc.prototype.delete=Dc,cc.prototype.get=zc,cc.prototype.has=gu,cc.prototype.set=qd;function rd(fl){var Pl=-1,Xl=fl==null?0:fl.length;for(this.__data__=new cc;++Pl<Xl;)this.add(fl[Pl])}function Zd(fl){return this.__data__.set(fl,oa),this}function _d(fl){return this.__data__.has(fl)}rd.prototype.add=rd.prototype.push=Zd,rd.prototype.has=_d;function Fu(fl){var Pl=this.__data__=new uu(fl);this.size=Pl.size}function Id(){this.__data__=new uu,this.size=0}function kd(fl){var Pl=this.__data__,Xl=Pl.delete(fl);return this.size=Pl.size,Xl}function tp(fl){return this.__data__.get(fl)}function ud(fl){return this.__data__.has(fl)}function Pu(fl,Pl){var Xl=this.__data__;if(Xl instanceof uu){var yc=Xl.__data__;if(!kc||yc.length<ra-1)return yc.push([fl,Pl]),this.size=++Xl.size,this;Xl=this.__data__=new cc(yc)}return Xl.set(fl,Pl),this.size=Xl.size,this}Fu.prototype.clear=Id,Fu.prototype.delete=kd,Fu.prototype.get=tp,Fu.prototype.has=ud,Fu.prototype.set=Pu;function _u(fl,Pl){var Xl=Op(fl),yc=!Xl&&Ep(fl),Cu=!Xl&&!yc&&e0(fl),Zc=!Xl&&!yc&&!Cu&&Lp(fl),Du=Xl||yc||Cu||Zc,Gu=Du?Il(fl.length,String):[],iu=Gu.length;for(var wu in fl)$l.call(fl,wu)&&!(Du&&(wu=="length"||Cu&&(wu=="offset"||wu=="parent")||Zc&&(wu=="buffer"||wu=="byteLength"||wu=="byteOffset")||Xp(wu,iu)))&&Gu.push(wu);return Gu}function Vu(fl,Pl){for(var Xl=fl.length;Xl--;)if(Sp(fl[Xl][0],Pl))return Xl;return-1}function Sd(fl,Pl,Xl){var yc=Pl(fl);return Op(fl)?yc:Rl(yc,Xl(fl))}function Nu(fl){return fl==null?fl===void 0?Ma:ya:Yl&&Yl in Object(fl)?pd(fl):np(fl)}function Ld(fl){return lu(fl)&&Nu(fl)==ca}function Dd(fl,Pl,Xl,yc,Cu){return fl===Pl?!0:fl==null||Pl==null||!lu(fl)&&!lu(Pl)?fl!==fl&&Pl!==Pl:Vc(fl,Pl,Xl,yc,Dd,Cu)}function Vc(fl,Pl,Xl,yc,Cu,Zc){var Du=Op(fl),Gu=Op(Pl),iu=Du?ua:yu(fl),wu=Gu?ua:yu(Pl);iu=iu==ca?Aa:iu,wu=wu==ca?Aa:wu;var Uu=iu==Aa,jd=wu==Aa,Su=iu==wu;if(Su&&e0(fl)){if(!e0(Pl))return!1;Du=!0,Uu=!1}if(Su&&!Uu)return Zc||(Zc=new Fu),Du||Lp(fl)?hu(fl,Pl,Xl,yc,Cu,Zc):xu(fl,Pl,iu,Xl,yc,Cu,Zc);if(!(Xl&aa)){var Eu=Uu&&$l.call(fl,"__wrapped__"),Ed=jd&&$l.call(Pl,"__wrapped__");if(Eu||Ed){var pp=Eu?fl.value():fl,Vd=Ed?Pl.value():Pl;return Zc||(Zc=new Fu),Cu(pp,Vd,Xl,yc,Zc)}}return Su?(Zc||(Zc=new Fu),dd(fl,Pl,Xl,yc,Cu,Zc)):!1}function Mc(fl){if(!zu(fl)||Mp(fl))return!1;var Pl=Sc(fl)?ec:Wa;return Pl.test(hd(fl))}function bu(fl){return lu(fl)&&mu(fl.length)&&!!Xa[Nu(fl)]}function Wu(fl){if(!dp(fl))return Ic(fl);var Pl=[];for(var Xl in Object(fl))$l.call(fl,Xl)&&Xl!="constructor"&&Pl.push(Xl);return Pl}function hu(fl,Pl,Xl,yc,Cu,Zc){var Du=Xl&aa,Gu=fl.length,iu=Pl.length;if(Gu!=iu&&!(Du&&iu>Gu))return!1;var wu=Zc.get(fl);if(wu&&Zc.get(Pl))return wu==Pl;var Uu=-1,jd=!0,Su=Xl&sa?new rd:void 0;for(Zc.set(fl,Pl),Zc.set(Pl,fl);++Uu<Gu;){var Eu=fl[Uu],Ed=Pl[Uu];if(yc)var pp=Du?yc(Ed,Eu,Uu,Pl,fl,Zc):yc(Eu,Ed,Uu,fl,Pl,Zc);if(pp!==void 0){if(pp)continue;jd=!1;break}if(Su){if(!Tl(Pl,function(Vd,rp){if(!Fl(Su,rp)&&(Eu===Vd||Cu(Eu,Vd,Xl,yc,Zc)))return Su.push(rp)})){jd=!1;break}}else if(!(Eu===Ed||Cu(Eu,Ed,Xl,yc,Zc))){jd=!1;break}}return Zc.delete(fl),Zc.delete(Pl),jd}function xu(fl,Pl,Xl,yc,Cu,Zc,Du){switch(Xl){case Da:if(fl.byteLength!=Pl.byteLength||fl.byteOffset!=Pl.byteOffset)return!1;fl=fl.buffer,Pl=Pl.buffer;case Oa:return!(fl.byteLength!=Pl.byteLength||!Zc(new wl(fl),new wl(Pl)));case pa:case ha:case xa:return Sp(+fl,+Pl);case ga:return fl.name==Pl.name&&fl.message==Pl.message;case wa:case Ea:return fl==Pl+"";case va:var Gu=Wl;case ba:var iu=yc&aa;if(Gu||(Gu=kl),fl.size!=Pl.size&&!iu)return!1;var wu=Du.get(fl);if(wu)return wu==Pl;yc|=sa,Du.set(fl,Pl);var Uu=hu(Gu(fl),Gu(Pl),yc,Cu,Zc,Du);return Du.delete(fl),Uu;case $a:if(pc)return pc.call(fl)==pc.call(Pl)}return!1}function dd(fl,Pl,Xl,yc,Cu,Zc){var Du=Xl&aa,Gu=ed(fl),iu=Gu.length,wu=ed(Pl),Uu=wu.length;if(iu!=Uu&&!Du)return!1;for(var jd=iu;jd--;){var Su=Gu[jd];if(!(Du?Su in Pl:$l.call(Pl,Su)))return!1}var Eu=Zc.get(fl);if(Eu&&Zc.get(Pl))return Eu==Pl;var Ed=!0;Zc.set(fl,Pl),Zc.set(Pl,fl);for(var pp=Du;++jd<iu;){Su=Gu[jd];var Vd=fl[Su],rp=Pl[Su];if(yc)var ch=Du?yc(rp,Vd,Su,Pl,fl,Zc):yc(Vd,rp,Su,fl,Pl,Zc);if(!(ch===void 0?Vd===rp||Cu(Vd,rp,Xl,yc,Zc):ch)){Ed=!1;break}pp||(pp=Su=="constructor")}if(Ed&&!pp){var fd=fl.constructor,qu=Pl.constructor;fd!=qu&&"constructor"in fl&&"constructor"in Pl&&!(typeof fd=="function"&&fd instanceof fd&&typeof qu=="function"&&qu instanceof qu)&&(Ed=!1)}return Zc.delete(fl),Zc.delete(Pl),Ed}function ed(fl){return Sd(fl,jp,od)}function Iu(fl,Pl){var Xl=fl.__data__;return ad(Pl)?Xl[typeof Pl=="string"?"string":"hash"]:Xl.map}function ku(fl,Pl){var Xl=Vl(fl,Pl);return Mc(Xl)?Xl:void 0}function pd(fl){var Pl=$l.call(fl,Yl),Xl=fl[Yl];try{fl[Yl]=void 0;var yc=!0}catch{}var Cu=Ul.call(fl);return yc&&(Pl?fl[Yl]=Xl:delete fl[Yl]),Cu}var od=gc?function(fl){return fl==null?[]:(fl=Object(fl),ml(gc(fl),function(Pl){return Ll.call(fl,Pl)}))}:ru,yu=Nu;(bc&&yu(new bc(new ArrayBuffer(1)))!=Da||kc&&yu(new kc)!=va||Kc&&yu(Kc.resolve())!=Ca||Tc&&yu(new Tc)!=ba||ac&&yu(new ac)!=Ia)&&(yu=function(fl){var Pl=Nu(fl),Xl=Pl==Aa?fl.constructor:void 0,yc=Xl?hd(Xl):"";if(yc)switch(yc){case dc:return Da;case Pc:return va;case qc:return Ca;case uc:return ba;case lc:return Ia}return Pl});function Xp(fl,Pl){return Pl=Pl??la,!!Pl&&(typeof fl=="number"||Za.test(fl))&&fl>-1&&fl%1==0&&fl<Pl}function ad(fl){var Pl=typeof fl;return Pl=="string"||Pl=="number"||Pl=="symbol"||Pl=="boolean"?fl!=="__proto__":fl===null}function Mp(fl){return!!Bl&&Bl in fl}function dp(fl){var Pl=fl&&fl.constructor,Xl=typeof Pl=="function"&&Pl.prototype||gl;return fl===Xl}function np(fl){return Ul.call(fl)}function hd(fl){if(fl!=null){try{return Sl.call(fl)}catch{}try{return fl+""}catch{}}return""}function Sp(fl,Pl){return fl===Pl||fl!==fl&&Pl!==Pl}var Ep=Ld(function(){return arguments}())?Ld:function(fl){return lu(fl)&&$l.call(fl,"callee")&&!Ll.call(fl,"callee")},Op=Array.isArray;function Jp(fl){return fl!=null&&mu(fl.length)&&!Sc(fl)}var e0=Rc||ou;function oc(fl,Pl){return Dd(fl,Pl)}function Sc(fl){if(!zu(fl))return!1;var Pl=Nu(fl);return Pl==fa||Pl==ma||Pl==da||Pl==Sa}function mu(fl){return typeof fl=="number"&&fl>-1&&fl%1==0&&fl<=la}function zu(fl){var Pl=typeof fl;return fl!=null&&(Pl=="object"||Pl=="function")}function lu(fl){return fl!=null&&typeof fl=="object"}var Lp=pl?Ol(pl):bu;function jp(fl){return Jp(fl)?_u(fl):Wu(fl)}function ru(){return[]}function ou(){return!1}ea.exports=oc}(lodash_isequal,lodash_isequal.exports)),lodash_isequal.exports}var editorOptions={},hasRequiredEditorOptions;function requireEditorOptions(){if(hasRequiredEditorOptions)return editorOptions;hasRequiredEditorOptions=1,Object.defineProperty(editorOptions,"__esModule",{value:!0}),editorOptions.getAceInstance=editorOptions.debounce=editorOptions.editorEvents=editorOptions.editorOptions=void 0;var ea=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];editorOptions.editorOptions=ea;var na=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];editorOptions.editorEvents=na;var ra=function(){var aa;return typeof window>"u"?(commonjsGlobal$1.window={},aa=requireAce$1(),delete commonjsGlobal$1.window):window.ace?(aa=window.ace,aa.acequire=window.ace.require||window.ace.acequire):aa=requireAce$1(),aa};editorOptions.getAceInstance=ra;var oa=function(aa,sa){var la=null;return function(){var ca=this,ua=arguments;clearTimeout(la),la=setTimeout(function(){aa.apply(ca,ua)},sa)}};return editorOptions.debounce=oa,editorOptions}var hasRequiredAce;function requireAce(){if(hasRequiredAce)return ace$2;hasRequiredAce=1;var ea=ace$2&&ace$2.__extends||function(){var da=function(pa,ha){return da=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ga,fa){ga.__proto__=fa}||function(ga,fa){for(var ma in fa)Object.prototype.hasOwnProperty.call(fa,ma)&&(ga[ma]=fa[ma])},da(pa,ha)};return function(pa,ha){if(typeof ha!="function"&&ha!==null)throw new TypeError("Class extends value "+String(ha)+" is not a constructor or null");da(pa,ha);function ga(){this.constructor=pa}pa.prototype=ha===null?Object.create(ha):(ga.prototype=ha.prototype,new ga)}}(),na=ace$2&&ace$2.__assign||function(){return na=Object.assign||function(da){for(var pa,ha=1,ga=arguments.length;ha<ga;ha++){pa=arguments[ha];for(var fa in pa)Object.prototype.hasOwnProperty.call(pa,fa)&&(da[fa]=pa[fa])}return da},na.apply(this,arguments)};Object.defineProperty(ace$2,"__esModule",{value:!0});var ra=requireAce$1(),oa=requirePropTypes(),aa=requireReact(),sa=requireLodash_isequal(),la=requireEditorOptions(),ca=(0,la.getAceInstance)(),ua=function(da){ea(pa,da);function pa(ha){var ga=da.call(this,ha)||this;return la.editorEvents.forEach(function(fa){ga[fa]=ga[fa].bind(ga)}),ga.debounce=la.debounce,ga}return pa.prototype.isInShadow=function(ha){for(var ga=ha&&ha.parentNode;ga;){if(ga.toString()==="[object ShadowRoot]")return!0;ga=ga.parentNode}return!1},pa.prototype.componentDidMount=function(){var ha=this,ga=this.props,fa=ga.className,ma=ga.onBeforeLoad,va=ga.onValidate,xa=ga.mode,ya=ga.focus,Aa=ga.theme,Ca=ga.fontSize,Sa=ga.value,wa=ga.defaultValue,ba=ga.showGutter,Ea=ga.wrapEnabled,$a=ga.showPrintMargin,Ma=ga.scrollMargin,Ia=Ma===void 0?[0,0,0,0]:Ma,Oa=ga.keyboardHandler,Da=ga.onLoad,Ta=ga.commands,_a=ga.annotations,La=ga.markers,Na=ga.placeholder;this.editor=ca.edit(this.refEditor),ma&&ma(ca);for(var za=Object.keys(this.props.editorProps),Fa=0;Fa<za.length;Fa++)this.editor[za[Fa]]=this.props.editorProps[za[Fa]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(Ia[0],Ia[1],Ia[2],Ia[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof xa=="string"?"ace/mode/".concat(xa):xa),Aa&&Aa!==""&&this.editor.setTheme("ace/theme/".concat(Aa)),this.editor.setFontSize(typeof Ca=="number"?"".concat(Ca,"px"):Ca),this.editor.getSession().setValue(wa||Sa||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(ba),this.editor.getSession().setUseWrapMode(Ea),this.editor.setShowPrintMargin($a),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),Na&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),va&&this.editor.getSession().on("changeAnnotation",function(){var Va=ha.editor.getSession().getAnnotations();ha.props.onValidate(Va)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(_a||[]),La&&La.length>0&&this.handleMarkers(La);var Ha=this.editor.$options;la.editorOptions.forEach(function(Va){Ha.hasOwnProperty(Va)?ha.editor.setOption(Va,ha.props[Va]):ha.props[Va]&&console.warn("ReactAce: editor option ".concat(Va," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(Ta)&&Ta.forEach(function(Va){typeof Va.exec=="string"?ha.editor.commands.bindKey(Va.bindKey,Va.exec):ha.editor.commands.addCommand(Va)}),Oa&&this.editor.setKeyboardHandler("ace/keyboard/"+Oa),fa&&(this.refEditor.className+=" "+fa),Da&&Da(this.editor),this.editor.resize(),ya&&this.editor.focus()},pa.prototype.componentDidUpdate=function(ha){for(var ga=ha,fa=this.props,ma=0;ma<la.editorOptions.length;ma++){var va=la.editorOptions[ma];fa[va]!==ga[va]&&this.editor.setOption(va,fa[va])}if(fa.className!==ga.className){var xa=this.refEditor.className,ya=xa.trim().split(" "),Aa=ga.className.trim().split(" ");Aa.forEach(function(wa){var ba=ya.indexOf(wa);ya.splice(ba,1)}),this.refEditor.className=" "+fa.className+" "+ya.join(" ")}var Ca=this.editor&&fa.value!=null&&this.editor.getValue()!==fa.value;if(Ca){this.silent=!0;var Sa=this.editor.session.selection.toJSON();this.editor.setValue(fa.value,fa.cursorStart),this.editor.session.selection.fromJSON(Sa),this.silent=!1}fa.placeholder!==ga.placeholder&&this.updatePlaceholder(),fa.mode!==ga.mode&&this.editor.getSession().setMode(typeof fa.mode=="string"?"ace/mode/".concat(fa.mode):fa.mode),fa.theme!==ga.theme&&this.editor.setTheme("ace/theme/"+fa.theme),fa.keyboardHandler!==ga.keyboardHandler&&(fa.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+fa.keyboardHandler):this.editor.setKeyboardHandler(null)),fa.fontSize!==ga.fontSize&&this.editor.setFontSize(typeof fa.fontSize=="number"?"".concat(fa.fontSize,"px"):fa.fontSize),fa.wrapEnabled!==ga.wrapEnabled&&this.editor.getSession().setUseWrapMode(fa.wrapEnabled),fa.showPrintMargin!==ga.showPrintMargin&&this.editor.setShowPrintMargin(fa.showPrintMargin),fa.showGutter!==ga.showGutter&&this.editor.renderer.setShowGutter(fa.showGutter),sa(fa.setOptions,ga.setOptions)||this.handleOptions(fa),(Ca||!sa(fa.annotations,ga.annotations))&&this.editor.getSession().setAnnotations(fa.annotations||[]),!sa(fa.markers,ga.markers)&&Array.isArray(fa.markers)&&this.handleMarkers(fa.markers),sa(fa.scrollMargin,ga.scrollMargin)||this.handleScrollMargins(fa.scrollMargin),(ha.height!==this.props.height||ha.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!ha.focus&&this.editor.focus()},pa.prototype.handleScrollMargins=function(ha){ha===void 0&&(ha=[0,0,0,0]),this.editor.renderer.setScrollMargin(ha[0],ha[1],ha[2],ha[3])},pa.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},pa.prototype.onChange=function(ha){if(this.props.onChange&&!this.silent){var ga=this.editor.getValue();this.props.onChange(ga,ha)}},pa.prototype.onSelectionChange=function(ha){if(this.props.onSelectionChange){var ga=this.editor.getSelection();this.props.onSelectionChange(ga,ha)}},pa.prototype.onCursorChange=function(ha){if(this.props.onCursorChange){var ga=this.editor.getSelection();this.props.onCursorChange(ga,ha)}},pa.prototype.onInput=function(ha){this.props.onInput&&this.props.onInput(ha),this.props.placeholder&&this.updatePlaceholder()},pa.prototype.onFocus=function(ha){this.props.onFocus&&this.props.onFocus(ha,this.editor)},pa.prototype.onBlur=function(ha){this.props.onBlur&&this.props.onBlur(ha,this.editor)},pa.prototype.onCopy=function(ha){var ga=ha.text;this.props.onCopy&&this.props.onCopy(ga)},pa.prototype.onPaste=function(ha){var ga=ha.text;this.props.onPaste&&this.props.onPaste(ga)},pa.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},pa.prototype.handleOptions=function(ha){for(var ga=Object.keys(ha.setOptions),fa=0;fa<ga.length;fa++)this.editor.setOption(ga[fa],ha.setOptions[ga[fa]])},pa.prototype.handleMarkers=function(ha){var ga=this,fa=this.editor.getSession().getMarkers(!0);for(var ma in fa)fa.hasOwnProperty(ma)&&this.editor.getSession().removeMarker(fa[ma].id);fa=this.editor.getSession().getMarkers(!1);for(var ma in fa)fa.hasOwnProperty(ma)&&fa[ma].clazz!=="ace_active-line"&&fa[ma].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(fa[ma].id);ha.forEach(function(va){var xa=va.startRow,ya=va.startCol,Aa=va.endRow,Ca=va.endCol,Sa=va.className,wa=va.type,ba=va.inFront,Ea=ba===void 0?!1:ba,$a=new ra.Range(xa,ya,Aa,Ca);ga.editor.getSession().addMarker($a,Sa,wa,Ea)})},pa.prototype.updatePlaceholder=function(){var ha=this.editor,ga=this.props.placeholder,fa=!ha.session.getValue().length,ma=ha.renderer.placeholderNode;!fa&&ma?(ha.renderer.scroller.removeChild(ha.renderer.placeholderNode),ha.renderer.placeholderNode=null):fa&&!ma?(ma=ha.renderer.placeholderNode=document.createElement("div"),ma.textContent=ga||"",ma.className="ace_comment ace_placeholder",ma.style.padding="0 9px",ma.style.position="absolute",ma.style.zIndex="3",ha.renderer.scroller.appendChild(ma)):fa&&ma&&(ma.textContent=ga)},pa.prototype.updateRef=function(ha){this.refEditor=ha},pa.prototype.render=function(){var ha=this.props,ga=ha.name,fa=ha.width,ma=ha.height,va=ha.style,xa=na({width:fa,height:ma},va);return aa.createElement("div",{ref:this.updateRef,id:ga,style:xa})},pa.propTypes={mode:oa.oneOfType([oa.string,oa.object]),focus:oa.bool,theme:oa.string,name:oa.string,className:oa.string,height:oa.string,width:oa.string,fontSize:oa.oneOfType([oa.number,oa.string]),showGutter:oa.bool,onChange:oa.func,onCopy:oa.func,onPaste:oa.func,onFocus:oa.func,onInput:oa.func,onBlur:oa.func,onScroll:oa.func,value:oa.string,defaultValue:oa.string,onLoad:oa.func,onSelectionChange:oa.func,onCursorChange:oa.func,onBeforeLoad:oa.func,onValidate:oa.func,minLines:oa.number,maxLines:oa.number,readOnly:oa.bool,highlightActiveLine:oa.bool,tabSize:oa.number,showPrintMargin:oa.bool,cursorStart:oa.number,debounceChangePeriod:oa.number,editorProps:oa.object,setOptions:oa.object,style:oa.object,scrollMargin:oa.array,annotations:oa.array,markers:oa.array,keyboardHandler:oa.string,wrapEnabled:oa.bool,enableSnippets:oa.bool,enableBasicAutocompletion:oa.oneOfType([oa.bool,oa.array]),enableLiveAutocompletion:oa.oneOfType([oa.bool,oa.array]),navigateToFileEnd:oa.bool,commands:oa.array,placeholder:oa.string},pa.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},pa}(aa.Component);return ace$2.default=ua,ace$2}var diff={},split={},extSplit={exports:{}},hasRequiredExtSplit;function requireExtSplit(){return hasRequiredExtSplit||(hasRequiredExtSplit=1,function(ea,na){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(ra,oa,aa){var sa=ra("./lib/oop");ra("./lib/lang");var la=ra("./lib/event_emitter").EventEmitter,ca=ra("./editor").Editor,ua=ra("./virtual_renderer").VirtualRenderer,da=ra("./edit_session").EditSession,pa;pa=function(ha,ga,fa){this.BELOW=1,this.BESIDE=0,this.$container=ha,this.$theme=ga,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(fa||1),this.$cEditor=this.$editors[0],this.on("focus",function(ma){this.$cEditor=ma}.bind(this))},function(){sa.implement(this,la),this.$createEditor=function(){var ha=document.createElement("div");ha.className=this.$editorCSS,ha.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(ha);var ga=new ca(new ua(ha,this.$theme));return ga.on("focus",function(){this._emit("focus",ga)}.bind(this)),this.$editors.push(ga),ga.setFontSize(this.$fontSize),ga},this.setSplits=function(ha){var ga;if(ha<1)throw"The number of splits have to be > 0!";if(ha!=this.$splits){if(ha>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<ha;)ga=this.$editors[this.$splits],this.$container.appendChild(ga.container),ga.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<ha;)this.$createEditor(),this.$splits++}else for(;this.$splits>ha;)ga=this.$editors[this.$splits-1],this.$container.removeChild(ga.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(ha){return this.$editors[ha]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(ha){this.$editors.forEach(function(ga){ga.setTheme(ha)})},this.setKeyboardHandler=function(ha){this.$editors.forEach(function(ga){ga.setKeyboardHandler(ha)})},this.forEach=function(ha,ga){this.$editors.forEach(ha,ga)},this.$fontSize="",this.setFontSize=function(ha){this.$fontSize=ha,this.forEach(function(ga){ga.setFontSize(ha)})},this.$cloneSession=function(ha){var ga=new da(ha.getDocument(),ha.getMode()),fa=ha.getUndoManager();return ga.setUndoManager(fa),ga.setTabSize(ha.getTabSize()),ga.setUseSoftTabs(ha.getUseSoftTabs()),ga.setOverwrite(ha.getOverwrite()),ga.setBreakpoints(ha.getBreakpoints()),ga.setUseWrapMode(ha.getUseWrapMode()),ga.setUseWorker(ha.getUseWorker()),ga.setWrapLimitRange(ha.$wrapLimitRange.min,ha.$wrapLimitRange.max),ga.$foldData=ha.$cloneFoldData(),ga},this.setSession=function(ha,ga){var fa;ga==null?fa=this.$cEditor:fa=this.$editors[ga];var ma=this.$editors.some(function(va){return va.session===ha});return ma&&(ha=this.$cloneSession(ha)),fa.setSession(ha),ha},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(ha){this.$orientation!=ha&&(this.$orientation=ha,this.resize())},this.resize=function(){var ha=this.$container.clientWidth,ga=this.$container.clientHeight,fa;if(this.$orientation==this.BESIDE)for(var ma=ha/this.$splits,va=0;va<this.$splits;va++)fa=this.$editors[va],fa.container.style.width=ma+"px",fa.container.style.top="0px",fa.container.style.left=va*ma+"px",fa.container.style.height=ga+"px",fa.resize();else for(var xa=ga/this.$splits,va=0;va<this.$splits;va++)fa=this.$editors[va],fa.container.style.width=ha+"px",fa.container.style.top=va*xa+"px",fa.container.style.left="0px",fa.container.style.height=xa+"px",fa.resize()}}.call(pa.prototype),oa.Split=pa}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(ra,oa,aa){aa.exports=ra("../split")}),function(){ace.require(["ace/ext/split"],function(ra){ea&&(ea.exports=ra)})}()}(extSplit)),extSplit.exports}var lodash_get,hasRequiredLodash_get;function requireLodash_get(){if(hasRequiredLodash_get)return lodash_get;hasRequiredLodash_get=1;var ea="Expected a function",na="__lodash_hash_undefined__",ra="[object Function]",oa="[object GeneratorFunction]",aa="[object Symbol]",sa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,la=/^\w*$/,ca=/^\./,ua=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,da=/[\\^$.*+?()[\]{}|]/g,pa=/\\(\\)?/g,ha=/^\[object .+?Constructor\]$/,ga=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,fa=typeof self=="object"&&self&&self.Object===Object&&self,ma=ga||fa||Function("return this")();function va(wl,Ll){return wl?.[Ll]}function xa(wl){var Ll=!1;if(wl!=null&&typeof wl.toString!="function")try{Ll=!!(wl+"")}catch{}return Ll}var ya=Array.prototype,Aa=Function.prototype,Ca=Object.prototype,Sa=ma["__core-js_shared__"],wa=function(){var wl=/[^.]+$/.exec(Sa&&Sa.keys&&Sa.keys.IE_PROTO||"");return wl?"Symbol(src)_1."+wl:""}(),ba=Aa.toString,Ea=Ca.hasOwnProperty,$a=Ca.toString,Ma=RegExp("^"+ba.call(Ea).replace(da,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ia=ma.Symbol,Oa=ya.splice,Da=Fl(ma,"Map"),Ta=Fl(Object,"create"),_a=Ia?Ia.prototype:void 0,La=_a?_a.toString:void 0;function Na(wl){var Ll=-1,ic=wl?wl.length:0;for(this.clear();++Ll<ic;){var Yl=wl[Ll];this.set(Yl[0],Yl[1])}}function za(){this.__data__=Ta?Ta(null):{}}function Fa(wl){return this.has(wl)&&delete this.__data__[wl]}function Ha(wl){var Ll=this.__data__;if(Ta){var ic=Ll[wl];return ic===na?void 0:ic}return Ea.call(Ll,wl)?Ll[wl]:void 0}function Va(wl){var Ll=this.__data__;return Ta?Ll[wl]!==void 0:Ea.call(Ll,wl)}function Ua(wl,Ll){var ic=this.__data__;return ic[wl]=Ta&&Ll===void 0?na:Ll,this}Na.prototype.clear=za,Na.prototype.delete=Fa,Na.prototype.get=Ha,Na.prototype.has=Va,Na.prototype.set=Ua;function Qa(wl){var Ll=-1,ic=wl?wl.length:0;for(this.clear();++Ll<ic;){var Yl=wl[Ll];this.set(Yl[0],Yl[1])}}function Wa(){this.__data__=[]}function Za(wl){var Ll=this.__data__,ic=pl(Ll,wl);if(ic<0)return!1;var Yl=Ll.length-1;return ic==Yl?Ll.pop():Oa.call(Ll,ic,1),!0}function Xa(wl){var Ll=this.__data__,ic=pl(Ll,wl);return ic<0?void 0:Ll[ic][1]}function tl(wl){return pl(this.__data__,wl)>-1}function il(wl,Ll){var ic=this.__data__,Yl=pl(ic,wl);return Yl<0?ic.push([wl,Ll]):ic[Yl][1]=Ll,this}Qa.prototype.clear=Wa,Qa.prototype.delete=Za,Qa.prototype.get=Xa,Qa.prototype.has=tl,Qa.prototype.set=il;function Ja(wl){var Ll=-1,ic=wl?wl.length:0;for(this.clear();++Ll<ic;){var Yl=wl[Ll];this.set(Yl[0],Yl[1])}}function nl(){this.__data__={hash:new Na,map:new(Da||Qa),string:new Na}}function Ya(wl){return Ol(this,wl).delete(wl)}function rl(wl){return Ol(this,wl).get(wl)}function sl(wl){return Ol(this,wl).has(wl)}function dl(wl,Ll){return Ol(this,wl).set(wl,Ll),this}Ja.prototype.clear=nl,Ja.prototype.delete=Ya,Ja.prototype.get=rl,Ja.prototype.has=sl,Ja.prototype.set=dl;function pl(wl,Ll){for(var ic=wl.length;ic--;)if(xl(wl[ic][0],Ll))return ic;return-1}function ml(wl,Ll){Ll=Vl(Ll,wl)?[Ll]:Il(Ll);for(var ic=0,Yl=Ll.length;wl!=null&&ic<Yl;)wl=wl[zl(Ll[ic++])];return ic&&ic==Yl?wl:void 0}function Rl(wl){if(!Bl(wl)||vl(wl))return!1;var Ll=$l(wl)||xa(wl)?Ma:ha;return Ll.test(Al(wl))}function Tl(wl){if(typeof wl=="string")return wl;if(ec(wl))return La?La.call(wl):"";var Ll=wl+"";return Ll=="0"&&1/wl==-1/0?"-0":Ll}function Il(wl){return Sl(wl)?wl:kl(wl)}function Ol(wl,Ll){var ic=wl.__data__;return Wl(Ll)?ic[typeof Ll=="string"?"string":"hash"]:ic.map}function Fl(wl,Ll){var ic=va(wl,Ll);return Rl(ic)?ic:void 0}function Vl(wl,Ll){if(Sl(wl))return!1;var ic=typeof wl;return ic=="number"||ic=="symbol"||ic=="boolean"||wl==null||ec(wl)?!0:la.test(wl)||!sa.test(wl)||Ll!=null&&wl in Object(Ll)}function Wl(wl){var Ll=typeof wl;return Ll=="string"||Ll=="number"||Ll=="symbol"||Ll=="boolean"?wl!=="__proto__":wl===null}function vl(wl){return!!wa&&wa in wl}var kl=gl(function(wl){wl=Kl(wl);var Ll=[];return ca.test(wl)&&Ll.push(""),wl.replace(ua,function(ic,Yl,gc,Rc){Ll.push(gc?Rc.replace(pa,"$1"):Yl||ic)}),Ll});function zl(wl){if(typeof wl=="string"||ec(wl))return wl;var Ll=wl+"";return Ll=="0"&&1/wl==-1/0?"-0":Ll}function Al(wl){if(wl!=null){try{return ba.call(wl)}catch{}try{return wl+""}catch{}}return""}function gl(wl,Ll){if(typeof wl!="function"||Ll&&typeof Ll!="function")throw new TypeError(ea);var ic=function(){var Yl=arguments,gc=Ll?Ll.apply(this,Yl):Yl[0],Rc=ic.cache;if(Rc.has(gc))return Rc.get(gc);var Ic=wl.apply(this,Yl);return ic.cache=Rc.set(gc,Ic),Ic};return ic.cache=new(gl.Cache||Ja),ic}gl.Cache=Ja;function xl(wl,Ll){return wl===Ll||wl!==wl&&Ll!==Ll}var Sl=Array.isArray;function $l(wl){var Ll=Bl(wl)?$a.call(wl):"";return Ll==ra||Ll==oa}function Bl(wl){var Ll=typeof wl;return!!wl&&(Ll=="object"||Ll=="function")}function Ul(wl){return!!wl&&typeof wl=="object"}function ec(wl){return typeof wl=="symbol"||Ul(wl)&&$a.call(wl)==aa}function Kl(wl){return wl==null?"":Tl(wl)}function rc(wl,Ll,ic){var Yl=wl==null?void 0:ml(wl,Ll);return Yl===void 0?ic:Yl}return lodash_get=rc,lodash_get}var hasRequiredSplit;function requireSplit(){if(hasRequiredSplit)return split;hasRequiredSplit=1;var ea=split&&split.__extends||function(){var ha=function(ga,fa){return ha=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ma,va){ma.__proto__=va}||function(ma,va){for(var xa in va)Object.prototype.hasOwnProperty.call(va,xa)&&(ma[xa]=va[xa])},ha(ga,fa)};return function(ga,fa){if(typeof fa!="function"&&fa!==null)throw new TypeError("Class extends value "+String(fa)+" is not a constructor or null");ha(ga,fa);function ma(){this.constructor=ga}ga.prototype=fa===null?Object.create(fa):(ma.prototype=fa.prototype,new ma)}}(),na=split&&split.__assign||function(){return na=Object.assign||function(ha){for(var ga,fa=1,ma=arguments.length;fa<ma;fa++){ga=arguments[fa];for(var va in ga)Object.prototype.hasOwnProperty.call(ga,va)&&(ha[va]=ga[va])}return ha},na.apply(this,arguments)};Object.defineProperty(split,"__esModule",{value:!0});var ra=requireEditorOptions(),oa=(0,ra.getAceInstance)(),aa=requireAce$1(),sa=requireExtSplit(),la=requirePropTypes(),ca=requireReact(),ua=requireLodash_isequal(),da=requireLodash_get(),pa=function(ha){ea(ga,ha);function ga(fa){var ma=ha.call(this,fa)||this;return ra.editorEvents.forEach(function(va){ma[va]=ma[va].bind(ma)}),ma.debounce=ra.debounce,ma}return ga.prototype.isInShadow=function(fa){for(var ma=fa&&fa.parentNode;ma;){if(ma.toString()==="[object ShadowRoot]")return!0;ma=ma.parentNode}return!1},ga.prototype.componentDidMount=function(){var fa=this,ma=this.props,va=ma.className,xa=ma.onBeforeLoad,ya=ma.mode,Aa=ma.focus,Ca=ma.theme,Sa=ma.fontSize,wa=ma.value,ba=ma.defaultValue,Ea=ma.cursorStart,$a=ma.showGutter,Ma=ma.wrapEnabled,Ia=ma.showPrintMargin,Oa=ma.scrollMargin,Da=Oa===void 0?[0,0,0,0]:Oa,Ta=ma.keyboardHandler,_a=ma.onLoad,La=ma.commands,Na=ma.annotations,za=ma.markers,Fa=ma.splits;this.editor=oa.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(Ca)),xa&&xa(oa);var Ha=Object.keys(this.props.editorProps),Va=new sa.Split(this.editor.container,"ace/theme/".concat(Ca),Fa);this.editor.env.split=Va,this.splitEditor=Va.getEditor(0),this.split=Va,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var Ua=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),Va.forEach(function(Wa,Za){for(var Xa=0;Xa<Ha.length;Xa++)Wa[Ha[Xa]]=fa.props.editorProps[Ha[Xa]];var tl=da(ba,Za),il=da(wa,Za,"");Wa.session.setUndoManager(new oa.UndoManager),Wa.setTheme("ace/theme/".concat(Ca)),Wa.renderer.setScrollMargin(Da[0],Da[1],Da[2],Da[3]),Wa.getSession().setMode("ace/mode/".concat(ya)),Wa.setFontSize(Sa),Wa.renderer.setShowGutter($a),Wa.getSession().setUseWrapMode(Ma),Wa.setShowPrintMargin(Ia),Wa.on("focus",fa.onFocus),Wa.on("blur",fa.onBlur),Wa.on("input",fa.onInput),Wa.on("copy",fa.onCopy),Wa.on("paste",fa.onPaste),Wa.on("change",fa.onChange),Wa.getSession().selection.on("changeSelection",fa.onSelectionChange),Wa.getSession().selection.on("changeCursor",fa.onCursorChange),Wa.session.on("changeScrollTop",fa.onScroll),Wa.setValue(tl===void 0?il:tl,Ea);var Ja=da(Na,Za,[]),nl=da(za,Za,[]);Wa.getSession().setAnnotations(Ja),nl&&nl.length>0&&fa.handleMarkers(nl,Wa);for(var Xa=0;Xa<ra.editorOptions.length;Xa++){var Ya=ra.editorOptions[Xa];Ua.hasOwnProperty(Ya)?Wa.setOption(Ya,fa.props[Ya]):fa.props[Ya]&&console.warn("ReaceAce: editor option ".concat(Ya," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}fa.handleOptions(fa.props,Wa),Array.isArray(La)&&La.forEach(function(rl){typeof rl.exec=="string"?Wa.commands.bindKey(rl.bindKey,rl.exec):Wa.commands.addCommand(rl)}),Ta&&Wa.setKeyboardHandler("ace/keyboard/"+Ta)}),va&&(this.refEditor.className+=" "+va),Aa&&this.splitEditor.focus();var Qa=this.editor.env.split;Qa.setOrientation(this.props.orientation==="below"?Qa.BELOW:Qa.BESIDE),Qa.resize(!0),_a&&_a(Qa)},ga.prototype.componentDidUpdate=function(fa){var ma=this,va=fa,xa=this.props,ya=this.editor.env.split;if(xa.splits!==va.splits&&ya.setSplits(xa.splits),xa.orientation!==va.orientation&&ya.setOrientation(xa.orientation==="below"?ya.BELOW:ya.BESIDE),ya.forEach(function(wa,ba){xa.mode!==va.mode&&wa.getSession().setMode("ace/mode/"+xa.mode),xa.keyboardHandler!==va.keyboardHandler&&(xa.keyboardHandler?wa.setKeyboardHandler("ace/keyboard/"+xa.keyboardHandler):wa.setKeyboardHandler(null)),xa.fontSize!==va.fontSize&&wa.setFontSize(xa.fontSize),xa.wrapEnabled!==va.wrapEnabled&&wa.getSession().setUseWrapMode(xa.wrapEnabled),xa.showPrintMargin!==va.showPrintMargin&&wa.setShowPrintMargin(xa.showPrintMargin),xa.showGutter!==va.showGutter&&wa.renderer.setShowGutter(xa.showGutter);for(var Ea=0;Ea<ra.editorOptions.length;Ea++){var $a=ra.editorOptions[Ea];xa[$a]!==va[$a]&&wa.setOption($a,xa[$a])}ua(xa.setOptions,va.setOptions)||ma.handleOptions(xa,wa);var Ma=da(xa.value,ba,"");if(wa.getValue()!==Ma){ma.silent=!0;var Ia=wa.session.selection.toJSON();wa.setValue(Ma,xa.cursorStart),wa.session.selection.fromJSON(Ia),ma.silent=!1}var Oa=da(xa.annotations,ba,[]),Da=da(va.annotations,ba,[]);ua(Oa,Da)||wa.getSession().setAnnotations(Oa);var Ta=da(xa.markers,ba,[]),_a=da(va.markers,ba,[]);!ua(Ta,_a)&&Array.isArray(Ta)&&ma.handleMarkers(Ta,wa)}),xa.className!==va.className){var Aa=this.refEditor.className,Ca=Aa.trim().split(" "),Sa=va.className.trim().split(" ");Sa.forEach(function(wa){var ba=Ca.indexOf(wa);Ca.splice(ba,1)}),this.refEditor.className=" "+xa.className+" "+Ca.join(" ")}xa.theme!==va.theme&&ya.setTheme("ace/theme/"+xa.theme),xa.focus&&!va.focus&&this.splitEditor.focus(),(xa.height!==this.props.height||xa.width!==this.props.width)&&this.editor.resize()},ga.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},ga.prototype.onChange=function(fa){if(this.props.onChange&&!this.silent){var ma=[];this.editor.env.split.forEach(function(va){ma.push(va.getValue())}),this.props.onChange(ma,fa)}},ga.prototype.onSelectionChange=function(fa){if(this.props.onSelectionChange){var ma=[];this.editor.env.split.forEach(function(va){ma.push(va.getSelection())}),this.props.onSelectionChange(ma,fa)}},ga.prototype.onCursorChange=function(fa){if(this.props.onCursorChange){var ma=[];this.editor.env.split.forEach(function(va){ma.push(va.getSelection())}),this.props.onCursorChange(ma,fa)}},ga.prototype.onFocus=function(fa){this.props.onFocus&&this.props.onFocus(fa)},ga.prototype.onInput=function(fa){this.props.onInput&&this.props.onInput(fa)},ga.prototype.onBlur=function(fa){this.props.onBlur&&this.props.onBlur(fa)},ga.prototype.onCopy=function(fa){this.props.onCopy&&this.props.onCopy(fa)},ga.prototype.onPaste=function(fa){this.props.onPaste&&this.props.onPaste(fa)},ga.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},ga.prototype.handleOptions=function(fa,ma){for(var va=Object.keys(fa.setOptions),xa=0;xa<va.length;xa++)ma.setOption(va[xa],fa.setOptions[va[xa]])},ga.prototype.handleMarkers=function(fa,ma){var va=ma.getSession().getMarkers(!0);for(var xa in va)va.hasOwnProperty(xa)&&ma.getSession().removeMarker(va[xa].id);va=ma.getSession().getMarkers(!1);for(var xa in va)va.hasOwnProperty(xa)&&ma.getSession().removeMarker(va[xa].id);fa.forEach(function(ya){var Aa=ya.startRow,Ca=ya.startCol,Sa=ya.endRow,wa=ya.endCol,ba=ya.className,Ea=ya.type,$a=ya.inFront,Ma=$a===void 0?!1:$a,Ia=new aa.Range(Aa,Ca,Sa,wa);ma.getSession().addMarker(Ia,ba,Ea,Ma)})},ga.prototype.updateRef=function(fa){this.refEditor=fa},ga.prototype.render=function(){var fa=this.props,ma=fa.name,va=fa.width,xa=fa.height,ya=fa.style,Aa=na({width:va,height:xa},ya);return ca.createElement("div",{ref:this.updateRef,id:ma,style:Aa})},ga.propTypes={className:la.string,debounceChangePeriod:la.number,defaultValue:la.arrayOf(la.string),focus:la.bool,fontSize:la.oneOfType([la.number,la.string]),height:la.string,mode:la.string,name:la.string,onBlur:la.func,onChange:la.func,onCopy:la.func,onFocus:la.func,onInput:la.func,onLoad:la.func,onPaste:la.func,onScroll:la.func,orientation:la.string,showGutter:la.bool,splits:la.number,theme:la.string,value:la.arrayOf(la.string),width:la.string,onSelectionChange:la.func,onCursorChange:la.func,onBeforeLoad:la.func,minLines:la.number,maxLines:la.number,readOnly:la.bool,highlightActiveLine:la.bool,tabSize:la.number,showPrintMargin:la.bool,cursorStart:la.number,editorProps:la.object,setOptions:la.object,style:la.object,scrollMargin:la.array,annotations:la.array,markers:la.array,keyboardHandler:la.string,wrapEnabled:la.bool,enableBasicAutocompletion:la.oneOfType([la.bool,la.array]),enableLiveAutocompletion:la.oneOfType([la.bool,la.array]),commands:la.array},ga.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},ga}(ca.Component);return split.default=pa,split}var diffMatchPatch={exports:{}},hasRequiredDiffMatchPatch;function requireDiffMatchPatch(){return hasRequiredDiffMatchPatch||(hasRequiredDiffMatchPatch=1,function(ea){var na=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},ra=-1,oa=1,aa=0;na.Diff=function(sa,la){return[sa,la]},na.prototype.diff_main=function(sa,la,ca,ua){typeof ua>"u"&&(this.Diff_Timeout<=0?ua=Number.MAX_VALUE:ua=new Date().getTime()+this.Diff_Timeout*1e3);var da=ua;if(sa==null||la==null)throw new Error("Null input. (diff_main)");if(sa==la)return sa?[new na.Diff(aa,sa)]:[];typeof ca>"u"&&(ca=!0);var pa=ca,ha=this.diff_commonPrefix(sa,la),ga=sa.substring(0,ha);sa=sa.substring(ha),la=la.substring(ha),ha=this.diff_commonSuffix(sa,la);var fa=sa.substring(sa.length-ha);sa=sa.substring(0,sa.length-ha),la=la.substring(0,la.length-ha);var ma=this.diff_compute_(sa,la,pa,da);return ga&&ma.unshift(new na.Diff(aa,ga)),fa&&ma.push(new na.Diff(aa,fa)),this.diff_cleanupMerge(ma),ma},na.prototype.diff_compute_=function(sa,la,ca,ua){var da;if(!sa)return[new na.Diff(oa,la)];if(!la)return[new na.Diff(ra,sa)];var pa=sa.length>la.length?sa:la,ha=sa.length>la.length?la:sa,ga=pa.indexOf(ha);if(ga!=-1)return da=[new na.Diff(oa,pa.substring(0,ga)),new na.Diff(aa,ha),new na.Diff(oa,pa.substring(ga+ha.length))],sa.length>la.length&&(da[0][0]=da[2][0]=ra),da;if(ha.length==1)return[new na.Diff(ra,sa),new na.Diff(oa,la)];var fa=this.diff_halfMatch_(sa,la);if(fa){var ma=fa[0],va=fa[1],xa=fa[2],ya=fa[3],Aa=fa[4],Ca=this.diff_main(ma,xa,ca,ua),Sa=this.diff_main(va,ya,ca,ua);return Ca.concat([new na.Diff(aa,Aa)],Sa)}return ca&&sa.length>100&&la.length>100?this.diff_lineMode_(sa,la,ua):this.diff_bisect_(sa,la,ua)},na.prototype.diff_lineMode_=function(sa,la,ca){var ua=this.diff_linesToChars_(sa,la);sa=ua.chars1,la=ua.chars2;var da=ua.lineArray,pa=this.diff_main(sa,la,!1,ca);this.diff_charsToLines_(pa,da),this.diff_cleanupSemantic(pa),pa.push(new na.Diff(aa,""));for(var ha=0,ga=0,fa=0,ma="",va="";ha<pa.length;){switch(pa[ha][0]){case oa:fa++,va+=pa[ha][1];break;case ra:ga++,ma+=pa[ha][1];break;case aa:if(ga>=1&&fa>=1){pa.splice(ha-ga-fa,ga+fa),ha=ha-ga-fa;for(var xa=this.diff_main(ma,va,!1,ca),ya=xa.length-1;ya>=0;ya--)pa.splice(ha,0,xa[ya]);ha=ha+xa.length}fa=0,ga=0,ma="",va="";break}ha++}return pa.pop(),pa},na.prototype.diff_bisect_=function(sa,la,ca){for(var ua=sa.length,da=la.length,pa=Math.ceil((ua+da)/2),ha=pa,ga=2*pa,fa=new Array(ga),ma=new Array(ga),va=0;va<ga;va++)fa[va]=-1,ma[va]=-1;fa[ha+1]=0,ma[ha+1]=0;for(var xa=ua-da,ya=xa%2!=0,Aa=0,Ca=0,Sa=0,wa=0,ba=0;ba<pa&&!(new Date().getTime()>ca);ba++){for(var Ea=-ba+Aa;Ea<=ba-Ca;Ea+=2){var $a=ha+Ea,Ma;Ea==-ba||Ea!=ba&&fa[$a-1]<fa[$a+1]?Ma=fa[$a+1]:Ma=fa[$a-1]+1;for(var Ia=Ma-Ea;Ma<ua&&Ia<da&&sa.charAt(Ma)==la.charAt(Ia);)Ma++,Ia++;if(fa[$a]=Ma,Ma>ua)Ca+=2;else if(Ia>da)Aa+=2;else if(ya){var Oa=ha+xa-Ea;if(Oa>=0&&Oa<ga&&ma[Oa]!=-1){var Da=ua-ma[Oa];if(Ma>=Da)return this.diff_bisectSplit_(sa,la,Ma,Ia,ca)}}}for(var Ta=-ba+Sa;Ta<=ba-wa;Ta+=2){var Oa=ha+Ta,Da;Ta==-ba||Ta!=ba&&ma[Oa-1]<ma[Oa+1]?Da=ma[Oa+1]:Da=ma[Oa-1]+1;for(var _a=Da-Ta;Da<ua&&_a<da&&sa.charAt(ua-Da-1)==la.charAt(da-_a-1);)Da++,_a++;if(ma[Oa]=Da,Da>ua)wa+=2;else if(_a>da)Sa+=2;else if(!ya){var $a=ha+xa-Ta;if($a>=0&&$a<ga&&fa[$a]!=-1){var Ma=fa[$a],Ia=ha+Ma-$a;if(Da=ua-Da,Ma>=Da)return this.diff_bisectSplit_(sa,la,Ma,Ia,ca)}}}}return[new na.Diff(ra,sa),new na.Diff(oa,la)]},na.prototype.diff_bisectSplit_=function(sa,la,ca,ua,da){var pa=sa.substring(0,ca),ha=la.substring(0,ua),ga=sa.substring(ca),fa=la.substring(ua),ma=this.diff_main(pa,ha,!1,da),va=this.diff_main(ga,fa,!1,da);return ma.concat(va)},na.prototype.diff_linesToChars_=function(sa,la){var ca=[],ua={};ca[0]="";function da(fa){for(var ma="",va=0,xa=-1,ya=ca.length;xa<fa.length-1;){xa=fa.indexOf(`
`,va),xa==-1&&(xa=fa.length-1);var Aa=fa.substring(va,xa+1);(ua.hasOwnProperty?ua.hasOwnProperty(Aa):ua[Aa]!==void 0)?ma+=String.fromCharCode(ua[Aa]):(ya==pa&&(Aa=fa.substring(va),xa=fa.length),ma+=String.fromCharCode(ya),ua[Aa]=ya,ca[ya++]=Aa),va=xa+1}return ma}var pa=4e4,ha=da(sa);pa=65535;var ga=da(la);return{chars1:ha,chars2:ga,lineArray:ca}},na.prototype.diff_charsToLines_=function(sa,la){for(var ca=0;ca<sa.length;ca++){for(var ua=sa[ca][1],da=[],pa=0;pa<ua.length;pa++)da[pa]=la[ua.charCodeAt(pa)];sa[ca][1]=da.join("")}},na.prototype.diff_commonPrefix=function(sa,la){if(!sa||!la||sa.charAt(0)!=la.charAt(0))return 0;for(var ca=0,ua=Math.min(sa.length,la.length),da=ua,pa=0;ca<da;)sa.substring(pa,da)==la.substring(pa,da)?(ca=da,pa=ca):ua=da,da=Math.floor((ua-ca)/2+ca);return da},na.prototype.diff_commonSuffix=function(sa,la){if(!sa||!la||sa.charAt(sa.length-1)!=la.charAt(la.length-1))return 0;for(var ca=0,ua=Math.min(sa.length,la.length),da=ua,pa=0;ca<da;)sa.substring(sa.length-da,sa.length-pa)==la.substring(la.length-da,la.length-pa)?(ca=da,pa=ca):ua=da,da=Math.floor((ua-ca)/2+ca);return da},na.prototype.diff_commonOverlap_=function(sa,la){var ca=sa.length,ua=la.length;if(ca==0||ua==0)return 0;ca>ua?sa=sa.substring(ca-ua):ca<ua&&(la=la.substring(0,ca));var da=Math.min(ca,ua);if(sa==la)return da;for(var pa=0,ha=1;;){var ga=sa.substring(da-ha),fa=la.indexOf(ga);if(fa==-1)return pa;ha+=fa,(fa==0||sa.substring(da-ha)==la.substring(0,ha))&&(pa=ha,ha++)}},na.prototype.diff_halfMatch_=function(sa,la){if(this.Diff_Timeout<=0)return null;var ca=sa.length>la.length?sa:la,ua=sa.length>la.length?la:sa;if(ca.length<4||ua.length*2<ca.length)return null;var da=this;function pa(Ca,Sa,wa){for(var ba=Ca.substring(wa,wa+Math.floor(Ca.length/4)),Ea=-1,$a="",Ma,Ia,Oa,Da;(Ea=Sa.indexOf(ba,Ea+1))!=-1;){var Ta=da.diff_commonPrefix(Ca.substring(wa),Sa.substring(Ea)),_a=da.diff_commonSuffix(Ca.substring(0,wa),Sa.substring(0,Ea));$a.length<_a+Ta&&($a=Sa.substring(Ea-_a,Ea)+Sa.substring(Ea,Ea+Ta),Ma=Ca.substring(0,wa-_a),Ia=Ca.substring(wa+Ta),Oa=Sa.substring(0,Ea-_a),Da=Sa.substring(Ea+Ta))}return $a.length*2>=Ca.length?[Ma,Ia,Oa,Da,$a]:null}var ha=pa(ca,ua,Math.ceil(ca.length/4)),ga=pa(ca,ua,Math.ceil(ca.length/2)),fa;if(!ha&&!ga)return null;ga?ha?fa=ha[4].length>ga[4].length?ha:ga:fa=ga:fa=ha;var ma,va,xa,ya;sa.length>la.length?(ma=fa[0],va=fa[1],xa=fa[2],ya=fa[3]):(xa=fa[0],ya=fa[1],ma=fa[2],va=fa[3]);var Aa=fa[4];return[ma,va,xa,ya,Aa]},na.prototype.diff_cleanupSemantic=function(sa){for(var la=!1,ca=[],ua=0,da=null,pa=0,ha=0,ga=0,fa=0,ma=0;pa<sa.length;)sa[pa][0]==aa?(ca[ua++]=pa,ha=fa,ga=ma,fa=0,ma=0,da=sa[pa][1]):(sa[pa][0]==oa?fa+=sa[pa][1].length:ma+=sa[pa][1].length,da&&da.length<=Math.max(ha,ga)&&da.length<=Math.max(fa,ma)&&(sa.splice(ca[ua-1],0,new na.Diff(ra,da)),sa[ca[ua-1]+1][0]=oa,ua--,ua--,pa=ua>0?ca[ua-1]:-1,ha=0,ga=0,fa=0,ma=0,da=null,la=!0)),pa++;for(la&&this.diff_cleanupMerge(sa),this.diff_cleanupSemanticLossless(sa),pa=1;pa<sa.length;){if(sa[pa-1][0]==ra&&sa[pa][0]==oa){var va=sa[pa-1][1],xa=sa[pa][1],ya=this.diff_commonOverlap_(va,xa),Aa=this.diff_commonOverlap_(xa,va);ya>=Aa?(ya>=va.length/2||ya>=xa.length/2)&&(sa.splice(pa,0,new na.Diff(aa,xa.substring(0,ya))),sa[pa-1][1]=va.substring(0,va.length-ya),sa[pa+1][1]=xa.substring(ya),pa++):(Aa>=va.length/2||Aa>=xa.length/2)&&(sa.splice(pa,0,new na.Diff(aa,va.substring(0,Aa))),sa[pa-1][0]=oa,sa[pa-1][1]=xa.substring(0,xa.length-Aa),sa[pa+1][0]=ra,sa[pa+1][1]=va.substring(Aa),pa++),pa++}pa++}},na.prototype.diff_cleanupSemanticLossless=function(sa){function la(Aa,Ca){if(!Aa||!Ca)return 6;var Sa=Aa.charAt(Aa.length-1),wa=Ca.charAt(0),ba=Sa.match(na.nonAlphaNumericRegex_),Ea=wa.match(na.nonAlphaNumericRegex_),$a=ba&&Sa.match(na.whitespaceRegex_),Ma=Ea&&wa.match(na.whitespaceRegex_),Ia=$a&&Sa.match(na.linebreakRegex_),Oa=Ma&&wa.match(na.linebreakRegex_),Da=Ia&&Aa.match(na.blanklineEndRegex_),Ta=Oa&&Ca.match(na.blanklineStartRegex_);return Da||Ta?5:Ia||Oa?4:ba&&!$a&&Ma?3:$a||Ma?2:ba||Ea?1:0}for(var ca=1;ca<sa.length-1;){if(sa[ca-1][0]==aa&&sa[ca+1][0]==aa){var ua=sa[ca-1][1],da=sa[ca][1],pa=sa[ca+1][1],ha=this.diff_commonSuffix(ua,da);if(ha){var ga=da.substring(da.length-ha);ua=ua.substring(0,ua.length-ha),da=ga+da.substring(0,da.length-ha),pa=ga+pa}for(var fa=ua,ma=da,va=pa,xa=la(ua,da)+la(da,pa);da.charAt(0)===pa.charAt(0);){ua+=da.charAt(0),da=da.substring(1)+pa.charAt(0),pa=pa.substring(1);var ya=la(ua,da)+la(da,pa);ya>=xa&&(xa=ya,fa=ua,ma=da,va=pa)}sa[ca-1][1]!=fa&&(fa?sa[ca-1][1]=fa:(sa.splice(ca-1,1),ca--),sa[ca][1]=ma,va?sa[ca+1][1]=va:(sa.splice(ca+1,1),ca--))}ca++}},na.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,na.whitespaceRegex_=/\s/,na.linebreakRegex_=/[\r\n]/,na.blanklineEndRegex_=/\n\r?\n$/,na.blanklineStartRegex_=/^\r?\n\r?\n/,na.prototype.diff_cleanupEfficiency=function(sa){for(var la=!1,ca=[],ua=0,da=null,pa=0,ha=!1,ga=!1,fa=!1,ma=!1;pa<sa.length;)sa[pa][0]==aa?(sa[pa][1].length<this.Diff_EditCost&&(fa||ma)?(ca[ua++]=pa,ha=fa,ga=ma,da=sa[pa][1]):(ua=0,da=null),fa=ma=!1):(sa[pa][0]==ra?ma=!0:fa=!0,da&&(ha&&ga&&fa&&ma||da.length<this.Diff_EditCost/2&&ha+ga+fa+ma==3)&&(sa.splice(ca[ua-1],0,new na.Diff(ra,da)),sa[ca[ua-1]+1][0]=oa,ua--,da=null,ha&&ga?(fa=ma=!0,ua=0):(ua--,pa=ua>0?ca[ua-1]:-1,fa=ma=!1),la=!0)),pa++;la&&this.diff_cleanupMerge(sa)},na.prototype.diff_cleanupMerge=function(sa){sa.push(new na.Diff(aa,""));for(var la=0,ca=0,ua=0,da="",pa="",ha;la<sa.length;)switch(sa[la][0]){case oa:ua++,pa+=sa[la][1],la++;break;case ra:ca++,da+=sa[la][1],la++;break;case aa:ca+ua>1?(ca!==0&&ua!==0&&(ha=this.diff_commonPrefix(pa,da),ha!==0&&(la-ca-ua>0&&sa[la-ca-ua-1][0]==aa?sa[la-ca-ua-1][1]+=pa.substring(0,ha):(sa.splice(0,0,new na.Diff(aa,pa.substring(0,ha))),la++),pa=pa.substring(ha),da=da.substring(ha)),ha=this.diff_commonSuffix(pa,da),ha!==0&&(sa[la][1]=pa.substring(pa.length-ha)+sa[la][1],pa=pa.substring(0,pa.length-ha),da=da.substring(0,da.length-ha))),la-=ca+ua,sa.splice(la,ca+ua),da.length&&(sa.splice(la,0,new na.Diff(ra,da)),la++),pa.length&&(sa.splice(la,0,new na.Diff(oa,pa)),la++),la++):la!==0&&sa[la-1][0]==aa?(sa[la-1][1]+=sa[la][1],sa.splice(la,1)):la++,ua=0,ca=0,da="",pa="";break}sa[sa.length-1][1]===""&&sa.pop();var ga=!1;for(la=1;la<sa.length-1;)sa[la-1][0]==aa&&sa[la+1][0]==aa&&(sa[la][1].substring(sa[la][1].length-sa[la-1][1].length)==sa[la-1][1]?(sa[la][1]=sa[la-1][1]+sa[la][1].substring(0,sa[la][1].length-sa[la-1][1].length),sa[la+1][1]=sa[la-1][1]+sa[la+1][1],sa.splice(la-1,1),ga=!0):sa[la][1].substring(0,sa[la+1][1].length)==sa[la+1][1]&&(sa[la-1][1]+=sa[la+1][1],sa[la][1]=sa[la][1].substring(sa[la+1][1].length)+sa[la+1][1],sa.splice(la+1,1),ga=!0)),la++;ga&&this.diff_cleanupMerge(sa)},na.prototype.diff_xIndex=function(sa,la){var ca=0,ua=0,da=0,pa=0,ha;for(ha=0;ha<sa.length&&(sa[ha][0]!==oa&&(ca+=sa[ha][1].length),sa[ha][0]!==ra&&(ua+=sa[ha][1].length),!(ca>la));ha++)da=ca,pa=ua;return sa.length!=ha&&sa[ha][0]===ra?pa:pa+(la-da)},na.prototype.diff_prettyHtml=function(sa){for(var la=[],ca=/&/g,ua=/</g,da=/>/g,pa=/\n/g,ha=0;ha<sa.length;ha++){var ga=sa[ha][0],fa=sa[ha][1],ma=fa.replace(ca,"&amp;").replace(ua,"&lt;").replace(da,"&gt;").replace(pa,"&para;<br>");switch(ga){case oa:la[ha]='<ins style="background:#e6ffe6;">'+ma+"</ins>";break;case ra:la[ha]='<del style="background:#ffe6e6;">'+ma+"</del>";break;case aa:la[ha]="<span>"+ma+"</span>";break}}return la.join("")},na.prototype.diff_text1=function(sa){for(var la=[],ca=0;ca<sa.length;ca++)sa[ca][0]!==oa&&(la[ca]=sa[ca][1]);return la.join("")},na.prototype.diff_text2=function(sa){for(var la=[],ca=0;ca<sa.length;ca++)sa[ca][0]!==ra&&(la[ca]=sa[ca][1]);return la.join("")},na.prototype.diff_levenshtein=function(sa){for(var la=0,ca=0,ua=0,da=0;da<sa.length;da++){var pa=sa[da][0],ha=sa[da][1];switch(pa){case oa:ca+=ha.length;break;case ra:ua+=ha.length;break;case aa:la+=Math.max(ca,ua),ca=0,ua=0;break}}return la+=Math.max(ca,ua),la},na.prototype.diff_toDelta=function(sa){for(var la=[],ca=0;ca<sa.length;ca++)switch(sa[ca][0]){case oa:la[ca]="+"+encodeURI(sa[ca][1]);break;case ra:la[ca]="-"+sa[ca][1].length;break;case aa:la[ca]="="+sa[ca][1].length;break}return la.join("	").replace(/%20/g," ")},na.prototype.diff_fromDelta=function(sa,la){for(var ca=[],ua=0,da=0,pa=la.split(/\t/g),ha=0;ha<pa.length;ha++){var ga=pa[ha].substring(1);switch(pa[ha].charAt(0)){case"+":try{ca[ua++]=new na.Diff(oa,decodeURI(ga))}catch{throw new Error("Illegal escape in diff_fromDelta: "+ga)}break;case"-":case"=":var fa=parseInt(ga,10);if(isNaN(fa)||fa<0)throw new Error("Invalid number in diff_fromDelta: "+ga);var ma=sa.substring(da,da+=fa);pa[ha].charAt(0)=="="?ca[ua++]=new na.Diff(aa,ma):ca[ua++]=new na.Diff(ra,ma);break;default:if(pa[ha])throw new Error("Invalid diff operation in diff_fromDelta: "+pa[ha])}}if(da!=sa.length)throw new Error("Delta length ("+da+") does not equal source text length ("+sa.length+").");return ca},na.prototype.match_main=function(sa,la,ca){if(sa==null||la==null||ca==null)throw new Error("Null input. (match_main)");return ca=Math.max(0,Math.min(ca,sa.length)),sa==la?0:sa.length?sa.substring(ca,ca+la.length)==la?ca:this.match_bitap_(sa,la,ca):-1},na.prototype.match_bitap_=function(sa,la,ca){if(la.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var ua=this.match_alphabet_(la),da=this;function pa(Ma,Ia){var Oa=Ma/la.length,Da=Math.abs(ca-Ia);return da.Match_Distance?Oa+Da/da.Match_Distance:Da?1:Oa}var ha=this.Match_Threshold,ga=sa.indexOf(la,ca);ga!=-1&&(ha=Math.min(pa(0,ga),ha),ga=sa.lastIndexOf(la,ca+la.length),ga!=-1&&(ha=Math.min(pa(0,ga),ha)));var fa=1<<la.length-1;ga=-1;for(var ma,va,xa=la.length+sa.length,ya,Aa=0;Aa<la.length;Aa++){for(ma=0,va=xa;ma<va;)pa(Aa,ca+va)<=ha?ma=va:xa=va,va=Math.floor((xa-ma)/2+ma);xa=va;var Ca=Math.max(1,ca-va+1),Sa=Math.min(ca+va,sa.length)+la.length,wa=Array(Sa+2);wa[Sa+1]=(1<<Aa)-1;for(var ba=Sa;ba>=Ca;ba--){var Ea=ua[sa.charAt(ba-1)];if(Aa===0?wa[ba]=(wa[ba+1]<<1|1)&Ea:wa[ba]=(wa[ba+1]<<1|1)&Ea|((ya[ba+1]|ya[ba])<<1|1)|ya[ba+1],wa[ba]&fa){var $a=pa(Aa,ba-1);if($a<=ha)if(ha=$a,ga=ba-1,ga>ca)Ca=Math.max(1,2*ca-ga);else break}}if(pa(Aa+1,ca)>ha)break;ya=wa}return ga},na.prototype.match_alphabet_=function(sa){for(var la={},ca=0;ca<sa.length;ca++)la[sa.charAt(ca)]=0;for(var ca=0;ca<sa.length;ca++)la[sa.charAt(ca)]|=1<<sa.length-ca-1;return la},na.prototype.patch_addContext_=function(sa,la){if(la.length!=0){if(sa.start2===null)throw Error("patch not initialized");for(var ca=la.substring(sa.start2,sa.start2+sa.length1),ua=0;la.indexOf(ca)!=la.lastIndexOf(ca)&&ca.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)ua+=this.Patch_Margin,ca=la.substring(sa.start2-ua,sa.start2+sa.length1+ua);ua+=this.Patch_Margin;var da=la.substring(sa.start2-ua,sa.start2);da&&sa.diffs.unshift(new na.Diff(aa,da));var pa=la.substring(sa.start2+sa.length1,sa.start2+sa.length1+ua);pa&&sa.diffs.push(new na.Diff(aa,pa)),sa.start1-=da.length,sa.start2-=da.length,sa.length1+=da.length+pa.length,sa.length2+=da.length+pa.length}},na.prototype.patch_make=function(sa,la,ca){var ua,da;if(typeof sa=="string"&&typeof la=="string"&&typeof ca>"u")ua=sa,da=this.diff_main(ua,la,!0),da.length>2&&(this.diff_cleanupSemantic(da),this.diff_cleanupEfficiency(da));else if(sa&&typeof sa=="object"&&typeof la>"u"&&typeof ca>"u")da=sa,ua=this.diff_text1(da);else if(typeof sa=="string"&&la&&typeof la=="object"&&typeof ca>"u")ua=sa,da=la;else if(typeof sa=="string"&&typeof la=="string"&&ca&&typeof ca=="object")ua=sa,da=ca;else throw new Error("Unknown call format to patch_make.");if(da.length===0)return[];for(var pa=[],ha=new na.patch_obj,ga=0,fa=0,ma=0,va=ua,xa=ua,ya=0;ya<da.length;ya++){var Aa=da[ya][0],Ca=da[ya][1];switch(!ga&&Aa!==aa&&(ha.start1=fa,ha.start2=ma),Aa){case oa:ha.diffs[ga++]=da[ya],ha.length2+=Ca.length,xa=xa.substring(0,ma)+Ca+xa.substring(ma);break;case ra:ha.length1+=Ca.length,ha.diffs[ga++]=da[ya],xa=xa.substring(0,ma)+xa.substring(ma+Ca.length);break;case aa:Ca.length<=2*this.Patch_Margin&&ga&&da.length!=ya+1?(ha.diffs[ga++]=da[ya],ha.length1+=Ca.length,ha.length2+=Ca.length):Ca.length>=2*this.Patch_Margin&&ga&&(this.patch_addContext_(ha,va),pa.push(ha),ha=new na.patch_obj,ga=0,va=xa,fa=ma);break}Aa!==oa&&(fa+=Ca.length),Aa!==ra&&(ma+=Ca.length)}return ga&&(this.patch_addContext_(ha,va),pa.push(ha)),pa},na.prototype.patch_deepCopy=function(sa){for(var la=[],ca=0;ca<sa.length;ca++){var ua=sa[ca],da=new na.patch_obj;da.diffs=[];for(var pa=0;pa<ua.diffs.length;pa++)da.diffs[pa]=new na.Diff(ua.diffs[pa][0],ua.diffs[pa][1]);da.start1=ua.start1,da.start2=ua.start2,da.length1=ua.length1,da.length2=ua.length2,la[ca]=da}return la},na.prototype.patch_apply=function(sa,la){if(sa.length==0)return[la,[]];sa=this.patch_deepCopy(sa);var ca=this.patch_addPadding(sa);la=ca+la+ca,this.patch_splitMax(sa);for(var ua=0,da=[],pa=0;pa<sa.length;pa++){var ha=sa[pa].start2+ua,ga=this.diff_text1(sa[pa].diffs),fa,ma=-1;if(ga.length>this.Match_MaxBits?(fa=this.match_main(la,ga.substring(0,this.Match_MaxBits),ha),fa!=-1&&(ma=this.match_main(la,ga.substring(ga.length-this.Match_MaxBits),ha+ga.length-this.Match_MaxBits),(ma==-1||fa>=ma)&&(fa=-1))):fa=this.match_main(la,ga,ha),fa==-1)da[pa]=!1,ua-=sa[pa].length2-sa[pa].length1;else{da[pa]=!0,ua=fa-ha;var va;if(ma==-1?va=la.substring(fa,fa+ga.length):va=la.substring(fa,ma+this.Match_MaxBits),ga==va)la=la.substring(0,fa)+this.diff_text2(sa[pa].diffs)+la.substring(fa+ga.length);else{var xa=this.diff_main(ga,va,!1);if(ga.length>this.Match_MaxBits&&this.diff_levenshtein(xa)/ga.length>this.Patch_DeleteThreshold)da[pa]=!1;else{this.diff_cleanupSemanticLossless(xa);for(var ya=0,Aa,Ca=0;Ca<sa[pa].diffs.length;Ca++){var Sa=sa[pa].diffs[Ca];Sa[0]!==aa&&(Aa=this.diff_xIndex(xa,ya)),Sa[0]===oa?la=la.substring(0,fa+Aa)+Sa[1]+la.substring(fa+Aa):Sa[0]===ra&&(la=la.substring(0,fa+Aa)+la.substring(fa+this.diff_xIndex(xa,ya+Sa[1].length))),Sa[0]!==ra&&(ya+=Sa[1].length)}}}}}return la=la.substring(ca.length,la.length-ca.length),[la,da]},na.prototype.patch_addPadding=function(sa){for(var la=this.Patch_Margin,ca="",ua=1;ua<=la;ua++)ca+=String.fromCharCode(ua);for(var ua=0;ua<sa.length;ua++)sa[ua].start1+=la,sa[ua].start2+=la;var da=sa[0],pa=da.diffs;if(pa.length==0||pa[0][0]!=aa)pa.unshift(new na.Diff(aa,ca)),da.start1-=la,da.start2-=la,da.length1+=la,da.length2+=la;else if(la>pa[0][1].length){var ha=la-pa[0][1].length;pa[0][1]=ca.substring(pa[0][1].length)+pa[0][1],da.start1-=ha,da.start2-=ha,da.length1+=ha,da.length2+=ha}if(da=sa[sa.length-1],pa=da.diffs,pa.length==0||pa[pa.length-1][0]!=aa)pa.push(new na.Diff(aa,ca)),da.length1+=la,da.length2+=la;else if(la>pa[pa.length-1][1].length){var ha=la-pa[pa.length-1][1].length;pa[pa.length-1][1]+=ca.substring(0,ha),da.length1+=ha,da.length2+=ha}return ca},na.prototype.patch_splitMax=function(sa){for(var la=this.Match_MaxBits,ca=0;ca<sa.length;ca++)if(!(sa[ca].length1<=la)){var ua=sa[ca];sa.splice(ca--,1);for(var da=ua.start1,pa=ua.start2,ha="";ua.diffs.length!==0;){var ga=new na.patch_obj,fa=!0;for(ga.start1=da-ha.length,ga.start2=pa-ha.length,ha!==""&&(ga.length1=ga.length2=ha.length,ga.diffs.push(new na.Diff(aa,ha)));ua.diffs.length!==0&&ga.length1<la-this.Patch_Margin;){var ma=ua.diffs[0][0],va=ua.diffs[0][1];ma===oa?(ga.length2+=va.length,pa+=va.length,ga.diffs.push(ua.diffs.shift()),fa=!1):ma===ra&&ga.diffs.length==1&&ga.diffs[0][0]==aa&&va.length>2*la?(ga.length1+=va.length,da+=va.length,fa=!1,ga.diffs.push(new na.Diff(ma,va)),ua.diffs.shift()):(va=va.substring(0,la-ga.length1-this.Patch_Margin),ga.length1+=va.length,da+=va.length,ma===aa?(ga.length2+=va.length,pa+=va.length):fa=!1,ga.diffs.push(new na.Diff(ma,va)),va==ua.diffs[0][1]?ua.diffs.shift():ua.diffs[0][1]=ua.diffs[0][1].substring(va.length))}ha=this.diff_text2(ga.diffs),ha=ha.substring(ha.length-this.Patch_Margin);var xa=this.diff_text1(ua.diffs).substring(0,this.Patch_Margin);xa!==""&&(ga.length1+=xa.length,ga.length2+=xa.length,ga.diffs.length!==0&&ga.diffs[ga.diffs.length-1][0]===aa?ga.diffs[ga.diffs.length-1][1]+=xa:ga.diffs.push(new na.Diff(aa,xa))),fa||sa.splice(++ca,0,ga)}}},na.prototype.patch_toText=function(sa){for(var la=[],ca=0;ca<sa.length;ca++)la[ca]=sa[ca];return la.join("")},na.prototype.patch_fromText=function(sa){var la=[];if(!sa)return la;for(var ca=sa.split(`
`),ua=0,da=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;ua<ca.length;){var pa=ca[ua].match(da);if(!pa)throw new Error("Invalid patch string: "+ca[ua]);var ha=new na.patch_obj;for(la.push(ha),ha.start1=parseInt(pa[1],10),pa[2]===""?(ha.start1--,ha.length1=1):pa[2]=="0"?ha.length1=0:(ha.start1--,ha.length1=parseInt(pa[2],10)),ha.start2=parseInt(pa[3],10),pa[4]===""?(ha.start2--,ha.length2=1):pa[4]=="0"?ha.length2=0:(ha.start2--,ha.length2=parseInt(pa[4],10)),ua++;ua<ca.length;){var ga=ca[ua].charAt(0);try{var fa=decodeURI(ca[ua].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+fa)}if(ga=="-")ha.diffs.push(new na.Diff(ra,fa));else if(ga=="+")ha.diffs.push(new na.Diff(oa,fa));else if(ga==" ")ha.diffs.push(new na.Diff(aa,fa));else{if(ga=="@")break;if(ga!=="")throw new Error('Invalid patch mode "'+ga+'" in: '+fa)}ua++}}return la},na.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},na.patch_obj.prototype.toString=function(){var sa,la;this.length1===0?sa=this.start1+",0":this.length1==1?sa=this.start1+1:sa=this.start1+1+","+this.length1,this.length2===0?la=this.start2+",0":this.length2==1?la=this.start2+1:la=this.start2+1+","+this.length2;for(var ca=["@@ -"+sa+" +"+la+` @@
`],ua,da=0;da<this.diffs.length;da++){switch(this.diffs[da][0]){case oa:ua="+";break;case ra:ua="-";break;case aa:ua=" ";break}ca[da+1]=ua+encodeURI(this.diffs[da][1])+`
`}return ca.join("").replace(/%20/g," ")},ea.exports=na,ea.exports.diff_match_patch=na,ea.exports.DIFF_DELETE=ra,ea.exports.DIFF_INSERT=oa,ea.exports.DIFF_EQUAL=aa}(diffMatchPatch)),diffMatchPatch.exports}var hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff;hasRequiredDiff=1;var ea=diff&&diff.__extends||function(){var la=function(ca,ua){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(da,pa){da.__proto__=pa}||function(da,pa){for(var ha in pa)Object.prototype.hasOwnProperty.call(pa,ha)&&(da[ha]=pa[ha])},la(ca,ua)};return function(ca,ua){if(typeof ua!="function"&&ua!==null)throw new TypeError("Class extends value "+String(ua)+" is not a constructor or null");la(ca,ua);function da(){this.constructor=ca}ca.prototype=ua===null?Object.create(ua):(da.prototype=ua.prototype,new da)}}();Object.defineProperty(diff,"__esModule",{value:!0});var na=requirePropTypes(),ra=requireReact(),oa=requireSplit(),aa=requireDiffMatchPatch(),sa=function(la){ea(ca,la);function ca(ua){var da=la.call(this,ua)||this;return da.state={value:da.props.value},da.onChange=da.onChange.bind(da),da.diff=da.diff.bind(da),da}return ca.prototype.componentDidUpdate=function(){var ua=this.props.value;ua!==this.state.value&&this.setState({value:ua})},ca.prototype.onChange=function(ua){this.setState({value:ua}),this.props.onChange&&this.props.onChange(ua)},ca.prototype.diff=function(){var ua=new aa,da=this.state.value[0],pa=this.state.value[1];if(da.length===0&&pa.length===0)return[];var ha=ua.diff_main(da,pa);ua.diff_cleanupSemantic(ha);var ga=this.generateDiffedLines(ha),fa=this.setCodeMarkers(ga);return fa},ca.prototype.generateDiffedLines=function(ua){var da={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1},pa={left:[],right:[]},ha={left:1,right:1};return ua.forEach(function(ga){var fa=ga[0],ma=ga[1],va=ma.split(`
`).length-1;if(ma.length!==0){var xa=ma[0],ya=ma[ma.length-1],Aa=0;switch(fa){case da.DIFF_EQUAL:ha.left+=va,ha.right+=va;break;case da.DIFF_DELETE:xa===`
`&&(ha.left++,va--),Aa=va,Aa===0&&pa.right.push({startLine:ha.right,endLine:ha.right}),ya===`
`&&(Aa-=1),pa.left.push({startLine:ha.left,endLine:ha.left+Aa}),ha.left+=va;break;case da.DIFF_INSERT:xa===`
`&&(ha.right++,va--),Aa=va,Aa===0&&pa.left.push({startLine:ha.left,endLine:ha.left}),ya===`
`&&(Aa-=1),pa.right.push({startLine:ha.right,endLine:ha.right+Aa}),ha.right+=va;break;default:throw new Error("Diff type was not defined.")}}}),pa},ca.prototype.setCodeMarkers=function(ua){ua===void 0&&(ua={left:[],right:[]});for(var da=[],pa={left:[],right:[]},ha=0;ha<ua.left.length;ha++){var ga={startRow:ua.left[ha].startLine-1,endRow:ua.left[ha].endLine,type:"text",className:"codeMarker"};pa.left.push(ga)}for(var ha=0;ha<ua.right.length;ha++){var ga={startRow:ua.right[ha].startLine-1,endRow:ua.right[ha].endLine,type:"text",className:"codeMarker"};pa.right.push(ga)}return da[0]=pa.left,da[1]=pa.right,da},ca.prototype.render=function(){var ua=this.diff();return ra.createElement(oa.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:ua})},ca.propTypes={cursorStart:na.number,editorProps:na.object,enableBasicAutocompletion:na.bool,enableLiveAutocompletion:na.bool,focus:na.bool,fontSize:na.number,height:na.string,highlightActiveLine:na.bool,maxLines:na.number,minLines:na.number,mode:na.string,name:na.string,className:na.string,onLoad:na.func,onPaste:na.func,onScroll:na.func,onChange:na.func,orientation:na.string,readOnly:na.bool,scrollMargin:na.array,setOptions:na.object,showGutter:na.bool,showPrintMargin:na.bool,splits:na.number,style:na.object,tabSize:na.number,theme:na.string,value:na.array,width:na.string,wrapEnabled:na.bool},ca.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},ca}(ra.Component);return diff.default=sa,diff}var hasRequiredLib$2;function requireLib$2(){if(hasRequiredLib$2)return lib$2;hasRequiredLib$2=1,Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.diff=lib$2.split=void 0;var ea=requireAce(),na=requireDiff();lib$2.diff=na.default;var ra=requireSplit();return lib$2.split=ra.default,lib$2.default=ea.default,lib$2}var libExports$2=requireLib$2();const AceEditor=getDefaultExportFromCjs(libExports$2);var extLanguage_tools={exports:{}},hasRequiredExtLanguage_tools;function requireExtLanguage_tools(){return hasRequiredExtLanguage_tools||(hasRequiredExtLanguage_tools=1,function(ea,na){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(ra,oa,aa){var sa=ra("./lib/dom"),la=ra("./lib/oop"),ca=ra("./lib/event_emitter").EventEmitter,ua=ra("./lib/lang"),da=ra("./range").Range,pa=ra("./range_list").RangeList,ha=ra("./keyboard/hash_handler").HashHandler,ga=ra("./tokenizer").Tokenizer,fa=ra("./clipboard"),ma={CURRENT_WORD:function(ba){return ba.session.getTextRange(ba.session.getWordRange())},SELECTION:function(ba,Ea,$a){var Ma=ba.session.getTextRange();return $a?Ma.replace(/\n\r?([ \t]*\S)/g,`
`+$a+"$1"):Ma},CURRENT_LINE:function(ba){return ba.session.getLine(ba.getCursorPosition().row)},PREV_LINE:function(ba){return ba.session.getLine(ba.getCursorPosition().row-1)},LINE_INDEX:function(ba){return ba.getCursorPosition().row},LINE_NUMBER:function(ba){return ba.getCursorPosition().row+1},SOFT_TABS:function(ba){return ba.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(ba){return ba.session.getTabSize()},CLIPBOARD:function(ba){return fa.getText&&fa.getText()},FILENAME:function(ba){return/[^/\\]*$/.exec(this.FILEPATH(ba))[0]},FILENAME_BASE:function(ba){return/[^/\\]*$/.exec(this.FILEPATH(ba))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(ba){return this.FILEPATH(ba).replace(/[^/\\]*$/,"")},FILEPATH:function(ba){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(ba){var Ea=ba.session.$mode||{};return Ea.blockComment&&Ea.blockComment.start||""},BLOCK_COMMENT_END:function(ba){var Ea=ba.session.$mode||{};return Ea.blockComment&&Ea.blockComment.end||""},LINE_COMMENT:function(ba){var Ea=ba.session.$mode||{};return Ea.lineCommentStart||""},CURRENT_YEAR:va.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:va.bind(null,{year:"2-digit"}),CURRENT_MONTH:va.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:va.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:va.bind(null,{month:"short"}),CURRENT_DATE:va.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:va.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:va.bind(null,{weekday:"short"}),CURRENT_HOUR:va.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:va.bind(null,{minute:"2-digit"}),CURRENT_SECOND:va.bind(null,{second:"2-digit"})};ma.SELECTED_TEXT=ma.SELECTION;function va(ba){var Ea=new Date().toLocaleString("en-us",ba);return Ea.length==1?"0"+Ea:Ea}var xa=function(){function ba(){this.snippetMap={},this.snippetNameMap={},this.variables=ma}return ba.prototype.getTokenizer=function(){return ba.$tokenizer||this.createTokenizer()},ba.prototype.createTokenizer=function(){function Ea(Ia){return Ia=Ia.substr(1),/^\d+$/.test(Ia)?[{tabstopId:parseInt(Ia,10)}]:[{text:Ia}]}function $a(Ia){return"(?:[^\\\\"+Ia+"]|\\\\.)"}var Ma={regex:"/("+$a("/")+"+)/",onMatch:function(Ia,Oa,Da){var Ta=Da[0];return Ta.fmtString=!0,Ta.guard=Ia.slice(1,-1),Ta.flag="",""},next:"formatString"};return ba.$tokenizer=new ga({start:[{regex:/\\./,onMatch:function(Ia,Oa,Da){var Ta=Ia[1];return(Ta=="}"&&Da.length||"`$\\".indexOf(Ta)!=-1)&&(Ia=Ta),[Ia]}},{regex:/}/,onMatch:function(Ia,Oa,Da){return[Da.length?Da.shift():Ia]}},{regex:/\$(?:\d+|\w+)/,onMatch:Ea},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(Ia,Oa,Da){var Ta=Ea(Ia.substr(1));return Da.unshift(Ta[0]),Ta},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+$a("\\|")+"*\\|",onMatch:function(Ia,Oa,Da){var Ta=Ia.slice(1,-1).replace(/\\[,|\\]|,/g,function(_a){return _a.length==2?_a[1]:"\0"}).split("\0").map(function(_a){return{value:_a}});return Da[0].choices=Ta,[Ta[0]]},next:"start"},Ma,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(Ia,Oa,Da){return Da.length&&Da[0].expectElse?(Da[0].expectElse=!1,Da[0].ifEnd={elseEnd:Da[0]},[Da[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(Ia,Oa,Da){var Ta=Ia[1];return Ta=="}"&&Da.length||"`$\\".indexOf(Ta)!=-1?Ia=Ta:Ta=="n"?Ia=`
`:Ta=="t"?Ia="	":"ulULE".indexOf(Ta)!=-1&&(Ia={changeCase:Ta,local:Ta>"a"}),[Ia]}},{regex:"/\\w*}",onMatch:function(Ia,Oa,Da){var Ta=Da.shift();return Ta&&(Ta.flag=Ia.slice(1,-1)),this.next=Ta&&Ta.tabstopId?"start":"",[Ta||Ia]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(Ia,Oa,Da){return[{text:Ia.slice(1)}]}},{regex:/\${\w+/,onMatch:function(Ia,Oa,Da){var Ta={text:Ia.slice(2)};return Da.unshift(Ta),[Ta]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(Ia,Oa,Da){var Ta=Da.shift();return this.next=Ta&&Ta.tabstopId?"start":"",[Ta||Ia]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(Ia,Oa,Da){var Ta=Da[0];return Ta.formatFunction=Ia.slice(2,-1),[Da.shift()]},next:"formatString"},Ma,{regex:/:[\?\-+]?/,onMatch:function(Ia,Oa,Da){Ia[1]=="+"&&(Da[0].ifEnd=Da[0]),Ia[1]=="?"&&(Da[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),ba.$tokenizer},ba.prototype.tokenizeTmSnippet=function(Ea,$a){return this.getTokenizer().getLineTokens(Ea,$a).tokens.map(function(Ma){return Ma.value||Ma})},ba.prototype.getVariableValue=function(Ea,$a,Ma){if(/^\d+$/.test($a))return(this.variables.__||{})[$a]||"";if(/^[A-Z]\d+$/.test($a))return(this.variables[$a[0]+"__"]||{})[$a.substr(1)]||"";if($a=$a.replace(/^TM_/,""),!this.variables.hasOwnProperty($a))return"";var Ia=this.variables[$a];return typeof Ia=="function"&&(Ia=this.variables[$a](Ea,$a,Ma)),Ia??""},ba.prototype.tmStrFormat=function(Ea,$a,Ma){if(!$a.fmt)return Ea;var Ia=$a.flag||"",Oa=$a.guard;Oa=new RegExp(Oa,Ia.replace(/[^gim]/g,""));var Da=typeof $a.fmt=="string"?this.tokenizeTmSnippet($a.fmt,"formatString"):$a.fmt,Ta=this,_a=Ea.replace(Oa,function(){var La=Ta.variables.__;Ta.variables.__=[].slice.call(arguments);for(var Na=Ta.resolveVariables(Da,Ma),za="E",Fa=0;Fa<Na.length;Fa++){var Ha=Na[Fa];if(typeof Ha=="object")if(Na[Fa]="",Ha.changeCase&&Ha.local){var Va=Na[Fa+1];Va&&typeof Va=="string"&&(Ha.changeCase=="u"?Na[Fa]=Va[0].toUpperCase():Na[Fa]=Va[0].toLowerCase(),Na[Fa+1]=Va.substr(1))}else Ha.changeCase&&(za=Ha.changeCase);else za=="U"?Na[Fa]=Ha.toUpperCase():za=="L"&&(Na[Fa]=Ha.toLowerCase())}return Ta.variables.__=La,Na.join("")});return _a},ba.prototype.tmFormatFunction=function(Ea,$a,Ma){return $a.formatFunction=="upcase"?Ea.toUpperCase():$a.formatFunction=="downcase"?Ea.toLowerCase():Ea},ba.prototype.resolveVariables=function(Ea,$a){for(var Ma=[],Ia="",Oa=!0,Da=0;Da<Ea.length;Da++){var Ta=Ea[Da];if(typeof Ta=="string"){Ma.push(Ta),Ta==`
`?(Oa=!0,Ia=""):Oa&&(Ia=/^\t*/.exec(Ta)[0],Oa=/\S/.test(Ta));continue}if(Ta){if(Oa=!1,Ta.fmtString){var _a=Ea.indexOf(Ta,Da+1);_a==-1&&(_a=Ea.length),Ta.fmt=Ea.slice(Da+1,_a),Da=_a}if(Ta.text){var La=this.getVariableValue($a,Ta.text,Ia)+"";Ta.fmtString&&(La=this.tmStrFormat(La,Ta,$a)),Ta.formatFunction&&(La=this.tmFormatFunction(La,Ta,$a)),La&&!Ta.ifEnd?(Ma.push(La),Na(Ta)):!La&&Ta.ifEnd&&Na(Ta.ifEnd)}else Ta.elseEnd?Na(Ta.elseEnd):(Ta.tabstopId!=null||Ta.changeCase!=null)&&Ma.push(Ta)}}function Na(za){var Fa=Ea.indexOf(za,Da+1);Fa!=-1&&(Da=Fa)}return Ma},ba.prototype.getDisplayTextForSnippet=function(Ea,$a){var Ma=ya.call(this,Ea,$a);return Ma.text},ba.prototype.insertSnippetForSelection=function(Ea,$a,Ma){Ma===void 0&&(Ma={});var Ia=ya.call(this,Ea,$a,Ma),Oa=Ea.getSelectionRange(),Da=Ea.session.replace(Oa,Ia.text),Ta=new Aa(Ea),_a=Ea.inVirtualSelectionMode&&Ea.selection.index;Ta.addTabstops(Ia.tabstops,Oa.start,Da,_a)},ba.prototype.insertSnippet=function(Ea,$a,Ma){Ma===void 0&&(Ma={});var Ia=this;if(Ea.inVirtualSelectionMode)return Ia.insertSnippetForSelection(Ea,$a,Ma);Ea.forEachSelection(function(){Ia.insertSnippetForSelection(Ea,$a,Ma)},null,{keepOrder:!0}),Ea.tabstopManager&&Ea.tabstopManager.tabNext()},ba.prototype.$getScope=function(Ea){var $a=Ea.session.$mode.$id||"";if($a=$a.split("/").pop(),$a==="html"||$a==="php"){$a==="php"&&!Ea.session.$mode.inlinePhp&&($a="html");var Ma=Ea.getCursorPosition(),Ia=Ea.session.getState(Ma.row);typeof Ia=="object"&&(Ia=Ia[0]),Ia.substring&&(Ia.substring(0,3)=="js-"?$a="javascript":Ia.substring(0,4)=="css-"?$a="css":Ia.substring(0,4)=="php-"&&($a="php"))}return $a},ba.prototype.getActiveScopes=function(Ea){var $a=this.$getScope(Ea),Ma=[$a],Ia=this.snippetMap;return Ia[$a]&&Ia[$a].includeScopes&&Ma.push.apply(Ma,Ia[$a].includeScopes),Ma.push("_"),Ma},ba.prototype.expandWithTab=function(Ea,$a){var Ma=this,Ia=Ea.forEachSelection(function(){return Ma.expandSnippetForSelection(Ea,$a)},null,{keepOrder:!0});return Ia&&Ea.tabstopManager&&Ea.tabstopManager.tabNext(),Ia},ba.prototype.expandSnippetForSelection=function(Ea,$a){var Ma=Ea.getCursorPosition(),Ia=Ea.session.getLine(Ma.row),Oa=Ia.substring(0,Ma.column),Da=Ia.substr(Ma.column),Ta=this.snippetMap,_a;return this.getActiveScopes(Ea).some(function(La){var Na=Ta[La];return Na&&(_a=this.findMatchingSnippet(Na,Oa,Da)),!!_a},this),_a?($a&&$a.dryRun||(Ea.session.doc.removeInLine(Ma.row,Ma.column-_a.replaceBefore.length,Ma.column+_a.replaceAfter.length),this.variables.M__=_a.matchBefore,this.variables.T__=_a.matchAfter,this.insertSnippetForSelection(Ea,_a.content),this.variables.M__=this.variables.T__=null),!0):!1},ba.prototype.findMatchingSnippet=function(Ea,$a,Ma){for(var Ia=Ea.length;Ia--;){var Oa=Ea[Ia];if(!(Oa.startRe&&!Oa.startRe.test($a))&&!(Oa.endRe&&!Oa.endRe.test(Ma))&&!(!Oa.startRe&&!Oa.endRe))return Oa.matchBefore=Oa.startRe?Oa.startRe.exec($a):[""],Oa.matchAfter=Oa.endRe?Oa.endRe.exec(Ma):[""],Oa.replaceBefore=Oa.triggerRe?Oa.triggerRe.exec($a)[0]:"",Oa.replaceAfter=Oa.endTriggerRe?Oa.endTriggerRe.exec(Ma)[0]:"",Oa}},ba.prototype.register=function(Ea,$a){var Ma=this.snippetMap,Ia=this.snippetNameMap,Oa=this;Ea||(Ea=[]);function Da(La){return La&&!/^\^?\(.*\)\$?$|^\\b$/.test(La)&&(La="(?:"+La+")"),La||""}function Ta(La,Na,za){return La=Da(La),Na=Da(Na),La=Na+La,La&&La[La.length-1]!="$"&&(La=La+"$"),new RegExp(La)}function _a(La){La.scope||(La.scope=$a||"_"),$a=La.scope,Ma[$a]||(Ma[$a]=[],Ia[$a]={});var Na=Ia[$a];if(La.name){var za=Na[La.name];za&&Oa.unregister(za),Na[La.name]=La}Ma[$a].push(La),La.prefix&&(La.tabTrigger=La.prefix),!La.content&&La.body&&(La.content=Array.isArray(La.body)?La.body.join(`
`):La.body),La.tabTrigger&&!La.trigger&&(!La.guard&&/^\w/.test(La.tabTrigger)&&(La.guard="\\b"),La.trigger=ua.escapeRegExp(La.tabTrigger)),!(!La.trigger&&!La.guard&&!La.endTrigger&&!La.endGuard)&&(La.startRe=Ta(La.trigger,La.guard),La.triggerRe=new RegExp(La.trigger),La.endRe=Ta(La.endTrigger,La.endGuard),La.endTriggerRe=new RegExp(La.endTrigger))}Array.isArray(Ea)?Ea.forEach(_a):Object.keys(Ea).forEach(function(La){_a(Ea[La])}),this._signal("registerSnippets",{scope:$a})},ba.prototype.unregister=function(Ea,$a){var Ma=this.snippetMap,Ia=this.snippetNameMap;function Oa(Da){var Ta=Ia[Da.scope||$a];if(Ta&&Ta[Da.name]){delete Ta[Da.name];var _a=Ma[Da.scope||$a],La=_a&&_a.indexOf(Da);La>=0&&_a.splice(La,1)}}Ea.content?Oa(Ea):Array.isArray(Ea)&&Ea.forEach(Oa)},ba.prototype.parseSnippetFile=function(Ea){Ea=Ea.replace(/\r/g,"");for(var $a=[],Ma={},Ia=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,Oa;Oa=Ia.exec(Ea);){if(Oa[1])try{Ma=JSON.parse(Oa[1]),$a.push(Ma)}catch{}if(Oa[4])Ma.content=Oa[4].replace(/^\t/gm,""),$a.push(Ma),Ma={};else{var Da=Oa[2],Ta=Oa[3];if(Da=="regex"){var _a=/\/((?:[^\/\\]|\\.)*)|$/g;Ma.guard=_a.exec(Ta)[1],Ma.trigger=_a.exec(Ta)[1],Ma.endTrigger=_a.exec(Ta)[1],Ma.endGuard=_a.exec(Ta)[1]}else Da=="snippet"?(Ma.tabTrigger=Ta.match(/^\S*/)[0],Ma.name||(Ma.name=Ta)):Da&&(Ma[Da]=Ta)}}return $a},ba.prototype.getSnippetByName=function(Ea,$a){var Ma=this.snippetNameMap,Ia;return this.getActiveScopes($a).some(function(Oa){var Da=Ma[Oa];return Da&&(Ia=Da[Ea]),!!Ia},this),Ia},ba}();la.implement(xa.prototype,ca);var ya=function(ba,Ea,$a){$a===void 0&&($a={});var Ma=ba.getCursorPosition(),Ia=ba.session.getLine(Ma.row),Oa=ba.session.getTabString(),Da=Ia.match(/^\s*/)[0];Ma.column<Da.length&&(Da=Da.slice(0,Ma.column)),Ea=Ea.replace(/\r/g,"");var Ta=this.tokenizeTmSnippet(Ea);Ta=this.resolveVariables(Ta,ba),Ta=Ta.map(function(tl){return tl==`
`&&!$a.excludeExtraIndent?tl+Da:typeof tl=="string"?tl.replace(/\t/g,Oa):tl});var _a=[];Ta.forEach(function(tl,il){if(typeof tl=="object"){var Ja=tl.tabstopId,nl=_a[Ja];if(nl||(nl=_a[Ja]=[],nl.index=Ja,nl.value="",nl.parents={}),nl.indexOf(tl)===-1){tl.choices&&!nl.choices&&(nl.choices=tl.choices),nl.push(tl);var Ya=Ta.indexOf(tl,il+1);if(Ya!==-1){var rl=Ta.slice(il+1,Ya),sl=rl.some(function(dl){return typeof dl=="object"});sl&&!nl.value?nl.value=rl:rl.length&&(!nl.value||typeof nl.value!="string")&&(nl.value=rl.join(""))}}}}),_a.forEach(function(tl){tl.length=0});var La={};function Na(tl){for(var il=[],Ja=0;Ja<tl.length;Ja++){var nl=tl[Ja];if(typeof nl=="object"){if(La[nl.tabstopId])continue;var Ya=tl.lastIndexOf(nl,Ja-1);nl=il[Ya]||{tabstopId:nl.tabstopId}}il[Ja]=nl}return il}for(var za=0;za<Ta.length;za++){var Fa=Ta[za];if(typeof Fa=="object"){var Ha=Fa.tabstopId,Va=_a[Ha],Ua=Ta.indexOf(Fa,za+1);if(La[Ha]){La[Ha]===Fa&&(delete La[Ha],Object.keys(La).forEach(function(tl){Va.parents[tl]=!0}));continue}La[Ha]=Fa;var Qa=Va.value;typeof Qa!="string"?Qa=Na(Qa):Fa.fmt&&(Qa=this.tmStrFormat(Qa,Fa,ba)),Ta.splice.apply(Ta,[za+1,Math.max(0,Ua-za)].concat(Qa,Fa)),Va.indexOf(Fa)===-1&&Va.push(Fa)}}var Wa=0,Za=0,Xa="";return Ta.forEach(function(tl){if(typeof tl=="string"){var il=tl.split(`
`);il.length>1?(Za=il[il.length-1].length,Wa+=il.length-1):Za+=tl.length,Xa+=tl}else tl&&(tl.start?tl.end={row:Wa,column:Za}:tl.start={row:Wa,column:Za})}),{text:Xa,tabstops:_a,tokens:Ta}},Aa=function(){function ba(Ea){if(this.index=0,this.ranges=[],this.tabstops=[],Ea.tabstopManager)return Ea.tabstopManager;Ea.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=ua.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(Ea)}return ba.prototype.attach=function(Ea){this.$openTabstops=null,this.selectedTabstop=null,this.editor=Ea,this.session=Ea.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},ba.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},ba.prototype.onChange=function(Ea){for(var $a=Ea.action[0]=="r",Ma=this.selectedTabstop||{},Ia=Ma.parents||{},Oa=this.tabstops.slice(),Da=0;Da<Oa.length;Da++){var Ta=Oa[Da],_a=Ta==Ma||Ia[Ta.index];if(Ta.rangeList.$bias=_a?0:1,Ea.action=="remove"&&Ta!==Ma){var La=Ta.parents&&Ta.parents[Ma.index],Na=Ta.rangeList.pointIndex(Ea.start,La);Na=Na<0?-Na-1:Na+1;var za=Ta.rangeList.pointIndex(Ea.end,La);za=za<0?-za-1:za-1;for(var Fa=Ta.rangeList.ranges.slice(Na,za),Ha=0;Ha<Fa.length;Ha++)this.removeRange(Fa[Ha])}Ta.rangeList.$onChange(Ea)}var Va=this.session;!this.$inChange&&$a&&Va.getLength()==1&&!Va.getValue()&&this.detach()},ba.prototype.updateLinkedFields=function(){var Ea=this.selectedTabstop;if(!(!Ea||!Ea.hasLinkedRanges||!Ea.firstNonLinked)){this.$inChange=!0;for(var $a=this.session,Ma=$a.getTextRange(Ea.firstNonLinked),Ia=0;Ia<Ea.length;Ia++){var Oa=Ea[Ia];if(Oa.linked){var Da=Oa.original,Ta=oa.snippetManager.tmStrFormat(Ma,Da,this.editor);$a.replace(Oa,Ta)}}this.$inChange=!1}},ba.prototype.onAfterExec=function(Ea){Ea.command&&!Ea.command.readOnly&&this.updateLinkedFields()},ba.prototype.onChangeSelection=function(){if(this.editor){for(var Ea=this.editor.selection.lead,$a=this.editor.selection.anchor,Ma=this.editor.selection.isEmpty(),Ia=0;Ia<this.ranges.length;Ia++)if(!this.ranges[Ia].linked){var Oa=this.ranges[Ia].contains(Ea.row,Ea.column),Da=Ma||this.ranges[Ia].contains($a.row,$a.column);if(Oa&&Da)return}this.detach()}},ba.prototype.onChangeSession=function(){this.detach()},ba.prototype.tabNext=function(Ea){var $a=this.tabstops.length,Ma=this.index+(Ea||1);Ma=Math.min(Math.max(Ma,1),$a),Ma==$a&&(Ma=0),this.selectTabstop(Ma),this.updateTabstopMarkers(),Ma===0&&this.detach()},ba.prototype.selectTabstop=function(Ea){this.$openTabstops=null;var $a=this.tabstops[this.index];if($a&&this.addTabstopMarkers($a),this.index=Ea,$a=this.tabstops[this.index],!(!$a||!$a.length)){this.selectedTabstop=$a;var Ma=$a.firstNonLinked||$a;if($a.choices&&(Ma.cursor=Ma.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(Ma);else{var Ia=this.editor.multiSelect;Ia.toSingleRange(Ma);for(var Oa=0;Oa<$a.length;Oa++)$a.hasLinkedRanges&&$a[Oa].linked||Ia.addRange($a[Oa].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},ba.prototype.addTabstops=function(Ea,$a,Ma){var Ia=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!Ea[0]){var Oa=da.fromPoints(Ma,Ma);Sa(Oa.start,$a),Sa(Oa.end,$a),Ea[0]=[Oa],Ea[0].index=0}var Da=this.index,Ta=[Da+1,0],_a=this.ranges,La=this.snippetId=(this.snippetId||0)+1;Ea.forEach(function(Na,za){var Fa=this.$openTabstops[za]||Na;Fa.snippetId=La;for(var Ha=0;Ha<Na.length;Ha++){var Va=Na[Ha],Ua=da.fromPoints(Va.start,Va.end||Va.start);Ca(Ua.start,$a),Ca(Ua.end,$a),Ua.original=Va,Ua.tabstop=Fa,_a.push(Ua),Fa!=Na?Fa.unshift(Ua):Fa[Ha]=Ua,Va.fmtString||Fa.firstNonLinked&&Ia?(Ua.linked=!0,Fa.hasLinkedRanges=!0):Fa.firstNonLinked||(Fa.firstNonLinked=Ua)}Fa.firstNonLinked||(Fa.hasLinkedRanges=!1),Fa===Na&&(Ta.push(Fa),this.$openTabstops[za]=Fa),this.addTabstopMarkers(Fa),Fa.rangeList=Fa.rangeList||new pa,Fa.rangeList.$bias=0,Fa.rangeList.addList(Fa)},this),Ta.length>2&&(this.tabstops.length&&Ta.push(Ta.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,Ta))},ba.prototype.addTabstopMarkers=function(Ea){var $a=this.session;Ea.forEach(function(Ma){Ma.markerId||(Ma.markerId=$a.addMarker(Ma,"ace_snippet-marker","text"))})},ba.prototype.removeTabstopMarkers=function(Ea){var $a=this.session;Ea.forEach(function(Ma){$a.removeMarker(Ma.markerId),Ma.markerId=null})},ba.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var Ea=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&Ea--,this.tabstops.forEach(function($a){$a.snippetId===Ea?this.addTabstopMarkers($a):this.removeTabstopMarkers($a)},this)}},ba.prototype.removeRange=function(Ea){var $a=Ea.tabstop.indexOf(Ea);$a!=-1&&Ea.tabstop.splice($a,1),$a=this.ranges.indexOf(Ea),$a!=-1&&this.ranges.splice($a,1),$a=Ea.tabstop.rangeList.ranges.indexOf(Ea),$a!=-1&&Ea.tabstop.splice($a,1),this.session.removeMarker(Ea.markerId),Ea.tabstop.length||($a=this.tabstops.indexOf(Ea.tabstop),$a!=-1&&this.tabstops.splice($a,1),this.tabstops.length||this.detach())},ba}();Aa.prototype.keyboardHandler=new ha,Aa.prototype.keyboardHandler.bindKeys({Tab:function(ba){oa.snippetManager&&oa.snippetManager.expandWithTab(ba)||(ba.tabstopManager.tabNext(1),ba.renderer.scrollCursorIntoView())},"Shift-Tab":function(ba){ba.tabstopManager.tabNext(-1),ba.renderer.scrollCursorIntoView()},Esc:function(ba){ba.tabstopManager.detach()}});var Ca=function(ba,Ea){ba.row==0&&(ba.column+=Ea.column),ba.row+=Ea.row},Sa=function(ba,Ea){ba.row==Ea.row&&(ba.column-=Ea.column),ba.row-=Ea.row};sa.importCssString(`
.ace_snippet-marker {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(194, 193, 208, 0.09);
    border: 1px dotted rgba(211, 208, 235, 0.62);
    position: absolute;
}`,"snippets.css",!1),oa.snippetManager=new xa;var wa=ra("./editor").Editor;(function(){this.insertSnippet=function(ba,Ea){return oa.snippetManager.insertSnippet(this,ba,Ea)},this.expandSnippet=function(ba){return oa.snippetManager.expandWithTab(this,ba)}}).call(wa.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(ra,oa,aa){var sa=ra("../virtual_renderer").VirtualRenderer,la=ra("../editor").Editor,ca=ra("../range").Range,ua=ra("../lib/event"),da=ra("../lib/lang"),pa=ra("../lib/dom"),ha=ra("../config").nls,ga=ra("./../lib/useragent"),fa=function(Ca){return"suggest-aria-id:".concat(Ca)},ma=ga.isSafari?"menu":"listbox",va=ga.isSafari?"menuitem":"option",xa=ga.isSafari?"aria-current":"aria-selected",ya=function(Ca){var Sa=new sa(Ca);Sa.$maxLines=4;var wa=new la(Sa);return wa.setHighlightActiveLine(!1),wa.setShowPrintMargin(!1),wa.renderer.setShowGutter(!1),wa.renderer.setHighlightGutterLine(!1),wa.$mouseHandler.$focusTimeout=0,wa.$highlightTagPending=!0,wa},Aa=function(){function Ca(Sa){var wa=pa.createElement("div"),ba=ya(wa);Sa&&Sa.appendChild(wa),wa.style.display="none",ba.renderer.content.style.cursor="default",ba.renderer.setStyle("ace_autocomplete"),ba.renderer.$textLayer.element.setAttribute("role",ma),ba.renderer.$textLayer.element.setAttribute("aria-roledescription",ha("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),ba.renderer.$textLayer.element.setAttribute("aria-label",ha("autocomplete.popup.aria-label","Autocomplete suggestions")),ba.renderer.textarea.setAttribute("aria-hidden","true"),ba.setOption("displayIndentGuides",!1),ba.setOption("dragDelay",150);var Ea=function(){};ba.focus=Ea,ba.$isFocused=!0,ba.renderer.$cursorLayer.restartTimer=Ea,ba.renderer.$cursorLayer.element.style.opacity="0",ba.renderer.$maxLines=8,ba.renderer.$keepTextAreaAtCursor=!1,ba.setHighlightActiveLine(!1),ba.session.highlight(""),ba.session.$searchHighlight.clazz="ace_highlight-marker",ba.on("mousedown",function(_a){var La=_a.getDocumentPosition();ba.selection.moveToPosition(La),Ia.start.row=Ia.end.row=La.row,_a.stop()});var $a,Ma=new ca(-1,0,-1,1/0),Ia=new ca(-1,0,-1,1/0);Ia.id=ba.session.addMarker(Ia,"ace_active-line","fullLine"),ba.setSelectOnHover=function(_a){_a?Ma.id&&(ba.session.removeMarker(Ma.id),Ma.id=null):Ma.id=ba.session.addMarker(Ma,"ace_line-hover","fullLine")},ba.setSelectOnHover(!1),ba.on("mousemove",function(_a){if(!$a){$a=_a;return}if(!($a.x==_a.x&&$a.y==_a.y)){$a=_a,$a.scrollTop=ba.renderer.scrollTop,ba.isMouseOver=!0;var La=$a.getDocumentPosition().row;Ma.start.row!=La&&(Ma.id||ba.setRow(La),Da(La))}}),ba.renderer.on("beforeRender",function(){if($a&&Ma.start.row!=-1){$a.$pos=null;var _a=$a.getDocumentPosition().row;Ma.id||ba.setRow(_a),Da(_a,!0)}}),ba.renderer.on("afterRender",function(){for(var _a=ba.renderer.$textLayer,La=_a.config.firstRow,Na=_a.config.lastRow;La<=Na;La++){var za=_a.element.childNodes[La-_a.config.firstRow];za.setAttribute("role",va),za.setAttribute("aria-roledescription",ha("autocomplete.popup.item.aria-roledescription","item")),za.setAttribute("aria-setsize",ba.data.length),za.setAttribute("aria-describedby","doc-tooltip"),za.setAttribute("aria-posinset",La+1);var Fa=ba.getData(La);if(Fa){var Ha="".concat(Fa.caption||Fa.value).concat(Fa.meta?", ".concat(Fa.meta):"");za.setAttribute("aria-label",Ha)}var Va=za.querySelectorAll(".ace_completion-highlight");Va.forEach(function(Ua){Ua.setAttribute("role","mark")})}}),ba.renderer.on("afterRender",function(){var _a=ba.getRow(),La=ba.renderer.$textLayer,Na=La.element.childNodes[_a-La.config.firstRow],za=document.activeElement;if(Na!==ba.selectedNode&&ba.selectedNode&&(pa.removeCssClass(ba.selectedNode,"ace_selected"),ba.selectedNode.removeAttribute(xa),ba.selectedNode.removeAttribute("id")),za.removeAttribute("aria-activedescendant"),ba.selectedNode=Na,Na){var Fa=fa(_a);pa.addCssClass(Na,"ace_selected"),Na.id=Fa,La.element.setAttribute("aria-activedescendant",Fa),za.setAttribute("aria-activedescendant",Fa),Na.setAttribute(xa,"true")}});var Oa=function(){Da(-1)},Da=function(_a,La){_a!==Ma.start.row&&(Ma.start.row=Ma.end.row=_a,La||ba.session._emit("changeBackMarker"),ba._emit("changeHoverMarker"))};ba.getHoveredRow=function(){return Ma.start.row},ua.addListener(ba.container,"mouseout",function(){ba.isMouseOver=!1,Oa()}),ba.on("hide",Oa),ba.on("changeSelection",Oa),ba.session.doc.getLength=function(){return ba.data.length},ba.session.doc.getLine=function(_a){var La=ba.data[_a];return typeof La=="string"?La:La&&La.value||""};var Ta=ba.session.bgTokenizer;return Ta.$tokenizeRow=function(_a){var La=ba.data[_a],Na=[];if(!La)return Na;typeof La=="string"&&(La={value:La});var za=La.caption||La.value||La.name;function Fa(tl,il){tl&&Na.push({type:(La.className||"")+(il||""),value:tl})}for(var Ha=za.toLowerCase(),Va=(ba.filterText||"").toLowerCase(),Ua=0,Qa=0,Wa=0;Wa<=Va.length;Wa++)if(Wa!=Qa&&(La.matchMask&1<<Wa||Wa==Va.length)){var Za=Va.slice(Qa,Wa);Qa=Wa;var Xa=Ha.indexOf(Za,Ua);if(Xa==-1)continue;Fa(za.slice(Ua,Xa),""),Ua=Xa+Za.length,Fa(za.slice(Xa,Ua),"completion-highlight")}return Fa(za.slice(Ua,za.length),""),Na.push({type:"completion-spacer",value:" "}),La.meta&&Na.push({type:"completion-meta",value:La.meta}),La.message&&Na.push({type:"completion-message",value:La.message}),Na},Ta.$updateOnChange=Ea,Ta.start=Ea,ba.session.$computeWidth=function(){return this.screenWidth=0},ba.isOpen=!1,ba.isTopdown=!1,ba.autoSelect=!0,ba.filterText="",ba.isMouseOver=!1,ba.data=[],ba.setData=function(_a,La){ba.filterText=La||"",ba.setValue(da.stringRepeat(`
`,_a.length),-1),ba.data=_a||[],ba.setRow(0)},ba.getData=function(_a){return ba.data[_a]},ba.getRow=function(){return Ia.start.row},ba.setRow=function(_a){_a=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,_a)),Ia.start.row!=_a&&(ba.selection.clearSelection(),Ia.start.row=Ia.end.row=_a||0,ba.session._emit("changeBackMarker"),ba.moveCursorTo(_a||0,0),ba.isOpen&&ba._signal("select"))},ba.on("changeSelection",function(){ba.isOpen&&ba.setRow(ba.selection.lead.row),ba.renderer.scrollCursorIntoView()}),ba.hide=function(){this.container.style.display="none",ba.anchorPos=null,ba.anchor=null,ba.isOpen&&(ba.isOpen=!1,this._signal("hide"))},ba.tryShow=function(_a,La,Na,za){if(!za&&ba.isOpen&&ba.anchorPos&&ba.anchor&&ba.anchorPos.top===_a.top&&ba.anchorPos.left===_a.left&&ba.anchor===Na)return!0;var Fa=this.container,Ha=window.innerHeight,Va=window.innerWidth,Ua=this.renderer,Qa=Ua.$maxLines*La*1.4,Wa={top:0,bottom:0},Za=Ha-_a.top-3*this.$borderSize-La,Xa=_a.top-3*this.$borderSize;Na||(Xa<=Za||Za>=Qa?Na="bottom":Na="top"),Na==="top"?(Wa.bottom=_a.top-this.$borderSize,Wa.top=Wa.bottom-Qa):Na==="bottom"&&(Wa.top=_a.top+La+this.$borderSize,Wa.bottom=Wa.top+Qa);var tl=Wa.top>=0&&Wa.bottom<=Ha;if(!za&&!tl)return!1;tl?Ua.$maxPixelHeight=null:Na==="top"?Ua.$maxPixelHeight=Xa:Ua.$maxPixelHeight=Za,Na==="top"?(Fa.style.top="",Fa.style.bottom=Ha-Wa.bottom+"px",ba.isTopdown=!1):(Fa.style.top=Wa.top+"px",Fa.style.bottom="",ba.isTopdown=!0),Fa.style.display="";var il=_a.left;return il+Fa.offsetWidth>Va&&(il=Va-Fa.offsetWidth),Fa.style.left=il+"px",Fa.style.right="",ba.isOpen||(ba.isOpen=!0,this._signal("show"),$a=null),ba.anchorPos=_a,ba.anchor=Na,!0},ba.show=function(_a,La,Na){this.tryShow(_a,La,Na?"bottom":void 0,!0)},ba.goTo=function(_a){var La=this.getRow(),Na=this.session.getLength()-1;switch(_a){case"up":La=La<=0?Na:La-1;break;case"down":La=La>=Na?-1:La+1;break;case"start":La=0;break;case"end":La=Na;break}this.setRow(La)},ba.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},ba.$imageSize=0,ba.$borderSize=1,ba}return Ca}();pa.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #CAD6FA;
    z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
    background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid #abbffe;
    margin-top: -1px;
    background: rgba(233,233,253,0.4);
    position: absolute;
    z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
    border: 1px solid rgba(109, 150, 13, 0.8);
    background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
    opacity: 0.5;
    margin-left: 0.9em;
}
.ace_completion-message {
    margin-left: 0.9em;
    color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
    color: #93ca12;
}
.ace_editor.ace_autocomplete {
    width: 300px;
    z-index: 200000;
    border: 1px lightgray solid;
    position: fixed;
    box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    line-height: 1.4;
    background: #fefefe;
    color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
    border: 1px #484747 solid;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
    line-height: 1.4;
    background: #25282c;
    color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer  {
    width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
    display: flex;
    align-items: center;
}
.ace_autocomplete .ace_line > * {
    min-width: 0;
    flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
    flex: 1;
}
.ace_autocomplete.ace_loading:after  {
    content: "";
    position: absolute;
    top: 0px;
    height: 2px;
    width: 8%;
    background: blue;
    z-index: 100;
    animation: ace_progress 3s infinite linear;
    animation-delay: 300ms;
    transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
    0% { transform: translateX(-100%) scaleX(1) }
    50% { transform: translateX(625%) scaleX(2) } 
    100% { transform: translateX(1500%) scaleX(3) } 
}
@media (prefers-reduced-motion) {
    .ace_autocomplete.ace_loading:after {
        transform: translateX(625%) scaleX(2);
        animation: none;
     }
}
`,"autocompletion.css",!1),oa.AcePopup=Aa,oa.$singleLineEditor=ya,oa.getAriaId=fa}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(ra,oa,aa){var sa=function(){function la(ca){this.editor=ca,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return la.prototype.setScreenReaderContent=function(ca){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",function(){var da=this.popup.getRow(),pa=this.popup.renderer.$textLayer,ha=pa.element.childNodes[da-pa.config.firstRow];if(ha){for(var ga="doc-tooltip ",fa=0;fa<this._lines.length;fa++)ga+="ace-inline-screenreader-line-".concat(fa," ");ha.setAttribute("aria-describedby",ga)}}.bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=ca.split(/\r\n|\r|\n/);var ua=this.createCodeBlock();this.screenReaderDiv.appendChild(ua)},la.prototype.destroy=function(){this.screenReaderDiv.remove()},la.prototype.createCodeBlock=function(){var ca=document.createElement("pre");ca.setAttribute("id","ace-inline-screenreader");for(var ua=0;ua<this._lines.length;ua++){var da=document.createElement("code");da.setAttribute("id","ace-inline-screenreader-line-".concat(ua));var pa=document.createTextNode(this._lines[ua]);da.appendChild(pa),ca.appendChild(da)}return ca},la}();oa.AceInlineScreenReader=sa}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(ra,oa,aa){var sa=ra("../snippets").snippetManager,la=ra("./inline_screenreader").AceInlineScreenReader,ca=function(){function ua(){this.editor=null}return ua.prototype.show=function(da,pa,ha){if(ha=ha||"",da&&this.editor&&this.editor!==da&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!da||!pa)return!1;this.inlineScreenReader||(this.inlineScreenReader=new la(da));var ga=pa.snippet?sa.getDisplayTextForSnippet(da,pa.snippet):pa.value;return pa.hideInlinePreview||!ga||!ga.startsWith(ha)?!1:(this.editor=da,this.inlineScreenReader.setScreenReaderContent(ga),ga=ga.slice(ha.length),ga===""?da.removeGhostText():da.setGhostText(ga),!0)},ua.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},ua.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},ua.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},ua}();oa.AceInline=ca}),ace.define("ace/autocomplete/util",["require","exports","module"],function(ra,oa,aa){oa.parForEach=function(la,ca,ua){var da=0,pa=la.length;pa===0&&ua();for(var ha=0;ha<pa;ha++)ca(la[ha],function(ga,fa){da++,da===pa&&ua(ga,fa)})};var sa=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;oa.retrievePrecedingIdentifier=function(la,ca,ua){ua=ua||sa;for(var da=[],pa=ca-1;pa>=0&&ua.test(la[pa]);pa--)da.push(la[pa]);return da.reverse().join("")},oa.retrieveFollowingIdentifier=function(la,ca,ua){ua=ua||sa;for(var da=[],pa=ca;pa<la.length&&ua.test(la[pa]);pa++)da.push(la[pa]);return da},oa.getCompletionPrefix=function(la){var ca=la.getCursorPosition(),ua=la.session.getLine(ca.row),da;return la.completers.forEach(function(pa){pa.identifierRegexps&&pa.identifierRegexps.forEach(function(ha){!da&&ha&&(da=this.retrievePrecedingIdentifier(ua,ca.column,ha))}.bind(this))}.bind(this)),da||this.retrievePrecedingIdentifier(ua,ca.column)},oa.triggerAutocomplete=function(la,ua){var ua=ua??la.session.getPrecedingCharacter();return la.completers.some(function(da){if(da.triggerCharacters&&Array.isArray(da.triggerCharacters))return da.triggerCharacters.includes(ua)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(ra,oa,aa){var sa=ra("./keyboard/hash_handler").HashHandler,la=ra("./autocomplete/popup").AcePopup,ca=ra("./autocomplete/inline").AceInline,ua=ra("./autocomplete/popup").getAriaId,da=ra("./autocomplete/util"),pa=ra("./lib/lang"),ha=ra("./lib/dom"),ga=ra("./snippets").snippetManager,fa=ra("./config"),ma=ra("./lib/event"),va=ra("./lib/scroll").preventParentScroll,xa=function(Sa,wa){wa.completer&&wa.completer.destroy()},ya=function(){function Sa(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new sa,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=pa.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=pa.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=pa.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=pa.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay),this.$firstOpenTimer=pa.delayedCall(function(){var wa=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!wa||this.editor.completers.length===0||(this.completions=new Ca(Sa.completionsForLoading),this.openPopup(this.editor,wa.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}.bind(this),this.stickySelectionDelay)}return Object.defineProperty(Sa,"completionsForLoading",{get:function(){return[{caption:fa.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),Sa.prototype.$init=function(){return this.popup=new la(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(wa){this.insertMatch(),wa.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),ma.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},Sa.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new ca,this.inlineRenderer},Sa.prototype.getPopup=function(){return this.popup||this.$init()},Sa.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},Sa.prototype.$seen=function(wa){!this.hasSeen.has(wa)&&wa&&wa.completer&&wa.completer.onSeen&&typeof wa.completer.onSeen=="function"&&(wa.completer.onSeen(this.editor,wa),this.hasSeen.add(wa))},Sa.prototype.$onPopupChange=function(wa){if(this.inlineRenderer&&this.inlineEnabled){var ba=wa?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(ba),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},Sa.prototype.$updateGhostText=function(wa){var ba=this.base.row,Ea=this.base.column,$a=this.editor.getCursorPosition().column,Ma=this.editor.session.getLine(ba).slice(Ea,$a);this.inlineRenderer.show(this.editor,wa,Ma)?this.$seen(wa):this.inlineRenderer.hide()},Sa.prototype.$onPopupRender=function(){var wa=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var ba=this.popup.getFirstVisibleRow();ba<=this.popup.getLastVisibleRow();ba++){var Ea=this.popup.getData(ba);Ea&&(!wa||Ea.hideInlinePreview)&&this.$seen(Ea)}},Sa.prototype.$onPopupShow=function(wa){this.$onPopupChange(wa),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},Sa.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var wa=this.editor.container.parentNode,ba=[];wa;)ba.push(wa),wa.addEventListener("scroll",this.onLayoutChange,{passive:!0}),wa=wa.parentNode;this.$elements=ba}},Sa.prototype.unObserveLayoutChanges=function(){var wa=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(ba){ba.removeEventListener("scroll",wa.onLayoutChange,{passive:!0})}),this.$elements=null},Sa.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},Sa.prototype.$updatePopupPosition=function(){var wa=this.editor,ba=wa.renderer,Ea=ba.layerConfig.lineHeight,$a=ba.$cursorLayer.getPixelPosition(this.base,!0);$a.left-=this.popup.getTextLeftOffset();var Ma=wa.container.getBoundingClientRect();$a.top+=Ma.top-ba.layerConfig.offset,$a.left+=Ma.left-wa.renderer.scrollLeft,$a.left+=ba.gutterWidth;var Ia={top:$a.top,left:$a.left};ba.$ghostText&&ba.$ghostTextWidget&&this.base.row===ba.$ghostText.position.row&&(Ia.top+=ba.$ghostTextWidget.el.offsetHeight);var Oa=wa.container.getBoundingClientRect().bottom-Ea,Da=Oa<Ia.top?{top:Oa,left:Ia.left}:Ia;this.popup.tryShow(Da,Ea,"bottom")||this.popup.tryShow($a,Ea,"top")||this.popup.show($a,Ea)},Sa.prototype.openPopup=function(wa,ba,Ea){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var $a=this.popup.getRow(),Ma=this.popup.data[$a];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:ua(this.popup.getRow()),inline:this.inlineEnabled}),wa.keyBinding.addKeyboardHandler(this.keyboardHandler);var Ia;this.stickySelection&&(Ia=this.popup.data.indexOf(Ma)),(!Ia||Ia===-1)&&(Ia=0),this.popup.setRow(this.autoSelect?Ia:-1),Ia===$a&&Ma!==this.completions.filtered[Ia]&&this.$onPopupChange();var Oa=this.inlineRenderer&&this.inlineEnabled;if(Ia===$a&&Oa){var Da=this.popup.getData(this.popup.getRow());this.$updateGhostText(Da)}Ea||(this.popup.setTheme(wa.getTheme()),this.popup.setFontSize(wa.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},Sa.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},Sa.prototype.changeListener=function(wa){var ba=this.editor.selection.lead;(ba.row!=this.base.row||ba.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},Sa.prototype.blurListener=function(wa){var ba=document.activeElement,Ea=this.editor.textInput.getElement(),$a=wa.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(wa.relatedTarget),Ma=this.popup&&this.popup.container;ba!=Ea&&ba.parentNode!=Ma&&!$a&&ba!=this.tooltipNode&&wa.relatedTarget!=Ea&&this.detach()},Sa.prototype.mousedownListener=function(wa){this.detach()},Sa.prototype.mousewheelListener=function(wa){this.popup&&!this.popup.isMouseOver&&this.detach()},Sa.prototype.mouseOutListener=function(wa){this.popup.isOpen&&this.$updatePopupPosition()},Sa.prototype.goTo=function(wa){this.popup.goTo(wa)},Sa.prototype.insertMatch=function(wa,ba){if(wa||(wa=this.popup.getData(this.popup.getRow())),!wa)return!1;if(wa.value==="")return this.detach();var Ea=this.completions,$a=this.getCompletionProvider().insertMatch(this.editor,wa,Ea.filterText,ba);return this.completions==Ea&&this.detach(),$a},Sa.prototype.showPopup=function(wa,ba){this.editor&&this.detach(),this.activated=!0,this.editor=wa,wa.completer!=this&&(wa.completer&&wa.completer.detach(),wa.completer=this),wa.on("changeSelection",this.changeListener),wa.on("blur",this.blurListener),wa.on("mousedown",this.mousedownListener),wa.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,ba)},Sa.prototype.getCompletionProvider=function(wa){return this.completionProvider||(this.completionProvider=new Aa(wa)),this.completionProvider},Sa.prototype.gatherCompletions=function(wa,ba){return this.getCompletionProvider().gatherCompletions(wa,ba)},Sa.prototype.updateCompletions=function(wa,ba){if(wa&&this.base&&this.completions){var $a=this.editor.getCursorPosition(),Ma=this.editor.session.getTextRange({start:this.base,end:$a});if(Ma==this.completions.filterText)return;if(this.completions.setFilter(Ma),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==Ma&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,Ma,wa);return}if(ba&&ba.matches){var $a=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor($a.row,$a.column),this.base.$insertRight=!0,this.completions=new Ca(ba.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",wa)}var Ea=this.editor.getSession(),$a=this.editor.getCursorPosition(),Ma=da.getCompletionPrefix(this.editor);this.base=Ea.doc.createAnchor($a.row,$a.column-Ma.length),this.base.$insertRight=!0;var Ia={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:Ma,pos:$a}).provideCompletions(this.editor,Ia,function(Oa,Da,Ta){var _a=Da.filtered,La=da.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),Ta){if(!_a.length){var Na=!this.autoShown&&this.emptyMessage;if(typeof Na=="function"&&(Na=this.emptyMessage(La)),Na){var za=[{caption:Na,value:""}];this.completions=new Ca(za),this.openPopup(this.editor,La,wa),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(_a.length==1&&_a[0].value==La&&!_a[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&_a.length==1)return this.insertMatch(_a[0])}this.completions=!Ta&&this.showLoadingState?new Ca(Sa.completionsForLoading.concat(_a),Da.filterText):Da,this.openPopup(this.editor,La,wa),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!Ta)}.bind(this)),this.showLoadingState&&!this.autoShown&&!(this.popup&&this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},Sa.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},Sa.prototype.updateDocTooltip=function(){var wa=this.popup,ba=this.completions.filtered,Ea=ba&&(ba[wa.getHoveredRow()]||ba[wa.getRow()]),$a=null;if(!Ea||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var Ma=this.editor.completers.length,Ia=0;Ia<Ma;Ia++){var Oa=this.editor.completers[Ia];if(Oa.getDocTooltip&&Ea.completerId===Oa.id){$a=Oa.getDocTooltip(Ea);break}}if(!$a&&typeof Ea!="string"&&($a=Ea),typeof $a=="string"&&($a={docText:$a}),!$a||!($a.docHTML||$a.docText))return this.hideDocTooltip();this.showDocTooltip($a)},Sa.prototype.showDocTooltip=function(wa){this.tooltipNode||(this.tooltipNode=ha.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",va));var ba=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(ba.isDark?"ace_dark ":"")+(ba.cssClass||"");var Ea=this.tooltipNode;wa.docHTML?Ea.innerHTML=wa.docHTML:wa.docText&&(Ea.textContent=wa.docText),Ea.parentNode||this.popup.container.appendChild(this.tooltipNode);var $a=this.popup,Ma=$a.container.getBoundingClientRect();Ea.style.top=$a.container.style.top,Ea.style.bottom=$a.container.style.bottom,Ea.style.display="block",window.innerWidth-Ma.right<320?Ma.left<320?$a.isTopdown?(Ea.style.top=Ma.bottom+"px",Ea.style.left=Ma.left+"px",Ea.style.right="",Ea.style.bottom=""):(Ea.style.top=$a.container.offsetTop-Ea.offsetHeight+"px",Ea.style.left=Ma.left+"px",Ea.style.right="",Ea.style.bottom=""):(Ea.style.right=window.innerWidth-Ma.left+"px",Ea.style.left=""):(Ea.style.left=Ma.right+1+"px",Ea.style.right="")},Sa.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var wa=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==wa&&this.editor.focus(),this.tooltipNode=null,wa.parentNode&&wa.parentNode.removeChild(wa)}},Sa.prototype.onTooltipClick=function(wa){for(var ba=wa.target;ba&&ba!=this.tooltipNode;){if(ba.nodeName=="A"&&ba.href){ba.rel="noreferrer",ba.target="_blank";break}ba=ba.parentNode}},Sa.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var wa=this.popup.container;wa&&wa.parentNode&&wa.parentNode.removeChild(wa)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",xa),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},Sa.for=function(wa){return wa.completer instanceof Sa||(wa.completer&&(wa.completer.destroy(),wa.completer=null),fa.get("sharedPopups")?(Sa.$sharedInstance||(Sa.$sharedInstance=new Sa),wa.completer=Sa.$sharedInstance):(wa.completer=new Sa,wa.once("destroy",xa))),wa.completer},Sa}();ya.prototype.commands={Up:function(Sa){Sa.completer.goTo("up")},Down:function(Sa){Sa.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(Sa){Sa.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(Sa){Sa.completer.goTo("end")},Esc:function(Sa){Sa.completer.detach()},Return:function(Sa){return Sa.completer.insertMatch()},"Shift-Return":function(Sa){Sa.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(Sa){var wa=Sa.completer.insertMatch();if(!wa&&!Sa.tabstopManager)Sa.completer.goTo("down");else return wa},Backspace:function(Sa){Sa.execCommand("backspace");var wa=da.getCompletionPrefix(Sa);!wa&&Sa.completer&&Sa.completer.detach()},PageUp:function(Sa){Sa.completer.popup.gotoPageUp()},PageDown:function(Sa){Sa.completer.popup.gotoPageDown()}},ya.startCommand={name:"startAutocomplete",exec:function(Sa,wa){var ba=ya.for(Sa);ba.autoInsert=!1,ba.autoSelect=!0,ba.autoShown=!1,ba.showPopup(Sa,wa),ba.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var Aa=function(){function Sa(wa){this.initialPosition=wa,this.active=!0}return Sa.prototype.insertByIndex=function(wa,ba,Ea){return!this.completions||!this.completions.filtered?!1:this.insertMatch(wa,this.completions.filtered[ba],Ea)},Sa.prototype.insertMatch=function(wa,ba,Ea){if(!ba)return!1;if(wa.startOperation({command:{name:"insertMatch"}}),ba.completer&&ba.completer.insertMatch)ba.completer.insertMatch(wa,ba);else{if(!this.completions)return!1;var $a=this.completions.filterText.length,Ma=0;if(ba.range&&ba.range.start.row===ba.range.end.row&&($a-=this.initialPosition.prefix.length,$a+=this.initialPosition.pos.column-ba.range.start.column,Ma+=ba.range.end.column-this.initialPosition.pos.column),$a||Ma){var Ia;wa.selection.getAllRanges?Ia=wa.selection.getAllRanges():Ia=[wa.getSelectionRange()];for(var Oa=0,Da;Da=Ia[Oa];Oa++)Da.start.column-=$a,Da.end.column+=Ma,wa.session.remove(Da)}ba.snippet?ga.insertSnippet(wa,ba.snippet):this.$insertString(wa,ba),ba.completer&&ba.completer.onInsert&&typeof ba.completer.onInsert=="function"&&ba.completer.onInsert(wa,ba),ba.command&&ba.command==="startAutocomplete"&&wa.execCommand(ba.command)}return wa.endOperation(),!0},Sa.prototype.$insertString=function(wa,ba){var Ea=ba.value||ba;wa.execCommand("insertstring",Ea)},Sa.prototype.gatherCompletions=function(wa,ba){var Ea=wa.getSession(),$a=wa.getCursorPosition(),Ma=da.getCompletionPrefix(wa),Ia=[];this.completers=wa.completers;var Oa=wa.completers.length;return wa.completers.forEach(function(Da,Ta){Da.getCompletions(wa,Ea,$a,Ma,function(_a,La){Da.hideInlinePreview&&(La=La.map(function(Na){return Object.assign(Na,{hideInlinePreview:Da.hideInlinePreview})})),!_a&&La&&(Ia=Ia.concat(La)),ba(null,{prefix:da.getCompletionPrefix(wa),matches:Ia,finished:--Oa===0})})}),!0},Sa.prototype.provideCompletions=function(wa,ba,Ea){var $a=function(Da){var Ta=Da.prefix,_a=Da.matches;this.completions=new Ca(_a),ba.exactMatch&&(this.completions.exactMatch=!0),ba.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(Ta),(Da.finished||this.completions.filtered.length)&&Ea(null,this.completions,Da.finished)}.bind(this),Ma=!0,Ia=null;if(this.gatherCompletions(wa,function(Da,Ta){if(this.active){Da&&(Ea(Da,[],!0),this.detach());var _a=Ta.prefix;if(_a.indexOf(Ta.prefix)===0){if(Ma){Ia=Ta;return}$a(Ta)}}}.bind(this)),Ma=!1,Ia){var Oa=Ia;Ia=null,$a(Oa)}},Sa.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(wa){typeof wa.cancel=="function"&&wa.cancel()})},Sa}(),Ca=function(){function Sa(wa,ba){this.all=wa,this.filtered=wa,this.filterText=ba||"",this.exactMatch=!1,this.ignoreCaption=!1}return Sa.prototype.setFilter=function(wa){if(wa.length>this.filterText&&wa.lastIndexOf(this.filterText,0)===0)var ba=this.filtered;else var ba=this.all;this.filterText=wa,ba=this.filterCompletions(ba,this.filterText),ba=ba.sort(function($a,Ma){return Ma.exactMatch-$a.exactMatch||Ma.$score-$a.$score||($a.caption||$a.value).localeCompare(Ma.caption||Ma.value)});var Ea=null;ba=ba.filter(function($a){var Ma=$a.snippet||$a.caption||$a.value;return Ma===Ea?!1:(Ea=Ma,!0)}),this.filtered=ba},Sa.prototype.filterCompletions=function(wa,ba){var Ea=[],$a=ba.toUpperCase(),Ma=ba.toLowerCase();e:for(var Ia=0,Oa;Oa=wa[Ia];Ia++){if(Oa.skipFilter){Oa.$score=Oa.score,Ea.push(Oa);continue}var Da=!this.ignoreCaption&&Oa.caption||Oa.value||Oa.snippet;if(Da){var Ta=-1,_a=0,La=0,Na,za;if(this.exactMatch){if(ba!==Da.substr(0,ba.length))continue e}else{var Fa=Da.toLowerCase().indexOf(Ma);if(Fa>-1)La=Fa;else for(var Ha=0;Ha<ba.length;Ha++){var Va=Da.indexOf(Ma[Ha],Ta+1),Ua=Da.indexOf($a[Ha],Ta+1);if(Na=Va>=0&&(Ua<0||Va<Ua)?Va:Ua,Na<0)continue e;za=Na-Ta-1,za>0&&(Ta===-1&&(La+=10),La+=za,_a=_a|1<<Ha),Ta=Na}}Oa.matchMask=_a,Oa.exactMatch=La?0:1,Oa.$score=(Oa.score||0)-La,Ea.push(Oa)}}return Ea},Sa}();oa.Autocomplete=ya,oa.CompletionProvider=Aa,oa.FilteredList=Ca}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../range").Range,la=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function ca(da,pa){var ha=da.getTextRange(sa.fromPoints({row:0,column:0},pa));return ha.split(la).length-1}function ua(da,pa){var ha=ca(da,pa),ga=da.getValue().split(la),fa=Object.create(null),ma=ga[ha];return ga.forEach(function(va,xa){if(!(!va||va===ma)){var ya=Math.abs(ha-xa),Aa=ga.length-ya;fa[va]?fa[va]=Math.max(Aa,fa[va]):fa[va]=Aa}}),fa}oa.getCompletions=function(da,pa,ha,ga,fa){var ma=ua(pa,ha),va=Object.keys(ma);fa(null,va.map(function(xa){return{caption:xa,value:xa,score:ma[xa],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(ra,oa,aa){var sa=ra("../snippets").snippetManager,la=ra("../autocomplete").Autocomplete,ca=ra("../config"),ua=ra("../lib/lang"),da=ra("../autocomplete/util"),pa=ra("../autocomplete/text_completer"),ha={getCompletions:function($a,Ma,Ia,Oa,Da){if(Ma.$mode.completer)return Ma.$mode.completer.getCompletions($a,Ma,Ia,Oa,Da);var Ta=$a.session.getState(Ia.row),_a=Ma.$mode.getCompletions(Ta,Ma,Ia,Oa);_a=_a.map(function(La){return La.completerId=ha.id,La}),Da(null,_a)},id:"keywordCompleter"},ga=function($a){var Ma={};return $a.replace(/\${(\d+)(:(.*?))?}/g,function(Ia,Oa,Da,Ta){return Ma[Oa]=Ta||""}).replace(/\$(\d+?)/g,function(Ia,Oa){return Ma[Oa]})},fa={getCompletions:function($a,Ma,Ia,Oa,Da){var Ta=[],_a=Ma.getTokenAt(Ia.row,Ia.column);_a&&_a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?Ta.push("html-tag"):Ta=sa.getActiveScopes($a);var La=sa.snippetMap,Na=[];Ta.forEach(function(za){for(var Fa=La[za]||[],Ha=Fa.length;Ha--;){var Va=Fa[Ha],Ua=Va.name||Va.tabTrigger;Ua&&Na.push({caption:Ua,snippet:Va.content,meta:Va.tabTrigger&&!Va.name?Va.tabTrigger+"⇥ ":"snippet",completerId:fa.id})}},this),Da(null,Na)},getDocTooltip:function($a){$a.snippet&&!$a.docHTML&&($a.docHTML=["<b>",ua.escapeHTML($a.caption),"</b>","<hr></hr>",ua.escapeHTML(ga($a.snippet))].join(""))},id:"snippetCompleter"},ma=[fa,pa,ha];oa.setCompleters=function($a){ma.length=0,$a&&ma.push.apply(ma,$a)},oa.addCompleter=function($a){ma.push($a)},oa.textCompleter=pa,oa.keyWordCompleter=ha,oa.snippetCompleter=fa;var va={name:"expandSnippet",exec:function($a){return sa.expandWithTab($a)},bindKey:"Tab"},xa=function($a,Ma){ya(Ma.session.$mode)},ya=function($a){typeof $a=="string"&&($a=ca.$modes[$a]),$a&&(sa.files||(sa.files={}),Aa($a.$id,$a.snippetFileId),$a.modes&&$a.modes.forEach(ya))},Aa=function($a,Ma){!Ma||!$a||sa.files[$a]||(sa.files[$a]={},ca.loadModule(Ma,function(Ia){Ia&&(sa.files[$a]=Ia,!Ia.snippets&&Ia.snippetText&&(Ia.snippets=sa.parseSnippetFile(Ia.snippetText)),sa.register(Ia.snippets||[],Ia.scope),Ia.includeScopes&&(sa.snippetMap[Ia.scope].includeScopes=Ia.includeScopes,Ia.includeScopes.forEach(function(Oa){ya("ace/mode/"+Oa)})))}))},Ca=function($a){var Ma=$a.editor,Ia=Ma.completer&&Ma.completer.activated;if($a.command.name==="backspace")Ia&&!da.getCompletionPrefix(Ma)&&Ma.completer.detach();else if($a.command.name==="insertstring"&&!Ia){Sa=$a;var Oa=$a.editor.$liveAutocompletionDelay;Oa?wa.delay(Oa):ba($a)}},Sa,wa=ua.delayedCall(function(){ba(Sa)},0),ba=function($a){var Ma=$a.editor,Ia=da.getCompletionPrefix(Ma),Oa=$a.args,Da=da.triggerAutocomplete(Ma,Oa);if(Ia&&Ia.length>=Ma.$liveAutocompletionThreshold||Da){var Ta=la.for(Ma);Ta.autoShown=!0,Ta.showPopup(Ma)}},Ea=ra("../editor").Editor;ra("../config").defineOptions(Ea.prototype,"editor",{enableBasicAutocompletion:{set:function($a){$a?(this.completers||(this.completers=Array.isArray($a)?$a:ma),this.commands.addCommand(la.startCommand)):this.commands.removeCommand(la.startCommand)},value:!1},enableLiveAutocompletion:{set:function($a){$a?(this.completers||(this.completers=Array.isArray($a)?$a:ma),this.commands.on("afterExec",Ca)):this.commands.off("afterExec",Ca)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function($a){$a?(this.commands.addCommand(va),this.on("changeMode",xa),xa(null,this)):(this.commands.removeCommand(va),this.off("changeMode",xa))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(ra){ea&&(ea.exports=ra)})}()}(extLanguage_tools)),extLanguage_tools.exports}requireExtLanguage_tools();var modeCss={exports:{}},hasRequiredModeCss;function requireModeCss(){return hasRequiredModeCss||(hasRequiredModeCss=1,function(ea,na){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(ra,oa,aa){var sa=ra("../lib/oop");ra("../lib/lang");var la=ra("./text_highlight_rules").TextHighlightRules,ca=oa.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|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-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",ua=oa.supportFunction="rgb|rgba|url|attr|counter|counters",da=oa.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",pa=oa.supportConstantColor="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|green|greenyellow|grey|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",ha=oa.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",ga=oa.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",fa=oa.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",ma=oa.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",va=function(){var xa=this.createKeywordMapper({"support.function":ua,"support.constant":da,"support.type":ca,"support.constant.color":pa,"support.constant.fonts":ha},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:ga},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+ga+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:ga},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:fa},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:ma},{include:"url"},{token:xa,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};sa.inherits(va,la),oa.CssHighlightRules=va}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../range").Range,la=function(){};(function(){this.checkOutdent=function(ca,ua){return/^\s+$/.test(ca)?/^\s*\}/.test(ua):!1},this.autoOutdent=function(ca,ua){var da=ca.getLine(ua),pa=da.match(/^(\s*\})/);if(!pa)return 0;var ha=pa[1].length,ga=ca.findMatchingBracket({row:ua,column:ha});if(!ga||ga.row==ua)return 0;var fa=this.$getIndent(ca.getLine(ga.row));ca.replace(new sa(ua,0,ua,ha-1),fa)},this.$getIndent=function(ca){return ca.match(/^\s*/)[0]}}).call(la.prototype),oa.MatchingBraceOutdent=la}),ace.define("ace/mode/css_completions",["require","exports","module"],function(ra,oa,aa){var sa={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},la=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var ca=document.createElement("c").style;for(var ua in ca)if(typeof ca[ua]=="string"){var da=ua.replace(/[A-Z]/g,function(pa){return"-"+pa.toLowerCase()});sa.hasOwnProperty(da)||(sa[da]=1)}}this.completionsDefined=!0},this.getCompletions=function(ca,ua,da,pa){if(this.completionsDefined||this.defineCompletions(),ca==="ruleset"||ua.$mode.$id=="ace/mode/scss"){var ha=ua.getLine(da.row).substr(0,da.column),ga=/\([^)]*$/.test(ha);return ga&&(ha=ha.substr(ha.lastIndexOf("(")+1)),/:[^;]+$/.test(ha)?this.getPropertyValueCompletions(ca,ua,da,pa):this.getPropertyCompletions(ca,ua,da,pa,ga)}return[]},this.getPropertyCompletions=function(ca,ua,da,pa,ha){ha=ha||!1;var ga=Object.keys(sa);return ga.map(function(fa){return{caption:fa,snippet:fa+": $0"+(ha?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(ca,ua,da,pa){var ha=ua.getLine(da.row).substr(0,da.column),ga=(/([\w\-]+):[^:]*$/.exec(ha)||{})[1];if(!ga)return[];var fa=[];return ga in sa&&typeof sa[ga]=="object"&&(fa=Object.keys(sa[ga])),fa.map(function(ma){return{caption:ma,snippet:ma,meta:"property value",score:1e6}})}}).call(la.prototype),oa.CssCompletions=la}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(ra,oa,aa){var sa=ra("../../lib/oop");ra("../behaviour").Behaviour;var la=ra("./cstyle").CstyleBehaviour,ca=ra("../../token_iterator").TokenIterator,ua=function(){this.inherit(la),this.add("colon","insertion",function(da,pa,ha,ga,fa){if(fa===":"&&ha.selection.isEmpty()){var ma=ha.getCursorPosition(),va=new ca(ga,ma.row,ma.column),xa=va.getCurrentToken();if(xa&&xa.value.match(/\s+/)&&(xa=va.stepBackward()),xa&&xa.type==="support.type"){var ya=ga.doc.getLine(ma.row),Aa=ya.substring(ma.column,ma.column+1);if(Aa===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(ya.substring(ma.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(da,pa,ha,ga,fa){var ma=ga.doc.getTextRange(fa);if(!fa.isMultiLine()&&ma===":"){var va=ha.getCursorPosition(),xa=new ca(ga,va.row,va.column),ya=xa.getCurrentToken();if(ya&&ya.value.match(/\s+/)&&(ya=xa.stepBackward()),ya&&ya.type==="support.type"){var Aa=ga.doc.getLine(fa.start.row),Ca=Aa.substring(fa.end.column,fa.end.column+1);if(Ca===";")return fa.end.column++,fa}}}),this.add("semicolon","insertion",function(da,pa,ha,ga,fa){if(fa===";"&&ha.selection.isEmpty()){var ma=ha.getCursorPosition(),va=ga.doc.getLine(ma.row),xa=va.substring(ma.column,ma.column+1);if(xa===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(da,pa,ha,ga,fa){if(fa==="!"&&ha.selection.isEmpty()){var ma=ha.getCursorPosition(),va=ga.doc.getLine(ma.row);if(/^\s*(;|}|$)/.test(va.substring(ma.column)))return{text:"!important",selection:[10,10]}}})};sa.inherits(ua,la),oa.CssBehaviour=ua}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../../range").Range,ca=ra("./fold_mode").FoldMode,ua=oa.FoldMode=function(da){da&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+da.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+da.end)))};sa.inherits(ua,ca),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(da,pa,ha){var ga=da.getLine(ha);if(this.singleLineBlockCommentRe.test(ga)&&!this.startRegionRe.test(ga)&&!this.tripleStarBlockCommentRe.test(ga))return"";var fa=this._getFoldWidgetBase(da,pa,ha);return!fa&&this.startRegionRe.test(ga)?"start":fa},this.getFoldWidgetRange=function(da,pa,ha,ga){var fa=da.getLine(ha);if(this.startRegionRe.test(fa))return this.getCommentRegionBlock(da,fa,ha);var xa=fa.match(this.foldingStartMarker);if(xa){var ma=xa.index;if(xa[1])return this.openingBracketBlock(da,xa[1],ha,ma);var va=da.getCommentFoldRange(ha,ma+xa[0].length,1);return va&&!va.isMultiLine()&&(ga?va=this.getSectionRange(da,ha):pa!="all"&&(va=null)),va}if(pa!=="markbegin"){var xa=fa.match(this.foldingStopMarker);if(xa){var ma=xa.index+xa[0].length;return xa[1]?this.closingBracketBlock(da,xa[1],ha,ma):da.getCommentFoldRange(ha,ma,-1)}}},this.getSectionRange=function(da,pa){var ha=da.getLine(pa),ga=ha.search(/\S/),fa=pa,ma=ha.length;pa=pa+1;for(var va=pa,xa=da.getLength();++pa<xa;){ha=da.getLine(pa);var ya=ha.search(/\S/);if(ya!==-1){if(ga>ya)break;var Aa=this.getFoldWidgetRange(da,"all",pa);if(Aa){if(Aa.start.row<=fa)break;if(Aa.isMultiLine())pa=Aa.end.row;else if(ga==ya)break}va=pa}}return new la(fa,ma,va,da.getLine(va).length)},this.getCommentRegionBlock=function(da,pa,ha){for(var ga=pa.search(/\s*$/),fa=da.getLength(),ma=ha,va=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,xa=1;++ha<fa;){pa=da.getLine(ha);var ya=va.exec(pa);if(ya&&(ya[1]?xa--:xa++,!xa))break}var Aa=ha;if(Aa>ma)return new la(ma,ga,Aa,pa.length)}}.call(ua.prototype)}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./text").Mode,ca=ra("./css_highlight_rules").CssHighlightRules,ua=ra("./matching_brace_outdent").MatchingBraceOutdent,da=ra("../worker/worker_client").WorkerClient,pa=ra("./css_completions").CssCompletions,ha=ra("./behaviour/css").CssBehaviour,ga=ra("./folding/cstyle").FoldMode,fa=function(){this.HighlightRules=ca,this.$outdent=new ua,this.$behaviour=new ha,this.$completer=new pa,this.foldingRules=new ga};sa.inherits(fa,la),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(ma,va,xa){var ya=this.$getIndent(va),Aa=this.getTokenizer().getLineTokens(va,ma).tokens;if(Aa.length&&Aa[Aa.length-1].type=="comment")return ya;var Ca=va.match(/^.*\{\s*$/);return Ca&&(ya+=xa),ya},this.checkOutdent=function(ma,va,xa){return this.$outdent.checkOutdent(va,xa)},this.autoOutdent=function(ma,va,xa){this.$outdent.autoOutdent(va,xa)},this.getCompletions=function(ma,va,xa,ya){return this.$completer.getCompletions(ma,va,xa,ya)},this.createWorker=function(ma){var va=new da(["ace"],"ace/mode/css_worker","Worker");return va.attachToDocument(ma.getDocument()),va.on("annotate",function(xa){ma.setAnnotations(xa.data)}),va.on("terminate",function(){ma.clearAnnotations()}),va},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(fa.prototype),oa.Mode=fa}),function(){ace.require(["ace/mode/css"],function(ra){ea&&(ea.exports=ra)})}()}(modeCss)),modeCss.exports}requireModeCss();var modeJavascript={exports:{}},hasRequiredModeJavascript;function requireModeJavascript(){return hasRequiredModeJavascript||(hasRequiredModeJavascript=1,function(ea,na){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./text_highlight_rules").TextHighlightRules,ca=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},ca.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};sa.inherits(ca,la),ca.getTagRule=function(ua){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},ca.getStartRule=function(ua){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:ua}},ca.getEndRule=function(ua){return{token:"comment.doc",regex:"\\*\\/",next:ua}},oa.JsDocCommentHighlightRules=ca}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,ca=ra("./text_highlight_rules").TextHighlightRules,ua="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",da=function(ga){var fa={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},ma=this.createKeywordMapper(fa,"identifier"),va="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",xa="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",ya="(function)(\\s*)(\\*?)",Aa={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(fa).join("|")+"\\b)"+ua+")(\\s*)(\\()"};this.$rules={no_regex:[la.getStartRule("doc-start"),ha("no_regex"),Aa,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+ua+")(\\s*)(=)(\\s*)"+ya+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+ua+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+ua+")(\\s*)(:)(\\s*)"+ya+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+ya+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+va+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:ma,regex:ua},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:ya+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:ua},{regex:"",token:"empty",next:"no_regex"}],start:[la.getStartRule("doc-start"),ha("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[ha("function_arguments"),{token:"variable.parameter",regex:ua},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:xa},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:xa},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!ga||!ga.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(Ca,Sa,wa){if(this.next=Ca=="{"?this.nextState:"",Ca=="{"&&wa.length)wa.unshift("start",Sa);else if(Ca=="}"&&wa.length&&(wa.shift(),this.next=wa.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return Ca=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:xa},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+ua+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!ga||ga.jsx!=!1)&&pa.call(this)),this.embedRules(la,"doc-",[la.getEndRule("no_regex")]),this.normalizeRules()};sa.inherits(da,ca);function pa(){var ga=ua.replace("\\d","\\d\\-"),fa={onMatch:function(va,xa,ya){var Aa=va.charAt(1)=="/"?2:1;return Aa==1?(xa!=this.nextState?ya.unshift(this.next,this.nextState,0):ya.unshift(this.next),ya[2]++):Aa==2&&xa==this.nextState&&(ya[1]--,(!ya[1]||ya[1]<0)&&(ya.shift(),ya.shift())),[{type:"meta.tag.punctuation."+(Aa==1?"":"end-")+"tag-open.xml",value:va.slice(0,Aa)},{type:"meta.tag.tag-name.xml",value:va.substr(Aa)}]},regex:"</?(?:"+ga+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(fa);var ma={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[ma,fa,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(va,xa,ya){return xa==ya[0]&&ya.shift(),va.length==2&&(ya[0]==this.nextState&&ya[1]--,(!ya[1]||ya[1]<0)&&ya.splice(0,2)),this.next=ya[0]||"start",[{type:this.token,value:va}]},nextState:"jsx"},ma,ha("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:ga},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},fa],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function ha(ga){return[{token:"comment",regex:/\/\*/,next:[la.getTagRule(),{token:"comment",regex:"\\*\\/",next:ga||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[la.getTagRule(),{token:"comment",regex:"$|^",next:ga||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}oa.JavaScriptHighlightRules=da}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../range").Range,la=function(){};(function(){this.checkOutdent=function(ca,ua){return/^\s+$/.test(ca)?/^\s*\}/.test(ua):!1},this.autoOutdent=function(ca,ua){var da=ca.getLine(ua),pa=da.match(/^(\s*\})/);if(!pa)return 0;var ha=pa[1].length,ga=ca.findMatchingBracket({row:ua,column:ha});if(!ga||ga.row==ua)return 0;var fa=this.$getIndent(ca.getLine(ga.row));ca.replace(new sa(ua,0,ua,ha-1),fa)},this.$getIndent=function(ca){return ca.match(/^\s*/)[0]}}).call(la.prototype),oa.MatchingBraceOutdent=la}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../behaviour").Behaviour,ca=ra("../../token_iterator").TokenIterator;function ua(pa,ha){return pa&&pa.type.lastIndexOf(ha+".xml")>-1}var da=function(){this.add("string_dquotes","insertion",function(pa,ha,ga,fa,ma){if(ma=='"'||ma=="'"){var va=ma,xa=fa.doc.getTextRange(ga.getSelectionRange());if(xa!==""&&xa!=="'"&&xa!='"'&&ga.getWrapBehavioursEnabled())return{text:va+xa+va,selection:!1};var ya=ga.getCursorPosition(),Aa=fa.doc.getLine(ya.row),Ca=Aa.substring(ya.column,ya.column+1),Sa=new ca(fa,ya.row,ya.column),wa=Sa.getCurrentToken();if(Ca==va&&(ua(wa,"attribute-value")||ua(wa,"string")))return{text:"",selection:[1,1]};if(wa||(wa=Sa.stepBackward()),!wa)return;for(;ua(wa,"tag-whitespace")||ua(wa,"whitespace");)wa=Sa.stepBackward();var ba=!Ca||Ca.match(/\s/);if(ua(wa,"attribute-equals")&&(ba||Ca==">")||ua(wa,"decl-attribute-equals")&&(ba||Ca=="?"))return{text:va+va,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(pa,ha,ga,fa,ma){var va=fa.doc.getTextRange(ma);if(!ma.isMultiLine()&&(va=='"'||va=="'")){var xa=fa.doc.getLine(ma.start.row),ya=xa.substring(ma.start.column+1,ma.start.column+2);if(ya==va)return ma.end.column++,ma}}),this.add("autoclosing","insertion",function(pa,ha,ga,fa,ma){if(ma==">"){var va=ga.getSelectionRange().start,xa=new ca(fa,va.row,va.column),ya=xa.getCurrentToken()||xa.stepBackward();if(!ya||!(ua(ya,"tag-name")||ua(ya,"tag-whitespace")||ua(ya,"attribute-name")||ua(ya,"attribute-equals")||ua(ya,"attribute-value"))||ua(ya,"reference.attribute-value"))return;if(ua(ya,"attribute-value")){var Aa=xa.getCurrentTokenColumn()+ya.value.length;if(va.column<Aa)return;if(va.column==Aa){var Ca=xa.stepForward();if(Ca&&ua(Ca,"attribute-value"))return;xa.stepBackward()}}if(/^\s*>/.test(fa.getLine(va.row).slice(va.column)))return;for(;!ua(ya,"tag-name");)if(ya=xa.stepBackward(),ya.value=="<"){ya=xa.stepForward();break}var Sa=xa.getCurrentTokenRow(),wa=xa.getCurrentTokenColumn();if(ua(xa.stepBackward(),"end-tag-open"))return;var ba=ya.value;return Sa==va.row&&(ba=ba.substring(0,va.column-wa)),this.voidElements&&this.voidElements.hasOwnProperty(ba.toLowerCase())?void 0:{text:"></"+ba+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(pa,ha,ga,fa,ma){if(ma==`
`){var va=ga.getCursorPosition(),xa=fa.getLine(va.row),ya=new ca(fa,va.row,va.column),Aa=ya.getCurrentToken();if(ua(Aa,"")&&Aa.type.indexOf("tag-close")!==-1){if(Aa.value=="/>")return;for(;Aa&&Aa.type.indexOf("tag-name")===-1;)Aa=ya.stepBackward();if(!Aa)return;var Ca=Aa.value,Sa=ya.getCurrentTokenRow();if(Aa=ya.stepBackward(),!Aa||Aa.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[Ca]||!this.voidElements){var wa=fa.getTokenAt(va.row,va.column+1),xa=fa.getLine(Sa),ba=this.$getIndent(xa),Ea=ba+fa.getTabString();return wa&&wa.value==="</"?{text:`
`+Ea+`
`+ba,selection:[1,Ea.length,1,Ea.length]}:{text:`
`+Ea}}}}})};sa.inherits(da,la),oa.XmlBehaviour=da}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../../token_iterator").TokenIterator,ca=ra("../behaviour/cstyle").CstyleBehaviour,ua=ra("../behaviour/xml").XmlBehaviour,da=function(){var pa=new ua({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(pa),this.inherit(ca),this.add("autoclosing-fragment","insertion",function(ha,ga,fa,ma,va){if(va==">"){var xa=fa.getSelectionRange().start,ya=new la(ma,xa.row,xa.column),Aa=ya.getCurrentToken()||ya.stepBackward();if(!Aa)return;if(Aa.value=="<")return{text:"></>",selection:[1,1]}}})};sa.inherits(da,ca),oa.JavaScriptBehaviour=da}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../../range").Range,ca=ra("./fold_mode").FoldMode,ua=oa.FoldMode=function(ha,ga){ca.call(this),this.voidElements=ha||{},this.optionalEndTags=sa.mixin({},this.voidElements),ga&&sa.mixin(this.optionalEndTags,ga)};sa.inherits(ua,ca);var da=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function pa(ha,ga){return ha.type.lastIndexOf(ga+".xml")>-1}(function(){this.getFoldWidget=function(ha,ga,fa){var ma=this._getFirstTagInLine(ha,fa);return ma?ma.closing||!ma.tagName&&ma.selfClosing?ga==="markbeginend"?"end":"":!ma.tagName||ma.selfClosing||this.voidElements.hasOwnProperty(ma.tagName.toLowerCase())||this._findEndTagInLine(ha,fa,ma.tagName,ma.end.column)?"":"start":this.getCommentFoldWidget(ha,fa)},this.getCommentFoldWidget=function(ha,ga){return/comment/.test(ha.getState(ga))&&/<!-/.test(ha.getLine(ga))?"start":""},this._getFirstTagInLine=function(ha,ga){for(var fa=ha.getTokens(ga),ma=new da,va=0;va<fa.length;va++){var xa=fa[va];if(pa(xa,"tag-open")){if(ma.end.column=ma.start.column+xa.value.length,ma.closing=pa(xa,"end-tag-open"),xa=fa[++va],!xa)return null;if(ma.tagName=xa.value,xa.value===""){if(xa=fa[++va],!xa)return null;ma.tagName=xa.value}for(ma.end.column+=xa.value.length,va++;va<fa.length;va++)if(xa=fa[va],ma.end.column+=xa.value.length,pa(xa,"tag-close")){ma.selfClosing=xa.value=="/>";break}return ma}else if(pa(xa,"tag-close"))return ma.selfClosing=xa.value=="/>",ma;ma.start.column+=xa.value.length}return null},this._findEndTagInLine=function(ha,ga,fa,ma){for(var va=ha.getTokens(ga),xa=0,ya=0;ya<va.length;ya++){var Aa=va[ya];if(xa+=Aa.value.length,!(xa<ma-1)&&pa(Aa,"end-tag-open")&&(Aa=va[ya+1],pa(Aa,"tag-name")&&Aa.value===""&&(Aa=va[ya+2]),Aa&&Aa.value==fa))return!0}return!1},this.getFoldWidgetRange=function(ha,ga,fa){var ma=this._getFirstTagInLine(ha,fa);if(!ma)return this.getCommentFoldWidget(ha,fa)&&ha.getCommentFoldRange(fa,ha.getLine(fa).length);var va=ha.getMatchingTags({row:fa,column:0});if(va)return new la(va.openTag.end.row,va.openTag.end.column,va.closeTag.start.row,va.closeTag.start.column)}}).call(ua.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../../range").Range,ca=ra("./fold_mode").FoldMode,ua=oa.FoldMode=function(da){da&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+da.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+da.end)))};sa.inherits(ua,ca),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(da,pa,ha){var ga=da.getLine(ha);if(this.singleLineBlockCommentRe.test(ga)&&!this.startRegionRe.test(ga)&&!this.tripleStarBlockCommentRe.test(ga))return"";var fa=this._getFoldWidgetBase(da,pa,ha);return!fa&&this.startRegionRe.test(ga)?"start":fa},this.getFoldWidgetRange=function(da,pa,ha,ga){var fa=da.getLine(ha);if(this.startRegionRe.test(fa))return this.getCommentRegionBlock(da,fa,ha);var xa=fa.match(this.foldingStartMarker);if(xa){var ma=xa.index;if(xa[1])return this.openingBracketBlock(da,xa[1],ha,ma);var va=da.getCommentFoldRange(ha,ma+xa[0].length,1);return va&&!va.isMultiLine()&&(ga?va=this.getSectionRange(da,ha):pa!="all"&&(va=null)),va}if(pa!=="markbegin"){var xa=fa.match(this.foldingStopMarker);if(xa){var ma=xa.index+xa[0].length;return xa[1]?this.closingBracketBlock(da,xa[1],ha,ma):da.getCommentFoldRange(ha,ma,-1)}}},this.getSectionRange=function(da,pa){var ha=da.getLine(pa),ga=ha.search(/\S/),fa=pa,ma=ha.length;pa=pa+1;for(var va=pa,xa=da.getLength();++pa<xa;){ha=da.getLine(pa);var ya=ha.search(/\S/);if(ya!==-1){if(ga>ya)break;var Aa=this.getFoldWidgetRange(da,"all",pa);if(Aa){if(Aa.start.row<=fa)break;if(Aa.isMultiLine())pa=Aa.end.row;else if(ga==ya)break}va=pa}}return new la(fa,ma,va,da.getLine(va).length)},this.getCommentRegionBlock=function(da,pa,ha){for(var ga=pa.search(/\s*$/),fa=da.getLength(),ma=ha,va=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,xa=1;++ha<fa;){pa=da.getLine(ha);var ya=va.exec(pa);if(ya&&(ya[1]?xa--:xa++,!xa))break}var Aa=ha;if(Aa>ma)return new la(ma,ga,Aa,pa.length)}}.call(ua.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("./xml").FoldMode,ca=ra("./cstyle").FoldMode,ua=oa.FoldMode=function(da){da&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+da.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+da.end))),this.xmlFoldMode=new la};sa.inherits(ua,ca),function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(da,pa,ha){var ga=this.getFoldWidgetBase(da,pa,ha);return ga||this.xmlFoldMode.getFoldWidget(da,pa,ha)},this.getFoldWidgetRange=function(da,pa,ha,ga){var fa=this.getFoldWidgetRangeBase(da,pa,ha,ga);return fa||this.xmlFoldMode.getFoldWidgetRange(da,pa,ha)}}.call(ua.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./text").Mode,ca=ra("./javascript_highlight_rules").JavaScriptHighlightRules,ua=ra("./matching_brace_outdent").MatchingBraceOutdent,da=ra("../worker/worker_client").WorkerClient,pa=ra("./behaviour/javascript").JavaScriptBehaviour,ha=ra("./folding/javascript").FoldMode,ga=function(){this.HighlightRules=ca,this.$outdent=new ua,this.$behaviour=new pa,this.foldingRules=new ha};sa.inherits(ga,la),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(fa,ma,va){var xa=this.$getIndent(ma),ya=this.getTokenizer().getLineTokens(ma,fa),Aa=ya.tokens,Ca=ya.state;if(Aa.length&&Aa[Aa.length-1].type=="comment")return xa;if(fa=="start"||fa=="no_regex"){var Sa=ma.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);Sa&&(xa+=va)}else if(fa=="doc-start"&&(Ca=="start"||Ca=="no_regex"))return"";return xa},this.checkOutdent=function(fa,ma,va){return this.$outdent.checkOutdent(ma,va)},this.autoOutdent=function(fa,ma,va){this.$outdent.autoOutdent(ma,va)},this.createWorker=function(fa){var ma=new da(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return ma.attachToDocument(fa.getDocument()),ma.on("annotate",function(va){fa.setAnnotations(va.data)}),ma.on("terminate",function(){fa.clearAnnotations()}),ma},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(ga.prototype),oa.Mode=ga}),function(){ace.require(["ace/mode/javascript"],function(ra){ea&&(ea.exports=ra)})}()}(modeJavascript)),modeJavascript.exports}requireModeJavascript();var modeJson={exports:{}},hasRequiredModeJson;function requireModeJson(){return hasRequiredModeJson||(hasRequiredModeJson=1,function(ea,na){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./text_highlight_rules").TextHighlightRules,ca=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};sa.inherits(ca,la),oa.JsonHighlightRules=ca}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(ra,oa,aa){var sa=ra("../range").Range,la=function(){};(function(){this.checkOutdent=function(ca,ua){return/^\s+$/.test(ca)?/^\s*\}/.test(ua):!1},this.autoOutdent=function(ca,ua){var da=ca.getLine(ua),pa=da.match(/^(\s*\})/);if(!pa)return 0;var ha=pa[1].length,ga=ca.findMatchingBracket({row:ua,column:ha});if(!ga||ga.row==ua)return 0;var fa=this.$getIndent(ca.getLine(ga.row));ca.replace(new sa(ua,0,ua,ha-1),fa)},this.$getIndent=function(ca){return ca.match(/^\s*/)[0]}}).call(la.prototype),oa.MatchingBraceOutdent=la}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ra,oa,aa){var sa=ra("../../lib/oop"),la=ra("../../range").Range,ca=ra("./fold_mode").FoldMode,ua=oa.FoldMode=function(da){da&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+da.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+da.end)))};sa.inherits(ua,ca),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(da,pa,ha){var ga=da.getLine(ha);if(this.singleLineBlockCommentRe.test(ga)&&!this.startRegionRe.test(ga)&&!this.tripleStarBlockCommentRe.test(ga))return"";var fa=this._getFoldWidgetBase(da,pa,ha);return!fa&&this.startRegionRe.test(ga)?"start":fa},this.getFoldWidgetRange=function(da,pa,ha,ga){var fa=da.getLine(ha);if(this.startRegionRe.test(fa))return this.getCommentRegionBlock(da,fa,ha);var xa=fa.match(this.foldingStartMarker);if(xa){var ma=xa.index;if(xa[1])return this.openingBracketBlock(da,xa[1],ha,ma);var va=da.getCommentFoldRange(ha,ma+xa[0].length,1);return va&&!va.isMultiLine()&&(ga?va=this.getSectionRange(da,ha):pa!="all"&&(va=null)),va}if(pa!=="markbegin"){var xa=fa.match(this.foldingStopMarker);if(xa){var ma=xa.index+xa[0].length;return xa[1]?this.closingBracketBlock(da,xa[1],ha,ma):da.getCommentFoldRange(ha,ma,-1)}}},this.getSectionRange=function(da,pa){var ha=da.getLine(pa),ga=ha.search(/\S/),fa=pa,ma=ha.length;pa=pa+1;for(var va=pa,xa=da.getLength();++pa<xa;){ha=da.getLine(pa);var ya=ha.search(/\S/);if(ya!==-1){if(ga>ya)break;var Aa=this.getFoldWidgetRange(da,"all",pa);if(Aa){if(Aa.start.row<=fa)break;if(Aa.isMultiLine())pa=Aa.end.row;else if(ga==ya)break}va=pa}}return new la(fa,ma,va,da.getLine(va).length)},this.getCommentRegionBlock=function(da,pa,ha){for(var ga=pa.search(/\s*$/),fa=da.getLength(),ma=ha,va=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,xa=1;++ha<fa;){pa=da.getLine(ha);var ya=va.exec(pa);if(ya&&(ya[1]?xa--:xa++,!xa))break}var Aa=ha;if(Aa>ma)return new la(ma,ga,Aa,pa.length)}}.call(ua.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(ra,oa,aa){var sa=ra("../lib/oop"),la=ra("./text").Mode,ca=ra("./json_highlight_rules").JsonHighlightRules,ua=ra("./matching_brace_outdent").MatchingBraceOutdent,da=ra("./folding/cstyle").FoldMode,pa=ra("../worker/worker_client").WorkerClient,ha=function(){this.HighlightRules=ca,this.$outdent=new ua,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new da};sa.inherits(ha,la),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(ga,fa,ma){var va=this.$getIndent(fa);if(ga=="start"){var xa=fa.match(/^.*[\{\(\[]\s*$/);xa&&(va+=ma)}return va},this.checkOutdent=function(ga,fa,ma){return this.$outdent.checkOutdent(fa,ma)},this.autoOutdent=function(ga,fa,ma){this.$outdent.autoOutdent(fa,ma)},this.createWorker=function(ga){var fa=new pa(["ace"],"ace/mode/json_worker","JsonWorker");return fa.attachToDocument(ga.getDocument()),fa.on("annotate",function(ma){ga.setAnnotations(ma.data)}),fa.on("terminate",function(){ga.clearAnnotations()}),fa},this.$id="ace/mode/json"}.call(ha.prototype),oa.Mode=ha}),function(){ace.require(["ace/mode/json"],function(ra){ea&&(ea.exports=ra)})}()}(modeJson)),modeJson.exports}requireModeJson();var themeTomorrow_night={exports:{}},hasRequiredThemeTomorrow_night;function requireThemeTomorrow_night(){return hasRequiredThemeTomorrow_night||(hasRequiredThemeTomorrow_night=1,function(ea,na){ace.define("ace/theme/tomorrow_night-css",["require","exports","module"],function(ra,oa,aa){aa.exports=`.ace-tomorrow-night .ace_gutter {
  background: #25282c;
  color: #C5C8C6
}

.ace-tomorrow-night .ace_print-margin {
  width: 1px;
  background: #25282c
}

.ace-tomorrow-night {
  background-color: #1D1F21;
  color: #C5C8C6
}

.ace-tomorrow-night .ace_cursor {
  color: #AEAFAD
}

.ace-tomorrow-night .ace_marker-layer .ace_selection {
  background: #373B41
}

.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {
  box-shadow: 0 0 3px 0px #1D1F21;
}

.ace-tomorrow-night .ace_marker-layer .ace_step {
  background: rgb(102, 82, 0)
}

.ace-tomorrow-night .ace_marker-layer .ace_bracket {
  margin: -1px 0 0 -1px;
  border: 1px solid #4B4E55
}

.ace-tomorrow-night .ace_marker-layer .ace_active-line {
  background: #282A2E
}

.ace-tomorrow-night .ace_gutter-active-line {
  background-color: #282A2E
}

.ace-tomorrow-night .ace_marker-layer .ace_selected-word {
  border: 1px solid #373B41
}

.ace-tomorrow-night .ace_invisible {
  color: #4B4E55
}

.ace-tomorrow-night .ace_keyword,
.ace-tomorrow-night .ace_meta,
.ace-tomorrow-night .ace_storage,
.ace-tomorrow-night .ace_storage.ace_type,
.ace-tomorrow-night .ace_support.ace_type {
  color: #B294BB
}

.ace-tomorrow-night .ace_keyword.ace_operator {
  color: #8ABEB7
}

.ace-tomorrow-night .ace_constant.ace_character,
.ace-tomorrow-night .ace_constant.ace_language,
.ace-tomorrow-night .ace_constant.ace_numeric,
.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,
.ace-tomorrow-night .ace_support.ace_constant,
.ace-tomorrow-night .ace_variable.ace_parameter {
  color: #DE935F
}

.ace-tomorrow-night .ace_constant.ace_other {
  color: #CED1CF
}

.ace-tomorrow-night .ace_invalid {
  color: #CED2CF;
  background-color: #DF5F5F
}

.ace-tomorrow-night .ace_invalid.ace_deprecated {
  color: #CED2CF;
  background-color: #B798BF
}

.ace-tomorrow-night .ace_fold {
  background-color: #81A2BE;
  border-color: #C5C8C6
}

.ace-tomorrow-night .ace_entity.ace_name.ace_function,
.ace-tomorrow-night .ace_support.ace_function,
.ace-tomorrow-night .ace_variable {
  color: #81A2BE
}

.ace-tomorrow-night .ace_support.ace_class,
.ace-tomorrow-night .ace_support.ace_type {
  color: #F0C674
}

.ace-tomorrow-night .ace_heading,
.ace-tomorrow-night .ace_markup.ace_heading,
.ace-tomorrow-night .ace_string {
  color: #B5BD68
}

.ace-tomorrow-night .ace_entity.ace_name.ace_tag,
.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,
.ace-tomorrow-night .ace_meta.ace_tag,
.ace-tomorrow-night .ace_string.ace_regexp,
.ace-tomorrow-night .ace_variable {
  color: #CC6666
}

.ace-tomorrow-night .ace_comment {
  color: #969896
}

.ace-tomorrow-night .ace_indent-guide {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y
}

.ace-tomorrow-night .ace_indent-guide-active {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
}
`}),ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/theme/tomorrow_night-css","ace/lib/dom"],function(ra,oa,aa){oa.isDark=!0,oa.cssClass="ace-tomorrow-night",oa.cssText=ra("./tomorrow_night-css");var sa=ra("../lib/dom");sa.importCssString(oa.cssText,oa.cssClass,!1)}),function(){ace.require(["ace/theme/tomorrow_night"],function(ra){ea&&(ea.exports=ra)})}()}(themeTomorrow_night)),themeTomorrow_night.exports}requireThemeTomorrow_night();const defaultColors$1B={codeBackground:"#222222",lineBackground:"#151515",border:"#6a6a6a"},colors$1B={dark:defaultColors$1B},defaultSizing$1m={border:"1px",borderRadius:"5px"},sizes$1B={default:defaultSizing$1m},scheme$1d=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1B,sizes:sizes$1B},Symbol.toStringTag,{value:"Module"})),CodeEditor=({value:ea,onChange:na,className:ra,...oa})=>{const aa=sa=>{sa.renderer.setScrollMargin(7,7,7,7)};return jsxRuntimeExports.jsx("div",{className:ra,children:jsxRuntimeExports.jsx(AceEditor,{...oa,value:ea,theme:"tomorrow_night",name:"ms-css-syntax-highlighter",showPrintMargin:!0,showGutter:!0,highlightActiveLine:!1,wrapEnabled:!0,setOptions:{showLineNumbers:!0,tabSize:2,fontSize:"12px",useWorker:!1},onLoad:aa,onChange:na})})},theme$2X=withTheme(scheme$1d),StyledSyntaxHighlighter=dt$1(CodeEditor).withConfig({displayName:"CodeEditor__StyledSyntaxHighlighter",componentId:"sc-1svlgz2-0"})([".ace_scroller{top:0;}.ace_editor{border-style:solid;}.ace_gutter{border-right-style:solid;}.ace_gutter-active-line{background-color:transparent;}.ace_hidden-cursors .ace_cursor{opacity:0;}"," ",""],theme$2X.colors(ea=>lt$1([".ace_editor{background-color:",";border-color:",";}.ace_gutter{background-color:",";border-right-color:",";}"],ea.codeBackground,ea.border,ea.lineBackground,ea.border)),theme$2X.sizes(ea=>lt$1([".ace_editor{border-width:",";border-radius:",";}.ace_gutter{border-right-width:",";}"],ea.border,ea.borderRadius,ea.border)));StyledSyntaxHighlighter.defaultProps={mode:"css"};const IconHolder$1=dt$1.div.withConfig({displayName:"LabelWithIcon__IconHolder",componentId:"sc-2vgrrw-0"})([""]),LabelWithIcon=({className:ea,children:na,icon:ra=CircleInfoIcon,iconLocation:oa})=>{const aa=jsxRuntimeExports.jsx(IconHolder$1,{children:jsxRuntimeExports.jsx(Icon$4,{shape:ra})});return oa==="inline"?jsxRuntimeExports.jsxs("span",{className:ea,children:[aa,na]}):jsxRuntimeExports.jsxs("span",{className:ea,children:[oa==="before"&&aa,na,oa==="after"&&aa]})},theme$2W=withTheme(scheme$1x),LabelWithIcon$1=dt$1(LabelWithIcon).withConfig({displayName:"LabelWithIcon",componentId:"sc-2vgrrw-1"})(["display:flex;flex-direction:row;align-items:start;","{padding:0;margin-top:3px;","{display:flex;}","}"," "," ",""],IconHolder$1,Icon$4,ea=>ea.iconLocation==="before"?lt$1(["margin-right:10px;"]):lt$1(["margin-left:10px;"]),({variant:ea})=>ea==="boxed"?lt$1([""," ",""],theme$2W.colors(na=>lt$1(["background-color:",";"],na.boxedBackground)),theme$2W.sizes(na=>lt$1(["padding:",";border-radius:",";"],na.boxedPadding,na.boxedRadius))):"",theme$2W.colors(ea=>lt$1(["color:",";"],ea.color)),theme$2W.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.fontSize,ea.fontWeight))),defaultColors$1A={snippet:{color:"white",backgroundColor:"#222",copyButtonColor:"#444444",copyButtonHoverColor:"white"}},colors$1A={dark:defaultColors$1A},defaultSizing$1l={snippet:{background:"#222",margin:"5px 0 0 -10px",padding:"5px 15px"}},sizes$1A={default:defaultSizing$1l},scheme$1c=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1A,sizes:sizes$1A},Symbol.toStringTag,{value:"Module"})),InnerContainer$3=dt$1.div.withConfig({displayName:"CodeBlock__InnerContainer",componentId:"sc-88a6vq-0"})([""]),CodeBlock=ea=>{const{icon:na,className:ra,description:oa,snippet:aa}=ea,{t:sa}=useTranslation(),[la,ca]=reactExports.useState(!1),ua=()=>{copy(aa),ca(!0)};reactExports.useEffect(()=>{la&&setTimeout(()=>{ca(!1)},1500)},[la]);const da=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oa&&jsxRuntimeExports.jsx("p",{children:oa}),jsxRuntimeExports.jsxs(InnerContainer$3,{children:[jsxRuntimeExports.jsx("pre",{children:aa}),jsxRuntimeExports.jsx(SolidButton,{onClick:ua,size:"tiny",children:sa(la?"Copied!":"Copy")})]})]});return na?jsxRuntimeExports.jsx(LabelWithIcon$1,{iconLocation:"before",className:ra,icon:na,children:jsxRuntimeExports.jsx("div",{children:da})}):jsxRuntimeExports.jsx("div",{className:ra,children:da})},theme$2V=withTheme(scheme$1c),CodeBlock$1=dt$1(CodeBlock).withConfig({displayName:"CodeBlock",componentId:"sc-88a6vq-1"})(["","{position:relative;}","{width:100%;border-radius:0;}pre{margin-bottom:0;white-space:pre-wrap;}"," ",""],InnerContainer$3,SolidButton,theme$2V.colors(ea=>lt$1(["pre{user-select:text;color:",";background-color:",";}","{background-color:",";&:hover{background-color:",";}}"],ea.snippet.color,ea.snippet.backgroundColor,SolidButton,ea.snippet.copyButtonColor,ea.snippet.copyButtonHoverColor)),theme$2V.sizes(ea=>lt$1(["pre{padding:",";}","{margin:",";}"],ea.snippet.padding,InnerContainer$3,ea.snippet.margin))),tooltipOptions$7={options:{id:"workspace"}},ParallaxOptions=({className:ea,value:na})=>{const ra=parallaxConfig.get(na)?.options;return ra?jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(OCManager,{optionControls:ra(),fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$7})}):(console.error(`Options are not registered for this type: ${na}`),null)},ParallaxOptions$1=dt$1(ParallaxOptions).withConfig({displayName:"ParallaxOptions",componentId:"sc-1g0gd9a-0"})(["","{padding:0;}"],Fieldset$1),parallaxPopoverControls=({action:ea,selector:na},ra=[])=>[{id:"parallaxPopover",optionControls:[[createOptionControl({id:"parallaxType",label:i18next.t("Parallax type"),control:Select$1,controlProps:{options:getParallaxTypes().filter(oa=>!ra.includes(oa.value))},selector:na("parallax.type"),action:ea("parallax.type"),styles:{marginTop:"10px"}})],[createOptionControl({id:"parallaxOptions",control:ParallaxOptions$1,selector:na("parallax.type")})]]}],Foreground=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatch(),oa=useSelector(getSelectedElements),aa=useSelector(getSelectedElementsForegroundStatus),sa=useSelector(getActiveSection),{enabled:la,hideOnSections:ca}=Object.values(aa)[0],ua=reactExports.useCallback(pa=>{ra(pa?addToForegroundElement(oa[0]):removeFromForegroundElement(oa[0]))},[ra,oa]),da=reactExports.useCallback(pa=>{if(pa)ra(updateElement({id:oa[0],values:{hideOnSections:[...ca||[],sa]}}));else{const ha=[...ca];removeArrayIndex(ha,sa),ra(updateElement({id:oa[0],values:{hideOnSections:ha}}))}},[sa,ra,ca,oa]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(SwitchBox$1,{value:la,label:na("Show on all {{sections}}",{sections:DocType.getLabel("sections")}),onChange:ua})})}),la&&jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(SwitchBox$1,{value:ca?.includes(sa)||!1,label:na("Hide over this {{section}}",{section:DocType.getLabel("section")}),onChange:da})})})]})},Foreground$1=dt$1(Foreground).withConfig({displayName:"Foreground",componentId:"sc-l66k5p-0"})([""]),tagsList=[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"p",label:"P"},{value:"div",label:"Div"},{value:"span",label:"span"}],ExportElementData=({phase:ea,...na})=>{const{addToModalsStack:ra}=useModal(),oa=useSelector(getSelectedElements),aa=useSelector(getElementsExportedData(oa),equal),sa=reactExports.useCallback(()=>{ra([{id:"contentCreator",options:{dataObject:aa}}])},[ra,aa]);return jsxRuntimeExports.jsx(OutlineButton$1,{onClick:sa,size:"small",...na,children:i18next.t("Export Data")})},ExportElementData$1=dt$1(ExportElementData).withConfig({displayName:"ExportElementData",componentId:"sc-1z0j738-0"})(["width:100%;justify-content:center;"]),selector$j=getSelectedElementsValueByPathAndPrefix(""),action$g=updateSelectedElementsValueByPathAndPrefix(""),tagNameOptionControl=createOptionControl({id:"elementTag",label:i18next.t("Tag"),selector:selector$j("options.tag"),action:action$g("options.tag"),control:Select$1,controlProps:{size:"small",options:tagsList},styles:{flex:.44}}),elementOptionsOptionControls=()=>[{id:"elementNameFieldset",optionControls:[[createOptionControl({id:"elementName",label:i18next.t("Element Name"),control:NameValidator$1,hideOnIntersection:!0,selector:selector$j("name"),action:action$g("name")})]],border:"bottom"},{id:"elementResponsiveFieldset",label:i18next.t("Responsive"),optionControls:[[createOptionControl({id:"elementResponsiveScale",control:SwitchBox$1,controlProps:{label:i18next.t("Responsive resize")},selector:selector$j("responsiveScale"),action:action$g("responsiveScale")})],[createOptionControl({id:"elementVisibility",control:SwitchBox$1,controlProps:{invertValue:!0,label:i18next.t("Hidden on this breakpoint")},selector:selector$j("visible"),action:action$g("visible")})]],border:"bottom"},{id:"elementParallaxFieldset",tier:Tiers.PRO,quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/08/parallax-feature-2x.mp4"},title:i18next.t("Discover the premium parallax feature!"),content:i18next.t("Add depth to your design by creating a parallax effect. Add 3D or 2D movement to the element as the user moves the cursor."),options:{locate:"left",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"elementParallaxFieldset",term:"Parallax"}},optionControls:[[createOptionControl({id:"elementParallax",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Parallax effect")},optionControls:parallaxPopoverControls({selector:selector$j,action:action$g}),overridePopoverInViewPort:{yPlacement:"bottom"}},hideOnIntersection:!0,selector:selector$j("parallax.enabled"),action:action$g("parallax.enabled")})]],border:"bottom"},{id:"elementForegroundFieldset",optionControls:[[createOptionControl({id:"elementForeground",control:Foreground$1,dependency:ea=>!getAnySelectedElementsAreInGroup(ea)})]],border:"bottom"},{id:"elementURLFieldset",optionControls:[[createOptionControl({id:"elementUrlPath",control:Input$2,label:i18next.t("Link element"),controlProps:{variant:"small",placeholder:"http:// or https://",onBlurChange:!0},selector:selector$j("options.url.path"),action:action$g("options.url.path")})],[createOptionControl({id:"elementUrlOpenInNewTab",control:SwitchBox$1,controlProps:{label:i18next.t("Open in new tab")},selector:selector$j("options.url.openInNewTab"),action:action$g("options.url.openInNewTab")})]],border:"bottom"},{id:"elementCustomStyleFieldset",optionControls:[[createOptionControl({id:"elementClassName",control:Input$2,label:i18next.t("Element class name"),controlProps:{variant:"small",onBlurChange:!0},selector:selector$j("options.className"),action:action$g("options.className")})],[createOptionControl({id:"elementCustomStyle",control:StyledSyntaxHighlighter,label:i18next.t("Custom style"),controlProps:{width:"234px",height:"400px"},selector:selector$j("options.customStyle"),action:action$g("options.customStyle")})],[createOptionControl({id:"elementCustomStyleNotice",control:CodeBlock$1,controlProps:{icon:CircleInfoIcon,description:i18next.t('Use "selector" to apply style to this element. Example:'),snippet:`selector {
   background: green !important;
}`}})]],border:"bottom"},{id:"elementExport",optionControls:[[createOptionControl({id:"elementExportDataBtn",control:ExportElementData$1})]],border:"bottom"}],actionCommonControls=({action:ea,selector:na,triggers:ra})=>[{id:"actionCommonControlsFieldset",optionControls:[[createOptionControl({id:"actionDelay",label:i18next.t("Delay"),control:Number$2,controlProps:{units:"s",valueType:"number"},maxWidth:"52px",action:ea("delay"),selector:na("delay"),styles:{marginTop:"10px"}}),createOptionControl({id:"actionTrigger",label:i18next.t("Trigger"),control:Select$1,controlProps:{options:ra.map(oa=>({value:oa.type,label:oa.label})),size:"small"},action:ea("trigger"),selector:na("trigger"),styles:{marginTop:"10px"}})]]}],actionOpenURLDefaultParams={type:"openURL",delay:0,options:{path:"",target:"_blank"}},actionOpenURLControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionOpenURLControlsFieldset",optionControls:[[createOptionControl({id:"actionOpenURLPath",control:Input$2,label:i18next.t("Address"),controlProps:{variant:"small",placeholder:"http:// or https://",onBlurChange:!0},action:na("options.path"),selector:ra("options.path")})],[createOptionControl({id:"actionOpenURLTarget",control:SwitchBox$1,controlProps:{label:i18next.t("Open in new tab")},valueFilter:aa=>aa==="_blank",onChangeValueFilter:aa=>aa?"_blank":"_self",action:na("options.target"),selector:ra("options.target")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],ActionActiveElements=({className:ea,value:na=[],onChange:ra})=>{const oa=useSelector(getActiveSectionElementsData),aa=useSelector(getForegroundElementsData),{t:sa}=useTranslation(),la=reactExports.useMemo(()=>{const ua={...aa,...oa},da=[];return Object.keys(ua).forEach(pa=>{const ha=ua[pa];da.push({value:ha.id,label:ha.name})}),[{value:"self",label:sa("Self")},...da]},[oa,aa,sa]),ca=reactExports.useCallback(ua=>{ra?.(ua)},[ra]);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(MultipleSelect$1,{options:la,value:na,onChange:ca})})})})},ActionActiveElements$1=dt$1(ActionActiveElements).withConfig({displayName:"ActionActiveElements",componentId:"sc-1gsdyif-0"})([".ms-dd__control{min-width:245px;}"]),actionElementsDefaultParams={type:"elements",delay:0,options:{elements:[],type:"show"}},actionElementsControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionElementsControlsFieldset",optionControls:[[createOptionControl({id:"actionActiveElements",control:ActionActiveElements$1,label:i18next.t("Select element(s)"),action:na("options.elements"),selector:ra("options.elements")})],[createOptionControl({id:"actionElementsType",label:i18next.t("Action"),control:Select$1,controlProps:{options:[{value:"show",label:i18next.t("Show")},{value:"hide",label:i18next.t("Hide")},{value:"toggle",label:i18next.t("Toggle visibility")}]},action:na("options.type"),selector:ra("options.type")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionSlideshowDefaultParams={type:"slideshow",delay:0,options:{type:"pause"}},actionSlideshowControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionSlideshowControlsFieldset",optionControls:[[createOptionControl({id:"actionSlideshowType",label:i18next.t("Action"),control:Select$1,controlProps:{options:[{value:"pause",label:i18next.t("Pause slideshow")},{value:"resume",label:i18next.t("Resume slideshow")},{value:"restart",label:i18next.t("Restart slideshow")},{value:"toggle",label:i18next.t("Toggle slideshow state")}]},action:na("options.type"),selector:ra("options.type")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionScrollToDefaultParams={type:"scrollTo",delay:0,options:{type:"below",to:""}},actionScrollToControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionScrollToControlsFieldset",optionControls:[[createOptionControl({id:"actionScrollToType",label:i18next.t("Action"),control:Select$1,controlProps:{options:[{value:"below",label:i18next.t("After the {{document}}",{document:DocType.getLabel("document")})},{value:"target",label:i18next.t("To an HTML element")}]},action:na("options.type"),selector:ra("options.type")})],[createOptionControl({id:"actionScrollToTarget",control:Input$2,label:i18next.t("CSS selector"),controlProps:{variant:"small",onBlurChange:!0},action:na("options.to"),selector:ra("options.to"),dependency:aa=>ra("options.type")(aa)==="target"})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],ActionSections=({className:ea,value:na="",type:ra="name",onChange:oa})=>{const aa=useSelector(getSectionsName),sa=useSelector(getSectionsDataOrderedList).map((ca,ua)=>({value:`${ua}`,label:`${ua+1}`})),la=reactExports.useMemo(()=>ra==="name"?aa:sa,[ra,aa,sa]);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(Select$1,{value:na,options:la,onChange:oa})})})})},ActionSections$1=dt$1(ActionSections).withConfig({displayName:"ActionSections",componentId:"sc-3caqdh-0"})([""]),actionGoToSectionDefaultParams={type:"gotoSection",delay:0,options:{type:"next",to:""}},actionGoToSectionControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionGoToSectionControlsFieldset",optionControls:[[createOptionControl({id:"actionGoToSectionType",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),control:Select$1,controlProps:{options:[{value:"next",label:i18next.t("Next {{section}}",{section:DocType.getLabel("section")})},{value:"previous",label:i18next.t("Previous {{section}}",{section:DocType.getLabel("section")})},{value:"name",label:i18next.t("{{section}} name",{section:DocType.getLabel("section",!0)})},{value:"number",label:i18next.t("{{section}} number",{section:DocType.getLabel("section",!0)})}]},action:na("options.type"),selector:ra("options.type")})],[createOptionControl({id:"actionGotoSectionNameTarget",label:i18next.t("Pick {{section}}",{section:DocType.getLabel("section")}),control:ActionSections$1,action:na("options.to"),selector:ra("options.to"),dependency:aa=>ra("options.type")(aa)==="name"})],[createOptionControl({id:"actionGotoSectionNumberTarget",label:i18next.t("Select number"),control:ActionSections$1,controlProps:{type:"number"},action:na("options.to"),selector:ra("options.to"),dependency:aa=>ra("options.type")(aa)==="number"})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionCloseDefaultParams={type:"close",delay:0,options:{}},actionCloseControls=({id:ea,action:na,selector:ra,triggers:oa})=>[...actionCommonControls({action:na,selector:ra,triggers:oa})],actionCustomJSDefaultParams={type:"customJS",delay:0,options:{value:"// Insert your script"}},actionCustomJSControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionCustomJSControlsFieldset",optionControls:[[createOptionControl({id:"customJSFunction",control:StyledSyntaxHighlighter,label:i18next.t("Custom Script"),controlProps:{width:"245px",height:"150px"},action:na("options.value"),selector:ra("options.value")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionBackgroundVideoPlaybackDefaultParams={type:"backgroundVideo",delay:0,options:{type:"play"}},actionBackgroundVideoPlaybackControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionBackgroundVideoControlsFieldset",optionControls:[[createOptionControl({id:"actionBackgroundVideoType",label:i18next.t("Action"),control:Select$1,controlProps:{options:[{value:"play",label:i18next.t("Resume video")},{value:"pause",label:i18next.t("Pause video")},{value:"stop",label:i18next.t("Stop video")},{value:"toggle",label:i18next.t("Toggle video playback state")}]},action:na("options.type"),selector:ra("options.type")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionBackgroundVideoSoundDefaultParams={type:"backgroundVideoSound",delay:0,options:{type:"mute"}},actionBackgroundVideoSoundControls=({id:ea,action:na,selector:ra,triggers:oa})=>[{id:"actionBackgroundVideoControlsFieldset",optionControls:[[createOptionControl({id:"actionBackgroundVideoSoundType",label:i18next.t("Action"),control:Select$1,controlProps:{options:[{value:"mute",label:i18next.t("Mute video")},{value:"unmute",label:i18next.t("Unmute video")},{value:"toggle",label:i18next.t("Toggle video Sound state")}]},action:na("options.type"),selector:ra("options.type")})]]},...actionCommonControls({action:na,selector:ra,triggers:oa})],actionsList=[{type:"openURL",label:i18next.t("Go to URL"),defaultParams:actionOpenURLDefaultParams,options:actionOpenURLControls},{type:"elements",label:i18next.t("Show / Hide elements"),defaultParams:actionElementsDefaultParams,options:actionElementsControls},{type:"slideshow",label:i18next.t("Slideshow Control"),defaultParams:actionSlideshowDefaultParams,options:actionSlideshowControls},{type:"scrollTo",label:i18next.t("Scroll to"),defaultParams:actionScrollToDefaultParams,options:actionScrollToControls},{type:"gotoSection",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),defaultParams:actionGoToSectionDefaultParams,options:actionGoToSectionControls},{type:"close",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document",!0)}),defaultParams:actionCloseDefaultParams,options:actionCloseControls,dependency:ea=>getDocumentType(ea)==="popup"},{type:"backgroundVideo",label:i18next.t("Background Video Playback"),defaultParams:actionBackgroundVideoPlaybackDefaultParams,options:actionBackgroundVideoPlaybackControls},{type:"backgroundVideoSound",label:i18next.t("Background Video Sound"),defaultParams:actionBackgroundVideoSoundDefaultParams,options:actionBackgroundVideoSoundControls},{type:"customJS",label:i18next.t("Custom JS"),defaultParams:actionCustomJSDefaultParams,options:actionCustomJSControls}],triggersList=[{type:"click",label:i18next.t("Click")},{type:"mouseenter",label:i18next.t("Mouse In")},{type:"mouseleave",label:i18next.t("Mouse Out")},{type:"mouseenterSection",label:i18next.t("Mouse Over {{section}}",{section:DocType.getLabel("section")})},{type:"mouseleaveSection",label:i18next.t("Mouse Leave {{section}}",{section:DocType.getLabel("section")})}],ActionsDataContext=React.createContext({actions:actionsList,triggers:triggersList}),useActionsData=()=>reactExports.useContext(ActionsDataContext),AddAction=({className:ea,onChange:na})=>{const{t:ra}=useTranslation(),{actions:oa,triggers:aa}=useActionsData(),sa=reactExports.useMemo(()=>oa.map(ma=>({value:ma.type,label:ma.label})),[oa]),la=reactExports.useMemo(()=>aa.map(ma=>({value:ma.type,label:ma.label})),[aa]),[ca,ua]=reactExports.useState(sa[0].value),[da,pa]=reactExports.useState(la[0].value),ha=reactExports.useCallback(ma=>{ua(ma)},[]),ga=reactExports.useCallback(ma=>{pa(ma)},[]),fa=reactExports.useCallback(()=>{const ma=oa.find(va=>va.type===ca);na?.({actionId:nanoid$1(),type:ca,trigger:da,defaultParams:ma.defaultParams.options||{}})},[ca,oa,na,da]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{label:ra("Action type"),children:jsxRuntimeExports.jsx(Select$1,{options:sa,onChange:ha,value:ca})})}),jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{label:ra("Trigger"),children:jsxRuntimeExports.jsx(Select$1,{options:la,onChange:ga,value:da})})}),jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:fa,children:ra("Add Action")})})})]})},AddAction$1=dt$1(AddAction).withConfig({displayName:"AddAction",componentId:"sc-1j41l4d-0"})(["","{width:100%;justify-content:center;}"],OutlineButton$1),defaultColors$1z={background:"#222222",border:"#000000",actionLabel:"#AAAAAA",triggerLabel:"#6A6A6A",icon:"#FFF"},colors$1z={dark:defaultColors$1z},defaultSizing$1k={padding:"5px 8px",border:"5px",actionLabel:{fontSize:"11px",fontWeight:"600"},triggerLabel:{fontSize:"11px",fontWeight:"600"}},sizes$1z={default:defaultSizing$1k},scheme$1b=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1z,sizes:sizes$1z},Symbol.toStringTag,{value:"Module"})),tooltipOptions$6={options:{id:"workspace"}},InnerPopoverBtn$1=dt$1(PopoverEditButton).withConfig({displayName:"ActionPopover__InnerPopoverBtn",componentId:"sc-1e1he35-0"})([""]),ClearButton=dt$1(IconButton).withConfig({displayName:"ActionPopover__ClearButton",componentId:"sc-1e1he35-1"})([""]),Labels=dt$1.div.withConfig({displayName:"ActionPopover__Labels",componentId:"sc-1e1he35-2"})([""]),ActionLabel=dt$1.span.withConfig({displayName:"ActionPopover__ActionLabel",componentId:"sc-1e1he35-3"})([""]),TriggerLabel=dt$1.span.withConfig({displayName:"ActionPopover__TriggerLabel",componentId:"sc-1e1he35-4"})([""]),ActionPopover=({className:ea,type:na,trigger:ra,id:oa})=>{const{t:aa}=useTranslation(),[sa,la]=reactExports.useState(!1),{openContext:ca,actions:ua,triggers:da}=useActionsData(),{setOpen:pa,open:ha}=reactExports.useContext(ca||PopoverOpenStateContext),ga=useDispatchAndToHistory(),fa=reactExports.useMemo(()=>ua.find(wa=>wa.type===na),[ua,na]),ma=reactExports.useMemo(()=>da.find(wa=>wa.type===ra),[da,ra]);reactExports.useEffect(()=>{ha||la(!1)},[ha]);const va=reactExports.useCallback(()=>{pa(!1),la(!1)},[pa]),xa=reactExports.useCallback(()=>{pa(!0),la(!0)},[pa]),ya=reactExports.useCallback(()=>{ga(removeAction({actionId:oa}))},[oa,ga]),Aa=fa.options;if(!Aa)return console.error(`Options are not registered for this type: ${na}`),null;const Ca=getActiveActionValueByPathAndPrefix(oa,fa.defaultParams),Sa=updateActiveActionByPath(oa);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(Field$1,{children:[jsxRuntimeExports.jsx(ClearButton,{size:"tiny",icon:jsxRuntimeExports.jsx(SvgCrossMedium,{}),onClick:ya}),jsxRuntimeExports.jsxs(Labels,{children:[jsxRuntimeExports.jsx(ActionLabel,{children:fa.label}),jsxRuntimeExports.jsx(TriggerLabel,{children:ma.label})]})]}),jsxRuntimeExports.jsxs(Popover$3,{inViewportOptions:{yPlacement:"bottom",xPlacement:"insideRight",space:{top:0,right:-23}},onOpen:xa,onClose:va,open:sa,onOutsideClick:va,handler:jsxRuntimeExports.jsx(PopoverEditButton,{onClick:()=>la(!sa),children:aa("Edit")}),children:[jsxRuntimeExports.jsx(InnerPopoverBtn$1,{onClick:va,children:aa("Close")}),jsxRuntimeExports.jsx(OCManager,{optionControls:Aa({id:oa,selector:Ca,action:Sa,triggers:da}),fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$6})]})]})},theme$2U=withTheme(scheme$1b),ActionPopover$1=dt$1(ActionPopover).withConfig({displayName:"ActionPopover",componentId:"sc-1e1he35-5"})(["display:flex;align-items:center;justify-content:space-between;> ","{display:inline-flex;}","{position:absolute;top:15px;right:15px;z-index:2;}> ","{display:flex;align-items:center;}","{display:inline-flex;justify-content:flex-start;opacity:0;width:0;transition:all 300ms ease-out;}","{display:flex;flex-direction:column;}","{display:block;}","{display:block;}&:hover{","{width:16px;opacity:1;}}","{margin:0;}"," ",""],Popover$3,InnerPopoverBtn$1,Field$1,ClearButton,Labels,TriggerLabel,ActionLabel,ClearButton,OCManager,theme$2U.colors(ea=>lt$1(["background:",";box-shadow:0 0 0 1px ",";","{color:",";}","{color:",";}"],ea.background,ea.border,ActionLabel,ea.actionLabel,TriggerLabel,ea.triggerLabel)),theme$2U.sizes(ea=>lt$1(["border-radius:",";padding:",";","{font-size:",";font-weight:",";}","{font-size:",";font-weight:",";}"],ea.border,ea.padding,ActionLabel,ea.actionLabel.fontSize,ea.actionLabel.fontWeight,TriggerLabel,ea.triggerLabel.fontSize,ea.triggerLabel.fontWeight))),ActionsList=({className:ea,value:na={}})=>{const ra=Object.keys(na),oa=reactExports.useCallback(aa=>jsxRuntimeExports.jsx(ActionPopover$1,{id:aa,...na[aa]},aa),[na]);return jsxRuntimeExports.jsx("div",{className:ea,children:ra.map(oa)})},ActionsList$1=dt$1(ActionsList).withConfig({displayName:"ActionsList",componentId:"sc-1710mv4-0"})(["","{margin-bottom:10px;&:last-of-type{margin-bottom:0;}}"],ActionPopover$1),selector$i=getSelectedElementsValueByPathAndPrefix(""),actionOptionControls=()=>[{id:"actionControlsFieldset",border:"bottom",optionControls:[[createOptionControl({id:"addAction",control:AddAction$1,action:addActiveAction})]]},{id:"actionControlsListFieldset",optionControls:[[createOptionControl({id:"actionsList",control:ActionsList$1,selector:selector$i("actions")})]]}],tooltipOptions$5={options:{id:"workspace"}},ActionManager=({className:ea})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(OCManager,{optionControls:actionOptionControls(),fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$5})}),ActionManager$1=dt$1(ActionManager).withConfig({displayName:"ActionManager",componentId:"sc-11fktes-0"})(["","{padding:0;}> ","{margin:0;}"],Fieldset$1,OCManager),Action=({triggers:ea=triggersList,excludedTypes:na=[],excludedTriggers:ra=[],openContext:oa})=>{const aa=useSelector(getElementActionsList(actionsList,na)),sa=ea.filter(la=>!ra.includes(la.type));return jsxRuntimeExports.jsx(ActionsDataContext.Provider,{value:{actions:aa,triggers:sa,openContext:oa},children:jsxRuntimeExports.jsx(ActionManager$1,{})})},Action$1=dt$1(Action).withConfig({displayName:"action",componentId:"sc-1jqprmc-0"})([""]),elementActionOptionControls=()=>[{id:"elementActionFieldset",optionControls:[[createOptionControl({id:"elementAction",control:Action$1,hideOnIntersection:!0})]]}],sizeOptionControls=({action:ea,selector:na})=>[createOptionControl({id:"width",label:i18next.t("Width"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"Hug content"},{value:"fill-parent",label:"Fill container"}],specialValues:["auto","fill-parent"],floatRange:1},selector:na("width"),action:ea("width")}),createOptionControl({id:"height",label:i18next.t("Height"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"auto",label:"Hug content"},{value:"fill-parent",label:"Fill container"}],specialValues:["auto","fill-parent"],floatRange:1},selector:na("height"),action:ea("height")})],AspectRatio=({className:ea,value:na,onChange:ra,...oa})=>{const aa=()=>{ra&&ra(isIndeterminate(na)?!0:!na)};return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(IconButton,{...oa,size:"tiny",icon:na?jsxRuntimeExports.jsx(SvgLink$1,{}):jsxRuntimeExports.jsx(SvgUnlink,{}),onClick:()=>aa()})})},AspectRatio$1=dt$1(AspectRatio).withConfig({displayName:"AspectRatio",componentId:"sc-1442px2-0"})(["position:relative;margin:0;margin-right:-10px;margin-left:-10px;align-items:center;","{position:relative;z-index:1;min-height:27px;}",""],IconButton,ea=>ea.value===!0?lt$1(["&:before{content:'';position:absolute;height:1px;background:#696969;right:2px;left:2px;top:50%;transform:translateY(-50%);}"]):""),Flip=({className:ea,value:na,onChange:ra,direction:oa,...aa})=>{const{t:sa}=useTranslation(),la=()=>{const ca=(na||isIndeterminate(na))&&na||1;ra&&ra(-ca)};return jsxRuntimeExports.jsxs("div",{className:ea,children:[oa==="horizontal"&&jsxRuntimeExports.jsx(OptionButton,{...aa,tooltip:{content:sa("Flip Horizontal"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgFlipHorizontal}),onClick:()=>la()}),oa==="vertical"&&jsxRuntimeExports.jsx(OptionButton,{...aa,tooltip:{content:sa("Flip Vertical"),options:{id:"workspace"}},icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgFlipVertical}),onClick:()=>la()})]})},Flip$1=dt$1(Flip).withConfig({displayName:"Flip",componentId:"sc-1g1v3v8-0"})(["","{&:first-of-type{margin-right:5px;}}"],OptionButton),SvgBc=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_BC",d:"M16931,1759v-20h28v20Zm27-1v-18h-26v18h10v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1Zm-10-2v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm6-2v-1h-1v-1h1v1h1v1Z",transform:"translate(-16931 -1738.999)"})),SvgBl=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_BL",d:"M16931,1759v-20h28v20Zm27-1v-18h-26v12h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h-1v-1h-1v1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v2Zm-26,0h1v-1h-1Zm9-3h-1v-1h-1v-1h-1v-1h1v1h1v1h1Zm-2,1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm4-3h-1v-1h1Z",transform:"translate(-16931 -1738.999)"})),SvgBr=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_BR",d:"M16931,1759v-20h28v20Zm27-1v-18h-26v18h18v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v1h1v1h1v-1h-1v-1h1v2Zm0-3h-1v-1h-1v-1h-1v-1h1v1h1v1h1Zm-2,1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-3h-1v-1h1Z",transform:"translate(-16931 -1738.999)"})),SvgMc=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_MC",d:"M16931,1759v-20h28v20Zm1-1h26v-18h-26Zm16-6v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm6-2v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm0-2v-1h-1v-1h1v1h1v1Z",transform:"translate(-16931 -1738.999)"})),SvgMl=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_ML",d:"M16931,1759v-20h28v20Zm1-1h26v-18h-26v6h1v1h1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h-1v-1h-1Zm9-7h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1Zm-2,1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm2-3h-1v-1h-1v-1h-1v-1h1v1h1v1h1Zm0-2h-1v-1h1Z",transform:"translate(-16931 -1738.999)"})),SvgMr=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_MR",d:"M16931,1759v-20h28v20Zm1-1h26v-18h-26Zm26-7h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1Zm-2,1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-3h-1v-1h-1v-1h-1v-1h1v1h1v1h1Zm0-2h-1v-1h1Z",transform:"translate(-16931 -1738.999)"})),SvgTc=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:29,height:21,viewBox:"0 0 29 21",...ea},reactExports.createElement("path",{id:"reset_TC",d:"M16931,1759v-20h28v20Zm1-1h26v-18h-26Zm16-12v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm6-2v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm0-2v-1h-1v-1h1v1h1v1Z",transform:"translate(-16930.5 -1738.499)",strokeWidth:1})),SvgTl=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_TL",d:"M16931,1759v-20h28v20Zm1-1h26v-18h-17v1h-1v-1h-1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h-1v-1h-1Z",transform:"translate(-16931 -1738.999)"})),SvgTr=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:20,viewBox:"0 0 28 20",...ea},reactExports.createElement("path",{id:"reset_TR",d:"M16931,1759v-20h28v20Zm1-1h26v-17h-1v-1h-1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h1v1h1v1h1v1h1v1h1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-17Zm20-12v-1h-1v-1h-1v-1h-1v-1h1v1h1v1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-16931 -1738.999)"})),ResetPosition=({className:ea,onChange:na,vertical:ra})=>{const oa=aa=>{na&&na(aa)};return jsxRuntimeExports.jsx("div",{className:ea,children:ra?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTc}),onClick:()=>oa("tc")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBc}),onClick:()=>oa("bc")})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTl}),onClick:()=>oa("tl")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTc}),onClick:()=>oa("tc")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTr}),onClick:()=>oa("tr")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgMl}),onClick:()=>oa("ml")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgMc}),onClick:()=>oa("mc")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgMr}),onClick:()=>oa("mr")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBl}),onClick:()=>oa("bl")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBc}),onClick:()=>oa("bc")}),jsxRuntimeExports.jsx(OptionButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgBr}),onClick:()=>oa("br")})]})})},ResetPosition$1=dt$1(ResetPosition).withConfig({displayName:"ResetPosition",componentId:"sc-1xuw7i6-0"})(["display:grid;grid-template-columns:",";grid-template-rows:",";gap:2px 2px;border-radius:5px;overflow:hidden;","{width:48px;height:40px;background:#222222;border-radius:0;}"],ea=>ea.vertical?"auto auto":"auto auto auto",ea=>ea.vertical?"auto auto":"auto auto auto",OptionButton),positionSelector=getSelectedElementsValueByPathAndPrefix("position"),updatePosition=updateSelectedElementsValueByPathAndPrefix("position"),getPositionType=ea=>positionSelector("positionType")(ea)??"absolute",elementPosition=[createOptionControl({id:"xPosition",label:i18next.t("X Position"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:getSelectedElementsTLOriginPositionValue("x"),action:updateSelectedElementsPosition("x"),dependency:ea=>getPositionType(ea)==="absolute"}),createOptionControl({id:"yPosition",label:i18next.t("Y Position"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:getSelectedElementsTLOriginPositionValue("y"),action:updateSelectedElementsPosition("y"),dependency:ea=>getPositionType(ea)==="absolute"})];createOptionControl({id:"elementPositionType",label:i18next.t("Position Type"),control:Select$1,controlProps:{options:[{value:"absolute",label:i18next.t("Absolute")},{value:"static",label:i18next.t("Relative")}]},dependency:ea=>isElement(getSelectedElementsValueByPathAndPrefix("")("parent")(ea)),action:updatePosition("positionType"),selector:positionSelector("positionType")});const elementAspectRatio=createOptionControl({id:"elementAspectRatio",control:AspectRatio$1,selector:getSelectedElementsValueByPathAndPrefix("")("keepAspectRatio"),action:updateSelectedElementsValueByPathAndPrefix("")("keepAspectRatio"),styles:{flex:0,top:"10px"}}),elementSize=sizeOptionControls({action:updateSelectedElementsSize,selector:getSelectedElementsValueByPathAndPrefix("size")});elementSize.splice(1,0,elementAspectRatio);const elementPositionOrigin=[[createOptionControl({id:"elementEnableCustomOrigin",control:SwitchBox$1,controlProps:{label:i18next.t("Auto set positioning origin")},action:updatePosition("autoOrigin"),selector:positionSelector("autoOrigin"),dependency:ea=>getPositionType(ea)==="absolute"})],[createOptionControl({id:"elementCustomOrigin",control:OriginPicker$1,label:i18next.t("Custom origin"),tooltip:{content:i18next.t("Sets the origin point for positioning element."),options:{place:"top",id:"workspace"}},action:changeElementsOrigin,selector:positionSelector("origin"),dependency:ea=>!positionSelector("autoOrigin")(ea)&&getPositionType(ea)==="absolute"})],[createOptionControl({id:"elementMargin",label:i18next.t("Margin"),control:BoxSideSizing$1,action:updateSelectedElementsValueByPathAndPrefix("styles")("margin"),selector:getSelectedElementsValueByPathAndPrefix("styles")("margin"),dependency:ea=>positionSelector("autoOrigin")(ea)&&getPositionType(ea)!=="absolute"})]],transformSelector=getSelectedElementsValueByPathAndPrefix("styles.transform"),transformAction=updateSelectedElementsValueByPathAndPrefix("styles.transform"),elementRotation=[createOptionControl({id:"elementRotation",label:i18next.t("Rotation"),control:Number$2,controlProps:{units:"°",valueType:"number"},maxWidth:"80px",action:transformAction("rotate"),selector:transformSelector("rotate")})],elementFlip=[createOptionControl({id:"elementFlipX",control:Flip$1,controlProps:{direction:"horizontal"},action:transformAction("scaleX"),selector:transformSelector("scaleX"),styles:{flex:0,marginRight:"-10px",top:"10px"}}),createOptionControl({id:"elementFlipY",control:Flip$1,controlProps:{direction:"vertical"},action:transformAction("scaleY"),selector:transformSelector("scaleY"),styles:{flex:0,top:"10px"}})],elementResetPosition=createOptionControl({id:"elementResetPosition",label:i18next.t("Reset Position"),control:ResetPosition$1,action:resetSelectedElementsPosition,styles:{flex:0}}),elementPositionOptionControls=()=>[{id:"elementPosition",border:"bottom",optionControls:[elementPosition,elementSize,[...elementRotation,...elementFlip],...elementPositionOrigin]}],autoLayoutOptionControls=({action:ea,selector:na})=>{const ra=aa=>na("enable")(aa)&&na("mode")(aa)==="grid",oa=aa=>na("enable")(aa)&&na("mode")(aa)==="flex";return[{id:"autoLayout",label:i18next.t("Auto layout"),border:"bottom",optionControls:[[createOptionControl({id:"autoLayoutModeEnable",control:SwitchBox$1,controlProps:{label:i18next.t("Enable auto layout")},selector:na("enable"),action:setElementAutoLayout})],[createOptionControl({id:"autoLayoutMode",control:Select$1,controlProps:{options:[{value:"flex",label:"Flex"},{value:"grid",label:"Grid (Beta)"}]},label:i18next.t("Mode"),dependency:na("enable"),selector:na("mode"),action:ea("mode"),styles:{flex:.5}})],[createOptionControl({id:"autoLayoutDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:[{value:"row",label:"Horizontal"},{value:"column",label:"Vertical"}]},dependency:oa,selector:na("direction"),action:ea("direction")}),createOptionControl({id:"autoLayoutCols",control:Number$2,controlProps:{min:1,max:10},label:i18next.t("Columns"),dependency:ra,selector:na("columns"),action:ea("columns")}),createOptionControl({id:"autoLayoutGap",control:Number$2,controlProps:{min:0,NaNValue:0,specialValues:["auto"],units:[{value:"px",label:"px"},{value:"auto",label:"auto"}],valueType:"number"},label:i18next.t("Gap"),dependency:na("enable"),selector:na("gap"),action:ea("gap")})],[createOptionControl({id:"autoLayoutAlignment",label:i18next.t("Children alignment"),control:OriginPicker$1,controlProps:{},dependency:aa=>na("enable")(aa)&&!na("reverse")(aa),selector:na("alignment"),action:ea("alignment")}),createOptionControl({id:"autoLayoutAlignmentFlip",label:i18next.t("Children alignment"),control:OriginPicker$1,controlProps:{flip:!0},dependency:aa=>na("enable")(aa)&&na("reverse")(aa),selector:na("alignment"),action:ea("alignment")})],[createOptionControl({id:"autoLayoutReverse",control:SwitchBox$1,controlProps:{label:i18next.t("Reverse")},dependency:oa,selector:na("reverse"),action:ea("reverse")})],[createOptionControl({id:"autoLayoutWrap",control:SwitchBox$1,controlProps:{label:i18next.t("Wrap children")},dependency:oa,selector:na("wrap"),action:ea("wrap")})]]}]},elementAutoLayoutOptions=autoLayoutOptionControls({selector:getSelectedElementsValueByPathAndPrefix("autoLayout"),action:updateSelectedElementsValueByPathAndPrefix("autoLayout")}),groupElementLayerStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),groupElementStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["filter","backgroundBlur"]))(elementStylesOptionControls),groupElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...groupElementLayerStylesOptionsControls,...elementAutoLayoutOptions,...groupElementStylesOptionsControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$n={...elementDefaultCommonState,autoLayout:{enable:!1,mode:{default:"flex"},gap:{default:0},direction:{default:"column"},alignment:{default:"tl"},columns:{default:1},reverse:{default:!1},wrap:{default:!1}}},initialStateValues$n={autoLayout:{enable:!1,mode:{default:"flex"},gap:{default:0},direction:{default:"column"},alignment:{default:"tl"},columns:{default:1},reverse:{default:!1},wrap:{default:!1}}},DroppableContainer$1=dt$1.div.withConfig({displayName:"GroupElement__DroppableContainer",componentId:"sc-gzgj8x-0"})([""]),GroupElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,id:aa,parent:sa,autoLayout:la}=ea,ca=useSelector(getChildrenElementsData(aa)),ua=reactExports.useRef(null),da=Object.values(ca).sort((wa,ba)=>ba.depth!==wa.depth?wa.depth-ba.depth:0).map(wa=>getElement(wa.type,wa)),pa=useDispatch(),ha={...useBorder(oa?.border),...useCorner(oa?.corner,!0),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding)},ga=useElementAutoLayout(la),fa={...ga.style};reactExports.useEffect(()=>{da.length===0&&pa(removeElement({id:aa,parent:sa}))},[da.length,pa,aa,sa]);const{setNodeRef:ma,isOver:va,overId:xa}=useElementDroppableElement(aa,la?.enable),{setDropZoneRef:ya,isDndOver:Aa}=useAssetDroppableElement(aa),Ca=Aa||va&&xa&&!Object.keys(ca).includes(xa),Sa=jsxRuntimeExports.jsx(DropHintOverlay$1,{style:{opacity:Ca?"1":"0"}});return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,contentStyle:ha,onElementClick:ra,...ea,overlayContent:Sa,contentClassName:ga.className,className:Ca?`${ea.className} dp-drop-active`:ea.className,children:jsxRuntimeExports.jsx(DroppableContainer$1,{ref:wa=>{ma(wa),wa&&ya(wa),ua.current=wa},style:fa,children:da})})}),GroupElement=dt$1(GroupElementLogic).withConfig({displayName:"GroupElement",componentId:"sc-gzgj8x-1"})(["> ","{color:#6fd95d !important;}&.dp-drop-over ","{opacity:1;visibility:visible;}","{height:100%;width:100%;}"],ElementOverlay$1,ElementOverlay$1,DroppableContainer$1);registerElement({type:"group",name:"Group",component:GroupElement,optionControls:groupElementOptionControls,defaultStateValues:defaultStateValues$n,initialStateValues:initialStateValues$n,icon:SvgGroup});const defaultConfig={assignOperator:"->",startTag:"{{{",endTag:"}}}",pipeOperator:"|",omittedSelectors:[]},getTagFinderRegexp=memoize$1(({startTag:ea,endTag:na})=>new RegExp(`${ea}(.*?)${na}`,"g")),getHelperFunction=(ea,na)=>na.get(ea.includes("(")?ea.slice(0,ea.lastIndexOf("(")):ea),transformAssign=(ea,{assignOperator:na})=>ea.replace(na,"."),removeTagChars=(ea,{startTag:na,endTag:ra})=>ea.replace(na,"").replace(ra,""),parseFunctionParams=ea=>ea.includes("(")?ea.substring(ea.indexOf("(")+1,ea.length-1).split(/,\s*(?![^{}]*})(?![^[\]]*])/).map(aa=>{try{return JSON.parse(aa.trim())}catch{const sa=aa.trim().replace(/^'(.*)'$/,"$1");return sa==="true"||sa==="false"?sa==="true":Number.isNaN(Number(sa))?sa:Number(sa)}}):[],getPipes=(ea,{pipeOperator:na,omittedSelectors:ra,assignOperator:oa})=>ea.split(na).map(aa=>ra.reduce((sa,la)=>sa.replace(new RegExp(`${la}${oa}`,"g"),""),aa)),renderTag=(ea,na,ra,oa)=>getPipes(removeTagChars(ea,ra),ra).reduce((aa,sa)=>aa===void 0?aa:getHelperFunction(sa,oa)?.apply(null,[aa,...parseFunctionParams(sa)])??get$5(aa,transformAssign(sa,ra),void 0),na),containsTag=(ea,na)=>!!ea.match(na),renderTemplate=(ea,na,ra,oa)=>{const{deprecatedTags:aa,startTag:sa,endTag:la}=ra,ca=aa&&aa.has(ea)?`${sa}${aa.get(ea)}${la}`:ea;if(containsTag(ca,getTagFinderRegexp(ra))){const ua=ca.match(getTagFinderRegexp(ra));return ua?.length===1&&ua[0].length===ca.length?renderTag(ua[0],na,ra,oa):ca.replace(getTagFinderRegexp(ra),da=>renderTag(da,na,ra,oa)??da)}return ca},cTrim=(ea,na=5)=>ea.length>na?`${ea.slice(0,na-1)}…`:ea,wTrim=(ea,na=5)=>ea.split(" ").splice(0,na).join(" "),formatDate=(ea,na)=>formatDate$1(ea,na),tagsToStr=ea=>{const na=ea.terms?.map(ra=>ra.label);return na?.length?na?.join(", "):i18next.t("No {{label}} found",{label:ea.label||""})},helpers=new Map;helpers.set("cTrim",cTrim);helpers.set("wTrim",wTrim);helpers.set("formatDate",formatDate);helpers.set("tagsToStr",tagsToStr);const templateEngine=(ea=defaultConfig,na=helpers)=>({renderTag:(ra,oa)=>renderTag(ra,oa,ea,na),renderTemplate:(ra,oa)=>renderTemplate(ra,oa,ea,na)}),ImagePlaceHolder="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='161.618'%20height='52.594'%20viewBox='0%200%20161.618%2052.594'%3e%3cg%20id='Group_1740'%20data-name='Group%201740'%20transform='translate(-83.937%20-471.269)'%3e%3cg%20id='Group_500'%20data-name='Group%20500'%20transform='translate(154.876%20486)'%3e%3cpath%20id='Polygon_1'%20data-name='Polygon%201'%20d='M5.066,0l5.066,8.684H0Z'%20transform='translate(0%2013.579)'%20fill='%23888'/%3e%3cpath%20id='Polygon_2'%20data-name='Polygon%202'%20d='M8.684,0l8.684,13.75H0Z'%20transform='translate(6.547%208.513)'%20fill='%23888'/%3e%3ccircle%20id='Ellipse_59'%20data-name='Ellipse%2059'%20cx='3.98'%20cy='3.98'%20r='3.98'%20transform='translate(5.318)'%20fill='%23888'/%3e%3c/g%3e%3cpath%20id='Subtraction_265'%20data-name='Subtraction%20265'%20d='M-14814.877,7892.592h0l-57.294-18.521v-.672l57.791,18.681-.5.51Zm-160.623,0h0l-.5-.51,59.326-19.177v.672l-58.825,19.016Zm58.827-32.906h0l-59.326-19.177.5-.511,58.825,19.016v.671Zm44.5-.5h0v-.67l57.294-18.521.5.511-57.791,18.681Z'%20transform='translate(15059.936%20-7368.729)'%20fill='%23444'/%3e%3c/g%3e%3c/svg%3e",deprecatedTags=new Map;deprecatedTags.set("{{{date}}}",'date|formatDate({"formatOptions":{"year":"numeric","month":"long","day":"numeric"}})');deprecatedTags.set("{{categoryToStr}}","taxonomy->category|tagsToStr");deprecatedTags.set("{{post_tagToStr}}","taxonomy->post_tag|tagsToStr");deprecatedTags.set("{{{ratingAverage}}}","rating");deprecatedTags.set("{{product_catToStr}}","taxonomy->product_cat|tagsToStr");deprecatedTags.set("{{product_tagToStr}}","taxonomy->product_tag|tagsToStr");const templateEngineEditorConfig={...defaultConfig,omittedSelectors:["post","product","googlePlace","googlePlaceReview"],deprecatedTags},outputTypesDefaultValue={text:i18next.t("No content found."),image:ImagePlaceHolder,tags:i18next.t("No item found.")},useRenderTemplateEngine=(ea,na,ra)=>{const oa=useSelector(getActiveSectionDataSourceData,equal),aa=useSelector(getActiveSectionDataSourceType),sa=templateEngine(templateEngineEditorConfig),la=reactExports.useMemo(()=>!aa||!oa?.data||oa.status==="loading"?{}:oa.data?.hits?.[0]||oa.data,[oa,aa]);return reactExports.useCallback(()=>{if(!ea)return["","static"];if(na)return[ea,"static"];if(!oa)return["","source-detached"];if(oa.status==="loading")return["","rendering"];let ua=sa.renderTemplate(ea,la);return ua=ra&&ua!==1&&typeof ua!="number"&&isEmpty(ua)?outputTypesDefaultValue[ra]:ua,[ua,"rendered"]},[ea,la,na,oa,sa,ra])()},textElementStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1))(elementStylesOptionControls),textElementHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),textElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...modifyControl(excludeControls(elementPositionOptionControls(),["height","elementAspectRatio"]),"width",{styles:{flex:.48}}),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...addControlByTarget(elementTypographyOptionControls,[tagNameOptionControl],"fontName","after"),...textElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...textElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],textElementDefaultState=elementDefaultCommonState,textElementInitialState={size:{default:{width:"auto",height:"auto"}}},EditableText=({value:ea,elementTag:na="span",isEditable:ra=!1,renderValue:oa,onChange:aa,...sa})=>{const[la,ca]=reactExports.useState(oa||ea),ua=reactExports.useRef(null);reactExports.useEffect(()=>{oa&&ca(ra?ea:oa)},[ra,oa,ea]);const da=()=>{if(ua.current){const pa=ua.current.textContent||"";ca(pa),aa?.(pa)}};return React.createElement(na,{ref:ua,contentEditable:ra?"plaintext-only":!1,onBlur:ra?da:void 0,dangerouslySetInnerHTML:{__html:la},style:{whiteSpace:"pre-wrap",...sa.style},onPointerDown:ra?pa=>pa.stopPropagation():void 0,onKeyDown:ra?pa=>pa.stopPropagation():void 0,...sa})},EditableText$1=dt$1(EditableText).withConfig({displayName:"EditableText",componentId:"sc-vwp9kl-0"})([""]),TextElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,options:aa,styles:sa,locked:la=!1,parent:ca,transformToolConfig:ua}=ea,{content:da="",hasDynamicTag:pa}=aa||{},ha=reactExports.useRef(null),ga=useDispatchAndToHistory(),fa=useIsSelected(oa),ma=reactExports.useMemo(()=>({type:"text",offAbles:[],keepRatioOnEdges:!0,...ua}),[ua]),[va,xa]=useRenderTemplateEngine(da,!pa,"text"),ya=useSelector(getActiveSectionDataSourceType),Aa=useTypography(sa?.typography),Ca={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...Aa,...useBackgroundBlur(sa?.backgroundBlur),...useFilter(sa?.filter),...usePadding(sa?.padding)};useScaleFontSize(oa,ha,"styles.typography.$bp");const Sa={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)};let wa="";wa=xa==="rendering"?"...":htmlDecode(va),useRemoveOnEmpty(oa,ca,fa,da);const ba=reactExports.useCallback(Ma=>{ga(updateElement({id:oa,values:{options:{content:Ma}}}))},[ga,oa]),{isActive:Ea,...$a}=useActiveOnClick(oa,!la,fa,void 0,{offAbles:["draggable"]},ma);return jsxRuntimeExports.jsx(BaseElement$1,{ref:Ma=>{assignRef$1(Ma,na),ha.current=Ma},style:Sa,contentStyle:Ca,onElementClick:ra,emptyDataSource:pa&&!ya,transformToolConfig:ma,enableDnd:!Ea,...ea,...$a,children:jsxRuntimeExports.jsx(EditableText$1,{isEditable:Ea&&!la,renderValue:wa,value:da,elementTag:"span",onChange:ba})})}),TextElement=dt$1(TextElementLogic).withConfig({displayName:"TextElement",componentId:"sc-7wr415-0"})(["overflow-wrap:break-word;"]);registerElement({type:"text",name:"Text",component:TextElement,optionControls:textElementOptionControls,defaultStateValues:textElementDefaultState,initialStateValues:textElementInitialState,icon:SvgText});const useGetImageDynamicData=ea=>{const{sourceId:na,size:ra="large",isDynamic:oa=!1,refMediaSize:aa,updateMediaSize:sa}=ea,la=useSelector(getDataURLValues,equal),[ca,ua]=useRenderTemplateEngine(na,!oa),da=reactExports.useMemo(()=>{if(!(!ca||!na))return la[na]?la[na]:getImageSrc(typeof ca=="string"?ca:ca.src,ra)},[la,ca,ra,na]);return reactExports.useLayoutEffect(()=>{!sa||!ca||!na||typeof ca=="string"||aa?.width&&aa?.height&&sa(fitToBox$1("contain",aa.width,aa.height,ca.width,ca.height))},[na,ca,aa!==void 0,sa]),{src:da,status:ua}},cropElement=({cropSize:ea,mediaSize:na,offset:ra,focalPoint:oa},aa)=>(sa,la)=>{const ca=la(),ua=getElementData(aa)(ca),da=getElementBoundaries(aa)(ca),pa=getElementParentBoundaries(aa)(ca),ha=getActiveBreakpoint(ca),ga=getDocumentOptionsByPathAndPrefix("general")("keepAspect")(ca),{wrapperBoundaries:fa,boundaries:ma}=getActiveSectionComputedValues(ca),va=fa.left-ma.left,xa=fa.top-ma.top,ya=!isSection(ua.parent),Aa={width:pa.width,height:pa.height},Ca={...ra};isElement(ua.parent)?(Ca.x-=pa.x,Ca.y-=pa.y):ua.wrap&&(Ca.x-=va,Ca.y-=xa);const Sa={width:ea.width,height:ea.height},wa=calcElementPosition(getResponsiveValue(ua.position,ha),Ca,Sa,Aa,ga&&!ya?"tl":void 0),ba=calcElementSize(getResponsiveValue(ua.size,ha),ea,Aa,da,!0);sa(updateElement({id:aa,values:{position:setResponsiveValue(wa,ua.position,ha,!0),size:setResponsiveValue(ba,ua.size,ha,!0),cropData:setResponsiveValue({mediaSize:na,focalPoint:oa},ua.cropData,ha,!0)}}))},resetCropDataForSelectedElement=()=>(ea,na)=>{const ra=na(),oa=getSelectedElements(ra)[0],{cropData:aa,size:sa}=getSelectedElementsData(ra)[oa],{size:la}=getElementComputedValues(oa)(ra),ca=getActiveBreakpoint(ra);if(aa&&la){const ua=getResponsiveValue(aa,ca);if(!ua)return;const{mediaSize:da}=ua,pa=fitToBox$1("cover",la.width,la.height,da.width,da.height);ea(updateElement({id:oa,values:{cropData:setResponsiveValue({mediaSize:pa,focalPoint:{x:.5,y:.5}},aa,ca,!1),size:setResponsiveValue({width:{value:pa.width,unit:"px"},height:{value:pa.height,unit:"px"}},sa,ca,!1)}}))}},replaceElementSource=(ea,na)=>(ra,oa)=>{const aa=oa(),sa=getElementData(ea)(aa),{source:la,sourceSize:{width:ca,height:ua}}=na;if(sa.cropData?.default){const da=objectMap(sa.cropData,({mediaSize:pa,focalPoint:ha})=>({focalPoint:ha,mediaSize:fitToBox$1("contain",pa.width,pa.height,ca,ua)}));ra(updateElement({id:ea,values:{options:{source:la},cropData:da}}))}else ra(updateElement({id:ea,values:{options:{source:la}}}))},replaceImageOverNonImageElement=(ea,na)=>(ra,oa)=>{const aa=oa(),sa=getElementComputedSize(aa)(ea);if(!sa)return;const{source:la,sourceSize:{width:ca,height:ua}}=na,da={default:{focalPoint:{x:.5,y:.5},mediaSize:fitToBox$1("contain",sa.width,sa.height,ca,ua)}};ra(updateElement({id:ea,values:{options:{source:la},cropData:da,type:"image"}}))},FramePlaceHolder="data:image/svg+xml,%3csvg%20width='147'%20height='147'%20viewBox='0%200%20147%20147'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='147'%20height='147'%20fill='%234980F5'/%3e%3cmask%20id='mask0_2348_19305'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='147'%20height='147'%3e%3crect%20width='147'%20height='147'%20fill='%23F2F2F2'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2348_19305)'%3e%3cpath%20d='M108.481%2075.6632C110.85%2072.0465%20116.15%2072.0465%20118.519%2075.6632L165.874%20147.963C168.487%20151.953%20165.624%20157.25%20160.854%20157.25H66.1456C61.3755%20157.25%2058.5128%20151.953%2061.1264%20147.963L108.481%2075.6632Z'%20fill='%2301D06F'/%3e%3cpath%20d='M31.2298%2043.2526C33.6311%2040.105%2038.3689%2040.105%2040.7702%2043.2525L124.775%20153.361C127.787%20157.31%20124.971%20163%20120.004%20163H-48.0045C-52.9715%20163%20-55.7875%20157.31%20-52.7747%20153.361L31.2298%2043.2526Z'%20fill='%239AFF89'/%3e%3c/g%3e%3ccircle%20cx='83.5'%20cy='42.5'%20r='15.5'%20fill='%23FFD913'/%3e%3c/svg%3e",CropElement=ea=>{const{label:na,size:ra="medium",...oa}=ea,aa=useSelector(getSelectedElements)[0],{openCropTool:sa}=useMediaCropperTool(aa),la=useSelector(getElementCropperToolData(aa)),ca=reactExports.useCallback(()=>{la&&sa({...la,update:cropElement})},[la,sa]);return jsxRuntimeExports.jsx(MenuItem,{size:ra,value:"crop",...oa,onClick:ca,children:na})},CropElement$1=dt$1(CropElement).withConfig({displayName:"CropElement",componentId:"sc-jxt41a-0"})([""]),cropElementItem={id:"cropElementItem",label:i18next.t("Crop"),UIItem:CropElement$1,dependency:ea=>getSelectedElements(ea).length===1},setAsSlideBackgroundItem={id:"setAsSlideBackgroundItem",label:i18next.t("Set as {{section}} background",{section:DocType.getLabel("section")}),dispatcher:{thunk:setSelectedElementMediaAsBackground},dependency:ea=>getSelectedElements(ea).length===1},resetCropData={id:"resetCropDataItem",label:i18next.t("Reset crop"),dispatcher:{thunk:resetCropDataForSelectedElement},dependency:ea=>getSelectedElements(ea).length===1},imageElementContextMenu=[selectElementsGroup,modifyElementsItemsGroup,{id:"cropElementItem",items:[cropElementItem,resetCropData]},lockAndUnlockItemsGroup,groupAndUngroupItemsGroup,arrangeElementsDepthItemsGroup,{id:"setMediaAsBackgroundItem",items:[setAsSlideBackgroundItem]},foregroundItemsGroup,responsiveItemsGroup],youtubeMatchingPattern=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,vimeoMatchingPattern=/(?:http|https)?:\/\/?(?:www\.)?(?:player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^/]*\/videos\/|video\/|)(\d+)(?:\/|\?)?/,EmbedVideoUrl=ea=>{const{value:na,onChange:ra,sourceProp:oa="source",typeProp:aa="type"}=ea,{t:sa}=useTranslation(),la=reactExports.useMemo(()=>na[aa],[aa,na]),{placeHolder:ca,pattern:ua}=reactExports.useMemo(()=>{switch(la){case"youtube":return{placeHolder:"e.g. https://www.youtube.com/watch?v=EngW7tLk6R8",pattern:youtubeMatchingPattern,validationMessage:sa("The URL you entered is not a valid YouTube link.")};case"vimeo":return{placeHolder:"e.g. https://vimeo.com/253989945",pattern:vimeoMatchingPattern,validationMessage:sa("The URL you entered is not a valid Vimeo link.")};default:return{placeHolder:"e.g. https://example.com/video.mp4",pattern:/.*/,validationMessage:sa("The URL you entered is not a valid Video link.")}}},[la,sa]),da=ha=>{ra&&ra(ha)},pa=ha=>ha?ua.test(ha):!0;return jsxRuntimeExports.jsx(Input$2,{value:na[oa],type:"url",placeholder:ca,validationOn:"blur",pattern:pa,validationMessage:sa("An error ocurred while renaming the document"),variant:"small",onChange:ha=>da({[aa]:na[aa],[oa]:ha||""})})},videoSettings=({action:ea,selector:na})=>[{id:"videoSettings",border:"bottom",label:i18next.t("Video settings"),optionControls:[[createOptionControl({id:"autoplay",control:SwitchBox$1,controlProps:{label:i18next.t("Autoplay")},tooltip:{content:i18next.t('Autoplay is available only for videos without sound or when the video is muted. If necessary, you can enable the "Mute video" option to use autoplay functionality.'),options:{place:"top",id:"workspace"}},selector:na("autoPlay"),action:ea("autoPlay")})],[createOptionControl({id:"autoPause",control:SwitchBox$1,controlProps:{label:i18next.t("Pause on {{section}} changes",{section:DocType.getLabel("section")})},selector:na("autoPause"),action:ea("autoPause")})],[createOptionControl({id:"muted",control:SwitchBox$1,controlProps:{label:i18next.t("Mute video")},selector:na("muted"),action:ea("muted")})],[createOptionControl({id:"loop",control:SwitchBox$1,controlProps:{label:i18next.t("Enable loop playback")},selector:na("loop"),action:ea("loop")})],[createOptionControl({id:"goNextSection",control:SwitchBox$1,controlProps:{label:i18next.t("Go to next {{section}} (at the end)",{section:DocType.getLabel("section")})},selector:na("goNextSection"),action:ea("goNextSection")})],[createOptionControl({id:"controls",control:SwitchBox$1,controlProps:{label:i18next.t("Show player controls")},selector:na("controls"),action:ea("controls")})]]}],embedVideoSettings=({action:ea,selector:na})=>[{id:"embedVideoSettings",optionControls:[[createOptionControl({id:"embedVideoSource",control:EmbedVideoUrl,label:i18next.t("Embed Video URL"),controlProps:{typeProp:"type",sourceProp:"source"},selector:na("options"),action:ea("options",!0)})],[createOptionControl({id:"elementVideoRelated",control:SwitchBox$1,controlProps:{label:i18next.t("Limit related videos to the same channel")},selector:na("options.related"),action:ea("options.related"),dependency:ra=>na("options.type")(ra)!=="vimeo"})],[createOptionControl({id:"elementVideoStartingTime",label:i18next.t("Starting Time"),control:Number$2,defaultValue:0,controlProps:{units:"s",valueType:"number"},selector:na("options.startingTime"),action:ea("options.startingTime")}),createOptionControl({id:"elementVideoEndingTime",label:i18next.t("Ending Time"),control:Number$2,defaultValue:"__indeterminate__",controlProps:{units:"s",valueType:"number"},selector:na("options.endingTime"),action:ea("options.endingTime")})]]}],SetAsBackground=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatch(),oa=reactExports.useCallback(()=>{ra(setSelectedElementMediaAsBackground())},[ra]);return jsxRuntimeExports.jsx(OutlineButton$1,{className:ea,size:"small",icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgPhotos}),onClick:oa,children:na("Set as {{section}} background",{section:DocType.getLabel("section")})})},SetAsBackground$1=dt$1(SetAsBackground).withConfig({displayName:"SetAsBackground",componentId:"sc-azcirb-0"})(["width:100%;justify-content:center;"]),elementVideoSettings=videoSettings({action:updateSelectedElementsValueByPathAndPrefix("options"),selector:getSelectedElementsValueByPathAndPrefix("options")}),elementEmbedVideoSettings=embedVideoSettings({action:updateSelectedElementsValueByPathAndPrefix(""),selector:getSelectedElementsValueByPathAndPrefix("")}),elementMediaSettings=[{id:"elementSetAsBackground",tier:Tiers.EARLY,optionControls:[[createOptionControl({id:"setAsBackground",control:SetAsBackground$1})]]}],imageElementStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["backgroundColor","padding","backgroundBlur"]))(elementStylesOptionControls),imageElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...imageElementStylesOptionsControls,...modifyFieldsets(elementMediaSettings,{tier:Tiers.FREE})]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],imageElementInitialState={keepAspectRatio:!0};function useRemoveBackground(ea,na=1e3){const[ra,oa]=reactExports.useState(null),[aa,sa]=reactExports.useState(null),[la,ca]=reactExports.useState("idle"),{addToast:ua}=useToast(),{t:da}=useTranslation(),pa=useUserTierAuth(Tiers.PRO),ha=useOpenUpgradeToPro(),ga=reactExports.useCallback(ya=>{ca("failed"),oa(ya),ua({type:"error",title:da("Error"),message:da("Failed to remove background! Please try again later.")})},[ua,da]),[fa]=useRequest(ya=>getRemoveBackgroundStatus(ya.sourceId,ya.process),{onError:ga,onSuccess:(ya,Aa)=>ma(ya,Aa),initialStatus:"idle"}),ma=reactExports.useCallback((ya,Aa)=>{ya.status==="done"?(sa(ya.hits.attachmentID),ca("success"),ea(ya.hits.attachmentID)):setTimeout(()=>{ca("loading"),fa({process:Aa.process,sourceId:Aa.sourceId})},na)},[na,fa,ea]),[va]=useRequest(ya=>removeBackground(ya??""),{errorHandling:!0,onError:ga,onRequest:()=>ca("loading"),onSuccess:(ya,Aa)=>{fa({process:ya.hits.process,sourceId:Aa??""})}});return{removeBg:reactExports.useCallback(ya=>{if(!pa){requestAnimationFrame(()=>{ha({source:"remove-background",medium:"remove-background",content:"remove-background"})});return}va(ya)},[pa,ha,va]),getStatus:fa,error:ra,status:la,id:aa}}const AIButton=ea=>{const{className:na,loading:ra,tooltipContent:oa,...aa}=ea,sa=reactExports.useMemo(()=>oa?{content:oa,options:{id:"workspace",place:"top"}}:void 0,[oa]);return jsxRuntimeExports.jsx(IconButton,{className:na,icon:jsxRuntimeExports.jsx(SvgMagic,{}),tooltip:sa,...aa})},AIButton$1=dt$1(AIButton).withConfig({displayName:"AIButton",componentId:"sc-1q8tp2b-0"})(["width:22px;height:22px;border-radius:3px;cursor:pointer;pointer-events:all;position:relative;transition:all 0.3s;background-color:#363636;border:1px solid #707070;&:hover{background-color:#4a4a4a;}svg{width:16px;height:16px;}::after,::before{content:'';display:block;width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient( 90deg,hsla(182,64%,53%,1) 0%,hsla(34,98%,50%,1) 50%,hsla(323,100%,47%,1) 100% );transition:opacity 0.3s,visibility 0.3s;transform:scale(1.1);z-index:-1;border-radius:5px;animation:rotate2 4s linear infinite;filter:blur(2px);opacity:0;visibility:hidden;}::after{animation:rotate1 4s linear infinite;transform:scale(1.2);filter:blur(4px);}"," @keyframes rotate2{0%{transform:scale(1) rotate(0deg);}50%{transform:scale(1.1) rotate(180deg);}100%{transform:scale(1) rotate(360deg);}}@keyframes rotate1{0%{transform:scale(1.2) rotate(0deg);}50%{transform:scale(1.4) rotate(180deg);}100%{transform:scale(1.2) rotate(360deg);}}"],ea=>ea.loading&&lt$1(["pointer-events:none;border-color:transparent;::after,::before{opacity:1;visibility:visible;}"])),AIImageLoading=dt$1.div.withConfig({displayName:"AIImageLoading",componentId:"sc-hni9bo-0"})(["position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);z-index:1;background-size:200% 100%;background-position:-200%;background-repeat:no-repeat;transition:opacity 0.3s;"," backdrop-filter:brightness(0.7);pointer-events:none;@keyframes shimmer{to{background-position:200%;}}"],ea=>ea.enable?`
            opacity: 1;
            animation: shimmer 1.7s infinite cubic-bezier(0.74, 0.25, 0.33, 0.85);
         `:`
         opacity: 0;
      `),PlaceHolderImage=dt$1.img.withConfig({displayName:"ImageElement__PlaceHolderImage",componentId:"sc-wc69m5-0"})([""]),ImageElementLogic=React.forwardRef(({className:ea,...na},ra)=>{const{t:oa}=useTranslation(),{id:aa,onClick:sa,options:la,styles:ca}=na,{source:ua="",hasDynamicTag:da,clipPath:pa,mimeType:ha}=la||{},ga=reactExports.useRef(null),fa=useSelector(getActiveSectionDataSourceType),ma=useDispatchAndToHistory(),va=useIsSelected(aa),xa=useDispatch(),{openCropTool:ya,isCropping:Aa}=useMediaCropperTool(aa),Ca=useSelector(getElementCropperToolData(aa),equal),Sa=reactExports.useCallback(Ha=>{ma(replaceElementSource(aa,{source:Ha.toString(),sourceSize:Ca?.cropData.mediaSize??{width:0,height:0}}))},[ma,aa,Ca]),{removeBg:wa,status:ba}=useRemoveBackground(Sa),Ea=reactExports.useCallback(Ha=>{xa(updateElementCropData(aa,{mediaSize:Ha}))},[xa,aa]),{src:$a,status:Ma}=useGetImageDynamicData({sourceId:ua,size:"large",isDynamic:da,updateMediaSize:Ea,refMediaSize:Ca?.cropData.mediaSize}),Ia=reactExports.useCallback(()=>{["static","rendered"].includes(Ma)&&Ca?.cropData.cropSize&&ya({...Ca,clipPath:pa,update:cropElement})},[Ma,Ca,ya,pa]);useScaleMediaOnResize(aa,ga,Ca?.cropData.mediaSize);const Oa={...useBorder(ca?.border),...useCorner(ca?.corner,!0),...useBoxShadow(ca?.boxShadow),...useOpacity(ca?.opacity),...useBackgroundColor(ca?.backgroundColor),...useBackgroundBlur(ca?.backgroundBlur),...useFilter(ca?.filter),...usePadding(ca?.padding)},Da={...useBlendingMode(ca?.blendingMode),...useFlexStyles(ca?.flex)},{setDropZoneRef:Ta,canDrop:_a}=useAssetDropZone({canDrop(Ha){return["photo"].includes(Ha?.assetData?.type||"")},drop(Ha){ma(replaceElementSource(aa,{source:Ha.assetData.payload?.source||Ha.assetData.id,sourceSize:{width:Ha.assetData.width,height:Ha.assetData.height}}))}}),{width:La,height:Na}=useGetElementRealTimeTransformToolSizeData(aa),za=reactExports.useCallback(Ha=>{Ha&&(assignRef(Ha,ra),Ta?.(Ha))},[ra,Ta]),Fa=reactExports.useCallback(async Ha=>{if(!Ha||!Ha.src)return;const Ua=(await fetch(Ha.src,{method:"HEAD"})).headers.get("Content-Type");xa(updateElement({id:aa,values:{options:{mimeType:Ua}}}))},[xa,aa]);return jsxRuntimeExports.jsxs(BaseElement$1,{invisible:Aa,className:`${ea} ${_a?"dp-drop-active":""}`,ref:za,contentStyle:Oa,style:Da,onElementClick:sa,onElementDoubleClick:Ia,emptyDataSource:da&&!fa,overlayContent:Ma==="static"&&va&&$a&&ha!=="image/svg+xml"&&jsxRuntimeExports.jsx(AIButton$1,{onMouseDown:()=>wa(ua),loading:ba==="loading",tooltipContent:oa("Remove background")}),...na,children:[Ma==="rendering"&&jsxRuntimeExports.jsxs("small",{children:[oa("Loading"),"..."]}),(Ma==="source-detached"||!$a)&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:pa?jsxRuntimeExports.jsx(PlaceHolderImage,{src:FramePlaceHolder}):jsxRuntimeExports.jsx("small",{children:oa("Image source not found.")})}),jsxRuntimeExports.jsx(AIImageLoading,{enable:ba==="loading"}),$a&&["static","rendered"].includes(Ma)&&jsxRuntimeExports.jsx(ImageBox$1,{width:La,ref:ga,height:Na,crop:Ca?.cropData,src:$a,loadingType:"symbol",fitMode:"crop",onImageResize:Ea,onLoad:Fa})]})}),ImageElement=dt$1(ImageElementLogic).withConfig({displayName:"ImageElement",componentId:"sc-wc69m5-1"})(["transition:box-shadow 300ms ease-out;","{width:100%;height:100%;}small{display:block;width:250px;}&.dp-drop-active{box-shadow:0 0 0 3px #4980f5;}","{position:absolute;right:5px;top:5px;}","{width:100%;height:100%;object-fit:cover;}",""],ImageBox$1,AIButton$1,PlaceHolderImage,ea=>ea.options?.clipPath&&lt$1(["",",","{clip-path:",";}"],ImageBox$1,PlaceHolderImage,`url(#${ea.options?.clipPath})`));registerElement({type:"image",name:"Image",component:ImageElement,optionControls:imageElementOptionControls,initialStateValues:imageElementInitialState,contextMenu:imageElementContextMenu,icon:SvgImage});const capturePosterFromVideoElement=ea=>{const na=ea.videoWidth,ra=ea.videoHeight,oa=document.createElement("canvas");oa.width=na,oa.height=ra;const aa=oa.getContext("2d");if(!aa)return;aa.drawImage(ea,0,0,na,ra);const sa=oa.toDataURL("image/jpeg");return{canvas:oa,base64:sa}},cacheList={},capturePosterFromVideoSrc=ea=>new Promise(na=>{if(cacheList[ea]){na(cacheList[ea]);return}const ra=document.createElement("video");ra.src=ea,ra.preload="metadata",ra.onloadedmetadata=()=>{ra.onseeked=()=>{const oa=capturePosterFromVideoElement(ra);cacheList[ea]=oa?.base64||emptyGif,ra.oncanplaythrough=null,ra.onseeked=null,ra.remove(),na(cacheList[ea])},ra.currentTime=ra.duration*.1}}),useGetVideoStaticPreviewSrc=(ea,na="medium")=>{const[ra,oa]=reactExports.useState(ea?getVideoStaticPreviewSrc(ea,na):void 0);return reactExports.useEffect(()=>{ea&&(!ea.includes("@")||ea.split("@").length>2)?capturePosterFromVideoSrc(getVideoSrc(ea,na)).then(aa=>{oa(aa)}):ea&&oa(getVideoStaticPreviewSrc(ea,na))},[ea,na]),ra},useVideoAssetSource=(ea,na="large")=>{const ra=useGetVideoStaticPreviewSrc(ea,na),oa=useSelector(getDataURLValues);let aa;return ea&&oa[ea]?aa=oa[ea]:ea&&(aa=getVideoSrc(ea,na)),{source:aa,previewSource:ra}},videoElementLayerStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),videoElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["backgroundColor","padding","backgroundBlur"]))(elementStylesOptionControls),triggers$2=[{type:"videoPlay",label:i18next.t("Video Started")},{type:"videoEnd",label:i18next.t("Video Ended")},{type:"videoPause",label:i18next.t("Video Paused")}],videoElementActionsOptionControls=optionControlsPipe(ea=>modifyControl(ea,"elementAction",{controlProps:{triggers:[...triggersList,...triggers$2]}}))(elementActionOptionControls()),videoElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementVideoSettings,...videoElementLayerStylesOptionsControls,...elementLayoutStylesOptionControls,...videoElementStylesOptionControls,...elementMediaSettings]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...videoElementActionsOptionControls]}],videoElementInitialState={keepAspectRatio:!0,options:{muted:!0,controls:!0,loop:!0}},videoElementContextMenu=[selectElementsGroup,modifyElementsItemsGroup,lockAndUnlockItemsGroup,groupAndUngroupItemsGroup,arrangeElementsDepthItemsGroup,{id:"setMediaAsBackgroundItem",items:[{...setAsSlideBackgroundItem,allowedTier:Tiers.LEGACY_FREE}]},foregroundItemsGroup,responsiveItemsGroup],VideoElementLogic=React.forwardRef(({className:ea,...na},ra)=>{const{onClick:oa,id:aa,options:sa,styles:la}=na,{loop:ca,muted:ua,controls:da,source:pa}=sa||{},ha=useIsSelected(aa),ga=useDispatchAndToHistory(),fa={...useBorder(la?.border),...useBoxShadow(la?.boxShadow),...useCorner(la?.corner,!0),...useOpacity(la?.opacity),...useFilter(la?.filter)},ma={...useBlendingMode(la?.blendingMode),...useFlexStyles(la?.flex)},{source:va}=useVideoAssetSource(pa,"medium"),xa=useGetVideoStaticPreviewSrc(pa,"medium"),ya=reactExports.useRef(null),{setDropZoneRef:Aa,canDrop:Ca}=useAssetDropZone({canDrop(wa){return["video","photo"].includes(wa?.assetData?.type||"")},drop(wa){const ba=wa?.assetData?.type==="photo";ga(ba?replaceImageOverNonImageElement(aa,{source:wa.assetData.payload?.source||wa.assetData.id,sourceSize:{width:wa.assetData.width,height:wa.assetData.height}}):updateElement({id:aa,values:{type:ba?"image":"video",options:{source:wa.assetData.payload?.source||wa.assetData.id}}}))}});reactExports.useEffect(()=>{ya.current&&(ha?(ya.current.currentTime=0,ya.current.played||ya.current.play().catch(()=>{})):(ya.current.currentTime=0,ya.current.pause()))},[da,ha]);const Sa=wa=>{wa&&(assignRef(wa,ra),Aa?.(wa))};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Sa,style:ma,contentStyle:fa,onElementClick:oa,className:`${ea} ${Ca?"dp-drop-active":""}`,...na,children:[jsxRuntimeExports.jsx("video",{ref:ya,src:va,poster:xa,controls:da,loop:ca,muted:ua}),jsxRuntimeExports.jsx("img",{src:xa,alt:""})]})}),VideoElement=dt$1(VideoElementLogic).withConfig({displayName:"VideoElement",componentId:"sc-1no5cbb-0"})(["transition:box-shadow 300ms ease-out;img{user-select:none;pointer-events:none;width:100%;}video{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;}&.dp-drop-active{box-shadow:0 0 0 3px #4980f5;}"]);registerElement({type:"video",name:"Video",component:VideoElement,optionControls:videoElementOptionControls,initialStateValues:videoElementInitialState,contextMenu:videoElementContextMenu,icon:SvgVideo});const shapeElementStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding"]),ea=>modifyControl(ea,"backgroundColor",{label:i18next.t("Fill Color")}))(elementStylesOptionControls),shapeElementHoverStyleOptionControls=optionControlsPipe(ea=>modifyControl(ea,"hoverBackgroundColor",{label:i18next.t("Fill Color")}))(elementHoverStylesOptionControls),shapeElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...shapeElementStyleOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...shapeElementHoverStyleOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],ShapeElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa}=ea,aa={height:"100%"},sa={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding),...aa},la={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:la,contentStyle:sa,onElementClick:ra,...ea})}),ShapeElement=dt$1(ShapeElementLogic).withConfig({displayName:"ShapeElement",componentId:"sc-f3ubkm-0"})([""]);registerElement({type:"shape",name:"Shape",component:ShapeElement,optionControls:shapeElementOptionControls});const stylesSelector=getSelectedElementsValueByPathAndPrefix("styles"),stylesAction=updateSelectedElementsValueByPathAndPrefix("styles"),iconElementStyleOptionControls=optionControlsPipe(ea=>addControlByTarget(ea,[createOptionControl({id:"iconColor",control:ColorPicker$1,label:i18next.t("Icon color"),selector:stylesSelector("typography.color"),action:stylesAction("typography.color")})],"backgroundColor","before"))(elementStylesOptionControls),iconElementHoverStyleOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>modifyControl(ea,"hoverTextColor",{label:i18next.t("Icon color")}))(elementHoverStylesOptionControls),iconElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...iconElementStyleOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...iconElementHoverStyleOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],SVGContentContainer$3=dt$1.div.withConfig({displayName:"IconElement__SVGContentContainer",componentId:"sc-ygmnc6-0"})(["&,svg{width:100%;height:100%;}svg{fill:currentColor;}"]),IconElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa,id:sa,className:la}=ea,ca=useDispatchAndToHistory(),ua=aa?.content,da={height:"100%"},pa={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...useTypography(oa?.typography),...usePadding(oa?.padding),...da},ha={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)},{setDropZoneRef:ga,canDrop:fa}=useAssetDropZone({canDrop(va){return["icon"].includes(va?.assetData?.type||"")},drop(va){ca(updateElement({id:sa,values:{options:{content:va.assetData?.previewOptions?.content}}}))}}),ma=reactExports.useCallback(va=>{va&&(assignRef$1(va,na),ga?.(va))},[na,ga]);return jsxRuntimeExports.jsx(BaseElement$1,{...ea,ref:ma,style:ha,contentStyle:pa,onElementClick:ra,className:`${la} ${fa?"dp-drop-active":""}`,children:ua&&jsxRuntimeExports.jsx(SVGContentContainer$3,{dangerouslySetInnerHTML:{__html:ua}})})}),iconElement=dt$1(IconElementLogic).withConfig({displayName:"IconElement__iconElement",componentId:"sc-ygmnc6-1"})(["&.dp-drop-active{box-shadow:0 0 0 3px #4980f5;}"]);registerElement({type:"icon",name:"Icon",component:iconElement,optionControls:iconElementOptionControls,icon:SvgImage});const svgElementStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["backgroundColor","padding","corner"]))(elementStylesOptionControls),svgElementHoverStyleOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverSvgStylesOptionControls,["hoverFillColor"]),"hoverStyles",0))(elementHoverStylesOptionControls),svgElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...elementSvgStylesOptionControls,...svgElementStyleOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...svgElementHoverStyleOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],SVGContentContainer$2=dt$1.div.withConfig({displayName:"SvgElement__SVGContentContainer",componentId:"sc-6cic7w-0"})(["width:100%;height:100%;"]),SvgElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa}=ea,{content:sa}=aa||{},la={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding),...useSvg(oa?.svg)},ca={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:ca,contentStyle:la,onElementClick:ra,...ea,children:jsxRuntimeExports.jsx(SVGContentContainer$2,{dangerouslySetInnerHTML:{__html:sa}})})}),SvgElement=dt$1(SvgElementLogic).withConfig({displayName:"SvgElement",componentId:"sc-6cic7w-1"})([""]);registerElement({type:"svg",name:"SVG",component:SvgElement,optionControls:svgElementOptionControls,icon:SvgImage});const optionsSelector$B=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$B=updateSelectedElementsValueByPathAndPrefix("options"),iconOptions=[{id:"buttonOptions",label:i18next.t("Options"),border:"bottom",optionControls:[[createOptionControl({id:"showIcon",control:SwitchBox$1,controlProps:{label:i18next.t("Show Icon"),tooltip:{content:i18next.t("Enable this option to display an icon. Then you can drop icon on button from the right side panel."),options:{place:"top",id:"workspace"}}},selector:optionsSelector$B("showIcon"),action:optionsAction$B("showIcon")})],[createOptionControl({id:"iconOnly",control:SwitchBox$1,controlProps:{label:i18next.t("Icon Only")},selector:optionsSelector$B("iconOnly"),action:optionsAction$B("iconOnly"),dependency:ea=>optionsSelector$B("showIcon")(ea)})],[createOptionControl({id:"iconAlign",label:i18next.t("Icon Align"),control:Select$1,defaultValue:"left",controlProps:{options:[{value:"left",label:i18next.t("Left")},{value:"right",label:i18next.t("Right")}]},action:optionsAction$B("iconAlign"),selector:optionsSelector$B("iconAlign"),dependency:ea=>optionsSelector$B("showIcon")(ea)&&!optionsSelector$B("iconOnly")(ea),styles:{flex:.5}}),createOptionControl({id:"spaceBetweenSegments",control:Number$2,label:i18next.t("Icon Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dp-inner-content")("flex.columnGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dp-inner-content")("flex.columnGap"),controlProps:{units:"px",valueType:"number",min:0},dependency:ea=>optionsSelector$B("showIcon")(ea)&&!optionsSelector$B("iconOnly")(ea),styles:{flex:.5}})],[createOptionControl({id:"iconScale",label:i18next.t("Icon Scale"),control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"},min:0,max:300},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dp-icon-container")("transform.scale"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dp-icon-container")("transform.scale"),dependency:ea=>optionsSelector$B("showIcon")(ea)})]]}],buttonOptions$1=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementSvgStylesOptionControls,["fillColor"]),"buttonOptions",-1),ea=>modifyControl(ea,"fillColor",{controlProps:{showHex:!0,showAlpha:!1,allowedType:"solid"},label:i18next.t("Icon Color"),dependency:na=>optionsSelector$B("showIcon")(na)}))(iconOptions),buttonElementStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1))(elementStylesOptionControls),buttonElementHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverSvgStylesOptionControls,["hoverFillColor"]),"hoverStyles",1),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3),ea=>modifyControl(ea,"hoverFillColor",{controlProps:{showHex:!0,showAlpha:!1,allowedType:"solid"},label:i18next.t("Icon Color")}))(elementHoverStylesOptionControls),optionTabControls$1=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"disableOnFirst",control:SwitchBox$1,controlProps:{label:i18next.t("Disable on first {{section}}",{section:DocType.getLabel("section")})},selector:optionsSelector$B("disableOnFirst"),action:optionsAction$B("disableOnFirst"),dependency:getSelectedElementsAreOnForeground})],[createOptionControl({id:"disableOnLast",control:SwitchBox$1,controlProps:{label:i18next.t("Disable on last {{section}}",{section:DocType.getLabel("section")})},selector:optionsSelector$B("disableOnLast"),action:optionsAction$B("disableOnLast"),dependency:getSelectedElementsAreOnForeground})],[createOptionControl({id:"disableOpacity",control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"}},label:i18next.t("Disable Opacity"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dp-disabled")("opacity"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dp-disabled")("opacity"),dependency:na=>getSelectedElementsAreOnForeground(na)&&(optionsSelector$B("disableOnLast")(na)||optionsSelector$B("disableOnFirst")(na))})]],"elementForegroundFieldset",-1))(elementOptionsOptionControls()),buttonElementOptionControls$3=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...buttonOptions$1,...elementTypographyOptionControls,...buttonElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...optionTabControls$1]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...buttonElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],innerStyles$5={"dp-icon-container":{transform:{default:{scale:1}}},"dp-inner-content":{flex:{default:{columnGap:0}}},"dp-disabled":{opacity:{default:1}}},options$9={iconAlign:"left"},defaultStateValues$m={...elementDefaultCommonState,size:{default:{width:"auto",height:"auto"}},innerStyles:innerStyles$5,options:options$9},initialStateValues$m={innerStyles:innerStyles$5,options:options$9},toKebabCase=ea=>ea.replace(/[A-Z]/g,na=>`-${na.toLowerCase()}`),toCSSString=ea=>{let na="";return Object.entries(ea).forEach(([ra,oa])=>{const aa=toKebabCase(ra);na+=`${aa}:${oa};`}),na},InnerStyle=ea=>{const{style:na,className:ra,baseSelector:oa,selectorSign:aa}=ea,sa=useTypography(na?.typography),la={...useWidth(na?.width),...useHeight(na?.height),...useBorder(na?.border),...useCorner(na?.corner),...useBoxShadow(na?.boxShadow),...useOpacity(na?.opacity),...useTextShadow(na?.textShadow),...useBackgroundColor(na?.backgroundColor),...sa,...useBackgroundBlur(na?.backgroundBlur),...useFilter(na?.filter),...usePadding(na?.padding),...useFlexStyles(na?.flex),...useSvg(na?.svg),...useTransition(na?.transition),...useMargin(na?.margin),...useTransform(na?.transform)},ca={...useHover(na,!0,void 0,!0)};return jsxRuntimeExports.jsxs("style",{children:[`${oa} ${aa}${ra} { 
            ${toCSSString(la)}
         }`,`${oa} ${aa}${ra}:hover { 
            ${toCSSString(ca)}
         }`]})},InnerStyles=ea=>{const{styles:na,baseSelector:ra,selectorSign:oa="."}=ea;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Object.entries(na).map(([aa,sa])=>jsxRuntimeExports.jsx(InnerStyle,{baseSelector:ra,className:aa,style:sa,selectorSign:oa},`${ra}.${aa}`))})},useUniqueClassName=(ea="")=>`${ea}_cl_${reactExports.useMemo(()=>nanoid(6),[])}`,SVGContentContainer$1=dt$1.div.withConfig({displayName:"ButtonElement__SVGContentContainer",componentId:"sc-13zw4ak-0"})(["display:flex;align-items:center;"]),IconPlaceHolder=dt$1.div.withConfig({displayName:"ButtonElement__IconPlaceHolder",componentId:"sc-13zw4ak-1"})([""]),ButtonElementLogic=React.forwardRef((ea,na)=>{const{className:ra,onClick:oa,id:aa,options:sa,styles:la,innerStyles:ca,locked:ua=!1,parent:da}=ea,pa=useDispatchAndToHistory(),ha=useIsSelected(aa),{content:ga="",hasDynamicTag:fa,showIcon:ma,iconContent:va,iconAlign:xa,iconOnly:ya,disableOnFirst:Aa,disableOnLast:Ca}=sa||{},Sa=useSelector(getActiveSectionDataSourceType),[wa,ba]=useRenderTemplateEngine(ga,!fa,"text"),Ea=useUniqueClassName(),$a=useSelector(getSectionsList),Ma=useSelector(getActiveSectionIndex),Ia=reactExports.useMemo(()=>Aa&&Ma===0||Ca&&Ma===$a.length-1,[Ma,Aa,Ca,$a.length]),Oa=useTypography(la?.typography),Da=reactExports.useRef(null),Ta={...useBorder(la?.border),...useCorner(la?.corner),...useBoxShadow(la?.boxShadow),...useOpacity(la?.opacity),...useTextShadow(la?.textShadow),...useBackgroundColor(la?.backgroundColor),...Oa,...useBackgroundBlur(la?.backgroundBlur),...useFilter(la?.filter),...usePadding(la?.padding),...useSvg(la?.svg)},_a={...useBlendingMode(la?.blendingMode),...useFlexStyles(la?.flex)};useScaleFontSize(aa,Da,"styles.typography.$bp",".dp-inner-content",!0);const La=reactExports.useCallback(Wa=>{pa(updateElement({id:aa,values:{options:{content:Wa}}}))},[pa,aa]),{isActive:Na,...za}=useActiveOnClick(aa,!ua,ha,void 0,{offAbles:["draggable"]},defaultTransformToolConfig);let Fa="";Fa=ba==="rendering"?"...":wa,useRemoveOnEmpty(aa,da,ha,ga||va);const{setDropZoneRef:Ha,canDrop:Va}=useAssetDropZone({canDrop(Wa){return["icon"].includes(Wa?.assetData?.type||"")},drop(Wa){pa(updateElement({id:aa,values:{options:{iconContent:Wa.assetData?.previewOptions?.content}}}))}}),Ua=reactExports.useCallback(Wa=>{Wa&&(assignRef$1(Wa,na),Da.current=Wa,Ha?.(Wa))},[na,Ha]),Qa=ma&&(va?jsxRuntimeExports.jsx(SVGContentContainer$1,{className:"dp-icon-container",dangerouslySetInnerHTML:{__html:va}}):jsxRuntimeExports.jsx(IconPlaceHolder,{className:"dp-icon-container"}));return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Ua,style:_a,contentStyle:Ta,onElementClick:oa,enableDnd:!Na,emptyDataSource:fa&&!Sa,...ea,...za,className:`${ra} ${Va?"dp-drop-active":""} ${Ea} ${xa==="right"?"dp-icon-right":""}`,contentClassName:Ia?"dp-disabled":"",children:[ca&&jsxRuntimeExports.jsx(InnerStyles,{styles:ca,baseSelector:`.${Ea}`}),jsxRuntimeExports.jsxs("div",{className:"dp-inner-content",children:[ma&&Qa,!ya&&jsxRuntimeExports.jsx(EditableText$1,{renderValue:Fa,value:ga,elementTag:"span",isEditable:Na&&!ua,onChange:Wa=>{La(Wa)}})]})]})}),ButtonElement=dt$1(ButtonElementLogic).withConfig({displayName:"ButtonElement",componentId:"sc-13zw4ak-2"})(["&.dp-drop-active{","{border:1px dashed #6fd95d;}}",",","{display:inline-block;vertical-align:middle;}","{display:inline-block;width:24px;height:24px;border:1px dashed currentColor;line-height:100%;vertical-align:middle;}","{line-height:0;}.dp-inner-content{display:inline-flex;align-items:center;height:100%;}&.dp-icon-right .dp-inner-content{flex-direction:row-reverse;}"],IconPlaceHolder,EditableText$1,SVGContentContainer$1,IconPlaceHolder,SVGContentContainer$1);registerElement({type:"button",name:"Button",component:ButtonElement,optionControls:buttonElementOptionControls$3,initialStateValues:initialStateValues$m,defaultStateValues:defaultStateValues$m,icon:SvgButton});const defaultColors$1y={empty:{background:"#070707",color:"#AAAAAA"}},colors$1y={dark:defaultColors$1y},defaultSizing$1j={},sizes$1y={default:defaultSizing$1j},scheme$1a=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1y,sizes:sizes$1y},Symbol.toStringTag,{value:"Module"})),Play="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='89'%20height='89'%20viewBox='0%200%2089%2089'%3e%3cdefs%3e%3cstyle%3e.a{fill:%234980f5;}.b{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-992%20-482)'%3e%3ccircle%20class='a'%20cx='44.5'%20cy='44.5'%20r='44.5'%20transform='translate(992%20482)'/%3e%3cpath%20class='b'%20d='M15.729.935a1,1,0,0,1,1.543,0L31.65,18.364A1,1,0,0,1,30.879,20H2.121a1,1,0,0,1-.771-1.636Z'%20transform='translate(1051%20510)%20rotate(90)'/%3e%3c/g%3e%3c/svg%3e",Youtube="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='263.422'%20height='58.696'%20viewBox='0%200%20263.422%2058.696'%3e%3cdefs%3e%3cstyle%3e.a{fill:red;}.b,.c{fill:%23fff;}.c{stroke:rgba(0,0,0,0);stroke-miterlimit:10;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-84.55%20-85.039)'%3e%3cg%20transform='translate(84.55%2085.039)'%3e%3cpath%20class='a'%20d='M166.649,94.2a10.5,10.5,0,0,0-7.414-7.413c-6.539-1.752-32.76-1.752-32.76-1.752s-26.221,0-32.76,1.752A10.5,10.5,0,0,0,86.3,94.2c-1.752,6.539-1.752,20.183-1.752,20.183s0,13.644,1.752,20.183a10.5,10.5,0,0,0,7.414,7.413c6.539,1.752,32.76,1.752,32.76,1.752s26.221,0,32.76-1.752a10.5,10.5,0,0,0,7.414-7.413c1.752-6.539,1.752-20.183,1.752-20.183S168.4,100.744,166.649,94.2Z'%20transform='translate(-84.55%20-85.039)'/%3e%3cpath%20class='b'%20d='M133.144,134.492l21.784-12.577-21.784-12.578Z'%20transform='translate(-99.603%20-92.566)'/%3e%3c/g%3e%3cpath%20class='c'%20d='M96.357,50.368q-1.737-2.4-1.737-7.493V15.408h8.273V42.394a8.193,8.193,0,0,0,.54,3.507,1.864,1.864,0,0,0,1.8,1.051,3.676,3.676,0,0,0,2.068-.66,4.083,4.083,0,0,0,1.468-1.681v-29.2h8.276V52.168H110.57l-.72-4.5h-.182q-2.639,5.1-7.915,5.1A6.221,6.221,0,0,1,96.357,50.368Zm-42.446,0q-1.737-2.4-1.737-7.493V15.408h8.273V42.394a8.193,8.193,0,0,0,.54,3.507,1.866,1.866,0,0,0,1.8,1.051,3.678,3.678,0,0,0,2.068-.66,4.083,4.083,0,0,0,1.468-1.681v-29.2H74.6V52.168H68.124l-.72-4.5h-.182q-2.639,5.1-7.915,5.1A6.222,6.222,0,0,1,53.911,50.368Zm-24.351.719a9.13,9.13,0,0,1-3.536-5.217,34.1,34.1,0,0,1-1.051-9.413V31.122a30.906,30.906,0,0,1,1.2-9.535,9.573,9.573,0,0,1,3.749-5.247,12.13,12.13,0,0,1,6.686-1.651,11.4,11.4,0,0,1,6.535,1.681,9.627,9.627,0,0,1,3.6,5.247,32.132,32.132,0,0,1,1.14,9.506v5.336A32.727,32.727,0,0,1,46.771,45.9a9.28,9.28,0,0,1-3.6,5.22,12.106,12.106,0,0,1-6.745,1.647A12.142,12.142,0,0,1,29.56,51.087Zm4.5-28.871A17.755,17.755,0,0,0,33.369,28V39.454a18.714,18.714,0,0,0,.659,5.88,2.415,2.415,0,0,0,2.4,1.8,2.465,2.465,0,0,0,2.429-1.8,17.979,17.979,0,0,0,.69-5.88V28a17.745,17.745,0,0,0-.69-5.787,2.47,2.47,0,0,0-2.429-1.83A2.44,2.44,0,0,0,34.057,22.216ZM151.285,48.9q-2.459-3.834-2.459-11.872V30.607q0-8.272,2.549-12.08t8.723-3.808a11.545,11.545,0,0,1,6.54,1.557,8.394,8.394,0,0,1,3.208,4.859,35.156,35.156,0,0,1,.928,9.114v6.294H156.923V38.4a48.619,48.619,0,0,0,.209,5.306A5.01,5.01,0,0,0,158,46.287a2.472,2.472,0,0,0,2.039.812,2.563,2.563,0,0,0,2.549-1.442,12.537,12.537,0,0,0,.748-4.8l7.137.421a11.108,11.108,0,0,1,.059,1.319q0,5.1-2.787,7.613t-7.885,2.519Q153.744,52.734,151.285,48.9Zm6.686-27.82a5.01,5.01,0,0,0-.839,2.545,49.487,49.487,0,0,0-.209,5.37v2.638h6.056V28.99a45.589,45.589,0,0,0-.238-5.37,5.127,5.127,0,0,0-.873-2.579,2.4,2.4,0,0,0-1.947-.749A2.352,2.352,0,0,0,157.971,21.076Zm-25.2,30.551a7,7,0,0,1-2.879-2.94h-.18l-.838,3.48h-6.838V0h7.974V19.365h.064a8.771,8.771,0,0,1,3.056-3.387,7.674,7.674,0,0,1,4.259-1.289A6.529,6.529,0,0,1,142,16.25a9.465,9.465,0,0,1,2.429,5.034,48.343,48.343,0,0,1,.75,9.655v5.817q0,8.216-1.979,12.084a6.518,6.518,0,0,1-6.178,3.868A8.532,8.532,0,0,1,132.77,51.627Zm-1.318-30.1a5.221,5.221,0,0,0-1.443,2.459V44.853a3.594,3.594,0,0,0,1.413,1.438,3.786,3.786,0,0,0,1.889.481,2.562,2.562,0,0,0,2.1-.958,6.852,6.852,0,0,0,1.111-3.238,47.312,47.312,0,0,0,.328-6.3V31.543a62.353,62.353,0,0,0-.268-6.655,7.647,7.647,0,0,0-.961-3.331,2.236,2.236,0,0,0-1.949-.987A3.179,3.179,0,0,0,131.452,21.527ZM80.774,52.168V8.514H72.562V1.859H97.088V8.514H88.871V52.168Zm-71.362,0V35.858L0,1.856H8.212l3.3,15.412q1.256,5.7,1.86,9.714h.238q.419-2.879,1.859-9.655L18.885,1.856H27.1l-9.536,34v16.31Z'%20transform='translate(176.699%2087.349)'/%3e%3c/g%3e%3c/svg%3e",Vimeo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='252.475'%20height='71.38'%20viewBox='0%200%20252.475%2071.38'%3e%3cdefs%3e%3cstyle%3e.a{fill:%2300adef;}%3c/style%3e%3c/defs%3e%3cg%20transform='translate(-227.009%20-243.24)'%3e%3cpath%20class='a'%20d='M283.451,327.434q-.378,8.249-11.516,22.585-11.517,14.973-19.487,14.974-4.936,0-8.352-9.12l-4.557-16.719q-2.537-9.116-5.441-9.119-.634,0-4.432,2.661l-2.657-3.423q4.18-3.674,8.241-7.352,5.575-4.819,8.367-5.074,6.592-.634,8.115,9.015,1.645,10.41,2.282,12.947,1.9,8.637,4.184,8.634,1.773,0,5.325-5.6t3.8-8.53q.506-4.836-3.8-4.84a10.568,10.568,0,0,0-4.18.926q4.163-13.639,15.9-13.258Q283.951,316.394,283.451,327.434Z'%20transform='translate(0%20-50.609)'/%3e%3cpath%20class='a'%20d='M436.684,294.637A42.731,42.731,0,0,1,426.92,306.8q-8.5,7.348-16.99,7.348a7.362,7.362,0,0,1-6.025-2.535,9.529,9.529,0,0,1-1.964-6.588q.122-4.179,2.6-12.925t2.476-9.378q0-3.291-2.282-3.294-.761,0-4.313,2.661l-2.916-3.424q4.057-3.674,8.115-7.351,5.453-4.819,8.119-5.074,4.18-.378,6.147,2.464a10.61,10.61,0,0,1,1.46,7.388q-1.651,7.709-3.554,19.579-.128,5.436,3.932,5.432,1.773,0,6.34-3.753a52.955,52.955,0,0,0,6.212-5.88Zm-11.031-45.091a8.936,8.936,0,0,1-3.172,6.058,11.337,11.337,0,0,1-8.115,3.28q-7.226,0-6.974-6.307.122-3.279,3.865-6.31a12.9,12.9,0,0,1,8.308-3.026A5.608,5.608,0,0,1,424,245.323,5.94,5.94,0,0,1,425.653,249.546Z'%20transform='translate(-118.381%200)'/%3e%3cpath%20class='a'%20d='M571.016,346.845a42.727,42.727,0,0,1-9.764,12.161q-8.5,7.348-16.99,7.348-8.249,0-7.99-9.123a45.925,45.925,0,0,1,1.582-9.756,45.822,45.822,0,0,0,1.586-8.871q.128-4.814-2.927-4.817-3.307,0-7.885,7.862a35.056,35.056,0,0,0-5.218,15.975q-.256,5.458,1.067,8.371-8.849.256-12.388-2.916-3.168-2.79-2.909-9.256a34.181,34.181,0,0,1,1.245-8.115,32.542,32.542,0,0,0,1.245-7.23q.256-4.69-3.427-4.691-3.179,0-6.859,7.229a36.834,36.834,0,0,0-4.062,15.089q-.255,7.1.908,9.89-8.7.256-12.362-3.668-3.034-3.284-2.776-9.986a71.547,71.547,0,0,1,1.164-9.168,72.123,72.123,0,0,0,1.168-9.167q.25-2.273-1.141-2.275-.762,0-4.313,2.565l-3.042-3.424q.633-.5,7.989-7.352,5.324-4.941,7.225-5.069a5.6,5.6,0,0,1,5.325,2.724,11.982,11.982,0,0,1,2.031,6.911,11.228,11.228,0,0,1-.252,2.409,23.34,23.34,0,0,1,4.439-5.074,22.551,22.551,0,0,1,13.059-5.706q6.214-.505,8.878,2.916,2.151,2.79,2.027,7.989c.593-.5,1.227-1.056,1.9-1.649a33.667,33.667,0,0,1,5.7-5.451,18.818,18.818,0,0,1,9.764-3.806q6.086-.505,8.749,2.905,2.278,2.779,2.031,7.956a58.525,58.525,0,0,1-1.712,10.3,65.927,65.927,0,0,0-1.586,7.767,6.811,6.811,0,0,0,.508,3.665c.423.674,1.434,1.009,3.043,1.009q1.773,0,6.34-3.753a52.982,52.982,0,0,0,6.214-5.881Z'%20transform='translate(-173.529%20-52.208)'/%3e%3cpath%20class='a'%20d='M805.19,347.837q-3.68,6.081-14.455,12.154-13.44,7.726-27.261,7.722-10.271,0-14.711-6.844a18.771,18.771,0,0,1-3.042-11.157q.122-10.266,9.13-19.524,9.889-10.138,23.33-10.142,12.428,0,13.188,10.12.506,6.447-7.1,13.281-8.121,7.465-20.417,9.486a7.881,7.881,0,0,0,6.847,3.161q9.127,0,19.909-4.643a53.005,53.005,0,0,0,12.173-6.777ZM776.406,334.6q.122-3.4-2.787-3.406-3.8,0-7.722,5.236t-4.05,10.026a6.978,6.978,0,0,0,0,1.642,28.536,28.536,0,0,0,10.76-6.937Q776.276,337.124,776.406,334.6Z'%20transform='translate(-360.157%20-53.33)'/%3e%3cpath%20class='a'%20d='M943.344,337.721a30.151,30.151,0,0,1-8.622,20.132,26.764,26.764,0,0,1-20.162,8.482q-10.015,0-15.214-6.459a20.62,20.62,0,0,1-4.183-12.023q-.639-10.889,7.862-20.006a29.583,29.583,0,0,1,22.948-10.127q8.871,0,13.439,5.951Q943.726,329.117,943.344,337.721Zm-14.329-.478a15.951,15.951,0,0,0-.953-6.288q-1.079-2.857-3.105-2.861-6.469,0-10.649,6.989a24.542,24.542,0,0,0-3.806,12.194,10.886,10.886,0,0,0,1.141,5.591q1.39,2.8,3.932,2.794,5.7,0,9.764-6.733A24.032,24.032,0,0,0,929.015,337.243Z'%20transform='translate(-463.891%20-51.715)'/%3e%3c/g%3e%3c/svg%3e",Info$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3e%3cdefs%3e%3cstyle%3e.a{fill:%234980f5;}.b{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ccircle%20class='a'%20cx='7'%20cy='7'%20r='7'/%3e%3crect%20class='b'%20width='2'%20height='5'%20transform='translate(6%206)'/%3e%3crect%20class='b'%20width='2'%20height='1'%20transform='translate(5%206)'/%3e%3crect%20class='b'%20width='2'%20height='2'%20rx='1'%20transform='translate(6%203)'/%3e%3c/svg%3e",iconsMap=new Map;iconsMap.set("youtube",{icon:jsxRuntimeExports.jsx("img",{src:Youtube,alt:"Youtube Logo"}),text:i18next.t("You need to add a YouTube video link through the right panel.")});iconsMap.set("vimeo",{icon:jsxRuntimeExports.jsx("img",{src:Vimeo,alt:"Vimeo Logo"}),text:i18next.t("You need to add a Vimeo video link through the right panel.")});iconsMap.set("selfHost",{icon:jsxRuntimeExports.jsx("img",{src:Play,alt:"Self Hosted Logo"}),text:i18next.t("You need to add a video link through the right panel.")});const EmptyEmbedVideo=ea=>{const{className:na,type:ra}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[iconsMap.get(ra).icon,jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx("img",{src:Info$1,alt:"Info"}),iconsMap.get(ra).text]})]})},theme$2T=withTheme(scheme$1a),EmptyEmbedVideo$1=dt$1(EmptyEmbedVideo).withConfig({displayName:"EmptyEmbedVideo",componentId:"sc-1cydwn-0"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;pointer-events:none;> span{position:absolute;bottom:30px;font-weight:500;> img{display:inline-block;margin-right:5px;}}",""],theme$2T.colors(ea=>lt$1(["background:",";color:",";"],ea.empty.background,ea.empty.color)));var loadScript,hasRequiredLoadScript;function requireLoadScript(){if(hasRequiredLoadScript)return loadScript;hasRequiredLoadScript=1,loadScript=function(aa,sa,la){var ca=document.head||document.getElementsByTagName("head")[0],ua=document.createElement("script");typeof sa=="function"&&(la=sa,sa={}),sa=sa||{},la=la||function(){},ua.type=sa.type||"text/javascript",ua.charset=sa.charset||"utf8",ua.async="async"in sa?!!sa.async:!0,ua.src=aa,sa.attrs&&ea(ua,sa.attrs),sa.text&&(ua.text=""+sa.text);var da="onload"in ua?na:ra;da(ua,la),ua.onload||na(ua,la),ca.appendChild(ua)};function ea(oa,aa){for(var sa in aa)oa.setAttribute(sa,aa[sa])}function na(oa,aa){oa.onload=function(){this.onerror=this.onload=null,aa(null,oa)},oa.onerror=function(){this.onerror=this.onload=null,aa(new Error("Failed to load "+this.src),oa)}}function ra(oa,aa){oa.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,aa(null,oa))}}return loadScript}var utils$2,hasRequiredUtils$2;function requireUtils$2(){if(hasRequiredUtils$2)return utils$2;hasRequiredUtils$2=1;var ea=Object.create,na=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,aa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,la=(Ha,Va)=>{for(var Ua in Va)na(Ha,Ua,{get:Va[Ua],enumerable:!0})},ca=(Ha,Va,Ua,Qa)=>{if(Va&&typeof Va=="object"||typeof Va=="function")for(let Wa of oa(Va))!sa.call(Ha,Wa)&&Wa!==Ua&&na(Ha,Wa,{get:()=>Va[Wa],enumerable:!(Qa=ra(Va,Wa))||Qa.enumerable});return Ha},ua=(Ha,Va,Ua)=>(Ua=Ha!=null?ea(aa(Ha)):{},ca(!Ha||!Ha.__esModule?na(Ua,"default",{value:Ha,enumerable:!0}):Ua,Ha)),da=Ha=>ca(na({},"__esModule",{value:!0}),Ha),pa={};la(pa,{callPlayer:()=>_a,getConfig:()=>Da,getSDK:()=>Oa,isBlobUrl:()=>Na,isMediaStream:()=>La,lazy:()=>ma,omit:()=>Ta,parseEndTime:()=>ba,parseStartTime:()=>wa,queryString:()=>$a,randomString:()=>Ea,supportsWebKitPresentationMode:()=>za}),utils$2=da(pa);var ha=ua(requireReact()),ga=ua(requireLoadScript()),fa=ua(requireCjs());const ma=Ha=>ha.default.lazy(async()=>{const Va=await Ha();return typeof Va.default=="function"?Va:Va.default}),va=/[?&#](?:start|t)=([0-9hms]+)/,xa=/[?&#]end=([0-9hms]+)/,ya=/(\d+)(h|m|s)/g,Aa=/^\d+$/;function Ca(Ha,Va){if(Ha instanceof Array)return;const Ua=Ha.match(Va);if(Ua){const Qa=Ua[1];if(Qa.match(ya))return Sa(Qa);if(Aa.test(Qa))return parseInt(Qa)}}function Sa(Ha){let Va=0,Ua=ya.exec(Ha);for(;Ua!==null;){const[,Qa,Wa]=Ua;Wa==="h"&&(Va+=parseInt(Qa,10)*60*60),Wa==="m"&&(Va+=parseInt(Qa,10)*60),Wa==="s"&&(Va+=parseInt(Qa,10)),Ua=ya.exec(Ha)}return Va}function wa(Ha){return Ca(Ha,va)}function ba(Ha){return Ca(Ha,xa)}function Ea(){return Math.random().toString(36).substr(2,5)}function $a(Ha){return Object.keys(Ha).map(Va=>`${Va}=${Ha[Va]}`).join("&")}function Ma(Ha){return window[Ha]?window[Ha]:window.exports&&window.exports[Ha]?window.exports[Ha]:window.module&&window.module.exports&&window.module.exports[Ha]?window.module.exports[Ha]:null}const Ia={},Oa=function(Va,Ua,Qa=null,Wa=()=>!0,Za=ga.default){const Xa=Ma(Ua);return Xa&&Wa(Xa)?Promise.resolve(Xa):new Promise((tl,il)=>{if(Ia[Va]){Ia[Va].push({resolve:tl,reject:il});return}Ia[Va]=[{resolve:tl,reject:il}];const Ja=nl=>{Ia[Va].forEach(Ya=>Ya.resolve(nl))};if(Qa){const nl=window[Qa];window[Qa]=function(){nl&&nl(),Ja(Ma(Ua))}}Za(Va,nl=>{nl?(Ia[Va].forEach(Ya=>Ya.reject(nl)),Ia[Va]=null):Qa||Ja(Ma(Ua))})})};function Da(Ha,Va){return(0,fa.default)(Va.config,Ha.config)}function Ta(Ha,...Va){const Ua=[].concat(...Va),Qa={},Wa=Object.keys(Ha);for(const Za of Wa)Ua.indexOf(Za)===-1&&(Qa[Za]=Ha[Za]);return Qa}function _a(Ha,...Va){if(!this.player||!this.player[Ha]){let Ua=`ReactPlayer: ${this.constructor.displayName} player could not call %c${Ha}%c – `;return this.player?this.player[Ha]||(Ua+="The method was not available"):Ua+="The player was not available",console.warn(Ua,"font-weight: bold",""),null}return this.player[Ha](...Va)}function La(Ha){return typeof window<"u"&&typeof window.MediaStream<"u"&&Ha instanceof window.MediaStream}function Na(Ha){return/^blob:/.test(Ha)}function za(Ha=document.createElement("video")){const Va=/iPhone|iPod/.test(navigator.userAgent)===!1;return Ha.webkitSupportsPresentationMode&&typeof Ha.webkitSetPresentationMode=="function"&&Va}function Fa(Ha){return Ha}return utils$2}var patterns,hasRequiredPatterns;function requirePatterns(){if(hasRequiredPatterns)return patterns;hasRequiredPatterns=1;var ea=Object.defineProperty,na=Object.getOwnPropertyDescriptor,ra=Object.getOwnPropertyNames,oa=Object.prototype.hasOwnProperty,aa=(_a,La)=>{for(var Na in La)ea(_a,Na,{get:La[Na],enumerable:!0})},sa=(_a,La,Na,za)=>{if(La&&typeof La=="object"||typeof La=="function")for(let Fa of ra(La))!oa.call(_a,Fa)&&Fa!==Na&&ea(_a,Fa,{get:()=>La[Fa],enumerable:!(za=na(La,Fa))||za.enumerable});return _a},la=_a=>sa(ea({},"__esModule",{value:!0}),_a),ca={};aa(ca,{AUDIO_EXTENSIONS:()=>Ea,DASH_EXTENSIONS:()=>Ia,FLV_EXTENSIONS:()=>Oa,HLS_EXTENSIONS:()=>Ma,MATCH_URL_DAILYMOTION:()=>Ca,MATCH_URL_FACEBOOK:()=>fa,MATCH_URL_FACEBOOK_WATCH:()=>ma,MATCH_URL_KALTURA:()=>ba,MATCH_URL_MIXCLOUD:()=>Sa,MATCH_URL_MUX:()=>ga,MATCH_URL_SOUNDCLOUD:()=>pa,MATCH_URL_STREAMABLE:()=>va,MATCH_URL_TWITCH_CHANNEL:()=>Aa,MATCH_URL_TWITCH_VIDEO:()=>ya,MATCH_URL_VIDYARD:()=>wa,MATCH_URL_VIMEO:()=>ha,MATCH_URL_WISTIA:()=>xa,MATCH_URL_YOUTUBE:()=>da,VIDEO_EXTENSIONS:()=>$a,canPlay:()=>Ta}),patterns=la(ca);var ua=requireUtils$2();const da=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,pa=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,ha=/vimeo\.com\/(?!progressive_redirect).+/,ga=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,fa=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,ma=/^https?:\/\/fb\.watch\/.+$/,va=/streamable\.com\/([a-z0-9]+)$/,xa=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ya=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Aa=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Ca=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Sa=/mixcloud\.com\/([^/]+\/[^/]+)/,wa=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,ba=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Ea=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,$a=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Ma=/\.(m3u8)($|\?)/i,Ia=/\.(mpd)($|\?)/i,Oa=/\.(flv)($|\?)/i,Da=_a=>{if(_a instanceof Array){for(const La of _a)if(typeof La=="string"&&Da(La)||Da(La.src))return!0;return!1}return(0,ua.isMediaStream)(_a)||(0,ua.isBlobUrl)(_a)?!0:Ea.test(_a)||$a.test(_a)||Ma.test(_a)||Ia.test(_a)||Oa.test(_a)},Ta={youtube:_a=>_a instanceof Array?_a.every(La=>da.test(La)):da.test(_a),soundcloud:_a=>pa.test(_a)&&!Ea.test(_a),vimeo:_a=>ha.test(_a)&&!$a.test(_a)&&!Ma.test(_a),mux:_a=>ga.test(_a),facebook:_a=>fa.test(_a)||ma.test(_a),streamable:_a=>va.test(_a),wistia:_a=>xa.test(_a),twitch:_a=>ya.test(_a)||Aa.test(_a),dailymotion:_a=>Ca.test(_a),mixcloud:_a=>Sa.test(_a),vidyard:_a=>wa.test(_a),kaltura:_a=>ba.test(_a),file:Da};return patterns}var players,hasRequiredPlayers;function requirePlayers(){if(hasRequiredPlayers)return players;hasRequiredPlayers=1;var ea=Object.defineProperty,na=Object.getOwnPropertyDescriptor,ra=Object.getOwnPropertyNames,oa=Object.prototype.hasOwnProperty,aa=(ha,ga)=>{for(var fa in ga)ea(ha,fa,{get:ga[fa],enumerable:!0})},sa=(ha,ga,fa,ma)=>{if(ga&&typeof ga=="object"||typeof ga=="function")for(let va of ra(ga))!oa.call(ha,va)&&va!==fa&&ea(ha,va,{get:()=>ga[va],enumerable:!(ma=na(ga,va))||ma.enumerable});return ha},la=ha=>sa(ea({},"__esModule",{value:!0}),ha),ca={};aa(ca,{default:()=>pa}),players=la(ca);var ua=requireUtils$2(),da=requirePatterns(),pa=[{key:"youtube",name:"YouTube",canPlay:da.canPlay.youtube,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/YouTube-DEjSgEzs.js").then(ha=>ha.Y),[],import.meta.url))},{key:"soundcloud",name:"SoundCloud",canPlay:da.canPlay.soundcloud,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/SoundCloud-BpE6v_1l.js").then(ha=>ha.S),[],import.meta.url))},{key:"vimeo",name:"Vimeo",canPlay:da.canPlay.vimeo,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Vimeo-B1CIJVhX.js").then(ha=>ha.V),[],import.meta.url))},{key:"mux",name:"Mux",canPlay:da.canPlay.mux,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Mux-DwHP7BO4.js").then(ha=>ha.M),[],import.meta.url))},{key:"facebook",name:"Facebook",canPlay:da.canPlay.facebook,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Facebook-CQEVrXCe.js").then(ha=>ha.F),[],import.meta.url))},{key:"streamable",name:"Streamable",canPlay:da.canPlay.streamable,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Streamable-CvxUGSGL.js").then(ha=>ha.S),[],import.meta.url))},{key:"wistia",name:"Wistia",canPlay:da.canPlay.wistia,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Wistia-w33Qv7cS.js").then(ha=>ha.W),[],import.meta.url))},{key:"twitch",name:"Twitch",canPlay:da.canPlay.twitch,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Twitch-CazIrgjM.js").then(ha=>ha.T),[],import.meta.url))},{key:"dailymotion",name:"DailyMotion",canPlay:da.canPlay.dailymotion,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/DailyMotion-RLlnj2Di.js").then(ha=>ha.D),[],import.meta.url))},{key:"mixcloud",name:"Mixcloud",canPlay:da.canPlay.mixcloud,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Mixcloud-YFIIaf9V.js").then(ha=>ha.M),[],import.meta.url))},{key:"vidyard",name:"Vidyard",canPlay:da.canPlay.vidyard,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Vidyard-B0j8PJNw.js").then(ha=>ha.V),[],import.meta.url))},{key:"kaltura",name:"Kaltura",canPlay:da.canPlay.kaltura,lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/Kaltura-D4kzpDX8.js").then(ha=>ha.K),[],import.meta.url))},{key:"file",name:"FilePlayer",canPlay:da.canPlay.file,canEnablePIP:ha=>da.canPlay.file(ha)&&(document.pictureInPictureEnabled||(0,ua.supportsWebKitPresentationMode)())&&!da.AUDIO_EXTENSIONS.test(ha),lazyPlayer:(0,ua.lazy)(()=>__vitePreload(()=>import("./assets/FilePlayer-B0VVmnMh.js").then(ha=>ha.F),[],import.meta.url))}];return players}var safeIsNaN=Number.isNaN||function(na){return typeof na=="number"&&na!==na};function isEqual(ea,na){return!!(ea===na||safeIsNaN(ea)&&safeIsNaN(na))}function areInputsEqual(ea,na){if(ea.length!==na.length)return!1;for(var ra=0;ra<ea.length;ra++)if(!isEqual(ea[ra],na[ra]))return!1;return!0}function memoizeOne(ea,na){na===void 0&&(na=areInputsEqual);var ra,oa=[],aa,sa=!1;function la(){for(var ca=[],ua=0;ua<arguments.length;ua++)ca[ua]=arguments[ua];return sa&&ra===this&&na(ca,oa)||(aa=ea.apply(this,ca),sa=!0,ra=this,oa=ca),aa}return la}const memoizeOne_esm=Object.freeze(Object.defineProperty({__proto__:null,default:memoizeOne},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(memoizeOne_esm);var reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var ea=typeof Element<"u",na=typeof Map=="function",ra=typeof Set=="function",oa=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function aa(sa,la){if(sa===la)return!0;if(sa&&la&&typeof sa=="object"&&typeof la=="object"){if(sa.constructor!==la.constructor)return!1;var ca,ua,da;if(Array.isArray(sa)){if(ca=sa.length,ca!=la.length)return!1;for(ua=ca;ua--!==0;)if(!aa(sa[ua],la[ua]))return!1;return!0}var pa;if(na&&sa instanceof Map&&la instanceof Map){if(sa.size!==la.size)return!1;for(pa=sa.entries();!(ua=pa.next()).done;)if(!la.has(ua.value[0]))return!1;for(pa=sa.entries();!(ua=pa.next()).done;)if(!aa(ua.value[1],la.get(ua.value[0])))return!1;return!0}if(ra&&sa instanceof Set&&la instanceof Set){if(sa.size!==la.size)return!1;for(pa=sa.entries();!(ua=pa.next()).done;)if(!la.has(ua.value[0]))return!1;return!0}if(oa&&ArrayBuffer.isView(sa)&&ArrayBuffer.isView(la)){if(ca=sa.length,ca!=la.length)return!1;for(ua=ca;ua--!==0;)if(sa[ua]!==la[ua])return!1;return!0}if(sa.constructor===RegExp)return sa.source===la.source&&sa.flags===la.flags;if(sa.valueOf!==Object.prototype.valueOf&&typeof sa.valueOf=="function"&&typeof la.valueOf=="function")return sa.valueOf()===la.valueOf();if(sa.toString!==Object.prototype.toString&&typeof sa.toString=="function"&&typeof la.toString=="function")return sa.toString()===la.toString();if(da=Object.keys(sa),ca=da.length,ca!==Object.keys(la).length)return!1;for(ua=ca;ua--!==0;)if(!Object.prototype.hasOwnProperty.call(la,da[ua]))return!1;if(ea&&sa instanceof Element)return!1;for(ua=ca;ua--!==0;)if(!((da[ua]==="_owner"||da[ua]==="__v"||da[ua]==="__o")&&sa.$$typeof)&&!aa(sa[da[ua]],la[da[ua]]))return!1;return!0}return sa!==sa&&la!==la}return reactFastCompare=function(la,ca){try{return aa(la,ca)}catch(ua){if((ua.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw ua}},reactFastCompare}var props,hasRequiredProps;function requireProps(){if(hasRequiredProps)return props;hasRequiredProps=1;var ea=Object.create,na=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,aa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,la=($a,Ma)=>{for(var Ia in Ma)na($a,Ia,{get:Ma[Ia],enumerable:!0})},ca=($a,Ma,Ia,Oa)=>{if(Ma&&typeof Ma=="object"||typeof Ma=="function")for(let Da of oa(Ma))!sa.call($a,Da)&&Da!==Ia&&na($a,Da,{get:()=>Ma[Da],enumerable:!(Oa=ra(Ma,Da))||Oa.enumerable});return $a},ua=($a,Ma,Ia)=>(Ia=$a!=null?ea(aa($a)):{},ca(!$a||!$a.__esModule?na(Ia,"default",{value:$a,enumerable:!0}):Ia,$a)),da=$a=>ca(na({},"__esModule",{value:!0}),$a),pa={};la(pa,{defaultProps:()=>Ea,propTypes:()=>wa}),props=da(pa);var ha=ua(requirePropTypes());const{string:ga,bool:fa,number:ma,array:va,oneOfType:xa,shape:ya,object:Aa,func:Ca,node:Sa}=ha.default,wa={url:xa([ga,va,Aa]),playing:fa,loop:fa,controls:fa,volume:ma,muted:fa,playbackRate:ma,width:xa([ga,ma]),height:xa([ga,ma]),style:Aa,progressInterval:ma,playsinline:fa,pip:fa,stopOnUnmount:fa,light:xa([fa,ga,Aa]),playIcon:Sa,previewTabIndex:ma,previewAriaLabel:ga,fallback:Sa,oEmbedUrl:ga,wrapper:xa([ga,Ca,ya({render:Ca.isRequired})]),config:ya({soundcloud:ya({options:Aa}),youtube:ya({playerVars:Aa,embedOptions:Aa,onUnstarted:Ca}),facebook:ya({appId:ga,version:ga,playerId:ga,attributes:Aa}),dailymotion:ya({params:Aa}),vimeo:ya({playerOptions:Aa,title:ga}),mux:ya({attributes:Aa,version:ga}),file:ya({attributes:Aa,tracks:va,forceVideo:fa,forceAudio:fa,forceHLS:fa,forceSafariHLS:fa,forceDisableHls:fa,forceDASH:fa,forceFLV:fa,hlsOptions:Aa,hlsVersion:ga,dashVersion:ga,flvVersion:ga}),wistia:ya({options:Aa,playerId:ga,customControls:va}),mixcloud:ya({options:Aa}),twitch:ya({options:Aa,playerId:ga}),vidyard:ya({options:Aa})}),onReady:Ca,onStart:Ca,onPlay:Ca,onPause:Ca,onBuffer:Ca,onBufferEnd:Ca,onEnded:Ca,onError:Ca,onDuration:Ca,onSeek:Ca,onPlaybackRateChange:Ca,onPlaybackQualityChange:Ca,onProgress:Ca,onClickPreview:Ca,onEnablePIP:Ca,onDisablePIP:Ca},ba=()=>{},Ea={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:ba},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:ba,onStart:ba,onPlay:ba,onPause:ba,onBuffer:ba,onBufferEnd:ba,onEnded:ba,onError:ba,onDuration:ba,onSeek:ba,onPlaybackRateChange:ba,onPlaybackQualityChange:ba,onProgress:ba,onClickPreview:ba,onEnablePIP:ba,onDisablePIP:ba};return props}var Player_1,hasRequiredPlayer;function requirePlayer(){if(hasRequiredPlayer)return Player_1;hasRequiredPlayer=1;var ea=Object.create,na=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,aa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,la=(Ca,Sa,wa)=>Sa in Ca?na(Ca,Sa,{enumerable:!0,configurable:!0,writable:!0,value:wa}):Ca[Sa]=wa,ca=(Ca,Sa)=>{for(var wa in Sa)na(Ca,wa,{get:Sa[wa],enumerable:!0})},ua=(Ca,Sa,wa,ba)=>{if(Sa&&typeof Sa=="object"||typeof Sa=="function")for(let Ea of oa(Sa))!sa.call(Ca,Ea)&&Ea!==wa&&na(Ca,Ea,{get:()=>Sa[Ea],enumerable:!(ba=ra(Sa,Ea))||ba.enumerable});return Ca},da=(Ca,Sa,wa)=>(wa=Ca!=null?ea(aa(Ca)):{},ua(!Ca||!Ca.__esModule?na(wa,"default",{value:Ca,enumerable:!0}):wa,Ca)),pa=Ca=>ua(na({},"__esModule",{value:!0}),Ca),ha=(Ca,Sa,wa)=>(la(Ca,typeof Sa!="symbol"?Sa+"":Sa,wa),wa),ga={};ca(ga,{default:()=>Aa}),Player_1=pa(ga);var fa=da(requireReact()),ma=da(requireReactFastCompare()),va=requireProps(),xa=requireUtils$2();const ya=5e3;class Aa extends fa.Component{constructor(){super(...arguments),ha(this,"mounted",!1),ha(this,"isReady",!1),ha(this,"isPlaying",!1),ha(this,"isLoading",!0),ha(this,"loadOnReady",null),ha(this,"startOnPlay",!0),ha(this,"seekOnPlay",null),ha(this,"onDurationCalled",!1),ha(this,"handlePlayerMount",Sa=>{if(this.player){this.progress();return}this.player=Sa,this.player.load(this.props.url),this.progress()}),ha(this,"getInternalPlayer",Sa=>this.player?this.player[Sa]:null),ha(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const Sa=this.getCurrentTime()||0,wa=this.getSecondsLoaded(),ba=this.getDuration();if(ba){const Ea={playedSeconds:Sa,played:Sa/ba};wa!==null&&(Ea.loadedSeconds=wa,Ea.loaded=wa/ba),(Ea.playedSeconds!==this.prevPlayed||Ea.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(Ea),this.prevPlayed=Ea.playedSeconds,this.prevLoaded=Ea.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),ha(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:Sa,playing:wa,volume:ba,muted:Ea}=this.props;Sa(),!Ea&&ba!==null&&this.player.setVolume(ba),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):wa&&this.player.play(),this.handleDurationCheck()}),ha(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:Sa,onPlay:wa,playbackRate:ba}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&ba!==1&&this.player.setPlaybackRate(ba),Sa(),this.startOnPlay=!1),wa(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),ha(this,"handlePause",Sa=>{this.isPlaying=!1,this.isLoading||this.props.onPause(Sa)}),ha(this,"handleEnded",()=>{const{activePlayer:Sa,loop:wa,onEnded:ba}=this.props;Sa.loopOnEnded&&wa&&this.seekTo(0),wa||(this.isPlaying=!1,ba())}),ha(this,"handleError",(...Sa)=>{this.isLoading=!1,this.props.onError(...Sa)}),ha(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const Sa=this.getDuration();Sa?this.onDurationCalled||(this.props.onDuration(Sa),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),ha(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(Sa){if(!this.player)return;const{url:wa,playing:ba,volume:Ea,muted:$a,playbackRate:Ma,pip:Ia,loop:Oa,activePlayer:Da,disableDeferredLoading:Ta}=this.props;if(!(0,ma.default)(Sa.url,wa)){if(this.isLoading&&!Da.forceLoad&&!Ta&&!(0,xa.isMediaStream)(wa)){console.warn(`ReactPlayer: the attempt to load ${wa} is being deferred until the player has loaded`),this.loadOnReady=wa;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(wa,this.isReady)}!Sa.playing&&ba&&!this.isPlaying&&this.player.play(),Sa.playing&&!ba&&this.isPlaying&&this.player.pause(),!Sa.pip&&Ia&&this.player.enablePIP&&this.player.enablePIP(),Sa.pip&&!Ia&&this.player.disablePIP&&this.player.disablePIP(),Sa.volume!==Ea&&Ea!==null&&this.player.setVolume(Ea),Sa.muted!==$a&&($a?this.player.mute():(this.player.unmute(),Ea!==null&&setTimeout(()=>this.player.setVolume(Ea)))),Sa.playbackRate!==Ma&&this.player.setPlaybackRate&&this.player.setPlaybackRate(Ma),Sa.loop!==Oa&&this.player.setLoop&&this.player.setLoop(Oa)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(Sa,wa,ba){if(!this.isReady){Sa!==0&&(this.seekOnPlay=Sa,setTimeout(()=>{this.seekOnPlay=null},ya));return}if(wa?wa==="fraction":Sa>0&&Sa<1){const $a=this.player.getDuration();if(!$a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo($a*Sa,ba);return}this.player.seekTo(Sa,ba)}render(){const Sa=this.props.activePlayer;return Sa?fa.default.createElement(Sa,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}return ha(Aa,"displayName","Player"),ha(Aa,"propTypes",va.propTypes),ha(Aa,"defaultProps",va.defaultProps),Player_1}var ReactPlayer$1,hasRequiredReactPlayer;function requireReactPlayer(){if(hasRequiredReactPlayer)return ReactPlayer$1;hasRequiredReactPlayer=1;var ea=Object.create,na=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,aa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,la=(Oa,Da,Ta)=>Da in Oa?na(Oa,Da,{enumerable:!0,configurable:!0,writable:!0,value:Ta}):Oa[Da]=Ta,ca=(Oa,Da)=>{for(var Ta in Da)na(Oa,Ta,{get:Da[Ta],enumerable:!0})},ua=(Oa,Da,Ta,_a)=>{if(Da&&typeof Da=="object"||typeof Da=="function")for(let La of oa(Da))!sa.call(Oa,La)&&La!==Ta&&na(Oa,La,{get:()=>Da[La],enumerable:!(_a=ra(Da,La))||_a.enumerable});return Oa},da=(Oa,Da,Ta)=>(Ta=Oa!=null?ea(aa(Oa)):{},ua(!Oa||!Oa.__esModule?na(Ta,"default",{value:Oa,enumerable:!0}):Ta,Oa)),pa=Oa=>ua(na({},"__esModule",{value:!0}),Oa),ha=(Oa,Da,Ta)=>(la(Oa,typeof Da!="symbol"?Da+"":Da,Ta),Ta),ga={};ca(ga,{createReactPlayer:()=>Ia}),ReactPlayer$1=pa(ga);var fa=da(requireReact()),ma=da(requireCjs()),va=da(require$$2),xa=da(requireReactFastCompare()),ya=requireProps(),Aa=requireUtils$2(),Ca=da(requirePlayer());const Sa=(0,Aa.lazy)(()=>__vitePreload(()=>import("./assets/Preview-Csiorzcm.js").then(Oa=>Oa.P),[],import.meta.url)),wa=typeof window<"u"&&window.document&&typeof document<"u",ba=typeof commonjsGlobal$1<"u"&&commonjsGlobal$1.window&&commonjsGlobal$1.window.document,Ea=Object.keys(ya.propTypes),$a=wa||ba?fa.Suspense:()=>null,Ma=[],Ia=(Oa,Da)=>{var Ta;return Ta=class extends fa.Component{constructor(){super(...arguments),ha(this,"state",{showPreview:!!this.props.light}),ha(this,"references",{wrapper:_a=>{this.wrapper=_a},player:_a=>{this.player=_a}}),ha(this,"handleClickPreview",_a=>{this.setState({showPreview:!1}),this.props.onClickPreview(_a)}),ha(this,"showPreview",()=>{this.setState({showPreview:!0})}),ha(this,"getDuration",()=>this.player?this.player.getDuration():null),ha(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ha(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ha(this,"getInternalPlayer",(_a="player")=>this.player?this.player.getInternalPlayer(_a):null),ha(this,"seekTo",(_a,La,Na)=>{if(!this.player)return null;this.player.seekTo(_a,La,Na)}),ha(this,"handleReady",()=>{this.props.onReady(this)}),ha(this,"getActivePlayer",(0,va.default)(_a=>{for(const La of[...Ma,...Oa])if(La.canPlay(_a))return La;return Da||null})),ha(this,"getConfig",(0,va.default)((_a,La)=>{const{config:Na}=this.props;return ma.default.all([ya.defaultProps.config,ya.defaultProps.config[La]||{},Na,Na[La]||{}])})),ha(this,"getAttributes",(0,va.default)(_a=>(0,Aa.omit)(this.props,Ea))),ha(this,"renderActivePlayer",_a=>{if(!_a)return null;const La=this.getActivePlayer(_a);if(!La)return null;const Na=this.getConfig(_a,La.key);return fa.default.createElement(Ca.default,{...this.props,key:La.key,ref:this.references.player,config:Na,activePlayer:La.lazyPlayer||La,onReady:this.handleReady})})}shouldComponentUpdate(_a,La){return!(0,xa.default)(this.props,_a)||!(0,xa.default)(this.state,La)}componentDidUpdate(_a){const{light:La}=this.props;!_a.light&&La&&this.setState({showPreview:!0}),_a.light&&!La&&this.setState({showPreview:!1})}renderPreview(_a){if(!_a)return null;const{light:La,playIcon:Na,previewTabIndex:za,oEmbedUrl:Fa,previewAriaLabel:Ha}=this.props;return fa.default.createElement(Sa,{url:_a,light:La,playIcon:Na,previewTabIndex:za,previewAriaLabel:Ha,oEmbedUrl:Fa,onClick:this.handleClickPreview})}render(){const{url:_a,style:La,width:Na,height:za,fallback:Fa,wrapper:Ha}=this.props,{showPreview:Va}=this.state,Ua=this.getAttributes(_a),Qa=typeof Ha=="string"?this.references.wrapper:void 0;return fa.default.createElement(Ha,{ref:Qa,style:{...La,width:Na,height:za},...Ua},fa.default.createElement($a,{fallback:Fa},Va?this.renderPreview(_a):this.renderActivePlayer(_a)))}},ha(Ta,"displayName","ReactPlayer"),ha(Ta,"propTypes",ya.propTypes),ha(Ta,"defaultProps",ya.defaultProps),ha(Ta,"addCustomPlayer",_a=>{Ma.push(_a)}),ha(Ta,"removeCustomPlayers",()=>{Ma.length=0}),ha(Ta,"canPlay",_a=>{for(const La of[...Ma,...Oa])if(La.canPlay(_a))return!0;return!1}),ha(Ta,"canEnablePIP",_a=>{for(const La of[...Ma,...Oa])if(La.canEnablePIP&&La.canEnablePIP(_a))return!0;return!1}),Ta};return ReactPlayer$1}var lib$1,hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var ea=Object.create,na=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,aa=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,la=(va,xa)=>{for(var ya in xa)na(va,ya,{get:xa[ya],enumerable:!0})},ca=(va,xa,ya,Aa)=>{if(xa&&typeof xa=="object"||typeof xa=="function")for(let Ca of oa(xa))!sa.call(va,Ca)&&Ca!==ya&&na(va,Ca,{get:()=>xa[Ca],enumerable:!(Aa=ra(xa,Ca))||Aa.enumerable});return va},ua=(va,xa,ya)=>(ya=va!=null?ea(aa(va)):{},ca(!va||!va.__esModule?na(ya,"default",{value:va,enumerable:!0}):ya,va)),da=va=>ca(na({},"__esModule",{value:!0}),va),pa={};la(pa,{default:()=>ma}),lib$1=da(pa);var ha=ua(requirePlayers()),ga=requireReactPlayer();const fa=ha.default[ha.default.length-1];var ma=(0,ga.createReactPlayer)(ha.default,fa);return lib$1}var libExports$1=requireLib$1();const ReactPlayer=getDefaultExportFromCjs(libExports$1),VideoPlayer=React.forwardRef((ea,na)=>{const{className:ra,autoPlay:oa,loop:aa,playing:sa,poster:la,showPoster:ca,...ua}=ea,{url:da,muted:pa,controls:ha,config:ga}=ua,fa=reactExports.useRef(null),ma=reactExports.useRef(0),[va,xa]=reactExports.useState(0),[ya,Aa]=reactExports.useState(0),[Ca,Sa]=reactExports.useState(oa),wa=reactExports.useMemo(()=>({url:da,loop:aa,muted:pa,controls:ha,config:ga}),[ga,ha,aa,pa,da]),ba=reactExports.useCallback(()=>{ma.current+=1,xa(ma.current)},[]);reactExports.useEffect(()=>{ba()},[wa,ba]);const Ea=reactExports.useCallback(()=>{Sa(!0),Aa(Math.round(fa.current?.getCurrentTime()||0))},[]),$a=reactExports.useCallback(()=>{Sa(!1)},[]),Ma=reactExports.useCallback(()=>{Sa(!1),fa.current?.seekTo(ya,"seconds"),aa&&Sa(!0)},[aa,ya]),Ia=Oa=>{fa.current=Oa};return reactExports.useImperativeHandle(na,()=>({player:fa.current,pause:()=>Sa(!1),play:()=>Sa(!0)})),jsxRuntimeExports.jsxs("div",{className:ra,children:[jsxRuntimeExports.jsx(ReactPlayer,{url:da,ref:Ia,width:"100%",height:"100%",playing:Ca,onEnded:Ma,onStart:Ea,onPause:$a,...ua},va),la&&jsxRuntimeExports.jsx("img",{className:`${ca?"depicter-show-poster":""}`,src:la,alt:""})]})}),VideoPlayer$1=dt$1(VideoPlayer).withConfig({displayName:"VideoPlayer",componentId:"sc-1ehza00-0"})(["position:relative;width:100%;height:100%;iframe{width:100%;height:100%;}> img{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;object-fit:cover;opacity:0;visibility:hidden;&.depicter-show-poster{opacity:1;visibility:visible;}}"]),EmbedVideo=ea=>{const{className:na,type:ra,source:oa,loop:aa=!1,autoPlay:sa=!1,muted:la=!1,controls:ca=!0,related:ua,startingTime:da=0,endingTime:pa=0}=ea,ha=reactExports.useMemo(()=>{switch(ra){case"youtube":return{youtube:{playerVars:{rel:ua?"1":"0",autoplay:sa?"1":"0",start:da,end:pa}}};case"vimeo":return{vimeo:{playerOptions:{autoplay:sa?"1":"0",start_time:da,end_time:pa}}};default:return{}}},[sa,pa,ua,da,ra]);return jsxRuntimeExports.jsx("div",{className:na,children:oa?jsxRuntimeExports.jsx(VideoPlayer$1,{url:oa,muted:la,controls:ca,loop:aa,config:ha}):jsxRuntimeExports.jsx(EmptyEmbedVideo$1,{type:ra})})},EmbedVideo$1=dt$1(EmbedVideo).withConfig({displayName:"EmbedVideo",componentId:"sc-rt3v80-0"})(["width:100%;height:100%;",""],({draggable:ea})=>ea&&lt$1(["iframe{pointer-events:none;}"])),embedVideoElementSettingsOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementEmbedVideoSettings,["embedVideoSource"]),"videoSettings",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementEmbedVideoSettings,["elementVideoRelated"]),"videoSettings",7),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementEmbedVideoSettings,["elementVideoStartingTime","elementVideoEndingTime"]),"videoSettings",8))(elementVideoSettings),embedVideoElementLayerStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),embedVideoElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["backgroundColor","padding","backgroundBlur"]))(elementStylesOptionControls),triggers$1=[{type:"videoPlay",label:i18next.t("Video Started")},{type:"videoEnd",label:i18next.t("Video Ended")},{type:"videoPause",label:i18next.t("Video Paused")}],embedVideoElementActionsOptionControls=optionControlsPipe(ea=>modifyControl(ea,"elementAction",{controlProps:{triggers:[...triggersList,...triggers$1]}}))(elementActionOptionControls()),embedVideoElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayoutStylesOptionControls,...embedVideoElementSettingsOptionControls,...embedVideoElementLayerStylesOptionsControls,...embedVideoElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...embedVideoElementActionsOptionControls]}],embedVideoElementContextMenu=[selectElementsGroup,modifyElementsItemsGroup,lockAndUnlockItemsGroup,groupAndUngroupItemsGroup,arrangeElementsDepthItemsGroup,{id:"setMediaAsBackgroundItem",items:[{...setAsSlideBackgroundItem,allowedTier:Tiers.PRO}]},foregroundItemsGroup,responsiveItemsGroup],EmbedVideoElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,options:aa,styles:sa}=ea,la=aa||{},ca=useIsSelected(oa),ua={...useBorder(sa?.border),...useCorner(sa?.corner,!0),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useFilter(sa?.filter)},da={...useFlexStyles(sa?.flex)},{isActive:pa,...ha}=useActiveOnClick(oa,!0,ca,void 0,{offAbles:["draggable"]},{offAbles:void 0});return jsxRuntimeExports.jsx(BaseElement$1,{style:da,ref:na,contentStyle:ua,onElementClick:ra,...ea,...ha,children:jsxRuntimeExports.jsx(EmbedVideo$1,{draggable:!pa,...la})})}),EmbedVideoElement=dt$1(EmbedVideoElementLogic).withConfig({displayName:"EmbedVideoElement",componentId:"sc-bszom3-0"})([""]);registerElement({type:"embedVideo",name:"Embed Video",component:EmbedVideoElement,optionControls:embedVideoElementOptionControls,contextMenu:embedVideoElementContextMenu,icon:SvgVideo});const bulletElementDefaultStateValues={...elementDefaultCommonState,options:{...elementDefaultCommonState.options,direction:"h",bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{link:!0,topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}},useBullet=(ea,na)=>{const ra=useBackgroundColor(ea?.color),oa=useSize(ea?.size),aa=useCorner(ea?.corner),sa=useBackgroundColor(ea?.activeColor);if(!ea)return;let la={...ra,...oa,...aa},ca={...la,...sa};if(na==="activeOutline"){const ua=sa?.backgroundColor;ca={...ca,backgroundColor:"transparent",boxShadow:`0 0 0 2px ${ua} inset`}}if(na==="bullet"){const ua=ra?.backgroundColor;la={...la,backgroundColor:"transparent",boxShadow:`0 0 0 2px ${ua} inset`}}return{bulletStyle:la,activeBulletStyle:ca}},action$f=updateSelectedElementsValueByPathAndPrefix(""),selector$h=getSelectedElementsValueByPathAndPrefix(""),bulletAdditionalElementStylesOptionControls=[[createOptionControl({id:"elementBulletActiveColor",label:i18next.t("Active bullet color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$f("options.bullet.styles.activeColor"),selector:selector$h("options.bullet.styles.activeColor")})],[createOptionControl({id:"elementBulletsColor",label:i18next.t("Bullet color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$f("options.bullet.styles.color"),selector:selector$h("options.bullet.styles.color")})]],bulletSizingOptionControls=[{id:"bulletsSizing",border:"bottom",optionControls:[[createOptionControl({id:"elementBulletWidth",label:i18next.t("Bullet Width"),control:Number$2,controlProps:{units:"px",valueType:"object"},action:action$f("options.bullet.styles.size.width"),selector:selector$h("options.bullet.styles.size.width")}),createOptionControl({id:"elementBulletHeight",label:i18next.t("Bullet Height"),control:Number$2,controlProps:{units:"px",valueType:"object"},action:action$f("options.bullet.styles.size.height"),selector:selector$h("options.bullet.styles.size.height")})],[createOptionControl({id:"elementBulletSpace",label:i18next.t("Space"),control:Number$2,controlProps:{units:"px",valueType:"object"},styles:{flex:.5},action:action$f("options.bullet.styles.space.right"),selector:selector$h("options.bullet.styles.space.right")})],[createOptionControl({id:"elementBulletCorner",label:i18next.t("Bullet radius"),control:BoxEdgeSizing$1,action:action$f("options.bullet.styles.corner"),selector:selector$h("options.bullet.styles.corner")})],[createOptionControl({id:"elementBulletDirection",label:i18next.t("Direction"),control:Select$1,controlProps:{options:[{label:"Horizontal",value:"h"},{label:"Vertical",value:"v"}]},action:action$f("options.direction"),selector:selector$h("options.direction"),styles:{flex:.5}})]]}],bulletElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["width","height","elementAspectRatio","elementRotation","elementFlipX","elementFlipY"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[elementResetPosition],"elementPosition",2))(elementPositionOptionControls()),bulletElementLayerStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),bulletElementStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","corner","backgroundColor","backgroundBlur","filter"]),ea=>addRowToFieldsetByTargetAndIndex(ea,bulletAdditionalElementStylesOptionControls,"stylesGroup#1",0),ea=>modifyControl(ea,"fillColor",{label:i18next.t("Bullet color")}))(elementStylesOptionControls),bulletElementHoverStyleOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverSvgStylesOptionControls,["hoverFillColor"]),"hoverStyles",0),ea=>modifyControl(ea,"hoverFillColor",{label:i18next.t("Bullet color")}))(elementHoverStylesOptionControls),bulletElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...bulletElementPositionOptionControls,...elementArrangeOptionControls(),...bulletSizingOptionControls,...bulletElementLayerStyleOptionControls,...elementLayoutStylesOptionControls,...bulletElementStyleOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...bulletElementHoverStyleOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],BulletsList=dt$1.div.withConfig({displayName:"BulletElement__BulletsList",componentId:"sc-1k0ttgz-0"})([""]),BulletElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa,transformToolConfig:sa}=ea,{bullet:la,direction:ca}=aa||{},ua=useSelector(getActiveBreakpoint),da=useSelector(getSectionsList),pa=useSelector(getActiveSection),ha=useSelector(getActiveOptionsPanelTab(!0))==="hover",ga=reactExports.useMemo(()=>({offAbles:["resizable","rotatable"],...sa}),[sa]),fa={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding),...useSvg(oa?.svg),flexDirection:ca==="v"?"column":"row",gap:`${getResponsiveValue(la.styles?.space,ua)?.right?.value||0}px`},ma={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)};let va;va=la.activeOutline?"activeOutline":va,va=la.outline?"bullet":va;let xa=useBullet(la.styles,va)||{activeBulletStyle:{},bulletStyle:{}};const ya=useBullet(la.hover,va)||{activeBulletStyle:{},bulletStyle:{}};ha&&(xa=deepmerge(xa,ya));const Aa={...xa?.bulletStyle},Ca={...xa?.activeBulletStyle},Sa=reactExports.useMemo(()=>{if(da.length>=3)return da;const wa=[...da];return[...Array(3-da.length).keys()].forEach(ba=>{wa.push(`sampleBullet${ba}`)}),wa},[da]);return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:ma,contentStyle:fa,onElementClick:ra,transformToolConfig:ga,...ea,children:jsxRuntimeExports.jsx(BulletsList,{children:Sa.map(wa=>jsxRuntimeExports.jsx("span",{style:wa===pa?Ca:Aa},wa))})})}),BulletElement=dt$1(BulletElementLogic).withConfig({displayName:"BulletElement",componentId:"sc-1k0ttgz-1"})(["","{flex-direction:inherit;gap:inherit;display:flex;}"],BulletsList);registerElement({type:"bullet",name:"Bullet",component:BulletElement,defaultStateValues:bulletElementDefaultStateValues,optionControls:bulletElementOptionControls,icon:SvgControl});const useLineTimer=ea=>{const na=useBackgroundColor(ea?.color),ra=useCorner(ea?.corner);return ea?{...na,...ra}:void 0},lineTimerElementDefaultState={...elementDefaultCommonState,options:{...elementDefaultCommonState.options,lineTimer:{styles:{color:{default:"rgba(0,0,0,1)"}}}}},action$e=updateSelectedElementsValueByPathAndPrefix(""),selector$g=getSelectedElementsValueByPathAndPrefix(""),lineTimerAdditionalElementStylesOptionControls=[[createOptionControl({id:"elementLineTimerColor",label:i18next.t("Line color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$e("options.lineTimer.styles.color"),selector:selector$g("options.lineTimer.styles.color")})]],lineTimerElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[elementResetPosition],"elementPosition",2),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 105px"}}),ea=>modifyControl(ea,"elementResetPosition",{controlProps:{vertical:!0}}))(elementPositionOptionControls()),lineTimerLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),lineTimerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","corner","filter","border"]),ea=>addRowToFieldsetByTargetAndIndex(ea,lineTimerAdditionalElementStylesOptionControls,"stylesGroup#1",0))(elementStylesOptionControls),lineTimerHoverStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["hoverBackgroundColor","hoverBorderColor"]))(elementHoverStylesOptionControls),lineTimerElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...lineTimerElementPositionOptionControls,...elementArrangeOptionControls(),...lineTimerLayerStylesOptionControls,...elementLayoutStylesOptionControls,...lineTimerStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...lineTimerHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],LineContainer=dt$1.div.withConfig({displayName:"LineTimerElement__LineContainer",componentId:"sc-76r7nl-0"})(["width:50%;height:100%;"]),LineTimerElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa}=ea,{lineTimer:sa}=aa||{},la={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding),...useSvg(oa?.svg),overflow:"hidden"},ca={...useLineTimer(sa?.styles)},ua={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:ua,contentStyle:la,onElementClick:ra,...ea,children:jsxRuntimeExports.jsx(LineContainer,{style:ca})})}),LineTimerElement=dt$1(LineTimerElementLogic).withConfig({displayName:"LineTimerElement",componentId:"sc-76r7nl-1"})([""]);registerElement({type:"lineTimer",name:"Line Timer",component:LineTimerElement,optionControls:lineTimerElementOptionControls,defaultStateValues:lineTimerElementDefaultState,icon:SvgControl});const playAndPauseElementPositionOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[elementResetPosition],"elementPosition",2))(elementPositionOptionControls()),playAndPauseLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),playAndPauseStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","filter"]),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementSvgStylesOptionControls,["fillColor"]),"stylesGroup#1",0),ea=>modifyControl(ea,"fillColor",{label:i18next.t("Symbol color")}))(elementStylesOptionControls),playAndPauseHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverSvgStylesOptionControls,["hoverFillColor"]),"hoverStyles",0),ea=>modifyControl(ea,"hoverFillColor",{label:i18next.t("Symbol color")}))(elementHoverStylesOptionControls),playAndPauseElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...playAndPauseElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayoutStylesOptionControls,...playAndPauseLayerStylesOptionControls,...playAndPauseStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...playAndPauseHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],SVGContentContainer=dt$1.div.withConfig({displayName:"PlayAndPauseElement__SVGContentContainer",componentId:"sc-33v2ji-0"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;"]),PlayAndPauseElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa}=ea,{content:sa=""}=aa||{},la={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding),...useSvg(oa?.svg)},ca={...useBlendingMode(oa?.blendingMode),...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:ca,contentStyle:la,onElementClick:ra,...ea,children:jsxRuntimeExports.jsx(SVGContentContainer,{dangerouslySetInnerHTML:{__html:sa}})})}),PlayAndPauseElement=dt$1(PlayAndPauseElementLogic).withConfig({displayName:"PlayAndPauseElement",componentId:"sc-33v2ji-1"})([""]);registerElement({type:"playAndPause",name:"Play and Pause",component:PlayAndPauseElement,optionControls:playAndPauseElementOptionControls,icon:SvgControl});const calcSymbolValue=ea=>[0,0,0,0,0].map((na,ra)=>{const oa=Math.max(Math.min(ea-ra,1),0);return[0,1].includes(oa)?oa:ea%1}),symbols="data:image/svg+xml,%3csvg%20width='0'%20height='0'%20xmlns='http://www.w3.org/2000/svg'%3e%3csymbol%20id='rating-star'%20viewBox='0%200%2045.273%2043.151'%20preserveAspectRatio='none'%3e%3cpath%20d='M23.448,1.038l6.218,12.6a1.5,1.5,0,0,0,1.129.821l13.9,2.02a.5.5,0,0,1,.277.853L34.916,27.138a1.5,1.5,0,0,0-.431,1.328l2.375,13.847a.5.5,0,0,1-.725.527L23.7,36.3a1.5,1.5,0,0,0-1.4,0L9.866,42.84a.5.5,0,0,1-.725-.527l2.375-13.847a1.5,1.5,0,0,0-.431-1.328L1.024,17.331a.5.5,0,0,1,.277-.853l13.9-2.02a1.5,1.5,0,0,0,1.129-.821l6.218-12.6A.5.5,0,0,1,23.448,1.038Z'%20transform='translate(-0.364%20-0.26)'%3e%3c/path%3e%3c/symbol%3e%3c/svg%3e",SvgSymbol=({id:ea,...na})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...na,children:jsxRuntimeExports.jsx("use",{xmlns:"http://www.w3.org/2000/svg",href:`${symbols}#${ea}`})}),SvgSymbol$1=dt$1(SvgSymbol).withConfig({displayName:"SvgSymbol",componentId:"sc-10q6if9-0"})([""]),Container$H=dt$1.div.withConfig({displayName:"RatingSymbols__Container",componentId:"sc-pud80c-0"})(["flex:1;position:relative;"]),SymbolContainer=dt$1.div.withConfig({displayName:"RatingSymbols__SymbolContainer",componentId:"sc-pud80c-1"})(["width:100%;height:100%;"]),SymbolTrackContainer=dt$1.div.withConfig({displayName:"RatingSymbols__SymbolTrackContainer",componentId:"sc-pud80c-2"})(["position:absolute;top:0;left:0;width:100%;height:100%;"]),RatingSymbols=({className:ea,rate:na,symbol:ra,round:oa})=>{const aa=oa?Math.round(na):na,sa=reactExports.useCallback((la,ca)=>jsxRuntimeExports.jsxs(Container$H,{children:[jsxRuntimeExports.jsx(SymbolContainer,{children:jsxRuntimeExports.jsx(SvgSymbol$1,{id:ra,width:"100%",height:"100%"})}),jsxRuntimeExports.jsx(SymbolTrackContainer,{style:{clipPath:`inset(0 ${100-la*100}% 0 0)`},children:jsxRuntimeExports.jsx(SvgSymbol$1,{id:ra,width:"100%",height:"100%"})})]},ca),[ra]);return jsxRuntimeExports.jsx("div",{className:ea,children:calcSymbolValue(aa).map(sa)})},RatingSymbols$1=dt$1(RatingSymbols).withConfig({displayName:"RatingSymbols",componentId:"sc-pud80c-3"})(["display:flex;width:100%;height:100%;","{fill:",";}","{fill:",";}svg{stroke:transparent;}"],SymbolContainer,ea=>ea.patternColor,SymbolTrackContainer,ea=>ea.trackColor),ratingElementDefaultState={...elementDefaultCommonState,options:{...elementDefaultCommonState.options,rating:{styles:{patternColor:{default:"#D6D6D6"},trackColor:{default:"#FCCC00"}},hover:{patternColor:{default:"#D6D6D6"},trackColor:{default:"#FCCC00"}},round:!1}}},useRating=ea=>{const na=useSelector(getActiveBreakpoint);if(ea)return{patternColor:getResponsiveValue(ea.patternColor,na),trackColor:getResponsiveValue(ea.trackColor,na)}},action$d=updateSelectedElementsValueByPathAndPrefix(""),selector$f=getSelectedElementsValueByPathAndPrefix(""),ratingAdditionalElementStylesOptionControls=[[createOptionControl({id:"elementRatingPatternColor",label:i18next.t("Items empty color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$d("options.rating.styles.patternColor"),selector:selector$f("options.rating.styles.patternColor")})],[createOptionControl({id:"elementRatingTrackColor",label:i18next.t("Items color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$d("options.rating.styles.trackColor"),selector:selector$f("options.rating.styles.trackColor")})]],ratingAdditionalElementHoverStylesOptionControls=[[createOptionControl({id:"hoverElementRatingPatternColor",label:i18next.t("Items empty color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$d("options.rating.hover.patternColor"),selector:selector$f("options.rating.hover.patternColor")})],[createOptionControl({id:"hoverElementRatingTrackColor",label:i18next.t("Items color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$d("options.rating.hover.trackColor"),selector:selector$f("options.rating.hover.trackColor")})]],ratingDisplayOptionControls=[{id:"ratingDisplay",border:"bottom",optionControls:[[createOptionControl({id:"elementRatingRoundValue",control:SwitchBox$1,controlProps:{label:i18next.t("Round rating value")},action:action$d("options.rating.round"),selector:selector$f("options.rating.round")})]]}],ratingLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),ratingStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","corner","border"]),ea=>addRowToFieldsetByTargetAndIndex(ea,ratingAdditionalElementStylesOptionControls,"stylesGroup#1",0))(elementStylesOptionControls),ratingHoverStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["hoverBorderColor"]),ea=>addRowToFieldsetByTargetAndIndex(ea,ratingAdditionalElementHoverStylesOptionControls,"hoverStyles",0))(elementHoverStylesOptionControls),ratingElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayoutStylesOptionControls,...ratingDisplayOptionControls,...ratingLayerStylesOptionControls,...ratingStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...ratingHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],RatingElementLogic=React.forwardRef((ea,na)=>{const{t:ra}=useTranslation(),{onClick:oa,styles:aa,options:sa}=ea,{content:la="",hasDynamicTag:ca,rating:{symbol:ua,round:da,hover:pa,styles:ha}}=sa||{},ga=useSelector(getActiveOptionsPanelTab(!0))==="hover",fa=useRating(ga?pa:ha),[ma,va]=useRenderTemplateEngine(la,!ca),xa={...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{style:xa,ref:na,onElementClick:oa,...ea,children:[va==="rendering"&&jsxRuntimeExports.jsxs("small",{children:[ra("Loading"),"..."]}),va==="rendered"&&jsxRuntimeExports.jsx(RatingSymbols$1,{symbol:ua,rate:parseFloat(ma),patternColor:fa?.patternColor,trackColor:fa?.trackColor,round:da})]})}),RatingElement=dt$1(RatingElementLogic).withConfig({displayName:"RatingElement",componentId:"sc-lcngbv-0"})([""]);registerElement({type:"rating",name:"Rating",component:RatingElement,defaultStateValues:ratingElementDefaultState,optionControls:ratingElementOptionControls});const useStockStatus=(ea,na)=>{const ra=useSelector(getActiveBreakpoint);if(ea)return{color:getResponsiveValue(na?ea.inStockTextColor:ea.outOfStockTextColor,ra)}},action$c=updateSelectedElementsValueByPathAndPrefix(""),selector$e=getSelectedElementsValueByPathAndPrefix(""),stockStatusAdditionalElementStylesOptionControls=[[createOptionControl({id:"elementInStockTextColor",label:i18next.t("In stock state color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0,allowedType:"solid"},action:action$c("options.stockStatus.styles.inStockTextColor"),selector:selector$e("options.stockStatus.styles.inStockTextColor")})],[createOptionControl({id:"elementOutStockTextColor",label:i18next.t("Out of stock state color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0,allowedType:"solid"},action:action$c("options.stockStatus.styles.outOfStockTextColor"),selector:selector$e("options.stockStatus.styles.outOfStockTextColor")})]],stockStatusAdditionalElementHoverStylesOptionControls=[[createOptionControl({id:"hoverElementInStockTextColor",label:i18next.t("In stock state color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0,allowedType:"solid"},action:action$c("options.stockStatus.hover.inStockTextColor"),selector:selector$e("options.stockStatus.hover.inStockTextColor"),disabledWhen:ea=>!selector$e("styles.hover.enable")(ea)})],[createOptionControl({id:"hoverElementOutStockTextColor",label:i18next.t("Out of stock state color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0,allowedType:"solid"},action:action$c("options.stockStatus.hover.outOfStockTextColor"),selector:selector$e("options.stockStatus.hover.outOfStockTextColor"),disabledWhen:ea=>!selector$e("styles.hover.enable")(ea)})]],stockStatusDisplayOptionControls=[{id:"stockStatusDisplay",border:"bottom",optionControls:[[createOptionControl({id:"elementInStockText",label:i18next.t("In stock text"),control:Input$2,controlProps:{variant:"small",onBlurChange:!0},selector:selector$e("options.stockStatus.inStockText"),action:action$c("options.stockStatus.inStockText")})],[createOptionControl({id:"elementOutStockText",label:i18next.t("Out of stock text"),control:Input$2,controlProps:{variant:"small",onBlurChange:!0},selector:selector$e("options.stockStatus.outOfStockText"),action:action$c("options.stockStatus.outOfStockText")})]]}],stockStatusPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 90px"}}))(elementPositionOptionControls()),stockStatusTypographyOptionControls=optionControlsPipe(ea=>excludeControls(ea,["textColor"]))(elementTypographyOptionControls),stockStatusLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),stockStatusStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,stockStatusAdditionalElementStylesOptionControls,"stylesGroup#1",0))(elementStylesOptionControls),stockStatusHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,stockStatusAdditionalElementHoverStylesOptionControls,"hoverStyles",0))(elementHoverStylesOptionControls),stockStatusElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...stockStatusPositionOptionControls,...elementArrangeOptionControls(),...elementLayoutStylesOptionControls,...stockStatusTypographyOptionControls,...stockStatusDisplayOptionControls,...stockStatusLayerStylesOptionControls,...stockStatusStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...stockStatusHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],stockStatusElementDefaultState={...elementDefaultCommonState,options:{...elementDefaultCommonState.options,stockStatus:{styles:{inStockTextColor:{default:"#01D06F"},outOfStockTextColor:{default:"#FF504A"}},hover:{inStockTextColor:{default:"#01D06F"},outOfStockTextColor:{default:"#FF504A"}}}}},StockStatusElementLogic=React.forwardRef((ea,na)=>{const{t:ra}=useTranslation(),{onClick:oa,styles:aa,options:sa}=ea,{content:la="",hasDynamicTag:ca,stockStatus:{inStockText:ua,outOfStockText:da,styles:pa,hover:ha}}=sa||{},ga=useSelector(getActiveOptionsPanelTab(!0))==="hover",[fa,ma]=useRenderTemplateEngine(la,!ca),va=fa?ua:da,xa={...useTypography(aa?.typography),...useStockStatus(ga?ha:pa,!!fa)},ya={...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{style:ya,ref:na,contentStyle:xa,onElementClick:oa,...ea,children:[ma==="rendering"&&jsxRuntimeExports.jsxs("small",{children:[ra("Loading"),"..."]}),ma==="rendered"&&va]})}),StockStatusElement=dt$1(StockStatusElementLogic).withConfig({displayName:"StockStatusElement",componentId:"sc-mwgory-0"})([""]);registerElement({type:"wooStockStatus",name:"Stock Status",component:StockStatusElement,optionControls:stockStatusElementOptionControls,defaultStateValues:stockStatusElementDefaultState});const dateElementDefaultStateValues={...elementDefaultCommonState,options:{...elementDefaultCommonState.options,date:{useRelative:!1,displayTime:!1,formatStyle:"auto"}}},action$b=updateSelectedElementsValueByPathAndPrefix(""),selector$d=getSelectedElementsValueByPathAndPrefix(""),dateDisplayOptionControls=[{id:"dateDisplay",label:i18next.t("Date"),border:"bottom",optionControls:[[createOptionControl({id:"elementDateUseRelative",control:SwitchBox$1,controlProps:{label:i18next.t("Use Relative")},action:action$b("options.date.useRelative"),selector:selector$d("options.date.useRelative")})],[createOptionControl({id:"elementDateDisplayTime",control:SwitchBox$1,controlProps:{label:i18next.t("Display time")},action:action$b("options.date.displayTime"),selector:selector$d("options.date.displayTime")})],[createOptionControl({id:"elementDateFormatStyle",label:i18next.t("Format Style"),control:Select$1,controlProps:{options:[{value:"full",label:i18next.t("Full")},{value:"long",label:i18next.t("Long")},{value:"medium",label:i18next.t("Medium")},{value:"short",label:i18next.t("Short")},{value:"auto",label:i18next.t("Auto")}]},action:action$b("options.date.formatStyle"),selector:selector$d("options.date.formatStyle"),dependency:ea=>selector$d("options.date.useRelative")(ea)!==!0})]]}],dateElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 105px"}}))(elementPositionOptionControls()),dateElementStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1))(elementStylesOptionControls),dateElementHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),dateElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...dateElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...elementTypographyOptionControls,...dateDisplayOptionControls,...dateElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...dateElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],DateElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa,transformToolConfig:sa}=ea,{content:la="",hasDynamicTag:ca,date:ua={}}=oa||{},{useRelative:da=!1,formatStyle:pa="auto",displayTime:ha=!1}=ua,ga=reactExports.useMemo(()=>({type:"text",...sa}),[sa]),[fa,ma]=useRenderTemplateEngine(la,!ca),va=useSelector(getActiveSectionDataSourceType),xa={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...useTypography(aa?.typography),...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding)},ya={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)},Aa=reactExports.useMemo(()=>({useRelative:da,formatOptions:generateCommonFormatDateAndTimeOptions(pa,ha)}),[pa,da,ha]);let Ca="";return Ca=ma==="rendering"?"...":formatDate$1(fa,Aa),jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:ya,contentStyle:xa,onElementClick:ra,emptyDataSource:ca&&!va,transformToolConfig:ga,...ea,children:Ca})}),DateElement=dt$1(DateElementLogic).withConfig({displayName:"DateElement",componentId:"sc-ejlcxx-0"})(["overflow-wrap:break-word;"]);registerElement({type:"date",name:"Date",component:DateElement,optionControls:dateElementOptionControls,defaultStateValues:dateElementDefaultStateValues});const DefaultComponent=dt$1.span.withConfig({displayName:"useRenderTagsList__DefaultComponent",componentId:"sc-1lmq2gt-0"})([""]),useRenderTagsList=(ea,na={})=>{const{separator:ra="/",limit:oa,addMoreTag:aa,tagComponent:sa=DefaultComponent,separatorComponent:la=DefaultComponent,useSeparator:ca,tagStyles:ua}=na,da=reactExports.useMemo(()=>{if(!ea||!ea.length)return null;if(!oa)return ea;const ga=ea.slice(0,oa);return aa&&ga.push({id:nanoid$1(),value:"more",label:"...",link:"#"}),ga},[oa,ea,aa]),pa=reactExports.useCallback(ga=>jsxRuntimeExports.jsx(sa,{style:ua,children:ga.label},ga.id),[sa,ua]);return reactExports.useMemo(()=>{if(da){const ga=da.map(pa),fa=jsxRuntimeExports.jsx(la,{children:ra});return ga.reduce((ma,va,xa)=>xa<ga.length-1&&ca?[...ma,va,fa]:[...ma,va],[])}return null},[da,pa,ra,la,ca])},action$a=updateSelectedElementsValueByPathAndPrefix(""),selector$c=getSelectedElementsValueByPathAndPrefix(""),tagListAdditionalElementStylesOptionControls=[{id:"tagLisItemStyles",label:i18next.t("Items"),border:"bottom",optionControls:[[createOptionControl({id:"elementTagListBackgroundColor",label:i18next.t("Item Background Color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$a("innerStyles.items.backgroundColor"),selector:selector$c("innerStyles.items.backgroundColor")})],[createOptionControl({id:"elementTagListPadding",control:BoxSideSizing$1,label:i18next.t("Item Padding"),selector:selector$c("innerStyles.items.padding"),action:action$a("innerStyles.items.padding")})],[createOptionControl({id:"elementTagListCorner",control:BoxEdgeSizing$1,label:i18next.t("Item Corner Radius"),selector:selector$c("innerStyles.items.corner"),action:action$a("innerStyles.items.corner")})],[createOptionControl({id:"elementTagListSpace",label:i18next.t("Item Spacing"),control:Number$2,controlProps:{units:"px",floatRange:0,valueType:"number"},selector:selector$c("options.space"),action:action$a("options.space"),styles:{flex:0,flexBasis:"75px"}})],[createOptionControl({id:"elementTagListBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Items Border")},optionControls:borderStylesPopoverControls({action:action$a,selector:selector$c})},hideOnIntersection:!0,selector:selector$c("innerStyles.items.border.enable"),action:action$a("innerStyles.items.border.enable")})],[createOptionControl({id:"elementTagListBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Items Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:action$a,selector:selector$c})},hideOnIntersection:!0,selector:selector$c("innerStyles.items.boxShadow.enable"),action:action$a("innerStyles.items.boxShadow.enable")})]]}],tagListAdditionalElementHoverStylesOptionControls=[[createOptionControl({id:"elementTagListHoverBackgroundColor",label:i18next.t("Item Background Color"),control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},action:action$a("innerStyles.items.hover.backgroundColor"),selector:selector$c("innerStyles.items.hover.backgroundColor"),disabledWhen:ea=>!selector$c("styles.hover.enable")(ea)})]],tagListDisplayOptionControls=[{id:"tagListDisplay",border:"bottom",optionControls:[[createOptionControl({id:"elementTagListLinkTags",control:SwitchBox$1,controlProps:{label:i18next.t("Link Item")},selector:selector$c("options.linkTags"),action:action$a("options.linkTags")})],[createOptionControl({id:"elementTagListUseSeparator",control:SwitchBox$1,controlProps:{label:i18next.t("Use Separator")},selector:selector$c("options.useSeparator"),action:action$a("options.useSeparator")})],[createOptionControl({id:"elementTagListLimit",label:i18next.t("Limit the items by count"),control:Number$2,controlProps:{floatRange:0,valueType:"number",units:""},selector:selector$c("options.limit"),action:action$a("options.limit"),styles:{flex:0,flexBasis:"135px"}})]]}],tagListPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 90px"}}))(elementPositionOptionControls()),tagListTypographyOptionControls=optionControlsPipe(ea=>excludeControls(ea,["textAlignment","textAlignmentRTL","textDirection","textWrap"]))(elementTypographyOptionControls),tagListLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),tagListHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,tagListAdditionalElementHoverStylesOptionControls,"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",1),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),tagListStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1))(elementStylesOptionControls),tagListElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...tagListPositionOptionControls,...elementArrangeOptionControls(),...tagListTypographyOptionControls,...tagListDisplayOptionControls,...tagListLayerStylesOptionControls,...elementLayoutStylesOptionControls,...tagListAdditionalElementStylesOptionControls,...tagListStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...tagListHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],tagListElementDefaultState={...elementDefaultCommonState,innerStyles:{...elementDefaultCommonState.innerStyles,items:{backgroundColor:{default:"transparent"},padding:defaultPadding,corner:defaultCorner,border:defaultBorder,boxShadow:defaultBoxShadow,hover:{backgroundColor:{default:"transparent"}}}},options:{...elementDefaultCommonState.options,linkTags:!0,limit:0,useSeparator:!0,space:5}},tagListInitialState={innerStyles:{}},TagListContainer=dt$1.div.withConfig({displayName:"TagListElement__TagListContainer",componentId:"sc-1wqx6vz-0"})([""]),TagListElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa,innerStyles:sa={},transformToolConfig:la}=ea,{items:{hover:ca,...ua}={hover:{}}}=sa,{content:da="",hasDynamicTag:pa,separator:ha=",",useSeparator:ga=!0,limit:fa,space:ma}=oa||{},va=reactExports.useMemo(()=>({type:"text",...la}),[la]),xa=useSelector(getActiveOptionsPanelTab(!0))==="hover",[ya]=useRenderTemplateEngine(da,!pa,"tags"),Aa=reactExports.useMemo(()=>typeof ya=="string"?[]:ya,[ya]),Ca={...useBackgroundColor(ca?.backgroundColor)},Sa={...useBackgroundColor(ua?.backgroundColor),...usePadding(ua?.padding),...useCorner(ua?.corner),...useBorder(ua?.border),...useBoxShadow(ua?.boxShadow),...xa?Ca:{}},wa={...useGap(ma,"horizontal")},ba=useRenderTagsList(Aa,{separator:ha,useSeparator:ga,limit:fa,tagStyles:Sa}),Ea=useSelector(getActiveSectionDataSourceType),$a={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...useTypography(aa?.typography),...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding)},Ma={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:na,style:Ma,contentStyle:$a,onElementClick:ra,emptyDataSource:pa&&!Ea,transformToolConfig:va,...ea,children:jsxRuntimeExports.jsx(TagListContainer,{style:wa,children:ba?.length?ba:ya})})}),TagListElement=dt$1(TagListElementLogic).withConfig({displayName:"TagListElement",componentId:"sc-1wqx6vz-1"})(["overflow-wrap:break-word;","{display:flex;flex-flow:row wrap;}"],TagListContainer);registerElement({type:"tagList",name:"Tag List",component:TagListElement,defaultStateValues:tagListElementDefaultState,initialStateValues:tagListInitialState,optionControls:tagListElementOptionControls});const symbolElementDefaultStateValues={...elementDefaultCommonState,innerStyles:{"dp-disabled":{opacity:{default:1}}},options:{...elementDefaultCommonState.options,iconScale:{default:1}}},action$9=updateSelectedElementsValueByPathAndPrefix(""),selector$b=getSelectedElementsValueByPathAndPrefix(""),symbolElementSizingOptionControls=[[createOptionControl({id:"iconScale",label:i18next.t("Icon Scale"),control:SliderWithNumber,controlProps:{multiply:100,numberProps:{units:"%"},min:0,max:300},selector:selector$b("options.iconScale"),action:action$9("options.iconScale")})]],symbolElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementRotation","elementFlipX","elementFlipY"]))(elementPositionOptionControls()),symbolElementLayerStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),symbolElementStyleOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","filter"]),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementSvgStylesOptionControls,["fillColor"]),"stylesGroup#1",0),ea=>modifyControl(ea,"fillColor",{label:i18next.t("Icon color")}),ea=>addRowToFieldsetByTargetAndIndex(ea,symbolElementSizingOptionControls,"stylesGroup#1",0))(elementStylesOptionControls),symbolElementHoverStyleOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverSvgStylesOptionControls,["hoverFillColor"]),"hoverStyles",0),ea=>modifyControl(ea,"hoverFillColor",{label:i18next.t("Icon color")}))(elementHoverStylesOptionControls),symbolElementActionOptionControls=optionControlsPipe(ea=>modifyControl(ea,"elementAction",{controlProps:{excludedTypes:["backgroundVideo"]}}))(elementActionOptionControls()),symbolElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...symbolElementPositionOptionControls,...elementArrangeOptionControls(),...symbolElementLayerStyleOptionControls,...elementLayoutStylesOptionControls,...symbolElementStyleOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...optionTabControls$1]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...symbolElementHoverStyleOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...symbolElementActionOptionControls]}],SVGContainer$1=dt$1.div.withConfig({displayName:"SymbolElement__SVGContainer",componentId:"sc-azh49s-0"})(["display:flex;align-items:center;justify-content:center;svg{fill:inherit;}"]),SymbolElementLogic=React.forwardRef((ea,na)=>{const{className:ra,onClick:oa,styles:aa,options:sa,id:la,type:ca,innerStyles:ua}=ea,{content:da="",iconScale:pa={default:1},disableOnFirst:ha,disableOnLast:ga}=sa||{},fa=useSelector(getActiveBreakpoint),ma=getResponsiveValue(pa,fa),va=useDispatch(),xa=useSelector(getSectionsList),ya=useSelector(getActiveSectionIndex),Aa=useUniqueClassName(),Ca=reactExports.useMemo(()=>ha&&ya===0||ga&&ya===xa.length-1,[ya,ha,ga,xa.length]);reactExports.useEffect(()=>{["arrow","scroll"].includes(ca)&&va(updateElement({id:la,values:{type:"symbol"}}))},[va,la,ca]);const Sa={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useBackgroundColor(aa?.backgroundColor),...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useSvg(aa?.svg),display:"flex",alignItems:"center",justifyContent:"center"},wa={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)},ba={transform:`scale(${ma})`};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:Sa,style:wa,onElementClick:oa,...ea,className:`${ra}  ${Aa}`,contentClassName:`${Ca?"dp-disabled":""}`,children:[ua&&jsxRuntimeExports.jsx(InnerStyles,{styles:ua,baseSelector:`.${Aa}`}),jsxRuntimeExports.jsx(SVGContainer$1,{dangerouslySetInnerHTML:{__html:da},style:ba})]})}),SymbolElement=dt$1(SymbolElementLogic).withConfig({displayName:"SymbolElement",componentId:"sc-azh49s-1"})([""]);registerElement({type:"symbol",name:"Symbol",component:SymbolElement,optionControls:symbolElementOptionControls,defaultStateValues:symbolElementDefaultStateValues,icon:SvgImage});registerElement({type:"arrow",name:"Arrow",component:SymbolElement,optionControls:symbolElementOptionControls,defaultStateValues:symbolElementDefaultStateValues,icon:SvgImage});registerElement({type:"scroll",name:"Scroll",component:SymbolElement,optionControls:symbolElementOptionControls,defaultStateValues:symbolElementDefaultStateValues,icon:SvgImage});const demoDuration=Date.now()+38*60*60*1e3+31*60*1e3+29*1e3,formatTime=(ea,na)=>na?ea.toString().padStart(2,"0"):ea.toString(),calculateTimeParts=(ea,na,ra,oa)=>{let aa=ea.getTime()-na;aa<0&&(oa?aa=demoDuration-na:aa=0);let sa=Math.floor(aa/(1e3*60*60*24)),la=Math.floor(aa%(1e3*60*60*24)/(1e3*60*60));const ca=Math.floor(aa%(1e3*60*60)/(1e3*60)),ua=Math.floor(aa%(1e3*60)/1e3);return ra||(la+=sa*24,sa=0),{days:sa,hours:la,minutes:ca,seconds:ua}},Separator$3=({children:ea,flash:na,line:ra,className:oa})=>jsxRuntimeExports.jsx("div",{className:`dpc-separator ${na?"dpc-flash":""} ${oa||""}`,children:ra?jsxRuntimeExports.jsx("span",{className:"dpc-line-separator"}):ea}),Timer=({separator:ea=":",flashSeparator:na=!1,showDays:ra=!0,demoMode:oa=!1,leadingZeros:aa=!0,addSeparator:sa=!0,lineSeparator:la=!1,dateTime:ca})=>{const[ua,da]=reactExports.useState(new Date().getTime());reactExports.useEffect(()=>{const ma=setInterval(()=>{da(new Date().getTime())},1e3);return()=>{clearInterval(ma)}},[]);const{days:pa,hours:ha,minutes:ga,seconds:fa}=calculateTimeParts(new Date(`${ca}Z`),ua,ra,oa);return jsxRuntimeExports.jsxs("div",{className:"dpc-countdown-timer dpc-countdown-row",children:[ra&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"dpc-countdown-segment",children:formatTime(pa,aa)}),sa&&jsxRuntimeExports.jsx(Separator$3,{flash:na,line:la,children:ea})]}),jsxRuntimeExports.jsx("span",{className:"dpc-countdown-segment",children:formatTime(ha,aa)}),sa&&jsxRuntimeExports.jsx(Separator$3,{flash:na,line:la,children:ea}),jsxRuntimeExports.jsx("span",{className:"dpc-countdown-segment",children:formatTime(ga,aa)}),sa&&jsxRuntimeExports.jsx(Separator$3,{flash:na,line:la,children:ea}),jsxRuntimeExports.jsx("span",{className:"dpc-countdown-segment",children:formatTime(fa,aa)})]})},labelKeys=["dLabel","hLabel","mLabel","sLabel"],Countdown=ea=>{const{className:na,labels:ra=!0,dLabel:oa="Days",hLabel:aa="Hours",mLabel:sa="Minutes",sLabel:la="Seconds",showDays:ca=!0,labelsPosition:ua="below",renderLabel:da,...pa}=ea,ha=[oa,aa,sa,la];return jsxRuntimeExports.jsxs("div",{className:`${na} dpc-countdown`,children:[jsxRuntimeExports.jsx(Timer,{...pa,showDays:ca}),ra&&jsxRuntimeExports.jsx("div",{className:`dpc-countdown-labels dpc-countdown-row dpc-labels-${ua}`,children:ha.map((ga,fa)=>!ca&&fa===0?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[da?.(ga,labelKeys[fa],"dpc-label")||jsxRuntimeExports.jsx("div",{className:"dpc-label",children:ga},labelKeys[fa]),pa.addSeparator!==!1&&fa!==ha.length-1&&jsxRuntimeExports.jsx(Separator$3,{className:"dpc-countdown-timer",line:pa.lineSeparator,children:pa.separator||":"},`${labelKeys[fa]}-sep`)]}))})]})},defaultColors$1x={background:"#222222",border:"#000000",hoverEdit:"white"},colors$1x={dark:defaultColors$1x},defaultSizing$1i={padding:"0 8px",border:"1px",borderRadius:"5px"},sizes$1x={default:defaultSizing$1i},scheme$19=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1x,sizes:sizes$1x},Symbol.toStringTag,{value:"Module"})),FontLabel=dt$1.span.withConfig({displayName:"CompactTypography__FontLabel",componentId:"sc-t4tudf-0"})([""]),FontSymbol=dt$1.span.withConfig({displayName:"CompactTypography__FontSymbol",componentId:"sc-t4tudf-1"})([""]),FontSize=dt$1.span.withConfig({displayName:"CompactTypography__FontSize",componentId:"sc-t4tudf-2"})([""]),FontWeight=dt$1.span.withConfig({displayName:"CompactTypography__FontWeight",componentId:"sc-t4tudf-3"})([""]),InnerPopoverBtn=dt$1(PopoverEditButton).withConfig({displayName:"CompactTypography__InnerPopoverBtn",componentId:"sc-t4tudf-4"})([""]),popoverPlacement$5={yPlacement:"top",xPlacement:"insideRight",space:{top:0,right:-24}},tooltipOptions$4={options:{id:"workspace"}},CompactTypography=ea=>{const{className:na,value:ra,modifyOptionControls:oa,action:aa,selector:sa,...la}=ea,{t:ca}=useTranslation(),[ua,da]=reactExports.useState(!1),{setOpen:pa,open:ha}=reactExports.useContext(PopoverOpenStateContext);reactExports.useEffect(()=>{ha||da(!1)},[ha]);const ga=reactExports.useCallback(()=>{pa(!1),da(!1)},[pa]),fa=reactExports.useCallback(()=>{pa(!0),da(!0)},[pa]);if(!ra)return null;const{font:ma,fontVariant:va,fontSize:xa}=ra,ya=oa?.(typographyOptionControls({action:aa,selector:sa}))||typographyOptionControls({action:aa,selector:sa});ya[ya.length-1].border=void 0;const Aa=va?.toString().replace("italic","");return jsxRuntimeExports.jsxs("div",{className:na,onClick:ua?void 0:fa,children:[jsxRuntimeExports.jsx(FontSymbol,{style:{fontFamily:ma,fontWeight:Aa},children:"Ag"}),jsxRuntimeExports.jsx(FontLabel,{children:ma}),jsxRuntimeExports.jsx(FontWeight,{children:fontWeightNames[Aa]}),jsxRuntimeExports.jsxs(FontSize,{children:[limitFloatRange$2(xa,2),"px"]}),jsxRuntimeExports.jsxs(Popover$3,{...la,inViewportOptions:popoverPlacement$5,onOpen:fa,onClose:ga,open:ua,onOutsideClick:ga,handler:jsxRuntimeExports.jsx(PopoverEditButton,{onClick:()=>pa(!ua),children:ca("Edit")}),children:[jsxRuntimeExports.jsx(InnerPopoverBtn,{onClick:ga,children:ca("Close")}),jsxRuntimeExports.jsx(OCManager,{optionControls:ya,fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$4})]})]})},theme$2S=withTheme(scheme$19),CompactTypography$1=dt$1(CompactTypography).withConfig({displayName:"CompactTypography",componentId:"sc-t4tudf-5"})(["cursor:pointer;display:flex;border:solid;font-size:11px;column-gap:10px;max-width:100%;height:32px;justify-content:space-between;align-items:center;","{cursor:default;display:inline-flex;> ","{padding:0;}}","{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:70px;flex:1;}"," "," ","{position:absolute;top:15px;right:15px;z-index:2;}"],Popover$3,PopoverWrapper$1,FontLabel,theme$2S.colors(ea=>lt$1(["background-color:",";border-color:",";&:hover{","{color:",";}}"],ea.background,ea.border,PopoverEditButton,ea.hoverEdit)),theme$2S.sizes(ea=>lt$1(["padding:",";border-width:",";border-radius:",";"],ea.padding,ea.border,ea.borderRadius)),InnerPopoverBtn),monthsList=[{value:"0",label:i18next.t("January")},{value:"1",label:i18next.t("February")},{value:"2",label:i18next.t("March")},{value:"3",label:i18next.t("April")},{value:"4",label:i18next.t("May")},{value:"5",label:i18next.t("June")},{value:"6",label:i18next.t("July")},{value:"7",label:i18next.t("August")},{value:"8",label:i18next.t("September")},{value:"9",label:i18next.t("October")},{value:"10",label:i18next.t("November")},{value:"11",label:i18next.t("December")}],weekList=[{value:"sunday",label:i18next.t("Sunday")},{value:"monday",label:i18next.t("Monday")},{value:"tuesday",label:i18next.t("Tuesday")},{value:"wednesday",label:i18next.t("Wednesday")},{value:"thursday",label:i18next.t("Thursday")},{value:"friday",label:i18next.t("Friday")},{value:"saturday",label:i18next.t("Saturday")}],parseDate=ea=>{const na=ea.getHours(),ra=ea.getMinutes(),oa=ea.getSeconds(),aa=ea.toLocaleString("en-US",{hour:"numeric",hour12:!0,timeZoneName:"short"}).split(" ")[1],sa=ea.getFullYear(),la=ea.getMonth(),ca=ea.getDate();return{year:sa,month:la,day:ca,hour:na,minute:ra,second:oa,period:aa}},convertTo12HourFormat=ea=>{let na="AM",ra=ea;return ra>=12&&(na="PM",ra>12&&(ra-=12)),ra===0&&(ra=12),{hour:ra,period:na}},convertTo24HourFormat=(ea,na)=>{let ra=ea;return na==="AM"&&ra===12?ra=0:na==="PM"&&ra<12&&(ra+=12),ra},getMonthName=ea=>{const na=ea.getMonth().toString();return monthsList.find(ra=>ra.value===na)?.label},convertDateToUTC=ea=>{const na=new Date(ea),ra=na.getUTCFullYear(),oa=(na.getUTCMonth()+1).toString().padStart(2,"0"),aa=na.getUTCDate().toString().padStart(2,"0"),sa=na.getUTCHours().toString().padStart(2,"0"),la=na.getUTCMinutes().toString().padStart(2,"0"),ca=na.getUTCSeconds().toString().padStart(2,"0");return`${ra}-${oa}-${aa} ${sa}:${la}:${ca}`},convertUTCtoDate=ea=>{const na=ea.split(" "),ra=na[0].split("-"),oa=na[1].split(":"),aa=parseInt(ra[0],10),sa=parseInt(ra[1],10)-1,la=parseInt(ra[2],10),ca=parseInt(oa[0],10),ua=parseInt(oa[1],10),da=parseInt(oa[2],10),pa=new Date(aa,sa,la,ca,ua,da),ha=pa.getTimezoneOffset()*60*1e3,ga=pa.getTime()-ha;return new Date(ga)};function toInteger(ea){if(ea===null||ea===!0||ea===!1)return NaN;var na=Number(ea);return isNaN(na)?na:na<0?Math.ceil(na):Math.floor(na)}function requiredArgs(ea,na){if(na.length<ea)throw new TypeError(ea+" argument"+(ea>1?"s":"")+" required, but only "+na.length+" present")}function toDate(ea){requiredArgs(1,arguments);var na=Object.prototype.toString.call(ea);return ea instanceof Date||_typeof$3(ea)==="object"&&na==="[object Date]"?new Date(ea.getTime()):typeof ea=="number"||na==="[object Number]"?new Date(ea):((typeof ea=="string"||na==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function addDays(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toInteger(na);return isNaN(oa)?new Date(NaN):(oa&&ra.setDate(ra.getDate()+oa),ra)}function addMonths(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toInteger(na);if(isNaN(oa))return new Date(NaN);if(!oa)return ra;var aa=ra.getDate(),sa=new Date(ra.getTime());sa.setMonth(ra.getMonth()+oa+1,0);var la=sa.getDate();return aa>=la?sa:(ra.setFullYear(sa.getFullYear(),sa.getMonth(),aa),ra)}function addMilliseconds(ea,na){requiredArgs(2,arguments);var ra=toDate(ea).getTime(),oa=toInteger(na);return new Date(ra+oa)}var defaultOptions$2={};function getDefaultOptions(){return defaultOptions$2}function startOfWeek(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=getDefaultOptions(),ha=toInteger((ra=(oa=(aa=(sa=na?.weekStartsOn)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.weekStartsOn)!==null&&aa!==void 0?aa:pa.weekStartsOn)!==null&&oa!==void 0?oa:(ua=pa.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.weekStartsOn)!==null&&ra!==void 0?ra:0);if(!(ha>=0&&ha<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ga=toDate(ea),fa=ga.getDay(),ma=(fa<ha?7:0)+fa-ha;return ga.setDate(ga.getDate()-ma),ga.setHours(0,0,0,0),ga}function startOfISOWeek(ea){return requiredArgs(1,arguments),startOfWeek(ea,{weekStartsOn:1})}function getISOWeekYear(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getFullYear(),oa=new Date(0);oa.setFullYear(ra+1,0,4),oa.setHours(0,0,0,0);var aa=startOfISOWeek(oa),sa=new Date(0);sa.setFullYear(ra,0,4),sa.setHours(0,0,0,0);var la=startOfISOWeek(sa);return na.getTime()>=aa.getTime()?ra+1:na.getTime()>=la.getTime()?ra:ra-1}function startOfISOWeekYear(ea){requiredArgs(1,arguments);var na=getISOWeekYear(ea),ra=new Date(0);ra.setFullYear(na,0,4),ra.setHours(0,0,0,0);var oa=startOfISOWeek(ra);return oa}function getTimezoneOffsetInMilliseconds(ea){var na=new Date(Date.UTC(ea.getFullYear(),ea.getMonth(),ea.getDate(),ea.getHours(),ea.getMinutes(),ea.getSeconds(),ea.getMilliseconds()));return na.setUTCFullYear(ea.getFullYear()),ea.getTime()-na.getTime()}function startOfDay(ea){requiredArgs(1,arguments);var na=toDate(ea);return na.setHours(0,0,0,0),na}var MILLISECONDS_IN_DAY$1=864e5;function differenceInCalendarDays(ea,na){requiredArgs(2,arguments);var ra=startOfDay(ea),oa=startOfDay(na),aa=ra.getTime()-getTimezoneOffsetInMilliseconds(ra),sa=oa.getTime()-getTimezoneOffsetInMilliseconds(oa);return Math.round((aa-sa)/MILLISECONDS_IN_DAY$1)}function addWeeks(ea,na){requiredArgs(2,arguments);var ra=toInteger(na),oa=ra*7;return addDays(ea,oa)}function addYears(ea,na){requiredArgs(2,arguments);var ra=toInteger(na);return addMonths(ea,ra*12)}function max(ea){requiredArgs(1,arguments);var na;if(ea&&typeof ea.forEach=="function")na=ea;else if(_typeof$3(ea)==="object"&&ea!==null)na=Array.prototype.slice.call(ea);else return new Date(NaN);var ra;return na.forEach(function(oa){var aa=toDate(oa);(ra===void 0||ra<aa||isNaN(Number(aa)))&&(ra=aa)}),ra||new Date(NaN)}function min(ea){requiredArgs(1,arguments);var na;if(ea&&typeof ea.forEach=="function")na=ea;else if(_typeof$3(ea)==="object"&&ea!==null)na=Array.prototype.slice.call(ea);else return new Date(NaN);var ra;return na.forEach(function(oa){var aa=toDate(oa);(ra===void 0||ra>aa||isNaN(aa.getDate()))&&(ra=aa)}),ra||new Date(NaN)}function isSameDay(ea,na){requiredArgs(2,arguments);var ra=startOfDay(ea),oa=startOfDay(na);return ra.getTime()===oa.getTime()}function isDate(ea){return requiredArgs(1,arguments),ea instanceof Date||_typeof$3(ea)==="object"&&Object.prototype.toString.call(ea)==="[object Date]"}function isValid(ea){if(requiredArgs(1,arguments),!isDate(ea)&&typeof ea!="number")return!1;var na=toDate(ea);return!isNaN(Number(na))}function differenceInCalendarMonths(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toDate(na),aa=ra.getFullYear()-oa.getFullYear(),sa=ra.getMonth()-oa.getMonth();return aa*12+sa}var MILLISECONDS_IN_WEEK$4=6048e5;function differenceInCalendarWeeks(ea,na,ra){requiredArgs(2,arguments);var oa=startOfWeek(ea,ra),aa=startOfWeek(na,ra),sa=oa.getTime()-getTimezoneOffsetInMilliseconds(oa),la=aa.getTime()-getTimezoneOffsetInMilliseconds(aa);return Math.round((sa-la)/MILLISECONDS_IN_WEEK$4)}function endOfMonth(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getMonth();return na.setFullYear(na.getFullYear(),ra+1,0),na.setHours(23,59,59,999),na}function startOfMonth(ea){requiredArgs(1,arguments);var na=toDate(ea);return na.setDate(1),na.setHours(0,0,0,0),na}function startOfYear(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=new Date(0);return ra.setFullYear(na.getFullYear(),0,1),ra.setHours(0,0,0,0),ra}function endOfWeek(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=getDefaultOptions(),ha=toInteger((ra=(oa=(aa=(sa=na?.weekStartsOn)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.weekStartsOn)!==null&&aa!==void 0?aa:pa.weekStartsOn)!==null&&oa!==void 0?oa:(ua=pa.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.weekStartsOn)!==null&&ra!==void 0?ra:0);if(!(ha>=0&&ha<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ga=toDate(ea),fa=ga.getDay(),ma=(fa<ha?-7:0)+6-(fa-ha);return ga.setDate(ga.getDate()+ma),ga.setHours(23,59,59,999),ga}function endOfISOWeek(ea){return requiredArgs(1,arguments),endOfWeek(ea,{weekStartsOn:1})}function subMilliseconds(ea,na){requiredArgs(2,arguments);var ra=toInteger(na);return addMilliseconds(ea,-ra)}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getTime();na.setUTCMonth(0,1),na.setUTCHours(0,0,0,0);var oa=na.getTime(),aa=ra-oa;return Math.floor(aa/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(ea){requiredArgs(1,arguments);var na=1,ra=toDate(ea),oa=ra.getUTCDay(),aa=(oa<na?7:0)+oa-na;return ra.setUTCDate(ra.getUTCDate()-aa),ra.setUTCHours(0,0,0,0),ra}function getUTCISOWeekYear(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getUTCFullYear(),oa=new Date(0);oa.setUTCFullYear(ra+1,0,4),oa.setUTCHours(0,0,0,0);var aa=startOfUTCISOWeek(oa),sa=new Date(0);sa.setUTCFullYear(ra,0,4),sa.setUTCHours(0,0,0,0);var la=startOfUTCISOWeek(sa);return na.getTime()>=aa.getTime()?ra+1:na.getTime()>=la.getTime()?ra:ra-1}function startOfUTCISOWeekYear(ea){requiredArgs(1,arguments);var na=getUTCISOWeekYear(ea),ra=new Date(0);ra.setUTCFullYear(na,0,4),ra.setUTCHours(0,0,0,0);var oa=startOfUTCISOWeek(ra);return oa}var MILLISECONDS_IN_WEEK$3=6048e5;function getUTCISOWeek(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=startOfUTCISOWeek(na).getTime()-startOfUTCISOWeekYear(na).getTime();return Math.round(ra/MILLISECONDS_IN_WEEK$3)+1}function startOfUTCWeek(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=getDefaultOptions(),ha=toInteger((ra=(oa=(aa=(sa=na?.weekStartsOn)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.weekStartsOn)!==null&&aa!==void 0?aa:pa.weekStartsOn)!==null&&oa!==void 0?oa:(ua=pa.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.weekStartsOn)!==null&&ra!==void 0?ra:0);if(!(ha>=0&&ha<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var ga=toDate(ea),fa=ga.getUTCDay(),ma=(fa<ha?7:0)+fa-ha;return ga.setUTCDate(ga.getUTCDate()-ma),ga.setUTCHours(0,0,0,0),ga}function getUTCWeekYear(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=toDate(ea),ha=pa.getUTCFullYear(),ga=getDefaultOptions(),fa=toInteger((ra=(oa=(aa=(sa=na?.firstWeekContainsDate)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.firstWeekContainsDate)!==null&&aa!==void 0?aa:ga.firstWeekContainsDate)!==null&&oa!==void 0?oa:(ua=ga.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.firstWeekContainsDate)!==null&&ra!==void 0?ra:1);if(!(fa>=1&&fa<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ma=new Date(0);ma.setUTCFullYear(ha+1,0,fa),ma.setUTCHours(0,0,0,0);var va=startOfUTCWeek(ma,na),xa=new Date(0);xa.setUTCFullYear(ha,0,fa),xa.setUTCHours(0,0,0,0);var ya=startOfUTCWeek(xa,na);return pa.getTime()>=va.getTime()?ha+1:pa.getTime()>=ya.getTime()?ha:ha-1}function startOfUTCWeekYear(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=getDefaultOptions(),ha=toInteger((ra=(oa=(aa=(sa=na?.firstWeekContainsDate)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.firstWeekContainsDate)!==null&&aa!==void 0?aa:pa.firstWeekContainsDate)!==null&&oa!==void 0?oa:(ua=pa.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.firstWeekContainsDate)!==null&&ra!==void 0?ra:1),ga=getUTCWeekYear(ea,na),fa=new Date(0);fa.setUTCFullYear(ga,0,ha),fa.setUTCHours(0,0,0,0);var ma=startOfUTCWeek(fa,na);return ma}var MILLISECONDS_IN_WEEK$2=6048e5;function getUTCWeek(ea,na){requiredArgs(1,arguments);var ra=toDate(ea),oa=startOfUTCWeek(ra,na).getTime()-startOfUTCWeekYear(ra,na).getTime();return Math.round(oa/MILLISECONDS_IN_WEEK$2)+1}function addLeadingZeros(ea,na){for(var ra=ea<0?"-":"",oa=Math.abs(ea).toString();oa.length<na;)oa="0"+oa;return ra+oa}var formatters$2={y:function(na,ra){var oa=na.getUTCFullYear(),aa=oa>0?oa:1-oa;return addLeadingZeros(ra==="yy"?aa%100:aa,ra.length)},M:function(na,ra){var oa=na.getUTCMonth();return ra==="M"?String(oa+1):addLeadingZeros(oa+1,2)},d:function(na,ra){return addLeadingZeros(na.getUTCDate(),ra.length)},a:function(na,ra){var oa=na.getUTCHours()/12>=1?"pm":"am";switch(ra){case"a":case"aa":return oa.toUpperCase();case"aaa":return oa;case"aaaaa":return oa[0];case"aaaa":default:return oa==="am"?"a.m.":"p.m."}},h:function(na,ra){return addLeadingZeros(na.getUTCHours()%12||12,ra.length)},H:function(na,ra){return addLeadingZeros(na.getUTCHours(),ra.length)},m:function(na,ra){return addLeadingZeros(na.getUTCMinutes(),ra.length)},s:function(na,ra){return addLeadingZeros(na.getUTCSeconds(),ra.length)},S:function(na,ra){var oa=ra.length,aa=na.getUTCMilliseconds(),sa=Math.floor(aa*Math.pow(10,oa-3));return addLeadingZeros(sa,ra.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(na,ra,oa){var aa=na.getUTCFullYear()>0?1:0;switch(ra){case"G":case"GG":case"GGG":return oa.era(aa,{width:"abbreviated"});case"GGGGG":return oa.era(aa,{width:"narrow"});case"GGGG":default:return oa.era(aa,{width:"wide"})}},y:function(na,ra,oa){if(ra==="yo"){var aa=na.getUTCFullYear(),sa=aa>0?aa:1-aa;return oa.ordinalNumber(sa,{unit:"year"})}return formatters$2.y(na,ra)},Y:function(na,ra,oa,aa){var sa=getUTCWeekYear(na,aa),la=sa>0?sa:1-sa;if(ra==="YY"){var ca=la%100;return addLeadingZeros(ca,2)}return ra==="Yo"?oa.ordinalNumber(la,{unit:"year"}):addLeadingZeros(la,ra.length)},R:function(na,ra){var oa=getUTCISOWeekYear(na);return addLeadingZeros(oa,ra.length)},u:function(na,ra){var oa=na.getUTCFullYear();return addLeadingZeros(oa,ra.length)},Q:function(na,ra,oa){var aa=Math.ceil((na.getUTCMonth()+1)/3);switch(ra){case"Q":return String(aa);case"QQ":return addLeadingZeros(aa,2);case"Qo":return oa.ordinalNumber(aa,{unit:"quarter"});case"QQQ":return oa.quarter(aa,{width:"abbreviated",context:"formatting"});case"QQQQQ":return oa.quarter(aa,{width:"narrow",context:"formatting"});case"QQQQ":default:return oa.quarter(aa,{width:"wide",context:"formatting"})}},q:function(na,ra,oa){var aa=Math.ceil((na.getUTCMonth()+1)/3);switch(ra){case"q":return String(aa);case"qq":return addLeadingZeros(aa,2);case"qo":return oa.ordinalNumber(aa,{unit:"quarter"});case"qqq":return oa.quarter(aa,{width:"abbreviated",context:"standalone"});case"qqqqq":return oa.quarter(aa,{width:"narrow",context:"standalone"});case"qqqq":default:return oa.quarter(aa,{width:"wide",context:"standalone"})}},M:function(na,ra,oa){var aa=na.getUTCMonth();switch(ra){case"M":case"MM":return formatters$2.M(na,ra);case"Mo":return oa.ordinalNumber(aa+1,{unit:"month"});case"MMM":return oa.month(aa,{width:"abbreviated",context:"formatting"});case"MMMMM":return oa.month(aa,{width:"narrow",context:"formatting"});case"MMMM":default:return oa.month(aa,{width:"wide",context:"formatting"})}},L:function(na,ra,oa){var aa=na.getUTCMonth();switch(ra){case"L":return String(aa+1);case"LL":return addLeadingZeros(aa+1,2);case"Lo":return oa.ordinalNumber(aa+1,{unit:"month"});case"LLL":return oa.month(aa,{width:"abbreviated",context:"standalone"});case"LLLLL":return oa.month(aa,{width:"narrow",context:"standalone"});case"LLLL":default:return oa.month(aa,{width:"wide",context:"standalone"})}},w:function(na,ra,oa,aa){var sa=getUTCWeek(na,aa);return ra==="wo"?oa.ordinalNumber(sa,{unit:"week"}):addLeadingZeros(sa,ra.length)},I:function(na,ra,oa){var aa=getUTCISOWeek(na);return ra==="Io"?oa.ordinalNumber(aa,{unit:"week"}):addLeadingZeros(aa,ra.length)},d:function(na,ra,oa){return ra==="do"?oa.ordinalNumber(na.getUTCDate(),{unit:"date"}):formatters$2.d(na,ra)},D:function(na,ra,oa){var aa=getUTCDayOfYear(na);return ra==="Do"?oa.ordinalNumber(aa,{unit:"dayOfYear"}):addLeadingZeros(aa,ra.length)},E:function(na,ra,oa){var aa=na.getUTCDay();switch(ra){case"E":case"EE":case"EEE":return oa.day(aa,{width:"abbreviated",context:"formatting"});case"EEEEE":return oa.day(aa,{width:"narrow",context:"formatting"});case"EEEEEE":return oa.day(aa,{width:"short",context:"formatting"});case"EEEE":default:return oa.day(aa,{width:"wide",context:"formatting"})}},e:function(na,ra,oa,aa){var sa=na.getUTCDay(),la=(sa-aa.weekStartsOn+8)%7||7;switch(ra){case"e":return String(la);case"ee":return addLeadingZeros(la,2);case"eo":return oa.ordinalNumber(la,{unit:"day"});case"eee":return oa.day(sa,{width:"abbreviated",context:"formatting"});case"eeeee":return oa.day(sa,{width:"narrow",context:"formatting"});case"eeeeee":return oa.day(sa,{width:"short",context:"formatting"});case"eeee":default:return oa.day(sa,{width:"wide",context:"formatting"})}},c:function(na,ra,oa,aa){var sa=na.getUTCDay(),la=(sa-aa.weekStartsOn+8)%7||7;switch(ra){case"c":return String(la);case"cc":return addLeadingZeros(la,ra.length);case"co":return oa.ordinalNumber(la,{unit:"day"});case"ccc":return oa.day(sa,{width:"abbreviated",context:"standalone"});case"ccccc":return oa.day(sa,{width:"narrow",context:"standalone"});case"cccccc":return oa.day(sa,{width:"short",context:"standalone"});case"cccc":default:return oa.day(sa,{width:"wide",context:"standalone"})}},i:function(na,ra,oa){var aa=na.getUTCDay(),sa=aa===0?7:aa;switch(ra){case"i":return String(sa);case"ii":return addLeadingZeros(sa,ra.length);case"io":return oa.ordinalNumber(sa,{unit:"day"});case"iii":return oa.day(aa,{width:"abbreviated",context:"formatting"});case"iiiii":return oa.day(aa,{width:"narrow",context:"formatting"});case"iiiiii":return oa.day(aa,{width:"short",context:"formatting"});case"iiii":default:return oa.day(aa,{width:"wide",context:"formatting"})}},a:function(na,ra,oa){var aa=na.getUTCHours(),sa=aa/12>=1?"pm":"am";switch(ra){case"a":case"aa":return oa.dayPeriod(sa,{width:"abbreviated",context:"formatting"});case"aaa":return oa.dayPeriod(sa,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return oa.dayPeriod(sa,{width:"narrow",context:"formatting"});case"aaaa":default:return oa.dayPeriod(sa,{width:"wide",context:"formatting"})}},b:function(na,ra,oa){var aa=na.getUTCHours(),sa;switch(aa===12?sa=dayPeriodEnum.noon:aa===0?sa=dayPeriodEnum.midnight:sa=aa/12>=1?"pm":"am",ra){case"b":case"bb":return oa.dayPeriod(sa,{width:"abbreviated",context:"formatting"});case"bbb":return oa.dayPeriod(sa,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return oa.dayPeriod(sa,{width:"narrow",context:"formatting"});case"bbbb":default:return oa.dayPeriod(sa,{width:"wide",context:"formatting"})}},B:function(na,ra,oa){var aa=na.getUTCHours(),sa;switch(aa>=17?sa=dayPeriodEnum.evening:aa>=12?sa=dayPeriodEnum.afternoon:aa>=4?sa=dayPeriodEnum.morning:sa=dayPeriodEnum.night,ra){case"B":case"BB":case"BBB":return oa.dayPeriod(sa,{width:"abbreviated",context:"formatting"});case"BBBBB":return oa.dayPeriod(sa,{width:"narrow",context:"formatting"});case"BBBB":default:return oa.dayPeriod(sa,{width:"wide",context:"formatting"})}},h:function(na,ra,oa){if(ra==="ho"){var aa=na.getUTCHours()%12;return aa===0&&(aa=12),oa.ordinalNumber(aa,{unit:"hour"})}return formatters$2.h(na,ra)},H:function(na,ra,oa){return ra==="Ho"?oa.ordinalNumber(na.getUTCHours(),{unit:"hour"}):formatters$2.H(na,ra)},K:function(na,ra,oa){var aa=na.getUTCHours()%12;return ra==="Ko"?oa.ordinalNumber(aa,{unit:"hour"}):addLeadingZeros(aa,ra.length)},k:function(na,ra,oa){var aa=na.getUTCHours();return aa===0&&(aa=24),ra==="ko"?oa.ordinalNumber(aa,{unit:"hour"}):addLeadingZeros(aa,ra.length)},m:function(na,ra,oa){return ra==="mo"?oa.ordinalNumber(na.getUTCMinutes(),{unit:"minute"}):formatters$2.m(na,ra)},s:function(na,ra,oa){return ra==="so"?oa.ordinalNumber(na.getUTCSeconds(),{unit:"second"}):formatters$2.s(na,ra)},S:function(na,ra){return formatters$2.S(na,ra)},X:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=sa.getTimezoneOffset();if(la===0)return"Z";switch(ra){case"X":return formatTimezoneWithOptionalMinutes(la);case"XXXX":case"XX":return formatTimezone(la);case"XXXXX":case"XXX":default:return formatTimezone(la,":")}},x:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=sa.getTimezoneOffset();switch(ra){case"x":return formatTimezoneWithOptionalMinutes(la);case"xxxx":case"xx":return formatTimezone(la);case"xxxxx":case"xxx":default:return formatTimezone(la,":")}},O:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=sa.getTimezoneOffset();switch(ra){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(la,":");case"OOOO":default:return"GMT"+formatTimezone(la,":")}},z:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=sa.getTimezoneOffset();switch(ra){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(la,":");case"zzzz":default:return"GMT"+formatTimezone(la,":")}},t:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=Math.floor(sa.getTime()/1e3);return addLeadingZeros(la,ra.length)},T:function(na,ra,oa,aa){var sa=aa._originalDate||na,la=sa.getTime();return addLeadingZeros(la,ra.length)}};function formatTimezoneShort(ea,na){var ra=ea>0?"-":"+",oa=Math.abs(ea),aa=Math.floor(oa/60),sa=oa%60;if(sa===0)return ra+String(aa);var la=na;return ra+String(aa)+la+addLeadingZeros(sa,2)}function formatTimezoneWithOptionalMinutes(ea,na){if(ea%60===0){var ra=ea>0?"-":"+";return ra+addLeadingZeros(Math.abs(ea)/60,2)}return formatTimezone(ea,na)}function formatTimezone(ea,na){var ra=na||"",oa=ea>0?"-":"+",aa=Math.abs(ea),sa=addLeadingZeros(Math.floor(aa/60),2),la=addLeadingZeros(aa%60,2);return oa+sa+ra+la}var dateLongFormatter=function(na,ra){switch(na){case"P":return ra.date({width:"short"});case"PP":return ra.date({width:"medium"});case"PPP":return ra.date({width:"long"});case"PPPP":default:return ra.date({width:"full"})}},timeLongFormatter=function(na,ra){switch(na){case"p":return ra.time({width:"short"});case"pp":return ra.time({width:"medium"});case"ppp":return ra.time({width:"long"});case"pppp":default:return ra.time({width:"full"})}},dateTimeLongFormatter=function(na,ra){var oa=na.match(/(P+)(p+)?/)||[],aa=oa[1],sa=oa[2];if(!sa)return dateLongFormatter(na,ra);var la;switch(aa){case"P":la=ra.dateTime({width:"short"});break;case"PP":la=ra.dateTime({width:"medium"});break;case"PPP":la=ra.dateTime({width:"long"});break;case"PPPP":default:la=ra.dateTime({width:"full"});break}return la.replace("{{date}}",dateLongFormatter(aa,ra)).replace("{{time}}",timeLongFormatter(sa,ra))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(ea){return protectedDayOfYearTokens.indexOf(ea)!==-1}function isProtectedWeekYearToken(ea){return protectedWeekYearTokens.indexOf(ea)!==-1}function throwProtectedError(ea,na,ra){if(ea==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(na,"`) for formatting years to the input `").concat(ra,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(ea==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(na,"`) for formatting years to the input `").concat(ra,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(ea==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(na,"`) for formatting days of the month to the input `").concat(ra,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(ea==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(na,"`) for formatting days of the month to the input `").concat(ra,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(na,ra,oa){var aa,sa=formatDistanceLocale[na];return typeof sa=="string"?aa=sa:ra===1?aa=sa.one:aa=sa.other.replace("{{count}}",ra.toString()),oa!=null&&oa.addSuffix?oa.comparison&&oa.comparison>0?"in "+aa:aa+" ago":aa};function buildFormatLongFn(ea){return function(){var na=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ra=na.width?String(na.width):ea.defaultWidth,oa=ea.formats[ra]||ea.formats[ea.defaultWidth];return oa}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(na,ra,oa,aa){return formatRelativeLocale[na]};function buildLocalizeFn(ea){return function(na,ra){var oa=ra!=null&&ra.context?String(ra.context):"standalone",aa;if(oa==="formatting"&&ea.formattingValues){var sa=ea.defaultFormattingWidth||ea.defaultWidth,la=ra!=null&&ra.width?String(ra.width):sa;aa=ea.formattingValues[la]||ea.formattingValues[sa]}else{var ca=ea.defaultWidth,ua=ra!=null&&ra.width?String(ra.width):ea.defaultWidth;aa=ea.values[ua]||ea.values[ca]}var da=ea.argumentCallback?ea.argumentCallback(na):na;return aa[da]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(na,ra){var oa=Number(na),aa=oa%100;if(aa>20||aa<10)switch(aa%10){case 1:return oa+"st";case 2:return oa+"nd";case 3:return oa+"rd"}return oa+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(na){return na-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(ea){return function(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa=ra.width,aa=oa&&ea.matchPatterns[oa]||ea.matchPatterns[ea.defaultMatchWidth],sa=na.match(aa);if(!sa)return null;var la=sa[0],ca=oa&&ea.parsePatterns[oa]||ea.parsePatterns[ea.defaultParseWidth],ua=Array.isArray(ca)?findIndex(ca,function(ha){return ha.test(la)}):findKey(ca,function(ha){return ha.test(la)}),da;da=ea.valueCallback?ea.valueCallback(ua):ua,da=ra.valueCallback?ra.valueCallback(da):da;var pa=na.slice(la.length);return{value:da,rest:pa}}}function findKey(ea,na){for(var ra in ea)if(ea.hasOwnProperty(ra)&&na(ea[ra]))return ra}function findIndex(ea,na){for(var ra=0;ra<ea.length;ra++)if(na(ea[ra]))return ra}function buildMatchPatternFn(ea){return function(na){var ra=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa=na.match(ea.matchPattern);if(!oa)return null;var aa=oa[0],sa=na.match(ea.parsePattern);if(!sa)return null;var la=ea.valueCallback?ea.valueCallback(sa[0]):sa[0];la=ra.valueCallback?ra.valueCallback(la):la;var ca=na.slice(aa.length);return{value:la,rest:ca}}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(na){return parseInt(na,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(na){return na+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},locale={code:"en-US",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(ea,na,ra){var oa,aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va,xa,ya,Aa,Ca,Sa;requiredArgs(2,arguments);var wa=String(na),ba=getDefaultOptions(),Ea=(oa=(aa=ra?.locale)!==null&&aa!==void 0?aa:ba.locale)!==null&&oa!==void 0?oa:locale,$a=toInteger((sa=(la=(ca=(ua=ra?.firstWeekContainsDate)!==null&&ua!==void 0?ua:ra==null||(da=ra.locale)===null||da===void 0||(pa=da.options)===null||pa===void 0?void 0:pa.firstWeekContainsDate)!==null&&ca!==void 0?ca:ba.firstWeekContainsDate)!==null&&la!==void 0?la:(ha=ba.locale)===null||ha===void 0||(ga=ha.options)===null||ga===void 0?void 0:ga.firstWeekContainsDate)!==null&&sa!==void 0?sa:1);if(!($a>=1&&$a<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ma=toInteger((fa=(ma=(va=(xa=ra?.weekStartsOn)!==null&&xa!==void 0?xa:ra==null||(ya=ra.locale)===null||ya===void 0||(Aa=ya.options)===null||Aa===void 0?void 0:Aa.weekStartsOn)!==null&&va!==void 0?va:ba.weekStartsOn)!==null&&ma!==void 0?ma:(Ca=ba.locale)===null||Ca===void 0||(Sa=Ca.options)===null||Sa===void 0?void 0:Sa.weekStartsOn)!==null&&fa!==void 0?fa:0);if(!(Ma>=0&&Ma<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ea.localize)throw new RangeError("locale must contain localize property");if(!Ea.formatLong)throw new RangeError("locale must contain formatLong property");var Ia=toDate(ea);if(!isValid(Ia))throw new RangeError("Invalid time value");var Oa=getTimezoneOffsetInMilliseconds(Ia),Da=subMilliseconds(Ia,Oa),Ta={firstWeekContainsDate:$a,weekStartsOn:Ma,locale:Ea,_originalDate:Ia},_a=wa.match(longFormattingTokensRegExp).map(function(La){var Na=La[0];if(Na==="p"||Na==="P"){var za=longFormatters[Na];return za(La,Ea.formatLong)}return La}).join("").match(formattingTokensRegExp).map(function(La){if(La==="''")return"'";var Na=La[0];if(Na==="'")return cleanEscapedString(La);var za=formatters$1[Na];if(za)return!(ra!=null&&ra.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(La)&&throwProtectedError(La,na,String(ea)),!(ra!=null&&ra.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(La)&&throwProtectedError(La,na,String(ea)),za(Da,La,Ea.localize,Ta);if(Na.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Na+"`");return La}).join("");return _a}function cleanEscapedString(ea){var na=ea.match(escapedStringRegExp);return na?na[1].replace(doubleQuoteRegExp,"'"):ea}function getDaysInMonth(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getFullYear(),oa=na.getMonth(),aa=new Date(0);return aa.setFullYear(ra,oa+1,0),aa.setHours(0,0,0,0),aa.getDate()}var MILLISECONDS_IN_WEEK$1=6048e5;function getISOWeek(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=startOfISOWeek(na).getTime()-startOfISOWeekYear(na).getTime();return Math.round(ra/MILLISECONDS_IN_WEEK$1)+1}function getTime(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getTime();return ra}function getUnixTime(ea){return requiredArgs(1,arguments),Math.floor(getTime(ea)/1e3)}function getWeekYear(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=toDate(ea),ha=pa.getFullYear(),ga=getDefaultOptions(),fa=toInteger((ra=(oa=(aa=(sa=na?.firstWeekContainsDate)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.firstWeekContainsDate)!==null&&aa!==void 0?aa:ga.firstWeekContainsDate)!==null&&oa!==void 0?oa:(ua=ga.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.firstWeekContainsDate)!==null&&ra!==void 0?ra:1);if(!(fa>=1&&fa<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ma=new Date(0);ma.setFullYear(ha+1,0,fa),ma.setHours(0,0,0,0);var va=startOfWeek(ma,na),xa=new Date(0);xa.setFullYear(ha,0,fa),xa.setHours(0,0,0,0);var ya=startOfWeek(xa,na);return pa.getTime()>=va.getTime()?ha+1:pa.getTime()>=ya.getTime()?ha:ha-1}function startOfWeekYear(ea,na){var ra,oa,aa,sa,la,ca,ua,da;requiredArgs(1,arguments);var pa=getDefaultOptions(),ha=toInteger((ra=(oa=(aa=(sa=na?.firstWeekContainsDate)!==null&&sa!==void 0?sa:na==null||(la=na.locale)===null||la===void 0||(ca=la.options)===null||ca===void 0?void 0:ca.firstWeekContainsDate)!==null&&aa!==void 0?aa:pa.firstWeekContainsDate)!==null&&oa!==void 0?oa:(ua=pa.locale)===null||ua===void 0||(da=ua.options)===null||da===void 0?void 0:da.firstWeekContainsDate)!==null&&ra!==void 0?ra:1),ga=getWeekYear(ea,na),fa=new Date(0);fa.setFullYear(ga,0,ha),fa.setHours(0,0,0,0);var ma=startOfWeek(fa,na);return ma}var MILLISECONDS_IN_WEEK=6048e5;function getWeek(ea,na){requiredArgs(1,arguments);var ra=toDate(ea),oa=startOfWeek(ra,na).getTime()-startOfWeekYear(ra,na).getTime();return Math.round(oa/MILLISECONDS_IN_WEEK)+1}function lastDayOfMonth(ea){requiredArgs(1,arguments);var na=toDate(ea),ra=na.getMonth();return na.setFullYear(na.getFullYear(),ra+1,0),na.setHours(0,0,0,0),na}function getWeeksInMonth(ea,na){return requiredArgs(1,arguments),differenceInCalendarWeeks(lastDayOfMonth(ea),startOfMonth(ea),na)+1}function isAfter$1(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toDate(na);return ra.getTime()>oa.getTime()}function isBefore(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toDate(na);return ra.getTime()<oa.getTime()}function isSameMonth(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toDate(na);return ra.getFullYear()===oa.getFullYear()&&ra.getMonth()===oa.getMonth()}function isSameYear(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toDate(na);return ra.getFullYear()===oa.getFullYear()}function subDays(ea,na){requiredArgs(2,arguments);var ra=toInteger(na);return addDays(ea,-ra)}function setMonth(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toInteger(na),aa=ra.getFullYear(),sa=ra.getDate(),la=new Date(0);la.setFullYear(aa,oa,15),la.setHours(0,0,0,0);var ca=getDaysInMonth(la);return ra.setMonth(oa,Math.min(sa,ca)),ra}function setYear(ea,na){requiredArgs(2,arguments);var ra=toDate(ea),oa=toInteger(na);return isNaN(ra.getTime())?new Date(NaN):(ra.setFullYear(oa),ra)}var __assign$1=function(){return __assign$1=Object.assign||function(na){for(var ra,oa=1,aa=arguments.length;oa<aa;oa++){ra=arguments[oa];for(var sa in ra)Object.prototype.hasOwnProperty.call(ra,sa)&&(na[sa]=ra[sa])}return na},__assign$1.apply(this,arguments)};function __rest(ea,na){var ra={};for(var oa in ea)Object.prototype.hasOwnProperty.call(ea,oa)&&na.indexOf(oa)<0&&(ra[oa]=ea[oa]);if(ea!=null&&typeof Object.getOwnPropertySymbols=="function")for(var aa=0,oa=Object.getOwnPropertySymbols(ea);aa<oa.length;aa++)na.indexOf(oa[aa])<0&&Object.prototype.propertyIsEnumerable.call(ea,oa[aa])&&(ra[oa[aa]]=ea[oa[aa]]);return ra}function __spreadArray(ea,na,ra){for(var oa=0,aa=na.length,sa;oa<aa;oa++)(sa||!(oa in na))&&(sa||(sa=Array.prototype.slice.call(na,0,oa)),sa[oa]=na[oa]);return ea.concat(sa||Array.prototype.slice.call(na))}typeof SuppressedError=="function"&&SuppressedError;function isDayPickerMultiple(ea){return ea.mode==="multiple"}function isDayPickerRange(ea){return ea.mode==="range"}function isDayPickerSingle(ea){return ea.mode==="single"}var defaultClassNames={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function formatCaption(ea,na){return format(ea,"LLLL y",na)}function formatDay(ea,na){return format(ea,"d",na)}function formatMonthCaption(ea,na){return format(ea,"LLLL",na)}function formatWeekNumber(ea){return"".concat(ea)}function formatWeekdayName(ea,na){return format(ea,"cccccc",na)}function formatYearCaption(ea,na){return format(ea,"yyyy",na)}var formatters=Object.freeze({__proto__:null,formatCaption,formatDay,formatMonthCaption,formatWeekNumber,formatWeekdayName,formatYearCaption}),labelDay=function(ea,na,ra){return format(ea,"do MMMM (EEEE)",ra)},labelMonthDropdown=function(){return"Month: "},labelNext=function(){return"Go to next month"},labelPrevious=function(){return"Go to previous month"},labelWeekday=function(ea,na){return format(ea,"cccc",na)},labelWeekNumber=function(ea){return"Week n. ".concat(ea)},labelYearDropdown=function(){return"Year: "},labels=Object.freeze({__proto__:null,labelDay,labelMonthDropdown,labelNext,labelPrevious,labelWeekNumber,labelWeekday,labelYearDropdown});function getDefaultContextValues(){var ea="buttons",na=defaultClassNames,ra=locale,oa={},aa={},sa=1,la={},ca=new Date;return{captionLayout:ea,classNames:na,formatters,labels,locale:ra,modifiersClassNames:oa,modifiers:aa,numberOfMonths:sa,styles:la,today:ca,mode:"default"}}function parseFromToProps(ea){var na=ea.fromYear,ra=ea.toYear,oa=ea.fromMonth,aa=ea.toMonth,sa=ea.fromDate,la=ea.toDate;return oa?sa=startOfMonth(oa):na&&(sa=new Date(na,0,1)),aa?la=endOfMonth(aa):ra&&(la=new Date(ra,11,31)),{fromDate:sa?startOfDay(sa):void 0,toDate:la?startOfDay(la):void 0}}var DayPickerContext=reactExports.createContext(void 0);function DayPickerProvider(ea){var na,ra=ea.initialProps,oa=getDefaultContextValues(),aa=parseFromToProps(ra),sa=aa.fromDate,la=aa.toDate,ca=(na=ra.captionLayout)!==null&&na!==void 0?na:oa.captionLayout;ca!=="buttons"&&(!sa||!la)&&(ca="buttons");var ua;(isDayPickerSingle(ra)||isDayPickerMultiple(ra)||isDayPickerRange(ra))&&(ua=ra.onSelect);var da=__assign$1(__assign$1(__assign$1({},oa),ra),{captionLayout:ca,classNames:__assign$1(__assign$1({},oa.classNames),ra.classNames),components:__assign$1({},ra.components),formatters:__assign$1(__assign$1({},oa.formatters),ra.formatters),fromDate:sa,labels:__assign$1(__assign$1({},oa.labels),ra.labels),mode:ra.mode||oa.mode,modifiers:__assign$1(__assign$1({},oa.modifiers),ra.modifiers),modifiersClassNames:__assign$1(__assign$1({},oa.modifiersClassNames),ra.modifiersClassNames),onSelect:ua,styles:__assign$1(__assign$1({},oa.styles),ra.styles),toDate:la});return jsxRuntimeExports.jsx(DayPickerContext.Provider,{value:da,children:ea.children})}function useDayPicker(){var ea=reactExports.useContext(DayPickerContext);if(!ea)throw new Error("useDayPicker must be used within a DayPickerProvider.");return ea}function CaptionLabel$2(ea){var na=useDayPicker(),ra=na.locale,oa=na.classNames,aa=na.styles,sa=na.formatters.formatCaption;return jsxRuntimeExports.jsx("div",{className:oa.caption_label,style:aa.caption_label,"aria-live":"polite",role:"presentation",id:ea.id,children:sa(ea.displayMonth,{locale:ra})})}function IconDropdown(ea){return jsxRuntimeExports.jsx("svg",__assign$1({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},ea,{children:jsxRuntimeExports.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Dropdown$1(ea){var na,ra,oa=ea.onChange,aa=ea.value,sa=ea.children,la=ea.caption,ca=ea.className,ua=ea.style,da=useDayPicker(),pa=(ra=(na=da.components)===null||na===void 0?void 0:na.IconDropdown)!==null&&ra!==void 0?ra:IconDropdown;return jsxRuntimeExports.jsxs("div",{className:ca,style:ua,children:[jsxRuntimeExports.jsx("span",{className:da.classNames.vhidden,children:ea["aria-label"]}),jsxRuntimeExports.jsx("select",{name:ea.name,"aria-label":ea["aria-label"],className:da.classNames.dropdown,style:da.styles.dropdown,value:aa,onChange:oa,children:sa}),jsxRuntimeExports.jsxs("div",{className:da.classNames.caption_label,style:da.styles.caption_label,"aria-hidden":"true",children:[la,jsxRuntimeExports.jsx(pa,{className:da.classNames.dropdown_icon,style:da.styles.dropdown_icon})]})]})}function MonthsDropdown(ea){var na,ra=useDayPicker(),oa=ra.fromDate,aa=ra.toDate,sa=ra.styles,la=ra.locale,ca=ra.formatters.formatMonthCaption,ua=ra.classNames,da=ra.components,pa=ra.labels.labelMonthDropdown;if(!oa)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(!aa)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});var ha=[];if(isSameYear(oa,aa))for(var ga=startOfMonth(oa),fa=oa.getMonth();fa<=aa.getMonth();fa++)ha.push(setMonth(ga,fa));else for(var ga=startOfMonth(new Date),fa=0;fa<=11;fa++)ha.push(setMonth(ga,fa));var ma=function(xa){var ya=Number(xa.target.value),Aa=setMonth(startOfMonth(ea.displayMonth),ya);ea.onChange(Aa)},va=(na=da?.Dropdown)!==null&&na!==void 0?na:Dropdown$1;return jsxRuntimeExports.jsx(va,{name:"months","aria-label":pa(),className:ua.dropdown_month,style:sa.dropdown_month,onChange:ma,value:ea.displayMonth.getMonth(),caption:ca(ea.displayMonth,{locale:la}),children:ha.map(function(xa){return jsxRuntimeExports.jsx("option",{value:xa.getMonth(),children:ca(xa,{locale:la})},xa.getMonth())})})}function YearsDropdown(ea){var na,ra=ea.displayMonth,oa=useDayPicker(),aa=oa.fromDate,sa=oa.toDate,la=oa.locale,ca=oa.styles,ua=oa.classNames,da=oa.components,pa=oa.formatters.formatYearCaption,ha=oa.labels.labelYearDropdown,ga=[];if(!aa)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(!sa)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});for(var fa=aa.getFullYear(),ma=sa.getFullYear(),va=fa;va<=ma;va++)ga.push(setYear(startOfYear(new Date),va));var xa=function(Aa){var Ca=setYear(startOfMonth(ra),Number(Aa.target.value));ea.onChange(Ca)},ya=(na=da?.Dropdown)!==null&&na!==void 0?na:Dropdown$1;return jsxRuntimeExports.jsx(ya,{name:"years","aria-label":ha(),className:ua.dropdown_year,style:ca.dropdown_year,onChange:xa,value:ra.getFullYear(),caption:pa(ra,{locale:la}),children:ga.map(function(Aa){return jsxRuntimeExports.jsx("option",{value:Aa.getFullYear(),children:pa(Aa,{locale:la})},Aa.getFullYear())})})}function useControlledValue(ea,na){var ra=reactExports.useState(ea),oa=ra[0],aa=ra[1],sa=na===void 0?oa:na;return[sa,aa]}function getInitialMonth(ea){var na=ea.month,ra=ea.defaultMonth,oa=ea.today,aa=na||ra||oa||new Date,sa=ea.toDate,la=ea.fromDate,ca=ea.numberOfMonths,ua=ca===void 0?1:ca;if(sa&&differenceInCalendarMonths(sa,aa)<0){var da=-1*(ua-1);aa=addMonths(sa,da)}return la&&differenceInCalendarMonths(aa,la)<0&&(aa=la),startOfMonth(aa)}function useNavigationState(){var ea=useDayPicker(),na=getInitialMonth(ea),ra=useControlledValue(na,ea.month),oa=ra[0],aa=ra[1],sa=function(la){var ca;if(!ea.disableNavigation){var ua=startOfMonth(la);aa(ua),(ca=ea.onMonthChange)===null||ca===void 0||ca.call(ea,ua)}};return[oa,sa]}function getDisplayMonths(ea,na){for(var ra=na.reverseMonths,oa=na.numberOfMonths,aa=startOfMonth(ea),sa=startOfMonth(addMonths(aa,oa)),la=differenceInCalendarMonths(sa,aa),ca=[],ua=0;ua<la;ua++){var da=addMonths(aa,ua);ca.push(da)}return ra&&(ca=ca.reverse()),ca}function getNextMonth(ea,na){if(!na.disableNavigation){var ra=na.toDate,oa=na.pagedNavigation,aa=na.numberOfMonths,sa=aa===void 0?1:aa,la=oa?sa:1,ca=startOfMonth(ea);if(!ra)return addMonths(ca,la);var ua=differenceInCalendarMonths(ra,ea);if(!(ua<sa))return addMonths(ca,la)}}function getPreviousMonth(ea,na){if(!na.disableNavigation){var ra=na.fromDate,oa=na.pagedNavigation,aa=na.numberOfMonths,sa=aa===void 0?1:aa,la=oa?sa:1,ca=startOfMonth(ea);if(!ra)return addMonths(ca,-la);var ua=differenceInCalendarMonths(ca,ra);if(!(ua<=0))return addMonths(ca,-la)}}var NavigationContext=reactExports.createContext(void 0);function NavigationProvider(ea){var na=useDayPicker(),ra=useNavigationState(),oa=ra[0],aa=ra[1],sa=getDisplayMonths(oa,na),la=getNextMonth(oa,na),ca=getPreviousMonth(oa,na),ua=function(ha){return sa.some(function(ga){return isSameMonth(ha,ga)})},da=function(ha,ga){ua(ha)||(ga&&isBefore(ha,ga)?aa(addMonths(ha,1+na.numberOfMonths*-1)):aa(ha))},pa={currentMonth:oa,displayMonths:sa,goToMonth:aa,goToDate:da,previousMonth:ca,nextMonth:la,isDateDisplayed:ua};return jsxRuntimeExports.jsx(NavigationContext.Provider,{value:pa,children:ea.children})}function useNavigation$1(){var ea=reactExports.useContext(NavigationContext);if(!ea)throw new Error("useNavigation must be used within a NavigationProvider");return ea}function CaptionDropdowns(ea){var na,ra=useDayPicker(),oa=ra.classNames,aa=ra.styles,sa=ra.components,la=useNavigation$1().goToMonth,ca=function(pa){la(addMonths(pa,ea.displayIndex?-ea.displayIndex:0))},ua=(na=sa?.CaptionLabel)!==null&&na!==void 0?na:CaptionLabel$2,da=jsxRuntimeExports.jsx(ua,{id:ea.id,displayMonth:ea.displayMonth});return jsxRuntimeExports.jsxs("div",{className:oa.caption_dropdowns,style:aa.caption_dropdowns,children:[jsxRuntimeExports.jsx("div",{className:oa.vhidden,children:da}),jsxRuntimeExports.jsx(MonthsDropdown,{onChange:ca,displayMonth:ea.displayMonth}),jsxRuntimeExports.jsx(YearsDropdown,{onChange:ca,displayMonth:ea.displayMonth})]})}function IconLeft(ea){return jsxRuntimeExports.jsx("svg",__assign$1({width:"16px",height:"16px",viewBox:"0 0 120 120"},ea,{children:jsxRuntimeExports.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function IconRight(ea){return jsxRuntimeExports.jsx("svg",__assign$1({width:"16px",height:"16px",viewBox:"0 0 120 120"},ea,{children:jsxRuntimeExports.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Button$5=reactExports.forwardRef(function(ea,na){var ra=useDayPicker(),oa=ra.classNames,aa=ra.styles,sa=[oa.button_reset,oa.button];ea.className&&sa.push(ea.className);var la=sa.join(" "),ca=__assign$1(__assign$1({},aa.button_reset),aa.button);return ea.style&&Object.assign(ca,ea.style),jsxRuntimeExports.jsx("button",__assign$1({},ea,{ref:na,type:"button",className:la,style:ca}))});function Navigation(ea){var na,ra,oa=useDayPicker(),aa=oa.dir,sa=oa.locale,la=oa.classNames,ca=oa.styles,ua=oa.labels,da=ua.labelPrevious,pa=ua.labelNext,ha=oa.components;if(!ea.nextMonth&&!ea.previousMonth)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});var ga=da(ea.previousMonth,{locale:sa}),fa=[la.nav_button,la.nav_button_previous].join(" "),ma=pa(ea.nextMonth,{locale:sa}),va=[la.nav_button,la.nav_button_next].join(" "),xa=(na=ha?.IconRight)!==null&&na!==void 0?na:IconRight,ya=(ra=ha?.IconLeft)!==null&&ra!==void 0?ra:IconLeft;return jsxRuntimeExports.jsxs("div",{className:la.nav,style:ca.nav,children:[!ea.hidePrevious&&jsxRuntimeExports.jsx(Button$5,{name:"previous-month","aria-label":ga,className:fa,style:ca.nav_button_previous,disabled:!ea.previousMonth,onClick:ea.onPreviousClick,children:aa==="rtl"?jsxRuntimeExports.jsx(xa,{className:la.nav_icon,style:ca.nav_icon}):jsxRuntimeExports.jsx(ya,{className:la.nav_icon,style:ca.nav_icon})}),!ea.hideNext&&jsxRuntimeExports.jsx(Button$5,{name:"next-month","aria-label":ma,className:va,style:ca.nav_button_next,disabled:!ea.nextMonth,onClick:ea.onNextClick,children:aa==="rtl"?jsxRuntimeExports.jsx(ya,{className:la.nav_icon,style:ca.nav_icon}):jsxRuntimeExports.jsx(xa,{className:la.nav_icon,style:ca.nav_icon})})]})}function CaptionNavigation(ea){var na=useDayPicker().numberOfMonths,ra=useNavigation$1(),oa=ra.previousMonth,aa=ra.nextMonth,sa=ra.goToMonth,la=ra.displayMonths,ca=la.findIndex(function(ma){return isSameMonth(ea.displayMonth,ma)}),ua=ca===0,da=ca===la.length-1,pa=na>1&&(ua||!da),ha=na>1&&(da||!ua),ga=function(){oa&&sa(oa)},fa=function(){aa&&sa(aa)};return jsxRuntimeExports.jsx(Navigation,{displayMonth:ea.displayMonth,hideNext:pa,hidePrevious:ha,nextMonth:aa,previousMonth:oa,onPreviousClick:ga,onNextClick:fa})}function Caption$1(ea){var na,ra=useDayPicker(),oa=ra.classNames,aa=ra.disableNavigation,sa=ra.styles,la=ra.captionLayout,ca=ra.components,ua=(na=ca?.CaptionLabel)!==null&&na!==void 0?na:CaptionLabel$2,da;return aa?da=jsxRuntimeExports.jsx(ua,{id:ea.id,displayMonth:ea.displayMonth}):la==="dropdown"?da=jsxRuntimeExports.jsx(CaptionDropdowns,{displayMonth:ea.displayMonth,id:ea.id}):la==="dropdown-buttons"?da=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CaptionDropdowns,{displayMonth:ea.displayMonth,displayIndex:ea.displayIndex,id:ea.id}),jsxRuntimeExports.jsx(CaptionNavigation,{displayMonth:ea.displayMonth,displayIndex:ea.displayIndex,id:ea.id})]}):da=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ua,{id:ea.id,displayMonth:ea.displayMonth,displayIndex:ea.displayIndex}),jsxRuntimeExports.jsx(CaptionNavigation,{displayMonth:ea.displayMonth,id:ea.id})]}),jsxRuntimeExports.jsx("div",{className:oa.caption,style:sa.caption,children:da})}function Footer$5(ea){var na=useDayPicker(),ra=na.footer,oa=na.styles,aa=na.classNames.tfoot;return ra?jsxRuntimeExports.jsx("tfoot",{className:aa,style:oa.tfoot,children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:8,children:ra})})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function getWeekdays(ea,na,ra){for(var oa=ra?startOfISOWeek(new Date):startOfWeek(new Date,{locale:ea,weekStartsOn:na}),aa=[],sa=0;sa<7;sa++){var la=addDays(oa,sa);aa.push(la)}return aa}function HeadRow$2(){var ea=useDayPicker(),na=ea.classNames,ra=ea.styles,oa=ea.showWeekNumber,aa=ea.locale,sa=ea.weekStartsOn,la=ea.ISOWeek,ca=ea.formatters.formatWeekdayName,ua=ea.labels.labelWeekday,da=getWeekdays(aa,sa,la);return jsxRuntimeExports.jsxs("tr",{style:ra.head_row,className:na.head_row,children:[oa&&jsxRuntimeExports.jsx("td",{style:ra.head_cell,className:na.head_cell}),da.map(function(pa,ha){return jsxRuntimeExports.jsx("th",{scope:"col",className:na.head_cell,style:ra.head_cell,"aria-label":ua(pa,{locale:aa}),children:ca(pa,{locale:aa})},ha)})]})}function Head(){var ea,na=useDayPicker(),ra=na.classNames,oa=na.styles,aa=na.components,sa=(ea=aa?.HeadRow)!==null&&ea!==void 0?ea:HeadRow$2;return jsxRuntimeExports.jsx("thead",{style:oa.head,className:ra.head,children:jsxRuntimeExports.jsx(sa,{})})}function DayContent(ea){var na=useDayPicker(),ra=na.locale,oa=na.formatters.formatDay;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:oa(ea.date,{locale:ra})})}var SelectMultipleContext=reactExports.createContext(void 0);function SelectMultipleProvider(ea){if(!isDayPickerMultiple(ea.initialProps)){var na={selected:void 0,modifiers:{disabled:[]}};return jsxRuntimeExports.jsx(SelectMultipleContext.Provider,{value:na,children:ea.children})}return jsxRuntimeExports.jsx(SelectMultipleProviderInternal,{initialProps:ea.initialProps,children:ea.children})}function SelectMultipleProviderInternal(ea){var na=ea.initialProps,ra=ea.children,oa=na.selected,aa=na.min,sa=na.max,la=function(da,pa,ha){var ga,fa;(ga=na.onDayClick)===null||ga===void 0||ga.call(na,da,pa,ha);var ma=!!(pa.selected&&aa&&oa?.length===aa);if(!ma){var va=!!(!pa.selected&&sa&&oa?.length===sa);if(!va){var xa=oa?__spreadArray([],oa):[];if(pa.selected){var ya=xa.findIndex(function(Aa){return isSameDay(da,Aa)});xa.splice(ya,1)}else xa.push(da);(fa=na.onSelect)===null||fa===void 0||fa.call(na,xa,da,pa,ha)}}},ca={disabled:[]};oa&&ca.disabled.push(function(da){var pa=sa&&oa.length>sa-1,ha=oa.some(function(ga){return isSameDay(ga,da)});return!!(pa&&!ha)});var ua={selected:oa,onDayClick:la,modifiers:ca};return jsxRuntimeExports.jsx(SelectMultipleContext.Provider,{value:ua,children:ra})}function useSelectMultiple(){var ea=reactExports.useContext(SelectMultipleContext);if(!ea)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return ea}function addToRange(ea,na){var ra=na||{},oa=ra.from,aa=ra.to;return oa&&aa?isSameDay(aa,ea)&&isSameDay(oa,ea)?void 0:isSameDay(aa,ea)?{from:aa,to:void 0}:isSameDay(oa,ea)?void 0:isAfter$1(oa,ea)?{from:ea,to:aa}:{from:oa,to:ea}:aa?isAfter$1(ea,aa)?{from:aa,to:ea}:{from:ea,to:aa}:oa?isBefore(ea,oa)?{from:ea,to:oa}:{from:oa,to:ea}:{from:ea,to:void 0}}var SelectRangeContext=reactExports.createContext(void 0);function SelectRangeProvider(ea){if(!isDayPickerRange(ea.initialProps)){var na={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return jsxRuntimeExports.jsx(SelectRangeContext.Provider,{value:na,children:ea.children})}return jsxRuntimeExports.jsx(SelectRangeProviderInternal,{initialProps:ea.initialProps,children:ea.children})}function SelectRangeProviderInternal(ea){var na=ea.initialProps,ra=ea.children,oa=na.selected,aa=oa||{},sa=aa.from,la=aa.to,ca=na.min,ua=na.max,da=function(fa,ma,va){var xa,ya;(xa=na.onDayClick)===null||xa===void 0||xa.call(na,fa,ma,va);var Aa=addToRange(fa,oa);(ya=na.onSelect)===null||ya===void 0||ya.call(na,Aa,fa,ma,va)},pa={range_start:[],range_end:[],range_middle:[],disabled:[]};if(sa?(pa.range_start=[sa],la?(pa.range_end=[la],isSameDay(sa,la)||(pa.range_middle=[{after:sa,before:la}])):pa.range_end=[sa]):la&&(pa.range_start=[la],pa.range_end=[la]),ca&&(sa&&!la&&pa.disabled.push({after:subDays(sa,ca-1),before:addDays(sa,ca-1)}),sa&&la&&pa.disabled.push({after:sa,before:addDays(sa,ca-1)}),!sa&&la&&pa.disabled.push({after:subDays(la,ca-1),before:addDays(la,ca-1)})),ua){if(sa&&!la&&(pa.disabled.push({before:addDays(sa,-ua+1)}),pa.disabled.push({after:addDays(sa,ua-1)})),sa&&la){var ha=differenceInCalendarDays(la,sa)+1,ga=ua-ha;pa.disabled.push({before:subDays(sa,ga)}),pa.disabled.push({after:addDays(la,ga)})}!sa&&la&&(pa.disabled.push({before:addDays(la,-ua+1)}),pa.disabled.push({after:addDays(la,ua-1)}))}return jsxRuntimeExports.jsx(SelectRangeContext.Provider,{value:{selected:oa,onDayClick:da,modifiers:pa},children:ra})}function useSelectRange(){var ea=reactExports.useContext(SelectRangeContext);if(!ea)throw new Error("useSelectRange must be used within a SelectRangeProvider");return ea}function matcherToArray(ea){return Array.isArray(ea)?__spreadArray([],ea):ea!==void 0?[ea]:[]}function getCustomModifiers(ea){var na={};return Object.entries(ea).forEach(function(ra){var oa=ra[0],aa=ra[1];na[oa]=matcherToArray(aa)}),na}var InternalModifier;(function(ea){ea.Outside="outside",ea.Disabled="disabled",ea.Selected="selected",ea.Hidden="hidden",ea.Today="today",ea.RangeStart="range_start",ea.RangeEnd="range_end",ea.RangeMiddle="range_middle"})(InternalModifier||(InternalModifier={}));var Selected=InternalModifier.Selected,Disabled=InternalModifier.Disabled,Hidden=InternalModifier.Hidden,Today=InternalModifier.Today,RangeEnd=InternalModifier.RangeEnd,RangeMiddle=InternalModifier.RangeMiddle,RangeStart=InternalModifier.RangeStart,Outside=InternalModifier.Outside;function getInternalModifiers(ea,na,ra){var oa,aa=(oa={},oa[Selected]=matcherToArray(ea.selected),oa[Disabled]=matcherToArray(ea.disabled),oa[Hidden]=matcherToArray(ea.hidden),oa[Today]=[ea.today],oa[RangeEnd]=[],oa[RangeMiddle]=[],oa[RangeStart]=[],oa[Outside]=[],oa);return ea.fromDate&&aa[Disabled].push({before:ea.fromDate}),ea.toDate&&aa[Disabled].push({after:ea.toDate}),isDayPickerMultiple(ea)?aa[Disabled]=aa[Disabled].concat(na.modifiers[Disabled]):isDayPickerRange(ea)&&(aa[Disabled]=aa[Disabled].concat(ra.modifiers[Disabled]),aa[RangeStart]=ra.modifiers[RangeStart],aa[RangeMiddle]=ra.modifiers[RangeMiddle],aa[RangeEnd]=ra.modifiers[RangeEnd]),aa}var ModifiersContext=reactExports.createContext(void 0);function ModifiersProvider(ea){var na=useDayPicker(),ra=useSelectMultiple(),oa=useSelectRange(),aa=getInternalModifiers(na,ra,oa),sa=getCustomModifiers(na.modifiers),la=__assign$1(__assign$1({},aa),sa);return jsxRuntimeExports.jsx(ModifiersContext.Provider,{value:la,children:ea.children})}function useModifiers(){var ea=reactExports.useContext(ModifiersContext);if(!ea)throw new Error("useModifiers must be used within a ModifiersProvider");return ea}function isDateInterval(ea){return!!(ea&&typeof ea=="object"&&"before"in ea&&"after"in ea)}function isDateRange(ea){return!!(ea&&typeof ea=="object"&&"from"in ea)}function isDateAfterType(ea){return!!(ea&&typeof ea=="object"&&"after"in ea)}function isDateBeforeType(ea){return!!(ea&&typeof ea=="object"&&"before"in ea)}function isDayOfWeekType(ea){return!!(ea&&typeof ea=="object"&&"dayOfWeek"in ea)}function isDateInRange(ea,na){var ra,oa=na.from,aa=na.to;if(oa&&aa){var sa=differenceInCalendarDays(aa,oa)<0;sa&&(ra=[aa,oa],oa=ra[0],aa=ra[1]);var la=differenceInCalendarDays(ea,oa)>=0&&differenceInCalendarDays(aa,ea)>=0;return la}return aa?isSameDay(aa,ea):oa?isSameDay(oa,ea):!1}function isDateType(ea){return isDate(ea)}function isArrayOfDates(ea){return Array.isArray(ea)&&ea.every(isDate)}function isMatch(ea,na){return na.some(function(ra){if(typeof ra=="boolean")return ra;if(isDateType(ra))return isSameDay(ea,ra);if(isArrayOfDates(ra))return ra.includes(ea);if(isDateRange(ra))return isDateInRange(ea,ra);if(isDayOfWeekType(ra))return ra.dayOfWeek.includes(ea.getDay());if(isDateInterval(ra)){var oa=differenceInCalendarDays(ra.before,ea),aa=differenceInCalendarDays(ra.after,ea),sa=oa>0,la=aa<0,ca=isAfter$1(ra.before,ra.after);return ca?la&&sa:sa||la}return isDateAfterType(ra)?differenceInCalendarDays(ea,ra.after)>0:isDateBeforeType(ra)?differenceInCalendarDays(ra.before,ea)>0:typeof ra=="function"?ra(ea):!1})}function getActiveModifiers(ea,na,ra){var oa=Object.keys(na).reduce(function(sa,la){var ca=na[la];return isMatch(ea,ca)&&sa.push(la),sa},[]),aa={};return oa.forEach(function(sa){return aa[sa]=!0}),ra&&!isSameMonth(ea,ra)&&(aa.outside=!0),aa}function getInitialFocusTarget(ea,na){for(var ra=startOfMonth(ea[0]),oa=endOfMonth(ea[ea.length-1]),aa,sa,la=ra;la<=oa;){var ca=getActiveModifiers(la,na),ua=!ca.disabled&&!ca.hidden;if(!ua){la=addDays(la,1);continue}if(ca.selected)return la;ca.today&&!sa&&(sa=la),aa||(aa=la),la=addDays(la,1)}return sa||aa}var MAX_RETRY=365;function getNextFocus(ea,na){var ra=na.moveBy,oa=na.direction,aa=na.context,sa=na.modifiers,la=na.retry,ca=la===void 0?{count:0,lastFocused:ea}:la,ua=aa.weekStartsOn,da=aa.fromDate,pa=aa.toDate,ha=aa.locale,ga={day:addDays,week:addWeeks,month:addMonths,year:addYears,startOfWeek:function(xa){return aa.ISOWeek?startOfISOWeek(xa):startOfWeek(xa,{locale:ha,weekStartsOn:ua})},endOfWeek:function(xa){return aa.ISOWeek?endOfISOWeek(xa):endOfWeek(xa,{locale:ha,weekStartsOn:ua})}},fa=ga[ra](ea,oa==="after"?1:-1);oa==="before"&&da?fa=max([da,fa]):oa==="after"&&pa&&(fa=min([pa,fa]));var ma=!0;if(sa){var va=getActiveModifiers(fa,sa);ma=!va.disabled&&!va.hidden}return ma?fa:ca.count>MAX_RETRY?ca.lastFocused:getNextFocus(fa,{moveBy:ra,direction:oa,context:aa,modifiers:sa,retry:__assign$1(__assign$1({},ca),{count:ca.count+1})})}var FocusContext=reactExports.createContext(void 0);function FocusProvider(ea){var na=useNavigation$1(),ra=useModifiers(),oa=reactExports.useState(),aa=oa[0],sa=oa[1],la=reactExports.useState(),ca=la[0],ua=la[1],da=getInitialFocusTarget(na.displayMonths,ra),pa=aa??(ca&&na.isDateDisplayed(ca))?ca:da,ha=function(){ua(aa),sa(void 0)},ga=function(xa){sa(xa)},fa=useDayPicker(),ma=function(xa,ya){if(aa){var Aa=getNextFocus(aa,{moveBy:xa,direction:ya,context:fa,modifiers:ra});isSameDay(aa,Aa)||(na.goToDate(Aa,aa),ga(Aa))}},va={focusedDay:aa,focusTarget:pa,blur:ha,focus:ga,focusDayAfter:function(){return ma("day","after")},focusDayBefore:function(){return ma("day","before")},focusWeekAfter:function(){return ma("week","after")},focusWeekBefore:function(){return ma("week","before")},focusMonthBefore:function(){return ma("month","before")},focusMonthAfter:function(){return ma("month","after")},focusYearBefore:function(){return ma("year","before")},focusYearAfter:function(){return ma("year","after")},focusStartOfWeek:function(){return ma("startOfWeek","before")},focusEndOfWeek:function(){return ma("endOfWeek","after")}};return jsxRuntimeExports.jsx(FocusContext.Provider,{value:va,children:ea.children})}function useFocusContext(){var ea=reactExports.useContext(FocusContext);if(!ea)throw new Error("useFocusContext must be used within a FocusProvider");return ea}function useActiveModifiers(ea,na){var ra=useModifiers(),oa=getActiveModifiers(ea,ra,na);return oa}var SelectSingleContext=reactExports.createContext(void 0);function SelectSingleProvider(ea){if(!isDayPickerSingle(ea.initialProps)){var na={selected:void 0};return jsxRuntimeExports.jsx(SelectSingleContext.Provider,{value:na,children:ea.children})}return jsxRuntimeExports.jsx(SelectSingleProviderInternal,{initialProps:ea.initialProps,children:ea.children})}function SelectSingleProviderInternal(ea){var na=ea.initialProps,ra=ea.children,oa=function(sa,la,ca){var ua,da,pa;if((ua=na.onDayClick)===null||ua===void 0||ua.call(na,sa,la,ca),la.selected&&!na.required){(da=na.onSelect)===null||da===void 0||da.call(na,void 0,sa,la,ca);return}(pa=na.onSelect)===null||pa===void 0||pa.call(na,sa,sa,la,ca)},aa={selected:na.selected,onDayClick:oa};return jsxRuntimeExports.jsx(SelectSingleContext.Provider,{value:aa,children:ra})}function useSelectSingle(){var ea=reactExports.useContext(SelectSingleContext);if(!ea)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return ea}function useDayEventHandlers(ea,na){var ra=useDayPicker(),oa=useSelectSingle(),aa=useSelectMultiple(),sa=useSelectRange(),la=useFocusContext(),ca=la.focusDayAfter,ua=la.focusDayBefore,da=la.focusWeekAfter,pa=la.focusWeekBefore,ha=la.blur,ga=la.focus,fa=la.focusMonthBefore,ma=la.focusMonthAfter,va=la.focusYearBefore,xa=la.focusYearAfter,ya=la.focusStartOfWeek,Aa=la.focusEndOfWeek,Ca=function(za){var Fa,Ha,Va,Ua;isDayPickerSingle(ra)?(Fa=oa.onDayClick)===null||Fa===void 0||Fa.call(oa,ea,na,za):isDayPickerMultiple(ra)?(Ha=aa.onDayClick)===null||Ha===void 0||Ha.call(aa,ea,na,za):isDayPickerRange(ra)?(Va=sa.onDayClick)===null||Va===void 0||Va.call(sa,ea,na,za):(Ua=ra.onDayClick)===null||Ua===void 0||Ua.call(ra,ea,na,za)},Sa=function(za){var Fa;ga(ea),(Fa=ra.onDayFocus)===null||Fa===void 0||Fa.call(ra,ea,na,za)},wa=function(za){var Fa;ha(),(Fa=ra.onDayBlur)===null||Fa===void 0||Fa.call(ra,ea,na,za)},ba=function(za){var Fa;(Fa=ra.onDayMouseEnter)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Ea=function(za){var Fa;(Fa=ra.onDayMouseLeave)===null||Fa===void 0||Fa.call(ra,ea,na,za)},$a=function(za){var Fa;(Fa=ra.onDayPointerEnter)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Ma=function(za){var Fa;(Fa=ra.onDayPointerLeave)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Ia=function(za){var Fa;(Fa=ra.onDayTouchCancel)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Oa=function(za){var Fa;(Fa=ra.onDayTouchEnd)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Da=function(za){var Fa;(Fa=ra.onDayTouchMove)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Ta=function(za){var Fa;(Fa=ra.onDayTouchStart)===null||Fa===void 0||Fa.call(ra,ea,na,za)},_a=function(za){var Fa;(Fa=ra.onDayKeyUp)===null||Fa===void 0||Fa.call(ra,ea,na,za)},La=function(za){var Fa;switch(za.key){case"ArrowLeft":za.preventDefault(),za.stopPropagation(),ra.dir==="rtl"?ca():ua();break;case"ArrowRight":za.preventDefault(),za.stopPropagation(),ra.dir==="rtl"?ua():ca();break;case"ArrowDown":za.preventDefault(),za.stopPropagation(),da();break;case"ArrowUp":za.preventDefault(),za.stopPropagation(),pa();break;case"PageUp":za.preventDefault(),za.stopPropagation(),za.shiftKey?va():fa();break;case"PageDown":za.preventDefault(),za.stopPropagation(),za.shiftKey?xa():ma();break;case"Home":za.preventDefault(),za.stopPropagation(),ya();break;case"End":za.preventDefault(),za.stopPropagation(),Aa();break}(Fa=ra.onDayKeyDown)===null||Fa===void 0||Fa.call(ra,ea,na,za)},Na={onClick:Ca,onFocus:Sa,onBlur:wa,onKeyDown:La,onKeyUp:_a,onMouseEnter:ba,onMouseLeave:Ea,onPointerEnter:$a,onPointerLeave:Ma,onTouchCancel:Ia,onTouchEnd:Oa,onTouchMove:Da,onTouchStart:Ta};return Na}function useSelectedDays(){var ea=useDayPicker(),na=useSelectSingle(),ra=useSelectMultiple(),oa=useSelectRange(),aa=isDayPickerSingle(ea)?na.selected:isDayPickerMultiple(ea)?ra.selected:isDayPickerRange(ea)?oa.selected:void 0;return aa}function isInternalModifier(ea){return Object.values(InternalModifier).includes(ea)}function getDayClassNames(ea,na){var ra=[ea.classNames.day];return Object.keys(na).forEach(function(oa){var aa=ea.modifiersClassNames[oa];if(aa)ra.push(aa);else if(isInternalModifier(oa)){var sa=ea.classNames["day_".concat(oa)];sa&&ra.push(sa)}}),ra}function getDayStyle(ea,na){var ra=__assign$1({},ea.styles.day);return Object.keys(na).forEach(function(oa){var aa;ra=__assign$1(__assign$1({},ra),(aa=ea.modifiersStyles)===null||aa===void 0?void 0:aa[oa])}),ra}function useDayRender(ea,na,ra){var oa,aa,sa,la=useDayPicker(),ca=useFocusContext(),ua=useActiveModifiers(ea,na),da=useDayEventHandlers(ea,ua),pa=useSelectedDays(),ha=!!(la.onDayClick||la.mode!=="default");reactExports.useEffect(function(){var ba;ua.outside||ca.focusedDay&&ha&&isSameDay(ca.focusedDay,ea)&&((ba=ra.current)===null||ba===void 0||ba.focus())},[ca.focusedDay,ea,ra,ha,ua.outside]);var ga=getDayClassNames(la,ua).join(" "),fa=getDayStyle(la,ua),ma=!!(ua.outside&&!la.showOutsideDays||ua.hidden),va=(sa=(aa=la.components)===null||aa===void 0?void 0:aa.DayContent)!==null&&sa!==void 0?sa:DayContent,xa=jsxRuntimeExports.jsx(va,{date:ea,displayMonth:na,activeModifiers:ua}),ya={style:fa,className:ga,children:xa,role:"gridcell"},Aa=ca.focusTarget&&isSameDay(ca.focusTarget,ea)&&!ua.outside,Ca=ca.focusedDay&&isSameDay(ca.focusedDay,ea),Sa=__assign$1(__assign$1(__assign$1({},ya),(oa={disabled:ua.disabled,role:"gridcell"},oa["aria-selected"]=ua.selected,oa.tabIndex=Ca||Aa?0:-1,oa)),da),wa={isButton:ha,isHidden:ma,activeModifiers:ua,selectedDays:pa,buttonProps:Sa,divProps:ya};return wa}function Day(ea){var na=reactExports.useRef(null),ra=useDayRender(ea.date,ea.displayMonth,na);return ra.isHidden?jsxRuntimeExports.jsx("div",{role:"gridcell"}):ra.isButton?jsxRuntimeExports.jsx(Button$5,__assign$1({name:"day",ref:na},ra.buttonProps)):jsxRuntimeExports.jsx("div",__assign$1({},ra.divProps))}function WeekNumber(ea){var na=ea.number,ra=ea.dates,oa=useDayPicker(),aa=oa.onWeekNumberClick,sa=oa.styles,la=oa.classNames,ca=oa.locale,ua=oa.labels.labelWeekNumber,da=oa.formatters.formatWeekNumber,pa=da(Number(na),{locale:ca});if(!aa)return jsxRuntimeExports.jsx("span",{className:la.weeknumber,style:sa.weeknumber,children:pa});var ha=ua(Number(na),{locale:ca}),ga=function(fa){aa(na,ra,fa)};return jsxRuntimeExports.jsx(Button$5,{name:"week-number","aria-label":ha,className:la.weeknumber,style:sa.weeknumber,onClick:ga,children:pa})}function Row$2(ea){var na,ra,oa=useDayPicker(),aa=oa.styles,sa=oa.classNames,la=oa.showWeekNumber,ca=oa.components,ua=(na=ca?.Day)!==null&&na!==void 0?na:Day,da=(ra=ca?.WeekNumber)!==null&&ra!==void 0?ra:WeekNumber,pa;return la&&(pa=jsxRuntimeExports.jsx("td",{className:sa.cell,style:aa.cell,children:jsxRuntimeExports.jsx(da,{number:ea.weekNumber,dates:ea.dates})})),jsxRuntimeExports.jsxs("tr",{className:sa.row,style:aa.row,children:[pa,ea.dates.map(function(ha){return jsxRuntimeExports.jsx("td",{className:sa.cell,style:aa.cell,role:"presentation",children:jsxRuntimeExports.jsx(ua,{displayMonth:ea.displayMonth,date:ha})},getUnixTime(ha))})]})}function daysToMonthWeeks(ea,na,ra){for(var oa=ra?.ISOWeek?endOfISOWeek(na):endOfWeek(na,ra),aa=ra?.ISOWeek?startOfISOWeek(ea):startOfWeek(ea,ra),sa=differenceInCalendarDays(oa,aa),la=[],ca=0;ca<=sa;ca++)la.push(addDays(aa,ca));var ua=la.reduce(function(da,pa){var ha=ra?.ISOWeek?getISOWeek(pa):getWeek(pa,ra),ga=da.find(function(fa){return fa.weekNumber===ha});return ga?(ga.dates.push(pa),da):(da.push({weekNumber:ha,dates:[pa]}),da)},[]);return ua}function getMonthWeeks(ea,na){var ra=daysToMonthWeeks(startOfMonth(ea),endOfMonth(ea),na);if(na?.useFixedWeeks){var oa=getWeeksInMonth(ea,na);if(oa<6){var aa=ra[ra.length-1],sa=aa.dates[aa.dates.length-1],la=addWeeks(sa,6-oa),ca=daysToMonthWeeks(addWeeks(sa,1),la,na);ra.push.apply(ra,ca)}}return ra}function Table(ea){var na,ra,oa,aa=useDayPicker(),sa=aa.locale,la=aa.classNames,ca=aa.styles,ua=aa.hideHead,da=aa.fixedWeeks,pa=aa.components,ha=aa.weekStartsOn,ga=aa.firstWeekContainsDate,fa=aa.ISOWeek,ma=getMonthWeeks(ea.displayMonth,{useFixedWeeks:!!da,ISOWeek:fa,locale:sa,weekStartsOn:ha,firstWeekContainsDate:ga}),va=(na=pa?.Head)!==null&&na!==void 0?na:Head,xa=(ra=pa?.Row)!==null&&ra!==void 0?ra:Row$2,ya=(oa=pa?.Footer)!==null&&oa!==void 0?oa:Footer$5;return jsxRuntimeExports.jsxs("table",{id:ea.id,className:la.table,style:ca.table,role:"grid","aria-labelledby":ea["aria-labelledby"],children:[!ua&&jsxRuntimeExports.jsx(va,{}),jsxRuntimeExports.jsx("tbody",{className:la.tbody,style:ca.tbody,children:ma.map(function(Aa){return jsxRuntimeExports.jsx(xa,{displayMonth:ea.displayMonth,dates:Aa.dates,weekNumber:Aa.weekNumber},Aa.weekNumber)})}),jsxRuntimeExports.jsx(ya,{displayMonth:ea.displayMonth})]})}function canUseDOM(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useIsomorphicLayoutEffect=canUseDOM()?reactExports.useLayoutEffect:reactExports.useEffect,serverHandoffComplete=!1,id=0;function genId(){return"react-day-picker-".concat(++id)}function useId(ea){var na,ra=ea??(serverHandoffComplete?genId():null),oa=reactExports.useState(ra),aa=oa[0],sa=oa[1];return useIsomorphicLayoutEffect(function(){aa===null&&sa(genId())},[]),reactExports.useEffect(function(){serverHandoffComplete===!1&&(serverHandoffComplete=!0)},[]),(na=ea??aa)!==null&&na!==void 0?na:void 0}function Month(ea){var na,ra,oa=useDayPicker(),aa=oa.dir,sa=oa.classNames,la=oa.styles,ca=oa.components,ua=useNavigation$1().displayMonths,da=useId(oa.id?"".concat(oa.id,"-").concat(ea.displayIndex):void 0),pa=oa.id?"".concat(oa.id,"-grid-").concat(ea.displayIndex):void 0,ha=[sa.month],ga=la.month,fa=ea.displayIndex===0,ma=ea.displayIndex===ua.length-1,va=!fa&&!ma;aa==="rtl"&&(na=[fa,ma],ma=na[0],fa=na[1]),fa&&(ha.push(sa.caption_start),ga=__assign$1(__assign$1({},ga),la.caption_start)),ma&&(ha.push(sa.caption_end),ga=__assign$1(__assign$1({},ga),la.caption_end)),va&&(ha.push(sa.caption_between),ga=__assign$1(__assign$1({},ga),la.caption_between));var xa=(ra=ca?.Caption)!==null&&ra!==void 0?ra:Caption$1;return jsxRuntimeExports.jsxs("div",{className:ha.join(" "),style:ga,children:[jsxRuntimeExports.jsx(xa,{id:da,displayMonth:ea.displayMonth,displayIndex:ea.displayIndex}),jsxRuntimeExports.jsx(Table,{id:pa,"aria-labelledby":da,displayMonth:ea.displayMonth})]},ea.displayIndex)}function Months(ea){var na=useDayPicker(),ra=na.classNames,oa=na.styles;return jsxRuntimeExports.jsx("div",{className:ra.months,style:oa.months,children:ea.children})}function Root(ea){var na,ra,oa=ea.initialProps,aa=useDayPicker(),sa=useFocusContext(),la=useNavigation$1(),ca=reactExports.useState(!1),ua=ca[0],da=ca[1];reactExports.useEffect(function(){aa.initialFocus&&sa.focusTarget&&(ua||(sa.focus(sa.focusTarget),da(!0)))},[aa.initialFocus,ua,sa.focus,sa.focusTarget,sa]);var pa=[aa.classNames.root,aa.className];aa.numberOfMonths>1&&pa.push(aa.classNames.multiple_months),aa.showWeekNumber&&pa.push(aa.classNames.with_weeknumber);var ha=__assign$1(__assign$1({},aa.styles.root),aa.style),ga=Object.keys(oa).filter(function(ma){return ma.startsWith("data-")}).reduce(function(ma,va){var xa;return __assign$1(__assign$1({},ma),(xa={},xa[va]=oa[va],xa))},{}),fa=(ra=(na=oa.components)===null||na===void 0?void 0:na.Months)!==null&&ra!==void 0?ra:Months;return jsxRuntimeExports.jsx("div",__assign$1({className:pa.join(" "),style:ha,dir:aa.dir,id:aa.id,nonce:oa.nonce,title:oa.title,lang:oa.lang},ga,{children:jsxRuntimeExports.jsx(fa,{children:la.displayMonths.map(function(ma,va){return jsxRuntimeExports.jsx(Month,{displayIndex:va,displayMonth:ma},va)})})}))}function RootProvider(ea){var na=ea.children,ra=__rest(ea,["children"]);return jsxRuntimeExports.jsx(DayPickerProvider,{initialProps:ra,children:jsxRuntimeExports.jsx(NavigationProvider,{children:jsxRuntimeExports.jsx(SelectSingleProvider,{initialProps:ra,children:jsxRuntimeExports.jsx(SelectMultipleProvider,{initialProps:ra,children:jsxRuntimeExports.jsx(SelectRangeProvider,{initialProps:ra,children:jsxRuntimeExports.jsx(ModifiersProvider,{children:jsxRuntimeExports.jsx(FocusProvider,{children:na})})})})})})})}function DayPicker$1(ea){return jsxRuntimeExports.jsx(RootProvider,__assign$1({},ea,{children:jsxRuntimeExports.jsx(Root,{initialProps:ea})}))}const defaultColors$1w={label:"rgba(170, 170, 170, 0.87)",dayPicker:{monthLabel:"#FFFFFF",weekLabel:"rgba(170, 170, 170, 0.87)",dayLabel:"rgba(255, 255, 255, 0.87)",selected:"rgba(73, 128, 245, 1)",hover:"rgba(106, 106, 106, 1)",icon:"rgba(170, 170, 170, 1)",iconHover:"#FFF"}},colors$1w={dark:defaultColors$1w},defaultSizing$1h={label:{fontSize:"12px",fontWeight:"400"},dayPicker:{monthLabel:{fontSize:"11px",fontWeight:"600"},weekLabel:{fontSize:"12px",fontWeight:"400"},dayLabel:{fontSize:"11px",fontWeight:"400"},cellSize:"25px"}},sizes$1w={default:defaultSizing$1h},Scheme$h=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1w,sizes:sizes$1w},Symbol.toStringTag,{value:"Module"})),CaptionLabel=ea=>{const{className:na,displayMonth:ra}=ea;return jsxRuntimeExports.jsx("div",{className:na,children:`${getMonthName(ra)} ${ra.getFullYear()}`})},theme$2R=withTheme(Scheme$h),CaptionLabel$1=dt$1(CaptionLabel).withConfig({displayName:"CaptionLabel",componentId:"sc-wwb28s-0"})([""," ",""],theme$2R.colors(ea=>lt$1(["color:",";"],ea.dayPicker.monthLabel)),theme$2R.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.dayPicker.monthLabel.fontSize,ea.dayPicker.monthLabel.fontWeight))),HeadRow=ea=>{const{className:na}=ea,ra=oa=>jsxRuntimeExports.jsx("th",{children:oa.label.slice(0,3)},oa.value);return jsxRuntimeExports.jsx("tr",{className:na,children:weekList.map(ra)})},theme$2Q=withTheme(Scheme$h),HeadRow$1=dt$1(HeadRow).withConfig({displayName:"HeadRow",componentId:"sc-oknyrk-0"})(["th{padding:0 5px 10px 5px;&:first-child{padding-left:0;}&:last-child{padding-right:0;}}"," ",""],theme$2Q.colors(ea=>lt$1(["th{color:",";}"],ea.dayPicker.weekLabel)),theme$2Q.sizes(ea=>lt$1(["th{font-size:",";font-weight:",";}"],ea.dayPicker.weekLabel.fontSize,ea.dayPicker.weekLabel.fontWeight))),SvgLeftArrow=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17.316,height:9.542,viewBox:"0 0 17.316 9.542",...ea},reactExports.createElement("path",{id:"left_arrow",d:"M17105,4105.749l4.82-3.747v3H17121v2h-11.182v2.5Z",transform:"translate(-17104.186 -4100.979)",strokeWidth:1})),SvgRightArrow=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17.311,height:9.542,viewBox:"0 0 17.311 9.542",...ea},reactExports.createElement("path",{id:"right_arrow",d:"M17116.178,4107H17105v-2h11.176v-3l4.82,3.751-4.82,3.747Z",transform:"translate(-17104.502 -4100.979)",strokeWidth:1})),ReactDayPicker=ea=>jsxRuntimeExports.jsx(DayPicker$1,{components:{CaptionLabel:CaptionLabel$1,HeadRow:HeadRow$1,IconLeft:SvgLeftArrow,IconRight:SvgRightArrow},...ea}),theme$2P=withTheme(Scheme$h),DayPicker=dt$1(ReactDayPicker).withConfig({displayName:"DayPicker",componentId:"sc-10bel2x-0"})(["margin:0 !important;.rdp-day{margin:4px auto 4px auto;}.rdp-nav_button{padding:0;width:auto;height:auto;&:hover{background:transparent !important;}}.rdp-nav{display:flex;align-items:center;gap:12px;}.rdp-caption{margin-bottom:10px;}.rdp-table,.rdp-month{width:100%;}"," ",""],theme$2P.colors(ea=>lt$1([".rdp-day{color:",";&.rdp-day_selected{background-color:",";}&:hover:not([disabled]):not(.rdp-day_selected){background-color:",";}}.rdp-nav_button{svg{fill:",";}&:hover{svg{fill:",";}}}"],ea.dayPicker.dayLabel,ea.dayPicker.selected,ea.dayPicker.hover,ea.dayPicker.icon,ea.dayPicker.iconHover)),theme$2P.sizes(ea=>lt$1([".rdp-day{font-size:",";font-weight:",";width:",";height:",";max-width:",";}.rdp-cell{width:",";height:",";}"],ea.dayPicker.dayLabel.fontSize,ea.dayPicker.dayLabel.fontWeight,ea.dayPicker.cellSize,ea.dayPicker.cellSize,ea.dayPicker.cellSize,ea.dayPicker.cellSize,ea.dayPicker.cellSize))),PickersLabel=ea=>jsxRuntimeExports.jsx("span",{...ea}),theme$2O=withTheme(Scheme$h),PickersLabel$1=dt$1(PickersLabel).withConfig({displayName:"PickersLabel",componentId:"sc-7p12cx-0"})(["display:block;margin-bottom:5px;"," ",""],theme$2O.colors(ea=>lt$1(["color:",";"],ea.label)),theme$2O.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.label.fontSize,ea.label.fontWeight))),HourWrapper=dt$1.div.withConfig({displayName:"TimePicker__HourWrapper",componentId:"sc-1tof8lb-0"})([""]),MinuteWrapper=dt$1.div.withConfig({displayName:"TimePicker__MinuteWrapper",componentId:"sc-1tof8lb-1"})([""]),PeriodWrapper=dt$1.div.withConfig({displayName:"TimePicker__PeriodWrapper",componentId:"sc-1tof8lb-2"})([""]),TimePicker=ea=>{const{className:na,hour:ra,minute:oa,period:aa,onChange:sa}=ea,{t:la}=useTranslation(),ca=reactExports.useMemo(()=>convertTo12HourFormat(ra),[ra]),ua=reactExports.useCallback(ha=>{sa?.({hour:ha??0,minute:oa,period:aa})},[aa,oa,sa]),da=reactExports.useCallback(ha=>{const ga=ha??0;sa?.({hour:ca.hour,minute:ga,period:aa})},[aa,ca.hour,sa]),pa=reactExports.useCallback(ha=>{sa?.({hour:ca.hour,minute:oa,period:ha})},[oa,ca.hour,sa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsxs(HourWrapper,{children:[jsxRuntimeExports.jsx(PickersLabel$1,{children:la("Hour")}),jsxRuntimeExports.jsx(Number$2,{value:ca.hour,onChange:ua,onBlurChange:!0,validationOn:"blur",valueType:"number",min:1,max:12,showValidationTooltip:!1,variant:"small"})]}),jsxRuntimeExports.jsxs(MinuteWrapper,{children:[jsxRuntimeExports.jsx(PickersLabel$1,{children:la("Minute")}),jsxRuntimeExports.jsx(Number$2,{value:oa,onChange:da,onBlurChange:!0,validationOn:"blur",valueType:"number",min:0,max:59,showValidationTooltip:!1,variant:"small"})]}),jsxRuntimeExports.jsx(PeriodWrapper,{children:jsxRuntimeExports.jsx(Select$1,{options:[{value:"AM",label:"AM"},{value:"PM",label:"PM"}],value:ca.period,onChange:pa})})]})},TimePicker$1=dt$1(TimePicker).withConfig({displayName:"TimePicker",componentId:"sc-1tof8lb-3"})(["display:flex;align-items:flex-end;",",","{max-width:41px;margin-right:10px;}","{max-width:60px;}"],MinuteWrapper,HourWrapper,PeriodWrapper),ControlsWrapper=dt$1.div.withConfig({displayName:"MonthPicker__ControlsWrapper",componentId:"sc-11k55gy-0"})([""]),DayInput=dt$1(Number$2).withConfig({displayName:"MonthPicker__DayInput",componentId:"sc-11k55gy-1"})([""]),YearInput=dt$1(Number$2).withConfig({displayName:"MonthPicker__YearInput",componentId:"sc-11k55gy-2"})([""]),MonthPicker=ea=>{const{className:na,monthIndex:ra,year:oa,day:aa,onChange:sa}=ea,{t:la}=useTranslation(),ca=reactExports.useCallback(pa=>{sa?.({monthIndex:parseInt(pa,10),year:oa,day:aa})},[aa,oa,sa]),ua=reactExports.useCallback(pa=>{sa?.({monthIndex:ra,year:oa,day:pa||0})},[ra,oa,sa]),da=reactExports.useCallback(pa=>{sa?.({monthIndex:ra,year:pa||0,day:aa})},[ra,aa,sa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(PickersLabel$1,{children:la("Date")}),jsxRuntimeExports.jsxs(ControlsWrapper,{children:[jsxRuntimeExports.jsx(Select$1,{options:monthsList,value:ra.toString(),onChange:ca}),jsxRuntimeExports.jsx(DayInput,{value:aa,onChange:ua,onBlurChange:!0,valueType:"number",validationOn:"blur",showValidationTooltip:!1,variant:"small"}),jsxRuntimeExports.jsx(YearInput,{value:oa,onChange:da,onBlurChange:!0,valueType:"number",validationOn:"blur",showValidationTooltip:!1,variant:"small"})]})]})},MonthPicker$1=dt$1(MonthPicker).withConfig({displayName:"MonthPicker",componentId:"sc-11k55gy-3"})(["","{display:flex;align-items:center;}.avtkit-select__control{min-width:90px;}",",","{margin-left:10px;}","{max-width:45px;}","{max-width:57px;}"],ControlsWrapper,DayInput,YearInput,DayInput,YearInput),DateInputControls=ea=>{const{className:na,value:ra,onChange:oa,disableTimePicker:aa=!1}=ea,[sa,la]=reactExports.useState(ra||new Date),ca=reactExports.useMemo(()=>parseDate(sa),[sa]);reactExports.useEffect(()=>{la(ra||new Date)},[ra]);const ua=reactExports.useCallback(ga=>{const fa=convertTo24HourFormat(ga.hour,ga.period),ma=new Date(ca.year,ca.month,ca.day,fa,ga.minute);la(ma),oa(ma)},[ca.year,ca.month,ca.day,oa]),da=reactExports.useCallback(ga=>{const fa=aa?12:ca.hour,ma=aa?0:ca.minute,va=new Date(ga.year,ga.monthIndex,ga.day,fa,ma);la(va),oa(va)},[ca.hour,ca.minute,oa,aa]),pa=reactExports.useCallback(ga=>{const fa=aa?12:ca.hour,ma=aa?0:ca.minute,va=new Date(ca.year,ga.getMonth(),ca.day,fa,ma);la(va),oa(va)},[ca.year,ca.day,ca.hour,ca.minute,oa,aa]),ha=reactExports.useCallback((ga=new Date)=>{const fa=aa?12:ca.hour,ma=aa?0:ca.minute,va=new Date(ga.getFullYear(),ga.getMonth(),ga.getDate(),fa,ma);la(va),oa(va)},[oa,ca,aa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[!aa&&jsxRuntimeExports.jsx(TimePicker$1,{hour:ca.hour,minute:ca.minute,period:ca.period,onChange:ua}),jsxRuntimeExports.jsx(MonthPicker$1,{monthIndex:ca.month,day:ca.day,year:ca.year,onChange:da}),jsxRuntimeExports.jsx(DayPicker,{mode:"single",selected:sa,month:sa,onSelect:ha,onMonthChange:pa})]})},DateInputControls$1=dt$1(DateInputControls).withConfig({displayName:"DateInputControls",componentId:"sc-1i75l0e-0"})(["","{margin-bottom:10px;}","{margin-bottom:15px;}"],TimePicker$1,MonthPicker$1),PopoverWrapper=dt$1.div.withConfig({displayName:"DatePicker__PopoverWrapper",componentId:"sc-12fipey-0"})([""]),PopoverButtonsWrapper=dt$1.div.withConfig({displayName:"DatePicker__PopoverButtonsWrapper",componentId:"sc-12fipey-1"})([""]),DateNowButton=dt$1(PopoverEditButton).withConfig({displayName:"DatePicker__DateNowButton",componentId:"sc-12fipey-2"})([""]),DateResetButton=dt$1(PopoverEditButton).withConfig({displayName:"DatePicker__DateResetButton",componentId:"sc-12fipey-3"})([""]),DateLabel=dt$1.span.withConfig({displayName:"DatePicker__DateLabel",componentId:"sc-12fipey-4"})([""]),PopoverLabel=dt$1.span.withConfig({displayName:"DatePicker__PopoverLabel",componentId:"sc-12fipey-5"})([""]),popoverPlacement$4={xPlacement:"insideRight",yPlacement:"bottom",space:{right:-15}},DatePicker=ea=>{const{notSetLabel:na,resetLabel:ra,className:oa,value:aa,label:sa,onChange:la,resetButton:ca=!1,nowButton:ua=!0,disableTimePicker:da=!1,inViewportOptions:pa=popoverPlacement$4}=ea,{t:ha}=useTranslation(),[ga,fa]=reactExports.useState(!1),{setOpen:ma}=reactExports.useContext(PopoverOpenStateContext),va=reactExports.useMemo(()=>{if(!aa)return null;const wa=convertUTCtoDate(aa);return da?wa.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):wa.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0})},[aa,da]),xa=reactExports.useCallback(()=>{ma(!1)},[ma]),ya=reactExports.useCallback(()=>{ma(!0)},[ma]),Aa=wa=>{la?.(convertDateToUTC(wa.toString()))},Ca=reactExports.useCallback(()=>{fa(!1),la?.(void 0)},[la]),Sa=()=>{const wa=new Date;da&&wa.setHours(12,0,0,0),la?.(convertDateToUTC(wa.toString()))};return jsxRuntimeExports.jsxs("div",{className:oa,"data-disable-time-picker":da,children:[jsxRuntimeExports.jsx(DateLabel,{children:sa}),jsxRuntimeExports.jsx(Popover$3,{open:ga,onClose:xa,onOpen:ya,onOutsideClick:()=>fa(!1),handler:jsxRuntimeExports.jsx(PopoverEditButton,{onClick:()=>fa(!ga),children:aa?va:na??ha("Pick Date")}),inViewportOptions:pa,children:jsxRuntimeExports.jsxs(PopoverWrapper,{children:[jsxRuntimeExports.jsx(PopoverLabel,{children:ha("{{label}} Date",{label:sa})}),jsxRuntimeExports.jsxs(PopoverButtonsWrapper,{children:[ca&&jsxRuntimeExports.jsx(DateResetButton,{onClick:Ca,children:ra||ha("Reset")}),ua&&jsxRuntimeExports.jsx(DateNowButton,{onClick:Sa,children:ha("Now")}),jsxRuntimeExports.jsx(PopoverEditButton,{onClick:()=>fa(!1),children:ha("Close")})]}),jsxRuntimeExports.jsx(Field$1,{children:jsxRuntimeExports.jsx(DateInputControls$1,{value:aa?convertUTCtoDate(aa):void 0,onChange:Aa,disableTimePicker:da})})]})})]})},DatePicker$1=dt$1(DatePicker).withConfig({displayName:"DatePicker",componentId:"sc-12fipey-6"})(["display:flex;align-items:center;justify-content:space-between;","{color:rgba(255,255,255,0.87);font-size:12px;font-weight:400;}","{display:flex;flex-flow:row wrap;justify-content:space-between;align-content:flex-start;align-items:center;padding:0 5px;min-height:411px;}&[data-disable-time-picker='true'] ","{min-height:350px;}","{display:flex;top:-2px;position:relative;align-self:flex-start;column-gap:5px;}","{color:rgba(129,129,129,0.87);letter-spacing:1px;font-size:10px;font-weight:600;text-transform:uppercase;margin-bottom:10px;}","{margin-left:0;margin-right:0;width:'100%';}"],DateLabel,PopoverWrapper,PopoverWrapper,PopoverButtonsWrapper,PopoverLabel,Field$1),optionsSelector$A=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$A=updateSelectedElementsValueByPathAndPrefix("options"),segmentsStylesSelector$1=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-segment"),segmentsStylesAction$1=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-segment"),countdownOptions=[{id:"countdownOptions",label:i18next.t("Countdown Segment Styles"),border:"bottom",optionControls:[[createOptionControl({id:"datetime",control:DatePicker$1,controlProps:{label:i18next.t("End date")},selector:optionsSelector$A("dateTime"),action:optionsAction$A("dateTime")})],[createOptionControl({id:"leadingZeros",control:SwitchBox$1,controlProps:{label:i18next.t("Add leading zeros")},selector:optionsSelector$A("leadingZeros"),action:optionsAction$A("leadingZeros")})],[createOptionControl({id:"showDays",control:SwitchBox$1,controlProps:{label:i18next.t("Show days")},selector:optionsSelector$A("showDays"),action:optionsAction$A("showDays")})],[createOptionControl({id:"showLabels",control:SwitchBox$1,controlProps:{label:i18next.t("Show labels")},selector:optionsSelector$A("labels"),action:optionsAction$A("labels")})],[createOptionControl({id:"showSeparator",control:SwitchBox$1,controlProps:{label:i18next.t("Add separator")},selector:optionsSelector$A("addSeparator"),action:optionsAction$A("addSeparator")})],[createOptionControl({id:"lineSeparator",control:SwitchBox$1,controlProps:{label:i18next.t("Use line separator")},selector:optionsSelector$A("lineSeparator"),action:optionsAction$A("lineSeparator"),dependency:optionsSelector$A("addSeparator")})],[createOptionControl({id:"flashingSeparator",control:SwitchBox$1,controlProps:{label:i18next.t("Flash the timer separators")},selector:optionsSelector$A("flashSeparator"),action:optionsAction$A("flashSeparator"),dependency:optionsSelector$A("addSeparator")})],[createOptionControl({id:"demoMode",control:SwitchBox$1,controlProps:{label:i18next.t("Demo mode"),tooltip:{content:i18next.t("Enable this option to display an endless demo countdown timer."),options:{place:"top",id:"workspace"}}},selector:optionsSelector$A("demoMode"),action:optionsAction$A("demoMode")})],[createOptionControl({id:"separator",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Separator"),selector:optionsSelector$A("separator"),action:optionsAction$A("separator"),dependency:ea=>!optionsSelector$A("lineSeparator")(ea)&&optionsSelector$A("addSeparator")(ea),styles:{flex:.5}}),createOptionControl({id:"labelsPlacement",control:Select$1,label:i18next.t("Place Labels"),selector:optionsSelector$A("labelsPosition"),action:optionsAction$A("labelsPosition"),controlProps:{options:[{value:"above",label:"Above"},{value:"below",label:"Below"}]},styles:{flex:.5}})],[createOptionControl({id:"spaceBetweenSegments",control:Number$2,label:i18next.t("Segments Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-row")("flex.columnGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-row")("flex.columnGap"),controlProps:{units:"px"}}),createOptionControl({id:"labelsSpace",control:Number$2,label:i18next.t("Labels Space"),selector:getSelectedElementsValueByPathAndPrefix("styles")("flex.rowGap"),action:updateSelectedElementsValueByPathAndPrefix("styles")("flex.rowGap"),controlProps:{units:"px"}})]]}],typographyOptions$1=[{id:"typographyOptions",label:i18next.t("Typography"),border:"bottom",optionControls:[[createOptionControl({id:"segmentsTypography",control:CompactTypography$1,label:i18next.t("Timer Segments"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-timer")("typography"),controlProps:{modifyOptionControls:ea=>modifyControl(excludeControls(ea,["textWrap","textTransform","lineHeight","textAlignment","textDirection","textDecoration"]),"letterSpace",{styles:{flex:.5}}),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-timer.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-timer.typography")}})],[createOptionControl({id:"labelsTypography",control:CompactTypography$1,label:i18next.t("Labels"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-labels")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-labels.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-countdown-labels.typography")}})]]}],timeSegmentsStyles=[{id:"countdownTimeSegments",label:i18next.t("Countdown segment Styles"),border:"bottom",optionControls:[[createOptionControl({id:"backgroundColor",control:ColorPicker$1,label:i18next.t("Background Color"),selector:segmentsStylesSelector$1("backgroundColor"),action:segmentsStylesAction$1("backgroundColor")})],[createOptionControl({id:"border",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:segmentsStylesAction$1,selector:segmentsStylesSelector$1})},hideOnIntersection:!0,selector:segmentsStylesSelector$1("border.enable"),action:segmentsStylesAction$1("border.enable")})],[createOptionControl({id:"boxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:segmentsStylesAction$1,selector:segmentsStylesSelector$1})},hideOnIntersection:!0,selector:segmentsStylesSelector$1("boxShadow.enable"),action:segmentsStylesAction$1("boxShadow.enable")})],[createOptionControl({id:"corner",control:BoxEdgeSizing$1,label:i18next.t("Corner Radius"),selector:segmentsStylesSelector$1("corner"),action:segmentsStylesAction$1("corner")})]]}],hoverStylesOptionControls$2=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),optionControls$k=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...countdownOptions,...typographyOptions$1,...timeSegmentsStyles,...elementTextStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...hoverStylesOptionControls$2]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$l={...elementDefaultCommonState,styles:{...elementDefaultCommonState.styles,flex:{default:{rowGap:5}}},innerStyles:{"dpc-countdown-segment":{backgroundColor:{default:"transparent"},corner:defaultCorner,border:defaultBorder,boxShadow:defaultBoxShadow},"dpc-countdown-row":{flex:{default:{columnGap:5}}},"dpc-countdown-labels":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000",direction:"ltr",align:"center",letterSpacing:0}}},"dpc-countdown-timer":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000",direction:"ltr",letterSpacing:0}}}},options:{leadingZeros:!0,flashSeparator:!1,addSeparator:!0,showDays:!0,demoMode:!1,labels:!0,lineSeparator:!1,labelsPosition:"below",separator:":"}},initialStateValues$l={size:{default:{width:"auto",height:"auto"}},options:{dateTime:new Date(Date.now()+38*60*60*1e3+31*60*1e3+29*1e3).toISOString().replace("T"," ").replace("Z","")}},updateOptions$2=updateSelectedElementsValueByPathAndPrefix("options"),CountdownElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,options:aa,styles:sa,innerStyles:la,locked:ca}=ea,ua=useUniqueClassName(),da=useDispatchAndToHistory(),pa=useIsSelected(oa),ha=useTypography(sa?.typography),ga=reactExports.useRef(null),fa={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...ha,...useBackgroundBlur(sa?.backgroundBlur),...useFilter(sa?.filter),...usePadding(sa?.padding),...useFlexStyles(sa?.flex)},ma={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)};useScaleFontSize(oa,ga,"innerStyles.dpc-countdown-timer.typography.$bp",".dpc-countdown-segment",!0),useScaleFontSize(oa,ga,"innerStyles.dpc-countdown-labels.typography.$bp",".dpc-label span",!0);const{isActive:va,...xa}=useActiveOnClick(oa,!ca,pa,void 0,{offAbles:["draggable"]},{offAbles:void 0}),ya=reactExports.useCallback((Ca,Sa)=>{da(updateOptions$2(Sa)({value:Ca}))},[da]),Aa=reactExports.useCallback((Ca,Sa,wa)=>jsxRuntimeExports.jsx(EditableText$1,{isEditable:va&&!ca,value:Ca,className:wa,onChange:ba=>ya(ba,Sa)},Sa),[va,ca,ya]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Ca=>{assignRef$1(Ca,na),ga.current=Ca},style:ma,contentStyle:fa,onElementClick:ra,...ea,className:`${ea.className} ${ua}`,...xa,enableDnd:!va,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ua}`}),jsxRuntimeExports.jsx(Countdown,{...aa,renderLabel:Aa})]})}),CountdownElement=dt$1(CountdownElementLogic).withConfig({displayName:"Countdown__CountdownElement",componentId:"sc-12x7too-0"})([".dpc-countdown{height:100%;}"]);registerElement({type:"dpcCountdown",name:"Countdown",component:CountdownElement,optionControls:optionControls$k,initialStateValues:initialStateValues$l,defaultStateValues:defaultStateValues$l});const countDecimalPlaces=ea=>{const ra=ea.toString().match(/\.\d+/);return ra?ra[0].length-1:0},countByCustomSeparator=(ea,na=",")=>ea.toLocaleString(void 0,{useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:3}).replace(/,/g,na),CounterMarkup=reactExports.forwardRef((ea,na)=>{const{className:ra,prefix:oa,suffix:aa,align:sa="center",children:la}=ea;return jsxRuntimeExports.jsxs("div",{className:`${ra} dpc-counter dpc-placement-${sa}`,children:[oa&&jsxRuntimeExports.jsx("span",{className:"dpc-counter-prefix",children:oa}),jsxRuntimeExports.jsx("span",{className:"dpc-counter-number",ref:na,children:la}),aa&&jsxRuntimeExports.jsx("span",{className:"dpc-counter-suffix",children:aa})]})}),Counter=reactExports.forwardRef((ea,na)=>{const{className:ra="dpc-counter",initialValue:oa=0,targetValue:aa=0,duration:sa=2e3,separator:la,prefix:ca,suffix:ua,useGroup:da,easing:pa="linear",align:ha="center",delay:ga=1,onAnimationInit:fa}=ea,ma=reactExports.useRef(null),va=Math.max(countDecimalPlaces(oa),countDecimalPlaces(aa),0),xa=reactExports.useRef(null),ya=reactExports.useCallback(wa=>{const ba=ma.current,$a=wa.animatables[0].target.value,Ma=parseFloat($a.toFixed(va)),Ia=da&&la?countByCustomSeparator(Ma,la):`${Ma}`;ba&&(ba.innerHTML=`${Ia}`)},[va,la,da]);reactExports.useEffect(()=>(ma.current&&(xa.current=anime({targets:{value:oa},value:aa,easing:pa,duration:sa,round:!1,delay:ga,autoplay:!1,update:ya}),fa?.()),()=>{xa.current&&anime.remove(xa.current)}),[ga,sa,pa,oa,fa,aa,ya]);const Aa=reactExports.useCallback(()=>{xa.current?.play()},[]),Ca=reactExports.useCallback(()=>{xa.current?.pause()},[]),Sa=reactExports.useCallback(()=>{xa.current?.seek(0),xa.current?.pause()},[]);return reactExports.useImperativeHandle(na,()=>({play:Aa,pause:Ca,stop:Sa})),jsxRuntimeExports.jsx(CounterMarkup,{className:ra,suffix:ua,prefix:ca,align:ha,ref:ma})}),EditorCounter=ea=>{const{className:na="dpc-editor-counter",...ra}=ea,{suffix:oa,prefix:aa,align:sa,targetValue:la=1e3,separator:ca,useGroup:ua}=ra,da=reactExports.useRef(null),pa=reactExports.useCallback(()=>{if(!da.current)return;const{stop:ha,play:ga}=da.current;ha(),ga()},[]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(CounterMarkup,{className:"dpc-counter-overlay-markup",suffix:oa,prefix:aa,align:sa,children:ua&&ca?countByCustomSeparator(la,ca):`${la}`}),jsxRuntimeExports.jsx(Counter,{...ra,ref:da,onAnimationInit:pa})]})},optionsSelector$z=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$z=updateSelectedElementsValueByPathAndPrefix("options"),counterOptions=[{id:"counterOptions",label:i18next.t("Counter Options"),border:"bottom",optionControls:[[createOptionControl({id:"initialValue",control:Number$2,label:i18next.t("Initial value"),selector:optionsSelector$z("initialValue"),action:optionsAction$z("initialValue")}),createOptionControl({id:"targetValue",control:Number$2,label:i18next.t("Target value"),selector:optionsSelector$z("targetValue"),action:optionsAction$z("targetValue")})],[createOptionControl({id:"prefix",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Prefix"),selector:optionsSelector$z("prefix"),action:optionsAction$z("prefix")}),createOptionControl({id:"suffix",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Suffix"),selector:optionsSelector$z("suffix"),action:optionsAction$z("suffix")})]]}],counterAnimationOptions=[{id:"counterAnimationOptions",border:"bottom",optionControls:[[createOptionControl({id:"duration",control:Number$2,label:i18next.t("Duration"),selector:optionsSelector$z("duration"),action:optionsAction$z("duration"),controlProps:{units:"ms"},styles:{flex:" 0 0 112px"}}),createOptionControl({id:"delay",control:Number$2,label:i18next.t("Delay"),selector:optionsSelector$z("delay"),action:optionsAction$z("delay"),controlProps:{units:"ms"},styles:{flex:" 0 0 112px"}})],[createOptionControl({id:"animationEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:optionsSelector$z("easing"),action:optionsAction$z("easing")})]]}],counterDisplayOptions=[{id:"counterDisplayOptions",border:"bottom",optionControls:[[createOptionControl({id:"addSeparator",control:SwitchBox$1,controlProps:{label:i18next.t("Add separator"),tooltip:{options:{place:"top",id:"workspace"}}},styles:{alignSelf:"start"},selector:optionsSelector$z("useGroup"),action:optionsAction$z("useGroup")})],[createOptionControl({id:"separator",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Separator"),selector:optionsSelector$z("separator"),action:optionsAction$z("separator"),dependency:ea=>optionsSelector$z("useGroup")(ea),styles:{flex:.5}})],[createOptionControl({id:"textAlignmentRTL",control:ToggleButtons$1,label:i18next.t("Text align"),controlProps:{buttons:TextAlignment.ltr.filter(ea=>ea.value!=="justify")},selector:optionsSelector$z("align"),action:optionsAction$z("align"),styles:{flex:"0 0 auto"}})]]}],typographyOptions=[{id:"typographyOptions",label:i18next.t("Typography"),border:"bottom",optionControls:[[createOptionControl({id:"NumberTypography",control:CompactTypography$1,label:i18next.t("Number"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-number")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","lineHeight","textTransform"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-number.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-number.typography")}})],[createOptionControl({id:"prefixTypography",control:CompactTypography$1,label:i18next.t("Prefix"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-prefix")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","lineHeight","textTransform"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-prefix.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-prefix.typography")},dependency:ea=>!!optionsSelector$z("prefix")(ea)})],[createOptionControl({id:"suffixTypography",control:CompactTypography$1,label:i18next.t("Suffix"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-suffix")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","lineHeight","textTransform"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-suffix.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-counter-suffix.typography")},dependency:ea=>!!optionsSelector$z("suffix")(ea)})]]}],counterElementStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1),ea=>excludeControls(ea,["filter","padding","backgroundBlur"]))(elementStylesOptionControls),hoverStylesOptionControls$1=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),optionControls$j=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...counterOptions,...counterDisplayOptions,...counterAnimationOptions,...typographyOptions,...counterElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...hoverStylesOptionControls$1]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$k={...elementDefaultCommonState,innerStyles:{"dpc-counter-number":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000",direction:"ltr",align:"center",letterSpacing:0}}},"dpc-counter-prefix":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000",direction:"ltr",letterSpacing:0}}},"dpc-counter-suffix":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000",direction:"ltr",letterSpacing:0}}}}},initialStateValues$k={options:{useGroup:!1,easing:"linear",initialValue:0,targetValue:1e3,duration:2e3,separator:",",align:"left",delay:0},innerStyles:{"dpc-counter-number":{typography:{default:{font:"Open sans",fontSize:34,fontVariant:"regular",color:"#000000"}}},"dpc-counter-prefix":{typography:{default:{font:"Open sans",fontSize:34,color:"#000000"}}},"dpc-counter-suffix":{typography:{default:{font:"Open sans",fontSize:34,color:"#000000"}}}}},CounterElementLogic=React.memo(React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,options:aa,styles:sa,innerStyles:la}=ea,ca=useUniqueClassName(),ua=useTypography(sa?.typography),da=reactExports.useRef(null),pa={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...ua,...useBackgroundBlur(sa?.backgroundBlur),...useFilter(sa?.filter),...usePadding(sa?.padding),...useFlexStyles(sa?.flex)},ha={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)};return useScaleFontSize(oa,da,"innerStyles.dpc-counter-prefix.typography.$bp",".dpc-counter-prefix",!0,!!aa?.prefix),useScaleFontSize(oa,da,"innerStyles.dpc-counter-suffix.typography.$bp",".dpc-counter-suffix",!0,!!aa?.suffix),useScaleFontSize(oa,da,"innerStyles.dpc-counter-number.typography.$bp",".dpc-counter-number",!0),jsxRuntimeExports.jsxs(BaseElement$1,{ref:ga=>{assignRef$1(ga,na),da.current=ga},style:ha,contentStyle:pa,onElementClick:ra,...ea,className:`${ea.className} ${ca}`,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ca}`}),jsxRuntimeExports.jsx(EditorCounter,{...aa})]})})),CounterElement=dt$1(CounterElementLogic).withConfig({displayName:"Counter__CounterElement",componentId:"sc-bw8n3b-0"})([".dpc-editor-counter{height:100%;}"]);registerElement({type:"dpcCounter",name:"Counter",component:CounterElement,optionControls:optionControls$j,initialStateValues:initialStateValues$k,defaultStateValues:defaultStateValues$k});const SvgPauseIcon=ea=>reactExports.createElement("svg",{width:12,height:16,viewBox:"0 0 12 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99805 14.0029V1.99902C7.99805 0.89453 8.89453 0 9.99805 0C11.1035 0 11.9981 0.89453 11.9981 1.99902V14.0029C11.9981 15.1035 11.1035 16.0029 9.99805 16.0029C8.89453 16.0029 7.99805 15.1035 7.99805 14.0029ZM0 14.0029V1.99902C0 0.89453 0.89453 0 2 0C3.10547 0 4 0.89453 4 1.99902V14.0029C4 15.1035 3.10547 16.0029 2 16.0029C0.89453 16.0029 0 15.1035 0 14.0029Z"})),SvgPlayIcon=ea=>reactExports.createElement("svg",{width:11,height:16,viewBox:"0 0 11 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{left:"8%"},...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0541 7.22605C10.5431 7.62615 10.5431 8.37385 10.0541 8.77395L1.63338 15.6637C0.980451 16.1979 0.000137329 15.7334 0.000137329 14.8897L0.000137329 1.11026C0.000137329 0.266631 0.98045 -0.197916 1.63338 0.336306L10.0541 7.22605Z"})),CircleTimer=ea=>{const{className:na="dpc-circle-timer",progress:ra=50,lineCap:oa=!1,thickness:aa=10,status:sa="play",showSymbol:la=!1,changeStatusOnClick:ca=!1,showSymbolOnHover:ua=!1,onPause:da,onResume:pa}=ea,ha=50-aa/2,ga=reactExports.useMemo(()=>{const va=2*Math.PI*ha,xa=va*((100-Math.min(100,Math.max(0,ra)))/100);return{strokeDasharray:va,strokeDashoffset:xa}},[ra,ha]),fa=reactExports.useMemo(()=>({inset:`${aa+22}%`}),[aa]),ma=reactExports.useCallback(()=>{ca&&(sa==="play"?da?.():pa?.())},[da,pa,ca,sa]);return jsxRuntimeExports.jsxs("div",{className:na+(ca?" dpc-circle-timer-clickable":""),onClick:ma,children:[jsxRuntimeExports.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",children:[jsxRuntimeExports.jsx("circle",{className:"dpc-circle-timer-bg-bar",r:ha,cx:"50%",cy:"50%",fill:"transparent",stroke:"#e0e0e0",strokeWidth:aa}),jsxRuntimeExports.jsx("circle",{className:"dpc-circle-timer-progress-bar",r:ha,cx:"50%",cy:"50%",fill:"transparent",stroke:"#60e6a8",strokeWidth:aa,strokeLinecap:oa?"round":void 0,style:ga})]}),la&&jsxRuntimeExports.jsx("div",{className:`dpc-circle-timer-symbol ${ua?"dpc-circle-timer-hover-symbol":""} `,style:fa,children:sa!=="play"?jsxRuntimeExports.jsx(SvgPlayIcon,{}):jsxRuntimeExports.jsx(SvgPauseIcon,{})})]})},defaultStateValues$j={...elementDefaultCommonState,innerStyles:{"dpc-circle-timer-progress-bar":{svg:{default:{stroke:"#60e6a8"}}},"dpc-circle-timer-bg-bar":{svg:{default:{stroke:"#e0e0e0"}}},"dpc-circle-timer-symbol":{svg:{default:{fill:"#000"}}}}},initialStateValues$j={options:{thickness:14,lineCap:!1,changeStatusOnClick:!1,showSymbol:!1,showSymbolOnHover:!1},innerStyles:{"dpc-circle-timer-progress-bar":{svg:{default:{stroke:"#60e6a8"}}},"dpc-circle-timer-bg-bar":{svg:{default:{stroke:"#e0e0e0"}}},"dpc-circle-timer-symbol":{svg:{default:{fill:"#000"}}}}},optionsSelector$y=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$y=updateSelectedElementsValueByPathAndPrefix("options"),circleTimerOptions=[{id:"circleTimerOptions",label:i18next.t("Circle timer Options"),border:"bottom",optionControls:[[createOptionControl({id:"thickness",label:i18next.t("Thickness"),control:SliderWithNumber,controlProps:{numberProps:{units:"px"},min:0,max:30},selector:optionsSelector$y("thickness"),action:optionsAction$y("thickness")})],[createOptionControl({id:"roundStroke",control:SwitchBox$1,controlProps:{label:i18next.t("Round stroke")},selector:optionsSelector$y("lineCap"),action:optionsAction$y("lineCap")})],[createOptionControl({id:"changeStatusOnClick",control:SwitchBox$1,controlProps:{label:i18next.t("Control auto slideshow by click")},selector:optionsSelector$y("changeStatusOnClick"),action:optionsAction$y("changeStatusOnClick")})],[createOptionControl({id:"showSymbol",control:SwitchBox$1,controlProps:{label:i18next.t("Show resume/pause symbol")},dependency:optionsSelector$y("changeStatusOnClick"),selector:optionsSelector$y("showSymbol"),action:optionsAction$y("showSymbol")})],[createOptionControl({id:"showSymbolHover",control:SwitchBox$1,controlProps:{label:i18next.t("Show symbol on hover ")},dependency:ea=>optionsSelector$y("showSymbol")(ea)&&optionsSelector$y("changeStatusOnClick")(ea),selector:optionsSelector$y("showSymbolOnHover"),action:optionsAction$y("showSymbolOnHover")})]]}],circleTimerStyles=[{id:"circleTimerStyles",label:i18next.t("Circle timer styles"),border:"bottom",optionControls:[[createOptionControl({id:"barColor",control:ColorPicker$1,label:i18next.t("Background bar Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-bg-bar")("svg.stroke"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-bg-bar")("svg.stroke")})],[createOptionControl({id:"strokeColor",control:ColorPicker$1,label:i18next.t("Progress bar Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-progress-bar")("svg.stroke"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-progress-bar")("svg.stroke")})],[createOptionControl({id:"symbolColor",control:ColorPicker$1,label:i18next.t("Symbol Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-symbol")("svg.fill"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-circle-timer-symbol")("svg.fill"),dependency:ea=>optionsSelector$y("showSymbol")(ea)&&optionsSelector$y("changeStatusOnClick")(ea)})]]}],circleTimerElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio"]))(elementPositionOptionControls()),optionControls$i=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...circleTimerElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...circleTimerOptions,...circleTimerStyles,...elementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],CircleTimerElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa,innerStyles:sa,transformToolConfig:la}=ea,ca=useUniqueClassName(),ua=reactExports.useMemo(()=>({keepAspectRatio:!0,...la}),[la]),da=useTypography(aa?.typography),pa=reactExports.useRef(null),ha={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...da,...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},ga={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:fa=>{assignRef$1(fa,na),pa.current=fa},style:ga,contentStyle:ha,onElementClick:ra,transformToolConfig:ua,...ea,className:`${ea.className} ${ca}`,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${ca}`}),jsxRuntimeExports.jsx(CircleTimer,{...oa,status:"pause",progress:50})]})}),CircleTimerElement=dt$1(CircleTimerElementLogic).withConfig({displayName:"CircleTimer__CircleTimerElement",componentId:"sc-1a97gn8-0"})([""]);registerElement({type:"dpcCircleTimer",name:"Circle Timer",component:CircleTimerElement,optionControls:optionControls$i,initialStateValues:initialStateValues$j,defaultStateValues:defaultStateValues$j,icon:SvgControl});const ProgressBar=ea=>{const{className:na="dpc-progress-bar",progress:ra=50,id:oa,onClick:aa}=ea;return jsxRuntimeExports.jsx("div",{className:`${na} ${aa?"dpc-progress-bar-clickable":""}`,onClick:()=>aa?.(oa),children:jsxRuntimeExports.jsx("div",{className:"dpc-progress-bar-value",style:{width:`${ra}%`}})})},StoriesProgressBar=ea=>{const{className:na="dpc-stories-progress-bar",storiesData:ra=[],goToSlideByClick:oa=!1,onProgressClick:aa}=ea,sa=la=>jsxRuntimeExports.jsx(ProgressBar,{id:la.id,progress:la.progress,onClick:oa?aa:void 0},la.id);return jsxRuntimeExports.jsx("div",{className:na,children:ra.map(sa)})},optionsSelector$x=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$x=updateSelectedElementsValueByPathAndPrefix("options"),storiesProgressBarOptions=[{id:"storiesProgressBarOptions",label:i18next.t("Stories Progress bar Options"),border:"bottom",optionControls:[[createOptionControl({id:"goToSlideByClick",control:SwitchBox$1,controlProps:{label:i18next.t("Change {{section}} on click",{section:DocType.getLabel("section")})},selector:optionsSelector$x("goToSlideByClick"),action:optionsAction$x("goToSlideByClick")})],[createOptionControl({id:"spaceBetweenProgress",control:Number$2,label:i18next.t("Between Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-stories-progress-bar")("flex.columnGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-stories-progress-bar")("flex.columnGap"),controlProps:{units:"px"},styles:{flex:"0 0 50%"}})]]}],storiesProgressBarStyles=[{id:"storiesProgressBarStyles",border:"bottom",optionControls:[[createOptionControl({id:"barColor",control:ColorPicker$1,label:i18next.t("Track Color"),controlProps:{showHex:!0,showAlpha:!0},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("backgroundColor"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("backgroundColor")})],[createOptionControl({id:"strokeColor",control:ColorPicker$1,label:i18next.t("Progress Color"),controlProps:{showHex:!0,showAlpha:!0},selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar-value")("backgroundColor"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar-value")("backgroundColor")})],[createOptionControl({id:"corner",control:BoxEdgeSizing$1,label:i18next.t("Corner Radius"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("corner"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("corner")})]]},{id:"storiesProgressBarBorder",border:"bottom",optionControls:[[createOptionControl({id:"border",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")})},hideOnIntersection:!0,selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("border.enable"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-bar")("border.enable")})]]}],storiesProgressBarElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio"]))(elementPositionOptionControls()),optionControls$h=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...storiesProgressBarElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...storiesProgressBarOptions,...storiesProgressBarStyles]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$i={...elementDefaultCommonState,innerStyles:{"dpc-progress-bar":{backgroundColor:{default:"#e1e1e1"},corner:defaultCorner,border:defaultBorder},"dpc-progress-bar-value":{backgroundColor:{default:"#666"}},"dpc-stories-progress-bar":{flex:{default:{columnGap:10}}}}},initialStateValues$i={options:{goToSlideByClick:!1},innerStyles:{"dpc-progress-bar":{backgroundColor:{default:"#e1e1e1"},corner:defaultCorner,border:defaultBorder},"dpc-progress-bar-value":{backgroundColor:{default:"#666"}},"dpc-stories-progress-bar":{flex:{default:{columnGap:10}}}}},StoriesProgressBarElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa,innerStyles:sa}=ea,la=useUniqueClassName(),ca=useTypography(aa?.typography),ua=reactExports.useRef(null),da=useSelector(getSectionsList),pa=useSelector(getActiveSection),ha=da.indexOf(pa),ga=reactExports.useMemo(()=>{const va=[];return da.forEach((xa,ya)=>{let Aa=0;ya===ha?Aa=50:ya<ha&&(Aa=100),va.push({id:xa,progress:Aa})}),va},[ha,da]),fa={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...ca,...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},ma={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:va=>{assignRef$1(va,na),ua.current=va},style:ma,contentStyle:fa,onElementClick:ra,...ea,className:`${ea.className} ${la}`,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${la}`}),jsxRuntimeExports.jsx(StoriesProgressBar,{...oa,storiesData:ga})]})}),StoriesProgressBarElement=dt$1(StoriesProgressBarElementLogic).withConfig({displayName:"StoriesProgressBar__StoriesProgressBarElement",componentId:"sc-lk1zet-0"})([""]);registerElement({type:"dpcStoriesProgressBar",name:"Stories Progressbar",component:StoriesProgressBarElement,optionControls:optionControls$h,initialStateValues:initialStateValues$i,defaultStateValues:defaultStateValues$i,icon:SvgControl});const Iframe=ea=>{const{className:na="dpc-iframe",src:ra,title:oa="",disablePointerEvents:aa=!1,disableScroll:sa=!1,fullscreen:la=!1}=ea,ca={pointerEvents:aa?"none":"initial"};return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx("iframe",{src:ra,title:oa,style:ca,scrolling:sa?"no":"yes",allow:la?"fullscreen":""})})},defaultStateValues$h={...elementDefaultCommonState},initialStateValues$h={styles:{backgroundColor:{default:"#000000"}}},optionsSelector$w=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$w=updateSelectedElementsValueByPathAndPrefix("options"),iframeOptions=[{id:"iframeOptions",label:i18next.t("Iframe Options"),border:"bottom",optionControls:[[createOptionControl({id:"iframeSrc",control:Input$2,controlProps:{type:"url",placeholder:i18next.t("e.g. https://example.com/"),variant:"small"},label:i18next.t("Source"),selector:optionsSelector$w("src"),action:optionsAction$w("src")})],[createOptionControl({id:"iframeTitle",label:i18next.t("Title"),control:Input$2,controlProps:{type:"text",placeholder:i18next.t("e.g. Iframe Example Title"),variant:"small"},selector:optionsSelector$w("title"),action:optionsAction$w("title")})],[createOptionControl({id:"disableScroll",control:SwitchBox$1,controlProps:{label:i18next.t("Disable scroll")},selector:optionsSelector$w("disableScroll"),action:optionsAction$w("disableScroll")})],[createOptionControl({id:"enableFullscreen",control:SwitchBox$1,controlProps:{label:i18next.t("Allow fullscreen")},selector:optionsSelector$w("fullscreen"),action:optionsAction$w("fullscreen")})]]}],iframeElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["filter","padding","backgroundBlur","corner"]))(elementStylesOptionControls),optionControls$g=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...iframeOptions,...iframeElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],IframeElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa}=ea,sa=useUniqueClassName(),la=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0}),[]),ca=useTypography(aa?.typography),ua=reactExports.useRef(null),da={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...ca,...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},pa={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:ha=>{assignRef$1(ha,na),ua.current=ha},style:pa,contentStyle:da,onElementClick:ra,transformToolConfig:la,...ea,className:`${ea.className} ${sa}`,children:jsxRuntimeExports.jsx(Iframe,{...oa,disablePointerEvents:!0})})}),IframeElement=dt$1(IframeElementLogic).withConfig({displayName:"Iframe__IframeElement",componentId:"sc-8kjhbf-0"})([""]);registerElement({type:"dpcIframe",name:"Iframe",component:IframeElement,optionControls:optionControls$g,initialStateValues:initialStateValues$h,defaultStateValues:defaultStateValues$h});const NoticeInfoIcon="data:image/svg+xml,%3csvg%20width='14'%20height='18'%20viewBox='0%200%2014%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%2016C10.866%2016%2014%2012.866%2014%209C14%205.13401%2010.866%202%207%202C3.13401%202%200%205.13401%200%209C0%2012.866%203.13401%2016%207%2016Z'%20fill='%234980F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%208H8V13H6V8Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%208H7V9H5V8Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%206C6%205.44772%206.44772%205%207%205C7.55228%205%208%205.44772%208%206C8%206.55228%207.55228%207%207%207C6.44772%207%206%206.55228%206%206Z'%20fill='white'/%3e%3c/svg%3e",SampleShortcodeLogo="data:image/svg+xml,%3csvg%20width='140'%20height='42'%20viewBox='0%200%20140%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%204C0%201.79086%201.79086%200%204%200H136C138.209%200%20140%201.79086%20140%204V38C140%2040.2091%20138.209%2042%20136%2042H4C1.79086%2042%200%2040.2091%200%2038V4Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%2012C11%2010.8954%2011.8954%2010%2013%2010H128C129.105%2010%20130%2010.8954%20130%2012V31C130%2032.1046%20129.105%2033%20128%2033H13C11.8954%2033%2011%2032.1046%2011%2031V12Z'%20fill='%23E0E0E0'/%3e%3cpath%20opacity='0.87'%20d='M29.8701%2024.3789C29.8701%2024.75%2029.7822%2025.0641%2029.6064%2025.3213C29.4339%2025.5752%2029.1751%2025.7689%2028.8301%2025.9023C28.485%2026.0326%2028.0553%2026.0977%2027.541%2026.0977C27.1602%2026.0977%2026.833%2026.0732%2026.5596%2026.0244C26.2894%2025.9756%2026.016%2025.8942%2025.7393%2025.7803V24.5498C26.0355%2024.6833%2026.3529%2024.7939%2026.6914%2024.8818C27.0332%2024.9665%2027.3327%2025.0088%2027.5898%2025.0088C27.8796%2025.0088%2028.0863%2024.9665%2028.21%2024.8818C28.3369%2024.7939%2028.4004%2024.68%2028.4004%2024.54C28.4004%2024.4489%2028.3743%2024.3675%2028.3223%2024.2959C28.2734%2024.221%2028.166%2024.138%2028%2024.0469C27.834%2023.9525%2027.5736%2023.8304%2027.2188%2023.6807C26.877%2023.5374%2026.5954%2023.3926%2026.374%2023.2461C26.1559%2023.0996%2025.9932%2022.9271%2025.8857%2022.7285C25.7816%2022.5267%2025.7295%2022.2712%2025.7295%2021.9619C25.7295%2021.4574%2025.9248%2021.0781%2026.3154%2020.8242C26.7093%2020.5671%2027.235%2020.4385%2027.8926%2020.4385C28.2311%2020.4385%2028.5534%2020.4727%2028.8594%2020.541C29.1686%2020.6094%2029.486%2020.7184%2029.8115%2020.8682L29.3623%2021.9424C29.0921%2021.8252%2028.8366%2021.7292%2028.5957%2021.6543C28.3581%2021.5794%2028.1156%2021.542%2027.8682%2021.542C27.6501%2021.542%2027.4857%2021.5713%2027.375%2021.6299C27.2643%2021.6885%2027.209%2021.778%2027.209%2021.8984C27.209%2021.9863%2027.2367%2022.0645%2027.292%2022.1328C27.3506%2022.2012%2027.4613%2022.2777%2027.624%2022.3623C27.79%2022.4437%2028.0326%2022.5495%2028.3516%2022.6797C28.6608%2022.8066%2028.9294%2022.9401%2029.1572%2023.0801C29.3851%2023.2168%2029.5609%2023.3877%2029.6846%2023.5928C29.8083%2023.7946%2029.8701%2024.0566%2029.8701%2024.3789ZM33.2686%2020.4287C34.001%2020.4287%2034.5625%2020.5882%2034.9531%2020.9072C35.3438%2021.2262%2035.5391%2021.7113%2035.5391%2022.3623V26H34.499L34.2109%2025.2578H34.1719C34.0156%2025.4531%2033.8561%2025.6126%2033.6934%2025.7363C33.5306%2025.86%2033.3434%2025.9512%2033.1318%2026.0098C32.9202%2026.0684%2032.6631%2026.0977%2032.3604%2026.0977C32.0381%2026.0977%2031.7484%2026.0358%2031.4912%2025.9121C31.2373%2025.7884%2031.0371%2025.5996%2030.8906%2025.3457C30.7441%2025.0885%2030.6709%2024.763%2030.6709%2024.3691C30.6709%2023.7897%2030.8743%2023.3633%2031.2812%2023.0898C31.6882%2022.8132%2032.2985%2022.6602%2033.1123%2022.6309L34.0596%2022.6016V22.3623C34.0596%2022.0758%2033.9847%2021.8659%2033.835%2021.7324C33.6852%2021.599%2033.4769%2021.5322%2033.21%2021.5322C32.9463%2021.5322%2032.6875%2021.5697%2032.4336%2021.6445C32.1797%2021.7194%2031.9258%2021.8138%2031.6719%2021.9277L31.1787%2020.9219C31.4684%2020.7689%2031.7923%2020.6484%2032.1504%2020.5605C32.5117%2020.4727%2032.8844%2020.4287%2033.2686%2020.4287ZM34.0596%2023.4707L33.4834%2023.4902C33.0016%2023.5033%2032.6663%2023.5895%2032.4775%2023.749C32.292%2023.9085%2032.1992%2024.1185%2032.1992%2024.3789C32.1992%2024.6068%2032.266%2024.7695%2032.3994%2024.8672C32.5329%2024.9616%2032.707%2025.0088%2032.9219%2025.0088C33.2409%2025.0088%2033.5094%2024.9144%2033.7275%2024.7256C33.9489%2024.5368%2034.0596%2024.2682%2034.0596%2023.9199V23.4707ZM43.4883%2020.4385C44.1068%2020.4385%2044.5739%2020.598%2044.8896%2020.917C45.2087%2021.2327%2045.3682%2021.7406%2045.3682%2022.4404V26H43.874V22.8115C43.874%2022.4209%2043.8073%2022.1263%2043.6738%2021.9277C43.5404%2021.7292%2043.3337%2021.6299%2043.0537%2021.6299C42.6598%2021.6299%2042.3799%2021.7715%2042.2139%2022.0547C42.0479%2022.3346%2041.9648%2022.7367%2041.9648%2023.2607V26H40.4756V22.8115C40.4756%2022.5511%2040.4463%2022.333%2040.3877%2022.1572C40.3291%2021.9814%2040.2396%2021.8496%2040.1191%2021.7617C39.9987%2021.6738%2039.8441%2021.6299%2039.6553%2021.6299C39.3786%2021.6299%2039.1605%2021.6999%2039.001%2021.8398C38.8447%2021.9766%2038.7324%2022.18%2038.6641%2022.4502C38.599%2022.7171%2038.5664%2023.0443%2038.5664%2023.4316V26H37.0771V20.541H38.2148L38.415%2021.2393H38.498C38.6087%2021.0505%2038.7471%2020.8975%2038.9131%2020.7803C39.0824%2020.6631%2039.2679%2020.5768%2039.4697%2020.5215C39.6715%2020.4661%2039.8766%2020.4385%2040.085%2020.4385C40.4854%2020.4385%2040.8239%2020.5036%2041.1006%2020.6338C41.3805%2020.764%2041.5954%2020.9658%2041.7451%2021.2393H41.877C42.0397%2020.9593%2042.2692%2020.7559%2042.5654%2020.6289C42.8649%2020.502%2043.1725%2020.4385%2043.4883%2020.4385ZM49.9385%2020.4385C50.5537%2020.4385%2051.0501%2020.6777%2051.4277%2021.1562C51.8086%2021.6348%2051.999%2022.3363%2051.999%2023.2607C51.999%2023.8792%2051.9095%2024.4001%2051.7305%2024.8232C51.5514%2025.2432%2051.304%2025.5605%2050.9883%2025.7754C50.6725%2025.9902%2050.3096%2026.0977%2049.8994%2026.0977C49.6357%2026.0977%2049.4095%2026.0651%2049.2207%2026C49.0319%2025.9316%2048.8708%2025.8454%2048.7373%2025.7412C48.6038%2025.6338%2048.4883%2025.5199%2048.3906%2025.3994H48.3125C48.3385%2025.5296%2048.3581%2025.6631%2048.3711%2025.7998C48.3841%2025.9365%2048.3906%2026.07%2048.3906%2026.2002V28.4023H46.9014V20.541H48.1123L48.3223%2021.249H48.3906C48.4883%2021.1025%2048.6071%2020.9674%2048.7471%2020.8438C48.887%2020.7201%2049.0547%2020.6224%2049.25%2020.5508C49.4486%2020.4759%2049.6781%2020.4385%2049.9385%2020.4385ZM49.46%2021.6299C49.1995%2021.6299%2048.9928%2021.6836%2048.8398%2021.791C48.6868%2021.8984%2048.5745%2022.0596%2048.5029%2022.2744C48.4346%2022.4893%2048.3971%2022.7611%2048.3906%2023.0898V23.251C48.3906%2023.6025%2048.4232%2023.9004%2048.4883%2024.1445C48.5566%2024.3887%2048.6689%2024.5742%2048.8252%2024.7012C48.9847%2024.8281%2049.2028%2024.8916%2049.4795%2024.8916C49.7074%2024.8916%2049.8945%2024.8281%2050.041%2024.7012C50.1875%2024.5742%2050.2965%2024.3887%2050.3682%2024.1445C50.443%2023.8971%2050.4805%2023.596%2050.4805%2023.2412C50.4805%2022.7074%2050.3975%2022.3053%2050.2314%2022.0352C50.0654%2021.765%2049.8083%2021.6299%2049.46%2021.6299ZM54.7188%2026H53.2295V18.4023H54.7188V26ZM58.5371%2020.4385C59.0417%2020.4385%2059.4762%2020.5361%2059.8408%2020.7314C60.2054%2020.9235%2060.487%2021.2035%2060.6855%2021.5713C60.8841%2021.9391%2060.9834%2022.3883%2060.9834%2022.9189V23.6416H57.4629C57.4792%2024.0615%2057.6045%2024.3919%2057.8389%2024.6328C58.0765%2024.8704%2058.4053%2024.9893%2058.8252%2024.9893C59.1735%2024.9893%2059.4925%2024.9535%2059.7822%2024.8818C60.0719%2024.8102%2060.3698%2024.7028%2060.6758%2024.5596V25.7119C60.4056%2025.8454%2060.1224%2025.943%2059.8262%2026.0049C59.5332%2026.0667%2059.1768%2026.0977%2058.7568%2026.0977C58.21%2026.0977%2057.7249%2025.9967%2057.3018%2025.7949C56.8818%2025.5931%2056.5514%2025.2855%2056.3105%2024.8721C56.0729%2024.4587%2055.9541%2023.9378%2055.9541%2023.3096C55.9541%2022.6715%2056.0615%2022.141%2056.2764%2021.7178C56.4945%2021.2913%2056.7972%2020.9723%2057.1846%2020.7607C57.5719%2020.5459%2058.0228%2020.4385%2058.5371%2020.4385ZM58.5469%2021.498C58.2572%2021.498%2058.0163%2021.5908%2057.8242%2021.7764C57.6354%2021.9619%2057.5264%2022.2533%2057.4971%2022.6504H59.5869C59.5837%2022.429%2059.543%2022.2321%2059.4648%2022.0596C59.39%2021.887%2059.276%2021.7503%2059.123%2021.6494C58.9733%2021.5485%2058.7812%2021.498%2058.5469%2021.498ZM65.5439%2027.582H61.3936V26.8984H65.5439V27.582ZM70.1143%2024.3789C70.1143%2024.75%2070.0264%2025.0641%2069.8506%2025.3213C69.6781%2025.5752%2069.4193%2025.7689%2069.0742%2025.9023C68.7292%2026.0326%2068.2995%2026.0977%2067.7852%2026.0977C67.4043%2026.0977%2067.0771%2026.0732%2066.8037%2026.0244C66.5335%2025.9756%2066.2601%2025.8942%2065.9834%2025.7803V24.5498C66.2796%2024.6833%2066.597%2024.7939%2066.9355%2024.8818C67.2773%2024.9665%2067.5768%2025.0088%2067.834%2025.0088C68.1237%2025.0088%2068.3304%2024.9665%2068.4541%2024.8818C68.5811%2024.7939%2068.6445%2024.68%2068.6445%2024.54C68.6445%2024.4489%2068.6185%2024.3675%2068.5664%2024.2959C68.5176%2024.221%2068.4102%2024.138%2068.2441%2024.0469C68.0781%2023.9525%2067.8177%2023.8304%2067.4629%2023.6807C67.1211%2023.5374%2066.8395%2023.3926%2066.6182%2023.2461C66.4001%2023.0996%2066.2373%2022.9271%2066.1299%2022.7285C66.0257%2022.5267%2065.9736%2022.2712%2065.9736%2021.9619C65.9736%2021.4574%2066.1689%2021.0781%2066.5596%2020.8242C66.9535%2020.5671%2067.4792%2020.4385%2068.1367%2020.4385C68.4753%2020.4385%2068.7975%2020.4727%2069.1035%2020.541C69.4128%2020.6094%2069.7301%2020.7184%2070.0557%2020.8682L69.6064%2021.9424C69.3363%2021.8252%2069.0807%2021.7292%2068.8398%2021.6543C68.6022%2021.5794%2068.3597%2021.542%2068.1123%2021.542C67.8942%2021.542%2067.7298%2021.5713%2067.6191%2021.6299C67.5085%2021.6885%2067.4531%2021.778%2067.4531%2021.8984C67.4531%2021.9863%2067.4808%2022.0645%2067.5361%2022.1328C67.5947%2022.2012%2067.7054%2022.2777%2067.8682%2022.3623C68.0342%2022.4437%2068.2767%2022.5495%2068.5957%2022.6797C68.9049%2022.8066%2069.1735%2022.9401%2069.4014%2023.0801C69.6292%2023.2168%2069.805%2023.3877%2069.9287%2023.5928C70.0524%2023.7946%2070.1143%2024.0566%2070.1143%2024.3789ZM72.7656%2018.4023V19.9502C72.7656%2020.2204%2072.7559%2020.4775%2072.7363%2020.7217C72.7201%2020.9658%2072.707%2021.1383%2072.6973%2021.2393H72.7754C72.8926%2021.0505%2073.0309%2020.8975%2073.1904%2020.7803C73.3532%2020.6631%2073.5322%2020.5768%2073.7275%2020.5215C73.9229%2020.4661%2074.1328%2020.4385%2074.3574%2020.4385C74.7513%2020.4385%2075.0947%2020.5085%2075.3877%2020.6484C75.6807%2020.7852%2075.9085%2021.0016%2076.0713%2021.2979C76.234%2021.5908%2076.3154%2021.9717%2076.3154%2022.4404V26H74.8262V22.8115C74.8262%2022.4209%2074.7546%2022.1263%2074.6113%2021.9277C74.4681%2021.7292%2074.2467%2021.6299%2073.9473%2021.6299C73.6478%2021.6299%2073.4118%2021.6999%2073.2393%2021.8398C73.0667%2021.9766%2072.9447%2022.18%2072.873%2022.4502C72.8014%2022.7171%2072.7656%2023.0443%2072.7656%2023.4316V26H71.2764V18.4023H72.7656ZM82.8096%2023.2607C82.8096%2023.7165%2082.7477%2024.1201%2082.624%2024.4717C82.5036%2024.8232%2082.3262%2025.1211%2082.0918%2025.3652C81.8607%2025.6061%2081.5807%2025.7884%2081.252%2025.9121C80.9264%2026.0358%2080.5586%2026.0977%2080.1484%2026.0977C79.7643%2026.0977%2079.4111%2026.0358%2079.0889%2025.9121C78.7699%2025.7884%2078.4915%2025.6061%2078.2539%2025.3652C78.0195%2025.1211%2077.8372%2024.8232%2077.707%2024.4717C77.5801%2024.1201%2077.5166%2023.7165%2077.5166%2023.2607C77.5166%2022.6553%2077.624%2022.1426%2077.8389%2021.7227C78.0537%2021.3027%2078.3597%2020.9837%2078.7568%2020.7656C79.154%2020.5475%2079.6276%2020.4385%2080.1777%2020.4385C80.6888%2020.4385%2081.1413%2020.5475%2081.5352%2020.7656C81.9323%2020.9837%2082.2432%2021.3027%2082.4678%2021.7227C82.6956%2022.1426%2082.8096%2022.6553%2082.8096%2023.2607ZM79.0352%2023.2607C79.0352%2023.6188%2079.0742%2023.9199%2079.1523%2024.1641C79.2305%2024.4082%2079.3525%2024.5921%2079.5186%2024.7158C79.6846%2024.8395%2079.901%2024.9014%2080.168%2024.9014C80.4316%2024.9014%2080.6449%2024.8395%2080.8076%2024.7158C80.9736%2024.5921%2081.0941%2024.4082%2081.1689%2024.1641C81.2471%2023.9199%2081.2861%2023.6188%2081.2861%2023.2607C81.2861%2022.8994%2081.2471%2022.5999%2081.1689%2022.3623C81.0941%2022.1214%2080.9736%2021.9408%2080.8076%2021.8203C80.6416%2021.6999%2080.4251%2021.6396%2080.1582%2021.6396C79.7643%2021.6396%2079.4779%2021.7747%2079.2988%2022.0449C79.123%2022.3151%2079.0352%2022.7204%2079.0352%2023.2607ZM87.0869%2020.4385C87.1618%2020.4385%2087.248%2020.4434%2087.3457%2020.4531C87.4466%2020.4596%2087.528%2020.4694%2087.5898%2020.4824L87.4775%2021.8789C87.4287%2021.8626%2087.3587%2021.8512%2087.2676%2021.8447C87.1797%2021.835%2087.1032%2021.8301%2087.0381%2021.8301C86.846%2021.8301%2086.6589%2021.8545%2086.4766%2021.9033C86.2975%2021.9521%2086.1364%2022.0319%2085.9932%2022.1426C85.8499%2022.25%2085.736%2022.3932%2085.6514%2022.5723C85.57%2022.748%2085.5293%2022.9645%2085.5293%2023.2217V26H84.04V20.541H85.168L85.3877%2021.459H85.4609C85.5684%2021.2734%2085.7018%2021.1042%2085.8613%2020.9512C86.0241%2020.7949%2086.208%2020.6712%2086.4131%2020.5801C86.6214%2020.4857%2086.846%2020.4385%2087.0869%2020.4385ZM90.8809%2024.9111C91.0436%2024.9111%2091.2015%2024.8949%2091.3545%2024.8623C91.5107%2024.8298%2091.6654%2024.7891%2091.8184%2024.7402V25.8486C91.6589%2025.9202%2091.4603%2025.9788%2091.2227%2026.0244C90.9883%2026.0732%2090.7311%2026.0977%2090.4512%2026.0977C90.1257%2026.0977%2089.8327%2026.0456%2089.5723%2025.9414C89.3151%2025.834%2089.1117%2025.6501%2088.9619%2025.3896C88.8154%2025.126%2088.7422%2024.7598%2088.7422%2024.291V21.6592H88.0293V21.0293L88.8496%2020.5312L89.2793%2019.3789H90.2314V20.541H91.7598V21.6592H90.2314V24.291C90.2314%2024.4993%2090.29%2024.6556%2090.4072%2024.7598C90.5277%2024.8607%2090.6855%2024.9111%2090.8809%2024.9111ZM95.1436%2026.0977C94.6032%2026.0977%2094.1426%2026%2093.7617%2025.8047C93.3809%2025.6061%2093.0911%2025.3001%2092.8926%2024.8867C92.694%2024.4733%2092.5947%2023.9443%2092.5947%2023.2998C92.5947%2022.6325%2092.707%2022.0889%2092.9316%2021.6689C93.1595%2021.2458%2093.4736%2020.9349%2093.874%2020.7363C94.2777%2020.5378%2094.7448%2020.4385%2095.2754%2020.4385C95.653%2020.4385%2095.9785%2020.4759%2096.252%2020.5508C96.5286%2020.6224%2096.7695%2020.7087%2096.9746%2020.8096L96.5352%2021.9619C96.3008%2021.8675%2096.0827%2021.791%2095.8809%2021.7324C95.679%2021.6706%2095.4772%2021.6396%2095.2754%2021.6396C95.015%2021.6396%2094.7985%2021.7015%2094.626%2021.8252C94.4535%2021.9456%2094.3249%2022.1279%2094.2402%2022.3721C94.1556%2022.6162%2094.1133%2022.9222%2094.1133%2023.29C94.1133%2023.6514%2094.1589%2023.9508%2094.25%2024.1885C94.3411%2024.4261%2094.473%2024.6035%2094.6455%2024.7207C94.818%2024.8346%2095.028%2024.8916%2095.2754%2024.8916C95.5846%2024.8916%2095.8597%2024.8509%2096.1006%2024.7695C96.3415%2024.6849%2096.5758%2024.5677%2096.8037%2024.418V25.6924C96.5758%2025.8356%2096.3366%2025.9382%2096.0859%2026C95.8385%2026.0651%2095.5244%2026.0977%2095.1436%2026.0977ZM103.034%2023.2607C103.034%2023.7165%20102.972%2024.1201%20102.849%2024.4717C102.728%2024.8232%20102.551%2025.1211%20102.316%2025.3652C102.085%2025.6061%20101.805%2025.7884%20101.477%2025.9121C101.151%2026.0358%20100.783%2026.0977%20100.373%2026.0977C99.9889%2026.0977%2099.6357%2026.0358%2099.3135%2025.9121C98.9945%2025.7884%2098.7161%2025.6061%2098.4785%2025.3652C98.2441%2025.1211%2098.0618%2024.8232%2097.9316%2024.4717C97.8047%2024.1201%2097.7412%2023.7165%2097.7412%2023.2607C97.7412%2022.6553%2097.8486%2022.1426%2098.0635%2021.7227C98.2783%2021.3027%2098.5843%2020.9837%2098.9814%2020.7656C99.3786%2020.5475%2099.8522%2020.4385%20100.402%2020.4385C100.913%2020.4385%20101.366%2020.5475%20101.76%2020.7656C102.157%2020.9837%20102.468%2021.3027%20102.692%2021.7227C102.92%2022.1426%20103.034%2022.6553%20103.034%2023.2607ZM99.2598%2023.2607C99.2598%2023.6188%2099.2988%2023.9199%2099.377%2024.1641C99.4551%2024.4082%2099.5771%2024.5921%2099.7432%2024.7158C99.9092%2024.8395%20100.126%2024.9014%20100.393%2024.9014C100.656%2024.9014%20100.869%2024.8395%20101.032%2024.7158C101.198%2024.5921%20101.319%2024.4082%20101.394%2024.1641C101.472%2023.9199%20101.511%2023.6188%20101.511%2023.2607C101.511%2022.8994%20101.472%2022.5999%20101.394%2022.3623C101.319%2022.1214%20101.198%2021.9408%20101.032%2021.8203C100.866%2021.6999%20100.65%2021.6396%20100.383%2021.6396C99.9889%2021.6396%2099.7025%2021.7747%2099.5234%2022.0449C99.3477%2022.3151%2099.2598%2022.7204%2099.2598%2023.2607ZM105.993%2026.0977C105.384%2026.0977%20104.888%2025.86%20104.504%2025.3848C104.123%2024.9062%20103.933%2024.2048%20103.933%2023.2803C103.933%2022.346%20104.126%2021.6396%20104.514%2021.1611C104.901%2020.6794%20105.407%2020.4385%20106.032%2020.4385C106.293%2020.4385%20106.522%2020.4743%20106.721%2020.5459C106.919%2020.6175%20107.09%2020.7135%20107.233%2020.834C107.38%2020.9544%20107.504%2021.0895%20107.604%2021.2393H107.653C107.634%2021.1351%20107.609%2020.9821%20107.58%2020.7803C107.554%2020.5752%20107.541%2020.3652%20107.541%2020.1504V18.4023H109.035V26H107.893L107.604%2025.292H107.541C107.447%2025.4417%20107.328%2025.5785%20107.185%2025.7021C107.045%2025.8226%20106.877%2025.9186%20106.682%2025.9902C106.486%2026.0618%20106.257%2026.0977%20105.993%2026.0977ZM106.516%2024.9111C106.923%2024.9111%20107.209%2024.7907%20107.375%2024.5498C107.544%2024.3057%20107.634%2023.9395%20107.644%2023.4512V23.29C107.644%2022.7594%20107.562%2022.3542%20107.399%2022.0742C107.237%2021.791%20106.934%2021.6494%20106.491%2021.6494C106.162%2021.6494%20105.905%2021.791%20105.72%2022.0742C105.534%2022.3574%20105.441%2022.766%20105.441%2023.2998C105.441%2023.8337%20105.534%2024.2357%20105.72%2024.5059C105.909%2024.776%20106.174%2024.9111%20106.516%2024.9111ZM112.844%2020.4385C113.348%2020.4385%20113.783%2020.5361%20114.147%2020.7314C114.512%2020.9235%20114.794%2021.2035%20114.992%2021.5713C115.191%2021.9391%20115.29%2022.3883%20115.29%2022.9189V23.6416H111.77C111.786%2024.0615%20111.911%2024.3919%20112.146%2024.6328C112.383%2024.8704%20112.712%2024.9893%20113.132%2024.9893C113.48%2024.9893%20113.799%2024.9535%20114.089%2024.8818C114.379%2024.8102%20114.676%2024.7028%20114.982%2024.5596V25.7119C114.712%2025.8454%20114.429%2025.943%20114.133%2026.0049C113.84%2026.0667%20113.483%2026.0977%20113.063%2026.0977C112.517%2026.0977%20112.032%2025.9967%20111.608%2025.7949C111.188%2025.5931%20110.858%2025.2855%20110.617%2024.8721C110.38%2024.4587%20110.261%2023.9378%20110.261%2023.3096C110.261%2022.6715%20110.368%2022.141%20110.583%2021.7178C110.801%2021.2913%20111.104%2020.9723%20111.491%2020.7607C111.879%2020.5459%20112.329%2020.4385%20112.844%2020.4385ZM112.854%2021.498C112.564%2021.498%20112.323%2021.5908%20112.131%2021.7764C111.942%2021.9619%20111.833%2022.2533%20111.804%2022.6504H113.894C113.89%2022.429%20113.85%2022.2321%20113.771%2022.0596C113.697%2021.887%20113.583%2021.7503%20113.43%2021.6494C113.28%2021.5485%20113.088%2021.498%20112.854%2021.498Z'%20fill='%23070707'/%3e%3cpath%20opacity='0.87'%20d='M23%2028H20V16H23V17.4177H21.6116V26.5823H23V28Z'%20fill='%23070707'/%3e%3cpath%20opacity='0.87'%20d='M118%2028H121V16H118V17.4177H119.388V26.5823H118V28Z'%20fill='%23070707'/%3e%3c/svg%3e",optionsSelector$v=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$v=updateSelectedElementsValueByPathAndPrefix("options"),shortcodeOptions=[{id:"shortcodeOptions",label:i18next.t("Shortcode Options"),border:"bottom",optionControls:[[createOptionControl({id:"shortcode",control:Input$2,controlProps:{placeholder:i18next.t("[your_shortcode_here]"),variant:"small"},label:i18next.t("Shortcode"),selector:optionsSelector$v("shortcode"),action:optionsAction$v("shortcode")})],[createOptionControl({id:"enableOverflowHidden",control:SwitchBox$1,controlProps:{label:i18next.t("Enable overflow hidden"),tooltip:{content:i18next.t("Enable overflow hidden for this shortcode element. This will hide any content that overflows the element."),options:{place:"top",id:"workspace"}}},selector:optionsSelector$v("overflowHidden"),action:optionsAction$v("overflowHidden")})]]}],shortcodeElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["filter","padding","backgroundBlur","corner"]))(elementStylesOptionControls),optionControls$f=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...shortcodeOptions,...shortcodeElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$g={...elementDefaultCommonState},initialStateValues$g={},NoticeContainer$1=dt$1.div.withConfig({displayName:"WPShortcode__NoticeContainer",componentId:"sc-l0ocjz-0"})([""]),WPShortcodeElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa}=ea,sa=useUniqueClassName(),{t:la}=useTranslation(),ca=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0}),[]),ua=reactExports.useRef(null),da=oa?.shortcode?`${editorEnv.pluginAPI}?action=depicter-render-shortcode&shortcode=${oa?.shortcode}&depicter-csrf=${editorEnv.csrfToken}`:"about:blank",pa={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useBackgroundColor(aa?.backgroundColor),...useFlexStyles(aa?.flex)},ha={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsx(BaseElement$1,{ref:ga=>{assignRef$1(ga,na),ua.current=ga},style:ha,contentStyle:pa,onElementClick:ra,transformToolConfig:ca,...ea,className:`${ea.className} ${sa}`,children:oa?.shortcode?jsxRuntimeExports.jsx(Iframe,{src:da,disablePointerEvents:!0}):jsxRuntimeExports.jsxs(NoticeContainer$1,{children:[jsxRuntimeExports.jsx("img",{src:SampleShortcodeLogo,alt:"loading failed"}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx(Icon$4,{shape:NoticeInfoIcon}),la("Use right side panel to set the shortcode. The shortcode will be rendered here.")]})]})})}),WPShortcodeElement=dt$1(WPShortcodeElementLogic).withConfig({displayName:"WPShortcode__WPShortcodeElement",componentId:"sc-l0ocjz-1"})(["iframe{background-color:transparent;}","{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;width:100%;height:100%;background-color:#f5f5f5;padding:40px;color:#070707;text-align:center;","{display:inline;vertical-align:middle;margin-right:8px;}}"],NoticeContainer$1,Icon$4);registerElement({type:"wpShortcode",name:"WPShortcode",component:WPShortcodeElement,optionControls:optionControls$f,initialStateValues:initialStateValues$g,defaultStateValues:defaultStateValues$g});/*! *****************************************************************************
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 extendStatics=function(ea,na){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ra,oa){ra.__proto__=oa}||function(ra,oa){for(var aa in oa)Object.prototype.hasOwnProperty.call(oa,aa)&&(ra[aa]=oa[aa])})(ea,na)};function __extends(ea,na){if(typeof na!="function"&&na!==null)throw new TypeError("Class extends value "+String(na)+" is not a constructor or null");function ra(){this.constructor=ea}extendStatics(ea,na),ea.prototype=na===null?Object.create(na):(ra.prototype=na.prototype,new ra)}var __assign=function(){return(__assign=Object.assign||function(ea){for(var na,ra=1,oa=arguments.length;ra<oa;ra++)for(var aa in na=arguments[ra])Object.prototype.hasOwnProperty.call(na,aa)&&(ea[aa]=na[aa]);return ea}).apply(this,arguments)};function __awaiter$6(ea,na,ra,oa){return new(ra||(ra=Promise))(function(aa,sa){function la(da){try{ua(oa.next(da))}catch(pa){sa(pa)}}function ca(da){try{ua(oa.throw(da))}catch(pa){sa(pa)}}function ua(da){var pa;da.done?aa(da.value):(pa=da.value,pa instanceof ra?pa:new ra(function(ha){ha(pa)})).then(la,ca)}ua((oa=oa.apply(ea,[])).next())})}function __generator(ea,na){var ra,oa,aa,sa,la={label:0,sent:function(){if(1&aa[0])throw aa[1];return aa[1]},trys:[],ops:[]};return sa={next:ca(0),throw:ca(1),return:ca(2)},typeof Symbol=="function"&&(sa[Symbol.iterator]=function(){return this}),sa;function ca(ua){return function(da){return function(pa){if(ra)throw new TypeError("Generator is already executing.");for(;la;)try{if(ra=1,oa&&(aa=2&pa[0]?oa.return:pa[0]?oa.throw||((aa=oa.return)&&aa.call(oa),0):oa.next)&&!(aa=aa.call(oa,pa[1])).done)return aa;switch(oa=0,aa&&(pa=[2&pa[0],aa.value]),pa[0]){case 0:case 1:aa=pa;break;case 4:return la.label++,{value:pa[1],done:!1};case 5:la.label++,oa=pa[1],pa=[0];continue;case 7:pa=la.ops.pop(),la.trys.pop();continue;default:if(aa=la.trys,!((aa=aa.length>0&&aa[aa.length-1])||pa[0]!==6&&pa[0]!==2)){la=0;continue}if(pa[0]===3&&(!aa||pa[1]>aa[0]&&pa[1]<aa[3])){la.label=pa[1];break}if(pa[0]===6&&la.label<aa[1]){la.label=aa[1],aa=pa;break}if(aa&&la.label<aa[2]){la.label=aa[2],la.ops.push(pa);break}aa[2]&&la.ops.pop(),la.trys.pop();continue}pa=na.call(ea,la)}catch(ha){pa=[6,ha],oa=0}finally{ra=aa=0}if(5&pa[0])throw pa[1];return{value:pa[0]?pa[1]:void 0,done:!0}}([ua,da])}}}function createCommonjsModule(ea,na){return ea(na={exports:{}},na.exports),na.exports}var lottie$1=createCommonjsModule(function(module,exports){typeof navigator<"u"&&function(ea,na){module.exports=na()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(ea){_useWebWorker=!!ea},getWebWorker=function(){return _useWebWorker},setLocationHref=function(ea){locationHref=ea},getLocationHref=function(){return locationHref};function createTag(ea){return document.createElement(ea)}function extendPrototype(ea,na){var ra,oa,aa=ea.length;for(ra=0;ra<aa;ra+=1)for(var sa in oa=ea[ra].prototype)Object.prototype.hasOwnProperty.call(oa,sa)&&(na.prototype[sa]=oa[sa])}function getDescriptor(ea,na){return Object.getOwnPropertyDescriptor(ea,na)}function createProxyFunction(ea){function na(){}return na.prototype=ea,na}var audioControllerFactory=function(){function ea(na){this.audios=[],this.audioFactory=na,this._volume=1,this._isMuted=!1}return ea.prototype={addAudio:function(na){this.audios.push(na)},pause:function(){var na,ra=this.audios.length;for(na=0;na<ra;na+=1)this.audios[na].pause()},resume:function(){var na,ra=this.audios.length;for(na=0;na<ra;na+=1)this.audios[na].resume()},setRate:function(na){var ra,oa=this.audios.length;for(ra=0;ra<oa;ra+=1)this.audios[ra].setRate(na)},createAudio:function(na){return this.audioFactory?this.audioFactory(na):window.Howl?new window.Howl({src:[na]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(na){this.audioFactory=na},setVolume:function(na){this._volume=na,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var na,ra=this.audios.length;for(na=0;na<ra;na+=1)this.audios[na].volume(this._volume*(this._isMuted?0:1))}},function(){return new ea}}(),createTypedArray=function(){function ea(na,ra){var oa,aa=0,sa=[];switch(na){case"int16":case"uint8c":oa=1;break;default:oa=1.1}for(aa=0;aa<ra;aa+=1)sa.push(oa);return sa}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(na,ra){return na==="float32"?new Float32Array(ra):na==="int16"?new Int16Array(ra):na==="uint8c"?new Uint8ClampedArray(ra):ea(na,ra)}:ea}();function createSizedArray(ea){return Array.apply(null,{length:ea})}function _typeof$6(ea){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var ea,na=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],ra=na.length;for(ea=0;ea<ra;ea+=1)BMMath[na[ea]]=Math[na[ea]]})(),BMMath.random=Math.random,BMMath.abs=function(ea){if(_typeof$6(ea)==="object"&&ea.length){var na,ra=createSizedArray(ea.length),oa=ea.length;for(na=0;na<oa;na+=1)ra[na]=Math.abs(ea[na]);return ra}return Math.abs(ea)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(ea){ea.style.position="absolute",ea.style.top=0,ea.style.left=0,ea.style.display="block",ea.style.transformOrigin="0 0",ea.style.webkitTransformOrigin="0 0",ea.style.backfaceVisibility="visible",ea.style.webkitBackfaceVisibility="visible",ea.style.transformStyle="preserve-3d",ea.style.webkitTransformStyle="preserve-3d",ea.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(ea,na,ra,oa){this.type=ea,this.currentTime=na,this.totalTime=ra,this.direction=oa<0?-1:1}function BMCompleteEvent(ea,na){this.type=ea,this.direction=na<0?-1:1}function BMCompleteLoopEvent(ea,na,ra,oa){this.type=ea,this.currentLoop=ra,this.totalLoops=na,this.direction=oa<0?-1:1}function BMSegmentStartEvent(ea,na,ra){this.type=ea,this.firstFrame=na,this.totalFrames=ra}function BMDestroyEvent(ea,na){this.type=ea,this.target=na}function BMRenderFrameErrorEvent(ea,na){this.type="renderFrameError",this.nativeError=ea,this.currentTime=na}function BMConfigErrorEvent(ea){this.type="configError",this.nativeError=ea}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(ea,na,ra){var oa,aa,sa,la,ca,ua,da,pa;switch(ua=ra*(1-na),da=ra*(1-(ca=6*ea-(la=Math.floor(6*ea)))*na),pa=ra*(1-(1-ca)*na),la%6){case 0:oa=ra,aa=pa,sa=ua;break;case 1:oa=da,aa=ra,sa=ua;break;case 2:oa=ua,aa=ra,sa=pa;break;case 3:oa=ua,aa=da,sa=ra;break;case 4:oa=pa,aa=ua,sa=ra;break;case 5:oa=ra,aa=ua,sa=da}return[oa,aa,sa]}function RGBtoHSV(ea,na,ra){var oa,aa=Math.max(ea,na,ra),sa=Math.min(ea,na,ra),la=aa-sa,ca=aa===0?0:la/aa,ua=aa/255;switch(aa){case sa:oa=0;break;case ea:oa=na-ra+la*(na<ra?6:0),oa/=6*la;break;case na:oa=ra-ea+2*la,oa/=6*la;break;case ra:oa=ea-na+4*la,oa/=6*la}return[oa,ca,ua]}function addSaturationToRGB(ea,na){var ra=RGBtoHSV(255*ea[0],255*ea[1],255*ea[2]);return ra[1]+=na,ra[1]>1?ra[1]=1:ra[1]<=0&&(ra[1]=0),HSVtoRGB(ra[0],ra[1],ra[2])}function addBrightnessToRGB(ea,na){var ra=RGBtoHSV(255*ea[0],255*ea[1],255*ea[2]);return ra[2]+=na,ra[2]>1?ra[2]=1:ra[2]<0&&(ra[2]=0),HSVtoRGB(ra[0],ra[1],ra[2])}function addHueToRGB(ea,na){var ra=RGBtoHSV(255*ea[0],255*ea[1],255*ea[2]);return ra[0]+=na/360,ra[0]>1?ra[0]-=1:ra[0]<0&&(ra[0]+=1),HSVtoRGB(ra[0],ra[1],ra[2])}var rgbToHex=function(){var ea,na,ra=[];for(ea=0;ea<256;ea+=1)na=ea.toString(16),ra[ea]=na.length===1?"0"+na:na;return function(oa,aa,sa){return oa<0&&(oa=0),aa<0&&(aa=0),sa<0&&(sa=0),"#"+ra[oa]+ra[aa]+ra[sa]}}(),setSubframeEnabled=function(ea){subframeEnabled=!!ea},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(ea){expressionsPlugin=ea},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(ea){expressionsInterfaces=ea},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(ea){defaultCurveSegments=ea},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(ea){idPrefix$1=ea};function createNS(ea){return document.createElementNS(svgNS,ea)}function _typeof$5(ea){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var dataManager=function(){var ea,na,ra=1,oa=[],aa={onmessage:function(){},postMessage:function(ua){ea({data:ua})}},sa={postMessage:function(ua){aa.onmessage({data:ua})}};function la(){na||((na=function(ua){if(window.Worker&&window.Blob&&getWebWorker()){var da=new Blob(["var _workerSelf = self; self.onmessage = ",ua.toString()],{type:"text/javascript"}),pa=URL.createObjectURL(da);return new Worker(pa)}return ea=ua,aa}(function(ua){if(sa.dataManager||(sa.dataManager=function(){function pa(Ea,$a){var Ma,Ia,Oa,Da,Ta,_a,La=Ea.length;for(Ia=0;Ia<La;Ia+=1)if("ks"in(Ma=Ea[Ia])&&!Ma.completed){if(Ma.completed=!0,Ma.hasMask){var Na=Ma.masksProperties;for(Da=Na.length,Oa=0;Oa<Da;Oa+=1)if(Na[Oa].pt.k.i)fa(Na[Oa].pt.k);else for(_a=Na[Oa].pt.k.length,Ta=0;Ta<_a;Ta+=1)Na[Oa].pt.k[Ta].s&&fa(Na[Oa].pt.k[Ta].s[0]),Na[Oa].pt.k[Ta].e&&fa(Na[Oa].pt.k[Ta].e[0])}Ma.ty===0?(Ma.layers=ha(Ma.refId,$a),pa(Ma.layers,$a)):Ma.ty===4?ga(Ma.shapes):Ma.ty===5&&wa(Ma)}}function ha(Ea,$a){var Ma=function(Ia,Oa){for(var Da=0,Ta=Oa.length;Da<Ta;){if(Oa[Da].id===Ia)return Oa[Da];Da+=1}return null}(Ea,$a);return Ma?Ma.layers.__used?JSON.parse(JSON.stringify(Ma.layers)):(Ma.layers.__used=!0,Ma.layers):null}function ga(Ea){var $a,Ma,Ia;for($a=Ea.length-1;$a>=0;$a-=1)if(Ea[$a].ty==="sh")if(Ea[$a].ks.k.i)fa(Ea[$a].ks.k);else for(Ia=Ea[$a].ks.k.length,Ma=0;Ma<Ia;Ma+=1)Ea[$a].ks.k[Ma].s&&fa(Ea[$a].ks.k[Ma].s[0]),Ea[$a].ks.k[Ma].e&&fa(Ea[$a].ks.k[Ma].e[0]);else Ea[$a].ty==="gr"&&ga(Ea[$a].it)}function fa(Ea){var $a,Ma=Ea.i.length;for($a=0;$a<Ma;$a+=1)Ea.i[$a][0]+=Ea.v[$a][0],Ea.i[$a][1]+=Ea.v[$a][1],Ea.o[$a][0]+=Ea.v[$a][0],Ea.o[$a][1]+=Ea.v[$a][1]}function ma(Ea,$a){var Ma=$a?$a.split("."):[100,100,100];return Ea[0]>Ma[0]||!(Ma[0]>Ea[0])&&(Ea[1]>Ma[1]||!(Ma[1]>Ea[1])&&(Ea[2]>Ma[2]||!(Ma[2]>Ea[2])&&null))}var va,xa=function(){var Ea=[4,4,14];function $a(Ma){var Ia,Oa,Da,Ta=Ma.length;for(Ia=0;Ia<Ta;Ia+=1)Ma[Ia].ty===5&&(Oa=Ma[Ia],Da=void 0,Da=Oa.t.d,Oa.t.d={k:[{s:Da,t:0}]})}return function(Ma){if(ma(Ea,Ma.v)&&($a(Ma.layers),Ma.assets)){var Ia,Oa=Ma.assets.length;for(Ia=0;Ia<Oa;Ia+=1)Ma.assets[Ia].layers&&$a(Ma.assets[Ia].layers)}}}(),ya=(va=[4,7,99],function(Ea){if(Ea.chars&&!ma(va,Ea.v)){var $a,Ma=Ea.chars.length;for($a=0;$a<Ma;$a+=1){var Ia=Ea.chars[$a];Ia.data&&Ia.data.shapes&&(ga(Ia.data.shapes),Ia.data.ip=0,Ia.data.op=99999,Ia.data.st=0,Ia.data.sr=1,Ia.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Ea.chars[$a].t||(Ia.data.shapes.push({ty:"no"}),Ia.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),Aa=function(){var Ea=[5,7,15];function $a(Ma){var Ia,Oa,Da,Ta=Ma.length;for(Ia=0;Ia<Ta;Ia+=1)Ma[Ia].ty===5&&(Oa=Ma[Ia],Da=void 0,typeof(Da=Oa.t.p).a=="number"&&(Da.a={a:0,k:Da.a}),typeof Da.p=="number"&&(Da.p={a:0,k:Da.p}),typeof Da.r=="number"&&(Da.r={a:0,k:Da.r}))}return function(Ma){if(ma(Ea,Ma.v)&&($a(Ma.layers),Ma.assets)){var Ia,Oa=Ma.assets.length;for(Ia=0;Ia<Oa;Ia+=1)Ma.assets[Ia].layers&&$a(Ma.assets[Ia].layers)}}}(),Ca=function(){var Ea=[4,1,9];function $a(Ia){var Oa,Da,Ta,_a=Ia.length;for(Oa=0;Oa<_a;Oa+=1)if(Ia[Oa].ty==="gr")$a(Ia[Oa].it);else if(Ia[Oa].ty==="fl"||Ia[Oa].ty==="st")if(Ia[Oa].c.k&&Ia[Oa].c.k[0].i)for(Ta=Ia[Oa].c.k.length,Da=0;Da<Ta;Da+=1)Ia[Oa].c.k[Da].s&&(Ia[Oa].c.k[Da].s[0]/=255,Ia[Oa].c.k[Da].s[1]/=255,Ia[Oa].c.k[Da].s[2]/=255,Ia[Oa].c.k[Da].s[3]/=255),Ia[Oa].c.k[Da].e&&(Ia[Oa].c.k[Da].e[0]/=255,Ia[Oa].c.k[Da].e[1]/=255,Ia[Oa].c.k[Da].e[2]/=255,Ia[Oa].c.k[Da].e[3]/=255);else Ia[Oa].c.k[0]/=255,Ia[Oa].c.k[1]/=255,Ia[Oa].c.k[2]/=255,Ia[Oa].c.k[3]/=255}function Ma(Ia){var Oa,Da=Ia.length;for(Oa=0;Oa<Da;Oa+=1)Ia[Oa].ty===4&&$a(Ia[Oa].shapes)}return function(Ia){if(ma(Ea,Ia.v)&&(Ma(Ia.layers),Ia.assets)){var Oa,Da=Ia.assets.length;for(Oa=0;Oa<Da;Oa+=1)Ia.assets[Oa].layers&&Ma(Ia.assets[Oa].layers)}}}(),Sa=function(){var Ea=[4,4,18];function $a(Ia){var Oa,Da,Ta;for(Oa=Ia.length-1;Oa>=0;Oa-=1)if(Ia[Oa].ty==="sh")if(Ia[Oa].ks.k.i)Ia[Oa].ks.k.c=Ia[Oa].closed;else for(Ta=Ia[Oa].ks.k.length,Da=0;Da<Ta;Da+=1)Ia[Oa].ks.k[Da].s&&(Ia[Oa].ks.k[Da].s[0].c=Ia[Oa].closed),Ia[Oa].ks.k[Da].e&&(Ia[Oa].ks.k[Da].e[0].c=Ia[Oa].closed);else Ia[Oa].ty==="gr"&&$a(Ia[Oa].it)}function Ma(Ia){var Oa,Da,Ta,_a,La,Na,za=Ia.length;for(Da=0;Da<za;Da+=1){if((Oa=Ia[Da]).hasMask){var Fa=Oa.masksProperties;for(_a=Fa.length,Ta=0;Ta<_a;Ta+=1)if(Fa[Ta].pt.k.i)Fa[Ta].pt.k.c=Fa[Ta].cl;else for(Na=Fa[Ta].pt.k.length,La=0;La<Na;La+=1)Fa[Ta].pt.k[La].s&&(Fa[Ta].pt.k[La].s[0].c=Fa[Ta].cl),Fa[Ta].pt.k[La].e&&(Fa[Ta].pt.k[La].e[0].c=Fa[Ta].cl)}Oa.ty===4&&$a(Oa.shapes)}}return function(Ia){if(ma(Ea,Ia.v)&&(Ma(Ia.layers),Ia.assets)){var Oa,Da=Ia.assets.length;for(Oa=0;Oa<Da;Oa+=1)Ia.assets[Oa].layers&&Ma(Ia.assets[Oa].layers)}}}();function wa(Ea){Ea.t.a.length===0&&Ea.t.p}var ba={completeData:function(Ea){Ea.__complete||(Ca(Ea),xa(Ea),ya(Ea),Aa(Ea),Sa(Ea),pa(Ea.layers,Ea.assets),function($a,Ma){if($a){var Ia=0,Oa=$a.length;for(Ia=0;Ia<Oa;Ia+=1)$a[Ia].t===1&&($a[Ia].data.layers=ha($a[Ia].data.refId,Ma),pa($a[Ia].data.layers,Ma))}}(Ea.chars,Ea.assets),Ea.__complete=!0)}};return ba.checkColors=Ca,ba.checkChars=ya,ba.checkPathProperties=Aa,ba.checkShapes=Sa,ba.completeLayers=pa,ba}()),sa.assetLoader||(sa.assetLoader=function(){function pa(ha){var ga=ha.getResponseHeader("content-type");return ga&&ha.responseType==="json"&&ga.indexOf("json")!==-1||ha.response&&_typeof$5(ha.response)==="object"?ha.response:ha.response&&typeof ha.response=="string"?JSON.parse(ha.response):ha.responseText?JSON.parse(ha.responseText):null}return{load:function(ha,ga,fa,ma){var va,xa=new XMLHttpRequest;try{xa.responseType="json"}catch{}xa.onreadystatechange=function(){if(xa.readyState===4)if(xa.status===200)va=pa(xa),fa(va);else try{va=pa(xa),fa(va)}catch(ya){ma&&ma(ya)}};try{xa.open(["G","E","T"].join(""),ha,!0)}catch{xa.open(["G","E","T"].join(""),ga+"/"+ha,!0)}xa.send()}}}()),ua.data.type==="loadAnimation")sa.assetLoader.load(ua.data.path,ua.data.fullPath,function(pa){sa.dataManager.completeData(pa),sa.postMessage({id:ua.data.id,payload:pa,status:"success"})},function(){sa.postMessage({id:ua.data.id,status:"error"})});else if(ua.data.type==="complete"){var da=ua.data.animation;sa.dataManager.completeData(da),sa.postMessage({id:ua.data.id,payload:da,status:"success"})}else ua.data.type==="loadData"&&sa.assetLoader.load(ua.data.path,ua.data.fullPath,function(pa){sa.postMessage({id:ua.data.id,payload:pa,status:"success"})},function(){sa.postMessage({id:ua.data.id,status:"error"})})})).onmessage=function(ua){var da=ua.data,pa=da.id,ha=oa[pa];oa[pa]=null,da.status==="success"?ha.onComplete(da.payload):ha.onError&&ha.onError()})}function ca(ua,da){var pa="processId_"+(ra+=1);return oa[pa]={onComplete:ua,onError:da},pa}return{loadAnimation:function(ua,da,pa){la();var ha=ca(da,pa);na.postMessage({type:"loadAnimation",path:ua,fullPath:window.location.origin+window.location.pathname,id:ha})},loadData:function(ua,da,pa){la();var ha=ca(da,pa);na.postMessage({type:"loadData",path:ua,fullPath:window.location.origin+window.location.pathname,id:ha})},completeAnimation:function(ua,da,pa){la();var ha=ca(da,pa);na.postMessage({type:"complete",animation:ua,id:ha})}}}(),ImagePreloader=function(){var ea=function(){var ca=createTag("canvas");ca.width=1,ca.height=1;var ua=ca.getContext("2d");return ua.fillStyle="rgba(0,0,0,0)",ua.fillRect(0,0,1,1),ca}();function na(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function ra(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function oa(ca,ua,da){var pa="";if(ca.e)pa=ca.p;else if(ua){var ha=ca.p;ha.indexOf("images/")!==-1&&(ha=ha.split("/")[1]),pa=ua+ha}else pa=da,pa+=ca.u?ca.u:"",pa+=ca.p;return pa}function aa(ca){var ua=0,da=setInterval(function(){(ca.getBBox().width||ua>500)&&(this._imageLoaded(),clearInterval(da)),ua+=1}.bind(this),50)}function sa(ca){var ua={assetData:ca},da=oa(ca,this.assetsPath,this.path);return dataManager.loadData(da,function(pa){ua.img=pa,this._footageLoaded()}.bind(this),function(){ua.img={},this._footageLoaded()}.bind(this)),ua}function la(){this._imageLoaded=na.bind(this),this._footageLoaded=ra.bind(this),this.testImageLoaded=aa.bind(this),this.createFootageData=sa.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return la.prototype={loadAssets:function(ca,ua){var da;this.imagesLoadedCb=ua;var pa=ca.length;for(da=0;da<pa;da+=1)ca[da].layers||(ca[da].t&&ca[da].t!=="seq"?ca[da].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(ca[da]))):(this.totalImages+=1,this.images.push(this._createImageData(ca[da]))))},setAssetsPath:function(ca){this.assetsPath=ca||""},setPath:function(ca){this.path=ca||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(ca){for(var ua=0,da=this.images.length;ua<da;){if(this.images[ua].assetData===ca)return this.images[ua].img;ua+=1}return null},createImgData:function(ca){var ua=oa(ca,this.assetsPath,this.path),da=createTag("img");da.crossOrigin="anonymous",da.addEventListener("load",this._imageLoaded,!1),da.addEventListener("error",function(){pa.img=ea,this._imageLoaded()}.bind(this),!1),da.src=ua;var pa={img:da,assetData:ca};return pa},createImageData:function(ca){var ua=oa(ca,this.assetsPath,this.path),da=createNS("image");isSafari?this.testImageLoaded(da):da.addEventListener("load",this._imageLoaded,!1),da.addEventListener("error",function(){pa.img=ea,this._imageLoaded()}.bind(this),!1),da.setAttributeNS("http://www.w3.org/1999/xlink","href",ua),this._elementHelper.append?this._elementHelper.append(da):this._elementHelper.appendChild(da);var pa={img:da,assetData:ca};return pa},imageLoaded:na,footageLoaded:ra,setCacheType:function(ca,ua){ca==="svg"?(this._elementHelper=ua,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},la}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(ea,na){if(this._cbs[ea])for(var ra=this._cbs[ea],oa=0;oa<ra.length;oa+=1)ra[oa](na)},addEventListener:function(ea,na){return this._cbs[ea]||(this._cbs[ea]=[]),this._cbs[ea].push(na),function(){this.removeEventListener(ea,na)}.bind(this)},removeEventListener:function(ea,na){if(na){if(this._cbs[ea]){for(var ra=0,oa=this._cbs[ea].length;ra<oa;)this._cbs[ea][ra]===na&&(this._cbs[ea].splice(ra,1),ra-=1,oa-=1),ra+=1;this._cbs[ea].length||(this._cbs[ea]=null)}}else this._cbs[ea]=null}};var markerParser=function(){function ea(na){for(var ra,oa=na.split(`\r
`),aa={},sa=0,la=0;la<oa.length;la+=1)(ra=oa[la].split(":")).length===2&&(aa[ra[0]]=ra[1].trim(),sa+=1);if(sa===0)throw new Error;return aa}return function(na){for(var ra=[],oa=0;oa<na.length;oa+=1){var aa=na[oa],sa={time:aa.tm,duration:aa.dr};try{sa.payload=JSON.parse(na[oa].cm)}catch{try{sa.payload=ea(na[oa].cm)}catch{sa.payload={name:na[oa].cm}}}ra.push(sa)}return ra}}(),ProjectInterface=function(){function ea(na){this.compositions.push(na)}return function(){function na(ra){for(var oa=0,aa=this.compositions.length;oa<aa;){if(this.compositions[oa].data&&this.compositions[oa].data.nm===ra)return this.compositions[oa].prepareFrame&&this.compositions[oa].data.xt&&this.compositions[oa].prepareFrame(this.currentFrame),this.compositions[oa].compInterface;oa+=1}return null}return na.compositions=[],na.currentFrame=0,na.registerComposition=ea,na}}(),renderers={},registerRenderer=function(ea,na){renderers[ea]=na};function getRenderer(ea){return renderers[ea]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var ea in renderers)if(renderers[ea])return ea;return""}function _typeof$4(ea){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(ea){(ea.wrapper||ea.container)&&(this.wrapper=ea.wrapper||ea.container);var na="svg";ea.animType?na=ea.animType:ea.renderer&&(na=ea.renderer);var ra=getRenderer(na);this.renderer=new ra(this,ea.rendererSettings),this.imagePreloader.setCacheType(na,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=na,ea.loop===""||ea.loop===null||ea.loop===void 0||ea.loop===!0?this.loop=!0:ea.loop===!1?this.loop=!1:this.loop=parseInt(ea.loop,10),this.autoplay=!("autoplay"in ea)||ea.autoplay,this.name=ea.name?ea.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(ea,"autoloadSegments")||ea.autoloadSegments,this.assetsPath=ea.assetsPath,this.initialSegment=ea.initialSegment,ea.audioFactory&&this.audioController.setAudioFactory(ea.audioFactory),ea.animationData?this.setupAnimation(ea.animationData):ea.path&&(ea.path.lastIndexOf("\\")!==-1?this.path=ea.path.substr(0,ea.path.lastIndexOf("\\")+1):this.path=ea.path.substr(0,ea.path.lastIndexOf("/")+1),this.fileName=ea.path.substr(ea.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(ea.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(ea){dataManager.completeAnimation(ea,this.configAnimation)},AnimationItem.prototype.setData=function(ea,na){na&&_typeof$4(na)!=="object"&&(na=JSON.parse(na));var ra={wrapper:ea,animationData:na},oa=ea.attributes;ra.path=oa.getNamedItem("data-animation-path")?oa.getNamedItem("data-animation-path").value:oa.getNamedItem("data-bm-path")?oa.getNamedItem("data-bm-path").value:oa.getNamedItem("bm-path")?oa.getNamedItem("bm-path").value:"",ra.animType=oa.getNamedItem("data-anim-type")?oa.getNamedItem("data-anim-type").value:oa.getNamedItem("data-bm-type")?oa.getNamedItem("data-bm-type").value:oa.getNamedItem("bm-type")?oa.getNamedItem("bm-type").value:oa.getNamedItem("data-bm-renderer")?oa.getNamedItem("data-bm-renderer").value:oa.getNamedItem("bm-renderer")?oa.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var aa=oa.getNamedItem("data-anim-loop")?oa.getNamedItem("data-anim-loop").value:oa.getNamedItem("data-bm-loop")?oa.getNamedItem("data-bm-loop").value:oa.getNamedItem("bm-loop")?oa.getNamedItem("bm-loop").value:"";aa==="false"?ra.loop=!1:aa==="true"?ra.loop=!0:aa!==""&&(ra.loop=parseInt(aa,10));var sa=oa.getNamedItem("data-anim-autoplay")?oa.getNamedItem("data-anim-autoplay").value:oa.getNamedItem("data-bm-autoplay")?oa.getNamedItem("data-bm-autoplay").value:!oa.getNamedItem("bm-autoplay")||oa.getNamedItem("bm-autoplay").value;ra.autoplay=sa!=="false",ra.name=oa.getNamedItem("data-name")?oa.getNamedItem("data-name").value:oa.getNamedItem("data-bm-name")?oa.getNamedItem("data-bm-name").value:oa.getNamedItem("bm-name")?oa.getNamedItem("bm-name").value:"",(oa.getNamedItem("data-anim-prerender")?oa.getNamedItem("data-anim-prerender").value:oa.getNamedItem("data-bm-prerender")?oa.getNamedItem("data-bm-prerender").value:oa.getNamedItem("bm-prerender")?oa.getNamedItem("bm-prerender").value:"")==="false"&&(ra.prerender=!1),ra.path?this.setParams(ra):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(ea){ea.op>this.animationData.op&&(this.animationData.op=ea.op,this.totalFrames=Math.floor(ea.op-this.animationData.ip));var na,ra,oa=this.animationData.layers,aa=oa.length,sa=ea.layers,la=sa.length;for(ra=0;ra<la;ra+=1)for(na=0;na<aa;){if(oa[na].id===sa[ra].id){oa[na]=sa[ra];break}na+=1}if((ea.chars||ea.fonts)&&(this.renderer.globalData.fontManager.addChars(ea.chars),this.renderer.globalData.fontManager.addFonts(ea.fonts,this.renderer.globalData.defs)),ea.assets)for(aa=ea.assets.length,na=0;na<aa;na+=1)this.animationData.assets.push(ea.assets[na]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(ea){this.animationData=ea;var na=getExpressionsPlugin();na&&na.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var ea=this.animationData.segments;if(!ea||ea.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var na=ea.shift();this.timeCompleted=na.time*this.frameRate;var ra=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(ra,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(ea){if(this.renderer)try{this.animationData=ea,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(ea),ea.assets||(ea.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(ea.assets),this.markers=markerParser(ea.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(na){this.triggerConfigError(na)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var ea=getExpressionsPlugin();ea&&ea.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(ea,na){var ra=typeof ea=="number"?ea:void 0,oa=typeof na=="number"?na:void 0;this.renderer.updateContainerSize(ra,oa)},AnimationItem.prototype.setSubframe=function(ea){this.isSubframeEnabled=!!ea},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(ea){this.triggerRenderFrameError(ea)}},AnimationItem.prototype.play=function(ea){ea&&this.name!==ea||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(ea){ea&&this.name!==ea||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(ea){ea&&this.name!==ea||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(ea){ea&&this.name!==ea||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(ea){for(var na,ra=0;ra<this.markers.length;ra+=1)if((na=this.markers[ra]).payload&&na.payload.name===ea)return na;return null},AnimationItem.prototype.goToAndStop=function(ea,na,ra){if(!ra||this.name===ra){var oa=Number(ea);if(isNaN(oa)){var aa=this.getMarkerData(ea);aa&&this.goToAndStop(aa.time,!0)}else na?this.setCurrentRawFrameValue(ea):this.setCurrentRawFrameValue(ea*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(ea,na,ra){if(!ra||this.name===ra){var oa=Number(ea);if(isNaN(oa)){var aa=this.getMarkerData(ea);aa&&(aa.duration?this.playSegments([aa.time,aa.time+aa.duration],!0):this.goToAndStop(aa.time,!0))}else this.goToAndStop(oa,na,ra);this.play()}},AnimationItem.prototype.advanceTime=function(ea){if(this.isPaused!==!0&&this.isLoaded!==!1){var na=this.currentRawFrame+ea*this.frameModifier,ra=!1;na>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?na>=this.totalFrames?(this.playCount+=1,this.checkSegments(na%this.totalFrames)||(this.setCurrentRawFrameValue(na%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(na):this.checkSegments(na>this.totalFrames?na%this.totalFrames:0)||(ra=!0,na=this.totalFrames-1):na<0?this.checkSegments(na%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(ra=!0,na=0):(this.setCurrentRawFrameValue(this.totalFrames+na%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(na),ra&&(this.setCurrentRawFrameValue(na),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(ea,na){this.playCount=0,ea[1]<ea[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=ea[0]-ea[1],this.timeCompleted=this.totalFrames,this.firstFrame=ea[1],this.setCurrentRawFrameValue(this.totalFrames-.001-na)):ea[1]>ea[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=ea[1]-ea[0],this.timeCompleted=this.totalFrames,this.firstFrame=ea[0],this.setCurrentRawFrameValue(.001+na)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(ea,na){var ra=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<ea?ra=ea:this.currentRawFrame+this.firstFrame>na&&(ra=na-ea)),this.firstFrame=ea,this.totalFrames=na-ea,this.timeCompleted=this.totalFrames,ra!==-1&&this.goToAndStop(ra,!0)},AnimationItem.prototype.playSegments=function(ea,na){if(na&&(this.segments.length=0),_typeof$4(ea[0])==="object"){var ra,oa=ea.length;for(ra=0;ra<oa;ra+=1)this.segments.push(ea[ra])}else this.segments.push(ea);this.segments.length&&na&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(ea){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),ea&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(ea){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),ea),!0)},AnimationItem.prototype.destroy=function(ea){ea&&this.name!==ea||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(ea){this.currentRawFrame=ea,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(ea){this.playSpeed=ea,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(ea){this.playDirection=ea<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(ea){this.loop=ea},AnimationItem.prototype.setVolume=function(ea,na){na&&this.name!==na||this.audioController.setVolume(ea)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(ea){ea&&this.name!==ea||this.audioController.mute()},AnimationItem.prototype.unmute=function(ea){ea&&this.name!==ea||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(ea){var na="";if(ea.e)na=ea.p;else if(this.assetsPath){var ra=ea.p;ra.indexOf("images/")!==-1&&(ra=ra.split("/")[1]),na=this.assetsPath+ra}else na=this.path,na+=ea.u?ea.u:"",na+=ea.p;return na},AnimationItem.prototype.getAssetData=function(ea){for(var na=0,ra=this.assets.length;na<ra;){if(ea===this.assets[na].id)return this.assets[na];na+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(ea){return ea?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(ea,na,ra){try{this.renderer.getElementByPath(ea).updateDocumentData(na,ra)}catch{}},AnimationItem.prototype.trigger=function(ea){if(this._cbs&&this._cbs[ea])switch(ea){case"enterFrame":this.triggerEvent(ea,new BMEnterFrameEvent(ea,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(ea,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(ea,new BMCompleteLoopEvent(ea,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(ea,new BMCompleteEvent(ea,this.frameMult));break;case"segmentStart":this.triggerEvent(ea,new BMSegmentStartEvent(ea,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(ea,new BMDestroyEvent(ea,this));break;default:this.triggerEvent(ea)}ea==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(ea,this.currentFrame,this.totalFrames,this.frameMult)),ea==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(ea,this.loop,this.playCount,this.frameMult)),ea==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(ea,this.frameMult)),ea==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(ea,this.firstFrame,this.totalFrames)),ea==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(ea,this))},AnimationItem.prototype.triggerRenderFrameError=function(ea){var na=new BMRenderFrameErrorEvent(ea,this.currentFrame);this.triggerEvent("error",na),this.onError&&this.onError.call(this,na)},AnimationItem.prototype.triggerConfigError=function(ea){var na=new BMConfigErrorEvent(ea,this.currentFrame);this.triggerEvent("error",na),this.onError&&this.onError.call(this,na)};var animationManager=function(){var ea={},na=[],ra=0,oa=0,aa=0,sa=!0,la=!1;function ca(va){for(var xa=0,ya=va.target;xa<oa;)na[xa].animation===ya&&(na.splice(xa,1),xa-=1,oa-=1,ya.isPaused||pa()),xa+=1}function ua(va,xa){if(!va)return null;for(var ya=0;ya<oa;){if(na[ya].elem===va&&na[ya].elem!==null)return na[ya].animation;ya+=1}var Aa=new AnimationItem;return ha(Aa,va),Aa.setData(va,xa),Aa}function da(){aa+=1,ma()}function pa(){aa-=1}function ha(va,xa){va.addEventListener("destroy",ca),va.addEventListener("_active",da),va.addEventListener("_idle",pa),na.push({elem:xa,animation:va}),oa+=1}function ga(va){var xa,ya=va-ra;for(xa=0;xa<oa;xa+=1)na[xa].animation.advanceTime(ya);ra=va,aa&&!la?window.requestAnimationFrame(ga):sa=!0}function fa(va){ra=va,window.requestAnimationFrame(ga)}function ma(){!la&&aa&&sa&&(window.requestAnimationFrame(fa),sa=!1)}return ea.registerAnimation=ua,ea.loadAnimation=function(va){var xa=new AnimationItem;return ha(xa,null),xa.setParams(va),xa},ea.setSpeed=function(va,xa){var ya;for(ya=0;ya<oa;ya+=1)na[ya].animation.setSpeed(va,xa)},ea.setDirection=function(va,xa){var ya;for(ya=0;ya<oa;ya+=1)na[ya].animation.setDirection(va,xa)},ea.play=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.play(va)},ea.pause=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.pause(va)},ea.stop=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.stop(va)},ea.togglePause=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.togglePause(va)},ea.searchAnimations=function(va,xa,ya){var Aa,Ca=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Sa=Ca.length;for(Aa=0;Aa<Sa;Aa+=1)ya&&Ca[Aa].setAttribute("data-bm-type",ya),ua(Ca[Aa],va);if(xa&&Sa===0){ya||(ya="svg");var wa=document.getElementsByTagName("body")[0];wa.innerText="";var ba=createTag("div");ba.style.width="100%",ba.style.height="100%",ba.setAttribute("data-bm-type",ya),wa.appendChild(ba),ua(ba,va)}},ea.resize=function(){var va;for(va=0;va<oa;va+=1)na[va].animation.resize()},ea.goToAndStop=function(va,xa,ya){var Aa;for(Aa=0;Aa<oa;Aa+=1)na[Aa].animation.goToAndStop(va,xa,ya)},ea.destroy=function(va){var xa;for(xa=oa-1;xa>=0;xa-=1)na[xa].animation.destroy(va)},ea.freeze=function(){la=!0},ea.unfreeze=function(){la=!1,ma()},ea.setVolume=function(va,xa){var ya;for(ya=0;ya<oa;ya+=1)na[ya].animation.setVolume(va,xa)},ea.mute=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.mute(va)},ea.unmute=function(va){var xa;for(xa=0;xa<oa;xa+=1)na[xa].animation.unmute(va)},ea.getRegisteredAnimations=function(){var va,xa=na.length,ya=[];for(va=0;va<xa;va+=1)ya.push(na[va].animation);return ya},ea}(),BezierFactory=function(){var ea={getBezierEasing:function(da,pa,ha,ga,fa){var ma=fa||("bez_"+da+"_"+pa+"_"+ha+"_"+ga).replace(/\./g,"p");if(na[ma])return na[ma];var va=new ua([da,pa,ha,ga]);return na[ma]=va,va}},na={},ra=typeof Float32Array=="function";function oa(da,pa){return 1-3*pa+3*da}function aa(da,pa){return 3*pa-6*da}function sa(da){return 3*da}function la(da,pa,ha){return((oa(pa,ha)*da+aa(pa,ha))*da+sa(pa))*da}function ca(da,pa,ha){return 3*oa(pa,ha)*da*da+2*aa(pa,ha)*da+sa(pa)}function ua(da){this._p=da,this._mSampleValues=ra?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return ua.prototype={get:function(da){var pa=this._p[0],ha=this._p[1],ga=this._p[2],fa=this._p[3];return this._precomputed||this._precompute(),pa===ha&&ga===fa?da:da===0?0:da===1?1:la(this._getTForX(da),ha,fa)},_precompute:function(){var da=this._p[0],pa=this._p[1],ha=this._p[2],ga=this._p[3];this._precomputed=!0,da===pa&&ha===ga||this._calcSampleValues()},_calcSampleValues:function(){for(var da=this._p[0],pa=this._p[2],ha=0;ha<11;++ha)this._mSampleValues[ha]=la(.1*ha,da,pa)},_getTForX:function(da){for(var pa=this._p[0],ha=this._p[2],ga=this._mSampleValues,fa=0,ma=1;ma!==10&&ga[ma]<=da;++ma)fa+=.1;var va=fa+.1*((da-ga[--ma])/(ga[ma+1]-ga[ma])),xa=ca(va,pa,ha);return xa>=.001?function(ya,Aa,Ca,Sa){for(var wa=0;wa<4;++wa){var ba=ca(Aa,Ca,Sa);if(ba===0)return Aa;Aa-=(la(Aa,Ca,Sa)-ya)/ba}return Aa}(da,va,pa,ha):xa===0?va:function(ya,Aa,Ca,Sa,wa){var ba,Ea,$a=0;do(ba=la(Ea=Aa+(Ca-Aa)/2,Sa,wa)-ya)>0?Ca=Ea:Aa=Ea;while(Math.abs(ba)>1e-7&&++$a<10);return Ea}(da,fa,fa+.1,pa,ha)}},ea}(),pooling={double:function(ea){return ea.concat(createSizedArray(ea.length))}},poolFactory=function(ea,na,ra){var oa=0,aa=ea,sa=createSizedArray(aa);return{newElement:function(){return oa?sa[oa-=1]:na()},release:function(la){oa===aa&&(sa=pooling.double(sa),aa*=2),ra&&ra(la),sa[oa]=la,oa+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(ea){var na,ra=ea.lengths.length;for(na=0;na<ra;na+=1)bezierLengthPool.release(ea.lengths[na]);ea.lengths.length=0});function bezFunction(){var ea=Math;function na(da,pa,ha,ga,fa,ma){var va=da*ga+pa*fa+ha*ma-fa*ga-ma*da-ha*pa;return va>-.001&&va<.001}var ra=function(da,pa,ha,ga){var fa,ma,va,xa,ya,Aa,Ca=getDefaultCurveSegments(),Sa=0,wa=[],ba=[],Ea=bezierLengthPool.newElement();for(va=ha.length,fa=0;fa<Ca;fa+=1){for(ya=fa/(Ca-1),Aa=0,ma=0;ma<va;ma+=1)xa=bmPow(1-ya,3)*da[ma]+3*bmPow(1-ya,2)*ya*ha[ma]+3*(1-ya)*bmPow(ya,2)*ga[ma]+bmPow(ya,3)*pa[ma],wa[ma]=xa,ba[ma]!==null&&(Aa+=bmPow(wa[ma]-ba[ma],2)),ba[ma]=wa[ma];Aa&&(Sa+=Aa=bmSqrt(Aa)),Ea.percents[fa]=ya,Ea.lengths[fa]=Sa}return Ea.addedLength=Sa,Ea};function oa(da){this.segmentLength=0,this.points=new Array(da)}function aa(da,pa){this.partialLength=da,this.point=pa}var sa,la=(sa={},function(da,pa,ha,ga){var fa=(da[0]+"_"+da[1]+"_"+pa[0]+"_"+pa[1]+"_"+ha[0]+"_"+ha[1]+"_"+ga[0]+"_"+ga[1]).replace(/\./g,"p");if(!sa[fa]){var ma,va,xa,ya,Aa,Ca,Sa,wa=getDefaultCurveSegments(),ba=0,Ea=null;da.length===2&&(da[0]!==pa[0]||da[1]!==pa[1])&&na(da[0],da[1],pa[0],pa[1],da[0]+ha[0],da[1]+ha[1])&&na(da[0],da[1],pa[0],pa[1],pa[0]+ga[0],pa[1]+ga[1])&&(wa=2);var $a=new oa(wa);for(xa=ha.length,ma=0;ma<wa;ma+=1){for(Sa=createSizedArray(xa),Aa=ma/(wa-1),Ca=0,va=0;va<xa;va+=1)ya=bmPow(1-Aa,3)*da[va]+3*bmPow(1-Aa,2)*Aa*(da[va]+ha[va])+3*(1-Aa)*bmPow(Aa,2)*(pa[va]+ga[va])+bmPow(Aa,3)*pa[va],Sa[va]=ya,Ea!==null&&(Ca+=bmPow(Sa[va]-Ea[va],2));ba+=Ca=bmSqrt(Ca),$a.points[ma]=new aa(Ca,Sa),Ea=Sa}$a.segmentLength=ba,sa[fa]=$a}return sa[fa]});function ca(da,pa){var ha=pa.percents,ga=pa.lengths,fa=ha.length,ma=bmFloor((fa-1)*da),va=da*pa.addedLength,xa=0;if(ma===fa-1||ma===0||va===ga[ma])return ha[ma];for(var ya=ga[ma]>va?-1:1,Aa=!0;Aa;)if(ga[ma]<=va&&ga[ma+1]>va?(xa=(va-ga[ma])/(ga[ma+1]-ga[ma]),Aa=!1):ma+=ya,ma<0||ma>=fa-1){if(ma===fa-1)return ha[ma];Aa=!1}return ha[ma]+(ha[ma+1]-ha[ma])*xa}var ua=createTypedArray("float32",8);return{getSegmentsLength:function(da){var pa,ha=segmentsLengthPool.newElement(),ga=da.c,fa=da.v,ma=da.o,va=da.i,xa=da._length,ya=ha.lengths,Aa=0;for(pa=0;pa<xa-1;pa+=1)ya[pa]=ra(fa[pa],fa[pa+1],ma[pa],va[pa+1]),Aa+=ya[pa].addedLength;return ga&&xa&&(ya[pa]=ra(fa[pa],fa[0],ma[pa],va[0]),Aa+=ya[pa].addedLength),ha.totalLength=Aa,ha},getNewSegment:function(da,pa,ha,ga,fa,ma,va){fa<0?fa=0:fa>1&&(fa=1);var xa,ya=ca(fa,va),Aa=ca(ma=ma>1?1:ma,va),Ca=da.length,Sa=1-ya,wa=1-Aa,ba=Sa*Sa*Sa,Ea=ya*Sa*Sa*3,$a=ya*ya*Sa*3,Ma=ya*ya*ya,Ia=Sa*Sa*wa,Oa=ya*Sa*wa+Sa*ya*wa+Sa*Sa*Aa,Da=ya*ya*wa+Sa*ya*Aa+ya*Sa*Aa,Ta=ya*ya*Aa,_a=Sa*wa*wa,La=ya*wa*wa+Sa*Aa*wa+Sa*wa*Aa,Na=ya*Aa*wa+Sa*Aa*Aa+ya*wa*Aa,za=ya*Aa*Aa,Fa=wa*wa*wa,Ha=Aa*wa*wa+wa*Aa*wa+wa*wa*Aa,Va=Aa*Aa*wa+wa*Aa*Aa+Aa*wa*Aa,Ua=Aa*Aa*Aa;for(xa=0;xa<Ca;xa+=1)ua[4*xa]=ea.round(1e3*(ba*da[xa]+Ea*ha[xa]+$a*ga[xa]+Ma*pa[xa]))/1e3,ua[4*xa+1]=ea.round(1e3*(Ia*da[xa]+Oa*ha[xa]+Da*ga[xa]+Ta*pa[xa]))/1e3,ua[4*xa+2]=ea.round(1e3*(_a*da[xa]+La*ha[xa]+Na*ga[xa]+za*pa[xa]))/1e3,ua[4*xa+3]=ea.round(1e3*(Fa*da[xa]+Ha*ha[xa]+Va*ga[xa]+Ua*pa[xa]))/1e3;return ua},getPointInSegment:function(da,pa,ha,ga,fa,ma){var va=ca(fa,ma),xa=1-va;return[ea.round(1e3*(xa*xa*xa*da[0]+(va*xa*xa+xa*va*xa+xa*xa*va)*ha[0]+(va*va*xa+xa*va*va+va*xa*va)*ga[0]+va*va*va*pa[0]))/1e3,ea.round(1e3*(xa*xa*xa*da[1]+(va*xa*xa+xa*va*xa+xa*xa*va)*ha[1]+(va*va*xa+xa*va*va+va*xa*va)*ga[1]+va*va*va*pa[1]))/1e3]},buildBezierData:la,pointOnLine2D:na,pointOnLine3D:function(da,pa,ha,ga,fa,ma,va,xa,ya){if(ha===0&&ma===0&&ya===0)return na(da,pa,ga,fa,va,xa);var Aa,Ca=ea.sqrt(ea.pow(ga-da,2)+ea.pow(fa-pa,2)+ea.pow(ma-ha,2)),Sa=ea.sqrt(ea.pow(va-da,2)+ea.pow(xa-pa,2)+ea.pow(ya-ha,2)),wa=ea.sqrt(ea.pow(va-ga,2)+ea.pow(xa-fa,2)+ea.pow(ya-ma,2));return(Aa=Ca>Sa?Ca>wa?Ca-Sa-wa:wa-Sa-Ca:wa>Sa?wa-Sa-Ca:Sa-Ca-wa)>-1e-4&&Aa<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(ea,na){var ra,oa=this.offsetTime;this.propType==="multidimensional"&&(ra=createTypedArray("float32",this.pv.length));for(var aa,sa,la,ca,ua,da,pa,ha,ga,fa=na.lastIndex,ma=fa,va=this.keyframes.length-1,xa=!0;xa;){if(aa=this.keyframes[ma],sa=this.keyframes[ma+1],ma===va-1&&ea>=sa.t-oa){aa.h&&(aa=sa),fa=0;break}if(sa.t-oa>ea){fa=ma;break}ma<va-1?ma+=1:(fa=0,xa=!1)}la=this.keyframesMetadata[ma]||{};var ya,Aa=sa.t-oa,Ca=aa.t-oa;if(aa.to){la.bezierData||(la.bezierData=bez.buildBezierData(aa.s,sa.s||aa.e,aa.to,aa.ti));var Sa=la.bezierData;if(ea>=Aa||ea<Ca){var wa=ea>=Aa?Sa.points.length-1:0;for(ua=Sa.points[wa].point.length,ca=0;ca<ua;ca+=1)ra[ca]=Sa.points[wa].point[ca]}else{la.__fnct?ga=la.__fnct:(ga=BezierFactory.getBezierEasing(aa.o.x,aa.o.y,aa.i.x,aa.i.y,aa.n).get,la.__fnct=ga),da=ga((ea-Ca)/(Aa-Ca));var ba,Ea=Sa.segmentLength*da,$a=na.lastFrame<ea&&na._lastKeyframeIndex===ma?na._lastAddedLength:0;for(ha=na.lastFrame<ea&&na._lastKeyframeIndex===ma?na._lastPoint:0,xa=!0,pa=Sa.points.length;xa;){if($a+=Sa.points[ha].partialLength,Ea===0||da===0||ha===Sa.points.length-1){for(ua=Sa.points[ha].point.length,ca=0;ca<ua;ca+=1)ra[ca]=Sa.points[ha].point[ca];break}if(Ea>=$a&&Ea<$a+Sa.points[ha+1].partialLength){for(ba=(Ea-$a)/Sa.points[ha+1].partialLength,ua=Sa.points[ha].point.length,ca=0;ca<ua;ca+=1)ra[ca]=Sa.points[ha].point[ca]+(Sa.points[ha+1].point[ca]-Sa.points[ha].point[ca])*ba;break}ha<pa-1?ha+=1:xa=!1}na._lastPoint=ha,na._lastAddedLength=$a-Sa.points[ha].partialLength,na._lastKeyframeIndex=ma}}else{var Ma,Ia,Oa,Da,Ta;if(va=aa.s.length,ya=sa.s||aa.e,this.sh&&aa.h!==1)ea>=Aa?(ra[0]=ya[0],ra[1]=ya[1],ra[2]=ya[2]):ea<=Ca?(ra[0]=aa.s[0],ra[1]=aa.s[1],ra[2]=aa.s[2]):quaternionToEuler(ra,slerp(createQuaternion(aa.s),createQuaternion(ya),(ea-Ca)/(Aa-Ca)));else for(ma=0;ma<va;ma+=1)aa.h!==1&&(ea>=Aa?da=1:ea<Ca?da=0:(aa.o.x.constructor===Array?(la.__fnct||(la.__fnct=[]),la.__fnct[ma]?ga=la.__fnct[ma]:(Ma=aa.o.x[ma]===void 0?aa.o.x[0]:aa.o.x[ma],Ia=aa.o.y[ma]===void 0?aa.o.y[0]:aa.o.y[ma],Oa=aa.i.x[ma]===void 0?aa.i.x[0]:aa.i.x[ma],Da=aa.i.y[ma]===void 0?aa.i.y[0]:aa.i.y[ma],ga=BezierFactory.getBezierEasing(Ma,Ia,Oa,Da).get,la.__fnct[ma]=ga)):la.__fnct?ga=la.__fnct:(Ma=aa.o.x,Ia=aa.o.y,Oa=aa.i.x,Da=aa.i.y,ga=BezierFactory.getBezierEasing(Ma,Ia,Oa,Da).get,aa.keyframeMetadata=ga),da=ga((ea-Ca)/(Aa-Ca)))),ya=sa.s||aa.e,Ta=aa.h===1?aa.s[ma]:aa.s[ma]+(ya[ma]-aa.s[ma])*da,this.propType==="multidimensional"?ra[ma]=Ta:ra=Ta}return na.lastIndex=fa,ra}function slerp(ea,na,ra){var oa,aa,sa,la,ca,ua=[],da=ea[0],pa=ea[1],ha=ea[2],ga=ea[3],fa=na[0],ma=na[1],va=na[2],xa=na[3];return(aa=da*fa+pa*ma+ha*va+ga*xa)<0&&(aa=-aa,fa=-fa,ma=-ma,va=-va,xa=-xa),1-aa>1e-6?(oa=Math.acos(aa),sa=Math.sin(oa),la=Math.sin((1-ra)*oa)/sa,ca=Math.sin(ra*oa)/sa):(la=1-ra,ca=ra),ua[0]=la*da+ca*fa,ua[1]=la*pa+ca*ma,ua[2]=la*ha+ca*va,ua[3]=la*ga+ca*xa,ua}function quaternionToEuler(ea,na){var ra=na[0],oa=na[1],aa=na[2],sa=na[3],la=Math.atan2(2*oa*sa-2*ra*aa,1-2*oa*oa-2*aa*aa),ca=Math.asin(2*ra*oa+2*aa*sa),ua=Math.atan2(2*ra*sa-2*oa*aa,1-2*ra*ra-2*aa*aa);ea[0]=la/degToRads,ea[1]=ca/degToRads,ea[2]=ua/degToRads}function createQuaternion(ea){var na=ea[0]*degToRads,ra=ea[1]*degToRads,oa=ea[2]*degToRads,aa=Math.cos(na/2),sa=Math.cos(ra/2),la=Math.cos(oa/2),ca=Math.sin(na/2),ua=Math.sin(ra/2),da=Math.sin(oa/2);return[ca*ua*la+aa*sa*da,ca*sa*la+aa*ua*da,aa*ua*la-ca*sa*da,aa*sa*la-ca*ua*da]}function getValueAtCurrentTime(){var ea=this.comp.renderedFrame-this.offsetTime,na=this.keyframes[0].t-this.offsetTime,ra=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(ea===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=ra&&ea>=ra||this._caching.lastFrame<na&&ea<na))){this._caching.lastFrame>=ea&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var oa=this.interpolateValue(ea,this._caching);this.pv=oa}return this._caching.lastFrame=ea,this.pv}function setVValue(ea){var na;if(this.propType==="unidimensional")na=ea*this.mult,mathAbs(this.v-na)>1e-5&&(this.v=na,this._mdf=!0);else for(var ra=0,oa=this.v.length;ra<oa;)na=ea[ra]*this.mult,mathAbs(this.v[ra]-na)>1e-5&&(this.v[ra]=na,this._mdf=!0),ra+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var ea;this.lock=!0,this._mdf=this._isFirstFrame;var na=this.effectsSequence.length,ra=this.kf?this.pv:this.data.k;for(ea=0;ea<na;ea+=1)ra=this.effectsSequence[ea](ra);this.setVValue(ra),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(ea){this.effectsSequence.push(ea),this.container.addDynamicProperty(this)}function ValueProperty(ea,na,ra,oa){this.propType="unidimensional",this.mult=ra||1,this.data=na,this.v=ra?na.k*ra:na.k,this.pv=na.k,this._mdf=!1,this.elem=ea,this.container=oa,this.comp=ea.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(ea,na,ra,oa){var aa;this.propType="multidimensional",this.mult=ra||1,this.data=na,this._mdf=!1,this.elem=ea,this.container=oa,this.comp=ea.comp,this.k=!1,this.kf=!1,this.frameId=-1;var sa=na.k.length;for(this.v=createTypedArray("float32",sa),this.pv=createTypedArray("float32",sa),this.vel=createTypedArray("float32",sa),aa=0;aa<sa;aa+=1)this.v[aa]=na.k[aa]*this.mult,this.pv[aa]=na.k[aa];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(ea,na,ra,oa){this.propType="unidimensional",this.keyframes=na.k,this.keyframesMetadata=[],this.offsetTime=ea.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=na,this.mult=ra||1,this.elem=ea,this.container=oa,this.comp=ea.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(ea,na,ra,oa){var aa;this.propType="multidimensional";var sa,la,ca,ua,da=na.k.length;for(aa=0;aa<da-1;aa+=1)na.k[aa].to&&na.k[aa].s&&na.k[aa+1]&&na.k[aa+1].s&&(sa=na.k[aa].s,la=na.k[aa+1].s,ca=na.k[aa].to,ua=na.k[aa].ti,(sa.length===2&&(sa[0]!==la[0]||sa[1]!==la[1])&&bez.pointOnLine2D(sa[0],sa[1],la[0],la[1],sa[0]+ca[0],sa[1]+ca[1])&&bez.pointOnLine2D(sa[0],sa[1],la[0],la[1],la[0]+ua[0],la[1]+ua[1])||sa.length===3&&(sa[0]!==la[0]||sa[1]!==la[1]||sa[2]!==la[2])&&bez.pointOnLine3D(sa[0],sa[1],sa[2],la[0],la[1],la[2],sa[0]+ca[0],sa[1]+ca[1],sa[2]+ca[2])&&bez.pointOnLine3D(sa[0],sa[1],sa[2],la[0],la[1],la[2],la[0]+ua[0],la[1]+ua[1],la[2]+ua[2]))&&(na.k[aa].to=null,na.k[aa].ti=null),sa[0]===la[0]&&sa[1]===la[1]&&ca[0]===0&&ca[1]===0&&ua[0]===0&&ua[1]===0&&(sa.length===2||sa[2]===la[2]&&ca[2]===0&&ua[2]===0)&&(na.k[aa].to=null,na.k[aa].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=na,this.keyframes=na.k,this.keyframesMetadata=[],this.offsetTime=ea.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=ra||1,this.elem=ea,this.container=oa,this.comp=ea.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var pa=na.k[0].s.length;for(this.v=createTypedArray("float32",pa),this.pv=createTypedArray("float32",pa),aa=0;aa<pa;aa+=1)this.v[aa]=initFrame,this.pv[aa]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",pa)},this.addEffect=addEffect}var PropertyFactory={getProp:function(ea,na,ra,oa,aa){var sa;if(na.sid&&(na=ea.globalData.slotManager.getProp(na)),na.k.length)if(typeof na.k[0]=="number")sa=new MultiDimensionalProperty(ea,na,oa,aa);else switch(ra){case 0:sa=new KeyframedValueProperty(ea,na,oa,aa);break;case 1:sa=new KeyframedMultidimensionalProperty(ea,na,oa,aa)}else sa=new ValueProperty(ea,na,oa,aa);return sa.effectsSequence.length&&aa.addDynamicProperty(sa),sa}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(ea){this.dynamicProperties.indexOf(ea)===-1&&(this.dynamicProperties.push(ea),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var ea;this._mdf=!1;var na=this.dynamicProperties.length;for(ea=0;ea<na;ea+=1)this.dynamicProperties[ea].getValue(),this.dynamicProperties[ea]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(ea){this.container=ea,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(ea,na){this.c=ea,this.setLength(na);for(var ra=0;ra<na;)this.v[ra]=pointPool.newElement(),this.o[ra]=pointPool.newElement(),this.i[ra]=pointPool.newElement(),ra+=1},ShapePath.prototype.setLength=function(ea){for(;this._maxLength<ea;)this.doubleArrayLength();this._length=ea},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(ea,na,ra,oa,aa){var sa;switch(this._length=Math.max(this._length,oa+1),this._length>=this._maxLength&&this.doubleArrayLength(),ra){case"v":sa=this.v;break;case"i":sa=this.i;break;case"o":sa=this.o;break;default:sa=[]}(!sa[oa]||sa[oa]&&!aa)&&(sa[oa]=pointPool.newElement()),sa[oa][0]=ea,sa[oa][1]=na},ShapePath.prototype.setTripleAt=function(ea,na,ra,oa,aa,sa,la,ca){this.setXYAt(ea,na,"v",la,ca),this.setXYAt(ra,oa,"o",la,ca),this.setXYAt(aa,sa,"i",la,ca)},ShapePath.prototype.reverse=function(){var ea=new ShapePath;ea.setPathData(this.c,this._length);var na=this.v,ra=this.o,oa=this.i,aa=0;this.c&&(ea.setTripleAt(na[0][0],na[0][1],oa[0][0],oa[0][1],ra[0][0],ra[0][1],0,!1),aa=1);var sa,la=this._length-1,ca=this._length;for(sa=aa;sa<ca;sa+=1)ea.setTripleAt(na[la][0],na[la][1],oa[la][0],oa[la][1],ra[la][0],ra[la][1],sa,!1),la-=1;return ea},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(ea){var na,ra=ea._length;for(na=0;na<ra;na+=1)pointPool.release(ea.v[na]),pointPool.release(ea.i[na]),pointPool.release(ea.o[na]),ea.v[na]=null,ea.i[na]=null,ea.o[na]=null;ea._length=0,ea.c=!1}),factory.clone=function(ea){var na,ra=factory.newElement(),oa=ea._length===void 0?ea.v.length:ea._length;for(ra.setLength(oa),ra.c=ea.c,na=0;na<oa;na+=1)ra.setTripleAt(ea.v[na][0],ea.v[na][1],ea.o[na][0],ea.o[na][1],ea.i[na][0],ea.i[na][1],na);return ra},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(ea){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=ea,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var ea;for(ea=0;ea<this._length;ea+=1)shapePool.release(this.shapes[ea]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(ea){var na,ra=ea._length;for(na=0;na<ra;na+=1)shapePool.release(ea.shapes[na]);ea._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=ea,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function ea(ga,fa,ma){var va,xa,ya,Aa,Ca,Sa,wa,ba,Ea,$a=ma.lastIndex,Ma=this.keyframes;if(ga<Ma[0].t-this.offsetTime)va=Ma[0].s[0],ya=!0,$a=0;else if(ga>=Ma[Ma.length-1].t-this.offsetTime)va=Ma[Ma.length-1].s?Ma[Ma.length-1].s[0]:Ma[Ma.length-2].e[0],ya=!0;else{for(var Ia,Oa,Da,Ta=$a,_a=Ma.length-1,La=!0;La&&(Ia=Ma[Ta],!((Oa=Ma[Ta+1]).t-this.offsetTime>ga));)Ta<_a-1?Ta+=1:La=!1;if(Da=this.keyframesMetadata[Ta]||{},$a=Ta,!(ya=Ia.h===1)){if(ga>=Oa.t-this.offsetTime)ba=1;else if(ga<Ia.t-this.offsetTime)ba=0;else{var Na;Da.__fnct?Na=Da.__fnct:(Na=BezierFactory.getBezierEasing(Ia.o.x,Ia.o.y,Ia.i.x,Ia.i.y).get,Da.__fnct=Na),ba=Na((ga-(Ia.t-this.offsetTime))/(Oa.t-this.offsetTime-(Ia.t-this.offsetTime)))}xa=Oa.s?Oa.s[0]:Ia.e[0]}va=Ia.s[0]}for(Sa=fa._length,wa=va.i[0].length,ma.lastIndex=$a,Aa=0;Aa<Sa;Aa+=1)for(Ca=0;Ca<wa;Ca+=1)Ea=ya?va.i[Aa][Ca]:va.i[Aa][Ca]+(xa.i[Aa][Ca]-va.i[Aa][Ca])*ba,fa.i[Aa][Ca]=Ea,Ea=ya?va.o[Aa][Ca]:va.o[Aa][Ca]+(xa.o[Aa][Ca]-va.o[Aa][Ca])*ba,fa.o[Aa][Ca]=Ea,Ea=ya?va.v[Aa][Ca]:va.v[Aa][Ca]+(xa.v[Aa][Ca]-va.v[Aa][Ca])*ba,fa.v[Aa][Ca]=Ea}function na(){var ga=this.comp.renderedFrame-this.offsetTime,fa=this.keyframes[0].t-this.offsetTime,ma=this.keyframes[this.keyframes.length-1].t-this.offsetTime,va=this._caching.lastFrame;return va!==-999999&&(va<fa&&ga<fa||va>ma&&ga>ma)||(this._caching.lastIndex=va<ga?this._caching.lastIndex:0,this.interpolateShape(ga,this.pv,this._caching)),this._caching.lastFrame=ga,this.pv}function ra(){this.paths=this.localShapeCollection}function oa(ga){(function(fa,ma){if(fa._length!==ma._length||fa.c!==ma.c)return!1;var va,xa=fa._length;for(va=0;va<xa;va+=1)if(fa.v[va][0]!==ma.v[va][0]||fa.v[va][1]!==ma.v[va][1]||fa.o[va][0]!==ma.o[va][0]||fa.o[va][1]!==ma.o[va][1]||fa.i[va][0]!==ma.i[va][0]||fa.i[va][1]!==ma.i[va][1])return!1;return!0})(this.v,ga)||(this.v=shapePool.clone(ga),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function aa(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var ga,fa;this.lock=!0,this._mdf=!1,ga=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var ma=this.effectsSequence.length;for(fa=0;fa<ma;fa+=1)ga=this.effectsSequence[fa](ga);this.setVValue(ga),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function sa(ga,fa,ma){this.propType="shape",this.comp=ga.comp,this.container=ga,this.elem=ga,this.data=fa,this.k=!1,this.kf=!1,this._mdf=!1;var va=ma===3?fa.pt.k:fa.ks.k;this.v=shapePool.clone(va),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=ra,this.effectsSequence=[]}function la(ga){this.effectsSequence.push(ga),this.container.addDynamicProperty(this)}function ca(ga,fa,ma){this.propType="shape",this.comp=ga.comp,this.elem=ga,this.container=ga,this.offsetTime=ga.data.st,this.keyframes=ma===3?fa.pt.k:fa.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var va=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,va),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=ra,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[na.bind(this)]}sa.prototype.interpolateShape=ea,sa.prototype.getValue=aa,sa.prototype.setVValue=oa,sa.prototype.addEffect=la,ca.prototype.getValue=aa,ca.prototype.interpolateShape=ea,ca.prototype.setVValue=oa,ca.prototype.addEffect=la;var ua=function(){var ga=roundCorner;function fa(ma,va){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=va.d,this.elem=ma,this.comp=ma.comp,this.frameId=-1,this.initDynamicPropertyContainer(ma),this.p=PropertyFactory.getProp(ma,va.p,1,0,this),this.s=PropertyFactory.getProp(ma,va.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return fa.prototype={reset:ra,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ma=this.p.v[0],va=this.p.v[1],xa=this.s.v[0]/2,ya=this.s.v[1]/2,Aa=this.d!==3,Ca=this.v;Ca.v[0][0]=ma,Ca.v[0][1]=va-ya,Ca.v[1][0]=Aa?ma+xa:ma-xa,Ca.v[1][1]=va,Ca.v[2][0]=ma,Ca.v[2][1]=va+ya,Ca.v[3][0]=Aa?ma-xa:ma+xa,Ca.v[3][1]=va,Ca.i[0][0]=Aa?ma-xa*ga:ma+xa*ga,Ca.i[0][1]=va-ya,Ca.i[1][0]=Aa?ma+xa:ma-xa,Ca.i[1][1]=va-ya*ga,Ca.i[2][0]=Aa?ma+xa*ga:ma-xa*ga,Ca.i[2][1]=va+ya,Ca.i[3][0]=Aa?ma-xa:ma+xa,Ca.i[3][1]=va+ya*ga,Ca.o[0][0]=Aa?ma+xa*ga:ma-xa*ga,Ca.o[0][1]=va-ya,Ca.o[1][0]=Aa?ma+xa:ma-xa,Ca.o[1][1]=va+ya*ga,Ca.o[2][0]=Aa?ma-xa*ga:ma+xa*ga,Ca.o[2][1]=va+ya,Ca.o[3][0]=Aa?ma-xa:ma+xa,Ca.o[3][1]=va-ya*ga}},extendPrototype([DynamicPropertyContainer],fa),fa}(),da=function(){function ga(fa,ma){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=fa,this.comp=fa.comp,this.data=ma,this.frameId=-1,this.d=ma.d,this.initDynamicPropertyContainer(fa),ma.sy===1?(this.ir=PropertyFactory.getProp(fa,ma.ir,0,0,this),this.is=PropertyFactory.getProp(fa,ma.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(fa,ma.pt,0,0,this),this.p=PropertyFactory.getProp(fa,ma.p,1,0,this),this.r=PropertyFactory.getProp(fa,ma.r,0,degToRads,this),this.or=PropertyFactory.getProp(fa,ma.or,0,0,this),this.os=PropertyFactory.getProp(fa,ma.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return ga.prototype={reset:ra,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var fa,ma,va,xa,ya=2*Math.floor(this.pt.v),Aa=2*Math.PI/ya,Ca=!0,Sa=this.or.v,wa=this.ir.v,ba=this.os.v,Ea=this.is.v,$a=2*Math.PI*Sa/(2*ya),Ma=2*Math.PI*wa/(2*ya),Ia=-Math.PI/2;Ia+=this.r.v;var Oa=this.data.d===3?-1:1;for(this.v._length=0,fa=0;fa<ya;fa+=1){va=Ca?ba:Ea,xa=Ca?$a:Ma;var Da=(ma=Ca?Sa:wa)*Math.cos(Ia),Ta=ma*Math.sin(Ia),_a=Da===0&&Ta===0?0:Ta/Math.sqrt(Da*Da+Ta*Ta),La=Da===0&&Ta===0?0:-Da/Math.sqrt(Da*Da+Ta*Ta);Da+=+this.p.v[0],Ta+=+this.p.v[1],this.v.setTripleAt(Da,Ta,Da-_a*xa*va*Oa,Ta-La*xa*va*Oa,Da+_a*xa*va*Oa,Ta+La*xa*va*Oa,fa,!0),Ca=!Ca,Ia+=Aa*Oa}},convertPolygonToPath:function(){var fa,ma=Math.floor(this.pt.v),va=2*Math.PI/ma,xa=this.or.v,ya=this.os.v,Aa=2*Math.PI*xa/(4*ma),Ca=.5*-Math.PI,Sa=this.data.d===3?-1:1;for(Ca+=this.r.v,this.v._length=0,fa=0;fa<ma;fa+=1){var wa=xa*Math.cos(Ca),ba=xa*Math.sin(Ca),Ea=wa===0&&ba===0?0:ba/Math.sqrt(wa*wa+ba*ba),$a=wa===0&&ba===0?0:-wa/Math.sqrt(wa*wa+ba*ba);wa+=+this.p.v[0],ba+=+this.p.v[1],this.v.setTripleAt(wa,ba,wa-Ea*Aa*ya*Sa,ba-$a*Aa*ya*Sa,wa+Ea*Aa*ya*Sa,ba+$a*Aa*ya*Sa,fa,!0),Ca+=va*Sa}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],ga),ga}(),pa=function(){function ga(fa,ma){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=fa,this.comp=fa.comp,this.frameId=-1,this.d=ma.d,this.initDynamicPropertyContainer(fa),this.p=PropertyFactory.getProp(fa,ma.p,1,0,this),this.s=PropertyFactory.getProp(fa,ma.s,1,0,this),this.r=PropertyFactory.getProp(fa,ma.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return ga.prototype={convertRectToPath:function(){var fa=this.p.v[0],ma=this.p.v[1],va=this.s.v[0]/2,xa=this.s.v[1]/2,ya=bmMin(va,xa,this.r.v),Aa=ya*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(fa+va,ma-xa+ya,fa+va,ma-xa+ya,fa+va,ma-xa+Aa,0,!0),this.v.setTripleAt(fa+va,ma+xa-ya,fa+va,ma+xa-Aa,fa+va,ma+xa-ya,1,!0),ya!==0?(this.v.setTripleAt(fa+va-ya,ma+xa,fa+va-ya,ma+xa,fa+va-Aa,ma+xa,2,!0),this.v.setTripleAt(fa-va+ya,ma+xa,fa-va+Aa,ma+xa,fa-va+ya,ma+xa,3,!0),this.v.setTripleAt(fa-va,ma+xa-ya,fa-va,ma+xa-ya,fa-va,ma+xa-Aa,4,!0),this.v.setTripleAt(fa-va,ma-xa+ya,fa-va,ma-xa+Aa,fa-va,ma-xa+ya,5,!0),this.v.setTripleAt(fa-va+ya,ma-xa,fa-va+ya,ma-xa,fa-va+Aa,ma-xa,6,!0),this.v.setTripleAt(fa+va-ya,ma-xa,fa+va-Aa,ma-xa,fa+va-ya,ma-xa,7,!0)):(this.v.setTripleAt(fa-va,ma+xa,fa-va+Aa,ma+xa,fa-va,ma+xa,2),this.v.setTripleAt(fa-va,ma-xa,fa-va,ma-xa+Aa,fa-va,ma-xa,3))):(this.v.setTripleAt(fa+va,ma-xa+ya,fa+va,ma-xa+Aa,fa+va,ma-xa+ya,0,!0),ya!==0?(this.v.setTripleAt(fa+va-ya,ma-xa,fa+va-ya,ma-xa,fa+va-Aa,ma-xa,1,!0),this.v.setTripleAt(fa-va+ya,ma-xa,fa-va+Aa,ma-xa,fa-va+ya,ma-xa,2,!0),this.v.setTripleAt(fa-va,ma-xa+ya,fa-va,ma-xa+ya,fa-va,ma-xa+Aa,3,!0),this.v.setTripleAt(fa-va,ma+xa-ya,fa-va,ma+xa-Aa,fa-va,ma+xa-ya,4,!0),this.v.setTripleAt(fa-va+ya,ma+xa,fa-va+ya,ma+xa,fa-va+Aa,ma+xa,5,!0),this.v.setTripleAt(fa+va-ya,ma+xa,fa+va-Aa,ma+xa,fa+va-ya,ma+xa,6,!0),this.v.setTripleAt(fa+va,ma+xa-ya,fa+va,ma+xa-ya,fa+va,ma+xa-Aa,7,!0)):(this.v.setTripleAt(fa-va,ma-xa,fa-va+Aa,ma-xa,fa-va,ma-xa,1,!0),this.v.setTripleAt(fa-va,ma+xa,fa-va,ma+xa-Aa,fa-va,ma+xa,2,!0),this.v.setTripleAt(fa+va,ma+xa,fa+va-Aa,ma+xa,fa+va,ma+xa,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:ra},extendPrototype([DynamicPropertyContainer],ga),ga}(),ha={getShapeProp:function(ga,fa,ma){var va;return ma===3||ma===4?va=(ma===3?fa.pt:fa.ks).k.length?new ca(ga,fa,ma):new sa(ga,fa,ma):ma===5?va=new pa(ga,fa):ma===6?va=new ua(ga,fa):ma===7&&(va=new da(ga,fa)),va.k&&ga.addDynamicProperty(va),va},getConstructorFunction:function(){return sa},getKeyframedConstructorFunction:function(){return ca}};return ha}(),Matrix=function(){var ea=Math.cos,na=Math.sin,ra=Math.tan,oa=Math.round;function aa(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function sa(Fa){if(Fa===0)return this;var Ha=ea(Fa),Va=na(Fa);return this._t(Ha,-Va,0,0,Va,Ha,0,0,0,0,1,0,0,0,0,1)}function la(Fa){if(Fa===0)return this;var Ha=ea(Fa),Va=na(Fa);return this._t(1,0,0,0,0,Ha,-Va,0,0,Va,Ha,0,0,0,0,1)}function ca(Fa){if(Fa===0)return this;var Ha=ea(Fa),Va=na(Fa);return this._t(Ha,0,Va,0,0,1,0,0,-Va,0,Ha,0,0,0,0,1)}function ua(Fa){if(Fa===0)return this;var Ha=ea(Fa),Va=na(Fa);return this._t(Ha,-Va,0,0,Va,Ha,0,0,0,0,1,0,0,0,0,1)}function da(Fa,Ha){return this._t(1,Ha,Fa,1,0,0)}function pa(Fa,Ha){return this.shear(ra(Fa),ra(Ha))}function ha(Fa,Ha){var Va=ea(Ha),Ua=na(Ha);return this._t(Va,Ua,0,0,-Ua,Va,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,ra(Fa),1,0,0,0,0,1,0,0,0,0,1)._t(Va,-Ua,0,0,Ua,Va,0,0,0,0,1,0,0,0,0,1)}function ga(Fa,Ha,Va){return Va||Va===0||(Va=1),Fa===1&&Ha===1&&Va===1?this:this._t(Fa,0,0,0,0,Ha,0,0,0,0,Va,0,0,0,0,1)}function fa(Fa,Ha,Va,Ua,Qa,Wa,Za,Xa,tl,il,Ja,nl,Ya,rl,sl,dl){return this.props[0]=Fa,this.props[1]=Ha,this.props[2]=Va,this.props[3]=Ua,this.props[4]=Qa,this.props[5]=Wa,this.props[6]=Za,this.props[7]=Xa,this.props[8]=tl,this.props[9]=il,this.props[10]=Ja,this.props[11]=nl,this.props[12]=Ya,this.props[13]=rl,this.props[14]=sl,this.props[15]=dl,this}function ma(Fa,Ha,Va){return Va=Va||0,Fa!==0||Ha!==0||Va!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Fa,Ha,Va,1):this}function va(Fa,Ha,Va,Ua,Qa,Wa,Za,Xa,tl,il,Ja,nl,Ya,rl,sl,dl){var pl=this.props;if(Fa===1&&Ha===0&&Va===0&&Ua===0&&Qa===0&&Wa===1&&Za===0&&Xa===0&&tl===0&&il===0&&Ja===1&&nl===0)return pl[12]=pl[12]*Fa+pl[15]*Ya,pl[13]=pl[13]*Wa+pl[15]*rl,pl[14]=pl[14]*Ja+pl[15]*sl,pl[15]*=dl,this._identityCalculated=!1,this;var ml=pl[0],Rl=pl[1],Tl=pl[2],Il=pl[3],Ol=pl[4],Fl=pl[5],Vl=pl[6],Wl=pl[7],vl=pl[8],kl=pl[9],zl=pl[10],Al=pl[11],gl=pl[12],xl=pl[13],Sl=pl[14],$l=pl[15];return pl[0]=ml*Fa+Rl*Qa+Tl*tl+Il*Ya,pl[1]=ml*Ha+Rl*Wa+Tl*il+Il*rl,pl[2]=ml*Va+Rl*Za+Tl*Ja+Il*sl,pl[3]=ml*Ua+Rl*Xa+Tl*nl+Il*dl,pl[4]=Ol*Fa+Fl*Qa+Vl*tl+Wl*Ya,pl[5]=Ol*Ha+Fl*Wa+Vl*il+Wl*rl,pl[6]=Ol*Va+Fl*Za+Vl*Ja+Wl*sl,pl[7]=Ol*Ua+Fl*Xa+Vl*nl+Wl*dl,pl[8]=vl*Fa+kl*Qa+zl*tl+Al*Ya,pl[9]=vl*Ha+kl*Wa+zl*il+Al*rl,pl[10]=vl*Va+kl*Za+zl*Ja+Al*sl,pl[11]=vl*Ua+kl*Xa+zl*nl+Al*dl,pl[12]=gl*Fa+xl*Qa+Sl*tl+$l*Ya,pl[13]=gl*Ha+xl*Wa+Sl*il+$l*rl,pl[14]=gl*Va+xl*Za+Sl*Ja+$l*sl,pl[15]=gl*Ua+xl*Xa+Sl*nl+$l*dl,this._identityCalculated=!1,this}function xa(Fa){var Ha=Fa.props;return this.transform(Ha[0],Ha[1],Ha[2],Ha[3],Ha[4],Ha[5],Ha[6],Ha[7],Ha[8],Ha[9],Ha[10],Ha[11],Ha[12],Ha[13],Ha[14],Ha[15])}function ya(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Aa(Fa){for(var Ha=0;Ha<16;){if(Fa.props[Ha]!==this.props[Ha])return!1;Ha+=1}return!0}function Ca(Fa){var Ha;for(Ha=0;Ha<16;Ha+=1)Fa.props[Ha]=this.props[Ha];return Fa}function Sa(Fa){var Ha;for(Ha=0;Ha<16;Ha+=1)this.props[Ha]=Fa[Ha]}function wa(Fa,Ha,Va){return{x:Fa*this.props[0]+Ha*this.props[4]+Va*this.props[8]+this.props[12],y:Fa*this.props[1]+Ha*this.props[5]+Va*this.props[9]+this.props[13],z:Fa*this.props[2]+Ha*this.props[6]+Va*this.props[10]+this.props[14]}}function ba(Fa,Ha,Va){return Fa*this.props[0]+Ha*this.props[4]+Va*this.props[8]+this.props[12]}function Ea(Fa,Ha,Va){return Fa*this.props[1]+Ha*this.props[5]+Va*this.props[9]+this.props[13]}function $a(Fa,Ha,Va){return Fa*this.props[2]+Ha*this.props[6]+Va*this.props[10]+this.props[14]}function Ma(){var Fa=this.props[0]*this.props[5]-this.props[1]*this.props[4],Ha=this.props[5]/Fa,Va=-this.props[1]/Fa,Ua=-this.props[4]/Fa,Qa=this.props[0]/Fa,Wa=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Fa,Za=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Fa,Xa=new Matrix;return Xa.props[0]=Ha,Xa.props[1]=Va,Xa.props[4]=Ua,Xa.props[5]=Qa,Xa.props[12]=Wa,Xa.props[13]=Za,Xa}function Ia(Fa){return this.getInverseMatrix().applyToPointArray(Fa[0],Fa[1],Fa[2]||0)}function Oa(Fa){var Ha,Va=Fa.length,Ua=[];for(Ha=0;Ha<Va;Ha+=1)Ua[Ha]=Ia(Fa[Ha]);return Ua}function Da(Fa,Ha,Va){var Ua=createTypedArray("float32",6);if(this.isIdentity())Ua[0]=Fa[0],Ua[1]=Fa[1],Ua[2]=Ha[0],Ua[3]=Ha[1],Ua[4]=Va[0],Ua[5]=Va[1];else{var Qa=this.props[0],Wa=this.props[1],Za=this.props[4],Xa=this.props[5],tl=this.props[12],il=this.props[13];Ua[0]=Fa[0]*Qa+Fa[1]*Za+tl,Ua[1]=Fa[0]*Wa+Fa[1]*Xa+il,Ua[2]=Ha[0]*Qa+Ha[1]*Za+tl,Ua[3]=Ha[0]*Wa+Ha[1]*Xa+il,Ua[4]=Va[0]*Qa+Va[1]*Za+tl,Ua[5]=Va[0]*Wa+Va[1]*Xa+il}return Ua}function Ta(Fa,Ha,Va){return this.isIdentity()?[Fa,Ha,Va]:[Fa*this.props[0]+Ha*this.props[4]+Va*this.props[8]+this.props[12],Fa*this.props[1]+Ha*this.props[5]+Va*this.props[9]+this.props[13],Fa*this.props[2]+Ha*this.props[6]+Va*this.props[10]+this.props[14]]}function _a(Fa,Ha){if(this.isIdentity())return Fa+","+Ha;var Va=this.props;return Math.round(100*(Fa*Va[0]+Ha*Va[4]+Va[12]))/100+","+Math.round(100*(Fa*Va[1]+Ha*Va[5]+Va[13]))/100}function La(){for(var Fa=0,Ha=this.props,Va="matrix3d(";Fa<16;)Va+=oa(1e4*Ha[Fa])/1e4,Va+=Fa===15?")":",",Fa+=1;return Va}function Na(Fa){return Fa<1e-6&&Fa>0||Fa>-1e-6&&Fa<0?oa(1e4*Fa)/1e4:Fa}function za(){var Fa=this.props;return"matrix("+Na(Fa[0])+","+Na(Fa[1])+","+Na(Fa[4])+","+Na(Fa[5])+","+Na(Fa[12])+","+Na(Fa[13])+")"}return function(){this.reset=aa,this.rotate=sa,this.rotateX=la,this.rotateY=ca,this.rotateZ=ua,this.skew=pa,this.skewFromAxis=ha,this.shear=da,this.scale=ga,this.setTransform=fa,this.translate=ma,this.transform=va,this.multiply=xa,this.applyToPoint=wa,this.applyToX=ba,this.applyToY=Ea,this.applyToZ=$a,this.applyToPointArray=Ta,this.applyToTriplePoints=Da,this.applyToPointStringified=_a,this.toCSS=La,this.to2dCSS=za,this.clone=Ca,this.cloneFromProps=Sa,this.equals=Aa,this.inversePoints=Oa,this.inversePoint=Ia,this.getInverseMatrix=Ma,this._t=this.transform,this.isIdentity=ya,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(ea){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var lottie={};function setLocation(ea){setLocationHref(ea)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(ea){setSubframeEnabled(ea)}function setPrefix(ea){setIdPrefix(ea)}function loadAnimation(ea){return animationManager.loadAnimation(ea)}function setQuality(ea){if(typeof ea=="string")switch(ea){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(ea)&&ea>1&&setDefaultCurveSegments(ea)}function inBrowser(){return typeof navigator<"u"}function installPlugin(ea,na){ea==="expressions"&&setExpressionsPlugin(na)}function getFactory(ea){switch(ea){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(ea){for(var na=queryString.split("&"),ra=0;ra<na.length;ra+=1){var oa=na[ra].split("=");if(decodeURIComponent(oa[0])==ea)return decodeURIComponent(oa[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(ea){}var ShapeModifiers=function(){var ea={},na={};return ea.registerModifier=function(ra,oa){na[ra]||(na[ra]=oa)},ea.getModifier=function(ra,oa,aa){return new na[ra](oa,aa)},ea}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(ea){if(!this.closed){ea.sh.container.addDynamicProperty(ea.sh);var na={shape:ea.sh,data:ea,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(na),this.addShapeToModifier(na),this._isAnimated&&ea.setAsAnimated()}},ShapeModifier.prototype.init=function(ea,na){this.shapes=[],this.elem=ea,this.initDynamicPropertyContainer(ea),this.initModifierProperties(ea,na),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(ea,na){this.s=PropertyFactory.getProp(ea,na.s,0,.01,this),this.e=PropertyFactory.getProp(ea,na.e,0,.01,this),this.o=PropertyFactory.getProp(ea,na.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=na.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(ea){ea.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(ea,na,ra,oa,aa){var sa=[];na<=1?sa.push({s:ea,e:na}):ea>=1?sa.push({s:ea-1,e:na-1}):(sa.push({s:ea,e:1}),sa.push({s:0,e:na-1}));var la,ca,ua=[],da=sa.length;for(la=0;la<da;la+=1){var pa,ha;(ca=sa[la]).e*aa<oa||ca.s*aa>oa+ra||(pa=ca.s*aa<=oa?0:(ca.s*aa-oa)/ra,ha=ca.e*aa>=oa+ra?1:(ca.e*aa-oa)/ra,ua.push([pa,ha]))}return ua.length||ua.push([0,0]),ua},TrimModifier.prototype.releasePathsData=function(ea){var na,ra=ea.length;for(na=0;na<ra;na+=1)segmentsLengthPool.release(ea[na]);return ea.length=0,ea},TrimModifier.prototype.processShapes=function(ea){var na,ra,oa,aa;if(this._mdf||ea){var sa=this.o.v%360/360;if(sa<0&&(sa+=1),(na=this.s.v>1?1+sa:this.s.v<0?0+sa:this.s.v+sa)>(ra=this.e.v>1?1+sa:this.e.v<0?0+sa:this.e.v+sa)){var la=na;na=ra,ra=la}na=1e-4*Math.round(1e4*na),ra=1e-4*Math.round(1e4*ra),this.sValue=na,this.eValue=ra}else na=this.sValue,ra=this.eValue;var ca,ua,da,pa,ha,ga=this.shapes.length,fa=0;if(ra===na)for(aa=0;aa<ga;aa+=1)this.shapes[aa].localShapeCollection.releaseShapes(),this.shapes[aa].shape._mdf=!0,this.shapes[aa].shape.paths=this.shapes[aa].localShapeCollection,this._mdf&&(this.shapes[aa].pathsData.length=0);else if(ra===1&&na===0||ra===0&&na===1){if(this._mdf)for(aa=0;aa<ga;aa+=1)this.shapes[aa].pathsData.length=0,this.shapes[aa].shape._mdf=!0}else{var ma,va,xa=[];for(aa=0;aa<ga;aa+=1)if((ma=this.shapes[aa]).shape._mdf||this._mdf||ea||this.m===2){if(ua=(oa=ma.shape.paths)._length,ha=0,!ma.shape._mdf&&ma.pathsData.length)ha=ma.totalShapeLength;else{for(da=this.releasePathsData(ma.pathsData),ca=0;ca<ua;ca+=1)pa=bez.getSegmentsLength(oa.shapes[ca]),da.push(pa),ha+=pa.totalLength;ma.totalShapeLength=ha,ma.pathsData=da}fa+=ha,ma.shape._mdf=!0}else ma.shape.paths=ma.localShapeCollection;var ya,Aa=na,Ca=ra,Sa=0;for(aa=ga-1;aa>=0;aa-=1)if((ma=this.shapes[aa]).shape._mdf){for((va=ma.localShapeCollection).releaseShapes(),this.m===2&&ga>1?(ya=this.calculateShapeEdges(na,ra,ma.totalShapeLength,Sa,fa),Sa+=ma.totalShapeLength):ya=[[Aa,Ca]],ua=ya.length,ca=0;ca<ua;ca+=1){Aa=ya[ca][0],Ca=ya[ca][1],xa.length=0,Ca<=1?xa.push({s:ma.totalShapeLength*Aa,e:ma.totalShapeLength*Ca}):Aa>=1?xa.push({s:ma.totalShapeLength*(Aa-1),e:ma.totalShapeLength*(Ca-1)}):(xa.push({s:ma.totalShapeLength*Aa,e:ma.totalShapeLength}),xa.push({s:0,e:ma.totalShapeLength*(Ca-1)}));var wa=this.addShapes(ma,xa[0]);if(xa[0].s!==xa[0].e){if(xa.length>1)if(ma.shape.paths.shapes[ma.shape.paths._length-1].c){var ba=wa.pop();this.addPaths(wa,va),wa=this.addShapes(ma,xa[1],ba)}else this.addPaths(wa,va),wa=this.addShapes(ma,xa[1]);this.addPaths(wa,va)}}ma.shape.paths=va}}},TrimModifier.prototype.addPaths=function(ea,na){var ra,oa=ea.length;for(ra=0;ra<oa;ra+=1)na.addShape(ea[ra])},TrimModifier.prototype.addSegment=function(ea,na,ra,oa,aa,sa,la){aa.setXYAt(na[0],na[1],"o",sa),aa.setXYAt(ra[0],ra[1],"i",sa+1),la&&aa.setXYAt(ea[0],ea[1],"v",sa),aa.setXYAt(oa[0],oa[1],"v",sa+1)},TrimModifier.prototype.addSegmentFromArray=function(ea,na,ra,oa){na.setXYAt(ea[1],ea[5],"o",ra),na.setXYAt(ea[2],ea[6],"i",ra+1),oa&&na.setXYAt(ea[0],ea[4],"v",ra),na.setXYAt(ea[3],ea[7],"v",ra+1)},TrimModifier.prototype.addShapes=function(ea,na,ra){var oa,aa,sa,la,ca,ua,da,pa,ha=ea.pathsData,ga=ea.shape.paths.shapes,fa=ea.shape.paths._length,ma=0,va=[],xa=!0;for(ra?(ca=ra._length,pa=ra._length):(ra=shapePool.newElement(),ca=0,pa=0),va.push(ra),oa=0;oa<fa;oa+=1){for(ua=ha[oa].lengths,ra.c=ga[oa].c,sa=ga[oa].c?ua.length:ua.length+1,aa=1;aa<sa;aa+=1)if(ma+(la=ua[aa-1]).addedLength<na.s)ma+=la.addedLength,ra.c=!1;else{if(ma>na.e){ra.c=!1;break}na.s<=ma&&na.e>=ma+la.addedLength?(this.addSegment(ga[oa].v[aa-1],ga[oa].o[aa-1],ga[oa].i[aa],ga[oa].v[aa],ra,ca,xa),xa=!1):(da=bez.getNewSegment(ga[oa].v[aa-1],ga[oa].v[aa],ga[oa].o[aa-1],ga[oa].i[aa],(na.s-ma)/la.addedLength,(na.e-ma)/la.addedLength,ua[aa-1]),this.addSegmentFromArray(da,ra,ca,xa),xa=!1,ra.c=!1),ma+=la.addedLength,ca+=1}if(ga[oa].c&&ua.length){if(la=ua[aa-1],ma<=na.e){var ya=ua[aa-1].addedLength;na.s<=ma&&na.e>=ma+ya?(this.addSegment(ga[oa].v[aa-1],ga[oa].o[aa-1],ga[oa].i[0],ga[oa].v[0],ra,ca,xa),xa=!1):(da=bez.getNewSegment(ga[oa].v[aa-1],ga[oa].v[0],ga[oa].o[aa-1],ga[oa].i[0],(na.s-ma)/ya,(na.e-ma)/ya,ua[aa-1]),this.addSegmentFromArray(da,ra,ca,xa),xa=!1,ra.c=!1)}else ra.c=!1;ma+=la.addedLength,ca+=1}if(ra._length&&(ra.setXYAt(ra.v[pa][0],ra.v[pa][1],"i",pa),ra.setXYAt(ra.v[ra._length-1][0],ra.v[ra._length-1][1],"o",ra._length-1)),ma>na.e)break;oa<fa-1&&(ra=shapePool.newElement(),xa=!0,va.push(ra),ca=0)}return va},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(ea,na){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ea,na.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(ea,na){var ra=na/100,oa=[0,0],aa=ea._length,sa=0;for(sa=0;sa<aa;sa+=1)oa[0]+=ea.v[sa][0],oa[1]+=ea.v[sa][1];oa[0]/=aa,oa[1]/=aa;var la,ca,ua,da,pa,ha,ga=shapePool.newElement();for(ga.c=ea.c,sa=0;sa<aa;sa+=1)la=ea.v[sa][0]+(oa[0]-ea.v[sa][0])*ra,ca=ea.v[sa][1]+(oa[1]-ea.v[sa][1])*ra,ua=ea.o[sa][0]+(oa[0]-ea.o[sa][0])*-ra,da=ea.o[sa][1]+(oa[1]-ea.o[sa][1])*-ra,pa=ea.i[sa][0]+(oa[0]-ea.i[sa][0])*-ra,ha=ea.i[sa][1]+(oa[1]-ea.i[sa][1])*-ra,ga.setTripleAt(la,ca,ua,da,pa,ha,sa);return ga},PuckerAndBloatModifier.prototype.processShapes=function(ea){var na,ra,oa,aa,sa,la,ca=this.shapes.length,ua=this.amount.v;if(ua!==0)for(ra=0;ra<ca;ra+=1){if(la=(sa=this.shapes[ra]).localShapeCollection,sa.shape._mdf||this._mdf||ea)for(la.releaseShapes(),sa.shape._mdf=!0,na=sa.shape.paths.shapes,aa=sa.shape.paths._length,oa=0;oa<aa;oa+=1)la.addShape(this.processPath(na[oa],ua));sa.shape.paths=sa.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var ea=[0,0];function na(ra,oa,aa){if(this.elem=ra,this.frameId=-1,this.propType="transform",this.data=oa,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(aa||ra),oa.p&&oa.p.s?(this.px=PropertyFactory.getProp(ra,oa.p.x,0,0,this),this.py=PropertyFactory.getProp(ra,oa.p.y,0,0,this),oa.p.z&&(this.pz=PropertyFactory.getProp(ra,oa.p.z,0,0,this))):this.p=PropertyFactory.getProp(ra,oa.p||{k:[0,0,0]},1,0,this),oa.rx){if(this.rx=PropertyFactory.getProp(ra,oa.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(ra,oa.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(ra,oa.rz,0,degToRads,this),oa.or.k[0].ti){var sa,la=oa.or.k.length;for(sa=0;sa<la;sa+=1)oa.or.k[sa].to=null,oa.or.k[sa].ti=null}this.or=PropertyFactory.getProp(ra,oa.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(ra,oa.r||{k:0},0,degToRads,this);oa.sk&&(this.sk=PropertyFactory.getProp(ra,oa.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(ra,oa.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(ra,oa.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(ra,oa.s||{k:[100,100,100]},1,.01,this),oa.o?this.o=PropertyFactory.getProp(ra,oa.o,0,.01,ra):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return na.prototype={applyToMatrix:function(ra){var oa=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||oa,this.a&&ra.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&ra.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&ra.skewFromAxis(-this.sk.v,this.sa.v),this.r?ra.rotate(-this.r.v):ra.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?ra.translate(this.px.v,this.py.v,-this.pz.v):ra.translate(this.px.v,this.py.v,0):ra.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(ra){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||ra){var oa;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var aa,sa;if(oa=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(aa=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/oa,0),sa=this.p.getValueAtTime(this.p.keyframes[0].t/oa,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(aa=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/oa,0),sa=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/oa,0)):(aa=this.p.pv,sa=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/oa,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){aa=[],sa=[];var la=this.px,ca=this.py;la._caching.lastFrame+la.offsetTime<=la.keyframes[0].t?(aa[0]=la.getValueAtTime((la.keyframes[0].t+.01)/oa,0),aa[1]=ca.getValueAtTime((ca.keyframes[0].t+.01)/oa,0),sa[0]=la.getValueAtTime(la.keyframes[0].t/oa,0),sa[1]=ca.getValueAtTime(ca.keyframes[0].t/oa,0)):la._caching.lastFrame+la.offsetTime>=la.keyframes[la.keyframes.length-1].t?(aa[0]=la.getValueAtTime(la.keyframes[la.keyframes.length-1].t/oa,0),aa[1]=ca.getValueAtTime(ca.keyframes[ca.keyframes.length-1].t/oa,0),sa[0]=la.getValueAtTime((la.keyframes[la.keyframes.length-1].t-.01)/oa,0),sa[1]=ca.getValueAtTime((ca.keyframes[ca.keyframes.length-1].t-.01)/oa,0)):(aa=[la.pv,ca.pv],sa[0]=la.getValueAtTime((la._caching.lastFrame+la.offsetTime-.01)/oa,la.offsetTime),sa[1]=ca.getValueAtTime((ca._caching.lastFrame+ca.offsetTime-.01)/oa,ca.offsetTime))}else aa=sa=ea;this.v.rotate(-Math.atan2(aa[1]-sa[1],aa[0]-sa[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],na),na.prototype.addDynamicProperty=function(ra){this._addDynamicProperty(ra),this.elem.addDynamicProperty(ra),this._isDirty=!0},na.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(ra,oa,aa){return new na(ra,oa,aa)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(ea,na){return 1e5*Math.abs(ea-na)<=Math.min(Math.abs(ea),Math.abs(na))}function floatZero(ea){return Math.abs(ea)<=1e-5}function lerp(ea,na,ra){return ea*(1-ra)+na*ra}function lerpPoint(ea,na,ra){return[lerp(ea[0],na[0],ra),lerp(ea[1],na[1],ra)]}function quadRoots(ea,na,ra){if(ea===0)return[];var oa=na*na-4*ea*ra;if(oa<0)return[];var aa=-na/(2*ea);if(oa===0)return[aa];var sa=Math.sqrt(oa)/(2*ea);return[aa-sa,aa+sa]}function polynomialCoefficients(ea,na,ra,oa){return[3*na-ea-3*ra+oa,3*ea-6*na+3*ra,-3*ea+3*na,ea]}function singlePoint(ea){return new PolynomialBezier(ea,ea,ea,ea,!1)}function PolynomialBezier(ea,na,ra,oa,aa){aa&&pointEqual(ea,na)&&(na=lerpPoint(ea,oa,1/3)),aa&&pointEqual(ra,oa)&&(ra=lerpPoint(ea,oa,2/3));var sa=polynomialCoefficients(ea[0],na[0],ra[0],oa[0]),la=polynomialCoefficients(ea[1],na[1],ra[1],oa[1]);this.a=[sa[0],la[0]],this.b=[sa[1],la[1]],this.c=[sa[2],la[2]],this.d=[sa[3],la[3]],this.points=[ea,na,ra,oa]}function extrema(ea,na){var ra=ea.points[0][na],oa=ea.points[ea.points.length-1][na];if(ra>oa){var aa=oa;oa=ra,ra=aa}for(var sa=quadRoots(3*ea.a[na],2*ea.b[na],ea.c[na]),la=0;la<sa.length;la+=1)if(sa[la]>0&&sa[la]<1){var ca=ea.point(sa[la])[na];ca<ra?ra=ca:ca>oa&&(oa=ca)}return{min:ra,max:oa}}function intersectData(ea,na,ra){var oa=ea.boundingBox();return{cx:oa.cx,cy:oa.cy,width:oa.width,height:oa.height,bez:ea,t:(na+ra)/2,t1:na,t2:ra}}function splitData(ea){var na=ea.bez.split(.5);return[intersectData(na[0],ea.t1,ea.t),intersectData(na[1],ea.t,ea.t2)]}function boxIntersect(ea,na){return 2*Math.abs(ea.cx-na.cx)<ea.width+na.width&&2*Math.abs(ea.cy-na.cy)<ea.height+na.height}function intersectsImpl(ea,na,ra,oa,aa,sa){if(boxIntersect(ea,na))if(ra>=sa||ea.width<=oa&&ea.height<=oa&&na.width<=oa&&na.height<=oa)aa.push([ea.t,na.t]);else{var la=splitData(ea),ca=splitData(na);intersectsImpl(la[0],ca[0],ra+1,oa,aa,sa),intersectsImpl(la[0],ca[1],ra+1,oa,aa,sa),intersectsImpl(la[1],ca[0],ra+1,oa,aa,sa),intersectsImpl(la[1],ca[1],ra+1,oa,aa,sa)}}function crossProduct(ea,na){return[ea[1]*na[2]-ea[2]*na[1],ea[2]*na[0]-ea[0]*na[2],ea[0]*na[1]-ea[1]*na[0]]}function lineIntersection(ea,na,ra,oa){var aa=[ea[0],ea[1],1],sa=[na[0],na[1],1],la=[ra[0],ra[1],1],ca=[oa[0],oa[1],1],ua=crossProduct(crossProduct(aa,sa),crossProduct(la,ca));return floatZero(ua[2])?null:[ua[0]/ua[2],ua[1]/ua[2]]}function polarOffset(ea,na,ra){return[ea[0]+Math.cos(na)*ra,ea[1]-Math.sin(na)*ra]}function pointDistance(ea,na){return Math.hypot(ea[0]-na[0],ea[1]-na[1])}function pointEqual(ea,na){return floatEqual(ea[0],na[0])&&floatEqual(ea[1],na[1])}function ZigZagModifier(){}function setPoint(ea,na,ra,oa,aa,sa,la){var ca=ra-Math.PI/2,ua=ra+Math.PI/2,da=na[0]+Math.cos(ra)*oa*aa,pa=na[1]-Math.sin(ra)*oa*aa;ea.setTripleAt(da,pa,da+Math.cos(ca)*sa,pa-Math.sin(ca)*sa,da+Math.cos(ua)*la,pa-Math.sin(ua)*la,ea.length())}function getPerpendicularVector(ea,na){var ra=[na[0]-ea[0],na[1]-ea[1]],oa=.5*-Math.PI;return[Math.cos(oa)*ra[0]-Math.sin(oa)*ra[1],Math.sin(oa)*ra[0]+Math.cos(oa)*ra[1]]}function getProjectingAngle(ea,na){var ra=na===0?ea.length()-1:na-1,oa=(na+1)%ea.length(),aa=getPerpendicularVector(ea.v[ra],ea.v[oa]);return Math.atan2(0,1)-Math.atan2(aa[1],aa[0])}function zigZagCorner(ea,na,ra,oa,aa,sa,la){var ca=getProjectingAngle(na,ra),ua=na.v[ra%na._length],da=na.v[ra===0?na._length-1:ra-1],pa=na.v[(ra+1)%na._length],ha=sa===2?Math.sqrt(Math.pow(ua[0]-da[0],2)+Math.pow(ua[1]-da[1],2)):0,ga=sa===2?Math.sqrt(Math.pow(ua[0]-pa[0],2)+Math.pow(ua[1]-pa[1],2)):0;setPoint(ea,na.v[ra%na._length],ca,la,oa,ga/(2*(aa+1)),ha/(2*(aa+1)))}function zigZagSegment(ea,na,ra,oa,aa,sa){for(var la=0;la<oa;la+=1){var ca=(la+1)/(oa+1),ua=aa===2?Math.sqrt(Math.pow(na.points[3][0]-na.points[0][0],2)+Math.pow(na.points[3][1]-na.points[0][1],2)):0,da=na.normalAngle(ca);setPoint(ea,na.point(ca),da,sa,ra,ua/(2*(oa+1)),ua/(2*(oa+1))),sa=-sa}return sa}function linearOffset(ea,na,ra){var oa=Math.atan2(na[0]-ea[0],na[1]-ea[1]);return[polarOffset(ea,oa,ra),polarOffset(na,oa,ra)]}function offsetSegment(ea,na){var ra,oa,aa,sa,la,ca,ua;ra=(ua=linearOffset(ea.points[0],ea.points[1],na))[0],oa=ua[1],aa=(ua=linearOffset(ea.points[1],ea.points[2],na))[0],sa=ua[1],la=(ua=linearOffset(ea.points[2],ea.points[3],na))[0],ca=ua[1];var da=lineIntersection(ra,oa,aa,sa);da===null&&(da=oa);var pa=lineIntersection(la,ca,aa,sa);return pa===null&&(pa=la),new PolynomialBezier(ra,da,pa,ca)}function joinLines(ea,na,ra,oa,aa){var sa=na.points[3],la=ra.points[0];if(oa===3||pointEqual(sa,la))return sa;if(oa===2){var ca=-na.tangentAngle(1),ua=-ra.tangentAngle(0)+Math.PI,da=lineIntersection(sa,polarOffset(sa,ca+Math.PI/2,100),la,polarOffset(la,ca+Math.PI/2,100)),pa=da?pointDistance(da,sa):pointDistance(sa,la)/2,ha=polarOffset(sa,ca,2*pa*roundCorner);return ea.setXYAt(ha[0],ha[1],"o",ea.length()-1),ha=polarOffset(la,ua,2*pa*roundCorner),ea.setTripleAt(la[0],la[1],la[0],la[1],ha[0],ha[1],ea.length()),la}var ga=lineIntersection(pointEqual(sa,na.points[2])?na.points[0]:na.points[2],sa,la,pointEqual(la,ra.points[1])?ra.points[3]:ra.points[1]);return ga&&pointDistance(ga,sa)<aa?(ea.setTripleAt(ga[0],ga[1],ga[0],ga[1],ga[0],ga[1],ea.length()),ga):sa}function getIntersection(ea,na){var ra=ea.intersections(na);return ra.length&&floatEqual(ra[0][0],1)&&ra.shift(),ra.length?ra[0]:null}function pruneSegmentIntersection(ea,na){var ra=ea.slice(),oa=na.slice(),aa=getIntersection(ea[ea.length-1],na[0]);return aa&&(ra[ea.length-1]=ea[ea.length-1].split(aa[0])[0],oa[0]=na[0].split(aa[1])[1]),ea.length>1&&na.length>1&&(aa=getIntersection(ea[0],na[na.length-1]))?[[ea[0].split(aa[0])[0]],[na[na.length-1].split(aa[1])[1]]]:[ra,oa]}function pruneIntersections(ea){for(var na,ra=1;ra<ea.length;ra+=1)na=pruneSegmentIntersection(ea[ra-1],ea[ra]),ea[ra-1]=na[0],ea[ra]=na[1];return ea.length>1&&(na=pruneSegmentIntersection(ea[ea.length-1],ea[0]),ea[ea.length-1]=na[0],ea[0]=na[1]),ea}function offsetSegmentSplit(ea,na){var ra,oa,aa,sa,la=ea.inflectionPoints();if(la.length===0)return[offsetSegment(ea,na)];if(la.length===1||floatEqual(la[1],1))return ra=(aa=ea.split(la[0]))[0],oa=aa[1],[offsetSegment(ra,na),offsetSegment(oa,na)];ra=(aa=ea.split(la[0]))[0];var ca=(la[1]-la[0])/(1-la[0]);return sa=(aa=aa[1].split(ca))[0],oa=aa[1],[offsetSegment(ra,na),offsetSegment(sa,na),offsetSegment(oa,na)]}function OffsetPathModifier(){}function getFontProperties(ea){for(var na=ea.fStyle?ea.fStyle.split(" "):[],ra="normal",oa="normal",aa=na.length,sa=0;sa<aa;sa+=1)switch(na[sa].toLowerCase()){case"italic":oa="italic";break;case"bold":ra="700";break;case"black":ra="900";break;case"medium":ra="500";break;case"regular":case"normal":ra="400";break;case"light":case"thin":ra="200"}return{style:oa,weight:ea.fWeight||ra}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(ea,na){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(ea,na.c,0,null,this),this.o=PropertyFactory.getProp(ea,na.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(ea,na.tr,this),this.so=PropertyFactory.getProp(ea,na.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(ea,na.tr.eo,0,.01,this),this.data=na,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(ea,na,ra,oa,aa,sa){var la=sa?-1:1,ca=oa.s.v[0]+(1-oa.s.v[0])*(1-aa),ua=oa.s.v[1]+(1-oa.s.v[1])*(1-aa);ea.translate(oa.p.v[0]*la*aa,oa.p.v[1]*la*aa,oa.p.v[2]),na.translate(-oa.a.v[0],-oa.a.v[1],oa.a.v[2]),na.rotate(-oa.r.v*la*aa),na.translate(oa.a.v[0],oa.a.v[1],oa.a.v[2]),ra.translate(-oa.a.v[0],-oa.a.v[1],oa.a.v[2]),ra.scale(sa?1/ca:ca,sa?1/ua:ua),ra.translate(oa.a.v[0],oa.a.v[1],oa.a.v[2])},RepeaterModifier.prototype.init=function(ea,na,ra,oa){for(this.elem=ea,this.arr=na,this.pos=ra,this.elemsData=oa,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(ea),this.initModifierProperties(ea,na[ra]);ra>0;)ra-=1,this._elements.unshift(na[ra]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(ea){var na,ra=ea.length;for(na=0;na<ra;na+=1)ea[na]._processed=!1,ea[na].ty==="gr"&&this.resetElements(ea[na].it)},RepeaterModifier.prototype.cloneElements=function(ea){var na=JSON.parse(JSON.stringify(ea));return this.resetElements(na),na},RepeaterModifier.prototype.changeGroupRender=function(ea,na){var ra,oa=ea.length;for(ra=0;ra<oa;ra+=1)ea[ra]._render=na,ea[ra].ty==="gr"&&this.changeGroupRender(ea[ra].it,na)},RepeaterModifier.prototype.processShapes=function(ea){var na,ra,oa,aa,sa,la=!1;if(this._mdf||ea){var ca,ua=Math.ceil(this.c.v);if(this._groups.length<ua){for(;this._groups.length<ua;){var da={it:this.cloneElements(this._elements),ty:"gr"};da.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,da),this._groups.splice(0,0,da),this._currentCopies+=1}this.elem.reloadShapes(),la=!0}for(sa=0,oa=0;oa<=this._groups.length-1;oa+=1){if(ca=sa<ua,this._groups[oa]._render=ca,this.changeGroupRender(this._groups[oa].it,ca),!ca){var pa=this.elemsData[oa].it,ha=pa[pa.length-1];ha.transform.op.v!==0?(ha.transform.op._mdf=!0,ha.transform.op.v=0):ha.transform.op._mdf=!1}sa+=1}this._currentCopies=ua;var ga=this.o.v,fa=ga%1,ma=ga>0?Math.floor(ga):Math.ceil(ga),va=this.pMatrix.props,xa=this.rMatrix.props,ya=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Aa,Ca,Sa=0;if(ga>0){for(;Sa<ma;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Sa+=1;fa&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,fa,!1),Sa+=fa)}else if(ga<0){for(;Sa>ma;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Sa-=1;fa&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-fa,!0),Sa-=fa)}for(oa=this.data.m===1?0:this._currentCopies-1,aa=this.data.m===1?1:-1,sa=this._currentCopies;sa;){if(Ca=(ra=(na=this.elemsData[oa].it)[na.length-1].transform.mProps.v.props).length,na[na.length-1].transform.mProps._mdf=!0,na[na.length-1].transform.op._mdf=!0,na[na.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(oa/(this._currentCopies-1)),Sa!==0){for((oa!==0&&aa===1||oa!==this._currentCopies-1&&aa===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(xa[0],xa[1],xa[2],xa[3],xa[4],xa[5],xa[6],xa[7],xa[8],xa[9],xa[10],xa[11],xa[12],xa[13],xa[14],xa[15]),this.matrix.transform(ya[0],ya[1],ya[2],ya[3],ya[4],ya[5],ya[6],ya[7],ya[8],ya[9],ya[10],ya[11],ya[12],ya[13],ya[14],ya[15]),this.matrix.transform(va[0],va[1],va[2],va[3],va[4],va[5],va[6],va[7],va[8],va[9],va[10],va[11],va[12],va[13],va[14],va[15]),Aa=0;Aa<Ca;Aa+=1)ra[Aa]=this.matrix.props[Aa];this.matrix.reset()}else for(this.matrix.reset(),Aa=0;Aa<Ca;Aa+=1)ra[Aa]=this.matrix.props[Aa];Sa+=1,sa-=1,oa+=aa}}else for(sa=this._currentCopies,oa=0,aa=1;sa;)ra=(na=this.elemsData[oa].it)[na.length-1].transform.mProps.v.props,na[na.length-1].transform.mProps._mdf=!1,na[na.length-1].transform.op._mdf=!1,sa-=1,oa+=aa;return la},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(ea,na){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(ea,na.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(ea,na){var ra,oa=shapePool.newElement();oa.c=ea.c;var aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va,xa=ea._length,ya=0;for(ra=0;ra<xa;ra+=1)aa=ea.v[ra],la=ea.o[ra],sa=ea.i[ra],aa[0]===la[0]&&aa[1]===la[1]&&aa[0]===sa[0]&&aa[1]===sa[1]?ra!==0&&ra!==xa-1||ea.c?(ca=ra===0?ea.v[xa-1]:ea.v[ra-1],da=(ua=Math.sqrt(Math.pow(aa[0]-ca[0],2)+Math.pow(aa[1]-ca[1],2)))?Math.min(ua/2,na)/ua:0,pa=ma=aa[0]+(ca[0]-aa[0])*da,ha=va=aa[1]-(aa[1]-ca[1])*da,ga=pa-(pa-aa[0])*roundCorner,fa=ha-(ha-aa[1])*roundCorner,oa.setTripleAt(pa,ha,ga,fa,ma,va,ya),ya+=1,ca=ra===xa-1?ea.v[0]:ea.v[ra+1],da=(ua=Math.sqrt(Math.pow(aa[0]-ca[0],2)+Math.pow(aa[1]-ca[1],2)))?Math.min(ua/2,na)/ua:0,pa=ga=aa[0]+(ca[0]-aa[0])*da,ha=fa=aa[1]+(ca[1]-aa[1])*da,ma=pa-(pa-aa[0])*roundCorner,va=ha-(ha-aa[1])*roundCorner,oa.setTripleAt(pa,ha,ga,fa,ma,va,ya),ya+=1):(oa.setTripleAt(aa[0],aa[1],la[0],la[1],sa[0],sa[1],ya),ya+=1):(oa.setTripleAt(ea.v[ra][0],ea.v[ra][1],ea.o[ra][0],ea.o[ra][1],ea.i[ra][0],ea.i[ra][1],ya),ya+=1);return oa},RoundCornersModifier.prototype.processShapes=function(ea){var na,ra,oa,aa,sa,la,ca=this.shapes.length,ua=this.rd.v;if(ua!==0)for(ra=0;ra<ca;ra+=1){if(la=(sa=this.shapes[ra]).localShapeCollection,sa.shape._mdf||this._mdf||ea)for(la.releaseShapes(),sa.shape._mdf=!0,na=sa.shape.paths.shapes,aa=sa.shape.paths._length,oa=0;oa<aa;oa+=1)la.addShape(this.processPath(na[oa],ua));sa.shape.paths=sa.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(ea){return[((this.a[0]*ea+this.b[0])*ea+this.c[0])*ea+this.d[0],((this.a[1]*ea+this.b[1])*ea+this.c[1])*ea+this.d[1]]},PolynomialBezier.prototype.derivative=function(ea){return[(3*ea*this.a[0]+2*this.b[0])*ea+this.c[0],(3*ea*this.a[1]+2*this.b[1])*ea+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(ea){var na=this.derivative(ea);return Math.atan2(na[1],na[0])},PolynomialBezier.prototype.normalAngle=function(ea){var na=this.derivative(ea);return Math.atan2(na[0],na[1])},PolynomialBezier.prototype.inflectionPoints=function(){var ea=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(ea))return[];var na=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/ea,ra=na*na-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/ea;if(ra<0)return[];var oa=Math.sqrt(ra);return floatZero(oa)?oa>0&&oa<1?[na]:[]:[na-oa,na+oa].filter(function(aa){return aa>0&&aa<1})},PolynomialBezier.prototype.split=function(ea){if(ea<=0)return[singlePoint(this.points[0]),this];if(ea>=1)return[this,singlePoint(this.points[this.points.length-1])];var na=lerpPoint(this.points[0],this.points[1],ea),ra=lerpPoint(this.points[1],this.points[2],ea),oa=lerpPoint(this.points[2],this.points[3],ea),aa=lerpPoint(na,ra,ea),sa=lerpPoint(ra,oa,ea),la=lerpPoint(aa,sa,ea);return[new PolynomialBezier(this.points[0],na,aa,la,!0),new PolynomialBezier(la,sa,oa,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var ea=this.bounds();return{left:ea.x.min,right:ea.x.max,top:ea.y.min,bottom:ea.y.max,width:ea.x.max-ea.x.min,height:ea.y.max-ea.y.min,cx:(ea.x.max+ea.x.min)/2,cy:(ea.y.max+ea.y.min)/2}},PolynomialBezier.prototype.intersections=function(ea,na,ra){na===void 0&&(na=2),ra===void 0&&(ra=7);var oa=[];return intersectsImpl(intersectData(this,0,1),intersectData(ea,0,1),0,na,oa,ra),oa},PolynomialBezier.shapeSegment=function(ea,na){var ra=(na+1)%ea.length();return new PolynomialBezier(ea.v[na],ea.o[na],ea.i[ra],ea.v[ra],!0)},PolynomialBezier.shapeSegmentInverted=function(ea,na){var ra=(na+1)%ea.length();return new PolynomialBezier(ea.v[ra],ea.i[ra],ea.o[na],ea.v[na],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(ea,na){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(ea,na.s,0,null,this),this.frequency=PropertyFactory.getProp(ea,na.r,0,null,this),this.pointsType=PropertyFactory.getProp(ea,na.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(ea,na,ra,oa){var aa=ea._length,sa=shapePool.newElement();if(sa.c=ea.c,ea.c||(aa-=1),aa===0)return sa;var la=-1,ca=PolynomialBezier.shapeSegment(ea,0);zigZagCorner(sa,ea,0,na,ra,oa,la);for(var ua=0;ua<aa;ua+=1)la=zigZagSegment(sa,ca,na,ra,oa,-la),ca=ua!==aa-1||ea.c?PolynomialBezier.shapeSegment(ea,(ua+1)%aa):null,zigZagCorner(sa,ea,ua+1,na,ra,oa,la);return sa},ZigZagModifier.prototype.processShapes=function(ea){var na,ra,oa,aa,sa,la,ca=this.shapes.length,ua=this.amplitude.v,da=Math.max(0,Math.round(this.frequency.v)),pa=this.pointsType.v;if(ua!==0)for(ra=0;ra<ca;ra+=1){if(la=(sa=this.shapes[ra]).localShapeCollection,sa.shape._mdf||this._mdf||ea)for(la.releaseShapes(),sa.shape._mdf=!0,na=sa.shape.paths.shapes,aa=sa.shape.paths._length,oa=0;oa<aa;oa+=1)la.addShape(this.processPath(na[oa],ua,da,pa));sa.shape.paths=sa.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(ea,na){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ea,na.a,0,null,this),this.miterLimit=PropertyFactory.getProp(ea,na.ml,0,null,this),this.lineJoin=na.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(ea,na,ra,oa){var aa=shapePool.newElement();aa.c=ea.c;var sa,la,ca,ua=ea.length();ea.c||(ua-=1);var da=[];for(sa=0;sa<ua;sa+=1)ca=PolynomialBezier.shapeSegment(ea,sa),da.push(offsetSegmentSplit(ca,na));if(!ea.c)for(sa=ua-1;sa>=0;sa-=1)ca=PolynomialBezier.shapeSegmentInverted(ea,sa),da.push(offsetSegmentSplit(ca,na));da=pruneIntersections(da);var pa=null,ha=null;for(sa=0;sa<da.length;sa+=1){var ga=da[sa];for(ha&&(pa=joinLines(aa,ha,ga[0],ra,oa)),ha=ga[ga.length-1],la=0;la<ga.length;la+=1)ca=ga[la],pa&&pointEqual(ca.points[0],pa)?aa.setXYAt(ca.points[1][0],ca.points[1][1],"o",aa.length()-1):aa.setTripleAt(ca.points[0][0],ca.points[0][1],ca.points[1][0],ca.points[1][1],ca.points[0][0],ca.points[0][1],aa.length()),aa.setTripleAt(ca.points[3][0],ca.points[3][1],ca.points[3][0],ca.points[3][1],ca.points[2][0],ca.points[2][1],aa.length()),pa=ca.points[3]}return da.length&&joinLines(aa,ha,da[0][0],ra,oa),aa},OffsetPathModifier.prototype.processShapes=function(ea){var na,ra,oa,aa,sa,la,ca=this.shapes.length,ua=this.amount.v,da=this.miterLimit.v,pa=this.lineJoin;if(ua!==0)for(ra=0;ra<ca;ra+=1){if(la=(sa=this.shapes[ra]).localShapeCollection,sa.shape._mdf||this._mdf||ea)for(la.releaseShapes(),sa.shape._mdf=!0,na=sa.shape.paths.shapes,aa=sa.shape.paths._length,oa=0;oa<aa;oa+=1)la.addShape(this.processPath(na[oa],ua,pa,da));sa.shape.paths=sa.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var ea={w:0,size:0,shapes:[],data:{shapes:[]}},na=[];na=na.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var ra=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function oa(ua,da){var pa=createTag("span");pa.setAttribute("aria-hidden",!0),pa.style.fontFamily=da;var ha=createTag("span");ha.innerText="giItT1WQy@!-/#",pa.style.position="absolute",pa.style.left="-10000px",pa.style.top="-10000px",pa.style.fontSize="300px",pa.style.fontVariant="normal",pa.style.fontStyle="normal",pa.style.fontWeight="normal",pa.style.letterSpacing="0",pa.appendChild(ha),document.body.appendChild(pa);var ga=ha.offsetWidth;return ha.style.fontFamily=function(fa){var ma,va=fa.split(","),xa=va.length,ya=[];for(ma=0;ma<xa;ma+=1)va[ma]!=="sans-serif"&&va[ma]!=="monospace"&&ya.push(va[ma]);return ya.join(",")}(ua)+", "+da,{node:ha,w:ga,parent:pa}}function aa(ua,da){var pa,ha=document.body&&da?"svg":"canvas",ga=getFontProperties(ua);if(ha==="svg"){var fa=createNS("text");fa.style.fontSize="100px",fa.setAttribute("font-family",ua.fFamily),fa.setAttribute("font-style",ga.style),fa.setAttribute("font-weight",ga.weight),fa.textContent="1",ua.fClass?(fa.style.fontFamily="inherit",fa.setAttribute("class",ua.fClass)):fa.style.fontFamily=ua.fFamily,da.appendChild(fa),pa=fa}else{var ma=new OffscreenCanvas(500,500).getContext("2d");ma.font=ga.style+" "+ga.weight+" 100px "+ua.fFamily,pa=ma}return{measureText:function(va){return ha==="svg"?(pa.textContent=va,pa.getComputedTextLength()):pa.measureText(va).width}}}function sa(ua){var da=0,pa=ua.charCodeAt(0);if(pa>=55296&&pa<=56319){var ha=ua.charCodeAt(1);ha>=56320&&ha<=57343&&(da=1024*(pa-55296)+ha-56320+65536)}return da}function la(ua){var da=sa(ua);return da>=127462&&da<=127487}var ca=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return ca.isModifier=function(ua,da){var pa=ua.toString(16)+da.toString(16);return ra.indexOf(pa)!==-1},ca.isZeroWidthJoiner=function(ua){return ua===8205},ca.isFlagEmoji=function(ua){return la(ua.substr(0,2))&&la(ua.substr(2,2))},ca.isRegionalCode=la,ca.isCombinedCharacter=function(ua){return na.indexOf(ua)!==-1},ca.isRegionalFlag=function(ua,da){var pa=sa(ua.substr(da,2));if(pa!==127988)return!1;var ha=0;for(da+=2;ha<5;){if((pa=sa(ua.substr(da,2)))<917601||pa>917626)return!1;ha+=1,da+=2}return sa(ua.substr(da,2))===917631},ca.isVariationSelector=function(ua){return ua===65039},ca.BLACK_FLAG_CODE_POINT=127988,ca.prototype={addChars:function(ua){if(ua){var da;this.chars||(this.chars=[]);var pa,ha,ga=ua.length,fa=this.chars.length;for(da=0;da<ga;da+=1){for(pa=0,ha=!1;pa<fa;)this.chars[pa].style===ua[da].style&&this.chars[pa].fFamily===ua[da].fFamily&&this.chars[pa].ch===ua[da].ch&&(ha=!0),pa+=1;ha||(this.chars.push(ua[da]),fa+=1)}}},addFonts:function(ua,da){if(ua){if(this.chars)return this.isLoaded=!0,void(this.fonts=ua.list);if(!document.body)return this.isLoaded=!0,ua.list.forEach(function(Sa){Sa.helper=aa(Sa),Sa.cache={}}),void(this.fonts=ua.list);var pa,ha=ua.list,ga=ha.length,fa=ga;for(pa=0;pa<ga;pa+=1){var ma,va,xa=!0;if(ha[pa].loaded=!1,ha[pa].monoCase=oa(ha[pa].fFamily,"monospace"),ha[pa].sansCase=oa(ha[pa].fFamily,"sans-serif"),ha[pa].fPath){if(ha[pa].fOrigin==="p"||ha[pa].origin===3){if((ma=document.querySelectorAll('style[f-forigin="p"][f-family="'+ha[pa].fFamily+'"], style[f-origin="3"][f-family="'+ha[pa].fFamily+'"]')).length>0&&(xa=!1),xa){var ya=createTag("style");ya.setAttribute("f-forigin",ha[pa].fOrigin),ya.setAttribute("f-origin",ha[pa].origin),ya.setAttribute("f-family",ha[pa].fFamily),ya.type="text/css",ya.innerText="@font-face {font-family: "+ha[pa].fFamily+"; font-style: normal; src: url('"+ha[pa].fPath+"');}",da.appendChild(ya)}}else if(ha[pa].fOrigin==="g"||ha[pa].origin===1){for(ma=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),va=0;va<ma.length;va+=1)ma[va].href.indexOf(ha[pa].fPath)!==-1&&(xa=!1);if(xa){var Aa=createTag("link");Aa.setAttribute("f-forigin",ha[pa].fOrigin),Aa.setAttribute("f-origin",ha[pa].origin),Aa.type="text/css",Aa.rel="stylesheet",Aa.href=ha[pa].fPath,document.body.appendChild(Aa)}}else if(ha[pa].fOrigin==="t"||ha[pa].origin===2){for(ma=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),va=0;va<ma.length;va+=1)ha[pa].fPath===ma[va].src&&(xa=!1);if(xa){var Ca=createTag("link");Ca.setAttribute("f-forigin",ha[pa].fOrigin),Ca.setAttribute("f-origin",ha[pa].origin),Ca.setAttribute("rel","stylesheet"),Ca.setAttribute("href",ha[pa].fPath),da.appendChild(Ca)}}}else ha[pa].loaded=!0,fa-=1;ha[pa].helper=aa(ha[pa],da),ha[pa].cache={},this.fonts.push(ha[pa])}fa===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(ua,da,pa){for(var ha=0,ga=this.chars.length;ha<ga;){if(this.chars[ha].ch===ua&&this.chars[ha].style===da&&this.chars[ha].fFamily===pa)return this.chars[ha];ha+=1}return(typeof ua=="string"&&ua.charCodeAt(0)!==13||!ua)&&console&&console.warn&&!this._warned&&(this._warned=!0),ea},getFontByName:function(ua){for(var da=0,pa=this.fonts.length;da<pa;){if(this.fonts[da].fName===ua)return this.fonts[da];da+=1}return this.fonts[0]},measureText:function(ua,da,pa){var ha=this.getFontByName(da),ga=ua;if(!ha.cache[ga]){var fa=ha.helper;if(ua===" "){var ma=fa.measureText("|"+ua+"|"),va=fa.measureText("||");ha.cache[ga]=(ma-va)/100}else ha.cache[ga]=fa.measureText(ua)/100}return ha.cache[ga]*pa},checkLoadedFonts:function(){var ua,da,pa,ha=this.fonts.length,ga=ha;for(ua=0;ua<ha;ua+=1)this.fonts[ua].loaded?ga-=1:this.fonts[ua].fOrigin==="n"||this.fonts[ua].origin===0?this.fonts[ua].loaded=!0:(da=this.fonts[ua].monoCase.node,pa=this.fonts[ua].monoCase.w,da.offsetWidth!==pa?(ga-=1,this.fonts[ua].loaded=!0):(da=this.fonts[ua].sansCase.node,pa=this.fonts[ua].sansCase.w,da.offsetWidth!==pa&&(ga-=1,this.fonts[ua].loaded=!0)),this.fonts[ua].loaded&&(this.fonts[ua].sansCase.parent.parentNode.removeChild(this.fonts[ua].sansCase.parent),this.fonts[ua].monoCase.parent.parentNode.removeChild(this.fonts[ua].monoCase.parent)));ga!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},ca}();function SlotManager(ea){this.animationData=ea}function slotFactory(ea){return new SlotManager(ea)}function RenderableElement(){}SlotManager.prototype.getProp=function(ea){return this.animationData.slots&&this.animationData.slots[ea.sid]?Object.assign(ea,this.animationData.slots[ea.sid].p):ea},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(ea){this.renderableComponents.indexOf(ea)===-1&&this.renderableComponents.push(ea)},removeRenderableComponent:function(ea){this.renderableComponents.indexOf(ea)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(ea),1)},prepareRenderableFrame:function(ea){this.checkLayerLimits(ea)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(ea){this.data.ip-this.data.st<=ea&&this.data.op-this.data.st>ea?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var ea,na=this.renderableComponents.length;for(ea=0;ea<na;ea+=1)this.renderableComponents[ea].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(ea){return blendModeEnums[ea]||""}),blendModeEnums;function SliderEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,0,0,ra)}function AngleEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,0,0,ra)}function ColorEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,1,0,ra)}function PointEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,1,0,ra)}function LayerIndexEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,0,0,ra)}function MaskIndexEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,0,0,ra)}function CheckboxEffect(ea,na,ra){this.p=PropertyFactory.getProp(na,ea.v,0,0,ra)}function NoValueEffect(){this.p={}}function EffectsManager(ea,na){var ra,oa=ea.ef||[];this.effectElements=[];var aa,sa=oa.length;for(ra=0;ra<sa;ra+=1)aa=new GroupEffect(oa[ra],na),this.effectElements.push(aa)}function GroupEffect(ea,na){this.init(ea,na)}function BaseElement(){}function FrameElement(){}function FootageElement(ea,na,ra){this.initFrame(),this.initRenderable(),this.assetData=na.getAssetData(ea.refId),this.footageData=na.imageLoader.getAsset(this.assetData),this.initBaseData(ea,na,ra)}function AudioElement(ea,na,ra){this.initFrame(),this.initRenderable(),this.assetData=na.getAssetData(ea.refId),this.initBaseData(ea,na,ra),this._isPlaying=!1,this._canPlay=!1;var oa=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(oa),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=ea.tm?PropertyFactory.getProp(this,ea.tm,0,na.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,ea.au&&ea.au.lv?ea.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(ea,na){var ra;this.data=ea,this.effectElements=[],this.initDynamicPropertyContainer(na);var oa,aa=this.data.ef.length,sa=this.data.ef;for(ra=0;ra<aa;ra+=1){switch(oa=null,sa[ra].ty){case 0:oa=new SliderEffect(sa[ra],na,this);break;case 1:oa=new AngleEffect(sa[ra],na,this);break;case 2:oa=new ColorEffect(sa[ra],na,this);break;case 3:oa=new PointEffect(sa[ra],na,this);break;case 4:case 7:oa=new CheckboxEffect(sa[ra],na,this);break;case 10:oa=new LayerIndexEffect(sa[ra],na,this);break;case 11:oa=new MaskIndexEffect(sa[ra],na,this);break;case 5:oa=new EffectsManager(sa[ra],na);break;default:oa=new NoValueEffect(sa[ra])}oa&&this.effectElements.push(oa)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var ea=0,na=this.data.masksProperties.length;ea<na;){if(this.data.masksProperties[ea].mode!=="n"&&this.data.masksProperties[ea].cl!==!1)return!0;ea+=1}return!1},initExpressions:function(){var ea=getExpressionInterfaces();if(ea){var na=ea("layer"),ra=ea("effects"),oa=ea("shape"),aa=ea("text"),sa=ea("comp");this.layerInterface=na(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var la=ra.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(la),this.data.ty===0||this.data.xt?this.compInterface=sa(this):this.data.ty===4?(this.layerInterface.shapeInterface=oa(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=aa(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var ea=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=ea},initBaseData:function(ea,na,ra){this.globalData=na,this.comp=ra,this.data=ea,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(ea,na){var ra,oa=this.dynamicProperties.length;for(ra=0;ra<oa;ra+=1)(na||this._isParent&&this.dynamicProperties[ra].propType==="transform")&&(this.dynamicProperties[ra].getValue(),this.dynamicProperties[ra]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(ea){this.dynamicProperties.indexOf(ea)===-1&&this.dynamicProperties.push(ea)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var ea=getExpressionInterfaces();if(ea){var na=ea("footage");this.layerInterface=na(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(ea){if(this.prepareRenderableFrame(ea,!0),this.prepareProperties(ea,!0),this.tm._placeholder)this._currentTime=ea/this.data.sr;else{var na=this.tm.v;this._currentTime=na}this._volume=this.lv.v[0];var ra=this._volume*this._volumeMultiplier;this._previousVolume!==ra&&(this._previousVolume=ra,this.audio.volume(ra))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(ea){this.audio.rate(ea)},AudioElement.prototype.volume=function(ea){this._volumeMultiplier=ea,this._previousVolume=ea*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(ea){var na,ra,oa=this.layers.length;for(this.completeLayers=!0,na=oa-1;na>=0;na-=1)this.elements[na]||(ra=this.layers[na]).ip-ra.st<=ea-this.layers[na].st&&ra.op-ra.st>ea-this.layers[na].st&&this.buildItem(na),this.completeLayers=!!this.elements[na]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(ea){switch(ea.ty){case 2:return this.createImage(ea);case 0:return this.createComp(ea);case 1:return this.createSolid(ea);case 3:return this.createNull(ea);case 4:return this.createShape(ea);case 5:return this.createText(ea);case 6:return this.createAudio(ea);case 13:return this.createCamera(ea);case 15:return this.createFootage(ea);default:return this.createNull(ea)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(ea){return new AudioElement(ea,this.globalData,this)},BaseRenderer.prototype.createFootage=function(ea){return new FootageElement(ea,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var ea,na=this.layers.length;for(ea=0;ea<na;ea+=1)this.buildItem(ea);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(ea){var na;this.completeLayers=!1;var ra,oa=ea.length,aa=this.layers.length;for(na=0;na<oa;na+=1)for(ra=0;ra<aa;){if(this.layers[ra].id===ea[na].id){this.layers[ra]=ea[na];break}ra+=1}},BaseRenderer.prototype.setProjectInterface=function(ea){this.globalData.projectInterface=ea},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(ea,na,ra){for(var oa=this.elements,aa=this.layers,sa=0,la=aa.length;sa<la;)aa[sa].ind==na&&(oa[sa]&&oa[sa]!==!0?(ra.push(oa[sa]),oa[sa].setAsParent(),aa[sa].parent!==void 0?this.buildElementParenting(ea,aa[sa].parent,ra):ea.setHierarchy(ra)):(this.buildItem(sa),this.addPendingElement(ea))),sa+=1},BaseRenderer.prototype.addPendingElement=function(ea){this.pendingElements.push(ea)},BaseRenderer.prototype.searchExtraCompositions=function(ea){var na,ra=ea.length;for(na=0;na<ra;na+=1)if(ea[na].xt){var oa=this.createComp(ea[na]);oa.initExpressions(),this.globalData.projectInterface.registerComposition(oa)}},BaseRenderer.prototype.getElementById=function(ea){var na,ra=this.elements.length;for(na=0;na<ra;na+=1)if(this.elements[na].data.ind===ea)return this.elements[na];return null},BaseRenderer.prototype.getElementByPath=function(ea){var na,ra=ea.shift();if(typeof ra=="number")na=this.elements[ra];else{var oa,aa=this.elements.length;for(oa=0;oa<aa;oa+=1)if(this.elements[oa].data.nm===ra){na=this.elements[oa];break}}return ea.length===0?na:na.getElementByPath(ea)},BaseRenderer.prototype.setupGlobalData=function(ea,na){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(ea),this.globalData.fontManager.addChars(ea.chars),this.globalData.fontManager.addFonts(ea.fonts,na),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=ea.fr,this.globalData.nm=ea.nm,this.globalData.compSize={w:ea.w,h:ea.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(ea,na,ra){this.data=ea,this.element=na,this.globalData=ra,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var oa,aa,sa=this.globalData.defs,la=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(la),this.solidPath="";var ca,ua,da,pa,ha,ga,fa=this.masksProperties,ma=0,va=[],xa=createElementID(),ya="clipPath",Aa="clip-path";for(oa=0;oa<la;oa+=1)if((fa[oa].mode!=="a"&&fa[oa].mode!=="n"||fa[oa].inv||fa[oa].o.k!==100||fa[oa].o.x)&&(ya="mask",Aa="mask"),fa[oa].mode!=="s"&&fa[oa].mode!=="i"||ma!==0?da=null:((da=createNS("rect")).setAttribute("fill","#ffffff"),da.setAttribute("width",this.element.comp.data.w||0),da.setAttribute("height",this.element.comp.data.h||0),va.push(da)),aa=createNS("path"),fa[oa].mode==="n")this.viewData[oa]={op:PropertyFactory.getProp(this.element,fa[oa].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,fa[oa],3),elem:aa,lastPath:""},sa.appendChild(aa);else{var Ca;if(ma+=1,aa.setAttribute("fill",fa[oa].mode==="s"?"#000000":"#ffffff"),aa.setAttribute("clip-rule","nonzero"),fa[oa].x.k!==0?(ya="mask",Aa="mask",ga=PropertyFactory.getProp(this.element,fa[oa].x,0,null,this.element),Ca=createElementID(),(pa=createNS("filter")).setAttribute("id",Ca),(ha=createNS("feMorphology")).setAttribute("operator","erode"),ha.setAttribute("in","SourceGraphic"),ha.setAttribute("radius","0"),pa.appendChild(ha),sa.appendChild(pa),aa.setAttribute("stroke",fa[oa].mode==="s"?"#000000":"#ffffff")):(ha=null,ga=null),this.storedData[oa]={elem:aa,x:ga,expan:ha,lastPath:"",lastOperator:"",filterId:Ca,lastRadius:0},fa[oa].mode==="i"){ua=va.length;var Sa=createNS("g");for(ca=0;ca<ua;ca+=1)Sa.appendChild(va[ca]);var wa=createNS("mask");wa.setAttribute("mask-type","alpha"),wa.setAttribute("id",xa+"_"+ma),wa.appendChild(aa),sa.appendChild(wa),Sa.setAttribute("mask","url("+getLocationHref()+"#"+xa+"_"+ma+")"),va.length=0,va.push(Sa)}else va.push(aa);fa[oa].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[oa]={elem:aa,lastPath:"",op:PropertyFactory.getProp(this.element,fa[oa].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,fa[oa],3),invRect:da},this.viewData[oa].prop.k||this.drawPath(fa[oa],this.viewData[oa].prop.v,this.viewData[oa])}for(this.maskElement=createNS(ya),la=va.length,oa=0;oa<la;oa+=1)this.maskElement.appendChild(va[oa]);ma>0&&(this.maskElement.setAttribute("id",xa),this.element.maskedElement.setAttribute(Aa,"url("+getLocationHref()+"#"+xa+")"),sa.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var ea=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:ea,localMat:ea,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var ea,na=this.finalTransform.mat,ra=0,oa=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;ra<oa;){if(this.hierarchy[ra].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}ra+=1}if(this.finalTransform._matMdf)for(ea=this.finalTransform.mProp.v.props,na.cloneFromProps(ea),ra=0;ra<oa;ra+=1)na.multiply(this.hierarchy[ra].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var ea=0,na=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;ea<na;)this.localTransforms[ea]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[ea]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),ea+=1;if(this.finalTransform._localMatMdf){var ra=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(ra),ea=1;ea<na;ea+=1){var oa=this.localTransforms[ea].matrix;ra.multiply(oa)}ra.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var aa=this.finalTransform.localOpacity;for(ea=0;ea<na;ea+=1)aa*=.01*this.localTransforms[ea].opacity;this.finalTransform.localOpacity=aa}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var ea=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(ea.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var na=0,ra=ea.length;for(na=0;na<ra;na+=1)this.localTransforms.push(ea[na])}}},globalToLocal:function(ea){var na=[];na.push(this.finalTransform);for(var ra,oa=!0,aa=this.comp;oa;)aa.finalTransform?(aa.data.hasMask&&na.splice(0,0,aa.finalTransform),aa=aa.comp):oa=!1;var sa,la=na.length;for(ra=0;ra<la;ra+=1)sa=na[ra].mat.applyToPointArray(0,0,0),ea=[ea[0]-sa[0],ea[1]-sa[1],0];return ea},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(ea){return this.viewData[ea].prop},MaskElement.prototype.renderFrame=function(ea){var na,ra=this.element.finalTransform.mat,oa=this.masksProperties.length;for(na=0;na<oa;na+=1)if((this.viewData[na].prop._mdf||ea)&&this.drawPath(this.masksProperties[na],this.viewData[na].prop.v,this.viewData[na]),(this.viewData[na].op._mdf||ea)&&this.viewData[na].elem.setAttribute("fill-opacity",this.viewData[na].op.v),this.masksProperties[na].mode!=="n"&&(this.viewData[na].invRect&&(this.element.finalTransform.mProp._mdf||ea)&&this.viewData[na].invRect.setAttribute("transform",ra.getInverseMatrix().to2dCSS()),this.storedData[na].x&&(this.storedData[na].x._mdf||ea))){var aa=this.storedData[na].expan;this.storedData[na].x.v<0?(this.storedData[na].lastOperator!=="erode"&&(this.storedData[na].lastOperator="erode",this.storedData[na].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[na].filterId+")")),aa.setAttribute("radius",-this.storedData[na].x.v)):(this.storedData[na].lastOperator!=="dilate"&&(this.storedData[na].lastOperator="dilate",this.storedData[na].elem.setAttribute("filter",null)),this.storedData[na].elem.setAttribute("stroke-width",2*this.storedData[na].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var ea="M0,0 ";return ea+=" h"+this.globalData.compSize.w,ea+=" v"+this.globalData.compSize.h,ea+=" h-"+this.globalData.compSize.w,ea+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(ea,na,ra){var oa,aa,sa=" M"+na.v[0][0]+","+na.v[0][1];for(aa=na._length,oa=1;oa<aa;oa+=1)sa+=" C"+na.o[oa-1][0]+","+na.o[oa-1][1]+" "+na.i[oa][0]+","+na.i[oa][1]+" "+na.v[oa][0]+","+na.v[oa][1];if(na.c&&aa>1&&(sa+=" C"+na.o[oa-1][0]+","+na.o[oa-1][1]+" "+na.i[0][0]+","+na.i[0][1]+" "+na.v[0][0]+","+na.v[0][1]),ra.lastPath!==sa){var la="";ra.elem&&(na.c&&(la=ea.inv?this.solidPath+sa:sa),ra.elem.setAttribute("d",la)),ra.lastPath=sa}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var ea={};return ea.createFilter=function(na,ra){var oa=createNS("filter");return oa.setAttribute("id",na),ra!==!0&&(oa.setAttribute("filterUnits","objectBoundingBox"),oa.setAttribute("x","0%"),oa.setAttribute("y","0%"),oa.setAttribute("width","100%"),oa.setAttribute("height","100%")),oa},ea.createAlphaToLuminanceFilter=function(){var na=createNS("feColorMatrix");return na.setAttribute("type","matrix"),na.setAttribute("color-interpolation-filters","sRGB"),na.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),na},ea}(),featureSupport=function(){var ea={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(ea.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ea.svgLumaHidden=!1),ea}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(ea){var na,ra,oa="SourceGraphic",aa=ea.data.ef?ea.data.ef.length:0,sa=createElementID(),la=filtersFactory.createFilter(sa,!0),ca=0;for(this.filters=[],na=0;na<aa;na+=1){ra=null;var ua=ea.data.ef[na].ty;registeredEffects$1[ua]&&(ra=new registeredEffects$1[ua].effect(la,ea.effectsManager.effectElements[na],ea,idPrefix+ca,oa),oa=idPrefix+ca,registeredEffects$1[ua].countsAsEffect&&(ca+=1)),ra&&this.filters.push(ra)}ca&&(ea.globalData.defs.appendChild(la),ea.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+sa+")")),this.filters.length&&ea.addRenderableComponent(this)}function registerEffect$1(ea,na,ra){registeredEffects$1[ea]={effect:na,countsAsEffect:ra}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(ea,na,ra){this.assetData=na.getAssetData(ea.refId),this.assetData&&this.assetData.sid&&(this.assetData=na.slotManager.getProp(this.assetData)),this.initElement(ea,na,ra),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(ea,na){this.elem=ea,this.pos=na}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(ea){var na,ra=this.filters.length;for(na=0;na<ra;na+=1)this.filters[na].renderFrame(ea)},SVGEffects.prototype.getEffects=function(ea){var na,ra=this.filters.length,oa=[];for(na=0;na<ra;na+=1)this.filters[na].type===ea&&oa.push(this.filters[na]);return oa},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var ea=null;if(this.data.td){this.matteMasks={};var na=createNS("g");na.setAttribute("id",this.layerId),na.appendChild(this.layerElement),ea=na,this.globalData.defs.appendChild(na)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),ea=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var ra=createNS("clipPath"),oa=createNS("path");oa.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var aa=createElementID();if(ra.setAttribute("id",aa),ra.appendChild(oa),this.globalData.defs.appendChild(ra),this.checkMasks()){var sa=createNS("g");sa.setAttribute("clip-path","url("+getLocationHref()+"#"+aa+")"),sa.appendChild(this.layerElement),this.transformedElement=sa,ea?ea.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+aa+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(ea){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[ea]){var na,ra,oa,aa,sa=this.layerId+"_"+ea;if(ea===1||ea===3){var la=createNS("mask");la.setAttribute("id",sa),la.setAttribute("mask-type",ea===3?"luminance":"alpha"),(oa=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),la.appendChild(oa),this.globalData.defs.appendChild(la),featureSupport.maskType||ea!==1||(la.setAttribute("mask-type","luminance"),na=createElementID(),ra=filtersFactory.createFilter(na),this.globalData.defs.appendChild(ra),ra.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(aa=createNS("g")).appendChild(oa),la.appendChild(aa),aa.setAttribute("filter","url("+getLocationHref()+"#"+na+")"))}else if(ea===2){var ca=createNS("mask");ca.setAttribute("id",sa),ca.setAttribute("mask-type","alpha");var ua=createNS("g");ca.appendChild(ua),na=createElementID(),ra=filtersFactory.createFilter(na);var da=createNS("feComponentTransfer");da.setAttribute("in","SourceGraphic"),ra.appendChild(da);var pa=createNS("feFuncA");pa.setAttribute("type","table"),pa.setAttribute("tableValues","1.0 0.0"),da.appendChild(pa),this.globalData.defs.appendChild(ra);var ha=createNS("rect");ha.setAttribute("width",this.comp.data.w),ha.setAttribute("height",this.comp.data.h),ha.setAttribute("x","0"),ha.setAttribute("y","0"),ha.setAttribute("fill","#ffffff"),ha.setAttribute("opacity","0"),ua.setAttribute("filter","url("+getLocationHref()+"#"+na+")"),ua.appendChild(ha),(oa=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ua.appendChild(oa),featureSupport.maskType||(ca.setAttribute("mask-type","luminance"),ra.appendChild(filtersFactory.createAlphaToLuminanceFilter()),aa=createNS("g"),ua.appendChild(ha),aa.appendChild(this.layerElement),ua.appendChild(aa)),this.globalData.defs.appendChild(ca)}this.matteMasks[ea]=sa}return this.matteMasks[ea]},setMatte:function(ea){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+ea+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(ea){this.hierarchy=ea},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(ea,na,ra){this.initFrame(),this.initBaseData(ea,na,ra),this.initTransform(ea,na,ra),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(ea){this._mdf=!1,this.prepareRenderableFrame(ea),this.prepareProperties(ea,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var ea=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",ea),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(ea){var na,ra=this.shapeModifiers.length;for(na=0;na<ra;na+=1)this.shapeModifiers[na].addShape(ea)},isShapeInAnimatedModifiers:function(ea){for(var na=this.shapeModifiers.length;0<na;)if(this.shapeModifiers[0].isAnimatedWithShape(ea))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var ea,na=this.shapes.length;for(ea=0;ea<na;ea+=1)this.shapes[ea].sh.reset();for(ea=(na=this.shapeModifiers.length)-1;ea>=0&&!this.shapeModifiers[ea].processShapes(this._isFirstFrame);ea-=1);}},searchProcessedElement:function(ea){for(var na=this.processedElements,ra=0,oa=na.length;ra<oa;){if(na[ra].elem===ea)return na[ra].pos;ra+=1}return 0},addProcessedElement:function(ea,na){for(var ra=this.processedElements,oa=ra.length;oa;)if(ra[oa-=1].elem===ea)return void(ra[oa].pos=na);ra.push(new ProcessedElement(ea,na))},prepareFrame:function(ea){this.prepareRenderableFrame(ea),this.prepareProperties(ea,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(ea,na,ra){this.caches=[],this.styles=[],this.transformers=ea,this.lStr="",this.sh=ra,this.lvl=na,this._isAnimated=!!ra.k;for(var oa=0,aa=ea.length;oa<aa;){if(ea[oa].mProps.dynamicProperties.length){this._isAnimated=!0;break}oa+=1}}function SVGStyleData(ea,na){this.data=ea,this.type=ea.ty,this.d="",this.lvl=na,this._mdf=!1,this.closed=ea.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(ea,na,ra,oa){var aa;this.elem=ea,this.frameId=-1,this.dataProps=createSizedArray(na.length),this.renderer=ra,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",na.length?na.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(oa);var sa,la=na.length||0;for(aa=0;aa<la;aa+=1)sa=PropertyFactory.getProp(ea,na[aa].v,0,0,this),this.k=sa.k||this.k,this.dataProps[aa]={n:na[aa].n,p:sa};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(ea,na,ra){this.initDynamicPropertyContainer(ea),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ea,na.o,0,.01,this),this.w=PropertyFactory.getProp(ea,na.w,0,null,this),this.d=new DashProperty(ea,na.d||{},"svg",this),this.c=PropertyFactory.getProp(ea,na.c,1,255,this),this.style=ra,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(ea,na,ra){this.initDynamicPropertyContainer(ea),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ea,na.o,0,.01,this),this.c=PropertyFactory.getProp(ea,na.c,1,255,this),this.style=ra}function SVGNoStyleData(ea,na,ra){this.initDynamicPropertyContainer(ea),this.getValue=this.iterateDynamicProperties,this.style=ra}function GradientProperty(ea,na,ra){this.data=na,this.c=createTypedArray("uint8c",4*na.p);var oa=na.k.k[0].s?na.k.k[0].s.length-4*na.p:na.k.k.length-4*na.p;this.o=createTypedArray("float32",oa),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=oa,this.initDynamicPropertyContainer(ra),this.prop=PropertyFactory.getProp(ea,na.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(ea,na,ra){this.initDynamicPropertyContainer(ea),this.getValue=this.iterateDynamicProperties,this.initGradientData(ea,na,ra)}function SVGGradientStrokeStyleData(ea,na,ra){this.initDynamicPropertyContainer(ea),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(ea,na.w,0,null,this),this.d=new DashProperty(ea,na.d||{},"svg",this),this.initGradientData(ea,na,ra),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(ea,na,ra){this.transform={mProps:ea,op:na,container:ra},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(ea){if((this.elem.globalData.frameId!==this.frameId||ea)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||ea,this._mdf)){var na=0,ra=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),na=0;na<ra;na+=1)this.dataProps[na].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[na].p.v:this.dashArray[na]=this.dataProps[na].p.v:this.dashoffset[0]=this.dataProps[na].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(ea,na){for(var ra=0,oa=this.o.length/2;ra<oa;){if(Math.abs(ea[4*ra]-ea[4*na+2*ra])>.01)return!1;ra+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var ea=0,na=this.data.k.k.length;ea<na;){if(!this.comparePoints(this.data.k.k[ea].s,this.data.p))return!1;ea+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(ea){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||ea){var na,ra,oa,aa=4*this.data.p;for(na=0;na<aa;na+=1)ra=na%4==0?100:255,oa=Math.round(this.prop.v[na]*ra),this.c[na]!==oa&&(this.c[na]=oa,this._cmdf=!ea);if(this.o.length)for(aa=this.prop.v.length,na=4*this.data.p;na<aa;na+=1)ra=na%2==0?100:1,oa=na%2==0?Math.round(100*this.prop.v[na]):this.prop.v[na],this.o[na-4*this.data.p]!==oa&&(this.o[na-4*this.data.p]=oa,this._omdf=!ea);this._mdf=!ea}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(ea,na,ra){this.o=PropertyFactory.getProp(ea,na.o,0,.01,this),this.s=PropertyFactory.getProp(ea,na.s,1,null,this),this.e=PropertyFactory.getProp(ea,na.e,1,null,this),this.h=PropertyFactory.getProp(ea,na.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(ea,na.a||{k:0},0,degToRads,this),this.g=new GradientProperty(ea,na.g,this),this.style=ra,this.stops=[],this.setGradientData(ra.pElem,na),this.setGradientOpacity(na,ra),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(ea,na){var ra=createElementID(),oa=createNS(na.t===1?"linearGradient":"radialGradient");oa.setAttribute("id",ra),oa.setAttribute("spreadMethod","pad"),oa.setAttribute("gradientUnits","userSpaceOnUse");var aa,sa,la,ca=[];for(la=4*na.g.p,sa=0;sa<la;sa+=4)aa=createNS("stop"),oa.appendChild(aa),ca.push(aa);ea.setAttribute(na.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ra+")"),this.gf=oa,this.cst=ca},SVGGradientFillStyleData.prototype.setGradientOpacity=function(ea,na){if(this.g._hasOpacity&&!this.g._collapsable){var ra,oa,aa,sa=createNS("mask"),la=createNS("path");sa.appendChild(la);var ca=createElementID(),ua=createElementID();sa.setAttribute("id",ua);var da=createNS(ea.t===1?"linearGradient":"radialGradient");da.setAttribute("id",ca),da.setAttribute("spreadMethod","pad"),da.setAttribute("gradientUnits","userSpaceOnUse"),aa=ea.g.k.k[0].s?ea.g.k.k[0].s.length:ea.g.k.k.length;var pa=this.stops;for(oa=4*ea.g.p;oa<aa;oa+=2)(ra=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),da.appendChild(ra),pa.push(ra);la.setAttribute(ea.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ca+")"),ea.ty==="gs"&&(la.setAttribute("stroke-linecap",lineCapEnum[ea.lc||2]),la.setAttribute("stroke-linejoin",lineJoinEnum[ea.lj||2]),ea.lj===1&&la.setAttribute("stroke-miterlimit",ea.ml)),this.of=da,this.ms=sa,this.ost=pa,this.maskId=ua,na.msElem=la}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(ea,na,ra,oa){if(na===0)return"";var aa,sa=ea.o,la=ea.i,ca=ea.v,ua=" M"+oa.applyToPointStringified(ca[0][0],ca[0][1]);for(aa=1;aa<na;aa+=1)ua+=" C"+oa.applyToPointStringified(sa[aa-1][0],sa[aa-1][1])+" "+oa.applyToPointStringified(la[aa][0],la[aa][1])+" "+oa.applyToPointStringified(ca[aa][0],ca[aa][1]);return ra&&na&&(ua+=" C"+oa.applyToPointStringified(sa[aa-1][0],sa[aa-1][1])+" "+oa.applyToPointStringified(la[0][0],la[0][1])+" "+oa.applyToPointStringified(ca[0][0],ca[0][1]),ua+="z"),ua},SVGElementsRenderer=function(){var ea=new Matrix,na=new Matrix;function ra(da,pa,ha){(ha||pa.transform.op._mdf)&&pa.transform.container.setAttribute("opacity",pa.transform.op.v),(ha||pa.transform.mProps._mdf)&&pa.transform.container.setAttribute("transform",pa.transform.mProps.v.to2dCSS())}function oa(){}function aa(da,pa,ha){var ga,fa,ma,va,xa,ya,Aa,Ca,Sa,wa,ba=pa.styles.length,Ea=pa.lvl;for(ya=0;ya<ba;ya+=1){if(va=pa.sh._mdf||ha,pa.styles[ya].lvl<Ea){for(Ca=na.reset(),Sa=Ea-pa.styles[ya].lvl,wa=pa.transformers.length-1;!va&&Sa>0;)va=pa.transformers[wa].mProps._mdf||va,Sa-=1,wa-=1;if(va)for(Sa=Ea-pa.styles[ya].lvl,wa=pa.transformers.length-1;Sa>0;)Ca.multiply(pa.transformers[wa].mProps.v),Sa-=1,wa-=1}else Ca=ea;if(fa=(Aa=pa.sh.paths)._length,va){for(ma="",ga=0;ga<fa;ga+=1)(xa=Aa.shapes[ga])&&xa._length&&(ma+=buildShapeString(xa,xa._length,xa.c,Ca));pa.caches[ya]=ma}else ma=pa.caches[ya];pa.styles[ya].d+=da.hd===!0?"":ma,pa.styles[ya]._mdf=va||pa.styles[ya]._mdf}}function sa(da,pa,ha){var ga=pa.style;(pa.c._mdf||ha)&&ga.pElem.setAttribute("fill","rgb("+bmFloor(pa.c.v[0])+","+bmFloor(pa.c.v[1])+","+bmFloor(pa.c.v[2])+")"),(pa.o._mdf||ha)&&ga.pElem.setAttribute("fill-opacity",pa.o.v)}function la(da,pa,ha){ca(da,pa,ha),ua(da,pa,ha)}function ca(da,pa,ha){var ga,fa,ma,va,xa,ya=pa.gf,Aa=pa.g._hasOpacity,Ca=pa.s.v,Sa=pa.e.v;if(pa.o._mdf||ha){var wa=da.ty==="gf"?"fill-opacity":"stroke-opacity";pa.style.pElem.setAttribute(wa,pa.o.v)}if(pa.s._mdf||ha){var ba=da.t===1?"x1":"cx",Ea=ba==="x1"?"y1":"cy";ya.setAttribute(ba,Ca[0]),ya.setAttribute(Ea,Ca[1]),Aa&&!pa.g._collapsable&&(pa.of.setAttribute(ba,Ca[0]),pa.of.setAttribute(Ea,Ca[1]))}if(pa.g._cmdf||ha){ga=pa.cst;var $a=pa.g.c;for(ma=ga.length,fa=0;fa<ma;fa+=1)(va=ga[fa]).setAttribute("offset",$a[4*fa]+"%"),va.setAttribute("stop-color","rgb("+$a[4*fa+1]+","+$a[4*fa+2]+","+$a[4*fa+3]+")")}if(Aa&&(pa.g._omdf||ha)){var Ma=pa.g.o;for(ma=(ga=pa.g._collapsable?pa.cst:pa.ost).length,fa=0;fa<ma;fa+=1)va=ga[fa],pa.g._collapsable||va.setAttribute("offset",Ma[2*fa]+"%"),va.setAttribute("stop-opacity",Ma[2*fa+1])}if(da.t===1)(pa.e._mdf||ha)&&(ya.setAttribute("x2",Sa[0]),ya.setAttribute("y2",Sa[1]),Aa&&!pa.g._collapsable&&(pa.of.setAttribute("x2",Sa[0]),pa.of.setAttribute("y2",Sa[1])));else if((pa.s._mdf||pa.e._mdf||ha)&&(xa=Math.sqrt(Math.pow(Ca[0]-Sa[0],2)+Math.pow(Ca[1]-Sa[1],2)),ya.setAttribute("r",xa),Aa&&!pa.g._collapsable&&pa.of.setAttribute("r",xa)),pa.e._mdf||pa.h._mdf||pa.a._mdf||ha){xa||(xa=Math.sqrt(Math.pow(Ca[0]-Sa[0],2)+Math.pow(Ca[1]-Sa[1],2)));var Ia=Math.atan2(Sa[1]-Ca[1],Sa[0]-Ca[0]),Oa=pa.h.v;Oa>=1?Oa=.99:Oa<=-1&&(Oa=-.99);var Da=xa*Oa,Ta=Math.cos(Ia+pa.a.v)*Da+Ca[0],_a=Math.sin(Ia+pa.a.v)*Da+Ca[1];ya.setAttribute("fx",Ta),ya.setAttribute("fy",_a),Aa&&!pa.g._collapsable&&(pa.of.setAttribute("fx",Ta),pa.of.setAttribute("fy",_a))}}function ua(da,pa,ha){var ga=pa.style,fa=pa.d;fa&&(fa._mdf||ha)&&fa.dashStr&&(ga.pElem.setAttribute("stroke-dasharray",fa.dashStr),ga.pElem.setAttribute("stroke-dashoffset",fa.dashoffset[0])),pa.c&&(pa.c._mdf||ha)&&ga.pElem.setAttribute("stroke","rgb("+bmFloor(pa.c.v[0])+","+bmFloor(pa.c.v[1])+","+bmFloor(pa.c.v[2])+")"),(pa.o._mdf||ha)&&ga.pElem.setAttribute("stroke-opacity",pa.o.v),(pa.w._mdf||ha)&&(ga.pElem.setAttribute("stroke-width",pa.w.v),ga.msElem&&ga.msElem.setAttribute("stroke-width",pa.w.v))}return{createRenderFunction:function(da){switch(da.ty){case"fl":return sa;case"gf":return ca;case"gs":return la;case"st":return ua;case"sh":case"el":case"rc":case"sr":return aa;case"tr":return ra;case"no":return oa;default:return null}}}}();function SVGShapeElement(ea,na,ra){this.shapes=[],this.shapesData=ea.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(ea,na,ra),this.prevViewData=[]}function LetterProps(ea,na,ra,oa,aa,sa){this.o=ea,this.sw=na,this.sc=ra,this.fc=oa,this.m=aa,this.p=sa,this._mdf={o:!0,sw:!!na,sc:!!ra,fc:!!oa,m:!0,p:!0}}function TextProperty(ea,na){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,na.d&&na.d.sid&&(na.d=ea.globalData.slotManager.getProp(na.d)),this.data=na,this.elem=ea,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var ea,na,ra,oa,aa=this.shapes.length,sa=this.stylesList.length,la=[],ca=!1;for(ra=0;ra<sa;ra+=1){for(oa=this.stylesList[ra],ca=!1,la.length=0,ea=0;ea<aa;ea+=1)(na=this.shapes[ea]).styles.indexOf(oa)!==-1&&(la.push(na),ca=na._isAnimated||ca);la.length>1&&ca&&this.setShapesAsAnimated(la)}},SVGShapeElement.prototype.setShapesAsAnimated=function(ea){var na,ra=ea.length;for(na=0;na<ra;na+=1)ea[na].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(ea,na){var ra,oa=new SVGStyleData(ea,na),aa=oa.pElem;return ea.ty==="st"?ra=new SVGStrokeStyleData(this,ea,oa):ea.ty==="fl"?ra=new SVGFillStyleData(this,ea,oa):ea.ty==="gf"||ea.ty==="gs"?(ra=new(ea.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,ea,oa),this.globalData.defs.appendChild(ra.gf),ra.maskId&&(this.globalData.defs.appendChild(ra.ms),this.globalData.defs.appendChild(ra.of),aa.setAttribute("mask","url("+getLocationHref()+"#"+ra.maskId+")"))):ea.ty==="no"&&(ra=new SVGNoStyleData(this,ea,oa)),ea.ty!=="st"&&ea.ty!=="gs"||(aa.setAttribute("stroke-linecap",lineCapEnum[ea.lc||2]),aa.setAttribute("stroke-linejoin",lineJoinEnum[ea.lj||2]),aa.setAttribute("fill-opacity","0"),ea.lj===1&&aa.setAttribute("stroke-miterlimit",ea.ml)),ea.r===2&&aa.setAttribute("fill-rule","evenodd"),ea.ln&&aa.setAttribute("id",ea.ln),ea.cl&&aa.setAttribute("class",ea.cl),ea.bm&&(aa.style["mix-blend-mode"]=getBlendMode(ea.bm)),this.stylesList.push(oa),this.addToAnimatedContents(ea,ra),ra},SVGShapeElement.prototype.createGroupElement=function(ea){var na=new ShapeGroupData;return ea.ln&&na.gr.setAttribute("id",ea.ln),ea.cl&&na.gr.setAttribute("class",ea.cl),ea.bm&&(na.gr.style["mix-blend-mode"]=getBlendMode(ea.bm)),na},SVGShapeElement.prototype.createTransformElement=function(ea,na){var ra=TransformPropertyFactory.getTransformProperty(this,ea,this),oa=new SVGTransformData(ra,ra.o,na);return this.addToAnimatedContents(ea,oa),oa},SVGShapeElement.prototype.createShapeElement=function(ea,na,ra){var oa=4;ea.ty==="rc"?oa=5:ea.ty==="el"?oa=6:ea.ty==="sr"&&(oa=7);var aa=new SVGShapeData(na,ra,ShapePropertyFactory.getShapeProp(this,ea,oa,this));return this.shapes.push(aa),this.addShapeToModifiers(aa),this.addToAnimatedContents(ea,aa),aa},SVGShapeElement.prototype.addToAnimatedContents=function(ea,na){for(var ra=0,oa=this.animatedContents.length;ra<oa;){if(this.animatedContents[ra].element===na)return;ra+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(ea),element:na,data:ea})},SVGShapeElement.prototype.setElementStyles=function(ea){var na,ra=ea.styles,oa=this.stylesList.length;for(na=0;na<oa;na+=1)this.stylesList[na].closed||ra.push(this.stylesList[na])},SVGShapeElement.prototype.reloadShapes=function(){var ea;this._isFirstFrame=!0;var na=this.itemsData.length;for(ea=0;ea<na;ea+=1)this.prevViewData[ea]=this.itemsData[ea];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),na=this.dynamicProperties.length,ea=0;ea<na;ea+=1)this.dynamicProperties[ea].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(ea,na,ra,oa,aa,sa,la){var ca,ua,da,pa,ha,ga,fa=[].concat(sa),ma=ea.length-1,va=[],xa=[];for(ca=ma;ca>=0;ca-=1){if((ga=this.searchProcessedElement(ea[ca]))?na[ca]=ra[ga-1]:ea[ca]._render=la,ea[ca].ty==="fl"||ea[ca].ty==="st"||ea[ca].ty==="gf"||ea[ca].ty==="gs"||ea[ca].ty==="no")ga?na[ca].style.closed=!1:na[ca]=this.createStyleElement(ea[ca],aa),ea[ca]._render&&na[ca].style.pElem.parentNode!==oa&&oa.appendChild(na[ca].style.pElem),va.push(na[ca].style);else if(ea[ca].ty==="gr"){if(ga)for(da=na[ca].it.length,ua=0;ua<da;ua+=1)na[ca].prevViewData[ua]=na[ca].it[ua];else na[ca]=this.createGroupElement(ea[ca]);this.searchShapes(ea[ca].it,na[ca].it,na[ca].prevViewData,na[ca].gr,aa+1,fa,la),ea[ca]._render&&na[ca].gr.parentNode!==oa&&oa.appendChild(na[ca].gr)}else ea[ca].ty==="tr"?(ga||(na[ca]=this.createTransformElement(ea[ca],oa)),pa=na[ca].transform,fa.push(pa)):ea[ca].ty==="sh"||ea[ca].ty==="rc"||ea[ca].ty==="el"||ea[ca].ty==="sr"?(ga||(na[ca]=this.createShapeElement(ea[ca],fa,aa)),this.setElementStyles(na[ca])):ea[ca].ty==="tm"||ea[ca].ty==="rd"||ea[ca].ty==="ms"||ea[ca].ty==="pb"||ea[ca].ty==="zz"||ea[ca].ty==="op"?(ga?(ha=na[ca]).closed=!1:((ha=ShapeModifiers.getModifier(ea[ca].ty)).init(this,ea[ca]),na[ca]=ha,this.shapeModifiers.push(ha)),xa.push(ha)):ea[ca].ty==="rp"&&(ga?(ha=na[ca]).closed=!0:(ha=ShapeModifiers.getModifier(ea[ca].ty),na[ca]=ha,ha.init(this,ea,ca,na),this.shapeModifiers.push(ha),la=!1),xa.push(ha));this.addProcessedElement(ea[ca],ca+1)}for(ma=va.length,ca=0;ca<ma;ca+=1)va[ca].closed=!0;for(ma=xa.length,ca=0;ca<ma;ca+=1)xa[ca].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var ea;this.renderModifiers();var na=this.stylesList.length;for(ea=0;ea<na;ea+=1)this.stylesList[ea].reset();for(this.renderShape(),ea=0;ea<na;ea+=1)(this.stylesList[ea]._mdf||this._isFirstFrame)&&(this.stylesList[ea].msElem&&(this.stylesList[ea].msElem.setAttribute("d",this.stylesList[ea].d),this.stylesList[ea].d="M0 0"+this.stylesList[ea].d),this.stylesList[ea].pElem.setAttribute("d",this.stylesList[ea].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var ea,na,ra=this.animatedContents.length;for(ea=0;ea<ra;ea+=1)na=this.animatedContents[ea],(this._isFirstFrame||na.element._isAnimated)&&na.data!==!0&&na.fn(na.data,na.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(ea,na,ra,oa,aa,sa){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var la=!1;return this.o!==ea&&(this.o=ea,this._mdf.o=!0,la=!0),this.sw!==na&&(this.sw=na,this._mdf.sw=!0,la=!0),this.sc!==ra&&(this.sc=ra,this._mdf.sc=!0,la=!0),this.fc!==oa&&(this.fc=oa,this._mdf.fc=!0,la=!0),this.m!==aa&&(this.m=aa,this._mdf.m=!0,la=!0),!sa.length||this.p[0]===sa[0]&&this.p[1]===sa[1]&&this.p[4]===sa[4]&&this.p[5]===sa[5]&&this.p[12]===sa[12]&&this.p[13]===sa[13]||(this.p=sa,this._mdf.p=!0,la=!0),la},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(ea,na){for(var ra in na)Object.prototype.hasOwnProperty.call(na,ra)&&(ea[ra]=na[ra]);return ea},TextProperty.prototype.setCurrentData=function(ea){ea.__complete||this.completeTextData(ea),this.currentData=ea,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(ea){this.effectsSequence.push(ea),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(ea){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||ea){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var na=this.currentData,ra=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var oa;this.lock=!0,this._mdf=!1;var aa=this.effectsSequence.length,sa=ea||this.data.d.k[this.keysIndex].s;for(oa=0;oa<aa;oa+=1)sa=ra!==this.keysIndex?this.effectsSequence[oa](sa,sa.t):this.effectsSequence[oa](this.currentData,sa.t);na!==sa&&this.setCurrentData(sa),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var ea=this.data.d.k,na=this.elem.comp.renderedFrame,ra=0,oa=ea.length;ra<=oa-1&&!(ra===oa-1||ea[ra+1].t>na);)ra+=1;return this.keysIndex!==ra&&(this.keysIndex=ra),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(ea){for(var na,ra,oa=[],aa=0,sa=ea.length,la=!1,ca=!1,ua="";aa<sa;)la=ca,ca=!1,na=ea.charCodeAt(aa),ua=ea.charAt(aa),FontManager.isCombinedCharacter(na)?la=!0:na>=55296&&na<=56319?FontManager.isRegionalFlag(ea,aa)?ua=ea.substr(aa,14):(ra=ea.charCodeAt(aa+1))>=56320&&ra<=57343&&(FontManager.isModifier(na,ra)?(ua=ea.substr(aa,2),la=!0):ua=FontManager.isFlagEmoji(ea.substr(aa,4))?ea.substr(aa,4):ea.substr(aa,2)):na>56319?(ra=ea.charCodeAt(aa+1),FontManager.isVariationSelector(na)&&(la=!0)):FontManager.isZeroWidthJoiner(na)&&(la=!0,ca=!0),la?(oa[oa.length-1]+=ua,la=!1):oa.push(ua),aa+=ua.length;return oa},TextProperty.prototype.completeTextData=function(ea){ea.__complete=!0;var na,ra,oa,aa,sa,la,ca,ua=this.elem.globalData.fontManager,da=this.data,pa=[],ha=0,ga=da.m.g,fa=0,ma=0,va=0,xa=[],ya=0,Aa=0,Ca=ua.getFontByName(ea.f),Sa=0,wa=getFontProperties(Ca);ea.fWeight=wa.weight,ea.fStyle=wa.style,ea.finalSize=ea.s,ea.finalText=this.buildFinalText(ea.t),ra=ea.finalText.length,ea.finalLineHeight=ea.lh;var ba,Ea=ea.tr/1e3*ea.finalSize;if(ea.sz)for(var $a,Ma,Ia=!0,Oa=ea.sz[0],Da=ea.sz[1];Ia;){$a=0,ya=0,ra=(Ma=this.buildFinalText(ea.t)).length,Ea=ea.tr/1e3*ea.finalSize;var Ta=-1;for(na=0;na<ra;na+=1)ba=Ma[na].charCodeAt(0),oa=!1,Ma[na]===" "?Ta=na:ba!==13&&ba!==3||(ya=0,oa=!0,$a+=ea.finalLineHeight||1.2*ea.finalSize),ua.chars?(ca=ua.getCharData(Ma[na],Ca.fStyle,Ca.fFamily),Sa=oa?0:ca.w*ea.finalSize/100):Sa=ua.measureText(Ma[na],ea.f,ea.finalSize),ya+Sa>Oa&&Ma[na]!==" "?(Ta===-1?ra+=1:na=Ta,$a+=ea.finalLineHeight||1.2*ea.finalSize,Ma.splice(na,Ta===na?1:0,"\r"),Ta=-1,ya=0):(ya+=Sa,ya+=Ea);$a+=Ca.ascent*ea.finalSize/100,this.canResize&&ea.finalSize>this.minimumFontSize&&Da<$a?(ea.finalSize-=1,ea.finalLineHeight=ea.finalSize*ea.lh/ea.s):(ea.finalText=Ma,ra=ea.finalText.length,Ia=!1)}ya=-Ea,Sa=0;var _a,La=0;for(na=0;na<ra;na+=1)if(oa=!1,(ba=(_a=ea.finalText[na]).charCodeAt(0))===13||ba===3?(La=0,xa.push(ya),Aa=ya>Aa?ya:Aa,ya=-2*Ea,aa="",oa=!0,va+=1):aa=_a,ua.chars?(ca=ua.getCharData(_a,Ca.fStyle,ua.getFontByName(ea.f).fFamily),Sa=oa?0:ca.w*ea.finalSize/100):Sa=ua.measureText(aa,ea.f,ea.finalSize),_a===" "?La+=Sa+Ea:(ya+=Sa+Ea+La,La=0),pa.push({l:Sa,an:Sa,add:fa,n:oa,anIndexes:[],val:aa,line:va,animatorJustifyOffset:0}),ga==2){if(fa+=Sa,aa===""||aa===" "||na===ra-1){for(aa!==""&&aa!==" "||(fa-=Sa);ma<=na;)pa[ma].an=fa,pa[ma].ind=ha,pa[ma].extra=Sa,ma+=1;ha+=1,fa=0}}else if(ga==3){if(fa+=Sa,aa===""||na===ra-1){for(aa===""&&(fa-=Sa);ma<=na;)pa[ma].an=fa,pa[ma].ind=ha,pa[ma].extra=Sa,ma+=1;fa=0,ha+=1}}else pa[ha].ind=ha,pa[ha].extra=0,ha+=1;if(ea.l=pa,Aa=ya>Aa?ya:Aa,xa.push(ya),ea.sz)ea.boxWidth=ea.sz[0],ea.justifyOffset=0;else switch(ea.boxWidth=Aa,ea.j){case 1:ea.justifyOffset=-ea.boxWidth;break;case 2:ea.justifyOffset=-ea.boxWidth/2;break;default:ea.justifyOffset=0}ea.lineWidths=xa;var Na,za,Fa,Ha,Va=da.a;la=Va.length;var Ua=[];for(sa=0;sa<la;sa+=1){for((Na=Va[sa]).a.sc&&(ea.strokeColorAnim=!0),Na.a.sw&&(ea.strokeWidthAnim=!0),(Na.a.fc||Na.a.fh||Na.a.fs||Na.a.fb)&&(ea.fillColorAnim=!0),Ha=0,Fa=Na.s.b,na=0;na<ra;na+=1)(za=pa[na]).anIndexes[sa]=Ha,(Fa==1&&za.val!==""||Fa==2&&za.val!==""&&za.val!==" "||Fa==3&&(za.n||za.val==" "||na==ra-1)||Fa==4&&(za.n||na==ra-1))&&(Na.s.rn===1&&Ua.push(Ha),Ha+=1);da.a[sa].s.totalChars=Ha;var Qa,Wa=-1;if(Na.s.rn===1)for(na=0;na<ra;na+=1)Wa!=(za=pa[na]).anIndexes[sa]&&(Wa=za.anIndexes[sa],Qa=Ua.splice(Math.floor(Math.random()*Ua.length),1)[0]),za.anIndexes[sa]=Qa}ea.yOffset=ea.finalLineHeight||1.2*ea.finalSize,ea.ls=ea.ls||0,ea.ascent=Ca.ascent*ea.finalSize/100},TextProperty.prototype.updateDocumentData=function(ea,na){na=na===void 0?this.keysIndex:na;var ra=this.copyData({},this.data.d.k[na].s);ra=this.copyData(ra,ea),this.data.d.k[na].s=ra,this.recalculate(na),this.setCurrentData(ra),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(ea){var na=this.data.d.k[ea].s;na.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(na)},TextProperty.prototype.canResizeFont=function(ea){this.canResize=ea,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(ea){this.minimumFontSize=Math.floor(ea)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var ea=Math.max,na=Math.min,ra=Math.floor;function oa(aa,sa){this._currentTextLength=-1,this.k=!1,this.data=sa,this.elem=aa,this.comp=aa.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(aa),this.s=PropertyFactory.getProp(aa,sa.s||{k:0},0,0,this),this.e="e"in sa?PropertyFactory.getProp(aa,sa.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(aa,sa.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(aa,sa.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(aa,sa.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(aa,sa.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(aa,sa.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return oa.prototype={getMult:function(aa){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var sa=0,la=0,ca=1,ua=1;this.ne.v>0?sa=this.ne.v/100:la=-this.ne.v/100,this.xe.v>0?ca=1-this.xe.v/100:ua=1+this.xe.v/100;var da=BezierFactory.getBezierEasing(sa,la,ca,ua).get,pa=0,ha=this.finalS,ga=this.finalE,fa=this.data.sh;if(fa===2)pa=da(pa=ga===ha?aa>=ga?1:0:ea(0,na(.5/(ga-ha)+(aa-ha)/(ga-ha),1)));else if(fa===3)pa=da(pa=ga===ha?aa>=ga?0:1:1-ea(0,na(.5/(ga-ha)+(aa-ha)/(ga-ha),1)));else if(fa===4)ga===ha?pa=0:(pa=ea(0,na(.5/(ga-ha)+(aa-ha)/(ga-ha),1)))<.5?pa*=2:pa=1-2*(pa-.5),pa=da(pa);else if(fa===5){if(ga===ha)pa=0;else{var ma=ga-ha,va=-ma/2+(aa=na(ea(0,aa+.5-ha),ga-ha)),xa=ma/2;pa=Math.sqrt(1-va*va/(xa*xa))}pa=da(pa)}else fa===6?(ga===ha?pa=0:(aa=na(ea(0,aa+.5-ha),ga-ha),pa=(1+Math.cos(Math.PI+2*Math.PI*aa/(ga-ha)))/2),pa=da(pa)):(aa>=ra(ha)&&(pa=ea(0,na(aa-ha<0?na(ga,1)-(ha-aa):ga-aa,1))),pa=da(pa));if(this.sm.v!==100){var ya=.01*this.sm.v;ya===0&&(ya=1e-8);var Aa=.5-.5*ya;pa<Aa?pa=0:(pa=(pa-Aa)/ya)>1&&(pa=1)}return pa*this.a.v},getValue:function(aa){this.iterateDynamicProperties(),this._mdf=aa||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,aa&&this.data.r===2&&(this.e.v=this._currentTextLength);var sa=this.data.r===2?1:100/this.data.totalChars,la=this.o.v/sa,ca=this.s.v/sa+la,ua=this.e.v/sa+la;if(ca>ua){var da=ca;ca=ua,ua=da}this.finalS=ca,this.finalE=ua}},extendPrototype([DynamicPropertyContainer],oa),{getTextSelectorProp:function(aa,sa,la){return new oa(aa,sa)}}}();function TextAnimatorDataProperty(ea,na,ra){var oa={propType:!1},aa=PropertyFactory.getProp,sa=na.a;this.a={r:sa.r?aa(ea,sa.r,0,degToRads,ra):oa,rx:sa.rx?aa(ea,sa.rx,0,degToRads,ra):oa,ry:sa.ry?aa(ea,sa.ry,0,degToRads,ra):oa,sk:sa.sk?aa(ea,sa.sk,0,degToRads,ra):oa,sa:sa.sa?aa(ea,sa.sa,0,degToRads,ra):oa,s:sa.s?aa(ea,sa.s,1,.01,ra):oa,a:sa.a?aa(ea,sa.a,1,0,ra):oa,o:sa.o?aa(ea,sa.o,0,.01,ra):oa,p:sa.p?aa(ea,sa.p,1,0,ra):oa,sw:sa.sw?aa(ea,sa.sw,0,0,ra):oa,sc:sa.sc?aa(ea,sa.sc,1,0,ra):oa,fc:sa.fc?aa(ea,sa.fc,1,0,ra):oa,fh:sa.fh?aa(ea,sa.fh,0,0,ra):oa,fs:sa.fs?aa(ea,sa.fs,0,.01,ra):oa,fb:sa.fb?aa(ea,sa.fb,0,.01,ra):oa,t:sa.t?aa(ea,sa.t,0,0,ra):oa},this.s=TextSelectorProp.getTextSelectorProp(ea,na.s,ra),this.s.t=na.s.t}function TextAnimatorProperty(ea,na,ra){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=ea,this._renderType=na,this._elem=ra,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(ra)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var ea,na,ra=this._textData.a.length,oa=PropertyFactory.getProp;for(ea=0;ea<ra;ea+=1)na=this._textData.a[ea],this._animatorsData[ea]=new TextAnimatorDataProperty(this._elem,na,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:oa(this._elem,this._textData.p.a,0,0,this),f:oa(this._elem,this._textData.p.f,0,0,this),l:oa(this._elem,this._textData.p.l,0,0,this),r:oa(this._elem,this._textData.p.r,0,0,this),p:oa(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=oa(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(ea,na){if(this.lettersChangedFlag=na,this._mdf||this._isFirstFrame||na||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var ra,oa,aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va,xa,ya,Aa,Ca,Sa,wa=this._moreOptions.alignment.v,ba=this._animatorsData,Ea=this._textData,$a=this.mHelper,Ma=this._renderType,Ia=this.renderedLetters.length,Oa=ea.l;if(this._hasMaskedPath){if(Sa=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Da,Ta=Sa.v;for(this._pathData.r.v&&(Ta=Ta.reverse()),la={tLength:0,segments:[]},sa=Ta._length-1,ya=0,aa=0;aa<sa;aa+=1)Da=bez.buildBezierData(Ta.v[aa],Ta.v[aa+1],[Ta.o[aa][0]-Ta.v[aa][0],Ta.o[aa][1]-Ta.v[aa][1]],[Ta.i[aa+1][0]-Ta.v[aa+1][0],Ta.i[aa+1][1]-Ta.v[aa+1][1]]),la.tLength+=Da.segmentLength,la.segments.push(Da),ya+=Da.segmentLength;aa=sa,Sa.v.c&&(Da=bez.buildBezierData(Ta.v[aa],Ta.v[0],[Ta.o[aa][0]-Ta.v[aa][0],Ta.o[aa][1]-Ta.v[aa][1]],[Ta.i[0][0]-Ta.v[0][0],Ta.i[0][1]-Ta.v[0][1]]),la.tLength+=Da.segmentLength,la.segments.push(Da),ya+=Da.segmentLength),this._pathData.pi=la}if(la=this._pathData.pi,ca=this._pathData.f.v,ga=0,ha=1,da=0,pa=!0,va=la.segments,ca<0&&Sa.v.c)for(la.tLength<Math.abs(ca)&&(ca=-Math.abs(ca)%la.tLength),ha=(ma=va[ga=va.length-1].points).length-1;ca<0;)ca+=ma[ha].partialLength,(ha-=1)<0&&(ha=(ma=va[ga-=1].points).length-1);fa=(ma=va[ga].points)[ha-1],xa=(ua=ma[ha]).partialLength}sa=Oa.length,ra=0,oa=0;var _a,La,Na,za,Fa,Ha=1.2*ea.finalSize*.714,Va=!0;Na=ba.length;var Ua,Qa,Wa,Za,Xa,tl,il,Ja,nl,Ya,rl,sl,dl=-1,pl=ca,ml=ga,Rl=ha,Tl=-1,Il="",Ol=this.defaultPropsArray;if(ea.j===2||ea.j===1){var Fl=0,Vl=0,Wl=ea.j===2?-.5:-1,vl=0,kl=!0;for(aa=0;aa<sa;aa+=1)if(Oa[aa].n){for(Fl&&(Fl+=Vl);vl<aa;)Oa[vl].animatorJustifyOffset=Fl,vl+=1;Fl=0,kl=!0}else{for(La=0;La<Na;La+=1)(_a=ba[La].a).t.propType&&(kl&&ea.j===2&&(Vl+=_a.t.v*Wl),(Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars)).length?Fl+=_a.t.v*Fa[0]*Wl:Fl+=_a.t.v*Fa*Wl);kl=!1}for(Fl&&(Fl+=Vl);vl<aa;)Oa[vl].animatorJustifyOffset=Fl,vl+=1}for(aa=0;aa<sa;aa+=1){if($a.reset(),Za=1,Oa[aa].n)ra=0,oa+=ea.yOffset,oa+=Va?1:0,ca=pl,Va=!1,this._hasMaskedPath&&(ha=Rl,fa=(ma=va[ga=ml].points)[ha-1],xa=(ua=ma[ha]).partialLength,da=0),Il="",rl="",nl="",sl="",Ol=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Tl!==Oa[aa].line){switch(ea.j){case 1:ca+=ya-ea.lineWidths[Oa[aa].line];break;case 2:ca+=(ya-ea.lineWidths[Oa[aa].line])/2}Tl=Oa[aa].line}dl!==Oa[aa].ind&&(Oa[dl]&&(ca+=Oa[dl].extra),ca+=Oa[aa].an/2,dl=Oa[aa].ind),ca+=wa[0]*Oa[aa].an*.005;var zl=0;for(La=0;La<Na;La+=1)(_a=ba[La].a).p.propType&&((Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars)).length?zl+=_a.p.v[0]*Fa[0]:zl+=_a.p.v[0]*Fa),_a.a.propType&&((Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars)).length?zl+=_a.a.v[0]*Fa[0]:zl+=_a.a.v[0]*Fa);for(pa=!0,this._pathData.a.v&&(ca=.5*Oa[0].an+(ya-this._pathData.f.v-.5*Oa[0].an-.5*Oa[Oa.length-1].an)*dl/(sa-1),ca+=this._pathData.f.v);pa;)da+xa>=ca+zl||!ma?(Aa=(ca+zl-da)/ua.partialLength,Qa=fa.point[0]+(ua.point[0]-fa.point[0])*Aa,Wa=fa.point[1]+(ua.point[1]-fa.point[1])*Aa,$a.translate(-wa[0]*Oa[aa].an*.005,-wa[1]*Ha*.01),pa=!1):ma&&(da+=ua.partialLength,(ha+=1)>=ma.length&&(ha=0,va[ga+=1]?ma=va[ga].points:Sa.v.c?(ha=0,ma=va[ga=0].points):(da-=ua.partialLength,ma=null)),ma&&(fa=ua,xa=(ua=ma[ha]).partialLength));Ua=Oa[aa].an/2-Oa[aa].add,$a.translate(-Ua,0,0)}else Ua=Oa[aa].an/2-Oa[aa].add,$a.translate(-Ua,0,0),$a.translate(-wa[0]*Oa[aa].an*.005,-wa[1]*Ha*.01,0);for(La=0;La<Na;La+=1)(_a=ba[La].a).t.propType&&(Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars),ra===0&&ea.j===0||(this._hasMaskedPath?Fa.length?ca+=_a.t.v*Fa[0]:ca+=_a.t.v*Fa:Fa.length?ra+=_a.t.v*Fa[0]:ra+=_a.t.v*Fa));for(ea.strokeWidthAnim&&(tl=ea.sw||0),ea.strokeColorAnim&&(Xa=ea.sc?[ea.sc[0],ea.sc[1],ea.sc[2]]:[0,0,0]),ea.fillColorAnim&&ea.fc&&(il=[ea.fc[0],ea.fc[1],ea.fc[2]]),La=0;La<Na;La+=1)(_a=ba[La].a).a.propType&&((Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars)).length?$a.translate(-_a.a.v[0]*Fa[0],-_a.a.v[1]*Fa[1],_a.a.v[2]*Fa[2]):$a.translate(-_a.a.v[0]*Fa,-_a.a.v[1]*Fa,_a.a.v[2]*Fa));for(La=0;La<Na;La+=1)(_a=ba[La].a).s.propType&&((Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars)).length?$a.scale(1+(_a.s.v[0]-1)*Fa[0],1+(_a.s.v[1]-1)*Fa[1],1):$a.scale(1+(_a.s.v[0]-1)*Fa,1+(_a.s.v[1]-1)*Fa,1));for(La=0;La<Na;La+=1){if(_a=ba[La].a,Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars),_a.sk.propType&&(Fa.length?$a.skewFromAxis(-_a.sk.v*Fa[0],_a.sa.v*Fa[1]):$a.skewFromAxis(-_a.sk.v*Fa,_a.sa.v*Fa)),_a.r.propType&&(Fa.length?$a.rotateZ(-_a.r.v*Fa[2]):$a.rotateZ(-_a.r.v*Fa)),_a.ry.propType&&(Fa.length?$a.rotateY(_a.ry.v*Fa[1]):$a.rotateY(_a.ry.v*Fa)),_a.rx.propType&&(Fa.length?$a.rotateX(_a.rx.v*Fa[0]):$a.rotateX(_a.rx.v*Fa)),_a.o.propType&&(Fa.length?Za+=(_a.o.v*Fa[0]-Za)*Fa[0]:Za+=(_a.o.v*Fa-Za)*Fa),ea.strokeWidthAnim&&_a.sw.propType&&(Fa.length?tl+=_a.sw.v*Fa[0]:tl+=_a.sw.v*Fa),ea.strokeColorAnim&&_a.sc.propType)for(Ja=0;Ja<3;Ja+=1)Fa.length?Xa[Ja]+=(_a.sc.v[Ja]-Xa[Ja])*Fa[0]:Xa[Ja]+=(_a.sc.v[Ja]-Xa[Ja])*Fa;if(ea.fillColorAnim&&ea.fc){if(_a.fc.propType)for(Ja=0;Ja<3;Ja+=1)Fa.length?il[Ja]+=(_a.fc.v[Ja]-il[Ja])*Fa[0]:il[Ja]+=(_a.fc.v[Ja]-il[Ja])*Fa;_a.fh.propType&&(il=Fa.length?addHueToRGB(il,_a.fh.v*Fa[0]):addHueToRGB(il,_a.fh.v*Fa)),_a.fs.propType&&(il=Fa.length?addSaturationToRGB(il,_a.fs.v*Fa[0]):addSaturationToRGB(il,_a.fs.v*Fa)),_a.fb.propType&&(il=Fa.length?addBrightnessToRGB(il,_a.fb.v*Fa[0]):addBrightnessToRGB(il,_a.fb.v*Fa))}}for(La=0;La<Na;La+=1)(_a=ba[La].a).p.propType&&(Fa=ba[La].s.getMult(Oa[aa].anIndexes[La],Ea.a[La].s.totalChars),this._hasMaskedPath?Fa.length?$a.translate(0,_a.p.v[1]*Fa[0],-_a.p.v[2]*Fa[1]):$a.translate(0,_a.p.v[1]*Fa,-_a.p.v[2]*Fa):Fa.length?$a.translate(_a.p.v[0]*Fa[0],_a.p.v[1]*Fa[1],-_a.p.v[2]*Fa[2]):$a.translate(_a.p.v[0]*Fa,_a.p.v[1]*Fa,-_a.p.v[2]*Fa));if(ea.strokeWidthAnim&&(nl=tl<0?0:tl),ea.strokeColorAnim&&(Ya="rgb("+Math.round(255*Xa[0])+","+Math.round(255*Xa[1])+","+Math.round(255*Xa[2])+")"),ea.fillColorAnim&&ea.fc&&(rl="rgb("+Math.round(255*il[0])+","+Math.round(255*il[1])+","+Math.round(255*il[2])+")"),this._hasMaskedPath){if($a.translate(0,-ea.ls),$a.translate(0,wa[1]*Ha*.01+oa,0),this._pathData.p.v){Ca=(ua.point[1]-fa.point[1])/(ua.point[0]-fa.point[0]);var Al=180*Math.atan(Ca)/Math.PI;ua.point[0]<fa.point[0]&&(Al+=180),$a.rotate(-Al*Math.PI/180)}$a.translate(Qa,Wa,0),ca-=wa[0]*Oa[aa].an*.005,Oa[aa+1]&&dl!==Oa[aa+1].ind&&(ca+=Oa[aa].an/2,ca+=.001*ea.tr*ea.finalSize)}else{switch($a.translate(ra,oa,0),ea.ps&&$a.translate(ea.ps[0],ea.ps[1]+ea.ascent,0),ea.j){case 1:$a.translate(Oa[aa].animatorJustifyOffset+ea.justifyOffset+(ea.boxWidth-ea.lineWidths[Oa[aa].line]),0,0);break;case 2:$a.translate(Oa[aa].animatorJustifyOffset+ea.justifyOffset+(ea.boxWidth-ea.lineWidths[Oa[aa].line])/2,0,0)}$a.translate(0,-ea.ls),$a.translate(Ua,0,0),$a.translate(wa[0]*Oa[aa].an*.005,wa[1]*Ha*.01,0),ra+=Oa[aa].l+.001*ea.tr*ea.finalSize}Ma==="html"?Il=$a.toCSS():Ma==="svg"?Il=$a.to2dCSS():Ol=[$a.props[0],$a.props[1],$a.props[2],$a.props[3],$a.props[4],$a.props[5],$a.props[6],$a.props[7],$a.props[8],$a.props[9],$a.props[10],$a.props[11],$a.props[12],$a.props[13],$a.props[14],$a.props[15]],sl=Za}Ia<=aa?(za=new LetterProps(sl,nl,Ya,rl,Il,Ol),this.renderedLetters.push(za),Ia+=1,this.lettersChangedFlag=!0):(za=this.renderedLetters[aa],this.lettersChangedFlag=za.update(sl,nl,Ya,rl,Il,Ol)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(ea,na,ra){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(ea,na,ra),this.textProperty=new TextProperty(this,ea.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(ea.t,this.renderType,this),this.initTransform(ea,na,ra),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(ea){this._mdf=!1,this.prepareRenderableFrame(ea),this.prepareProperties(ea,this.isInRange)},ITextElement.prototype.createPathShape=function(ea,na){var ra,oa,aa=na.length,sa="";for(ra=0;ra<aa;ra+=1)na[ra].ty==="sh"&&(oa=na[ra].ks.k,sa+=buildShapeString(oa,oa.i.length,!0,ea));return sa},ITextElement.prototype.updateDocumentData=function(ea,na){this.textProperty.updateDocumentData(ea,na)},ITextElement.prototype.canResizeFont=function(ea){this.textProperty.canResizeFont(ea)},ITextElement.prototype.setMinimumFontSize=function(ea){this.textProperty.setMinimumFontSize(ea)},ITextElement.prototype.applyTextPropertiesToMatrix=function(ea,na,ra,oa,aa){switch(ea.ps&&na.translate(ea.ps[0],ea.ps[1]+ea.ascent,0),na.translate(0,-ea.ls,0),ea.j){case 1:na.translate(ea.justifyOffset+(ea.boxWidth-ea.lineWidths[ra]),0,0);break;case 2:na.translate(ea.justifyOffset+(ea.boxWidth-ea.lineWidths[ra])/2,0,0)}na.translate(oa,aa,0)},ITextElement.prototype.buildColor=function(ea){return"rgb("+Math.round(255*ea[0])+","+Math.round(255*ea[1])+","+Math.round(255*ea[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(ea,na,ra){this.textSpans=[],this.renderType="svg",this.initElement(ea,na,ra)}function ISolidElement(ea,na,ra){this.initElement(ea,na,ra)}function NullElement(ea,na,ra){this.initFrame(),this.initBaseData(ea,na,ra),this.initFrame(),this.initTransform(ea,na,ra),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(ea,na,ra){this.layers=ea.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ea,na,ra),this.tm=ea.tm?PropertyFactory.getProp(this,ea.tm,0,na.frameRate,this):{_placeholder:!0}}function SVGRenderer(ea,na){this.animationItem=ea,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var ra="";if(na&&na.title){var oa=createNS("title"),aa=createElementID();oa.setAttribute("id",aa),oa.textContent=na.title,this.svgElement.appendChild(oa),ra+=aa}if(na&&na.description){var sa=createNS("desc"),la=createElementID();sa.setAttribute("id",la),sa.textContent=na.description,this.svgElement.appendChild(sa),ra+=" "+la}ra&&this.svgElement.setAttribute("aria-labelledby",ra);var ca=createNS("defs");this.svgElement.appendChild(ca);var ua=createNS("g");this.svgElement.appendChild(ua),this.layerElement=ua,this.renderConfig={preserveAspectRatio:na&&na.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:na&&na.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:na&&na.contentVisibility||"visible",progressiveLoad:na&&na.progressiveLoad||!1,hideOnTransparent:!(na&&na.hideOnTransparent===!1),viewBoxOnly:na&&na.viewBoxOnly||!1,viewBoxSize:na&&na.viewBoxSize||!1,className:na&&na.className||"",id:na&&na.id||"",focusable:na&&na.focusable,filterSize:{width:na&&na.filterSize&&na.filterSize.width||"100%",height:na&&na.filterSize&&na.filterSize.height||"100%",x:na&&na.filterSize&&na.filterSize.x||"0%",y:na&&na.filterSize&&na.filterSize.y||"0%"},width:na&&na.width,height:na&&na.height,runExpressions:!na||na.runExpressions===void 0||na.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ca,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(ea){for(var na=0,ra=ea.length,oa=[],aa="";na<ra;)ea[na]==="\r"||ea[na]===""?(oa.push(aa),aa=""):aa+=ea[na],na+=1;return oa.push(aa),oa},SVGTextLottieElement.prototype.buildShapeData=function(ea,na){if(ea.shapes&&ea.shapes.length){var ra=ea.shapes[0];if(ra.it){var oa=ra.it[ra.it.length-1];oa.s&&(oa.s.k[0]=na,oa.s.k[1]=na)}}return ea},SVGTextLottieElement.prototype.buildNewText=function(){var ea,na;this.addDynamicProperty(this);var ra=this.textProperty.currentData;this.renderedLetters=createSizedArray(ra?ra.l.length:0),ra.fc?this.layerElement.setAttribute("fill",this.buildColor(ra.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),ra.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(ra.sc)),this.layerElement.setAttribute("stroke-width",ra.sw)),this.layerElement.setAttribute("font-size",ra.finalSize);var oa=this.globalData.fontManager.getFontByName(ra.f);if(oa.fClass)this.layerElement.setAttribute("class",oa.fClass);else{this.layerElement.setAttribute("font-family",oa.fFamily);var aa=ra.fWeight,sa=ra.fStyle;this.layerElement.setAttribute("font-style",sa),this.layerElement.setAttribute("font-weight",aa)}this.layerElement.setAttribute("aria-label",ra.t);var la,ca=ra.l||[],ua=!!this.globalData.fontManager.chars;na=ca.length;var da=this.mHelper,pa=this.data.singleShape,ha=0,ga=0,fa=!0,ma=.001*ra.tr*ra.finalSize;if(!pa||ua||ra.sz){var va,xa=this.textSpans.length;for(ea=0;ea<na;ea+=1){if(this.textSpans[ea]||(this.textSpans[ea]={span:null,childSpan:null,glyph:null}),!ua||!pa||ea===0){if(la=xa>ea?this.textSpans[ea].span:createNS(ua?"g":"text"),xa<=ea){if(la.setAttribute("stroke-linecap","butt"),la.setAttribute("stroke-linejoin","round"),la.setAttribute("stroke-miterlimit","4"),this.textSpans[ea].span=la,ua){var ya=createNS("g");la.appendChild(ya),this.textSpans[ea].childSpan=ya}this.textSpans[ea].span=la,this.layerElement.appendChild(la)}la.style.display="inherit"}if(da.reset(),pa&&(ca[ea].n&&(ha=-ma,ga+=ra.yOffset,ga+=fa?1:0,fa=!1),this.applyTextPropertiesToMatrix(ra,da,ca[ea].line,ha,ga),ha+=ca[ea].l||0,ha+=ma),ua){var Aa;if((va=this.globalData.fontManager.getCharData(ra.finalText[ea],oa.fStyle,this.globalData.fontManager.getFontByName(ra.f).fFamily)).t===1)Aa=new SVGCompElement(va.data,this.globalData,this);else{var Ca=emptyShapeData;va.data&&va.data.shapes&&(Ca=this.buildShapeData(va.data,ra.finalSize)),Aa=new SVGShapeElement(Ca,this.globalData,this)}if(this.textSpans[ea].glyph){var Sa=this.textSpans[ea].glyph;this.textSpans[ea].childSpan.removeChild(Sa.layerElement),Sa.destroy()}this.textSpans[ea].glyph=Aa,Aa._debug=!0,Aa.prepareFrame(0),Aa.renderFrame(),this.textSpans[ea].childSpan.appendChild(Aa.layerElement),va.t===1&&this.textSpans[ea].childSpan.setAttribute("transform","scale("+ra.finalSize/100+","+ra.finalSize/100+")")}else pa&&la.setAttribute("transform","translate("+da.props[12]+","+da.props[13]+")"),la.textContent=ca[ea].val,la.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}pa&&la&&la.setAttribute("d","")}else{var wa=this.textContainer,ba="start";switch(ra.j){case 1:ba="end";break;case 2:ba="middle";break;default:ba="start"}wa.setAttribute("text-anchor",ba),wa.setAttribute("letter-spacing",ma);var Ea=this.buildTextContents(ra.finalText);for(na=Ea.length,ga=ra.ps?ra.ps[1]+ra.ascent:0,ea=0;ea<na;ea+=1)(la=this.textSpans[ea].span||createNS("tspan")).textContent=Ea[ea],la.setAttribute("x",0),la.setAttribute("y",ga),la.style.display="inherit",wa.appendChild(la),this.textSpans[ea]||(this.textSpans[ea]={span:null,glyph:null}),this.textSpans[ea].span=la,ga+=ra.finalLineHeight;this.layerElement.appendChild(wa)}for(;ea<this.textSpans.length;)this.textSpans[ea].span.style.display="none",ea+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var ea=this.layerElement.getBBox();this.bbox={top:ea.y,left:ea.x,width:ea.width,height:ea.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var ea,na,ra=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,ea=0;ea<ra;ea+=1)(na=this.textSpans[ea].glyph)&&(na.prepareFrame(this.comp.renderedFrame-this.data.st),na._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var ea,na;this._sizeChanged=!0;var ra,oa,aa,sa=this.textAnimator.renderedLetters,la=this.textProperty.currentData.l;for(na=la.length,ea=0;ea<na;ea+=1)la[ea].n||(ra=sa[ea],oa=this.textSpans[ea].span,(aa=this.textSpans[ea].glyph)&&aa.renderFrame(),ra._mdf.m&&oa.setAttribute("transform",ra.m),ra._mdf.o&&oa.setAttribute("opacity",ra.o),ra._mdf.sw&&oa.setAttribute("stroke-width",ra.sw),ra._mdf.sc&&oa.setAttribute("stroke",ra.sc),ra._mdf.fc&&oa.setAttribute("fill",ra.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var ea=createNS("rect");ea.setAttribute("width",this.data.sw),ea.setAttribute("height",this.data.sh),ea.setAttribute("fill",this.data.sc),this.layerElement.appendChild(ea)},NullElement.prototype.prepareFrame=function(ea){this.prepareProperties(ea,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(ea){return new NullElement(ea,this.globalData,this)},SVGRendererBase.prototype.createShape=function(ea){return new SVGShapeElement(ea,this.globalData,this)},SVGRendererBase.prototype.createText=function(ea){return new SVGTextLottieElement(ea,this.globalData,this)},SVGRendererBase.prototype.createImage=function(ea){return new IImageElement(ea,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(ea){return new ISolidElement(ea,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(ea){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+ea.w+" "+ea.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",ea.w),this.svgElement.setAttribute("height",ea.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var na=this.globalData.defs;this.setupGlobalData(ea,na),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=ea;var ra=createNS("clipPath"),oa=createNS("rect");oa.setAttribute("width",ea.w),oa.setAttribute("height",ea.h),oa.setAttribute("x",0),oa.setAttribute("y",0);var aa=createElementID();ra.setAttribute("id",aa),ra.appendChild(oa),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+aa+")"),na.appendChild(ra),this.layers=ea.layers,this.elements=createSizedArray(ea.layers.length)},SVGRendererBase.prototype.destroy=function(){var ea;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var na=this.layers?this.layers.length:0;for(ea=0;ea<na;ea+=1)this.elements[ea]&&this.elements[ea].destroy&&this.elements[ea].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(ea){var na=0,ra=this.layers.length;for(na=0;na<ra;na+=1)if(this.layers[na].ind===ea)return na;return-1},SVGRendererBase.prototype.buildItem=function(ea){var na=this.elements;if(!na[ea]&&this.layers[ea].ty!==99){na[ea]=!0;var ra=this.createItem(this.layers[ea]);if(na[ea]=ra,getExpressionsPlugin()&&(this.layers[ea].ty===0&&this.globalData.projectInterface.registerComposition(ra),ra.initExpressions()),this.appendElementInPos(ra,ea),this.layers[ea].tt){var oa="tp"in this.layers[ea]?this.findIndexByInd(this.layers[ea].tp):ea-1;if(oa===-1)return;if(this.elements[oa]&&this.elements[oa]!==!0){var aa=na[oa].getMatte(this.layers[ea].tt);ra.setMatte(aa)}else this.buildItem(oa),this.addPendingElement(ra)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var ea=this.pendingElements.pop();if(ea.checkParenting(),ea.data.tt)for(var na=0,ra=this.elements.length;na<ra;){if(this.elements[na]===ea){var oa="tp"in ea.data?this.findIndexByInd(ea.data.tp):na-1,aa=this.elements[oa].getMatte(this.layers[na].tt);ea.setMatte(aa);break}na+=1}}},SVGRendererBase.prototype.renderFrame=function(ea){if(this.renderedFrame!==ea&&!this.destroyed){var na;ea===null?ea=this.renderedFrame:this.renderedFrame=ea,this.globalData.frameNum=ea,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=ea,this.globalData._mdf=!1;var ra=this.layers.length;for(this.completeLayers||this.checkLayers(ea),na=ra-1;na>=0;na-=1)(this.completeLayers||this.elements[na])&&this.elements[na].prepareFrame(ea-this.layers[na].st);if(this.globalData._mdf)for(na=0;na<ra;na+=1)(this.completeLayers||this.elements[na])&&this.elements[na].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(ea,na){var ra=ea.getBaseElement();if(ra){for(var oa,aa=0;aa<na;)this.elements[aa]&&this.elements[aa]!==!0&&this.elements[aa].getBaseElement()&&(oa=this.elements[aa].getBaseElement()),aa+=1;oa?this.layerElement.insertBefore(ra,oa):this.layerElement.appendChild(ra)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(ea,na,ra){this.initFrame(),this.initBaseData(ea,na,ra),this.initTransform(ea,na,ra),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&na.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(ea){if(this._mdf=!1,this.prepareRenderableFrame(ea),this.prepareProperties(ea,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=ea/this.data.sr;else{var na=this.tm.v;na===this.data.op&&(na=this.data.op-1),this.renderedFrame=na}var ra,oa=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),ra=oa-1;ra>=0;ra-=1)(this.completeLayers||this.elements[ra])&&(this.elements[ra].prepareFrame(this.renderedFrame-this.layers[ra].st),this.elements[ra]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var ea,na=this.layers.length;for(ea=0;ea<na;ea+=1)(this.completeLayers||this.elements[ea])&&this.elements[ea].renderFrame()},ICompElement.prototype.setElements=function(ea){this.elements=ea},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var ea,na=this.layers.length;for(ea=0;ea<na;ea+=1)this.elements[ea]&&this.elements[ea].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(ea){return new SVGCompElement(ea,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(ea){return new SVGCompElement(ea,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(ea){var na,ra=ea.length,oa="_";for(na=0;na<ra;na+=1)oa+=ea[na].transform.key+"_";var aa=this.sequences[oa];return aa||(aa={transforms:[].concat(ea),finalTransform:new Matrix,_mdf:!1},this.sequences[oa]=aa,this.sequenceList.push(aa)),aa},processSequence:function(ea,na){for(var ra=0,oa=ea.transforms.length,aa=na;ra<oa&&!na;){if(ea.transforms[ra].transform.mProps._mdf){aa=!0;break}ra+=1}if(aa)for(ea.finalTransform.reset(),ra=oa-1;ra>=0;ra-=1)ea.finalTransform.multiply(ea.transforms[ra].transform.mProps.v);ea._mdf=aa},processSequences:function(ea){var na,ra=this.sequenceList.length;for(na=0;na<ra;na+=1)this.processSequence(this.sequenceList[na],ea)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var ea="__lottie_element_luma_buffer",na=null,ra=null,oa=null;function aa(){var sa,la,ca;na||(sa=createNS("svg"),la=createNS("filter"),ca=createNS("feColorMatrix"),la.setAttribute("id",ea),ca.setAttribute("type","matrix"),ca.setAttribute("color-interpolation-filters","sRGB"),ca.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),la.appendChild(ca),sa.appendChild(la),sa.setAttribute("id",ea+"_svg"),featureSupport.svgLumaHidden&&(sa.style.display="none"),oa=sa,document.body.appendChild(oa),na=createTag("canvas"),(ra=na.getContext("2d")).filter="url(#"+ea+")",ra.fillStyle="rgba(0,0,0,0)",ra.fillRect(0,0,1,1))}return{load:aa,get:function(sa){return na||aa(),na.width=sa.width,na.height=sa.height,ra.filter="url(#"+ea+")",na}}};function createCanvas(ea,na){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(ea,na);var ra=createTag("canvas");return ra.width=ea,ra.height=na,ra}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(ea){var na,ra,oa=ea.data.ef?ea.data.ef.length:0;for(this.filters=[],na=0;na<oa;na+=1){ra=null;var aa=ea.data.ef[na].ty;registeredEffects[aa]&&(ra=new registeredEffects[aa].effect(ea.effectsManager.effectElements[na],ea)),ra&&this.filters.push(ra)}this.filters.length&&ea.addRenderableComponent(this)}function registerEffect(ea,na){registeredEffects[ea]={effect:na}}function CVMaskElement(ea,na){var ra;this.data=ea,this.element=na,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var oa=this.masksProperties.length,aa=!1;for(ra=0;ra<oa;ra+=1)this.masksProperties[ra].mode!=="n"&&(aa=!0),this.viewData[ra]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[ra],3);this.hasMasks=aa,aa&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(ea){var na,ra=this.filters.length;for(na=0;na<ra;na+=1)this.filters[na].renderFrame(ea)},CVEffects.prototype.getEffects=function(ea){var na,ra=this.filters.length,oa=[];for(na=0;na<ra;na+=1)this.filters[na].type===ea&&oa.push(this.filters[na]);return oa},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var ea,na,ra,oa,aa=this.element.finalTransform.mat,sa=this.element.canvasContext,la=this.masksProperties.length;for(sa.beginPath(),ea=0;ea<la;ea+=1)if(this.masksProperties[ea].mode!=="n"){var ca;this.masksProperties[ea].inv&&(sa.moveTo(0,0),sa.lineTo(this.element.globalData.compSize.w,0),sa.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),sa.lineTo(0,this.element.globalData.compSize.h),sa.lineTo(0,0)),oa=this.viewData[ea].v,na=aa.applyToPointArray(oa.v[0][0],oa.v[0][1],0),sa.moveTo(na[0],na[1]);var ua=oa._length;for(ca=1;ca<ua;ca+=1)ra=aa.applyToTriplePoints(oa.o[ca-1],oa.i[ca],oa.v[ca]),sa.bezierCurveTo(ra[0],ra[1],ra[2],ra[3],ra[4],ra[5]);ra=aa.applyToTriplePoints(oa.o[ca-1],oa.i[0],oa.v[0]),sa.bezierCurveTo(ra[0],ra[1],ra[2],ra[3],ra[4],ra[5])}this.element.globalData.renderer.save(!0),sa.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(ea,na,ra,oa){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var aa,sa=4;na.ty==="rc"?sa=5:na.ty==="el"?sa=6:na.ty==="sr"&&(sa=7),this.sh=ShapePropertyFactory.getShapeProp(ea,na,sa,ea);var la,ca=ra.length;for(aa=0;aa<ca;aa+=1)ra[aa].closed||(la={transforms:oa.addTransformSequence(ra[aa].transforms),trNodes:[]},this.styledShapes.push(la),ra[aa].elements.push(la))}function CVShapeElement(ea,na,ra){this.shapes=[],this.shapesData=ea.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(ea,na,ra)}function CVTextElement(ea,na,ra){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(ea,na,ra)}function CVImageElement(ea,na,ra){this.assetData=na.getAssetData(ea.refId),this.img=na.imageLoader.getAsset(this.assetData),this.initElement(ea,na,ra)}function CVSolidElement(ea,na,ra){this.initElement(ea,na,ra)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var ea;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,ea=0;ea<15;ea+=1){var na=new CanvasContext;this.stack[ea]=na}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(ea,na,ra){this.completeLayers=!1,this.layers=ea.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(ea,na,ra),this.tm=ea.tm?PropertyFactory.getProp(this,ea.tm,0,na.frameRate,this):{_placeholder:!0}}function CanvasRenderer(ea,na){this.animationItem=ea,this.renderConfig={clearCanvas:!na||na.clearCanvas===void 0||na.clearCanvas,context:na&&na.context||null,progressiveLoad:na&&na.progressiveLoad||!1,preserveAspectRatio:na&&na.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:na&&na.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:na&&na.contentVisibility||"visible",className:na&&na.className||"",id:na&&na.id||"",runExpressions:!na||na.runExpressions===void 0||na.runExpressions},this.renderConfig.dpr=na&&na.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=na&&na.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(ea,na,ra){this.initElement(ea,na,ra)}function HShapeElement(ea,na,ra){this.shapes=[],this.shapesData=ea.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(ea,na,ra),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(ea,na,ra){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(ea,na,ra)}function HCameraElement(ea,na,ra){this.initFrame(),this.initBaseData(ea,na,ra),this.initHierarchy();var oa=PropertyFactory.getProp;if(this.pe=oa(this,ea.pe,0,0,this),ea.ks.p.s?(this.px=oa(this,ea.ks.p.x,1,0,this),this.py=oa(this,ea.ks.p.y,1,0,this),this.pz=oa(this,ea.ks.p.z,1,0,this)):this.p=oa(this,ea.ks.p,1,0,this),ea.ks.a&&(this.a=oa(this,ea.ks.a,1,0,this)),ea.ks.or.k.length&&ea.ks.or.k[0].to){var aa,sa=ea.ks.or.k.length;for(aa=0;aa<sa;aa+=1)ea.ks.or.k[aa].to=null,ea.ks.or.k[aa].ti=null}this.or=oa(this,ea.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=oa(this,ea.ks.rx,0,degToRads,this),this.ry=oa(this,ea.ks.ry,0,degToRads,this),this.rz=oa(this,ea.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(ea,na,ra){this.assetData=na.getAssetData(ea.refId),this.initElement(ea,na,ra)}function HybridRendererBase(ea,na){this.animationItem=ea,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:na&&na.className||"",imagePreserveAspectRatio:na&&na.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(na&&na.hideOnTransparent===!1),filterSize:{width:na&&na.filterSize&&na.filterSize.width||"400%",height:na&&na.filterSize&&na.filterSize.height||"400%",x:na&&na.filterSize&&na.filterSize.x||"-100%",y:na&&na.filterSize&&na.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(ea,na,ra){this.layers=ea.layers,this.supports3d=!ea.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ea,na,ra),this.tm=ea.tm?PropertyFactory.getProp(this,ea.tm,0,na.frameRate,this):{_placeholder:!0}}function HybridRenderer(ea,na){this.animationItem=ea,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:na&&na.className||"",imagePreserveAspectRatio:na&&na.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(na&&na.hideOnTransparent===!1),filterSize:{width:na&&na.filterSize&&na.filterSize.width||"400%",height:na&&na.filterSize&&na.filterSize.height||"400%",x:na&&na.filterSize&&na.filterSize.x||"-100%",y:na&&na.filterSize&&na.filterSize.y||"-100%"},runExpressions:!na||na.runExpressions===void 0||na.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var ea=this.globalData.canvasContext,na=assetLoader.createCanvas(ea.canvas.width,ea.canvas.height);this.buffers.push(na);var ra=assetLoader.createCanvas(ea.canvas.width,ea.canvas.height);this.buffers.push(ra),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var ea=this.globalData;if(ea.blendMode!==this.data.bm){ea.blendMode=this.data.bm;var na=getBlendMode(this.data.bm);ea.canvasContext.globalCompositeOperation=na}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(ea){ea.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var ea=this.buffers[0].getContext("2d");this.clearCanvas(ea),ea.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var ea=this.buffers[1],na=ea.getContext("2d");if(this.clearCanvas(na),na.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var ra=assetLoader.getLumaCanvas(this.canvasContext.canvas);ra.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(ra,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(ea,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(ea){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||ea)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var na=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(na),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(na),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(ea,na){var ra={data:ea,type:ea.ty,preTransforms:this.transformsManager.addTransformSequence(na),transforms:[],elements:[],closed:ea.hd===!0},oa={};if(ea.ty==="fl"||ea.ty==="st"?(oa.c=PropertyFactory.getProp(this,ea.c,1,255,this),oa.c.k||(ra.co="rgb("+bmFloor(oa.c.v[0])+","+bmFloor(oa.c.v[1])+","+bmFloor(oa.c.v[2])+")")):ea.ty!=="gf"&&ea.ty!=="gs"||(oa.s=PropertyFactory.getProp(this,ea.s,1,null,this),oa.e=PropertyFactory.getProp(this,ea.e,1,null,this),oa.h=PropertyFactory.getProp(this,ea.h||{k:0},0,.01,this),oa.a=PropertyFactory.getProp(this,ea.a||{k:0},0,degToRads,this),oa.g=new GradientProperty(this,ea.g,this)),oa.o=PropertyFactory.getProp(this,ea.o,0,.01,this),ea.ty==="st"||ea.ty==="gs"){if(ra.lc=lineCapEnum[ea.lc||2],ra.lj=lineJoinEnum[ea.lj||2],ea.lj==1&&(ra.ml=ea.ml),oa.w=PropertyFactory.getProp(this,ea.w,0,null,this),oa.w.k||(ra.wi=oa.w.v),ea.d){var aa=new DashProperty(this,ea.d,"canvas",this);oa.d=aa,oa.d.k||(ra.da=oa.d.dashArray,ra.do=oa.d.dashoffset[0])}}else ra.r=ea.r===2?"evenodd":"nonzero";return this.stylesList.push(ra),oa.style=ra,oa},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(ea){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,ea.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,ea,this)}}},CVShapeElement.prototype.createShapeElement=function(ea){var na=new CVShapeData(this,ea,this.stylesList,this.transformsManager);return this.shapes.push(na),this.addShapeToModifiers(na),na},CVShapeElement.prototype.reloadShapes=function(){var ea;this._isFirstFrame=!0;var na=this.itemsData.length;for(ea=0;ea<na;ea+=1)this.prevViewData[ea]=this.itemsData[ea];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),na=this.dynamicProperties.length,ea=0;ea<na;ea+=1)this.dynamicProperties[ea].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(ea){var na,ra=this.stylesList.length;for(na=0;na<ra;na+=1)this.stylesList[na].closed||this.stylesList[na].transforms.push(ea)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var ea,na=this.stylesList.length;for(ea=0;ea<na;ea+=1)this.stylesList[ea].closed||this.stylesList[ea].transforms.pop()},CVShapeElement.prototype.closeStyles=function(ea){var na,ra=ea.length;for(na=0;na<ra;na+=1)ea[na].closed=!0},CVShapeElement.prototype.searchShapes=function(ea,na,ra,oa,aa){var sa,la,ca,ua,da,pa,ha=ea.length-1,ga=[],fa=[],ma=[].concat(aa);for(sa=ha;sa>=0;sa-=1){if((ua=this.searchProcessedElement(ea[sa]))?na[sa]=ra[ua-1]:ea[sa]._shouldRender=oa,ea[sa].ty==="fl"||ea[sa].ty==="st"||ea[sa].ty==="gf"||ea[sa].ty==="gs")ua?na[sa].style.closed=!1:na[sa]=this.createStyleElement(ea[sa],ma),ga.push(na[sa].style);else if(ea[sa].ty==="gr"){if(ua)for(ca=na[sa].it.length,la=0;la<ca;la+=1)na[sa].prevViewData[la]=na[sa].it[la];else na[sa]=this.createGroupElement(ea[sa]);this.searchShapes(ea[sa].it,na[sa].it,na[sa].prevViewData,oa,ma)}else ea[sa].ty==="tr"?(ua||(pa=this.createTransformElement(ea[sa]),na[sa]=pa),ma.push(na[sa]),this.addTransformToStyleList(na[sa])):ea[sa].ty==="sh"||ea[sa].ty==="rc"||ea[sa].ty==="el"||ea[sa].ty==="sr"?ua||(na[sa]=this.createShapeElement(ea[sa])):ea[sa].ty==="tm"||ea[sa].ty==="rd"||ea[sa].ty==="pb"||ea[sa].ty==="zz"||ea[sa].ty==="op"?(ua?(da=na[sa]).closed=!1:((da=ShapeModifiers.getModifier(ea[sa].ty)).init(this,ea[sa]),na[sa]=da,this.shapeModifiers.push(da)),fa.push(da)):ea[sa].ty==="rp"&&(ua?(da=na[sa]).closed=!0:(da=ShapeModifiers.getModifier(ea[sa].ty),na[sa]=da,da.init(this,ea,sa,na),this.shapeModifiers.push(da),oa=!1),fa.push(da));this.addProcessedElement(ea[sa],sa+1)}for(this.removeTransformFromStyleList(),this.closeStyles(ga),ha=fa.length,sa=0;sa<ha;sa+=1)fa[sa].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(ea,na){(ea._opMdf||na.op._mdf||this._isFirstFrame)&&(na.opacity=ea.opacity,na.opacity*=na.op.v,na._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var ea,na,ra,oa,aa,sa,la,ca,ua,da=this.stylesList.length,pa=this.globalData.renderer,ha=this.globalData.canvasContext;for(ea=0;ea<da;ea+=1)if(((ca=(ua=this.stylesList[ea]).type)!=="st"&&ca!=="gs"||ua.wi!==0)&&ua.data._shouldRender&&ua.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(pa.save(),sa=ua.elements,ca==="st"||ca==="gs"?(pa.ctxStrokeStyle(ca==="st"?ua.co:ua.grd),pa.ctxLineWidth(ua.wi),pa.ctxLineCap(ua.lc),pa.ctxLineJoin(ua.lj),pa.ctxMiterLimit(ua.ml||0)):pa.ctxFillStyle(ca==="fl"?ua.co:ua.grd),pa.ctxOpacity(ua.coOp),ca!=="st"&&ca!=="gs"&&ha.beginPath(),pa.ctxTransform(ua.preTransforms.finalTransform.props),ra=sa.length,na=0;na<ra;na+=1){for(ca!=="st"&&ca!=="gs"||(ha.beginPath(),ua.da&&(ha.setLineDash(ua.da),ha.lineDashOffset=ua.do)),aa=(la=sa[na].trNodes).length,oa=0;oa<aa;oa+=1)la[oa].t==="m"?ha.moveTo(la[oa].p[0],la[oa].p[1]):la[oa].t==="c"?ha.bezierCurveTo(la[oa].pts[0],la[oa].pts[1],la[oa].pts[2],la[oa].pts[3],la[oa].pts[4],la[oa].pts[5]):ha.closePath();ca!=="st"&&ca!=="gs"||(pa.ctxStroke(),ua.da&&ha.setLineDash(this.dashResetter))}ca!=="st"&&ca!=="gs"&&this.globalData.renderer.ctxFill(ua.r),pa.restore()}},CVShapeElement.prototype.renderShape=function(ea,na,ra,oa){var aa,sa;for(sa=ea,aa=na.length-1;aa>=0;aa-=1)na[aa].ty==="tr"?(sa=ra[aa].transform,this.renderShapeTransform(ea,sa)):na[aa].ty==="sh"||na[aa].ty==="el"||na[aa].ty==="rc"||na[aa].ty==="sr"?this.renderPath(na[aa],ra[aa]):na[aa].ty==="fl"?this.renderFill(na[aa],ra[aa],sa):na[aa].ty==="st"?this.renderStroke(na[aa],ra[aa],sa):na[aa].ty==="gf"||na[aa].ty==="gs"?this.renderGradientFill(na[aa],ra[aa],sa):na[aa].ty==="gr"?this.renderShape(sa,na[aa].it,ra[aa].it):na[aa].ty;oa&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(ea,na){if(this._isFirstFrame||na._mdf||ea.transforms._mdf){var ra,oa,aa,sa=ea.trNodes,la=na.paths,ca=la._length;sa.length=0;var ua=ea.transforms.finalTransform;for(aa=0;aa<ca;aa+=1){var da=la.shapes[aa];if(da&&da.v){for(oa=da._length,ra=1;ra<oa;ra+=1)ra===1&&sa.push({t:"m",p:ua.applyToPointArray(da.v[0][0],da.v[0][1],0)}),sa.push({t:"c",pts:ua.applyToTriplePoints(da.o[ra-1],da.i[ra],da.v[ra])});oa===1&&sa.push({t:"m",p:ua.applyToPointArray(da.v[0][0],da.v[0][1],0)}),da.c&&oa&&(sa.push({t:"c",pts:ua.applyToTriplePoints(da.o[ra-1],da.i[0],da.v[0])}),sa.push({t:"z"}))}}ea.trNodes=sa}},CVShapeElement.prototype.renderPath=function(ea,na){if(ea.hd!==!0&&ea._shouldRender){var ra,oa=na.styledShapes.length;for(ra=0;ra<oa;ra+=1)this.renderStyledShape(na.styledShapes[ra],na.sh)}},CVShapeElement.prototype.renderFill=function(ea,na,ra){var oa=na.style;(na.c._mdf||this._isFirstFrame)&&(oa.co="rgb("+bmFloor(na.c.v[0])+","+bmFloor(na.c.v[1])+","+bmFloor(na.c.v[2])+")"),(na.o._mdf||ra._opMdf||this._isFirstFrame)&&(oa.coOp=na.o.v*ra.opacity)},CVShapeElement.prototype.renderGradientFill=function(ea,na,ra){var oa,aa=na.style;if(!aa.grd||na.g._mdf||na.s._mdf||na.e._mdf||ea.t!==1&&(na.h._mdf||na.a._mdf)){var sa,la=this.globalData.canvasContext,ca=na.s.v,ua=na.e.v;if(ea.t===1)oa=la.createLinearGradient(ca[0],ca[1],ua[0],ua[1]);else{var da=Math.sqrt(Math.pow(ca[0]-ua[0],2)+Math.pow(ca[1]-ua[1],2)),pa=Math.atan2(ua[1]-ca[1],ua[0]-ca[0]),ha=na.h.v;ha>=1?ha=.99:ha<=-1&&(ha=-.99);var ga=da*ha,fa=Math.cos(pa+na.a.v)*ga+ca[0],ma=Math.sin(pa+na.a.v)*ga+ca[1];oa=la.createRadialGradient(fa,ma,0,ca[0],ca[1],da)}var va=ea.g.p,xa=na.g.c,ya=1;for(sa=0;sa<va;sa+=1)na.g._hasOpacity&&na.g._collapsable&&(ya=na.g.o[2*sa+1]),oa.addColorStop(xa[4*sa]/100,"rgba("+xa[4*sa+1]+","+xa[4*sa+2]+","+xa[4*sa+3]+","+ya+")");aa.grd=oa}aa.coOp=na.o.v*ra.opacity},CVShapeElement.prototype.renderStroke=function(ea,na,ra){var oa=na.style,aa=na.d;aa&&(aa._mdf||this._isFirstFrame)&&(oa.da=aa.dashArray,oa.do=aa.dashoffset[0]),(na.c._mdf||this._isFirstFrame)&&(oa.co="rgb("+bmFloor(na.c.v[0])+","+bmFloor(na.c.v[1])+","+bmFloor(na.c.v[2])+")"),(na.o._mdf||ra._opMdf||this._isFirstFrame)&&(oa.coOp=na.o.v*ra.opacity),(na.w._mdf||this._isFirstFrame)&&(oa.wi=na.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var ea=this.textProperty.currentData;this.renderedLetters=createSizedArray(ea.l?ea.l.length:0);var na=!1;ea.fc?(na=!0,this.values.fill=this.buildColor(ea.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=na;var ra=!1;ea.sc&&(ra=!0,this.values.stroke=this.buildColor(ea.sc),this.values.sWidth=ea.sw);var oa,aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va=this.globalData.fontManager.getFontByName(ea.f),xa=ea.l,ya=this.mHelper;this.stroke=ra,this.values.fValue=ea.finalSize+"px "+this.globalData.fontManager.getFontByName(ea.f).fFamily,aa=ea.finalText.length;var Aa=this.data.singleShape,Ca=.001*ea.tr*ea.finalSize,Sa=0,wa=0,ba=!0,Ea=0;for(oa=0;oa<aa;oa+=1){la=(sa=this.globalData.fontManager.getCharData(ea.finalText[oa],va.fStyle,this.globalData.fontManager.getFontByName(ea.f).fFamily))&&sa.data||{},ya.reset(),Aa&&xa[oa].n&&(Sa=-Ca,wa+=ea.yOffset,wa+=ba?1:0,ba=!1),ha=(da=la.shapes?la.shapes[0].it:[]).length,ya.scale(ea.finalSize/100,ea.finalSize/100),Aa&&this.applyTextPropertiesToMatrix(ea,ya,xa[oa].line,Sa,wa),fa=createSizedArray(ha-1);var $a=0;for(pa=0;pa<ha;pa+=1)if(da[pa].ty==="sh"){for(ua=da[pa].ks.k.i.length,ga=da[pa].ks.k,ma=[],ca=1;ca<ua;ca+=1)ca===1&&ma.push(ya.applyToX(ga.v[0][0],ga.v[0][1],0),ya.applyToY(ga.v[0][0],ga.v[0][1],0)),ma.push(ya.applyToX(ga.o[ca-1][0],ga.o[ca-1][1],0),ya.applyToY(ga.o[ca-1][0],ga.o[ca-1][1],0),ya.applyToX(ga.i[ca][0],ga.i[ca][1],0),ya.applyToY(ga.i[ca][0],ga.i[ca][1],0),ya.applyToX(ga.v[ca][0],ga.v[ca][1],0),ya.applyToY(ga.v[ca][0],ga.v[ca][1],0));ma.push(ya.applyToX(ga.o[ca-1][0],ga.o[ca-1][1],0),ya.applyToY(ga.o[ca-1][0],ga.o[ca-1][1],0),ya.applyToX(ga.i[0][0],ga.i[0][1],0),ya.applyToY(ga.i[0][0],ga.i[0][1],0),ya.applyToX(ga.v[0][0],ga.v[0][1],0),ya.applyToY(ga.v[0][0],ga.v[0][1],0)),fa[$a]=ma,$a+=1}Aa&&(Sa+=xa[oa].l,Sa+=Ca),this.textSpans[Ea]?this.textSpans[Ea].elem=fa:this.textSpans[Ea]={elem:fa},Ea+=1}},CVTextElement.prototype.renderInnerContent=function(){var ea,na,ra,oa,aa,sa;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var la,ca=this.textAnimator.renderedLetters,ua=this.textProperty.currentData.l;na=ua.length;var da,pa,ha=null,ga=null,fa=null,ma=this.globalData.renderer;for(ea=0;ea<na;ea+=1)if(!ua[ea].n){if((la=ca[ea])&&(ma.save(),ma.ctxTransform(la.p),ma.ctxOpacity(la.o)),this.fill){for(la&&la.fc?ha!==la.fc&&(ma.ctxFillStyle(la.fc),ha=la.fc):ha!==this.values.fill&&(ha=this.values.fill,ma.ctxFillStyle(this.values.fill)),oa=(da=this.textSpans[ea].elem).length,this.globalData.canvasContext.beginPath(),ra=0;ra<oa;ra+=1)for(sa=(pa=da[ra]).length,this.globalData.canvasContext.moveTo(pa[0],pa[1]),aa=2;aa<sa;aa+=6)this.globalData.canvasContext.bezierCurveTo(pa[aa],pa[aa+1],pa[aa+2],pa[aa+3],pa[aa+4],pa[aa+5]);this.globalData.canvasContext.closePath(),ma.ctxFill()}if(this.stroke){for(la&&la.sw?fa!==la.sw&&(fa=la.sw,ma.ctxLineWidth(la.sw)):fa!==this.values.sWidth&&(fa=this.values.sWidth,ma.ctxLineWidth(this.values.sWidth)),la&&la.sc?ga!==la.sc&&(ga=la.sc,ma.ctxStrokeStyle(la.sc)):ga!==this.values.stroke&&(ga=this.values.stroke,ma.ctxStrokeStyle(this.values.stroke)),oa=(da=this.textSpans[ea].elem).length,this.globalData.canvasContext.beginPath(),ra=0;ra<oa;ra+=1)for(sa=(pa=da[ra]).length,this.globalData.canvasContext.moveTo(pa[0],pa[1]),aa=2;aa<sa;aa+=6)this.globalData.canvasContext.bezierCurveTo(pa[aa],pa[aa+1],pa[aa+2],pa[aa+3],pa[aa+4],pa[aa+5]);this.globalData.canvasContext.closePath(),ma.ctxStroke()}la&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var ea=createTag("canvas");ea.width=this.assetData.w,ea.height=this.assetData.h;var na,ra,oa=ea.getContext("2d"),aa=this.img.width,sa=this.img.height,la=aa/sa,ca=this.assetData.w/this.assetData.h,ua=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;la>ca&&ua==="xMidYMid slice"||la<ca&&ua!=="xMidYMid slice"?na=(ra=sa)*ca:ra=(na=aa)/ca,oa.drawImage(this.img,(aa-na)/2,(sa-ra)/2,na,ra,0,0,this.assetData.w,this.assetData.h),this.img=ea}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(ea){return new CVShapeElement(ea,this.globalData,this)},CanvasRendererBase.prototype.createText=function(ea){return new CVTextElement(ea,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(ea){return new CVImageElement(ea,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(ea){return new CVSolidElement(ea,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(ea){ea[0]===1&&ea[1]===0&&ea[4]===0&&ea[5]===1&&ea[12]===0&&ea[13]===0||this.canvasContext.transform(ea[0],ea[1],ea[4],ea[5],ea[12],ea[13])},CanvasRendererBase.prototype.ctxOpacity=function(ea){this.canvasContext.globalAlpha*=ea<0?0:ea},CanvasRendererBase.prototype.ctxFillStyle=function(ea){this.canvasContext.fillStyle=ea},CanvasRendererBase.prototype.ctxStrokeStyle=function(ea){this.canvasContext.strokeStyle=ea},CanvasRendererBase.prototype.ctxLineWidth=function(ea){this.canvasContext.lineWidth=ea},CanvasRendererBase.prototype.ctxLineCap=function(ea){this.canvasContext.lineCap=ea},CanvasRendererBase.prototype.ctxLineJoin=function(ea){this.canvasContext.lineJoin=ea},CanvasRendererBase.prototype.ctxMiterLimit=function(ea){this.canvasContext.miterLimit=ea},CanvasRendererBase.prototype.ctxFill=function(ea){this.canvasContext.fill(ea)},CanvasRendererBase.prototype.ctxFillRect=function(ea,na,ra,oa){this.canvasContext.fillRect(ea,na,ra,oa)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(ea){this.renderConfig.clearCanvas?(ea&&(this.globalData.blendMode="source-over"),this.contextData.restore(ea)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(ea){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var na=this.animationItem.container.style;na.width="100%",na.height="100%";var ra="0px 0px 0px";na.transformOrigin=ra,na.mozTransformOrigin=ra,na.webkitTransformOrigin=ra,na["-webkit-transform"]=ra,na.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=ea,this.layers=ea.layers,this.transformCanvas={w:ea.w,h:ea.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(ea,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(ea.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(ea,na){var ra,oa,aa,sa;if(this.reset(),ea?(ra=ea,oa=na,this.canvasContext.canvas.width=ra,this.canvasContext.canvas.height=oa):(this.animationItem.wrapper&&this.animationItem.container?(ra=this.animationItem.wrapper.offsetWidth,oa=this.animationItem.wrapper.offsetHeight):(ra=this.canvasContext.canvas.width,oa=this.canvasContext.canvas.height),this.canvasContext.canvas.width=ra*this.renderConfig.dpr,this.canvasContext.canvas.height=oa*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var la=this.renderConfig.preserveAspectRatio.split(" "),ca=la[1]||"meet",ua=la[0]||"xMidYMid",da=ua.substr(0,4),pa=ua.substr(4);aa=ra/oa,(sa=this.transformCanvas.w/this.transformCanvas.h)>aa&&ca==="meet"||sa<aa&&ca==="slice"?(this.transformCanvas.sx=ra/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=ra/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=oa/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=oa/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=da==="xMid"&&(sa<aa&&ca==="meet"||sa>aa&&ca==="slice")?(ra-this.transformCanvas.w*(oa/this.transformCanvas.h))/2*this.renderConfig.dpr:da==="xMax"&&(sa<aa&&ca==="meet"||sa>aa&&ca==="slice")?(ra-this.transformCanvas.w*(oa/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=pa==="YMid"&&(sa>aa&&ca==="meet"||sa<aa&&ca==="slice")?(oa-this.transformCanvas.h*(ra/this.transformCanvas.w))/2*this.renderConfig.dpr:pa==="YMax"&&(sa>aa&&ca==="meet"||sa<aa&&ca==="slice")?(oa-this.transformCanvas.h*(ra/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=ra/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=oa/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var ea;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),ea=(this.layers?this.layers.length:0)-1;ea>=0;ea-=1)this.elements[ea]&&this.elements[ea].destroy&&this.elements[ea].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(ea,na){if((this.renderedFrame!==ea||this.renderConfig.clearCanvas!==!0||na)&&!this.destroyed&&ea!==-1){var ra;this.renderedFrame=ea,this.globalData.frameNum=ea-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||na,this.globalData.projectInterface.currentFrame=ea;var oa=this.layers.length;for(this.completeLayers||this.checkLayers(ea),ra=oa-1;ra>=0;ra-=1)(this.completeLayers||this.elements[ra])&&this.elements[ra].prepareFrame(ea-this.layers[ra].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),ra=oa-1;ra>=0;ra-=1)(this.completeLayers||this.elements[ra])&&this.elements[ra].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(ea){var na=this.elements;if(!na[ea]&&this.layers[ea].ty!==99){var ra=this.createItem(this.layers[ea],this,this.globalData);na[ea]=ra,ra.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var ea=2*this._length,na=0;for(na=this._length;na<ea;na+=1)this.stack[na]=new CanvasContext;this._length=ea},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(ea){this.cArrPos-=1;var na,ra=this.stack[this.cArrPos],oa=ra.transform,aa=this.cTr.props;for(na=0;na<16;na+=1)aa[na]=oa[na];if(ea){this.nativeContext.restore();var sa=this.stack[this.cArrPos+1];this.appliedFillStyle=sa.fillStyle,this.appliedStrokeStyle=sa.strokeStyle,this.appliedLineWidth=sa.lineWidth,this.appliedLineCap=sa.lineCap,this.appliedLineJoin=sa.lineJoin,this.appliedMiterLimit=sa.miterLimit}this.nativeContext.setTransform(oa[0],oa[1],oa[4],oa[5],oa[12],oa[13]),(ea||ra.opacity!==-1&&this.currentOpacity!==ra.opacity)&&(this.nativeContext.globalAlpha=ra.opacity,this.currentOpacity=ra.opacity),this.currentFillStyle=ra.fillStyle,this.currentStrokeStyle=ra.strokeStyle,this.currentLineWidth=ra.lineWidth,this.currentLineCap=ra.lineCap,this.currentLineJoin=ra.lineJoin,this.currentMiterLimit=ra.miterLimit},CVContextData.prototype.save=function(ea){ea&&this.nativeContext.save();var na=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var ra,oa=this.stack[this.cArrPos];for(ra=0;ra<16;ra+=1)oa.transform[ra]=na[ra];this.cArrPos+=1;var aa=this.stack[this.cArrPos];aa.opacity=oa.opacity,aa.fillStyle=oa.fillStyle,aa.strokeStyle=oa.strokeStyle,aa.lineWidth=oa.lineWidth,aa.lineCap=oa.lineCap,aa.lineJoin=oa.lineJoin,aa.miterLimit=oa.miterLimit},CVContextData.prototype.setOpacity=function(ea){this.stack[this.cArrPos].opacity=ea},CVContextData.prototype.setContext=function(ea){this.nativeContext=ea},CVContextData.prototype.fillStyle=function(ea){this.stack[this.cArrPos].fillStyle!==ea&&(this.currentFillStyle=ea,this.stack[this.cArrPos].fillStyle=ea)},CVContextData.prototype.strokeStyle=function(ea){this.stack[this.cArrPos].strokeStyle!==ea&&(this.currentStrokeStyle=ea,this.stack[this.cArrPos].strokeStyle=ea)},CVContextData.prototype.lineWidth=function(ea){this.stack[this.cArrPos].lineWidth!==ea&&(this.currentLineWidth=ea,this.stack[this.cArrPos].lineWidth=ea)},CVContextData.prototype.lineCap=function(ea){this.stack[this.cArrPos].lineCap!==ea&&(this.currentLineCap=ea,this.stack[this.cArrPos].lineCap=ea)},CVContextData.prototype.lineJoin=function(ea){this.stack[this.cArrPos].lineJoin!==ea&&(this.currentLineJoin=ea,this.stack[this.cArrPos].lineJoin=ea)},CVContextData.prototype.miterLimit=function(ea){this.stack[this.cArrPos].miterLimit!==ea&&(this.currentMiterLimit=ea,this.stack[this.cArrPos].miterLimit=ea)},CVContextData.prototype.transform=function(ea){this.transformMat.cloneFromProps(ea);var na=this.cTr;this.transformMat.multiply(na),na.cloneFromProps(this.transformMat.props);var ra=na.props;this.nativeContext.setTransform(ra[0],ra[1],ra[4],ra[5],ra[12],ra[13])},CVContextData.prototype.opacity=function(ea){var na=this.stack[this.cArrPos].opacity;na*=ea<0?0:ea,this.stack[this.cArrPos].opacity!==na&&(this.currentOpacity!==ea&&(this.nativeContext.globalAlpha=ea,this.currentOpacity=ea),this.stack[this.cArrPos].opacity=na)},CVContextData.prototype.fill=function(ea){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(ea)},CVContextData.prototype.fillRect=function(ea,na,ra,oa){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(ea,na,ra,oa)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var ea,na=this.canvasContext;for(na.beginPath(),na.moveTo(0,0),na.lineTo(this.data.w,0),na.lineTo(this.data.w,this.data.h),na.lineTo(0,this.data.h),na.lineTo(0,0),na.clip(),ea=this.layers.length-1;ea>=0;ea-=1)(this.completeLayers||this.elements[ea])&&this.elements[ea].renderFrame()},CVCompElement.prototype.destroy=function(){var ea;for(ea=this.layers.length-1;ea>=0;ea-=1)this.elements[ea]&&this.elements[ea].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(ea){return new CVCompElement(ea,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(ea){return new CVCompElement(ea,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var ea=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var na=this.finalTransform.mat.toCSS();ea.transform=na,ea.webkitTransform=na}this.finalTransform._opMdf&&(ea.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var ea;this.data.hasMask?((ea=createNS("rect")).setAttribute("width",this.data.sw),ea.setAttribute("height",this.data.sh),ea.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((ea=createTag("div")).style.width=this.data.sw+"px",ea.style.height=this.data.sh+"px",ea.style.backgroundColor=this.data.sc),this.layerElement.appendChild(ea)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var ea;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),ea=this.svgElement;else{ea=createNS("svg");var na=this.comp.data?this.comp.data:this.globalData.compSize;ea.setAttribute("width",na.w),ea.setAttribute("height",na.h),ea.appendChild(this.shapesContainer),this.layerElement.appendChild(ea)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=ea},HShapeElement.prototype.getTransformedPoint=function(ea,na){var ra,oa=ea.length;for(ra=0;ra<oa;ra+=1)na=ea[ra].mProps.v.applyToPointArray(na[0],na[1],0);return na},HShapeElement.prototype.calculateShapeBoundingBox=function(ea,na){var ra,oa,aa,sa,la,ca=ea.sh.v,ua=ea.transformers,da=ca._length;if(!(da<=1)){for(ra=0;ra<da-1;ra+=1)oa=this.getTransformedPoint(ua,ca.v[ra]),aa=this.getTransformedPoint(ua,ca.o[ra]),sa=this.getTransformedPoint(ua,ca.i[ra+1]),la=this.getTransformedPoint(ua,ca.v[ra+1]),this.checkBounds(oa,aa,sa,la,na);ca.c&&(oa=this.getTransformedPoint(ua,ca.v[ra]),aa=this.getTransformedPoint(ua,ca.o[ra]),sa=this.getTransformedPoint(ua,ca.i[0]),la=this.getTransformedPoint(ua,ca.v[0]),this.checkBounds(oa,aa,sa,la,na))}},HShapeElement.prototype.checkBounds=function(ea,na,ra,oa,aa){this.getBoundsOfCurve(ea,na,ra,oa);var sa=this.shapeBoundingBox;aa.x=bmMin(sa.left,aa.x),aa.xMax=bmMax(sa.right,aa.xMax),aa.y=bmMin(sa.top,aa.y),aa.yMax=bmMax(sa.bottom,aa.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(ea,na,ra,oa){for(var aa,sa,la,ca,ua,da,pa,ha=[[ea[0],oa[0]],[ea[1],oa[1]]],ga=0;ga<2;++ga)sa=6*ea[ga]-12*na[ga]+6*ra[ga],aa=-3*ea[ga]+9*na[ga]-9*ra[ga]+3*oa[ga],la=3*na[ga]-3*ea[ga],sa|=0,la|=0,(aa|=0)===0&&sa===0||(aa===0?(ca=-la/sa)>0&&ca<1&&ha[ga].push(this.calculateF(ca,ea,na,ra,oa,ga)):(ua=sa*sa-4*la*aa)>=0&&((da=(-sa+bmSqrt(ua))/(2*aa))>0&&da<1&&ha[ga].push(this.calculateF(da,ea,na,ra,oa,ga)),(pa=(-sa-bmSqrt(ua))/(2*aa))>0&&pa<1&&ha[ga].push(this.calculateF(pa,ea,na,ra,oa,ga))));this.shapeBoundingBox.left=bmMin.apply(null,ha[0]),this.shapeBoundingBox.top=bmMin.apply(null,ha[1]),this.shapeBoundingBox.right=bmMax.apply(null,ha[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,ha[1])},HShapeElement.prototype.calculateF=function(ea,na,ra,oa,aa,sa){return bmPow(1-ea,3)*na[sa]+3*bmPow(1-ea,2)*ea*ra[sa]+3*(1-ea)*bmPow(ea,2)*oa[sa]+bmPow(ea,3)*aa[sa]},HShapeElement.prototype.calculateBoundingBox=function(ea,na){var ra,oa=ea.length;for(ra=0;ra<oa;ra+=1)ea[ra]&&ea[ra].sh?this.calculateShapeBoundingBox(ea[ra],na):ea[ra]&&ea[ra].it?this.calculateBoundingBox(ea[ra].it,na):ea[ra]&&ea[ra].style&&ea[ra].w&&this.expandStrokeBoundingBox(ea[ra].w,na)},HShapeElement.prototype.expandStrokeBoundingBox=function(ea,na){var ra=0;if(ea.keyframes){for(var oa=0;oa<ea.keyframes.length;oa+=1){var aa=ea.keyframes[oa].s;aa>ra&&(ra=aa)}ra*=ea.mult}else ra=ea.v*ea.mult;na.x-=ra,na.xMax+=ra,na.y-=ra,na.yMax+=ra},HShapeElement.prototype.currentBoxContains=function(ea){return this.currentBBox.x<=ea.x&&this.currentBBox.y<=ea.y&&this.currentBBox.width+this.currentBBox.x>=ea.x+ea.width&&this.currentBBox.height+this.currentBBox.y>=ea.y+ea.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var ea=this.tempBoundingBox,na=999999;if(ea.x=na,ea.xMax=-na,ea.y=na,ea.yMax=-na,this.calculateBoundingBox(this.itemsData,ea),ea.width=ea.xMax<ea.x?0:ea.xMax-ea.x,ea.height=ea.yMax<ea.y?0:ea.yMax-ea.y,this.currentBoxContains(ea))return;var ra=!1;if(this.currentBBox.w!==ea.width&&(this.currentBBox.w=ea.width,this.shapeCont.setAttribute("width",ea.width),ra=!0),this.currentBBox.h!==ea.height&&(this.currentBBox.h=ea.height,this.shapeCont.setAttribute("height",ea.height),ra=!0),ra||this.currentBBox.x!==ea.x||this.currentBBox.y!==ea.y){this.currentBBox.w=ea.width,this.currentBBox.h=ea.height,this.currentBBox.x=ea.x,this.currentBBox.y=ea.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var oa=this.shapeCont.style,aa="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";oa.transform=aa,oa.webkitTransform=aa}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var ea=createNS("g");this.maskedElement.appendChild(ea),this.innerElem=ea}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var ea=this.textProperty.currentData;this.renderedLetters=createSizedArray(ea.l?ea.l.length:0);var na=this.innerElem.style,ra=ea.fc?this.buildColor(ea.fc):"rgba(0,0,0,0)";na.fill=ra,na.color=ra,ea.sc&&(na.stroke=this.buildColor(ea.sc),na.strokeWidth=ea.sw+"px");var oa,aa,sa=this.globalData.fontManager.getFontByName(ea.f);if(!this.globalData.fontManager.chars)if(na.fontSize=ea.finalSize+"px",na.lineHeight=ea.finalSize+"px",sa.fClass)this.innerElem.className=sa.fClass;else{na.fontFamily=sa.fFamily;var la=ea.fWeight,ca=ea.fStyle;na.fontStyle=ca,na.fontWeight=la}var ua,da,pa,ha=ea.l;aa=ha.length;var ga,fa=this.mHelper,ma="",va=0;for(oa=0;oa<aa;oa+=1){if(this.globalData.fontManager.chars?(this.textPaths[va]?ua=this.textPaths[va]:((ua=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),ua.setAttribute("stroke-linejoin",lineJoinEnum[2]),ua.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[va]?pa=(da=this.textSpans[va]).children[0]:((da=createTag("div")).style.lineHeight=0,(pa=createNS("svg")).appendChild(ua),styleDiv(da)))):this.isMasked?ua=this.textPaths[va]?this.textPaths[va]:createNS("text"):this.textSpans[va]?(da=this.textSpans[va],ua=this.textPaths[va]):(styleDiv(da=createTag("span")),styleDiv(ua=createTag("span")),da.appendChild(ua)),this.globalData.fontManager.chars){var xa,ya=this.globalData.fontManager.getCharData(ea.finalText[oa],sa.fStyle,this.globalData.fontManager.getFontByName(ea.f).fFamily);if(xa=ya?ya.data:null,fa.reset(),xa&&xa.shapes&&xa.shapes.length&&(ga=xa.shapes[0].it,fa.scale(ea.finalSize/100,ea.finalSize/100),ma=this.createPathShape(fa,ga),ua.setAttribute("d",ma)),this.isMasked)this.innerElem.appendChild(ua);else{if(this.innerElem.appendChild(da),xa&&xa.shapes){document.body.appendChild(pa);var Aa=pa.getBBox();pa.setAttribute("width",Aa.width+2),pa.setAttribute("height",Aa.height+2),pa.setAttribute("viewBox",Aa.x-1+" "+(Aa.y-1)+" "+(Aa.width+2)+" "+(Aa.height+2));var Ca=pa.style,Sa="translate("+(Aa.x-1)+"px,"+(Aa.y-1)+"px)";Ca.transform=Sa,Ca.webkitTransform=Sa,ha[oa].yOffset=Aa.y-1}else pa.setAttribute("width",1),pa.setAttribute("height",1);da.appendChild(pa)}}else if(ua.textContent=ha[oa].val,ua.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(ua);else{this.innerElem.appendChild(da);var wa=ua.style,ba="translate3d(0,"+-ea.finalSize/1.2+"px,0)";wa.transform=ba,wa.webkitTransform=ba}this.isMasked?this.textSpans[va]=ua:this.textSpans[va]=da,this.textSpans[va].style.display="block",this.textPaths[va]=ua,va+=1}for(;va<this.textSpans.length;)this.textSpans[va].style.display="none",va+=1},HTextElement.prototype.renderInnerContent=function(){var ea;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),ea=this.svgElement.style;var na="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";ea.transform=na,ea.webkitTransform=na}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var ra,oa,aa,sa,la,ca=0,ua=this.textAnimator.renderedLetters,da=this.textProperty.currentData.l;for(oa=da.length,ra=0;ra<oa;ra+=1)da[ra].n?ca+=1:(sa=this.textSpans[ra],la=this.textPaths[ra],aa=ua[ca],ca+=1,aa._mdf.m&&(this.isMasked?sa.setAttribute("transform",aa.m):(sa.style.webkitTransform=aa.m,sa.style.transform=aa.m)),sa.style.opacity=aa.o,aa.sw&&aa._mdf.sw&&la.setAttribute("stroke-width",aa.sw),aa.sc&&aa._mdf.sc&&la.setAttribute("stroke",aa.sc),aa.fc&&aa._mdf.fc&&(la.setAttribute("fill",aa.fc),la.style.color=aa.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var pa=this.innerElem.getBBox();if(this.currentBBox.w!==pa.width&&(this.currentBBox.w=pa.width,this.svgElement.setAttribute("width",pa.width)),this.currentBBox.h!==pa.height&&(this.currentBBox.h=pa.height,this.svgElement.setAttribute("height",pa.height)),this.currentBBox.w!==pa.width+2||this.currentBBox.h!==pa.height+2||this.currentBBox.x!==pa.x-1||this.currentBBox.y!==pa.y-1){this.currentBBox.w=pa.width+2,this.currentBBox.h=pa.height+2,this.currentBBox.x=pa.x-1,this.currentBBox.y=pa.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),ea=this.svgElement.style;var ha="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";ea.transform=ha,ea.webkitTransform=ha}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var ea,na,ra,oa,aa=this.comp.threeDElements.length;for(ea=0;ea<aa;ea+=1)if((na=this.comp.threeDElements[ea]).type==="3d"){ra=na.perspectiveElem.style,oa=na.container.style;var sa=this.pe.v+"px",la="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";ra.perspective=sa,ra.webkitPerspective=sa,oa.transformOrigin="0px 0px 0px",oa.mozTransformOrigin="0px 0px 0px",oa.webkitTransformOrigin="0px 0px 0px",ra.transform=la,ra.webkitTransform=la}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var ea,na,ra=this._isFirstFrame;if(this.hierarchy)for(na=this.hierarchy.length,ea=0;ea<na;ea+=1)ra=this.hierarchy[ea].finalTransform.mProp._mdf||ra;if(ra||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(ea=na=this.hierarchy.length-1;ea>=0;ea-=1){var oa=this.hierarchy[ea].finalTransform.mProp;this.mat.translate(-oa.p.v[0],-oa.p.v[1],oa.p.v[2]),this.mat.rotateX(-oa.or.v[0]).rotateY(-oa.or.v[1]).rotateZ(oa.or.v[2]),this.mat.rotateX(-oa.rx.v).rotateY(-oa.ry.v).rotateZ(oa.rz.v),this.mat.scale(1/oa.s.v[0],1/oa.s.v[1],1/oa.s.v[2]),this.mat.translate(oa.a.v[0],oa.a.v[1],oa.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var aa;aa=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var sa=Math.sqrt(Math.pow(aa[0],2)+Math.pow(aa[1],2)+Math.pow(aa[2],2)),la=[aa[0]/sa,aa[1]/sa,aa[2]/sa],ca=Math.sqrt(la[2]*la[2]+la[0]*la[0]),ua=Math.atan2(la[1],ca),da=Math.atan2(la[0],-la[2]);this.mat.rotateY(da).rotateX(-ua)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var pa=!this._prevMat.equals(this.mat);if((pa||this.pe._mdf)&&this.comp.threeDElements){var ha,ga,fa;for(na=this.comp.threeDElements.length,ea=0;ea<na;ea+=1)if((ha=this.comp.threeDElements[ea]).type==="3d"){if(pa){var ma=this.mat.toCSS();(fa=ha.container.style).transform=ma,fa.webkitTransform=ma}this.pe._mdf&&((ga=ha.perspectiveElem.style).perspective=this.pe.v+"px",ga.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(ea){this.prepareProperties(ea,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var ea=this.globalData.getAssetsPath(this.assetData),na=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",ea),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(na),na.crossOrigin="anonymous",na.src=ea,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(ea,na){var ra=ea.getBaseElement();if(ra){var oa=this.layers[na];if(oa.ddd&&this.supports3d)this.addTo3dContainer(ra,na);else if(this.threeDElements)this.addTo3dContainer(ra,na);else{for(var aa,sa,la=0;la<na;)this.elements[la]&&this.elements[la]!==!0&&this.elements[la].getBaseElement&&(sa=this.elements[la],aa=(this.layers[la].ddd?this.getThreeDContainerByPos(la):sa.getBaseElement())||aa),la+=1;aa?oa.ddd&&this.supports3d||this.layerElement.insertBefore(ra,aa):oa.ddd&&this.supports3d||this.layerElement.appendChild(ra)}}},HybridRendererBase.prototype.createShape=function(ea){return this.supports3d?new HShapeElement(ea,this.globalData,this):new SVGShapeElement(ea,this.globalData,this)},HybridRendererBase.prototype.createText=function(ea){return this.supports3d?new HTextElement(ea,this.globalData,this):new SVGTextLottieElement(ea,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(ea){return this.camera=new HCameraElement(ea,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(ea){return this.supports3d?new HImageElement(ea,this.globalData,this):new IImageElement(ea,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(ea){return this.supports3d?new HSolidElement(ea,this.globalData,this):new ISolidElement(ea,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(ea){for(var na=0,ra=this.threeDElements.length;na<ra;){if(this.threeDElements[na].startPos<=ea&&this.threeDElements[na].endPos>=ea)return this.threeDElements[na].perspectiveElem;na+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(ea,na){var ra,oa,aa=createTag("div");styleDiv(aa);var sa=createTag("div");if(styleDiv(sa),na==="3d"){(ra=aa.style).width=this.globalData.compSize.w+"px",ra.height=this.globalData.compSize.h+"px",ra.webkitTransformOrigin="50% 50%",ra.mozTransformOrigin="50% 50%",ra.transformOrigin="50% 50%";var la="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(oa=sa.style).transform=la,oa.webkitTransform=la}aa.appendChild(sa);var ca={container:sa,perspectiveElem:aa,startPos:ea,endPos:ea,type:na};return this.threeDElements.push(ca),ca},HybridRendererBase.prototype.build3dContainers=function(){var ea,na,ra=this.layers.length,oa="";for(ea=0;ea<ra;ea+=1)this.layers[ea].ddd&&this.layers[ea].ty!==3?(oa!=="3d"&&(oa="3d",na=this.createThreeDContainer(ea,"3d")),na.endPos=Math.max(na.endPos,ea)):(oa!=="2d"&&(oa="2d",na=this.createThreeDContainer(ea,"2d")),na.endPos=Math.max(na.endPos,ea));for(ea=(ra=this.threeDElements.length)-1;ea>=0;ea-=1)this.resizerElem.appendChild(this.threeDElements[ea].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(ea,na){for(var ra=0,oa=this.threeDElements.length;ra<oa;){if(na<=this.threeDElements[ra].endPos){for(var aa,sa=this.threeDElements[ra].startPos;sa<na;)this.elements[sa]&&this.elements[sa].getBaseElement&&(aa=this.elements[sa].getBaseElement()),sa+=1;aa?this.threeDElements[ra].container.insertBefore(ea,aa):this.threeDElements[ra].container.appendChild(ea);break}ra+=1}},HybridRendererBase.prototype.configAnimation=function(ea){var na=createTag("div"),ra=this.animationItem.wrapper,oa=na.style;oa.width=ea.w+"px",oa.height=ea.h+"px",this.resizerElem=na,styleDiv(na),oa.transformStyle="flat",oa.mozTransformStyle="flat",oa.webkitTransformStyle="flat",this.renderConfig.className&&na.setAttribute("class",this.renderConfig.className),ra.appendChild(na),oa.overflow="hidden";var aa=createNS("svg");aa.setAttribute("width","1"),aa.setAttribute("height","1"),styleDiv(aa),this.resizerElem.appendChild(aa);var sa=createNS("defs");aa.appendChild(sa),this.data=ea,this.setupGlobalData(ea,aa),this.globalData.defs=sa,this.layers=ea.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var ea;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var na=this.layers?this.layers.length:0;for(ea=0;ea<na;ea+=1)this.elements[ea]&&this.elements[ea].destroy&&this.elements[ea].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var ea,na,ra,oa,aa=this.animationItem.wrapper.offsetWidth,sa=this.animationItem.wrapper.offsetHeight,la=aa/sa;this.globalData.compSize.w/this.globalData.compSize.h>la?(ea=aa/this.globalData.compSize.w,na=aa/this.globalData.compSize.w,ra=0,oa=(sa-this.globalData.compSize.h*(aa/this.globalData.compSize.w))/2):(ea=sa/this.globalData.compSize.h,na=sa/this.globalData.compSize.h,ra=(aa-this.globalData.compSize.w*(sa/this.globalData.compSize.h))/2,oa=0);var ca=this.resizerElem.style;ca.webkitTransform="matrix3d("+ea+",0,0,0,0,"+na+",0,0,0,0,1,0,"+ra+","+oa+",0,1)",ca.transform=ca.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var ea,na=this.globalData.compSize.w,ra=this.globalData.compSize.h,oa=this.threeDElements.length;for(ea=0;ea<oa;ea+=1){var aa=this.threeDElements[ea].perspectiveElem.style;aa.webkitPerspective=Math.sqrt(Math.pow(na,2)+Math.pow(ra,2))+"px",aa.perspective=aa.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(ea){var na,ra=ea.length,oa=createTag("div");for(na=0;na<ra;na+=1)if(ea[na].xt){var aa=this.createComp(ea[na],oa,this.globalData.comp,null);aa.initExpressions(),this.globalData.projectInterface.registerComposition(aa)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(ea,na){for(var ra,oa=0;oa<na;)this.elements[oa]&&this.elements[oa].getBaseElement&&(ra=this.elements[oa].getBaseElement()),oa+=1;ra?this.layerElement.insertBefore(ea,ra):this.layerElement.appendChild(ea)},HCompElement.prototype.createComp=function(ea){return this.supports3d?new HCompElement(ea,this.globalData,this):new SVGCompElement(ea,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(ea){return this.supports3d?new HCompElement(ea,this.globalData,this):new SVGCompElement(ea,this.globalData,this)};var CompExpressionInterface=function(ea){function na(ra){for(var oa=0,aa=ea.layers.length;oa<aa;){if(ea.layers[oa].nm===ra||ea.layers[oa].ind===ra)return ea.elements[oa].layerInterface;oa+=1}return null}return Object.defineProperty(na,"_name",{value:ea.data.nm}),na.layer=na,na.pixelAspect=1,na.height=ea.data.h||ea.globalData.compSize.h,na.width=ea.data.w||ea.globalData.compSize.w,na.pixelAspect=1,na.frameDuration=1/ea.globalData.frameRate,na.displayStartTime=0,na.numLayers=ea.layers.length,na};function _typeof$2(ea){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}function seedRandom(ea,na){var ra=this,oa=na.pow(256,6),aa=na.pow(2,52),sa=2*aa;function la(pa){var ha,ga=pa.length,fa=this,ma=0,va=fa.i=fa.j=0,xa=fa.S=[];for(ga||(pa=[ga++]);ma<256;)xa[ma]=ma++;for(ma=0;ma<256;ma++)xa[ma]=xa[va=255&va+pa[ma%ga]+(ha=xa[ma])],xa[va]=ha;fa.g=function(ya){for(var Aa,Ca=0,Sa=fa.i,wa=fa.j,ba=fa.S;ya--;)Aa=ba[Sa=255&Sa+1],Ca=256*Ca+ba[255&(ba[Sa]=ba[wa=255&wa+Aa])+(ba[wa]=Aa)];return fa.i=Sa,fa.j=wa,Ca}}function ca(pa,ha){return ha.i=pa.i,ha.j=pa.j,ha.S=pa.S.slice(),ha}function ua(pa,ha){for(var ga,fa=pa+"",ma=0;ma<fa.length;)ha[255&ma]=255&(ga^=19*ha[255&ma])+fa.charCodeAt(ma++);return da(ha)}function da(pa){return String.fromCharCode.apply(0,pa)}na.seedrandom=function(pa,ha,ga){var fa=[],ma=ua(function ya(Aa,Ca){var Sa,wa=[],ba=_typeof$2(Aa);if(Ca&&ba=="object")for(Sa in Aa)try{wa.push(ya(Aa[Sa],Ca-1))}catch{}return wa.length?wa:ba=="string"?Aa:Aa+"\0"}((ha=ha===!0?{entropy:!0}:ha||{}).entropy?[pa,da(ea)]:pa===null?function(){try{var ya=new Uint8Array(256);return(ra.crypto||ra.msCrypto).getRandomValues(ya),da(ya)}catch{var Aa=ra.navigator,Ca=Aa&&Aa.plugins;return[+new Date,ra,Ca,ra.screen,da(ea)]}}():pa,3),fa),va=new la(fa),xa=function(){for(var ya=va.g(6),Aa=oa,Ca=0;ya<aa;)ya=256*(ya+Ca),Aa*=256,Ca=va.g(1);for(;ya>=sa;)ya/=2,Aa/=2,Ca>>>=1;return(ya+Ca)/Aa};return xa.int32=function(){return 0|va.g(4)},xa.quick=function(){return va.g(4)/4294967296},xa.double=xa,ua(da(va.S),ea),(ha.pass||ga||function(ya,Aa,Ca,Sa){return Sa&&(Sa.S&&ca(Sa,va),ya.state=function(){return ca(va,{})}),Ca?(na.random=ya,Aa):ya})(xa,ma,"global"in ha?ha.global:this==na,ha.state)},ua(na.random(),ea)}function initialize$2(ea){seedRandom([],ea)}var propTypes={SHAPE:"shape"};function _typeof$1(ea){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(ea){return ea.constructor===Array||ea.constructor===Float32Array}function isNumerable(ea,na){return ea==="number"||na instanceof Number||ea==="boolean"||ea==="string"}function $bm_neg(ea){var na=_typeof$1(ea);if(na==="number"||ea instanceof Number||na==="boolean")return-ea;if($bm_isInstanceOfArray(ea)){var ra,oa=ea.length,aa=[];for(ra=0;ra<oa;ra+=1)aa[ra]=-ea[ra];return aa}return ea.propType?ea.v:-ea}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(ea,na){var ra=_typeof$1(ea),oa=_typeof$1(na);if(isNumerable(ra,ea)&&isNumerable(oa,na)||ra==="string"||oa==="string")return ea+na;if($bm_isInstanceOfArray(ea)&&isNumerable(oa,na))return(ea=ea.slice(0))[0]+=na,ea;if(isNumerable(ra,ea)&&$bm_isInstanceOfArray(na))return(na=na.slice(0))[0]=ea+na[0],na;if($bm_isInstanceOfArray(ea)&&$bm_isInstanceOfArray(na)){for(var aa=0,sa=ea.length,la=na.length,ca=[];aa<sa||aa<la;)(typeof ea[aa]=="number"||ea[aa]instanceof Number)&&(typeof na[aa]=="number"||na[aa]instanceof Number)?ca[aa]=ea[aa]+na[aa]:ca[aa]=na[aa]===void 0?ea[aa]:ea[aa]||na[aa],aa+=1;return ca}return 0}var add=sum;function sub(ea,na){var ra=_typeof$1(ea),oa=_typeof$1(na);if(isNumerable(ra,ea)&&isNumerable(oa,na))return ra==="string"&&(ea=parseInt(ea,10)),oa==="string"&&(na=parseInt(na,10)),ea-na;if($bm_isInstanceOfArray(ea)&&isNumerable(oa,na))return(ea=ea.slice(0))[0]-=na,ea;if(isNumerable(ra,ea)&&$bm_isInstanceOfArray(na))return(na=na.slice(0))[0]=ea-na[0],na;if($bm_isInstanceOfArray(ea)&&$bm_isInstanceOfArray(na)){for(var aa=0,sa=ea.length,la=na.length,ca=[];aa<sa||aa<la;)(typeof ea[aa]=="number"||ea[aa]instanceof Number)&&(typeof na[aa]=="number"||na[aa]instanceof Number)?ca[aa]=ea[aa]-na[aa]:ca[aa]=na[aa]===void 0?ea[aa]:ea[aa]||na[aa],aa+=1;return ca}return 0}function mul(ea,na){var ra,oa,aa,sa=_typeof$1(ea),la=_typeof$1(na);if(isNumerable(sa,ea)&&isNumerable(la,na))return ea*na;if($bm_isInstanceOfArray(ea)&&isNumerable(la,na)){for(aa=ea.length,ra=createTypedArray("float32",aa),oa=0;oa<aa;oa+=1)ra[oa]=ea[oa]*na;return ra}if(isNumerable(sa,ea)&&$bm_isInstanceOfArray(na)){for(aa=na.length,ra=createTypedArray("float32",aa),oa=0;oa<aa;oa+=1)ra[oa]=ea*na[oa];return ra}return 0}function div(ea,na){var ra,oa,aa,sa=_typeof$1(ea),la=_typeof$1(na);if(isNumerable(sa,ea)&&isNumerable(la,na))return ea/na;if($bm_isInstanceOfArray(ea)&&isNumerable(la,na)){for(aa=ea.length,ra=createTypedArray("float32",aa),oa=0;oa<aa;oa+=1)ra[oa]=ea[oa]/na;return ra}if(isNumerable(sa,ea)&&$bm_isInstanceOfArray(na)){for(aa=na.length,ra=createTypedArray("float32",aa),oa=0;oa<aa;oa+=1)ra[oa]=ea/na[oa];return ra}return 0}function mod(ea,na){return typeof ea=="string"&&(ea=parseInt(ea,10)),typeof na=="string"&&(na=parseInt(na,10)),ea%na}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(ea,na,ra){if(na>ra){var oa=ra;ra=na,na=oa}return Math.min(Math.max(ea,na),ra)}function radiansToDegrees(ea){return ea/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(ea){return ea*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(ea,na){if(typeof ea=="number"||ea instanceof Number)return na=na||0,Math.abs(ea-na);var ra;na||(na=helperLengthArray);var oa=Math.min(ea.length,na.length),aa=0;for(ra=0;ra<oa;ra+=1)aa+=Math.pow(na[ra]-ea[ra],2);return Math.sqrt(aa)}function normalize(ea){return div(ea,length(ea))}function rgbToHsl(ea){var na,ra,oa=ea[0],aa=ea[1],sa=ea[2],la=Math.max(oa,aa,sa),ca=Math.min(oa,aa,sa),ua=(la+ca)/2;if(la===ca)na=0,ra=0;else{var da=la-ca;switch(ra=ua>.5?da/(2-la-ca):da/(la+ca),la){case oa:na=(aa-sa)/da+(aa<sa?6:0);break;case aa:na=(sa-oa)/da+2;break;case sa:na=(oa-aa)/da+4}na/=6}return[na,ra,ua,ea[3]]}function hue2rgb(ea,na,ra){return ra<0&&(ra+=1),ra>1&&(ra-=1),ra<1/6?ea+6*(na-ea)*ra:ra<.5?na:ra<2/3?ea+(na-ea)*(2/3-ra)*6:ea}function hslToRgb(ea){var na,ra,oa,aa=ea[0],sa=ea[1],la=ea[2];if(sa===0)na=la,oa=la,ra=la;else{var ca=la<.5?la*(1+sa):la+sa-la*sa,ua=2*la-ca;na=hue2rgb(ua,ca,aa+1/3),ra=hue2rgb(ua,ca,aa),oa=hue2rgb(ua,ca,aa-1/3)}return[na,ra,oa,ea[3]]}function linear(ea,na,ra,oa,aa){if(oa!==void 0&&aa!==void 0||(oa=na,aa=ra,na=0,ra=1),ra<na){var sa=ra;ra=na,na=sa}if(ea<=na)return oa;if(ea>=ra)return aa;var la,ca=ra===na?0:(ea-na)/(ra-na);if(!oa.length)return oa+(aa-oa)*ca;var ua=oa.length,da=createTypedArray("float32",ua);for(la=0;la<ua;la+=1)da[la]=oa[la]+(aa[la]-oa[la])*ca;return da}function random(ea,na){if(na===void 0&&(ea===void 0?(ea=0,na=1):(na=ea,ea=void 0)),na.length){var ra,oa=na.length;ea||(ea=createTypedArray("float32",oa));var aa=createTypedArray("float32",oa),sa=BMMath.random();for(ra=0;ra<oa;ra+=1)aa[ra]=ea[ra]+sa*(na[ra]-ea[ra]);return aa}return ea===void 0&&(ea=0),ea+BMMath.random()*(na-ea)}function createPath(ea,na,ra,oa){var aa,sa=ea.length,la=shapePool.newElement();la.setPathData(!!oa,sa);var ca,ua,da=[0,0];for(aa=0;aa<sa;aa+=1)ca=na&&na[aa]?na[aa]:da,ua=ra&&ra[aa]?ra[aa]:da,la.setTripleAt(ea[aa][0],ea[aa][1],ua[0]+ea[aa][0],ua[1]+ea[aa][1],ca[0]+ea[aa][0],ca[1]+ea[aa][1],aa,!0);return la}function initiateExpression(elem,data,property){function noOp(ea){return ea}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function(ea,na){var ra,oa,aa=this.pv.length?this.pv.length:1,sa=createTypedArray("float32",aa),la=Math.floor(5*time);for(ra=0,oa=0;ra<la;){for(oa=0;oa<aa;oa+=1)sa[oa]+=-na+2*na*BMMath.random();ra+=1}var ca=5*time,ua=ca-Math.floor(ca),da=createTypedArray("float32",aa);if(aa>1){for(oa=0;oa<aa;oa+=1)da[oa]=this.pv[oa]+sa[oa]+(-na+2*na*BMMath.random())*ua;return da}return this.pv+sa[0]+(-na+2*na*BMMath.random())*ua}.bind(this);function loopInDuration(ea,na){return loopIn(ea,na,!0)}function loopOutDuration(ea,na){return loopOut(ea,na,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(ea,na){var ra=[na[0]-ea[0],na[1]-ea[1],na[2]-ea[2]],oa=Math.atan2(ra[0],Math.sqrt(ra[1]*ra[1]+ra[2]*ra[2]))/degToRads;return[-Math.atan2(ra[1],ra[2])/degToRads,oa,0]}function easeOut(ea,na,ra,oa,aa){return applyEase(easeOutBez,ea,na,ra,oa,aa)}function easeIn(ea,na,ra,oa,aa){return applyEase(easeInBez,ea,na,ra,oa,aa)}function ease(ea,na,ra,oa,aa){return applyEase(easeInOutBez,ea,na,ra,oa,aa)}function applyEase(ea,na,ra,oa,aa,sa){aa===void 0?(aa=ra,sa=oa):na=(na-ra)/(oa-ra),na>1?na=1:na<0&&(na=0);var la=ea(na);if($bm_isInstanceOfArray(aa)){var ca,ua=aa.length,da=createTypedArray("float32",ua);for(ca=0;ca<ua;ca+=1)da[ca]=(sa[ca]-aa[ca])*la+aa[ca];return da}return(sa-aa)*la+aa}function nearestKey(ea){var na,ra,oa,aa=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(ra=-1,(ea*=elem.comp.globalData.frameRate)<data.k[0].t)ra=1,oa=data.k[0].t;else{for(na=0;na<aa-1;na+=1){if(ea===data.k[na].t){ra=na+1,oa=data.k[na].t;break}if(ea>data.k[na].t&&ea<data.k[na+1].t){ea-data.k[na].t>data.k[na+1].t-ea?(ra=na+2,oa=data.k[na+1].t):(ra=na+1,oa=data.k[na].t);break}}ra===-1&&(ra=na+1,oa=data.k[na].t)}else ra=0,oa=0;var sa={};return sa.index=ra,sa.time=oa/elem.comp.globalData.frameRate,sa}function key(ea){var na,ra,oa;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+ea);ea-=1,na={time:data.k[ea].t/elem.comp.globalData.frameRate,value:[]};var aa=Object.prototype.hasOwnProperty.call(data.k[ea],"s")?data.k[ea].s:data.k[ea-1].e;for(oa=aa.length,ra=0;ra<oa;ra+=1)na[ra]=aa[ra],na.value[ra]=aa[ra];return na}function framesToTime(ea,na){return na||(na=elem.comp.globalData.frameRate),ea/na}function timeToFrames(ea,na){return ea||ea===0||(ea=time),na||(na=elem.comp.globalData.frameRate),ea*na}function seedRandom(ea){BMMath.seedrandom(randSeed+ea)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(ea,na){return typeof value=="string"?na===void 0?value.substring(ea):value.substring(ea,na):""}function substr(ea,na){return typeof value=="string"?na===void 0?value.substr(ea):value.substr(ea,na):""}function posterizeTime(ea){time=ea===0?0:Math.floor(time*ea)/ea,value=valueAtTime(time)}var index=elem.data.ind;!elem.hierarchy||elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(ea){return value=ea,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!elem.hierarchy||!elem.hierarchy.length)&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var ea={};return ea.initExpressions=function(na){var ra=0,oa=[];na.renderer.compInterface=CompExpressionInterface(na.renderer),na.renderer.globalData.projectInterface.registerComposition(na.renderer),na.renderer.globalData.pushExpression=function(){ra+=1},na.renderer.globalData.popExpression=function(){(ra-=1)===0&&function(){var aa,sa=oa.length;for(aa=0;aa<sa;aa+=1)oa[aa].release();oa.length=0}()},na.renderer.globalData.registerExpressionProperty=function(aa){oa.indexOf(aa)===-1&&oa.push(aa)}},ea.resetFrame=ExpressionManager.resetFrame,ea}(),MaskManagerInterface=function(){function ea(na,ra){this._mask=na,this._data=ra}return Object.defineProperty(ea.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(ea.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(na){var ra,oa=createSizedArray(na.viewData.length),aa=na.viewData.length;for(ra=0;ra<aa;ra+=1)oa[ra]=new ea(na.viewData[ra],na.masksProperties[ra]);return function(sa){for(ra=0;ra<aa;){if(na.masksProperties[ra].nm===sa)return oa[ra];ra+=1}return null}}}(),ExpressionPropertyInterface=function(){var ea={pv:0,v:0,mult:1},na={pv:[0,0,0],v:[0,0,0],mult:1};function ra(aa,sa,la){Object.defineProperty(aa,"velocity",{get:function(){return sa.getVelocityAtTime(sa.comp.currentFrame)}}),aa.numKeys=sa.keyframes?sa.keyframes.length:0,aa.key=function(ca){if(!aa.numKeys)return 0;var ua="";ua="s"in sa.keyframes[ca-1]?sa.keyframes[ca-1].s:"e"in sa.keyframes[ca-2]?sa.keyframes[ca-2].e:sa.keyframes[ca-2].s;var da=la==="unidimensional"?new Number(ua):Object.assign({},ua);return da.time=sa.keyframes[ca-1].t/sa.elem.comp.globalData.frameRate,da.value=la==="unidimensional"?ua[0]:ua,da},aa.valueAtTime=sa.getValueAtTime,aa.speedAtTime=sa.getSpeedAtTime,aa.velocityAtTime=sa.getVelocityAtTime,aa.propertyGroup=sa.propertyGroup}function oa(){return ea}return function(aa){return aa?aa.propType==="unidimensional"?function(sa){sa&&"pv"in sa||(sa=ea);var la=1/sa.mult,ca=sa.pv*la,ua=new Number(ca);return ua.value=ca,ra(ua,sa,"unidimensional"),function(){return sa.k&&sa.getValue(),ca=sa.v*la,ua.value!==ca&&((ua=new Number(ca)).value=ca,ra(ua,sa,"unidimensional")),ua}}(aa):function(sa){sa&&"pv"in sa||(sa=na);var la=1/sa.mult,ca=sa.data&&sa.data.l||sa.pv.length,ua=createTypedArray("float32",ca),da=createTypedArray("float32",ca);return ua.value=da,ra(ua,sa,"multidimensional"),function(){sa.k&&sa.getValue();for(var pa=0;pa<ca;pa+=1)da[pa]=sa.v[pa]*la,ua[pa]=da[pa];return ua}}(aa):oa}}(),TransformExpressionInterface=function(ea){function na(la){switch(la){case"scale":case"Scale":case"ADBE Scale":case 6:return na.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return na.rotation;case"ADBE Rotate X":return na.xRotation;case"ADBE Rotate Y":return na.yRotation;case"position":case"Position":case"ADBE Position":case 2:return na.position;case"ADBE Position_0":return na.xPosition;case"ADBE Position_1":return na.yPosition;case"ADBE Position_2":return na.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return na.anchorPoint;case"opacity":case"Opacity":case 11:return na.opacity;default:return null}}var ra,oa,aa,sa;return Object.defineProperty(na,"rotation",{get:ExpressionPropertyInterface(ea.r||ea.rz)}),Object.defineProperty(na,"zRotation",{get:ExpressionPropertyInterface(ea.rz||ea.r)}),Object.defineProperty(na,"xRotation",{get:ExpressionPropertyInterface(ea.rx)}),Object.defineProperty(na,"yRotation",{get:ExpressionPropertyInterface(ea.ry)}),Object.defineProperty(na,"scale",{get:ExpressionPropertyInterface(ea.s)}),ea.p?sa=ExpressionPropertyInterface(ea.p):(ra=ExpressionPropertyInterface(ea.px),oa=ExpressionPropertyInterface(ea.py),ea.pz&&(aa=ExpressionPropertyInterface(ea.pz))),Object.defineProperty(na,"position",{get:function(){return ea.p?sa():[ra(),oa(),aa?aa():0]}}),Object.defineProperty(na,"xPosition",{get:ExpressionPropertyInterface(ea.px)}),Object.defineProperty(na,"yPosition",{get:ExpressionPropertyInterface(ea.py)}),Object.defineProperty(na,"zPosition",{get:ExpressionPropertyInterface(ea.pz)}),Object.defineProperty(na,"anchorPoint",{get:ExpressionPropertyInterface(ea.a)}),Object.defineProperty(na,"opacity",{get:ExpressionPropertyInterface(ea.o)}),Object.defineProperty(na,"skew",{get:ExpressionPropertyInterface(ea.sk)}),Object.defineProperty(na,"skewAxis",{get:ExpressionPropertyInterface(ea.sa)}),Object.defineProperty(na,"orientation",{get:ExpressionPropertyInterface(ea.or)}),na},LayerExpressionInterface=function(){function ea(da){var pa=new Matrix;return da!==void 0?this._elem.finalTransform.mProp.getValueAtTime(da).clone(pa):this._elem.finalTransform.mProp.applyToMatrix(pa),pa}function na(da,pa){var ha=this.getMatrix(pa);return ha.props[12]=0,ha.props[13]=0,ha.props[14]=0,this.applyPoint(ha,da)}function ra(da,pa){var ha=this.getMatrix(pa);return this.applyPoint(ha,da)}function oa(da,pa){var ha=this.getMatrix(pa);return ha.props[12]=0,ha.props[13]=0,ha.props[14]=0,this.invertPoint(ha,da)}function aa(da,pa){var ha=this.getMatrix(pa);return this.invertPoint(ha,da)}function sa(da,pa){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ha,ga=this._elem.hierarchy.length;for(ha=0;ha<ga;ha+=1)this._elem.hierarchy[ha].finalTransform.mProp.applyToMatrix(da)}return da.applyToPointArray(pa[0],pa[1],pa[2]||0)}function la(da,pa){if(this._elem.hierarchy&&this._elem.hierarchy.length){var ha,ga=this._elem.hierarchy.length;for(ha=0;ha<ga;ha+=1)this._elem.hierarchy[ha].finalTransform.mProp.applyToMatrix(da)}return da.inversePoint(pa)}function ca(da){var pa=new Matrix;if(pa.reset(),this._elem.finalTransform.mProp.applyToMatrix(pa),this._elem.hierarchy&&this._elem.hierarchy.length){var ha,ga=this._elem.hierarchy.length;for(ha=0;ha<ga;ha+=1)this._elem.hierarchy[ha].finalTransform.mProp.applyToMatrix(pa);return pa.inversePoint(da)}return pa.inversePoint(da)}function ua(){return[1,1,1,1]}return function(da){var pa;function ha(fa){switch(fa){case"ADBE Root Vectors Group":case"Contents":case 2:return ha.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return pa;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return ha.effect;case"ADBE Text Properties":return ha.textInterface;default:return null}}ha.getMatrix=ea,ha.invertPoint=la,ha.applyPoint=sa,ha.toWorld=ra,ha.toWorldVec=na,ha.fromWorld=aa,ha.fromWorldVec=oa,ha.toComp=ra,ha.fromComp=ca,ha.sampleImage=ua,ha.sourceRectAtTime=da.sourceRectAtTime.bind(da),ha._elem=da;var ga=getDescriptor(pa=TransformExpressionInterface(da.finalTransform.mProp),"anchorPoint");return Object.defineProperties(ha,{hasParent:{get:function(){return da.hierarchy.length}},parent:{get:function(){return da.hierarchy[0].layerInterface}},rotation:getDescriptor(pa,"rotation"),scale:getDescriptor(pa,"scale"),position:getDescriptor(pa,"position"),opacity:getDescriptor(pa,"opacity"),anchorPoint:ga,anchor_point:ga,transform:{get:function(){return pa}},active:{get:function(){return da.isInRange}}}),ha.startTime=da.data.st,ha.index=da.data.ind,ha.source=da.data.refId,ha.height=da.data.ty===0?da.data.h:100,ha.width=da.data.ty===0?da.data.w:100,ha.inPoint=da.data.ip/da.comp.globalData.frameRate,ha.outPoint=da.data.op/da.comp.globalData.frameRate,ha._name=da.data.nm,ha.registerMaskInterface=function(fa){ha.mask=new MaskManagerInterface(fa,da)},ha.registerEffectsInterface=function(fa){ha.effect=fa},ha}}(),propertyGroupFactory=function(ea,na){return function(ra){return(ra=ra===void 0?1:ra)<=0?ea:na(ra-1)}},PropertyInterface=function(ea,na){var ra={_name:ea};return function(oa){return(oa=oa===void 0?1:oa)<=0?ra:na(oa-1)}},EffectsExpressionInterface=function(){function ea(ra,oa,aa,sa){function la(ha){for(var ga=ra.ef,fa=0,ma=ga.length;fa<ma;){if(ha===ga[fa].nm||ha===ga[fa].mn||ha===ga[fa].ix)return ga[fa].ty===5?da[fa]:da[fa]();fa+=1}throw new Error}var ca,ua=propertyGroupFactory(la,aa),da=[],pa=ra.ef.length;for(ca=0;ca<pa;ca+=1)ra.ef[ca].ty===5?da.push(ea(ra.ef[ca],oa.effectElements[ca],oa.effectElements[ca].propertyGroup,sa)):da.push(na(oa.effectElements[ca],ra.ef[ca].ty,sa,ua));return ra.mn==="ADBE Color Control"&&Object.defineProperty(la,"color",{get:function(){return da[0]()}}),Object.defineProperties(la,{numProperties:{get:function(){return ra.np}},_name:{value:ra.nm},propertyGroup:{value:ua}}),la.enabled=ra.en!==0,la.active=la.enabled,la}function na(ra,oa,aa,sa){var la=ExpressionPropertyInterface(ra.p);return ra.p.setGroupProperty&&ra.p.setGroupProperty(PropertyInterface("",sa)),function(){return oa===10?aa.comp.compInterface(ra.p.v):la()}}return{createEffectsInterface:function(ra,oa){if(ra.effectsManager){var aa,sa=[],la=ra.data.ef,ca=ra.effectsManager.effectElements.length;for(aa=0;aa<ca;aa+=1)sa.push(ea(la[aa],ra.effectsManager.effectElements[aa],oa,ra));var ua=ra.data.ef||[],da=function(pa){for(aa=0,ca=ua.length;aa<ca;){if(pa===ua[aa].nm||pa===ua[aa].mn||pa===ua[aa].ix)return sa[aa];aa+=1}return null};return Object.defineProperty(da,"numProperties",{get:function(){return ua.length}}),da}return null}}}(),ShapePathInterface=function(ea,na,ra){var oa=na.sh;function aa(la){return la==="Shape"||la==="shape"||la==="Path"||la==="path"||la==="ADBE Vector Shape"||la===2?aa.path:null}var sa=propertyGroupFactory(aa,ra);return oa.setGroupProperty(PropertyInterface("Path",sa)),Object.defineProperties(aa,{path:{get:function(){return oa.k&&oa.getValue(),oa}},shape:{get:function(){return oa.k&&oa.getValue(),oa}},_name:{value:ea.nm},ix:{value:ea.ix},propertyIndex:{value:ea.ix},mn:{value:ea.mn},propertyGroup:{value:ra}}),aa},ShapeExpressionInterface=function(){function ea(fa,ma,va){var xa,ya=[],Aa=fa?fa.length:0;for(xa=0;xa<Aa;xa+=1)fa[xa].ty==="gr"?ya.push(na(fa[xa],ma[xa],va)):fa[xa].ty==="fl"?ya.push(ra(fa[xa],ma[xa],va)):fa[xa].ty==="st"?ya.push(sa(fa[xa],ma[xa],va)):fa[xa].ty==="tm"?ya.push(la(fa[xa],ma[xa],va)):fa[xa].ty==="tr"||(fa[xa].ty==="el"?ya.push(ua(fa[xa],ma[xa],va)):fa[xa].ty==="sr"?ya.push(da(fa[xa],ma[xa],va)):fa[xa].ty==="sh"?ya.push(ShapePathInterface(fa[xa],ma[xa],va)):fa[xa].ty==="rc"?ya.push(pa(fa[xa],ma[xa],va)):fa[xa].ty==="rd"?ya.push(ha(fa[xa],ma[xa],va)):fa[xa].ty==="rp"?ya.push(ga(fa[xa],ma[xa],va)):fa[xa].ty==="gf"?ya.push(oa(fa[xa],ma[xa],va)):ya.push(aa(fa[xa],ma[xa])));return ya}function na(fa,ma,va){var xa=function(Ca){switch(Ca){case"ADBE Vectors Group":case"Contents":case 2:return xa.content;default:return xa.transform}};xa.propertyGroup=propertyGroupFactory(xa,va);var ya=function(Ca,Sa,wa){var ba,Ea=function(Ma){for(var Ia=0,Oa=ba.length;Ia<Oa;){if(ba[Ia]._name===Ma||ba[Ia].mn===Ma||ba[Ia].propertyIndex===Ma||ba[Ia].ix===Ma||ba[Ia].ind===Ma)return ba[Ia];Ia+=1}return typeof Ma=="number"?ba[Ma-1]:null};Ea.propertyGroup=propertyGroupFactory(Ea,wa),ba=ea(Ca.it,Sa.it,Ea.propertyGroup),Ea.numProperties=ba.length;var $a=ca(Ca.it[Ca.it.length-1],Sa.it[Sa.it.length-1],Ea.propertyGroup);return Ea.transform=$a,Ea.propertyIndex=Ca.cix,Ea._name=Ca.nm,Ea}(fa,ma,xa.propertyGroup),Aa=ca(fa.it[fa.it.length-1],ma.it[ma.it.length-1],xa.propertyGroup);return xa.content=ya,xa.transform=Aa,Object.defineProperty(xa,"_name",{get:function(){return fa.nm}}),xa.numProperties=fa.np,xa.propertyIndex=fa.ix,xa.nm=fa.nm,xa.mn=fa.mn,xa}function ra(fa,ma,va){function xa(ya){return ya==="Color"||ya==="color"?xa.color:ya==="Opacity"||ya==="opacity"?xa.opacity:null}return Object.defineProperties(xa,{color:{get:ExpressionPropertyInterface(ma.c)},opacity:{get:ExpressionPropertyInterface(ma.o)},_name:{value:fa.nm},mn:{value:fa.mn}}),ma.c.setGroupProperty(PropertyInterface("Color",va)),ma.o.setGroupProperty(PropertyInterface("Opacity",va)),xa}function oa(fa,ma,va){function xa(ya){return ya==="Start Point"||ya==="start point"?xa.startPoint:ya==="End Point"||ya==="end point"?xa.endPoint:ya==="Opacity"||ya==="opacity"?xa.opacity:null}return Object.defineProperties(xa,{startPoint:{get:ExpressionPropertyInterface(ma.s)},endPoint:{get:ExpressionPropertyInterface(ma.e)},opacity:{get:ExpressionPropertyInterface(ma.o)},type:{get:function(){return"a"}},_name:{value:fa.nm},mn:{value:fa.mn}}),ma.s.setGroupProperty(PropertyInterface("Start Point",va)),ma.e.setGroupProperty(PropertyInterface("End Point",va)),ma.o.setGroupProperty(PropertyInterface("Opacity",va)),xa}function aa(){return function(){return null}}function sa(fa,ma,va){var xa,ya=propertyGroupFactory(ba,va),Aa=propertyGroupFactory(wa,ya);function Ca(Ea){Object.defineProperty(wa,fa.d[Ea].nm,{get:ExpressionPropertyInterface(ma.d.dataProps[Ea].p)})}var Sa=fa.d?fa.d.length:0,wa={};for(xa=0;xa<Sa;xa+=1)Ca(xa),ma.d.dataProps[xa].p.setGroupProperty(Aa);function ba(Ea){return Ea==="Color"||Ea==="color"?ba.color:Ea==="Opacity"||Ea==="opacity"?ba.opacity:Ea==="Stroke Width"||Ea==="stroke width"?ba.strokeWidth:null}return Object.defineProperties(ba,{color:{get:ExpressionPropertyInterface(ma.c)},opacity:{get:ExpressionPropertyInterface(ma.o)},strokeWidth:{get:ExpressionPropertyInterface(ma.w)},dash:{get:function(){return wa}},_name:{value:fa.nm},mn:{value:fa.mn}}),ma.c.setGroupProperty(PropertyInterface("Color",ya)),ma.o.setGroupProperty(PropertyInterface("Opacity",ya)),ma.w.setGroupProperty(PropertyInterface("Stroke Width",ya)),ba}function la(fa,ma,va){function xa(Aa){return Aa===fa.e.ix||Aa==="End"||Aa==="end"?xa.end:Aa===fa.s.ix?xa.start:Aa===fa.o.ix?xa.offset:null}var ya=propertyGroupFactory(xa,va);return xa.propertyIndex=fa.ix,ma.s.setGroupProperty(PropertyInterface("Start",ya)),ma.e.setGroupProperty(PropertyInterface("End",ya)),ma.o.setGroupProperty(PropertyInterface("Offset",ya)),xa.propertyIndex=fa.ix,xa.propertyGroup=va,Object.defineProperties(xa,{start:{get:ExpressionPropertyInterface(ma.s)},end:{get:ExpressionPropertyInterface(ma.e)},offset:{get:ExpressionPropertyInterface(ma.o)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}function ca(fa,ma,va){function xa(Aa){return fa.a.ix===Aa||Aa==="Anchor Point"?xa.anchorPoint:fa.o.ix===Aa||Aa==="Opacity"?xa.opacity:fa.p.ix===Aa||Aa==="Position"?xa.position:fa.r.ix===Aa||Aa==="Rotation"||Aa==="ADBE Vector Rotation"?xa.rotation:fa.s.ix===Aa||Aa==="Scale"?xa.scale:fa.sk&&fa.sk.ix===Aa||Aa==="Skew"?xa.skew:fa.sa&&fa.sa.ix===Aa||Aa==="Skew Axis"?xa.skewAxis:null}var ya=propertyGroupFactory(xa,va);return ma.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ya)),ma.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ya)),ma.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ya)),ma.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ya)),ma.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ya)),ma.transform.mProps.sk&&(ma.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ya)),ma.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ya))),ma.transform.op.setGroupProperty(PropertyInterface("Opacity",ya)),Object.defineProperties(xa,{opacity:{get:ExpressionPropertyInterface(ma.transform.mProps.o)},position:{get:ExpressionPropertyInterface(ma.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(ma.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(ma.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(ma.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(ma.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(ma.transform.mProps.sa)},_name:{value:fa.nm}}),xa.ty="tr",xa.mn=fa.mn,xa.propertyGroup=va,xa}function ua(fa,ma,va){function xa(Ca){return fa.p.ix===Ca?xa.position:fa.s.ix===Ca?xa.size:null}var ya=propertyGroupFactory(xa,va);xa.propertyIndex=fa.ix;var Aa=ma.sh.ty==="tm"?ma.sh.prop:ma.sh;return Aa.s.setGroupProperty(PropertyInterface("Size",ya)),Aa.p.setGroupProperty(PropertyInterface("Position",ya)),Object.defineProperties(xa,{size:{get:ExpressionPropertyInterface(Aa.s)},position:{get:ExpressionPropertyInterface(Aa.p)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}function da(fa,ma,va){function xa(Ca){return fa.p.ix===Ca?xa.position:fa.r.ix===Ca?xa.rotation:fa.pt.ix===Ca?xa.points:fa.or.ix===Ca||Ca==="ADBE Vector Star Outer Radius"?xa.outerRadius:fa.os.ix===Ca?xa.outerRoundness:!fa.ir||fa.ir.ix!==Ca&&Ca!=="ADBE Vector Star Inner Radius"?fa.is&&fa.is.ix===Ca?xa.innerRoundness:null:xa.innerRadius}var ya=propertyGroupFactory(xa,va),Aa=ma.sh.ty==="tm"?ma.sh.prop:ma.sh;return xa.propertyIndex=fa.ix,Aa.or.setGroupProperty(PropertyInterface("Outer Radius",ya)),Aa.os.setGroupProperty(PropertyInterface("Outer Roundness",ya)),Aa.pt.setGroupProperty(PropertyInterface("Points",ya)),Aa.p.setGroupProperty(PropertyInterface("Position",ya)),Aa.r.setGroupProperty(PropertyInterface("Rotation",ya)),fa.ir&&(Aa.ir.setGroupProperty(PropertyInterface("Inner Radius",ya)),Aa.is.setGroupProperty(PropertyInterface("Inner Roundness",ya))),Object.defineProperties(xa,{position:{get:ExpressionPropertyInterface(Aa.p)},rotation:{get:ExpressionPropertyInterface(Aa.r)},points:{get:ExpressionPropertyInterface(Aa.pt)},outerRadius:{get:ExpressionPropertyInterface(Aa.or)},outerRoundness:{get:ExpressionPropertyInterface(Aa.os)},innerRadius:{get:ExpressionPropertyInterface(Aa.ir)},innerRoundness:{get:ExpressionPropertyInterface(Aa.is)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}function pa(fa,ma,va){function xa(Ca){return fa.p.ix===Ca?xa.position:fa.r.ix===Ca?xa.roundness:fa.s.ix===Ca||Ca==="Size"||Ca==="ADBE Vector Rect Size"?xa.size:null}var ya=propertyGroupFactory(xa,va),Aa=ma.sh.ty==="tm"?ma.sh.prop:ma.sh;return xa.propertyIndex=fa.ix,Aa.p.setGroupProperty(PropertyInterface("Position",ya)),Aa.s.setGroupProperty(PropertyInterface("Size",ya)),Aa.r.setGroupProperty(PropertyInterface("Rotation",ya)),Object.defineProperties(xa,{position:{get:ExpressionPropertyInterface(Aa.p)},roundness:{get:ExpressionPropertyInterface(Aa.r)},size:{get:ExpressionPropertyInterface(Aa.s)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}function ha(fa,ma,va){function xa(Ca){return fa.r.ix===Ca||Ca==="Round Corners 1"?xa.radius:null}var ya=propertyGroupFactory(xa,va),Aa=ma;return xa.propertyIndex=fa.ix,Aa.rd.setGroupProperty(PropertyInterface("Radius",ya)),Object.defineProperties(xa,{radius:{get:ExpressionPropertyInterface(Aa.rd)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}function ga(fa,ma,va){function xa(Ca){return fa.c.ix===Ca||Ca==="Copies"?xa.copies:fa.o.ix===Ca||Ca==="Offset"?xa.offset:null}var ya=propertyGroupFactory(xa,va),Aa=ma;return xa.propertyIndex=fa.ix,Aa.c.setGroupProperty(PropertyInterface("Copies",ya)),Aa.o.setGroupProperty(PropertyInterface("Offset",ya)),Object.defineProperties(xa,{copies:{get:ExpressionPropertyInterface(Aa.c)},offset:{get:ExpressionPropertyInterface(Aa.o)},_name:{value:fa.nm}}),xa.mn=fa.mn,xa}return function(fa,ma,va){var xa;function ya(Aa){if(typeof Aa=="number")return(Aa=Aa===void 0?1:Aa)===0?va:xa[Aa-1];for(var Ca=0,Sa=xa.length;Ca<Sa;){if(xa[Ca]._name===Aa)return xa[Ca];Ca+=1}return null}return ya.propertyGroup=propertyGroupFactory(ya,function(){return va}),xa=ea(fa,ma,ya.propertyGroup),ya.numProperties=xa.length,ya._name="Contents",ya}}(),TextExpressionInterface=function(ea){var na;function ra(oa){switch(oa){case"ADBE Text Document":return ra.sourceText;default:return null}}return Object.defineProperty(ra,"sourceText",{get:function(){ea.textProperty.getValue();var oa=ea.textProperty.currentData.t;return na&&oa===na.value||((na=new String(oa)).value=oa||new String(oa),Object.defineProperty(na,"style",{get:function(){return{fillColor:ea.textProperty.currentData.fc}}})),na}}),ra};function _typeof(ea){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(na){return typeof na}:function(na){return na&&typeof Symbol=="function"&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na})(ea)}var FootageInterface=(dataInterfaceFactory=function(ea){function na(ra){return ra==="Outline"?na.outlineInterface():null}return na._name="Outline",na.outlineInterface=function(ra){var oa="",aa=ra.getFootageData();function sa(la){if(aa[la])return oa=la,_typeof(aa=aa[la])==="object"?sa:aa;var ca=la.indexOf(oa);if(ca!==-1){var ua=parseInt(la.substr(ca+oa.length),10);return _typeof(aa=aa[ua])==="object"?sa:aa}return""}return function(){return oa="",aa=ra.getFootageData(),sa}}(ea),na},function(ea){function na(ra){return ra==="Data"?na.dataInterface:null}return na._name="Data",na.dataInterface=dataInterfaceFactory(ea),na}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(ea){return interfaces[ea]||null}var expressionHelpers={searchExpressions:function(ea,na,ra){na.x&&(ra.k=!0,ra.x=!0,ra.initiateExpression=ExpressionManager.initiateExpression,ra.effectsSequence.push(ra.initiateExpression(ea,na,ra).bind(ra)))},getSpeedAtTime:function(ea){var na=this.getValueAtTime(ea),ra=this.getValueAtTime(ea+-.01),oa=0;if(na.length){var aa;for(aa=0;aa<na.length;aa+=1)oa+=Math.pow(ra[aa]-na[aa],2);oa=100*Math.sqrt(oa)}else oa=0;return oa},getVelocityAtTime:function(ea){if(this.vel!==void 0)return this.vel;var na,ra,oa=this.getValueAtTime(ea),aa=this.getValueAtTime(ea+-.001);if(oa.length)for(na=createTypedArray("float32",oa.length),ra=0;ra<oa.length;ra+=1)na[ra]=(aa[ra]-oa[ra])/-.001;else na=(aa-oa)/-.001;return na},getValueAtTime:function(ea){return ea*=this.elem.globalData.frameRate,(ea-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<ea?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(ea,this._cachingAtTime),this._cachingAtTime.lastFrame=ea),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(ea){this.propertyGroup=ea}};function addPropertyDecorator(){function ea(ha,ga,fa){if(!this.k||!this.keyframes)return this.pv;ha=ha?ha.toLowerCase():"";var ma,va,xa,ya,Aa,Ca=this.comp.renderedFrame,Sa=this.keyframes,wa=Sa[Sa.length-1].t;if(Ca<=wa)return this.pv;if(fa?va=wa-(ma=ga?Math.abs(wa-this.elem.comp.globalData.frameRate*ga):Math.max(0,wa-this.elem.data.ip)):((!ga||ga>Sa.length-1)&&(ga=Sa.length-1),ma=wa-(va=Sa[Sa.length-1-ga].t)),ha==="pingpong"){if(Math.floor((Ca-va)/ma)%2!=0)return this.getValueAtTime((ma-(Ca-va)%ma+va)/this.comp.globalData.frameRate,0)}else{if(ha==="offset"){var ba=this.getValueAtTime(va/this.comp.globalData.frameRate,0),Ea=this.getValueAtTime(wa/this.comp.globalData.frameRate,0),$a=this.getValueAtTime(((Ca-va)%ma+va)/this.comp.globalData.frameRate,0),Ma=Math.floor((Ca-va)/ma);if(this.pv.length){for(ya=(Aa=new Array(ba.length)).length,xa=0;xa<ya;xa+=1)Aa[xa]=(Ea[xa]-ba[xa])*Ma+$a[xa];return Aa}return(Ea-ba)*Ma+$a}if(ha==="continue"){var Ia=this.getValueAtTime(wa/this.comp.globalData.frameRate,0),Oa=this.getValueAtTime((wa-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ya=(Aa=new Array(Ia.length)).length,xa=0;xa<ya;xa+=1)Aa[xa]=Ia[xa]+(Ia[xa]-Oa[xa])*((Ca-wa)/this.comp.globalData.frameRate)/5e-4;return Aa}return Ia+(Ca-wa)/.001*(Ia-Oa)}}return this.getValueAtTime(((Ca-va)%ma+va)/this.comp.globalData.frameRate,0)}function na(ha,ga,fa){if(!this.k)return this.pv;ha=ha?ha.toLowerCase():"";var ma,va,xa,ya,Aa,Ca=this.comp.renderedFrame,Sa=this.keyframes,wa=Sa[0].t;if(Ca>=wa)return this.pv;if(fa?va=wa+(ma=ga?Math.abs(this.elem.comp.globalData.frameRate*ga):Math.max(0,this.elem.data.op-wa)):((!ga||ga>Sa.length-1)&&(ga=Sa.length-1),ma=(va=Sa[ga].t)-wa),ha==="pingpong"){if(Math.floor((wa-Ca)/ma)%2==0)return this.getValueAtTime(((wa-Ca)%ma+wa)/this.comp.globalData.frameRate,0)}else{if(ha==="offset"){var ba=this.getValueAtTime(wa/this.comp.globalData.frameRate,0),Ea=this.getValueAtTime(va/this.comp.globalData.frameRate,0),$a=this.getValueAtTime((ma-(wa-Ca)%ma+wa)/this.comp.globalData.frameRate,0),Ma=Math.floor((wa-Ca)/ma)+1;if(this.pv.length){for(ya=(Aa=new Array(ba.length)).length,xa=0;xa<ya;xa+=1)Aa[xa]=$a[xa]-(Ea[xa]-ba[xa])*Ma;return Aa}return $a-(Ea-ba)*Ma}if(ha==="continue"){var Ia=this.getValueAtTime(wa/this.comp.globalData.frameRate,0),Oa=this.getValueAtTime((wa+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ya=(Aa=new Array(Ia.length)).length,xa=0;xa<ya;xa+=1)Aa[xa]=Ia[xa]+(Ia[xa]-Oa[xa])*(wa-Ca)/.001;return Aa}return Ia+(Ia-Oa)*(wa-Ca)/.001}}return this.getValueAtTime((ma-((wa-Ca)%ma+wa))/this.comp.globalData.frameRate,0)}function ra(ha,ga){if(!this.k)return this.pv;if(ha=.5*(ha||.4),(ga=Math.floor(ga||5))<=1)return this.pv;var fa,ma,va=this.comp.renderedFrame/this.comp.globalData.frameRate,xa=va-ha,ya=ga>1?(va+ha-xa)/(ga-1):1,Aa=0,Ca=0;for(fa=this.pv.length?createTypedArray("float32",this.pv.length):0;Aa<ga;){if(ma=this.getValueAtTime(xa+Aa*ya),this.pv.length)for(Ca=0;Ca<this.pv.length;Ca+=1)fa[Ca]+=ma[Ca];else fa+=ma;Aa+=1}if(this.pv.length)for(Ca=0;Ca<this.pv.length;Ca+=1)fa[Ca]/=ga;else fa/=ga;return fa}function oa(ha){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ga=this._transformCachingAtTime.v;if(ga.cloneFromProps(this.pre.props),this.appliedTransformations<1){var fa=this.a.getValueAtTime(ha);ga.translate(-fa[0]*this.a.mult,-fa[1]*this.a.mult,fa[2]*this.a.mult)}if(this.appliedTransformations<2){var ma=this.s.getValueAtTime(ha);ga.scale(ma[0]*this.s.mult,ma[1]*this.s.mult,ma[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var va=this.sk.getValueAtTime(ha),xa=this.sa.getValueAtTime(ha);ga.skewFromAxis(-va*this.sk.mult,xa*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ya=this.r.getValueAtTime(ha);ga.rotate(-ya*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Aa=this.rz.getValueAtTime(ha),Ca=this.ry.getValueAtTime(ha),Sa=this.rx.getValueAtTime(ha),wa=this.or.getValueAtTime(ha);ga.rotateZ(-Aa*this.rz.mult).rotateY(Ca*this.ry.mult).rotateX(Sa*this.rx.mult).rotateZ(-wa[2]*this.or.mult).rotateY(wa[1]*this.or.mult).rotateX(wa[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ba=this.px.getValueAtTime(ha),Ea=this.py.getValueAtTime(ha);if(this.data.p.z){var $a=this.pz.getValueAtTime(ha);ga.translate(ba*this.px.mult,Ea*this.py.mult,-$a*this.pz.mult)}else ga.translate(ba*this.px.mult,Ea*this.py.mult,0)}else{var Ma=this.p.getValueAtTime(ha);ga.translate(Ma[0]*this.p.mult,Ma[1]*this.p.mult,-Ma[2]*this.p.mult)}return ga}function aa(){return this.v.clone(new Matrix)}var sa=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(ha,ga,fa){var ma=sa(ha,ga,fa);return ma.dynamicProperties.length?ma.getValueAtTime=oa.bind(ma):ma.getValueAtTime=aa.bind(ma),ma.setGroupProperty=expressionHelpers.setGroupProperty,ma};var la=PropertyFactory.getProp;PropertyFactory.getProp=function(ha,ga,fa,ma,va){var xa=la(ha,ga,fa,ma,va);xa.kf?xa.getValueAtTime=expressionHelpers.getValueAtTime.bind(xa):xa.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(xa),xa.setGroupProperty=expressionHelpers.setGroupProperty,xa.loopOut=ea,xa.loopIn=na,xa.smooth=ra,xa.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(xa),xa.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(xa),xa.numKeys=ga.a===1?ga.k.length:0,xa.propertyIndex=ga.ix;var ya=0;return fa!==0&&(ya=createTypedArray("float32",ga.a===1?ga.k[0].s.length:ga.k.length)),xa._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ya},expressionHelpers.searchExpressions(ha,ga,xa),xa.k&&va.addDynamicProperty(xa),xa};var ca=ShapePropertyFactory.getConstructorFunction(),ua=ShapePropertyFactory.getKeyframedConstructorFunction();function da(){}da.prototype={vertices:function(ha,ga){this.k&&this.getValue();var fa,ma=this.v;ga!==void 0&&(ma=this.getValueAtTime(ga,0));var va=ma._length,xa=ma[ha],ya=ma.v,Aa=createSizedArray(va);for(fa=0;fa<va;fa+=1)Aa[fa]=ha==="i"||ha==="o"?[xa[fa][0]-ya[fa][0],xa[fa][1]-ya[fa][1]]:[xa[fa][0],xa[fa][1]];return Aa},points:function(ha){return this.vertices("v",ha)},inTangents:function(ha){return this.vertices("i",ha)},outTangents:function(ha){return this.vertices("o",ha)},isClosed:function(){return this.v.c},pointOnPath:function(ha,ga){var fa=this.v;ga!==void 0&&(fa=this.getValueAtTime(ga,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(fa));for(var ma,va=this._segmentsLength,xa=va.lengths,ya=va.totalLength*ha,Aa=0,Ca=xa.length,Sa=0;Aa<Ca;){if(Sa+xa[Aa].addedLength>ya){var wa=Aa,ba=fa.c&&Aa===Ca-1?0:Aa+1,Ea=(ya-Sa)/xa[Aa].addedLength;ma=bez.getPointInSegment(fa.v[wa],fa.v[ba],fa.o[wa],fa.i[ba],Ea,xa[Aa]);break}Sa+=xa[Aa].addedLength,Aa+=1}return ma||(ma=fa.c?[fa.v[0][0],fa.v[0][1]]:[fa.v[fa._length-1][0],fa.v[fa._length-1][1]]),ma},vectorOnPath:function(ha,ga,fa){ha==1?ha=this.v.c:ha==0&&(ha=.999);var ma=this.pointOnPath(ha,ga),va=this.pointOnPath(ha+.001,ga),xa=va[0]-ma[0],ya=va[1]-ma[1],Aa=Math.sqrt(Math.pow(xa,2)+Math.pow(ya,2));return Aa===0?[0,0]:fa==="tangent"?[xa/Aa,ya/Aa]:[-ya/Aa,xa/Aa]},tangentOnPath:function(ha,ga){return this.vectorOnPath(ha,ga,"tangent")},normalOnPath:function(ha,ga){return this.vectorOnPath(ha,ga,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([da],ca),extendPrototype([da],ua),ua.prototype.getValueAtTime=function(ha){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),ha*=this.elem.globalData.frameRate,(ha-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<ha?this._caching.lastIndex:0,this._cachingAtTime.lastTime=ha,this.interpolateShape(ha,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},ua.prototype.initiateExpression=ExpressionManager.initiateExpression;var pa=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(ha,ga,fa,ma,va){var xa=pa(ha,ga,fa,ma,va);return xa.propertyIndex=ga.ix,xa.lock=!1,fa===3?expressionHelpers.searchExpressions(ha,ga.pt,xa):fa===4&&expressionHelpers.searchExpressions(ha,ga.ks,xa),xa.k&&ha.addDynamicProperty(xa),xa}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(ea,na){var ra=this.calculateExpression(na);if(ea.t!==ra){var oa={};return this.copyData(oa,ea),oa.t=ra.toString(),oa.__complete=!1,oa}return ea},TextProperty.prototype.searchProperty=function(){var ea=this.searchKeyframes(),na=this.searchExpressions();return this.kf=ea||na,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(ea,na){var ra,oa,aa=createNS("feMerge");for(aa.setAttribute("result",ea),oa=0;oa<na.length;oa+=1)(ra=createNS("feMergeNode")).setAttribute("in",na[oa]),aa.appendChild(ra),aa.appendChild(ra);return aa}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(ea,na,ra,oa,aa){this.filterManager=na;var sa=createNS("feColorMatrix");sa.setAttribute("type","matrix"),sa.setAttribute("color-interpolation-filters","linearRGB"),sa.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=sa,sa.setAttribute("result",oa+"_tint_1"),ea.appendChild(sa),(sa=createNS("feColorMatrix")).setAttribute("type","matrix"),sa.setAttribute("color-interpolation-filters","sRGB"),sa.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),sa.setAttribute("result",oa+"_tint_2"),ea.appendChild(sa),this.matrixFilter=sa;var la=this.createMergeNode(oa,[aa,oa+"_tint_1",oa+"_tint_2"]);ea.appendChild(la)}function SVGFillFilter(ea,na,ra,oa){this.filterManager=na;var aa=createNS("feColorMatrix");aa.setAttribute("type","matrix"),aa.setAttribute("color-interpolation-filters","sRGB"),aa.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),aa.setAttribute("result",oa),ea.appendChild(aa),this.matrixFilter=aa}function SVGStrokeEffect(ea,na,ra){this.initialized=!1,this.filterManager=na,this.elem=ra,this.paths=[]}function SVGTritoneFilter(ea,na,ra,oa){this.filterManager=na;var aa=createNS("feColorMatrix");aa.setAttribute("type","matrix"),aa.setAttribute("color-interpolation-filters","linearRGB"),aa.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),ea.appendChild(aa);var sa=createNS("feComponentTransfer");sa.setAttribute("color-interpolation-filters","sRGB"),sa.setAttribute("result",oa),this.matrixFilter=sa;var la=createNS("feFuncR");la.setAttribute("type","table"),sa.appendChild(la),this.feFuncR=la;var ca=createNS("feFuncG");ca.setAttribute("type","table"),sa.appendChild(ca),this.feFuncG=ca;var ua=createNS("feFuncB");ua.setAttribute("type","table"),sa.appendChild(ua),this.feFuncB=ua,ea.appendChild(sa)}function SVGProLevelsFilter(ea,na,ra,oa){this.filterManager=na;var aa=this.filterManager.effectElements,sa=createNS("feComponentTransfer");(aa[10].p.k||aa[10].p.v!==0||aa[11].p.k||aa[11].p.v!==1||aa[12].p.k||aa[12].p.v!==1||aa[13].p.k||aa[13].p.v!==0||aa[14].p.k||aa[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",sa)),(aa[17].p.k||aa[17].p.v!==0||aa[18].p.k||aa[18].p.v!==1||aa[19].p.k||aa[19].p.v!==1||aa[20].p.k||aa[20].p.v!==0||aa[21].p.k||aa[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",sa)),(aa[24].p.k||aa[24].p.v!==0||aa[25].p.k||aa[25].p.v!==1||aa[26].p.k||aa[26].p.v!==1||aa[27].p.k||aa[27].p.v!==0||aa[28].p.k||aa[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",sa)),(aa[31].p.k||aa[31].p.v!==0||aa[32].p.k||aa[32].p.v!==1||aa[33].p.k||aa[33].p.v!==1||aa[34].p.k||aa[34].p.v!==0||aa[35].p.k||aa[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",sa)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(sa.setAttribute("color-interpolation-filters","sRGB"),ea.appendChild(sa)),(aa[3].p.k||aa[3].p.v!==0||aa[4].p.k||aa[4].p.v!==1||aa[5].p.k||aa[5].p.v!==1||aa[6].p.k||aa[6].p.v!==0||aa[7].p.k||aa[7].p.v!==1)&&((sa=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),sa.setAttribute("result",oa),ea.appendChild(sa),this.feFuncRComposed=this.createFeFunc("feFuncR",sa),this.feFuncGComposed=this.createFeFunc("feFuncG",sa),this.feFuncBComposed=this.createFeFunc("feFuncB",sa))}function SVGDropShadowEffect(ea,na,ra,oa,aa){var sa=na.container.globalData.renderConfig.filterSize,la=na.data.fs||sa;ea.setAttribute("x",la.x||sa.x),ea.setAttribute("y",la.y||sa.y),ea.setAttribute("width",la.width||sa.width),ea.setAttribute("height",la.height||sa.height),this.filterManager=na;var ca=createNS("feGaussianBlur");ca.setAttribute("in","SourceAlpha"),ca.setAttribute("result",oa+"_drop_shadow_1"),ca.setAttribute("stdDeviation","0"),this.feGaussianBlur=ca,ea.appendChild(ca);var ua=createNS("feOffset");ua.setAttribute("dx","25"),ua.setAttribute("dy","0"),ua.setAttribute("in",oa+"_drop_shadow_1"),ua.setAttribute("result",oa+"_drop_shadow_2"),this.feOffset=ua,ea.appendChild(ua);var da=createNS("feFlood");da.setAttribute("flood-color","#00ff00"),da.setAttribute("flood-opacity","1"),da.setAttribute("result",oa+"_drop_shadow_3"),this.feFlood=da,ea.appendChild(da);var pa=createNS("feComposite");pa.setAttribute("in",oa+"_drop_shadow_3"),pa.setAttribute("in2",oa+"_drop_shadow_2"),pa.setAttribute("operator","in"),pa.setAttribute("result",oa+"_drop_shadow_4"),ea.appendChild(pa);var ha=this.createMergeNode(oa,[oa+"_drop_shadow_4",aa]);ea.appendChild(ha)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){var na=this.filterManager.effectElements[0].p.v,ra=this.filterManager.effectElements[1].p.v,oa=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+oa+" 0"),this.matrixFilter.setAttribute("values",ra[0]-na[0]+" 0 0 0 "+na[0]+" "+(ra[1]-na[1])+" 0 0 0 "+na[1]+" "+(ra[2]-na[2])+" 0 0 0 "+na[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){var na=this.filterManager.effectElements[2].p.v,ra=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+na[0]+" 0 0 0 0 "+na[1]+" 0 0 0 0 "+na[2]+" 0 0 0 "+ra+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var ea,na,ra,oa,aa=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(oa=this.elem.maskManager.masksProperties.length,ra=0):oa=(ra=this.filterManager.effectElements[0].p.v-1)+1,(na=createNS("g")).setAttribute("fill","none"),na.setAttribute("stroke-linecap","round"),na.setAttribute("stroke-dashoffset",1);ra<oa;ra+=1)ea=createNS("path"),na.appendChild(ea),this.paths.push({p:ea,m:ra});if(this.filterManager.effectElements[10].p.v===3){var sa=createNS("mask"),la=createElementID();sa.setAttribute("id",la),sa.setAttribute("mask-type","alpha"),sa.appendChild(na),this.elem.globalData.defs.appendChild(sa);var ca=createNS("g");for(ca.setAttribute("mask","url("+getLocationHref()+"#"+la+")");aa[0];)ca.appendChild(aa[0]);this.elem.layerElement.appendChild(ca),this.masker=sa,na.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(aa=this.elem.layerElement.children||this.elem.layerElement.childNodes;aa.length;)this.elem.layerElement.removeChild(aa[0]);this.elem.layerElement.appendChild(na),this.elem.layerElement.removeAttribute("mask"),na.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=na},SVGStrokeEffect.prototype.renderFrame=function(ea){var na;this.initialized||this.initialize();var ra,oa,aa=this.paths.length;for(na=0;na<aa;na+=1)if(this.paths[na].m!==-1&&(ra=this.elem.maskManager.viewData[this.paths[na].m],oa=this.paths[na].p,(ea||this.filterManager._mdf||ra.prop._mdf)&&oa.setAttribute("d",ra.lastPath),ea||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||ra.prop._mdf)){var sa;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var la=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),ca=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),ua=oa.getTotalLength();sa="0 0 0 "+ua*la+" ";var da,pa=ua*(ca-la),ha=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,ga=Math.floor(pa/ha);for(da=0;da<ga;da+=1)sa+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";sa+="0 "+10*ua+" 0 0"}else sa="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;oa.setAttribute("stroke-dasharray",sa)}if((ea||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(ea||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(ea||this.filterManager.effectElements[3].p._mdf)){var fa=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*fa[0])+","+bmFloor(255*fa[1])+","+bmFloor(255*fa[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){var na=this.filterManager.effectElements[0].p.v,ra=this.filterManager.effectElements[1].p.v,oa=this.filterManager.effectElements[2].p.v,aa=oa[0]+" "+ra[0]+" "+na[0],sa=oa[1]+" "+ra[1]+" "+na[1],la=oa[2]+" "+ra[2]+" "+na[2];this.feFuncR.setAttribute("tableValues",aa),this.feFuncG.setAttribute("tableValues",sa),this.feFuncB.setAttribute("tableValues",la)}},SVGProLevelsFilter.prototype.createFeFunc=function(ea,na){var ra=createNS(ea);return ra.setAttribute("type","table"),na.appendChild(ra),ra},SVGProLevelsFilter.prototype.getTableValue=function(ea,na,ra,oa,aa){for(var sa,la,ca=0,ua=Math.min(ea,na),da=Math.max(ea,na),pa=Array.call(null,{length:256}),ha=0,ga=aa-oa,fa=na-ea;ca<=256;)la=(sa=ca/256)<=ua?fa<0?aa:oa:sa>=da?fa<0?oa:aa:oa+ga*Math.pow((sa-ea)/fa,1/ra),pa[ha]=la,ha+=1,ca+=256/255;return pa.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){var na,ra=this.filterManager.effectElements;this.feFuncRComposed&&(ea||ra[3].p._mdf||ra[4].p._mdf||ra[5].p._mdf||ra[6].p._mdf||ra[7].p._mdf)&&(na=this.getTableValue(ra[3].p.v,ra[4].p.v,ra[5].p.v,ra[6].p.v,ra[7].p.v),this.feFuncRComposed.setAttribute("tableValues",na),this.feFuncGComposed.setAttribute("tableValues",na),this.feFuncBComposed.setAttribute("tableValues",na)),this.feFuncR&&(ea||ra[10].p._mdf||ra[11].p._mdf||ra[12].p._mdf||ra[13].p._mdf||ra[14].p._mdf)&&(na=this.getTableValue(ra[10].p.v,ra[11].p.v,ra[12].p.v,ra[13].p.v,ra[14].p.v),this.feFuncR.setAttribute("tableValues",na)),this.feFuncG&&(ea||ra[17].p._mdf||ra[18].p._mdf||ra[19].p._mdf||ra[20].p._mdf||ra[21].p._mdf)&&(na=this.getTableValue(ra[17].p.v,ra[18].p.v,ra[19].p.v,ra[20].p.v,ra[21].p.v),this.feFuncG.setAttribute("tableValues",na)),this.feFuncB&&(ea||ra[24].p._mdf||ra[25].p._mdf||ra[26].p._mdf||ra[27].p._mdf||ra[28].p._mdf)&&(na=this.getTableValue(ra[24].p.v,ra[25].p.v,ra[26].p.v,ra[27].p.v,ra[28].p.v),this.feFuncB.setAttribute("tableValues",na)),this.feFuncA&&(ea||ra[31].p._mdf||ra[32].p._mdf||ra[33].p._mdf||ra[34].p._mdf||ra[35].p._mdf)&&(na=this.getTableValue(ra[31].p.v,ra[32].p.v,ra[33].p.v,ra[34].p.v,ra[35].p.v),this.feFuncA.setAttribute("tableValues",na))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){if((ea||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),ea||this.filterManager.effectElements[0].p._mdf){var na=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*na[0]),Math.round(255*na[1]),Math.round(255*na[2])))}if((ea||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),ea||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var ra=this.filterManager.effectElements[3].p.v,oa=(this.filterManager.effectElements[2].p.v-90)*degToRads,aa=ra*Math.cos(oa),sa=ra*Math.sin(oa);this.feOffset.setAttribute("dx",aa),this.feOffset.setAttribute("dy",sa)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(ea,na,ra){this.initialized=!1,this.filterManager=na,this.filterElem=ea,this.elem=ra,ra.matteElement=createNS("g"),ra.matteElement.appendChild(ra.layerElement),ra.matteElement.appendChild(ra.transformedElement),ra.baseElement=ra.matteElement}function SVGGaussianBlurEffect(ea,na,ra,oa){ea.setAttribute("x","-100%"),ea.setAttribute("y","-100%"),ea.setAttribute("width","300%"),ea.setAttribute("height","300%"),this.filterManager=na;var aa=createNS("feGaussianBlur");aa.setAttribute("result",oa),ea.appendChild(aa),this.feGaussianBlur=aa}function TransformEffect(){}function SVGTransformEffect(ea,na){this.init(na)}function CVTransformEffect(ea){this.init(ea)}return SVGMatte3Effect.prototype.findSymbol=function(ea){for(var na=0,ra=_svgMatteSymbols.length;na<ra;){if(_svgMatteSymbols[na]===ea)return _svgMatteSymbols[na];na+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(ea,na){var ra=ea.layerElement.parentNode;if(ra){for(var oa,aa=ra.children,sa=0,la=aa.length;sa<la&&aa[sa]!==ea.layerElement;)sa+=1;sa<=la-2&&(oa=aa[sa+1]);var ca=createNS("use");ca.setAttribute("href","#"+na),oa?ra.insertBefore(ca,oa):ra.appendChild(ca)}},SVGMatte3Effect.prototype.setElementAsMask=function(ea,na){if(!this.findSymbol(na)){var ra=createElementID(),oa=createNS("mask");oa.setAttribute("id",na.layerId),oa.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(na);var aa=ea.globalData.defs;aa.appendChild(oa);var sa=createNS("symbol");sa.setAttribute("id",ra),this.replaceInParent(na,ra),sa.appendChild(na.layerElement),aa.appendChild(sa);var la=createNS("use");la.setAttribute("href","#"+ra),oa.appendChild(la),na.data.hd=!1,na.show()}ea.setMatte(na.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var ea=this.filterManager.effectElements[0].p.v,na=this.elem.comp.elements,ra=0,oa=na.length;ra<oa;)na[ra]&&na[ra].data.ind===ea&&this.setElementAsMask(this.elem,na[ra]),ra+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(ea){if(ea||this.filterManager._mdf){var na=.3*this.filterManager.effectElements[0].p.v,ra=this.filterManager.effectElements[1].p.v,oa=ra==3?0:na,aa=ra==2?0:na;this.feGaussianBlur.setAttribute("stdDeviation",oa+" "+aa);var sa=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",sa)}},TransformEffect.prototype.init=function(ea){this.effectsManager=ea,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(ea){if(this._opMdf=!1,this._mdf=!1,ea||this.effectsManager._mdf){var na=this.effectsManager.effectElements,ra=na[0].p.v,oa=na[1].p.v,aa=na[2].p.v===1,sa=na[3].p.v,la=aa?sa:na[4].p.v,ca=na[5].p.v,ua=na[6].p.v,da=na[7].p.v;this.matrix.reset(),this.matrix.translate(-ra[0],-ra[1],ra[2]),this.matrix.scale(.01*la,.01*sa,1),this.matrix.rotate(-da*degToRads),this.matrix.skewFromAxis(-ca*degToRads,(ua+90)*degToRads),this.matrix.translate(oa[0],oa[1],0),this._mdf=!0,this.opacity!==na[8].p.v&&(this.opacity=na[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}),REACT_LOTTIE_PLAYER_VERSION="3.6.0",LOTTIE_WEB_VERSION="^5.12.2",PlayerState,PlayerEvent;function parseSrc(ea){if(typeof ea=="object")return ea;try{return JSON.parse(ea)}catch{}try{return new URL(ea).toString()}catch{}return ea}(function(ea){ea.Loading="loading",ea.Playing="playing",ea.Paused="paused",ea.Stopped="stopped",ea.Frozen="frozen",ea.Error="error"})(PlayerState||(PlayerState={})),function(ea){ea.Load="load",ea.InstanceSaved="instanceSaved",ea.Error="error",ea.Ready="ready",ea.Play="play",ea.Pause="pause",ea.Stop="stop",ea.Freeze="freeze",ea.Loop="loop",ea.Complete="complete",ea.Frame="frame"}(PlayerEvent||(PlayerEvent={}));var defaultOptions$1={clearCanvas:!1,hideOnTransparent:!0,progressiveLoad:!0},Player=function(ea){function na(ra){var oa=ea.call(this,ra)||this;return oa.container=null,oa.unmounted=!1,oa.handleBgChange=function(aa){oa.setState({background:aa})},oa.triggerDownload=function(aa,sa){var la=document.createElement("a");la.href=aa,la.download=sa,document.body.appendChild(la),la.click(),document.body.removeChild(la)},oa.snapshot=function(aa){var sa;aa===void 0&&(aa=!0);var la=oa.props.id?oa.props.id:"lottie",ca=document.getElementById(la);if(oa.props.renderer==="svg"){if(ca){var ua=ca.querySelector("svg");if(ua){var da=new XMLSerializer().serializeToString(ua);sa="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(da)}}aa&&oa.triggerDownload(sa,"snapshot.svg")}else if(oa.props.renderer==="canvas"){if(ca){var pa=ca.querySelector("canvas");pa&&(sa=pa.toDataURL("image/png"))}aa&&oa.triggerDownload(sa,"snapshot.png")}return sa},typeof window<"u"&&(window.lottie=lottie$1),oa.state={animationData:null,background:"transparent",containerRef:reactExports.createRef(),debug:!0,instance:null,playerState:PlayerState.Loading,seeker:0},oa}return __extends(na,ea),na.getDerivedStateFromProps=function(ra,oa){return __awaiter$6(this,void 0,void 0,function(){return __generator(this,function(aa){return ra.background!==oa.background?[2,{background:ra.background}]:[2,null]})})},na.prototype.getVersions=function(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:REACT_LOTTIE_PLAYER_VERSION}},na.prototype.componentDidMount=function(){return __awaiter$6(this,void 0,void 0,function(){return __generator(this,function(ra){switch(ra.label){case 0:return this.unmounted?[3,2]:[4,this.createLottie()];case 1:ra.sent(),ra.label=2;case 2:return[2]}})})},na.prototype.componentWillUnmount=function(){this.unmounted=!0,this.state.instance&&this.state.instance.destroy()},na.prototype.componentDidUpdate=function(ra){return __awaiter$6(this,void 0,void 0,function(){return __generator(this,function(oa){switch(oa.label){case 0:return this.props.src===ra.src?[3,2]:(this.state.instance&&this.state.instance.destroy(),[4,this.createLottie()]);case 1:oa.sent(),oa.label=2;case 2:return[2]}})})},na.prototype.render=function(){var ra=this,oa=this.props,aa=oa.children,sa=oa.loop,la=oa.style,ca=oa.onBackgroundChange,ua=oa.className,da=this.state,pa=da.animationData,ha=da.instance,ga=da.playerState,fa=da.seeker,ma=da.debug,va=da.background;return reactExports.createElement("div",{className:"lf-player-container"},this.state.playerState===PlayerState.Error?reactExports.createElement("div",{className:"lf-error"},reactExports.createElement("span",{"aria-label":"error-symbol",role:"img"},"⚠️")):reactExports.createElement("div",{id:this.props.id?this.props.id:"lottie",ref:function(xa){return ra.container=xa},style:__assign({background:va,margin:"0 auto",outline:"none",overflow:"hidden"},la),className:ua}),reactExports.Children.map(aa,function(xa){return reactExports.isValidElement(xa)?reactExports.cloneElement(xa,{animationData:pa,background:va,debug:ma,instance:ha,loop:sa,pause:function(){return ra.pause()},play:function(){return ra.play()},playerState:ga,seeker:fa,setBackground:function(ya){ra.setState({background:ya}),typeof ca=="function"&&ca(ya)},setSeeker:function(ya,Aa){return ra.setSeeker(ya,Aa)},stop:function(){return ra.stop()},toggleDebug:function(){return ra.toggleDebug()},setLoop:function(ya){return ra.setLoop(ya)},colorChangedEvent:function(ya){ra.handleBgChange(ya)},snapshot:function(){ra.snapshot()}}):null}))},na.prototype.toggleDebug=function(){this.setState({debug:!this.state.debug})},na.prototype.createLottie=function(){return __awaiter$6(this,void 0,void 0,function(){var ra,oa,aa,sa,la,ca,ua,da,pa,ha,ga,fa,ma,va,xa=this;return __generator(this,function(ya){switch(ya.label){case 0:if(ra=this.props,oa=ra.autoplay,aa=ra.direction,sa=ra.loop,la=ra.lottieRef,ca=ra.renderer,ua=ra.speed,da=ra.src,pa=ra.background,ha=ra.rendererSettings,ga=ra.hover,fa=this.state.instance,!da||!this.container)return[2];ya.label=1;case 1:return ya.trys.push([1,5,,6]),typeof(ma=parseSrc(da))!="string"?[3,4]:[4,fetch(ma).catch(function(){throw xa.setState({playerState:PlayerState.Error}),xa.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 2:return[4,ya.sent().json().catch(function(){throw xa.setState({playerState:PlayerState.Error}),xa.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 3:ma=ya.sent(),ya.label=4;case 4:return fa&&fa.destroy(),va=lottie$1.loadAnimation({rendererSettings:ha||defaultOptions$1,animationData:ma,autoplay:oa||!1,container:this.container,loop:sa||!1,renderer:ca}),ua&&va.setSpeed(ua),this.setState({animationData:ma}),this.setState({instance:va},function(){xa.triggerEvent(PlayerEvent.InstanceSaved),typeof la=="function"&&la(va),oa&&xa.play()}),va.addEventListener("enterFrame",function(){xa.triggerEvent(PlayerEvent.Frame),xa.setState({seeker:Math.floor(va.currentFrame)})}),va.addEventListener("DOMLoaded",function(){xa.triggerEvent(PlayerEvent.Load)}),va.addEventListener("data_ready",function(){xa.triggerEvent(PlayerEvent.Ready)}),va.addEventListener("data_failed",function(){xa.setState({playerState:PlayerState.Error}),xa.triggerEvent(PlayerEvent.Error)}),va.addEventListener("loopComplete",function(){xa.triggerEvent(PlayerEvent.Loop)}),va.addEventListener("complete",function(){xa.triggerEvent(PlayerEvent.Complete),xa.setState({playerState:PlayerState.Paused}),xa.props.keepLastFrame&&!xa.props.loop||xa.setSeeker(0)}),this.container&&(this.container.addEventListener("mouseenter",function(){ga&&xa.state.playerState!==PlayerState.Playing&&(xa.props.keepLastFrame&&xa.stop(),xa.play())}),this.container.addEventListener("mouseleave",function(){ga&&xa.state.playerState===PlayerState.Playing&&xa.stop()})),ua&&this.setPlayerSpeed(ua),aa&&this.setPlayerDirection(aa),pa&&this.setState({background:pa}),[3,6];case 5:return ya.sent(),this.setState({playerState:PlayerState.Error}),this.triggerEvent(PlayerEvent.Error),[3,6];case 6:return[2]}})})},na.prototype.play=function(){var ra=this.state.instance;ra&&(this.triggerEvent(PlayerEvent.Play),ra.play(),this.setState({playerState:PlayerState.Playing}))},na.prototype.pause=function(){var ra=this.state.instance;ra&&(this.triggerEvent(PlayerEvent.Pause),ra.pause(),this.setState({playerState:PlayerState.Paused}))},na.prototype.stop=function(){var ra=this.state.instance;ra&&(this.triggerEvent(PlayerEvent.Stop),ra.stop(),this.setState({playerState:PlayerState.Stopped}))},na.prototype.setPlayerSpeed=function(ra){var oa=this.state.instance;oa&&oa.setSpeed(ra)},na.prototype.setPlayerDirection=function(ra){var oa=this.state.instance;oa&&oa.setDirection(ra)},na.prototype.setSeeker=function(ra,oa){oa===void 0&&(oa=!1);var aa=this.state,sa=aa.instance,la=aa.playerState;sa&&(oa&&la===PlayerState.Playing?sa.goToAndPlay(ra,!0):(sa.goToAndStop(ra,!0),this.triggerEvent(PlayerEvent.Pause),this.setState({playerState:PlayerState.Paused})))},na.prototype.setLoop=function(ra){var oa=this.state.instance;oa&&(oa.loop=ra,this.setState({instance:oa}))},na.prototype.triggerEvent=function(ra){var oa=this.props.onEvent;oa&&oa(ra)},na.defaultProps={loop:!1},na}(reactExports.Component);function styleInject(ea,na){na===void 0&&(na={});var ra=na.insertAt;if(typeof document<"u"){var oa=document.head||document.getElementsByTagName("head")[0],aa=document.createElement("style");aa.type="text/css",ra==="top"&&oa.firstChild?oa.insertBefore(aa,oa.firstChild):oa.appendChild(aa),aa.styleSheet?aa.styleSheet.cssText=ea:aa.appendChild(document.createTextNode(ea))}}var css_248z=`.lf-progress {
  -webkit-appearance: none;
  -moz-apperance: none;
  width: 100%;
  /* margin: 0 10px; */
  height: 4px;
  border-radius: 3px;
  cursor: pointer;
}
.lf-progress:focus {
  outline: none;
  border: none;
}
.lf-progress::-moz-range-track {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}
.lf-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress::-moz-range-thumb {
  -moz-appearance: none !important;
  height: 13px;
  width: 13px;
  border: 0;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress::-ms-track {
  width: 100%;
  height: 3px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.lf-progress::-ms-fill-lower {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-fill-upper {
  background: #ccc;
  border-radius: 3px;
}
.lf-progress::-ms-thumb {
  border: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #0fccce;
  cursor: pointer;
}
.lf-progress:focus::-ms-fill-lower {
  background: #ccc;
}
.lf-progress:focus::-ms-fill-upper {
  background: #ccc;
}
.lf-player-container :focus {
  outline: 0;
}
.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-player-btn-container {
  display: flex;
  align-items: center;
}
.lf-player-btn {
  cursor: pointer;
  fill: #999;
  width: 14px;
}

.lf-player-btn.active {
  fill: #555;
}

.lf-popover {
  position: relative;
}

.lf-popover-content {
  display: inline-block;
  position: absolute;
  background-color: #ffffff;
  opacity: 1;

  transform: translate(0, -10px);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
  padding: 10px;
}

.lf-popover-content.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0px);
}

.lf-arrow {
  position: absolute;
  z-index: -1;
  content: '';
  bottom: -9px;
  border-style: solid;
  border-width: 10px 10px 0px 10px;
}

.lf-left-align,
.lf-left-align .lfarrow {
  left: 0;
  right: unset;
}

.lf-right-align,
.lf-right-align .lf-arrow {
  right: 0;
  left: unset;
}

.lf-text-input {
  border: 1px #ccc solid;
  border-radius: 5px;
  padding: 3px;
  width: 60px;
  margin: 0;
}

.lf-color-picker {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 90px;
}

.lf-color-selectors {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lf-color-component {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.lf-color-component strong {
  width: 40px;
}

.lf-color-component input[type='range'] {
  margin: 0 0 0 10px;
}

.lf-color-component input[type='number'] {
  width: 50px;
  margin: 0 0 0 10px;
}

.lf-color-preview {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
}

.lf-preview {
  height: 60px;
  width: 60px;
}

.lf-popover-snapshot {
  width: 150px;
}
.lf-popover-snapshot h5 {
  margin: 5px 0 10px 0;
  font-size: 0.75rem;
}
.lf-popover-snapshot a {
  display: block;
  text-decoration: none;
}
.lf-popover-snapshot a:before {
  content: '⥼';
  margin-right: 5px;
}
.lf-popover-snapshot .lf-note {
  display: block;
  margin-top: 10px;
  color: #999;
}
.lf-player-controls > div {
  margin-right: 5px;
  margin-left: 5px;
}
.lf-player-controls > div:first-child {
  margin-left: 0px;
}
.lf-player-controls > div:last-child {
  margin-right: 0px;
}
`;styleInject(css_248z);var ColorPicker=function(ea){function na(){var ra=ea!==null&&ea.apply(this,arguments)||this;return ra.state={red:0,green:0,blue:0,rgba:null,hex:"#000000",colorComponents:[]},ra.handleChange=function(oa,aa){if(oa==="r"){var sa="#"+(256|aa).toString(16).slice(1)+(256|ra.state.green).toString(16).slice(1)+(256|ra.state.blue).toString(16).slice(1);ra.setState({hex:sa})}else oa==="g"?(sa="#"+(256|ra.state.red).toString(16).slice(1)+(256|aa).toString(16).slice(1)+(256|ra.state.blue).toString(16).slice(1),ra.setState({hex:sa})):oa==="b"&&(sa="#"+(256|ra.state.red).toString(16).slice(1)+(256|ra.state.green).toString(16).slice(1)+(256|aa).toString(16).slice(1),ra.setState({hex:sa}))},ra.parseColor=function(oa){var aa;if(typeof oa=="string"){if(oa[0]==="#"){var sa=oa.length===4?[oa.slice(1,2),oa.slice(2,3),oa.slice(3,4)].map(function(la){return parseInt(""+la+la,16)}):[oa.slice(1,3),oa.slice(3,5),oa.slice(5,7)].map(function(la){return parseInt(la,16)});ra.setState({colorComponents:sa})}else oa.startsWith("rgb")&&(sa=(aa=oa.match(/\d+/g))===null||aa===void 0?void 0:aa.map(function(la){return parseInt(la)}))!==void 0&&ra.setState({colorComponents:sa});ra.state.colorComponents.length&&(ra.setState({red:ra.state.colorComponents[0]}),ra.setState({green:ra.state.colorComponents[1]}),ra.setState({blue:ra.state.colorComponents[2]}))}},ra}return __extends(na,ea),na.prototype.componentDidUpdate=function(ra,oa){return this.props.colorChangedEvent&&this.state.hex!==oa.hex&&this.props.colorChangedEvent(this.state.hex),!0},na.prototype.render=function(){var ra=this;return reactExports.createElement("div",{className:"lf-color-picker"},reactExports.createElement("div",{className:"lf-color-selectors"},reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Red"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.red,onChange:function(oa){ra.setState({red:oa.target.value}),ra.handleChange("r",oa.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.red,onChange:function(oa){ra.setState({red:oa.target.value}),ra.handleChange("r",oa.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Green"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.green,onChange:function(oa){ra.setState({green:oa.target.value}),ra.handleChange("g",oa.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.green,onChange:function(oa){ra.setState({green:oa.target.value}),ra.handleChange("g",oa.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Blue"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.blue,onChange:function(oa){ra.setState({blue:oa.target.value}),ra.handleChange("b",oa.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.blue,onChange:function(oa){ra.setState({blue:oa.target.value}),ra.handleChange("b",oa.target.value)}}))),reactExports.createElement("div",{className:"lf-color-preview"},reactExports.createElement("div",{className:"lf-preview",style:{background:"rgb("+this.state.red+", "+this.state.green+", "+this.state.blue+")"}}),reactExports.createElement("div",null,reactExports.createElement("input",{className:"lf-text-input",type:"text",value:this.state.hex,onChange:function(oa){ra.setState({hex:oa.target.value}),ra.parseColor(oa.target.value)}}))))},na}(reactExports.Component),Popover=function(ea){var na=ea.children,ra=ea.icon,oa=reactExports.useState(null),aa=oa[0],sa=oa[1],la=reactExports.useState(null),ca=la[0],ua=la[1],da=reactExports.useState(null),pa=da[0],ha=da[1],ga=reactExports.useState(!1),fa=ga[0],ma=ga[1];return reactExports.useEffect(function(){if(aa&&ca){var va=aa.getBoundingClientRect(),xa=ca.getBoundingClientRect(),ya=va.left+xa.width>window.innerWidth?-1:0;ha(ya)}},[pa,ca,aa]),reactExports.createElement("div",{className:"lf-popover",onMouseOver:function(){ma(!0)},onMouseLeave:function(){ma(!1)},ref:function(va){sa(va)}},reactExports.createElement("div",{className:" lf-player-btn"},ra),reactExports.createElement("div",{className:"lf-popover-content",ref:function(va){ua(va)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:fa?"visible":"hidden"}},na))},Seeker=function(ea){function na(ra){var oa=ea.call(this,ra)||this;return oa.inputRef=reactExports.createRef(),oa.handleChange=function(){return function(aa){var sa=aa.target.value,la=Math.floor(sa/100*oa.props.max);oa.props.onChange(la)}},oa.state={value:0},oa}return __extends(na,ea),na.prototype.render=function(){var ra=this.props.value/this.props.max*100,oa={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+ra+"%, rgba(15, 204, 206, 0.4)), color-stop("+ra+"%, #DAE1E7))"},aa={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},sa={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return reactExports.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}},reactExports.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:ra,onInput:this.handleChange(),onChange:this.handleChange(),style:oa}),this.props.showLabels&&reactExports.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},reactExports.createElement("div",{style:aa},this.props.min),reactExports.createElement("div",{style:sa},this.props.max)))},na}(reactExports.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"};(function(ea){function na(ra){var oa=ea.call(this,ra)||this;return oa.state={activeFrame:0,mouseDown:!1},oa}return __extends(na,ea),na.prototype.render=function(){var ra=this,oa=this.props,aa=oa.instance,sa=oa.playerState,la=oa.seeker,ca=oa.setLoop,ua=oa.setSeeker,da=oa.play,pa=oa.pause,ha=oa.stop,ga=oa.visible,fa=oa.buttons;if(!aa||!ga)return null;var ma=!fa||fa.includes("play"),va=!fa||fa.includes("stop"),xa=!fa||fa.includes("repeat"),ya=!fa||fa.includes("frame"),Aa=!fa||fa.includes("background"),Ca=!fa||fa.includes("snapshot"),Sa={width:14,height:14,viewBox:"0 0 24 24"},wa=Math.round(aa.currentFrame);return reactExports.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},ma&&reactExports.createElement("div",{role:"button","aria-label":sa===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){sa===PlayerState.Playing?typeof pa=="function"&&pa():typeof da=="function"&&da()},onKeyDown:function(){sa===PlayerState.Playing?typeof pa=="function"&&pa():typeof da=="function"&&da()},className:"lf-player-btn",style:ControlButtonStyle},sa===PlayerState.Playing?reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),va&&reactExports.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return ha&&ha()},onKeyDown:function(){return ha&&ha()},className:sa===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("path",{d:`M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333
            22H3.667A1.67 1.67 0 0 1 2 20.333z`}))),reactExports.createElement(Seeker,{min:0,step:1,max:aa?aa.totalFrames:1,value:la||0,onChange:function(ba){ua&&ra.setState({activeFrame:ba},function(){ua(ba,!1)})},onChangeEnd:function(ba){ua&&ra.setState({activeFrame:ba},function(){ua(ba,!1)})},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),ya&&reactExports.createElement("div",{role:"button",className:"lf-player-btn-container"},reactExports.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:wa,readOnly:!0})),xa&&reactExports.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){aa&&ca&&ca(!aa.loop)},onKeyDown:function(){aa&&ca&&ca(!aa.loop)},className:aa.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("path",{d:`M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116
            0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0
            4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025
            5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0
            .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115
            2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z`,stroke:"#8795A1",strokeWidth:".26"}),reactExports.createElement("path",{d:`M11.1482
            2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.09898
            1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347
            1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014
            3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453
            21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368
            2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671
            0-.5329.114-.7202.3347h0l-.0011.0014-3.0442
            3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z`,fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),Aa&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("path",{d:`M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0
            3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1
            9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0
            01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6
            1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z`}))},reactExports.createElement("div",{slot:"content",className:"lf-popover popover-background"},reactExports.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),Ca&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},Sa),reactExports.createElement("path",{clipRule:"evenodd",d:`M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983
              2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0
              .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z`,fillRule:"evenodd"}),reactExports.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),reactExports.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),reactExports.createElement("path",{d:`M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0
              01-.803.804H9.562a1.061 1.061 0 100 2.123z`,stroke:"#8795a1",strokeWidth:".215"}))},reactExports.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(ba){ua&&ua(wa+(ba.deltaY>0?-1:1),!1)}},reactExports.createElement("h5",null,"Frame ",wa),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),reactExports.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},na})(reactExports.Component);const Lottie=ea=>{const{className:na="dpc-lottie",autoplay:ra=!0,delay:oa=0,loop:aa=!0,speed:sa=1,direction:la="forward",src:ca="",onAnimationLoaded:ua}=ea,da=reactExports.useRef(null),pa=reactExports.useRef(),ha=reactExports.useCallback(()=>{if(!da.current)return;const fa=da.current;fa.stop(),pa.current=window.setTimeout(()=>{fa.setSpeed(sa),fa.setDirection(la==="forward"?1:-1),fa.goToAndPlay(1,!0)},oa)},[oa,la,sa,aa]);reactExports.useEffect(()=>()=>clearTimeout(pa.current),[]),reactExports.useEffect(()=>{ha()},[ha]);const ga=reactExports.useCallback(fa=>{da.current&&(fa==="load"?(ha(),ua?.(da.current)):fa==="loop"&&(aa?da.current.play():da.current.stop()))},[aa,ha,ua]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(Player,{onEvent:ga,lottieRef:fa=>{da.current=fa},src:ca,autoplay:ra,loop:aa,speed:sa})})},LottieLogo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1025'%20height='200'%20fill='none'%20id='lottiefiles'%3e%3cpath%20fill='%23000'%20d='M802.169%2070.477h-24.274v85.319h24.274zm0-28.12h-24.274v18.865h24.274zm-529.406%200H247.39v113.439h77.478v-21.749h-52.105zm102.248%2021.02c-27.007%200-48.385%2020.843-48.385%2047.109s21.378%2047.163%2048.385%2047.163%2048.564-20.843%2048.564-47.122c0-26.28-21.392-47.15-48.564-47.15zm0%2071.754c-13.593%200-23.739-10.325-23.739-24.714%200-14.39%2010.146-24.632%2023.739-24.632s23.739%2010.504%2023.739%2024.632c0%2014.128-10.146%2024.714-23.739%2024.714zm150.373%201.456c-4.353%200-8.156-2.54-8.156-10.325V90.028h23.149V70.476h-23.149v-24.59h-24.275v24.59h-31.881v-24.59h-24.275v24.59h-13.222v19.552h13.222v36.591c0%2020.472%209.79%2030.989%2027.9%2030.989a41.724%2041.724%200%200%200%2023.011-6.865l-6.865-17.932a22.276%2022.276%200%200%201-11.602%203.804c-4.353%200-8.156-2.541-8.156-10.326v-36.26h31.882v36.59c0%2020.472%209.775%2030.989%2027.899%2030.989a41.77%2041.77%200%200%200%2023.012-6.865l-6.865-17.932a22.19%2022.19%200%200%201-11.629%203.776zm153.475-32.485c-3.707-25.47-25.909-43.484-50.307-39.928a46.513%2046.513%200%200%200-38.882%2034.99%2046.51%2046.51%200%200%200-.771%2018.379c4.298%2029.589%2029.739%2043.291%2055.909%2039.474a61.049%2061.049%200%200%200%2031.923-14.704l-11.479-15.914a45%2045%200%200%201-23.176%2010.518c-11.835%201.716-22.916-2.747-27.584-14.664l65.081-9.474a78.516%2078.516%200%200%200-.714-8.677zm-67.058%202.238c.686-11.63%208.567-20.472%2018.961-21.969a21.968%2021.968%200%200%201%2024.481%2015.612zm330.58-2.238c-3.707-25.47-25.922-43.484-50.307-39.928a46.505%2046.505%200%200%200-39.653%2053.369c4.298%2029.589%2029.726%2043.291%2055.909%2039.474a61.002%2061.002%200%200%200%2031.909-14.704l-11.464-15.914a45.035%2045.035%200%200%201-23.191%2010.518c-11.835%201.716-22.915-2.747-27.583-14.664l65.094-9.474a82.6%2082.6%200%200%200-.714-8.677zm-67.058%202.238c.687-11.63%208.554-20.472%2018.962-21.969a21.887%2021.887%200%200%201%2024.426%2015.612zm-33.295-63.983h-24.275v113.425h24.275zm150.62%2056.719c-8.334-1.812-15.941-3.446-15.941-8.513%200-3.803%205.258-6.343%2010.874-6.343a56.723%2056.723%200%200%201%2025.179%206.343l8.16-18.124a61.791%2061.791%200%200%200-33.71-9.061c-17.025%200-35.149%209.789-35.149%2028.27%200%2017.396%2014.678%2023.341%2032.623%2028.078%207.785%202.183%2015.586%203.446%2015.586%208.883s-9.243%207.607-14.872%207.607a43.84%2043.84%200%200%201-28.257-9.611l-8.704%2018.686c5.08%204.71%2017.574%2012.358%2036.961%2012.358%2016.862%200%2039.502-7.428%2039.502-29.726%200-18.522-16.79-25.195-32.252-28.847zm-414.733-28.6H553.64v85.32h24.275zm0-28.119H553.64v18.865h24.275zm111.283%20113.439h25.318v-46.353h42.934V87.927h-42.934V64.065h52.161V42.357h-77.479z'%3e%3c/path%3e%3cpath%20fill='%2300ddb3'%20d='M149.37%200H50.596C22.653%200%200%2022.652%200%2050.596v98.774c0%2027.943%2022.653%2050.596%2050.596%2050.596h98.774c27.943%200%2050.596-22.653%2050.596-50.596V50.596C199.966%2022.652%20177.313%200%20149.37%200z'%3e%3c/path%3e%3cpath%20fill='%23fff'%20d='M151.979%2044.787c-34.422%200-47.177%2024.577-57.434%2044.321l-6.7%2012.632c-10.86%2020.938-18.974%2033.666-39.885%2033.666a9.883%209.883%200%200%200-6.99%202.896%209.88%209.88%200%200%200-2.896%206.99%209.898%209.898%200%200%200%209.886%209.886c34.435%200%2047.19-24.577%2057.446-44.321l6.687-12.632c10.874-20.939%2018.988-33.666%2039.886-33.666a9.888%209.888%200%200%200%209.899-9.886%209.9%209.9%200%200%200-9.899-9.886z'%3e%3c/path%3e%3c/svg%3e",fetchLottieAnimData=async(ea,na)=>{try{const oa=await(await fetch(ea)).json();na?.(oa,ea)}catch(ra){console.error("There was a problem with the fetch animation data",ra)}},isLottieAnimation=ea=>!(typeof ea!="object"||!ea||!ea.v||!ea.fr||!ea.w||!ea.h||!ea.assets||!ea.layers),UploadLottieButton=ea=>{const{t:na}=useTranslation(),ra=useSelector(getSelectedElements)[0],oa=useDispatch(),aa=reactExports.useCallback((la,ca)=>{if(isLottieAnimation(la)){const{w:ua,h:da}=la;oa(updateElement({id:ra,values:{options:{src:ca}}})),oa(updateElement({id:ra,assignTarget:"size",values:{default:{width:{value:ua,unit:"px"},height:{value:da,unit:"px"}}},merge:!1}))}else oa(updateElement({id:ra,assignTarget:"size",values:{default:{width:{value:400,unit:"px"},height:{value:400,unit:"px"}}},merge:!1})),oa(updateElement({id:ra,values:{options:{src:"not-valid"}}}))},[oa,ra]),sa=reactExports.useCallback(()=>{if(window.wp){const{wp:la}=window,ca=la.media({title:na("Upload or insert your animation"),button:{text:na("Insert")},library:{type:["application/json","text/plain"]},multiple:!1}).open().on("select",()=>{const da=ca.state().get("selection").first().attributes.url;oa(selectElement({id:ra,clear:!0})),fetchLottieAnimData(da,aa)})}},[oa,aa,ra,na]);return jsxRuntimeExports.jsx(OutlineButton$1,{onClick:sa,size:"small",...ea,children:i18next.t("Upload lottie animation")})},UploadLottieButton$1=dt$1(UploadLottieButton).withConfig({displayName:"UploadLottieButton",componentId:"sc-11zwgzi-0"})(["width:100%;"]),defaultColors$1v={border:"#000",title:"#FFF",pageItem:{color:"#6A6A6A",hover:"#FFF",selected:"#FFF"},pageTitle:{color:"#AAA",icon:"#AAA"},pageDesc:"#AAA"},colors$1v={dark:defaultColors$1v},defaultSizing$1g={title:{fontSize:"18px",fontWeight:"700",lineHeight:"25px"},pageItem:{fontSize:"15px",fontWeight:"400",lineHeight:"19px",selected:{fontWeight:"600"}},pageTitle:{fontSize:"18px",fontWeight:"600",lineHeight:"25px"},pageDesc:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"}},sizes$1v={default:defaultSizing$1g},scheme$18=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1v,sizes:sizes$1v},Symbol.toStringTag,{value:"Module"})),PageItem$2=ea=>{const{label:na,...ra}=ea;return jsxRuntimeExports.jsx(SimpleItem,{...ra,children:na&&jsxRuntimeExports.jsx(Label$6,{children:na})})},theme$2N=withTheme(scheme$18),PageItem$3=dt$1(PageItem$2).withConfig({displayName:"PageItem",componentId:"sc-lc4gxn-0"})(["cursor:pointer;","{cursor:inherit;margin:0;}",";",""],Label$6,theme$2N.colors((ea,{selected:na})=>lt$1(["","{color:",";}&:hover{","{color:",";}}",""],Label$6,ea.pageItem.color,Label$6,ea.pageItem.hover,na&&lt$1(["","{color:",";}"],Label$6,ea.pageItem.selected))),theme$2N.sizes((ea,{selected:na})=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}",""],Label$6,ea.pageItem.fontSize,ea.pageItem.fontWeight,ea.pageItem.lineHeight,na&&lt$1(["","{font-weight:",";}"],Label$6,ea.pageItem.selected.fontWeight)))),TabbedModalContext=React.createContext({pages:[],activePage:void 0,setActivePage:()=>{}}),useTabbedModal=()=>reactExports.useContext(TabbedModalContext),PagesList$2=ea=>{const{className:na}=ea,{pages:ra,activePage:oa,setActivePage:aa}=useTabbedModal(),sa=ca=>{aa(ca)},la=ca=>jsxRuntimeExports.jsx(PageItem$3,{...ca},ca.value);return jsxRuntimeExports.jsx(Choose,{className:na,value:oa,onChange:sa,children:ra.map(la)})},PagesList$3=dt$1(PagesList$2).withConfig({displayName:"PagesList",componentId:"sc-je36po-0"})(["","{margin-bottom:10px;}"],PageItem$3),Title$z=dt$1(Label$6).withConfig({displayName:"Sidebar__Title",componentId:"sc-ot39rd-0"})([""]),Sidebar$2=ea=>{const{className:na,title:ra}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[ra&&jsxRuntimeExports.jsx(Title$z,{children:ra}),jsxRuntimeExports.jsx(PagesList$3,{})]})},theme$2M=withTheme(scheme$18),Sidebar$3=dt$1(Sidebar$2).withConfig({displayName:"Sidebar",componentId:"sc-ot39rd-1"})(["width:200px;height:100%;padding:30px 24px;","{margin-bottom:50px;}",";",""],Title$z,theme$2M.colors(ea=>lt$1(["border-right:1px solid ",";","{color:",";}"],ea.border,Title$z,ea.title)),theme$2M.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Title$z,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight))),PageTitle$1=dt$1(LabelWithIcon$1).withConfig({displayName:"Content__PageTitle",componentId:"sc-7az85j-0"})([""]),PageDescription$1=dt$1(Label$6).withConfig({displayName:"Content__PageDescription",componentId:"sc-7az85j-1"})([""]),ContentContainer$1=dt$1.div.withConfig({displayName:"Content__ContentContainer",componentId:"sc-7az85j-2"})([""]),Content$e=ea=>{const{className:na}=ea,{pages:ra,activePage:oa}=useTabbedModal(),{icon:aa,label:sa,description:la,content:ca}=ra.find(ua=>ua.value===oa);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(PageTitle$1,{icon:aa,iconLocation:"before",children:sa}),jsxRuntimeExports.jsx(PageDescription$1,{children:la}),jsxRuntimeExports.jsx(ContentContainer$1,{id:"depicter-display-rules-content-container",children:jsxRuntimeExports.jsx(Scrollbars,{children:jsxRuntimeExports.jsx(ca,{})})})]})},theme$2L=withTheme(scheme$18),Content$f=dt$1(Content$e).withConfig({displayName:"Content",componentId:"sc-7az85j-3"})(["padding:30px;display:flex;flex-direction:column;user-select:none;","{margin-bottom:10px;","{margin-right:7px;margin-bottom:0;}}","{margin-bottom:25px;}","{flex:1;margin-right:-15px;> "," > div:first-of-type > div{padding-right:15px;}}",";",";"],PageTitle$1,IconHolder$1,PageDescription$1,ContentContainer$1,Scrollbars,theme$2L.colors(ea=>lt$1(["","{color:",";svg{fill:",";}}","{color:",";}"],PageTitle$1,ea.pageTitle.color,ea.pageTitle.icon,PageDescription$1,ea.pageDesc)),theme$2L.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],PageTitle$1,ea.pageTitle.fontSize,ea.pageTitle.fontWeight,ea.pageTitle.lineHeight,PageDescription$1,ea.pageDesc.fontSize,ea.pageDesc.fontWeight,ea.pageDesc.lineHeight))),Container$G=dt$1.div.withConfig({displayName:"TabbedModal__Container",componentId:"sc-16k92t9-0"})([""]),TabbedModal=ea=>{const{className:na,pages:ra,defaultPage:oa,footer:aa,title:sa,loading:la=!1}=ea,[ca,ua]=reactExports.useState(oa||ra[0].value);return jsxRuntimeExports.jsx(TabbedModalContext.Provider,{value:{pages:ra,activePage:ca,setActivePage:ua},children:jsxRuntimeExports.jsx(Modal$1,{className:na,buttonsPosition:{x:"9px",y:"9px"},...ea,children:jsxRuntimeExports.jsxs(LoadingSplash$1,{visible:la,children:[jsxRuntimeExports.jsxs(Container$G,{children:[jsxRuntimeExports.jsx(Sidebar$3,{title:sa}),jsxRuntimeExports.jsx(Content$f,{})]}),aa&&jsxRuntimeExports.jsx(aa,{})]})})})},TabbedModal$1=dt$1(TabbedModal).withConfig({displayName:"TabbedModal",componentId:"sc-16k92t9-1"})(["width:1100px;height:80vh;> div{display:flex;flex-direction:column;width:100%;height:100%;}","{flex:1;display:flex;flex-direction:row;width:100%;height:100%;user-select:none;}","{flex:1;}","{display:flex;flex-direction:column;}"],Container$G,Content$f,ContentWrapper$4),SvgGeneralSettings=ea=>reactExports.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M18.4913 7.61922L17.1258 7.46143C17.0267 7.16817 16.997 6.87739 16.8549 6.58991L17.8825 5.38465C18.379 4.77583 18.3567 3.89852 17.8016 3.34339L16.9557 2.48591C16.4005 1.92996 15.5282 1.88535 14.9202 2.38265L13.7174 3.36487C13.4407 3.22774 13.1507 3.10713 12.8475 3.00387L12.6906 1.66313C12.6104 0.882478 11.9595 0.5 11.1747 0.5H9.962C9.17722 0.5 8.52461 0.882478 8.4453 1.66396L8.28752 3.10713C7.99426 3.20543 7.70348 3.27483 7.416 3.41691L6.21074 2.40826C5.60274 1.91178 4.72461 1.94317 4.16948 2.49913L3.312 3.35C2.75687 3.90513 2.71226 4.77913 3.20874 5.38796L4.19096 6.59157C4.053 6.8683 3.93239 7.15909 3.82996 7.46226L2.07617 7.61922C1.29552 7.69852 0.5 8.3503 0.5 9.13509V10.3478C0.5 11.1326 1.29552 11.7852 2.077 11.8645L3.7267 12.0223C3.82583 12.3155 3.99765 12.6063 4.13974 12.8938L3.18313 14.099C2.68665 14.7079 2.74448 15.5852 3.29961 16.1403L4.1637 16.9978C4.71883 17.5529 5.59943 17.5975 6.20826 17.101L7.41435 16.1188C7.69109 16.256 7.98352 16.3766 8.2867 16.4798L8.44448 18.0783C8.52378 18.859 9.17639 19.5 9.96117 19.5H11.1739C11.9587 19.5 12.6113 18.859 12.6906 18.0783L12.8483 16.5063C13.1416 16.4071 13.4324 16.2741 13.7199 16.132L14.9251 17.1077C15.5331 17.6033 16.4113 17.557 16.9664 17.0011L17.8239 16.142C18.379 15.5868 18.4236 14.7087 17.9271 14.0999L16.9449 12.8946C17.082 12.6179 17.2027 12.3263 17.3059 12.0231L18.4913 11.8653C19.272 11.786 19.5 11.1334 19.5 10.3486V9.13591C19.5 8.3503 19.272 7.69852 18.4913 7.61922ZM18.6739 10.3486C18.6739 10.6105 18.7441 10.8277 18.4839 10.8542L16.7359 11.0458C16.579 11.0615 16.5054 11.1507 16.422 11.2846C16.3931 11.3308 16.4063 11.3804 16.3939 11.4324C16.2601 11.8901 16.099 12.318 15.8801 12.7054C15.7768 12.8872 15.8049 13.1143 15.9371 13.2763L17.1366 14.7426C17.3018 14.9458 17.2894 15.2382 17.1043 15.4233L16.2477 16.2807C16.0627 16.4658 15.7702 16.4807 15.5678 16.3154L14.1023 15.1201C13.976 15.016 13.8066 14.9821 13.6488 15.0243C13.6017 15.0367 13.5571 15.0565 13.5158 15.0813C13.0978 15.3101 12.6699 15.486 12.242 15.605C12.0404 15.6612 11.8942 15.8347 11.8727 16.0428L11.6811 18.0709C11.6547 18.3311 11.4374 18.6747 11.1755 18.6747H9.96283C9.70096 18.6747 9.4837 18.3319 9.45726 18.0717L9.26561 16.1172C9.24991 15.9602 9.16069 15.7834 9.02687 15.7C8.98061 15.6711 8.93104 15.6323 8.879 15.6199C8.42135 15.486 7.99343 15.2985 7.606 15.0804C7.42426 14.9772 7.19709 14.992 7.03517 15.1242L5.56887 16.3171C5.36565 16.4831 5.07322 16.4666 4.88817 16.2816L4.0307 15.4233C3.84565 15.2382 3.83078 14.945 3.996 14.7426L5.19135 13.2763C5.29461 13.1499 5.33013 12.9805 5.28717 12.8219C5.27478 12.7748 5.25496 12.7302 5.23017 12.6889C5.00135 12.2709 4.82539 11.843 4.70643 11.4151C4.65026 11.2135 4.47678 11.0673 4.26861 11.0458L2.08609 10.8542C1.82422 10.8277 1.32609 10.6097 1.32609 10.3486V9.13591C1.32609 8.87404 1.82422 8.65678 2.08443 8.63035L4.11661 8.4387C4.27356 8.423 4.48917 8.33461 4.57261 8.20161C4.604 8.15122 4.66348 8.09752 4.67504 8.04052C4.80804 7.58783 5.00465 7.16404 5.22109 6.77991C5.32435 6.59817 5.31443 6.371 5.18226 6.20909L3.99187 4.74278C3.82665 4.53957 3.844 4.24713 4.02904 4.06209L4.88735 3.20461C5.07239 3.01957 5.36483 3.0047 5.56804 3.16991L7.03435 4.36526C7.16156 4.46935 7.33091 4.50404 7.4887 4.46109C7.53578 4.4487 7.58039 4.42887 7.6217 4.40409C8.0397 4.17526 8.46761 3.9993 8.89552 3.88035C9.09709 3.82417 9.2433 3.6507 9.26478 3.44252L9.45643 1.67304C9.48204 1.41117 9.70013 1.32609 9.96117 1.32609H11.1739C11.4357 1.32609 11.653 1.41117 11.6794 1.67139L11.8711 3.49704C11.8868 3.654 11.976 3.76635 12.1098 3.84896C12.1561 3.87787 12.2057 3.88448 12.2577 3.89687C12.7153 4.0307 13.1433 4.2017 13.5307 4.42061C13.7124 4.52387 13.9388 4.50074 14.1015 4.36857L15.5678 3.17157C15.771 3.00635 16.0635 3.02039 16.2485 3.20543L17.106 4.06291C17.291 4.24796 17.3059 4.54039 17.1407 4.74361L15.9453 6.20909C15.8421 6.33548 15.8066 6.50483 15.8495 6.66343C15.8619 6.71052 15.8817 6.75513 15.9065 6.79643C16.1353 7.21443 16.3113 7.64235 16.4303 8.07026C16.4864 8.27183 16.6599 8.41804 16.8681 8.43952L18.4831 8.63117C18.7433 8.65761 18.6739 8.87487 18.6739 9.13674V10.3486Z"}),reactExports.createElement("path",{d:"M10.5684 6.18518C8.60723 6.18518 7.01123 7.78118 7.01123 9.74231C7.01123 11.7034 8.60723 13.2994 10.5684 13.2994C12.5295 13.2994 14.1255 11.7034 14.1255 9.74231C14.1255 7.78118 12.5295 6.18518 10.5684 6.18518ZM10.5684 12.2825C9.16732 12.2825 8.02732 11.1425 8.02732 9.74149C8.02732 8.34044 9.16732 7.20044 10.5684 7.20044C11.9694 7.20044 13.1094 8.34044 13.1094 9.74149C13.1094 11.1425 11.9686 12.2825 10.5684 12.2825Z"})),SvgCaptchaSettings=ea=>reactExports.createElement("svg",{width:15,height:20,viewBox:"0 0 15 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M13.2943 8.16433H12.111V5.34585C12.111 2.5316 9.82434 0.242004 7.01104 0.242004C4.19773 0.242004 1.91109 2.5331 1.91109 5.34918V8.16433H0.740949C0.335497 8.16433 0 8.48637 0 8.89181V17.4075C0 18.4195 0.830126 19.242 1.84212 19.242H12.1931C13.2051 19.242 14.0221 18.4195 14.0221 17.4075V8.89181C14.0221 8.48637 13.6997 8.16433 13.2943 8.16433ZM3.37775 5.34918C3.37775 3.34267 5.00733 1.71024 7.01104 1.71024C9.01475 1.71024 10.6444 3.34116 10.6444 5.34585V8.16433H3.37775V5.34918ZM12.5554 17.4075C12.5554 17.6099 12.3955 17.7754 12.1931 17.7754H1.84212C1.63972 17.7754 1.46665 17.6099 1.46665 17.4075V9.63099H12.5554V17.4075Z"}),reactExports.createElement("path",{d:"M7.01116 15.9026C7.41661 15.9026 7.74449 15.5739 7.74449 15.1685V12.5257C7.74449 12.1202 7.4166 11.7916 7.01116 11.7916C6.60572 11.7916 6.27783 12.1202 6.27783 12.5257V15.1685C6.27783 15.5739 6.60571 15.9026 7.01116 15.9026Z"})),SvgIntegrationsSettings=ea=>reactExports.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M11.4622 9.089C11.4622 9.41692 11.7281 9.68275 12.056 9.68275C12.3839 9.68275 12.6497 9.41692 12.6497 9.089H11.4622ZM12.056 8.4952L12.6498 8.4952L12.6497 8.49322L12.056 8.4952ZM11.4223 6.47739L10.934 6.81513L10.934 6.81518L11.4223 6.47739ZM9.7577 5.17278L9.96899 4.6179L9.96898 4.61789L9.7577 5.17278ZM7.64692 5.03975L7.78687 5.61677L7.78688 5.61677L7.64692 5.03975ZM5.38961 5.72861C5.17067 5.97274 5.19109 6.34812 5.43522 6.56706C5.67935 6.786 6.05473 6.76558 6.27367 6.52145L5.38961 5.72861ZM5.52734 7.91258C5.52734 7.58466 5.26151 7.31883 4.93359 7.31883C4.60567 7.31883 4.33984 7.58466 4.33984 7.91258H5.52734ZM4.93359 8.50633L4.33984 8.50633L4.33984 8.50841L4.93359 8.50633ZM5.56841 10.5262L6.05661 10.1883L6.05659 10.1882L5.56841 10.5262ZM7.23552 11.8315L7.44653 11.2765L7.44646 11.2765L7.23552 11.8315ZM9.3487 11.9632L9.20832 11.3863L9.20824 11.3863L9.3487 11.9632ZM11.6074 11.271C11.8261 11.0266 11.8053 10.6513 11.561 10.4326C11.3166 10.2139 10.9413 10.2347 10.7226 10.479L11.6074 11.271ZM3.62206 8.08023C3.39023 8.31216 3.39031 8.6881 3.62223 8.91992C3.85416 9.15175 4.2301 9.15167 4.46192 8.91975L3.62206 8.08023ZM4.9174 7.62421L5.32784 7.19516C5.09455 6.972 4.7257 6.97612 4.49747 7.20445L4.9174 7.62421ZM5.42245 8.92904C5.65941 9.15571 6.03526 9.14738 6.26194 8.91043C6.48861 8.67347 6.48028 8.29762 6.24333 8.07094L5.42245 8.92904ZM13.3778 8.91975C13.6097 8.68782 13.6096 8.31188 13.3776 8.08006C13.1457 7.84824 12.7698 7.84832 12.538 8.08025L13.3778 8.91975ZM12.0825 9.3758L11.6721 9.80484C11.9053 10.028 12.2742 10.0239 12.5024 9.79555L12.0825 9.3758ZM11.5774 8.07096C11.3405 7.84428 10.9646 7.85261 10.738 8.08956C10.5113 8.32652 10.5196 8.70237 10.7566 8.92904L11.5774 8.07096ZM16.2188 8.5C16.2188 4.23849 12.7615 0.78125 8.5 0.78125V1.96875C12.1057 1.96875 15.0312 4.89433 15.0312 8.5H16.2188ZM8.5 0.78125C4.23849 0.78125 0.78125 4.23849 0.78125 8.5H1.96875C1.96875 4.89433 4.89433 1.96875 8.5 1.96875V0.78125ZM0.78125 8.5C0.78125 12.7615 4.23849 16.2188 8.5 16.2188V15.0312C4.89433 15.0312 1.96875 12.1057 1.96875 8.5H0.78125ZM8.5 16.2188C12.7615 16.2188 16.2188 12.7615 16.2188 8.5H15.0312C15.0312 12.1057 12.1057 15.0312 8.5 15.0312V16.2188ZM12.6497 9.089V8.4952H11.4622V9.089H12.6497ZM12.6497 8.49322C12.6469 7.65197 12.3892 6.83137 11.9106 6.1396L10.934 6.81518C11.276 7.30963 11.4603 7.89607 11.4623 8.49718L12.6497 8.49322ZM11.9106 6.13965C11.4321 5.44779 10.7551 4.91725 9.96899 4.6179L9.54641 5.72766C10.1083 5.94161 10.5921 6.32077 10.934 6.81513L11.9106 6.13965ZM9.96898 4.61789C9.18284 4.31855 8.32447 4.26444 7.50696 4.46273L7.78688 5.61677C8.37111 5.47506 8.98456 5.51373 9.54642 5.72767L9.96898 4.61789ZM7.50697 4.46273C6.68947 4.66101 5.95125 5.10235 5.38961 5.72861L6.27367 6.52145C6.67505 6.07389 7.20263 5.75847 7.78687 5.61677L7.50697 4.46273ZM4.33984 7.91258V8.50633H5.52734V7.91258H4.33984ZM4.33984 8.50841C4.34279 9.35043 4.60094 10.1718 5.08023 10.8642L6.05659 10.1882C5.71398 9.69336 5.52945 9.10617 5.52734 8.50425L4.33984 8.50841ZM5.08021 10.8641C5.55951 11.5566 6.23744 12.0874 7.02458 12.3865L7.44646 11.2765C6.88382 11.0626 6.39923 10.6832 6.05661 10.1883L5.08021 10.8641ZM7.02451 12.3865C7.81166 12.6858 8.67101 12.7393 9.48916 12.5401L9.20824 11.3863C8.62341 11.5287 8.00917 11.4904 7.44653 11.2765L7.02451 12.3865ZM9.48908 12.5401C10.3073 12.341 11.0459 11.8984 11.6074 11.271L10.7226 10.479C10.3211 10.9276 9.7931 11.244 9.20832 11.3863L9.48908 12.5401ZM4.46192 8.91975L5.33733 8.04397L4.49747 7.20445L3.62206 8.08023L4.46192 8.91975ZM4.50696 8.05326L5.42245 8.92904L6.24333 8.07094L5.32784 7.19516L4.50696 8.05326ZM12.538 8.08025L11.6626 8.95605L12.5024 9.79555L13.3778 8.91975L12.538 8.08025ZM12.4929 8.94676L11.5774 8.07096L10.7566 8.92904L11.6721 9.80484L12.4929 8.94676Z"})),initialSettingsData={useGoogleFonts:"on",resourcePreloading:!0,allowUnfilteredDataUpload:!1,regenerateCssFlushCache:!1,alwaysLoadAssets:!1,googleRecaptchaClientKey:"",googleRecaptchaSecretKey:"",googleRecaptchaScoreThreshold:.6,googleRecaptchaFailMessage:"Google reCAPTCHA verification failed, please try again later.",googlePlacesApiKey:""},initialData={isLoading:!1,settings:initialSettingsData,lastHistory:{settings:initialSettingsData}},reducer=(ea,{type:na,payload:ra})=>{let oa;switch(na){case"setIsLoading":oa={...ea,isLoading:ra};break;case"load":oa={...ea,settings:{...ea.settings,...ra},lastHistory:{settings:{...ea.settings,...ra}}};break;case"discardData":oa={...ea,settings:ea.lastHistory.settings};break;case"UPDATE_SETTINGS_VALUE":{const aa=setWith(cloneDeep$1(ea.settings),ra.path,ra.value);oa={...ea,settings:aa};break}case"updateLastHistoryData":oa={...ea,lastHistory:ra};break;default:oa=ea}return oa},SettingsContext=reactExports.createContext([initialData,()=>{}]),defaultColors$1u={border:"#000",label:"#FFF",bg:"rgba(28, 28, 28, 1)",desc:"rgba(106, 106, 106, 1)"},colors$1u={dark:defaultColors$1u},defaultSizing$1f={label:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},desc:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"}},sizes$1u={default:defaultSizing$1f},scheme$17=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1u,sizes:sizes$1u},Symbol.toStringTag,{value:"Module"})),OCSpacer=dt$1.div.withConfig({displayName:"OptionDriver__OCSpacer",componentId:"sc-unoj9z-0"})(["flex-basis:100%;"]),OptionControlDriver=React.memo(ea=>{const{control:na,controlProps:ra,selector:oa=()=>null,dispatcher:aa,dependency:sa=()=>!0,disabledWhen:la=()=>!1,action:ca,valueFilter:ua,onChangeValueFilter:da,equalCheck:pa=!0,locked:ha,callChangeOnMount:ga=!1,fieldComponent:fa=Field$1,onVisibilityChange:ma,debug:va,defaultValue:xa,maxWidth:ya,modifier:Aa,styles:Ca,clearAfter:Sa,...wa}=ea,[ba,Ea]=reactExports.useContext(SettingsContext);let $a=oa(ba.settings)??xa;const Ma=sa(ba.settings),Ia=la(ba.settings);ua&&($a=ua($a)),va&&console.log(`options #${wa.id} - rendered | value:`,$a);const Oa=reactExports.useCallback(Da=>{if(!aa&&!ca||ha||!Ma)return;let Ta=Da;if(da&&(Ta=da(Ta)),pa&&equal(Ta,$a))return;va&&console.log(`options #${wa.id} - changed:`,Ta);const{action:_a=ca,actionPayload:La}=aa||{},Na={value:Ta,...La};Ea(_a(Na))},[ca,va,Ma,Ea,aa,pa,ha,da,wa.id,$a]);return reactExports.useEffect(()=>{ga&&Ma&&Oa($a)},[!Ma]),reactExports.useLayoutEffect(()=>{ma?.(wa.id,Ma)},[wa.id,Ma,ma]),Ma?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(fa,{styles:{...Ca,maxWidth:ya},...wa,children:jsxRuntimeExports.jsx(na,{value:$a,onChange:Oa,tooltip:wa.tooltip,disabled:Ia,...ra})}),Sa&&jsxRuntimeExports.jsx(OCSpacer,{style:{flexBasis:Sa===!0?"100%":`${Sa}%`}})]}):null}),theme$2K=withTheme(scheme$17),OptionDriver=dt$1(OptionControlDriver).withConfig({displayName:"OptionDriver",componentId:"sc-unoj9z-1"})(["> ","{margin-bottom:10px;}",";",";"],Label$6,theme$2K.colors(ea=>lt$1(["","{color:",";}"],Label$6,ea.label)),theme$2K.sizes(ea=>lt$1(["","{font-size:",";line-height:",";font-weight:",";}"],Label$6,ea.label.fontSize,ea.label.lineHeight,ea.label.fontWeight)));dt$1(Label$6).withConfig({displayName:"OptionFieldset__FieldsetLabel",componentId:"sc-m0fy4q-0"})([""]);dt$1(Divider).withConfig({displayName:"OptionFieldset__FieldsetDivider",componentId:"sc-m0fy4q-1"})([""]);const FieldsetControls=dt$1.div.withConfig({displayName:"OptionFieldset__FieldsetControls",componentId:"sc-m0fy4q-2"})([""]),FieldsetDescription=dt$1.span.withConfig({displayName:"OptionFieldset__FieldsetDescription",componentId:"sc-m0fy4q-3"})([""]),FieldsetControlsWrapper=dt$1.div.withConfig({displayName:"OptionFieldset__FieldsetControlsWrapper",componentId:"sc-m0fy4q-4"})([""]),BaseFieldset=React.memo(ea=>{const{className:na,children:ra,badgeSymbol:oa=jsxRuntimeExports.jsx(ProBadge$1,{}),locked:aa=!0,visibleControls:sa,badgePosition:la,desc:ca,styles:ua}=ea,da=useOpenUpgradeToPro(),pa=reactExports.useRef(null),ha=reactExports.useMemo(()=>({position:la||{top:"0",right:"290px"},symbols:oa}),[la,oa]),ga=reactExports.useCallback(()=>{da({source:"depicter_dashboard",medium:"settings",content:ea.id})},[da,ea.id]);if(sa?.length===0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ra});let fa=jsxRuntimeExports.jsxs(FieldsetControlsWrapper,{children:[jsxRuntimeExports.jsx(FieldsetControls,{children:ra}),ca&&jsxRuntimeExports.jsx(FieldsetDescription,{children:ca})]});return aa&&oa&&(fa=jsxRuntimeExports.jsx(WithBadge,{onClick:ga,symbolsData:ha,overlay:"black",children:fa})),jsxRuntimeExports.jsx("div",{className:na,ref:pa,style:ua,children:fa})}),theme$2J=withTheme(scheme$17),OptionFieldset=dt$1(BaseFieldset).withConfig({displayName:"OptionFieldset",componentId:"sc-m0fy4q-5"})(["margin-bottom:10px;padding:15px;border-radius:5px;","{display:flex;}","{flex:1;}","{flex-basis:270px;}","{margin-bottom:10px;&:last-of-type{margin-bottom:0;}}","{width:100%;&:after{background-color:transparent;z-index:20;}}&:last-of-type{margin-bottom:0;}",";",";"],FieldsetControlsWrapper,FieldsetControls,FieldsetDescription,FieldsetRow,WithBadge,theme$2J.colors(ea=>lt$1(["background-color:",";","{color:",";}"],ea.bg,FieldsetDescription,ea.desc)),theme$2J.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],FieldsetDescription,ea.desc.fontSize,ea.desc.fontWeight,ea.desc.lineHeight))),GeneralPage=ea=>{const{className:na,options:ra}=ea,oa=useUserTierAuthCallback();return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(OCManager,{optionControls:ra,driverComponent:OptionDriver,fieldsetComponent:OptionFieldset,tierChecker:oa})})},PageContent=dt$1(GeneralPage).withConfig({displayName:"PageContent",componentId:"sc-15m2pav-0"})([""]),updateSettingsValue=ea=>na=>({type:"UPDATE_SETTINGS_VALUE",payload:{path:ea,value:na.value}}),SvgFlushIcon=ea=>reactExports.createElement("svg",{width:11,height:13,viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53345 2.6L5.06678 5.2L5.06678 -1.51533e-07L8.53345 2.6Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.46655 10.4L5.93322 7.8L5.93322 13L2.46655 10.4Z"}),reactExports.createElement("path",{d:"M9.35275 3.69323C9.87038 4.40375 10.1814 5.24358 10.2515 6.11986C10.3217 6.99614 10.1481 7.87474 9.74999 8.65852C9.35191 9.4423 8.74484 10.1007 7.9959 10.561C7.24696 11.0213 6.38531 11.2655 5.50624 11.2667L5.50377 9.36C6.03121 9.35931 6.5482 9.21279 6.99757 8.93661C7.44693 8.66044 7.81117 8.26538 8.05002 7.79511C8.28887 7.32484 8.39302 6.79768 8.35095 6.27192C8.30889 5.74615 8.12225 5.24225 7.81167 4.81594L9.35275 3.69323Z"}),reactExports.createElement("path",{d:"M1.66693 9.3334C1.14439 8.62649 0.827508 7.78884 0.75133 6.91306C0.675151 6.03729 0.84264 5.15751 1.23528 4.37099C1.62791 3.58446 2.23041 2.92184 2.97614 2.45637C3.72188 1.9909 4.58181 1.74073 5.46086 1.73349L5.47654 3.6401C4.94911 3.64444 4.43315 3.79454 3.98571 4.07382C3.53827 4.3531 3.17677 4.75068 2.94119 5.22259C2.70561 5.6945 2.60512 6.22237 2.65082 6.74784C2.69653 7.2733 2.88666 7.77589 3.20018 8.20004L1.66693 9.3334Z"})),FlushButton=ea=>{const{className:na,...ra}=ea,[oa,{status:aa}]=useRequest(flushCache,{onError:console.log,initialStatus:"success"}),sa=aa==="loading",la=reactExports.useCallback(()=>{oa()},[oa]);return jsxRuntimeExports.jsx(BaseButton$1,{className:`${na} ${sa?"is-loading":""}`,icon:jsxRuntimeExports.jsx(SvgFlushIcon,{}),onClick:la,disabled:sa,...ra})},TurnAnimation=mt$1(["to{transform:rotate(1turn);}"]),FlushButton$1=dt$1(FlushButton).withConfig({displayName:"FlushButton",componentId:"sc-ctvdnz-0"})(["background-color:#444;color:#fff;height:31px;font-size:10px;font-weight:600;gap:5px;padding:9px 13px;&.is-loading{svg{animation:"," 1s linear infinite;}}svg{fill:#fff;}"],TurnAnimation),generalSettingsOptionControls=[{id:"googleFontsFieldset",desc:i18next.t("Enable, disable, or save Google Fonts locally on your host."),optionControls:[[createOptionControl({id:"useGoogleFonts",control:Select$1,label:i18next.t("Google fonts"),controlProps:{options:[{value:"off",label:i18next.t("Disabled")},{value:"on",label:i18next.t("Enabled")},{value:"editor_only",label:i18next.t("Load in editor only")},{value:"save_locally",label:i18next.t("Save Locally")}]},selector:ea=>ea.useGoogleFonts,action:updateSettingsValue("useGoogleFonts"),styles:{width:"290px"}})]]},{id:"resourcePreloadingFieldset",desc:i18next.t("Enable or disable preloading of website resources (images and CSS) for faster page load speed."),optionControls:[[createOptionControl({id:"resourcePreloading",control:SwitchBox$1,controlProps:{label:i18next.t("Resource Preloading")},selector:ea=>ea.resourcePreloading,action:updateSettingsValue("resourcePreloading")})]]},{id:"allowUnfilteredDataUploadFieldset",desc:i18next.t("Attention! Allowing uploads of SVG or JSON files is a potential security risk. Although Depicter sanitizes such files, we recommend that you only enable this feature if you understand the security risks involved."),optionControls:[[createOptionControl({id:"resourcePreloading",control:SwitchBox$1,controlProps:{label:i18next.t("Allow SVG & JSON Upload?")},selector:ea=>ea.allowUnfilteredDataUpload,action:updateSettingsValue("allowUnfilteredDataUpload")})]]},{id:"alwaysLoadAssetsFieldset",desc:i18next.t("By default, Depicter will load corresponding JavaScript and CSS files on demand. but if you need to load assets on all pages, check this option. (For example, if you plan to load Depicter via Ajax, you need to enable this option)"),optionControls:[[createOptionControl({id:"alwaysLoadAssets",control:SwitchBox$1,controlProps:{label:i18next.t("Load assets on all pages?")},selector:ea=>ea.alwaysLoadAssets,action:updateSettingsValue("alwaysLoadAssets")})]]},{id:"regenerateCSSandFlushCacheFieldset",styles:{backgroundColor:"transparent",paddingLeft:"0"},optionControls:[[createOptionControl({id:"regenerateCSSandFlushCache",control:FlushButton$1,controlProps:{children:i18next.t("Regenerate CSS & Flush Cache")}})]]}],captchaSettingsOptionControls=[{id:"googleRecaptchaFieldset",desc:i18next.t('New "invisible" reCAPTCHA, where verification occurs in the background, and no challenges are displayed at all if the user is deemed to be of low risk.'),optionControls:[[createOptionControl({id:"googleRecaptchaClientKey",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Google Recaptcha (v3) Client key"),selector:ea=>ea.googleRecaptchaClientKey,action:updateSettingsValue("googleRecaptchaClientKey"),styles:{width:"290px"}})],[createOptionControl({id:"googleRecaptchaSecretKey",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Google Recaptcha (v3) Secret key"),selector:ea=>ea.googleRecaptchaSecretKey,action:updateSettingsValue("googleRecaptchaSecretKey"),styles:{width:"290px"}})]]},{id:"captchaThresholdFieldset",desc:i18next.t("reCAPTCHA v3 returns a score (1.0 is very likely a good interaction, 0.0 is very likely a bot). If the score less than or equal to this threshold, the form submission will be blocked and the message below will be displayed."),optionControls:[[createOptionControl({id:"googleRecaptchaThreshold",control:Number$2,controlProps:{variant:"small"},label:i18next.t("Score Threshold"),selector:ea=>ea.googleRecaptchaScoreThreshold,action:updateSettingsValue("googleRecaptchaScoreThreshold"),styles:{width:"92px"}})]]},{id:"captchaFailMessageFieldset",desc:i18next.t("The message that will be displayed if the reCAPTCHA verification fails. The message will be displayed in the form of a notification."),optionControls:[[createOptionControl({id:"googleRecaptchaFailMessage",control:Input$2,controlProps:{variant:"small",inputType:"textArea"},label:i18next.t("Fail Message"),selector:ea=>ea.googleRecaptchaFailMessage,action:updateSettingsValue("googleRecaptchaFailMessage"),styles:{width:"290px"}})]]}],integrationsSettingsOptionControls=[{id:"integrationsFieldset",desc:i18next.t("To fetch and display reviews of a place on your website (Google Reviews), you need to provide a valid Google Places API key."),optionControls:[[createOptionControl({id:"googlePlacesApiKey",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Google Places Api key"),selector:ea=>ea.googlePlacesApiKey,action:updateSettingsValue("googlePlacesApiKey"),styles:{width:"290px"}})]]}],settingsPages=[{value:"generalSettings",label:i18next.t("General settings"),description:i18next.t("An optional description for general settings"),icon:SvgGeneralSettings,content:()=>jsxRuntimeExports.jsx(PageContent,{options:generalSettingsOptionControls})},{value:"captchaSettings",label:i18next.t("CAPTCHA settings"),description:i18next.t("An optional description for general settings"),icon:SvgCaptchaSettings,content:()=>jsxRuntimeExports.jsx(PageContent,{options:captchaSettingsOptionControls})},{value:"integrationSettings",label:i18next.t("Integration settings"),description:i18next.t("An optional description for general settings"),icon:SvgIntegrationsSettings,content:()=>jsxRuntimeExports.jsx(PageContent,{options:integrationsSettingsOptionControls})}],SvgSave$1=ea=>reactExports.createElement("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H7.61538L11 3.38462V10C11 10.5523 10.5523 11 10 11H1C0.447715 11 0 10.5523 0 10V1ZM1 1H7V4H1V1ZM4 7.5C4 6.67157 4.67157 6 5.5 6C6.32843 6 7 6.67157 7 7.5C7 8.32843 6.32843 9 5.5 9C4.67157 9 4 8.32843 4 7.5Z"})),useSettings=()=>reactExports.useContext(SettingsContext),underScoreToCamelCaseProps=(ea,na={})=>{for(const ra in ea)if(ea.hasOwnProperty(ra)){const oa=ra.split("_").map((aa,sa)=>sa===0?aa:aa.charAt(0).toUpperCase()+aa.slice(1)).join("");typeof ea[ra]=="object"&&!Array.isArray(ea[ra])&&ea[ra]!==null&&!ea[ra].isDate?na[oa]=underScoreToCamelCaseProps(ea[ra]):na[oa]=ea[ra]}return na},camelCaseToUnderScoreProps=(ea,na={})=>{for(const ra in ea)if(ea.hasOwnProperty(ra)){const oa=ra.replace(/[A-Z]/g,aa=>`_${aa.toLowerCase()}`);typeof ea[ra]=="object"&&!Array.isArray(ea[ra])&&ea[ra]!==null&&!ea[ra].isDate?na[oa]=camelCaseToUnderScoreProps(ea[ra]):na[oa]=ea[ra]}return na},convertOnOffToBoolean=(ea,na=[])=>{const ra={};for(const oa in ea)ea.hasOwnProperty(oa)&&(!na.includes(oa)&&typeof ea[oa]=="string"&&["on","off"].includes(ea[oa])?ra[oa]=ea[oa]==="on":ra[oa]=ea[oa]);return ra},convertBooleanToOnOff=(ea,na=[])=>{const ra={};for(const oa in ea)ea.hasOwnProperty(oa)&&(!na.includes(oa)&&typeof ea[oa]=="boolean"?ra[oa]=ea[oa]?"on":"off":ra[oa]=ea[oa]);return ra},convertSettings$1=ea=>convertBooleanToOnOff(camelCaseToUnderScoreProps(ea),["use_google_fonts"]),Footer$3=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{closeModal:oa}=useModal(),[aa,sa]=useSettings(),la=useOpenNotice("confirm"),{lastHistory:ca,settings:ua}=aa,da=reactExports.useMemo(()=>!isEqual$1(ua,ca.settings),[ca.settings,ua]),pa=reactExports.useCallback(()=>{sa({type:"updateLastHistoryData",payload:aa})},[sa,aa]),[ha,{status:ga}]=useRequest(saveSettings,{onSuccess:pa,onError:console.log,initialStatus:"success"}),fa=()=>{ha({settings:JSON.stringify(convertSettings$1(ua))})},ma=()=>{da?la({title:ra("Unsaved Changes"),content:ra("Your changes are not saved. Do you want to continue without saving?"),cancelLabel:ra("Return"),confirmLabel:ra("Discard changes")}).then(()=>{sa({type:"discardData",payload:{}}),oa("settings")}).catch(noop$3):oa("settings")},va=ga==="loading";return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:ma,disabled:va,children:ra("Close")}),jsxRuntimeExports.jsx(SolidButton,{size:"small",icon:jsxRuntimeExports.jsx(SvgSave$1,{}),onClick:fa,loading:va,disabled:!da,children:ra("Save")})]})},theme$2I=withTheme(scheme$17),Footer$4=dt$1(Footer$3).withConfig({displayName:"Footer",componentId:"sc-1blw0nh-0"})(["display:flex;gap:10px;align-items:center;justify-content:flex-end;padding:10px 15px;",",","{width:97px;}",";"],OutlineButton$1,SolidButton,theme$2I.colors(ea=>lt$1(["border-top:1px solid ",";"],ea.border))),convertSettings=ea=>convertOnOffToBoolean(underScoreToCamelCaseProps(ea),["useGoogleFonts"]),Settings$2=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),[oa,aa]=reactExports.useReducer(reducer,initialData),{activeModal:{options:sa}}=useModal(),la=reactExports.useCallback(da=>{aa({type:"load",payload:convertSettings(da)}),console.log("converted",convertSettings(da)),aa({type:"setIsLoading",payload:!1})},[]),[ca]=useRequest(getSettings,{onSuccess:la,onError:console.log}),ua=reactExports.useCallback(()=>{ca(),aa({type:"setIsLoading",payload:!0})},[ca]);return jsxRuntimeExports.jsx(SettingsContext.Provider,{value:[oa,aa],children:jsxRuntimeExports.jsx(TabbedModal$1,{className:na,index:"settings",pages:settingsPages,defaultPage:sa?.defaultPage||"generalSettings",closeButton:!1,clickOverlayClose:!1,escClose:!1,title:ra("Settings"),onOpen:ua,loading:oa.isLoading,footer:Footer$4,...ea})})},SettingsModal=dt$1(Settings$2).withConfig({displayName:"Settings",componentId:"sc-2k8ok-0"})([""]),useOpenSettings=ea=>{const{addToModalsStack:na}=useModal();return reactExports.useCallback(ra=>{ra?.preventDefault(),na([{id:"settings",options:{defaultPage:ea}}])},[na,ea])},optionsSelector$u=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$u=updateSelectedElementsValueByPathAndPrefix("options"),JSONNotice=()=>{const ea=useOpenSettings("generalSettings");return jsxRuntimeExports.jsx(Trans,{children:jsxRuntimeExports.jsxs("p",{children:["Uploads of JSON (lottie) files are disabled by default. Enable it from the"," ",jsxRuntimeExports.jsx("a",{onClick:ea,rel:"noreferrer",children:"settings page."})]})})},lottieUpload=[{id:"lottieUpload",border:"bottom",optionControls:[[createOptionControl({id:"uploadLottie",control:UploadLottieButton$1})],[createOptionControl({id:"documentAnimationNoticeBox",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:jsxRuntimeExports.jsx(JSONNotice,{}),variant:"boxed"},styles:{marginBottom:"10px"},dependency:()=>!editorEnv.integrations.unfilteredUploadAllowed})]]}],lottieOptions=[{id:"lottieOptions",label:i18next.t("Lottie Options"),border:"bottom",optionControls:[[createOptionControl({id:"speed",label:i18next.t("Speed"),control:SliderWithNumber,controlProps:{min:0,max:30,floatRange:2},selector:optionsSelector$u("speed"),action:optionsAction$u("speed")})],[createOptionControl({id:"direction",label:i18next.t("Direction"),control:Select$1,controlProps:{options:[{label:"Forward",value:"forward"},{label:"Backward",value:"backward"}]},selector:optionsSelector$u("direction"),action:optionsAction$u("direction"),styles:{flex:" 0 0 112px"}}),createOptionControl({id:"delay",control:Number$2,label:i18next.t("Delay"),selector:optionsSelector$u("delay"),action:optionsAction$u("delay"),controlProps:{units:"ms"},styles:{flex:" 0 0 112px"}})],[createOptionControl({id:"loop",control:SwitchBox$1,controlProps:{label:i18next.t("Loop")},selector:optionsSelector$u("loop"),action:optionsAction$u("loop")})],[createOptionControl({id:"pauseOnSlideChange",control:SwitchBox$1,controlProps:{label:i18next.t("Pause on slide changes")},selector:optionsSelector$u("pauseOnSlideChange"),action:optionsAction$u("pauseOnSlideChange")})],[createOptionControl({id:"playOnHover",control:SwitchBox$1,controlProps:{label:i18next.t("Play on hover")},selector:optionsSelector$u("playOnHover"),action:optionsAction$u("playOnHover")})]]}],lottieElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["filter","backgroundBlur"]))(elementStylesOptionControls),optionControls$e=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...lottieUpload,...lottieOptions,...lottieElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$f={...elementDefaultCommonState,innerStyles:{}},initialStateValues$f={options:{speed:1,direction:"forward",delay:0,loop:!0,playOnHover:!1,pauseOnSlideChange:!1},innerStyles:{}},NoticeContainer=dt$1.div.withConfig({displayName:"Lottie__NoticeContainer",componentId:"sc-1sg1xgh-0"})([""]),LottieElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,options:oa,styles:aa,innerStyles:sa}=ea,{t:la}=useTranslation(),ca=useUniqueClassName(),ua=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0,keepAspectRatio:!0}),[]),da=useTypography(aa?.typography),pa=reactExports.useRef(null),ha={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...da,...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},ga={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:fa=>{assignRef$1(fa,na),pa.current=fa},style:ga,contentStyle:ha,onElementClick:ra,transformToolConfig:ua,...ea,className:`${ea.className} ${ca}`,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${ca}`}),oa?.src&&oa?.src!=="not-valid"?jsxRuntimeExports.jsx(Lottie,{...oa}):jsxRuntimeExports.jsxs(NoticeContainer,{children:[jsxRuntimeExports.jsx("img",{src:LottieLogo,alt:"loading failed"}),jsxRuntimeExports.jsx("span",{className:oa?.src?"dpc-error":"",children:oa?.src?la("The selected lottie file is not supported."):la("Upload or choose a lottie file through the right side panel.")})]})]})}),LottieElement=dt$1(LottieElementLogic).withConfig({displayName:"Lottie__LottieElement",componentId:"sc-1sg1xgh-1"})(["","{background-color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;align-content:center;text-align:center;height:100%;gap:15px;padding:4%;span.dpc-error{color:red;}img{width:60%;}}"],NoticeContainer);registerElement({type:"dpcLottie",name:"Lottie",component:LottieElement,optionControls:optionControls$e,initialStateValues:initialStateValues$f,defaultStateValues:defaultStateValues$f});let hasPassiveEvents=!1;if(typeof window<"u"){const ea={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,ea),window.removeEventListener("testPassive",null,ea)}const isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1);let locks=[],locksIndex=new Map,documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting,htmlStyle,bodyStyle,previousBodyPaddingRight;const allowTouchMove=ea=>locks.some(na=>!!(na.options.allowTouchMove&&na.options.allowTouchMove(ea))),preventDefault=ea=>{const na=ea||window.event;return allowTouchMove(na.target)||na.touches.length>1?!0:(na.preventDefault&&na.preventDefault(),!1)},setOverflowHidden=ea=>{if(previousBodyPaddingRight===void 0){const na=!!ea&&ea.reserveScrollBarGap===!0,ra=window.innerWidth-document.documentElement.getBoundingClientRect().width;if(na&&ra>0){const oa=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${oa+ra}px`}}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=()=>{previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},setPositionFixed=()=>window.requestAnimationFrame(()=>{const ea=document.documentElement,na=document.body;if(bodyStyle===void 0){htmlStyle={...ea.style},bodyStyle={...na.style};const{scrollY:ra,scrollX:oa,innerHeight:aa}=window;ea.style.height="100%",ea.style.overflow="hidden",na.style.position="fixed",na.style.top=`${-ra}px`,na.style.left=`${-oa}px`,na.style.width="100%",na.style.height="auto",na.style.overflow="hidden",setTimeout(()=>window.requestAnimationFrame(()=>{const sa=aa-window.innerHeight;sa&&ra>=aa&&(na.style.top=-(ra+sa)+"px")}),300)}}),restorePositionSetting=()=>{if(bodyStyle!==void 0){const ea=-parseInt(document.body.style.top,10),na=-parseInt(document.body.style.left,10),ra=document.documentElement,oa=document.body;ra.style.height=htmlStyle?.height||"",ra.style.overflow=htmlStyle?.overflow||"",oa.style.position=bodyStyle.position||"",oa.style.top=bodyStyle.top||"",oa.style.left=bodyStyle.left||"",oa.style.width=bodyStyle.width||"",oa.style.height=bodyStyle.height||"",oa.style.overflow=bodyStyle.overflow||"",window.scrollTo(na,ea),bodyStyle=void 0}},isTargetElementTotallyScrolled=ea=>ea?ea.scrollHeight-ea.scrollTop<=ea.clientHeight:!1,handleScroll=(ea,na)=>{const ra=ea.targetTouches[0].clientY-initialClientY;return allowTouchMove(ea.target)?!1:na&&na.scrollTop===0&&ra>0||isTargetElementTotallyScrolled(na)&&ra<0?preventDefault(ea):(ea.stopPropagation(),!0)},disableBodyScroll=(ea,na)=>{if(!ea){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(locksIndex.set(ea,locksIndex?.get(ea)?locksIndex?.get(ea)+1:1),locks.some(oa=>oa.targetElement===ea))return;const ra={targetElement:ea,options:na||{}};locks=[...locks,ra],isIosDevice?setPositionFixed():setOverflowHidden(na),isIosDevice&&(ea.ontouchstart=oa=>{oa.targetTouches.length===1&&(initialClientY=oa.targetTouches[0].clientY)},ea.ontouchmove=oa=>{oa.targetTouches.length===1&&handleScroll(oa,ea)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0))},enableBodyScroll=ea=>{if(!ea){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}locksIndex.set(ea,locksIndex?.get(ea)?locksIndex?.get(ea)-1:0),locksIndex?.get(ea)===0&&(locks=locks.filter(na=>na.targetElement!==ea),locksIndex?.delete(ea)),isIosDevice&&(ea.ontouchstart=null,ea.ontouchmove=null,documentListenerAdded&&locks.length===0&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1)),locks.length===0&&(isIosDevice?restorePositionSetting():restoreOverflowSetting())};class ImageCompare{constructor(na,ra={}){const oa={controlColor:"#FFFFFF",controlShadow:!0,addCircle:!1,addCircleBlur:!0,showLabels:!1,labelOptions:{before:"Before",after:"After",onHover:!1},smoothing:!0,smoothingAmount:100,hoverStart:!1,verticalMode:!1,startingPoint:50,fluidMode:!1,removeScroll:!0};this.settings=Object.assign(oa,ra),this.safariAgent=navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1,this.el=na,this.images={},this.wrapper=null,this.control=null,this.arrowContainer=null,this.arrowAnimator=[],this.active=!1,this.slideWidth=50,this.lineWidth=2,this.arrowCoordinates={circle:[5,3],standard:[8,0]}}mount(){this.safariAgent&&(this.settings.smoothing=!1),this._shapeContainer(),this._getImages(),this._buildControl(),this._events()}_events(){this.el.addEventListener("mousedown",na=>{this._activate(!0),document.body.classList.add("icv__body"),this.settings.removeScroll&&disableBodyScroll(this.el,{reserveScrollBarGap:!0}),this._slideCompare(na)}),this.el.addEventListener("mousemove",na=>this.active&&this._slideCompare(na)),this.el.addEventListener("mouseup",()=>this._activate(!1)),document.body.addEventListener("mouseup",()=>{document.body.classList.remove("icv__body"),this.settings.removeScroll&&enableBodyScroll(this.el),this._activate(!1)}),this.control.addEventListener("touchstart",na=>{this._activate(!0),document.body.classList.add("icv__body"),this.settings.removeScroll&&disableBodyScroll(this.el,{reserveScrollBarGap:!0})}),this.el.addEventListener("touchmove",na=>{this.active&&this._slideCompare(na)}),this.el.addEventListener("touchend",()=>{this._activate(!1),document.body.classList.remove("icv__body"),this.settings.removeScroll&&enableBodyScroll(this.el)}),this.el.addEventListener("mouseenter",()=>{this.settings.hoverStart&&this._activate(!0);let na=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach((ra,oa)=>{ra.style.cssText=`
        ${this.settings.verticalMode?`transform: translateY(${na[1]*(oa===0?1:-1)}px);`:`transform: translateX(${na[1]*(oa===0?1:-1)}px);`}
        `})}),this.el.addEventListener("mouseleave",()=>{let na=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach((ra,oa)=>{ra.style.cssText=`
        ${this.settings.verticalMode?`transform: translateY(${oa===0?`${na[0]}px`:`-${na[0]}px`});`:`transform: translateX(${oa===0?`${na[0]}px`:`-${na[0]}px`});`}
        `})})}_slideCompare(na){let ra=this.el.getBoundingClientRect(),oa=na.touches!==void 0?na.touches[0].clientX-ra.left:na.clientX-ra.left,aa=na.touches!==void 0?na.touches[0].clientY-ra.top:na.clientY-ra.top,sa=this.settings.verticalMode?aa/ra.height*100:oa/ra.width*100;sa>=0&&sa<=100&&(this.settings.verticalMode?this.control.style.top=`calc(${sa}% - ${this.slideWidth/2}px)`:this.control.style.left=`calc(${sa}% - ${this.slideWidth/2}px)`,this.settings.fluidMode?this.settings.verticalMode?this.wrapper.style.clipPath=`inset(0 0 ${100-sa}% 0)`:this.wrapper.style.clipPath=`inset(0 0 0 ${sa}%)`:this.settings.verticalMode?this.wrapper.style.height=`calc(${sa}%)`:this.wrapper.style.width=`calc(${100-sa}%)`)}_activate(na){this.active=na}_shapeContainer(){let na=document.createElement("div"),ra=document.createElement("span"),oa=document.createElement("span");ra.classList.add("icv__label","icv__label-before","keep"),oa.classList.add("icv__label","icv__label-after","keep"),this.settings.labelOptions.onHover&&(ra.classList.add("on-hover"),oa.classList.add("on-hover")),this.settings.verticalMode&&(ra.classList.add("vertical"),oa.classList.add("vertical")),ra.innerHTML=this.settings.labelOptions.before||"Before",oa.innerHTML=this.settings.labelOptions.after||"After",this.settings.showLabels&&(this.el.appendChild(ra),this.el.appendChild(oa)),this.el.classList.add("icv",this.settings.verticalMode?"icv__icv--vertical":"icv__icv--horizontal",this.settings.fluidMode?"icv__is--fluid":"standard"),na.classList.add("icv__imposter"),this.el.appendChild(na)}_buildControl(){let na=document.createElement("div"),ra=document.createElement("div"),oa=document.createElement("div"),aa=document.createElement("div");const sa="20";oa.classList.add("icv__theme-wrapper");for(var la=0;la<=1;la++){let da=document.createElement("div"),pa=`<svg
      height="15"
      width="15"
       style="
       transform: 
       scale(${this.settings.addCircle?.7:1.5})  
       rotateZ(${la===0?this.settings.verticalMode?"-90deg":"180deg":this.settings.verticalMode?"90deg":"0deg"}); height: ${sa}px; width: ${sa}px;
       
       ${this.settings.controlShadow?`
       -webkit-filter: drop-shadow( 0px 3px 5px rgba(0, 0, 0, .33));
       filter: drop-shadow( 0px ${la===0?"-3px":"3px"} 5px rgba(0, 0, 0, .33));
       `:""}
       "
       xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 15 15">
       <path ${this.settings.addCircle?'fill="transparent"':`fill="${this.settings.controlColor}"`}
       stroke="${this.settings.controlColor}"
       stroke-linecap="round"
       stroke-width="${this.settings.addCircle?3:0}"
       d="M4.5 1.9L10 7.65l-5.5 5.4"
       />
     </svg>`;da.innerHTML+=pa,this.arrowAnimator.push(da),oa.appendChild(da)}let ca=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach((da,pa)=>{da.classList.add("icv__arrow-wrapper"),da.style.cssText=`
      ${this.settings.verticalMode?`transform: translateY(${pa===0?`${ca[0]}px`:`-${ca[0]}px`});`:`transform: translateX(${pa===0?`${ca[0]}px`:`-${ca[0]}px`});`}
      `}),na.classList.add("icv__control"),na.style.cssText=`
    ${this.settings.verticalMode?"height":"width "}: ${this.slideWidth}px;
    ${this.settings.verticalMode?"top":"left "}: calc(${this.settings.startingPoint}% - ${this.slideWidth/2}px);
    ${"ontouchstart"in document.documentElement?"":this.settings.smoothing?`transition: ${this.settings.smoothingAmount}ms ease-out;`:""}
    `,ra.classList.add("icv__control-line"),ra.style.cssText=`
      ${this.settings.verticalMode?"height":"width "}: ${this.lineWidth}px;
      background: ${this.settings.controlColor};
        ${this.settings.controlShadow?"box-shadow: 0px 0px 15px rgba(0,0,0,0.33);":""}
    `;let ua=ra.cloneNode(!0);aa.classList.add("icv__circle"),aa.style.cssText=`

      ${this.settings.addCircleBlur&&"-webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px)"};
      
      border: ${this.lineWidth}px solid ${this.settings.controlColor};
      ${this.settings.controlShadow&&"box-shadow: 0px 0px 15px rgba(0,0,0,0.33)"};
    `,na.appendChild(ra),this.settings.addCircle&&na.appendChild(aa),na.appendChild(oa),na.appendChild(ua),this.arrowContainer=oa,this.control=na,this.el.appendChild(na)}_getImages(){let na=this.el.querySelectorAll("img, video, .keep");this.el.innerHTML="",na.forEach(oa=>{this.el.appendChild(oa)});let ra=[...na].filter(oa=>["img","video"].includes(oa.nodeName.toLowerCase()));this.settings.verticalMode&&ra.reverse();for(let oa=0;oa<=1;oa++){let aa=ra[oa];if(aa.classList.add("icv__img"),aa.classList.add(oa===0?"icv__img-a":"icv__img-b"),oa===1){let sa=document.createElement("div"),la=ra[1].src;sa.classList.add("icv__wrapper"),sa.style.cssText=`
            width: ${100-this.settings.startingPoint}%; 
            height: ${this.settings.startingPoint}%;

            ${"ontouchstart"in document.documentElement?"":this.settings.smoothing?`transition: ${this.settings.smoothingAmount}ms ease-out;`:""}
            ${this.settings.fluidMode&&`background-image: url(${la}); clip-path: inset(${this.settings.verticalMode?` 0 0 ${100-this.settings.startingPoint}% 0`:`0 0 0 ${this.settings.startingPoint}%`})`}
        `,sa.appendChild(aa),this.wrapper=sa,this.el.appendChild(this.wrapper)}}if(this.settings.fluidMode){let oa=ra[0].src,aa=document.createElement("div");aa.classList.add("icv__fluidwrapper"),aa.style.cssText=`
 
        background-image: url(${oa});
        
      `,this.el.appendChild(aa)}}}const BeforeAfter=ea=>{const{className:na="dpc-before-after",disablePointerEvents:ra=!1,beforeImage:oa,afterImage:aa,controlColor:sa="#000",controlShadow:la=!1,addCircle:ca=!1,addCircleBlur:ua=!1,startingPoint:da=50,hoverStart:pa=!1}=ea,ha=reactExports.useRef(null),ga=reactExports.useMemo(()=>({fluidMode:!0,controlShadow:la,addCircle:ca,addCircleBlur:ua,controlColor:sa,startingPoint:da,hoverStart:pa}),[ca,ua,sa,la,pa,da]);reactExports.useEffect(()=>{new ImageCompare(ha.current,ga).mount()},[ga,aa,oa]);const fa={pointerEvents:ra?"none":"initial"};return jsxRuntimeExports.jsxs("div",{className:na,ref:ma=>{ha.current=ma},style:fa,children:[typeof oa=="string"&&jsxRuntimeExports.jsx("img",{src:oa,alt:""}),typeof oa=="object"&&jsxRuntimeExports.jsx("img",{src:oa.src,srcSet:oa.srcset,sizes:oa.sizes,alt:""}),typeof aa=="string"&&jsxRuntimeExports.jsx("img",{src:aa,alt:""}),typeof aa=="object"&&jsxRuntimeExports.jsx("img",{src:aa.src,srcSet:aa.srcset,sizes:aa.sizes,alt:""})]})},defaultStateValues$e={...elementDefaultCommonState,options:{controlColor:"#000",controlShadow:!1,addCircle:!1,addCircleBlur:!1,startingPoint:50,hoverStart:!1,removeScroll:!0}},initialStateValues$e={options:{controlColor:"#000",controlShadow:!1,addCircle:!1,addCircleBlur:!1,startingPoint:50,hoverStart:!1,removeScroll:!0}},optionsSelector$t=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$t=updateSelectedElementsValueByPathAndPrefix("options"),beforeAfterOptions=[{id:"beforeAfterOptions",label:i18next.t("Controls Options"),border:"bottom",optionControls:[[createOptionControl({id:"startOnHover",control:SwitchBox$1,controlProps:{label:i18next.t("Start on Hover")},selector:optionsSelector$t("hoverStart"),action:optionsAction$t("hoverStart")})],[createOptionControl({id:"addShadow",control:SwitchBox$1,controlProps:{label:i18next.t("Add Shadow")},selector:optionsSelector$t("controlShadow"),action:optionsAction$t("controlShadow")})],[createOptionControl({id:"addCircleBackground",control:SwitchBox$1,controlProps:{label:i18next.t("Add Circle Background")},selector:optionsSelector$t("addCircle"),action:optionsAction$t("addCircle")})],[createOptionControl({id:"addCircleBlur",control:SwitchBox$1,controlProps:{label:i18next.t("Add Blur Background")},selector:optionsSelector$t("addCircleBlur"),action:optionsAction$t("addCircleBlur"),dependency:optionsSelector$t("addCircle")})],[createOptionControl({id:"removeScroll",control:SwitchBox$1,controlProps:{label:i18next.t("Remove page scrollbar"),tooltip:{content:i18next.t("Remove page scrollbar when the user start to drag the before-after handle. It will improve drag experience. But if you face any scroll jump issue, you can disable it."),options:{place:"top",id:"workspace"}}},selector:optionsSelector$t("removeScroll"),action:optionsAction$t("removeScroll")})],[createOptionControl({id:"startingPoint",label:i18next.t("Starting Point"),control:SliderWithNumber,controlProps:{numberProps:{units:"%"},min:0,max:100},selector:optionsSelector$t("startingPoint"),action:optionsAction$t("startingPoint")})],[createOptionControl({id:"controlsColor",control:ColorPicker$1,label:i18next.t("Controls Color"),controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},selector:optionsSelector$t("controlColor"),action:optionsAction$t("controlColor")})]]}],beforeAfterElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["filter","padding","backgroundBlur","corner","backgroundColor"]))(elementStylesOptionControls),optionControls$d=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...beforeAfterOptions,...beforeAfterElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],IconArea$1=dt$1.div.withConfig({displayName:"DropArea__IconArea",componentId:"sc-1mwx6ck-0"})([""]),DropArea$2=reactExports.forwardRef((ea,na)=>{const{className:ra,children:oa,styles:aa,hasContent:sa}=ea;return jsxRuntimeExports.jsx("div",{className:ra,style:aa,ref:na,children:!sa&&jsxRuntimeExports.jsxs(IconArea$1,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgDrop}),oa]})})}),DropArea$3=dt$1(DropArea$2).withConfig({displayName:"DropArea",componentId:"sc-1mwx6ck-1"})(["position:absolute;height:100%;z-index:5;display:flex;align-items:center;justify-content:center;border:solid 3px transparent;transition:border 0.3s;"," svg{fill:#aaaaaa;}","{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-weight:400;font-size:12px;line-height:16px;color:#444;border:2px dashed #6a6a6a;border-radius:15px;padding:24px 19px;}",""],ea=>ea.hasContent?"":"background-color: rgba(236, 236, 236, 0.5);",IconArea$1,ea=>ea.canDrop&&lt$1(["border-color:#4980f5;","{border-color:#4980f5;svg{fill:#4980f5;}}"],IconArea$1)),BeforeAfterElementLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,options:aa,styles:sa,innerStyles:la}=ea,ca=useUniqueClassName(),{t:ua}=useTranslation(),da=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0}),[]),pa=aa["beforeImage:imageAsset"]||{hasDynamicTag:!1},ha=aa["afterImage:imageAsset"]||{hasDynamicTag:!1},{src:ga}=useGetImageDynamicData({sourceId:pa.src,isDynamic:pa.hasDynamicTag??!1,size:"large"}),{src:fa}=useGetImageDynamicData({sourceId:ha.src,isDynamic:ha.hasDynamicTag??!1,size:"large"}),ma=useTypography(sa?.typography),va=reactExports.useRef(null),xa=useDispatch(),ya={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...ma,...useBackgroundBlur(sa?.backgroundBlur),...useFilter(sa?.filter),...usePadding(sa?.padding),...useFlexStyles(sa?.flex)},Aa={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)},Ca=reactExports.useCallback((Ta,_a,La=!1)=>{xa(updateElement({id:ra,values:{options:{[`${Ta}Image:imageAsset`]:{src:_a,hasDynamicTag:La}}}}))},[xa,ra]),{setDropZoneRef:Sa,canDrop:wa}=useAssetDropZone({canDrop(Ta){const _a=Ta.assetData.type==="dynamicMedia"&&Ta.assetData.sourceType==="image";return Ta?.assetData?.type==="photo"||_a},drop(Ta){Ca("before",Ta.assetData.payload?.source||Ta.assetData.id,Ta.assetData.type==="dynamicMedia")}}),{setDropZoneRef:ba,canDrop:Ea}=useAssetDropZone({canDrop(Ta){const _a=Ta.assetData.type==="dynamicMedia"&&Ta.assetData.sourceType==="image";return Ta?.assetData?.type==="photo"||_a},drop(Ta){Ca("after",Ta.assetData.payload?.source||Ta.assetData.id,Ta.assetData.type==="dynamicMedia")}}),$a=reactExports.useCallback(Ta=>{Ta&&Sa?.(Ta)},[Sa]),Ma=reactExports.useCallback(Ta=>{Ta&&ba?.(Ta)},[ba]),Ia=reactExports.useMemo(()=>({beforeImage:{src:ga||""},afterImage:{src:fa||""},disablePointerEvents:!0,...aa}),[fa,ga,aa]),Oa=reactExports.useMemo(()=>({left:0,width:`${aa.startingPoint||50}%`}),[aa.startingPoint]),Da=reactExports.useMemo(()=>({right:0,width:`${100-(aa.startingPoint||50)}%`}),[aa.startingPoint]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Ta=>{assignRef$1(Ta,na),va.current=Ta},style:Aa,contentStyle:ya,onElementClick:oa,transformToolConfig:da,...ea,className:`${ea.className} ${ca}`,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:ca}),jsxRuntimeExports.jsx(DropArea$3,{ref:$a,canDrop:wa,styles:Oa,hasContent:!!ga,children:ua("Drop before Image")}),jsxRuntimeExports.jsx(DropArea$3,{ref:Ma,canDrop:Ea,styles:Da,hasContent:!!fa,children:ua("Drop after Image")}),jsxRuntimeExports.jsx(BeforeAfter,{...Ia})]})}),BeforeAfterElement=dt$1(BeforeAfterElementLogic).withConfig({displayName:"BeforeAfter__BeforeAfterElement",componentId:"sc-yzxsk4-0"})([".icv__arrow-wrapper{transform:translateX(0) !important;}"]);registerElement({type:"dpcBeforeAfter",name:"BeforeAfter",component:BeforeAfterElement,optionControls:optionControls$d,initialStateValues:initialStateValues$e,defaultStateValues:defaultStateValues$e});const textInputStylesSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input"),textInputStylesAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input"),choiceInputStylesSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input::before"),choiceInputStylesAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input::before"),labelStylesSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-label"),descriptionStylesSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-description"),labelTypography=createOptionControl({id:"labelTypography",control:CompactTypography$1,label:i18next.t("Label typography"),selector:labelStylesSelector("typography"),controlProps:{modifyOptionControls:ea=>modifyControl(excludeControls(ea,["textWrap","lineHeight","textDecoration"]),"letterSpace",{styles:{flex:.5}}),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-label.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-label.typography")}}),descriptionTypography=createOptionControl({id:"descriptionTypography",control:CompactTypography$1,label:i18next.t("Description typography"),selector:descriptionStylesSelector("typography"),controlProps:{modifyOptionControls:ea=>modifyControl(excludeControls(ea,["textWrap","lineHeight","textDecoration"]),"letterSpace",{styles:{flex:.5}}),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-description.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-field-description.typography")}}),inputPlaceholderColorOption=createOptionControl({id:"inputPlaceholderColor",control:ColorPicker$1,defaultValue:"#000000",label:i18next.t("Placeholder Color"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input::placeholder.typography")("color"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input::placeholder.typography")("color")}),inputTypographyOption=createOptionControl({id:"typography",control:CompactTypography$1,label:i18next.t("Input typography"),selector:textInputStylesSelector("typography"),controlProps:{modifyOptionControls:ea=>optionControlsPipe(na=>addControlByTarget(na,[inputPlaceholderColorOption],"letterSpace"),na=>excludeControls(na,["letterSpace","textWrap","lineHeight","textDecoration"]))(ea),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input.typography")}}),choiceTypographyOption=createOptionControl({id:"choiceAndRadioTypography",control:CompactTypography$1,label:i18next.t("Checkbox typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-label")("typography"),controlProps:{modifyOptionControls:ea=>modifyControl(excludeControls(ea,["textWrap","lineHeight","textDecoration"]),"letterSpace",{styles:{flex:.5}}),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-label.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-label.typography")}}),inputBackgroundColorOption=createOptionControl({id:"inputBackgroundColor",control:ColorPicker$1,label:i18next.t("Background Color"),selector:textInputStylesSelector("backgroundColor"),action:textInputStylesAction("backgroundColor")}),inputFocusBorderColorOption=createOptionControl({id:"inputFocusBorderColor",control:ColorPicker$1,label:i18next.t("Focus Color"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input:focus")("border.color"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-text-input:focus")("border.color")}),inputShadowOptions=createOptionControl({id:"shadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Shadow")},optionControls:boxShadowStylesPopoverControls({action:textInputStylesAction,selector:textInputStylesSelector})},hideOnIntersection:!0,selector:textInputStylesSelector("boxShadow.enable"),action:textInputStylesAction("boxShadow.enable")}),inputBorderOptions=createOptionControl({id:"inputBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:textInputStylesAction,selector:textInputStylesSelector})},hideOnIntersection:!0,selector:textInputStylesSelector("border.enable"),action:textInputStylesAction("border.enable")}),inputCornerRadiusOption=createOptionControl({id:"inputCornerRadius",control:BoxEdgeSizing$1,label:i18next.t("Corner Radius"),selector:textInputStylesSelector("corner"),action:textInputStylesAction("corner")}),inputPaddingOption=createOptionControl({id:"inputPadding",control:BoxSideSizing$1,label:i18next.t("Padding"),selector:textInputStylesSelector("padding"),action:textInputStylesAction("padding")}),choiceBackgroundColorOption=createOptionControl({id:"choiceBackgroundColor",control:ColorPicker$1,label:i18next.t("Background Color"),action:choiceInputStylesAction("backgroundColor"),selector:choiceInputStylesSelector("backgroundColor")}),choiceBorderOptions=createOptionControl({id:"choiceBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:choiceInputStylesAction,selector:choiceInputStylesSelector})},hideOnIntersection:!0,selector:choiceInputStylesSelector("border.enable"),action:choiceInputStylesAction("border.enable")}),choiceActiveColor=createOptionControl({id:"choiceActiveColor",control:ColorPicker$1,label:i18next.t("Active color"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input:checked::before")("border.color"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input:checked::before")("border.color")}),choiceActiveBPColor=createOptionControl({id:"choiceActiveBPColor",control:ColorPicker$1,label:i18next.t("Active background color"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input:checked::before")("backgroundColor"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-input:checked::before")("backgroundColor")}),inputStylesOptionControls=[{id:"inputStyles",label:i18next.t("Input Styles"),border:"bottom",optionControls:[[labelTypography],[descriptionTypography],[inputTypographyOption],[inputBorderOptions],[inputShadowOptions],[inputBackgroundColorOption,inputFocusBorderColorOption],[inputCornerRadiusOption],[inputPaddingOption]]}],formInnerStylesOptionControls=[...inputStylesOptionControls,{id:"choiceStyles",label:i18next.t("Checkbox Styles"),border:"bottom",optionControls:[[choiceTypographyOption],[choiceBorderOptions],[choiceBackgroundColorOption],[choiceActiveColor],[choiceActiveBPColor]]}],FormCaptchaNotice=()=>{const ea=useOpenSettings("generalSettings");return jsxRuntimeExports.jsxs("p",{children:["To enable captcha, you need to have a reCAPTCHA site key and secret key. You can get these keys from the"," ",jsxRuntimeExports.jsx("a",{href:"https://www.google.com/recaptcha/admin",target:"_blank",rel:"noreferrer",children:"reCAPTCHA admin console"}),". and add them in the"," ",jsxRuntimeExports.jsx("a",{onClick:ea,href:"#",rel:"noreferrer",children:jsxRuntimeExports.jsx("strong",{children:"Depicter settings"})})," ","page."]})},formOptions=[{id:"formOptions",label:i18next.t("Form Captcha"),border:"bottom",tier:Tiers.PRO,optionControls:[[createOptionControl({id:"formCaptcha",control:SwitchBox$1,controlProps:{label:i18next.t("Enable ReCaptcha (Anti-Spam)"),tooltip:{content:i18next.t("Enables Google ReCaptcha V3 for this form, to prevent spam submissions. It works in the background without any user interaction."),options:{place:"top",id:"settingsPanel"}}},selector:getSelectedElementsValueByPathAndPrefix("options")("captcha"),action:updateSelectedElementsValueByPathAndPrefix("options")("captcha")})],[createOptionControl({id:"captchaInfo",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:jsxRuntimeExports.jsx(FormCaptchaNotice,{}),variant:"boxed"},styles:{marginBottom:"10px"},dependency:getSelectedElementsValueByPathAndPrefix("options")("captcha")})]]}],formElementLayerStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),labelsPlacement=createOptionControl({id:"labelsPlacement",control:Select$1,label:i18next.t("Labels Placement"),controlProps:{options:[{value:"top",label:i18next.t("Top")},{value:"left",label:i18next.t("Left")}]},styles:{flex:.5},selector:getSelectedElementsValueByPathAndPrefix("options")("labelsPlacement"),action:updateSelectedElementsValueByPathAndPrefix("options")("labelsPlacement")}),formLayoutOptions=optionControlsPipe(ea=>excludeControls(ea,["autoLayoutModeEnable"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[labelsPlacement],"autoLayout",-1))(elementAutoLayoutOptions),triggers=[{type:"formSubmitted",label:i18next.t("Form submit success")},{type:"formSubmitError",label:i18next.t("Form submit failed")},{type:"formSubmit",label:i18next.t("Form submit")}],formElementActionsOptionControls=optionControlsPipe(ea=>modifyControl(ea,"elementAction",{controlProps:{triggers:[...triggersList,...triggers]}}))(elementActionOptionControls()),formElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...excludeControls(elementPositionOptionControls(),["elementAspectRatio"]),...elementArrangeOptionControls(),...formElementLayerStylesOptionsControls,...formLayoutOptions,...formOptions,...formInnerStylesOptionControls,...elementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...formElementActionsOptionControls]}],inputDefaultInnerStyles={"depicter-text-input":{padding:{default:{...defaultStyles?.padding?.default,link:!0,top:{value:8,unit:"px"},right:{value:8,unit:"px"},bottom:{value:8,unit:"px"},left:{value:8,unit:"px"}}},boxShadow:defaultStyles?.boxShadow,backgroundColor:{default:"#ffffff"},typography:{default:{...defaultStyles?.typography?.default,fontSize:16,color:"#000000",font:"inherit"}},border:{default:{...defaultStyles?.border?.default,enable:!1,style:"solid",color:"#cccccc"}},corner:{default:{...defaultStyles?.corner?.default,link:!0,topLeft:{value:4,unit:"px"},topRight:{value:4,unit:"px"},bottomLeft:{value:4,unit:"px"},bottomRight:{value:4,unit:"px"}}}},"depicter-text-input:focus":{border:{default:{color:"#007bff"}}},"depicter-text-input::placeholder":{typography:{default:{color:"#aaaaaa"}}},"depicter-field-label":{typography:{default:{...defaultStyles?.typography?.default,fontSize:14,color:"#333333",font:"inherit"}}},"depicter-field-description":{typography:{default:{...defaultStyles?.typography?.default,fontSize:12,color:"#666666",font:"inherit"}}}},defaultStateValues$d={...elementDefaultCommonState,autoLayout:{enable:!0,mode:{default:"flex"},gap:{default:15},direction:{default:"column"},alignment:{default:"tl"},columns:{default:1},reverse:{default:!1},wrap:{default:!1}},innerStyles:{"depicter-choice-label":{typography:{default:{...defaultStyles?.typography?.default,fontSize:16,color:"#000000",font:"inherit"}}},"depicter-choice-input::before":{backgroundColor:{default:"#ffffff"},border:{default:{...defaultStyles?.border?.default,enable:!1,style:"solid",color:"#cccccc"}},corner:{default:{...defaultStyles?.corner?.default,link:!0,topLeft:{value:4,unit:"px"},topRight:{value:4,unit:"px"},bottomLeft:{value:4,unit:"px"},bottomRight:{value:4,unit:"px"}}}},"depicter-choice-input:checked::before":{backgroundColor:{default:"#007bff"},border:{default:{color:"#ffffff"}}},...inputDefaultInnerStyles},options:{labelsPlacement:"top"}},initialStateValues$d={autoLayout:{...defaultStateValues$d.autoLayout},styles:{padding:{default:{link:!0,top:{value:10,unit:"px"},right:{value:10,unit:"px"},bottom:{value:10,unit:"px"},left:{value:10,unit:"px"}}}}},icon="data:image/svg+xml,%3csvg%20width='94'%20height='79'%20viewBox='0%200%2094%2079'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.5%204C0.5%201.79086%202.29086%200%204.5%200H89.5C91.7091%200%2093.5%201.79086%2093.5%204V75C93.5%2077.2091%2091.7091%2079%2089.5%2079H4.5C2.29086%2079%200.5%2077.2091%200.5%2075V4Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6455%2011.6348C10.6455%2010.5302%2011.5409%209.63477%2012.6455%209.63477H61.0637C62.1683%209.63477%2063.0637%2010.5302%2063.0637%2011.6348V17.2689C63.0637%2018.3735%2062.1683%2019.2689%2061.0637%2019.2689H12.6455C11.5409%2019.2689%2010.6455%2018.3735%2010.6455%2017.2689V11.6348Z'%20fill='%23E0E0E0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M66.9591%2014.5C66.9591%2012.0147%2068.9738%2010%2071.4591%2010C73.9444%2010%2075.9591%2012.0147%2075.9591%2014.5C75.9591%2016.9853%2073.9444%2019%2071.4591%2019C68.9738%2019%2066.9591%2016.9853%2066.9591%2014.5Z'%20fill='%23363636'/%3e%3crect%20x='70.5'%20y='12'%20width='2'%20height='5'%20fill='white'/%3e%3crect%20x='74'%20y='13.5'%20width='2'%20height='5'%20transform='rotate(90%2074%2013.5)'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6455%2025.1211C10.6455%2024.0165%2011.5409%2023.1211%2012.6455%2023.1211H61.0637C62.1683%2023.1211%2063.0637%2024.0165%2063.0637%2025.1211V30.7552C63.0637%2031.8598%2062.1683%2032.7552%2061.0637%2032.7552H12.6455C11.5409%2032.7552%2010.6455%2031.8598%2010.6455%2030.7552V25.1211Z'%20fill='%23E0E0E0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6455%2065.5859C10.6455%2064.4814%2011.5409%2063.5859%2012.6455%2063.5859H30.6273C31.7319%2063.5859%2032.6273%2064.4814%2032.6273%2065.5859V67.3664C32.6273%2068.471%2031.7319%2069.3664%2030.6273%2069.3664H12.6455C11.5409%2069.3664%2010.6455%2068.471%2010.6455%2067.3664V65.5859Z'%20fill='%234980F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.6455%2038.6094C10.6455%2037.5048%2011.5409%2036.6094%2012.6455%2036.6094H81.3546C82.4592%2036.6094%2083.3546%2037.5048%2083.3546%2038.6094V55.8045C83.3546%2056.9091%2082.4592%2057.8045%2081.3546%2057.8045H12.6455C11.5409%2057.8045%2010.6455%2056.9091%2010.6455%2055.8045V38.6094Z'%20fill='%23E0E0E0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M81.9756%2021.8277C82.7854%2022.3536%2082.7356%2023.6339%2081.9014%2023.7338L77.692%2024.2376L75.8039%2028.242C75.4298%2029.0355%2074.2733%2028.647%2074.0821%2027.6636L72.0233%2017.0721C71.8617%2016.2408%2072.5693%2015.7177%2073.2537%2016.1624L81.9756%2021.8277Z'%20fill='%23AAAAAA'/%3e%3crect%20x='76.6254'%20y='24.6973'%20width='2.37055'%20height='7.4306'%20rx='1.18528'%20transform='rotate(-37.1214%2076.6254%2024.6973)'%20fill='%23AAAAAA'/%3e%3c/svg%3e",EmptyPlaceholder=ea=>{const{className:na}=ea,{t:ra}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx("img",{src:icon,alt:""}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("img",{src:CircleInfoIcon,alt:""}),ra("This form is empty, drop elements from left side panel to start building a form.")]})]})},EmptyPlaceholder$1=dt$1(EmptyPlaceholder).withConfig({displayName:"EmptyPlaceholder",componentId:"sc-1p299hp-0"})(["width:500px;height:400px;pointer-events:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:30px;border-radius:5px;text-align:center;p{max-width:300px;img{display:inline-block;vertical-align:text-top;margin-right:5px;}}"]),DroppableContainer=dt$1.div.withConfig({displayName:"Form__DroppableContainer",componentId:"sc-1sbi8f3-0"})([""]),HiddenElementsContainer=dt$1.div.withConfig({displayName:"Form__HiddenElementsContainer",componentId:"sc-1sbi8f3-1"})([""]),transformToolConfig$3={offDirections:["n","s","ne","nw","se","sw"]},FormElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,id:aa,autoLayout:sa,innerStyles:la,options:ca,children:ua=[]}=ea,da=useSelector(getChildrenElementsData(aa)),pa=reactExports.useRef(null),ha=useUniqueClassName(),ga=useDispatch(),fa=useSelector(getSelectedElements),{visibleElements:ma,hiddenElements:va}=React.useMemo(()=>{const Da=Object.values(da).sort((Ta,_a)=>_a.depth!==Ta.depth?Ta.depth-_a.depth:0);return{hiddenElements:Da.filter(Ta=>Ta.type==="hiddenInput").map(Ta=>getElement(Ta.type,Ta)),visibleElements:Da.filter(Ta=>Ta.type!=="hiddenInput").map(Ta=>getElement(Ta.type,Ta))}},[da]),{labelsPlacement:xa="top"}=ca,ya={...useBorder(oa?.border),...useCorner(oa?.corner,!0),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useBackgroundColor(oa?.backgroundColor),...useBackgroundBlur(oa?.backgroundBlur),...useFilter(oa?.filter),...usePadding(oa?.padding)},Aa=useElementAutoLayout(sa),Ca={...Aa.style},{setNodeRef:Sa,isOver:wa,overId:ba}=useElementDroppableElement(aa,sa?.enable,[dragTypes.GROUPABLE_ELEMENT,dragTypes.FORM_FIELD]),{setDropZoneRef:Ea,isDndOver:$a,showAltKeyHint:Ma}=useAssetDroppableElement(aa,[dragTypes.FORM_FIELD,dragTypes.ASSET],[dragTypes.ASSET]),Ia=$a||wa&&ba&&!Object.keys(da).includes(ba),Oa=Ma&&jsxRuntimeExports.jsx(DropHintOverlay$1,{style:{opacity:Ia?"1":"0"}});return reactExports.useEffect(()=>{fa.every(Da=>[aa,...ua].includes(Da))?ga(setAssetPanelTab("form")):ga(setAssetPanelTab("prev"))},[ua,ga,aa,fa]),jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:ya,onElementClick:ra,transformToolConfig:transformToolConfig$3,...ea,overlayContent:Oa,contentClassName:Aa.className,className:Ia?`${ea.className} depicter-revert depicter-label-${xa} ${ha} dp-drop-active`:`${ea.className} depicter-revert depicter-label-${xa} ${ha}`,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ha} .depicter-form-field`}),jsxRuntimeExports.jsxs(DroppableContainer,{ref:Da=>{Sa(Da),Da&&Ea(Da),pa.current=Da},style:Ca,children:[ma,!ma.length&&jsxRuntimeExports.jsx(EmptyPlaceholder$1,{})]}),!!va.length&&jsxRuntimeExports.jsx(HiddenElementsContainer,{children:va})]})}),FormElement=dt$1(FormElementLogic).withConfig({displayName:"Form__FormElement",componentId:"sc-1sbi8f3-2"})(["> ","{color:#6fd95d !important;}&.dp-drop-over ","{opacity:1;visibility:visible;}","{height:100%;width:100%;}","{position:absolute;display:flex;flex-direction:column;gap:10px;bottom:-10px;left:0;right:0;transform:translateY(100%);}"],ElementOverlay$1,ElementOverlay$1,DroppableContainer,HiddenElementsContainer);registerElement({type:"form",name:"Form",component:FormElement,optionControls:formElementOptionControls,defaultStateValues:defaultStateValues$d,initialStateValues:initialStateValues$d});const optionsSelector$s=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$s=updateSelectedElementsValueByPathAndPrefix("options"),showLabelOption=createOptionControl({id:"showLabel",control:SwitchBox$1,controlProps:{label:i18next.t("Show Label")},selector:optionsSelector$s("showLabel"),action:optionsAction$s("showLabel"),dependency:ea=>!["checkbox","radio"].includes(optionsSelector$s("type")(ea))}),showDescription=createOptionControl({id:"showDescription",control:SwitchBox$1,controlProps:{label:i18next.t("Show Description")},selector:optionsSelector$s("showDescription"),action:optionsAction$s("showDescription")}),placeholderOption=createOptionControl({id:"placeholder",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Placeholder"),selector:optionsSelector$s("placeholder"),action:optionsAction$s("placeholder"),dependency:ea=>!["checkbox","radio"].includes(optionsSelector$s("type")(ea))}),requiredOption=createOptionControl({id:"required",control:SwitchBox$1,defaultValue:!1,controlProps:{label:i18next.t("Required")},selector:optionsSelector$s("attributes.required"),action:optionsAction$s("attributes.required")}),inputNameOption$1=createOptionControl({id:"name",control:Input$2,controlProps:{variant:"small"},label:i18next.t("Input Name"),tooltip:{content:i18next.t("This is used to identify the input element in the contacts list. It should be unique within the form and should not contain any spaces and special characters."),options:{id:"workspace"}},selector:optionsSelector$s("attributes.name"),action:optionsAction$s("attributes.name"),dependency:optionsSelector$s("isCustom")}),inputAutoCompleteOption=createOptionControl({id:"autoComplete",control:Input$2,controlProps:{variant:"small"},tooltip:{content:i18next.t("The value of the autocomplete attribute, which can be used to help users fill in forms more quickly."),options:{id:"workspace"}},label:i18next.t("Auto Complete"),selector:optionsSelector$s("attributes.autoComplete"),action:optionsAction$s("attributes.autoComplete"),dependency:ea=>optionsSelector$s("isCustom")(ea)&&optionsSelector$s("type")(ea)!=="checkbox"}),inputOptionsList=[{id:"inputOptions",label:i18next.t("Input Options"),optionControls:[[inputNameOption$1],[showLabelOption],[showDescription],[requiredOption],[placeholderOption],[inputAutoCompleteOption]]}],inputPositionAndSizingOptions$1=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio"]),ea=>modifyControl(ea,"width",{styles:{flex:.5}}),ea=>modifyControl(ea,"height",{styles:{flex:.5},dependency:na=>optionsSelector$s("type")(na)==="textarea"}))(elementPositionOptionControls()),optionControls$c=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...inputPositionAndSizingOptions$1,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...inputOptionsList]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:elementHoverStylesOptionControls},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$c={...elementDefaultCommonState},initialStateValues$c={size:{default:{width:{value:300,unit:"px"},height:"auto"}},options:{}},InputRender=ea=>{const{disableInteractions:na,className:ra,label:oa,description:aa,type:sa="text",placeholder:la,inputHeight:ca,renderDescription:ua,renderLabel:da,...pa}=ea,ha=reactExports.useMemo(()=>nanoid$1(8),[]),ga=reactExports.useMemo(()=>da||((ma,va)=>jsxRuntimeExports.jsx("label",{className:va,htmlFor:ha,children:ma})),[ha,da]),fa=reactExports.useMemo(()=>ua||((ma,va)=>jsxRuntimeExports.jsx("p",{className:va,children:ma})),[ua]);return jsxRuntimeExports.jsxs("div",{className:`depicter-form-field ${ra}`,children:[sa==="checkbox"?jsxRuntimeExports.jsxs("div",{className:"depicter-choice-container",children:[jsxRuntimeExports.jsx("input",{tabIndex:-1,className:"depicter-input depicter-choice-input",id:ha,type:sa,placeholder:la,...pa}),oa!==void 0&&ga(oa,"depicter-choice-label")]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oa!==void 0&&ga(oa,"depicter-field-label"),sa==="textarea"?jsxRuntimeExports.jsx("textarea",{tabIndex:-1,className:"depicter-input depicter-text-input",id:ha,placeholder:la,...pa}):jsxRuntimeExports.jsx("input",{tabIndex:-1,className:"depicter-input depicter-text-input",id:ha,type:sa,placeholder:la,...pa})]}),aa!==void 0&&fa(aa,"depicter-field-description")]})},InputRender$1=dt$1(InputRender).withConfig({displayName:"InputRender",componentId:"sc-dqykkz-0"})(["",";input{height:",";}.depicter-choice-label{order:2;}"],({disableInteractions:ea=!0})=>ea?lt$1(["input,label,.depicter-input{pointer-events:none;}"]):"",ea=>ea.inputHeight?`${ea.inputHeight}px`:"auto"),updateOptions$1=updateSelectedElementsValueByPathAndPrefix("options"),transformToolConfig$2={offDirections:["n","s","ne","nw","se","sw"],offAbles:["rotatable"]},textAreaTransformToolConfig={type:"block",offAbles:["rotatable"]},InputElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,styles:aa,innerStyles:sa,locked:la,extraInnerStyleClassName:ca="",options:ua}=ea,da=useUniqueClassName(),pa=useIsSelected(oa),ha=useTypography(aa?.typography),ga=reactExports.useRef(null),fa=useDispatchAndToHistory(),{showLabel:ma=!0,label:va,showDescription:xa,description:ya,type:Aa,placeholder:Ca,attributes:Sa,inputHeight:wa}=ua,ba={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...ha,...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding)},Ea={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)},{isActive:$a,...Ma}=useActiveOnClick(oa,!la,pa,void 0,{offAbles:["draggable"]},{offAbles:void 0}),Ia=reactExports.useCallback((Da,Ta)=>jsxRuntimeExports.jsx(EditableText$1,{isEditable:$a&&!la,value:Da,className:Ta,onChange:_a=>fa(updateOptions$1("label",!0)({value:_a}))}),[fa,$a,la]),Oa=reactExports.useCallback((Da,Ta)=>jsxRuntimeExports.jsx(EditableText$1,{isEditable:$a&&!la,value:Da,className:Ta,onChange:_a=>fa(updateOptions$1("description",!0)({value:_a}))}),[fa,$a,la]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Da=>{assignRef$1(Da,na),ga.current=Da},style:Ea,contentStyle:ba,onElementClick:ra,dndType:dragTypes.FORM_FIELD,transformToolConfig:Aa==="textarea"?textAreaTransformToolConfig:transformToolConfig$2,enableDnd:!$a,...ea,className:`${ea.className} ${da}`,...Ma,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${da} ${ca}`}),jsxRuntimeExports.jsx(InputRender$1,{renderDescription:Oa,renderLabel:Ia,label:ma?va:void 0,type:Aa,inputHeight:wa,description:xa?ya??i18next.t("Field description"):void 0,placeholder:Ca,...Sa})]})}),InputElement=dt$1(InputElementLogic).withConfig({displayName:"Input__InputElement",componentId:"sc-qfzcnt-0"})([".dpc-input{height:100%;}"]);registerElement({type:"form:input",name:"Input",component:InputElement,optionControls:optionControls$c,initialStateValues:initialStateValues$c,defaultStateValues:defaultStateValues$c});registerElement({type:"form:submit",name:"Button",component:ButtonElement,optionControls:buttonElementOptionControls$3.map(ea=>ea.id==="action"?{...ea,optionControls:[...formElementActionsOptionControls]}:ea),initialStateValues:initialStateValues$m,icon:SvgButton});const optionsSelector$r=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$r=updateSelectedElementsValueByPathAndPrefix("options"),showSuccessMessageOption=createOptionControl({id:"showSuccessMessage",control:SwitchBox$1,controlProps:{label:i18next.t("Show success message")},selector:optionsSelector$r("showSuccessMessage"),action:optionsAction$r("showSuccessMessage")}),formSuccessMessageOption=createOptionControl({id:"successMessage",control:Input$2,label:i18next.t("Success Message"),controlProps:{variant:"small"},dependency:optionsSelector$r("showSuccessMessage"),selector:optionsSelector$r("successMessage"),action:optionsAction$r("successMessage")}),formErrorMessageOption=createOptionControl({id:"errorMessage",control:Input$2,label:i18next.t("Error Message"),controlProps:{variant:"small"},selector:optionsSelector$r("errorMessage"),action:optionsAction$r("errorMessage")}),errorTextColorOption=createOptionControl({id:"errorTextColor",control:ColorPicker$1,label:i18next.t("Error text color"),selector:optionsSelector$r("errorTextColor"),action:optionsAction$r("errorTextColor")}),formMessageOptionsList=[{id:"inputOptions",label:i18next.t("Input Options"),optionControls:[[showSuccessMessageOption],[formSuccessMessageOption],[formErrorMessageOption],[errorTextColorOption]]}],inputPositionAndSizingOptions=optionControlsPipe(ea=>excludeControls(ea,["height","elementAspectRatio"]),ea=>modifyControl(ea,"width",{styles:{flex:.5}}))(elementPositionOptionControls()),optionControls$b=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...inputPositionAndSizingOptions,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...elementTypographyOptionControls,...formMessageOptionsList]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:elementHoverStylesOptionControls},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$b={...elementDefaultCommonState},initialStateValues$b={size:{default:{width:{value:300,unit:"px"},height:"auto"}},options:{successMessage:i18next.t("Your information has been submitted successfully."),errorMessage:i18next.t("There was an error submitting your information.")}},transformToolConfig$1={offDirections:["n","s","ne","nw","se","sw"],offAbles:["rotatable"]},FormMessageLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,options:aa}=ea,sa=useUniqueClassName(),la=useTypography(oa?.typography),{successMessage:ca,errorMessage:ua,showSuccessMessage:da,errorTextColor:pa}=aa,ha={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useTextShadow(oa?.textShadow),...useBackgroundColor(oa?.backgroundColor),...la,...usePadding(oa?.padding),...useFlexStyles(oa?.flex)},ga={...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:ha,onElementClick:ra,dndType:dragTypes.FORM_FIELD,transformToolConfig:transformToolConfig$1,...ea,className:`${ea.className} ${sa}`,style:ga,children:[da&&ca&&jsxRuntimeExports.jsx("p",{children:ca}),!da&&ua&&jsxRuntimeExports.jsx("p",{style:{color:pa},children:ua})]})}),FormMessage=dt$1(FormMessageLogic).withConfig({displayName:"FormMessage",componentId:"sc-152akqv-0"})(["p{margin:0;}"]);registerElement({type:"form:message",name:"Form message",component:FormMessage,optionControls:optionControls$b,initialStateValues:initialStateValues$b,defaultStateValues:defaultStateValues$b,icon:SvgText});const CouponBox=ea=>{const{className:na,coupon:ra,showButton:oa=!0,buttonLabel:aa="Copy",copiedLabel:sa="Copied!",renderLabel:la}=ea,[ca,ua]=React.useState(!1),da=reactExports.useCallback(()=>{(!window).Depicter||(window.Depicter.utils.copyTextToClipboard(ra),ua(!0),setTimeout(()=>{ua(!1)},2e3))},[ra]),pa=oa?ra:ca?sa:ra,ha=ca?sa:aa;return jsxRuntimeExports.jsxs("div",{className:`dpc-coupon-box ${na}`,onClick:oa?void 0:da,children:[la?.(ra,"coupon","dpc-coupon-box-text")??jsxRuntimeExports.jsx("div",{className:"dpc-coupon-box-text",children:pa}),(oa&&la?.(aa,"buttonLabel","dpc-coupon-box-button"))??jsxRuntimeExports.jsx("button",{type:"button",className:"dpc-coupon-box-button",onClick:da,children:ha})]})},optionsSelector$q=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$q=updateSelectedElementsValueByPathAndPrefix("options"),segmentsStylesSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-coupon-box-button"),segmentsStylesAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-coupon-box-button"),buttonStyles=[{id:"countdownTimeSegments",label:i18next.t("Button Styles"),border:"bottom",optionControls:[[createOptionControl({id:"showButton",control:SwitchBox$1,controlProps:{label:i18next.t("Show button")},selector:optionsSelector$q("showButton"),action:optionsAction$q("showButton")})],[createOptionControl({id:"segmentsTypography",control:CompactTypography$1,dependency:optionsSelector$q("showButton"),label:i18next.t("Button Typography"),selector:segmentsStylesSelector("typography"),controlProps:{modifyOptionControls:ea=>modifyControl(excludeControls(ea,["textWrap","lineHeight"]),"letterSpace",{styles:{flex:.5}}),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-coupon-box-button.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-coupon-box-button.typography")}})],[createOptionControl({id:"buttonBackgroundColor",control:ColorPicker$1,dependency:optionsSelector$q("showButton"),label:i18next.t("Background Color"),selector:segmentsStylesSelector("backgroundColor"),action:segmentsStylesAction("backgroundColor")})],[createOptionControl({id:"buttonButtonWidth",control:Number$2,dependency:optionsSelector$q("showButton"),controlProps:{units:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"auto",value:"auto"}]},label:i18next.t("Button Width"),selector:segmentsStylesSelector("width"),action:segmentsStylesAction("width"),styles:{flex:.5}})],[createOptionControl({id:"buttonBorder",control:Popover$1,dependency:optionsSelector$q("showButton"),controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:segmentsStylesAction,selector:segmentsStylesSelector})},hideOnIntersection:!0,selector:segmentsStylesSelector("border.enable"),action:segmentsStylesAction("border.enable")})],[createOptionControl({id:"buttonPadding",control:BoxSideSizing$1,dependency:optionsSelector$q("showButton"),label:i18next.t("Padding"),selector:segmentsStylesSelector("padding"),action:segmentsStylesAction("padding")})],[createOptionControl({id:"buttonCorner",control:BoxEdgeSizing$1,dependency:optionsSelector$q("showButton"),label:i18next.t("Corner Radius"),selector:segmentsStylesSelector("corner"),action:segmentsStylesAction("corner")})]]}],couponBoxOptions=[{id:"couponBoxOptions",border:"bottom",label:i18next.t("Coupon Box Options"),optionControls:[[createOptionControl({id:"copiedLabel",control:Input$2,label:i18next.t("Copied Text"),tooltip:{content:i18next.t("Text to display when coupon is copied"),options:{place:"top",id:"workspace"}},controlProps:{variant:"small"},selector:optionsSelector$q("copiedLabel"),action:optionsAction$q("copiedLabel")})]]}],buttonHoverOptionControls=[{id:"hoverButtonStyles",border:"bottom",label:i18next.t("Hover Button Styles"),optionControls:[[createOptionControl({id:"hoverBackgroundColor",control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},label:i18next.t("Background Color"),selector:segmentsStylesSelector("hover.backgroundColor"),action:segmentsStylesAction("hover.backgroundColor"),disabledWhen:ea=>!getSelectedElementsValueByPathAndPrefix("styles")("hover.enable")(ea)})],[createOptionControl({id:"hoverTextColor",control:ColorPicker$1,controlProps:{showAlpha:!0,showHex:!0},label:i18next.t("Text Color"),selector:segmentsStylesSelector("hover.typography.color"),action:segmentsStylesAction("hover.typography.color"),disabledWhen:ea=>!getSelectedElementsValueByPathAndPrefix("styles")("hover.enable")(ea)})]]}],hoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3),ea=>insertAfterFieldset(ea,"hoverStyles",buttonHoverOptionControls),ea=>modifyControl(ea,"enableHoverStyles",{modifier:(na,ra)=>{ra(segmentsStylesAction("hover.enable.$bp")(na))}}))(elementHoverStylesOptionControls),optionControls$a=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...elementTypographyOptionControls,...couponBoxOptions,...elementStylesOptionControls,...buttonStyles]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...hoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$a={...elementDefaultCommonState,innerStyles:{"dpc-coupon-box-text":{},"dpc-coupon-box-button":{backgroundColor:{default:"#000000"},corner:getCornerValue(5),border:defaultBorder,typography:{default:{...elementDefaultCommonState.styles?.typography?.default,color:"#ffffff"}},width:{default:{value:100,unit:"px"}},padding:{default:{top:{value:5,unit:"px"},right:{value:10,unit:"px"},bottom:{value:5,unit:"px"},left:{value:10,unit:"px"},link:!1}},hover:{backgroundColor:{default:"#333333"},typography:{default:{color:"#ffffff"}}}}},options:{showButton:!0}},initialStateValues$a={styles:{backgroundColor:{default:"#f5f5f5"},padding:{default:{top:{value:5,unit:"px"},right:{value:5,unit:"px"},bottom:{value:5,unit:"px"},left:{value:10,unit:"px"},link:!1}},corner:getCornerValue(5)}},updateOptions=updateSelectedElementsValueByPathAndPrefix("options"),CouponBoxElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,options:aa,styles:sa,innerStyles:la,locked:ca}=ea,ua=useUniqueClassName(),da=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0}),[]),pa=useDispatchAndToHistory(),ha=useIsSelected(oa),ga=useTypography(sa?.typography),fa=reactExports.useRef(null),ma={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...ga,...useBackgroundBlur(sa?.backgroundBlur),...useFilter(sa?.filter),...usePadding(sa?.padding),...useFlexStyles(sa?.flex)},va={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)};useScaleFontSize(oa,fa,"innerStyles.dpc-coupon-box-text.typography.$bp",".dpc-coupon-box-text",!0),useScaleFontSize(oa,fa,"innerStyles.dpc-coupon-box-button.typography.$bp",".dpc-coupon-box-button",!0);const{isActive:xa,...ya}=useActiveOnClick(oa,!ca,ha,void 0,{offAbles:["draggable"]},{offAbles:void 0}),Aa=reactExports.useCallback((Sa,wa)=>{pa(updateOptions(wa)({value:Sa}))},[pa]),Ca=reactExports.useCallback((Sa,wa,ba)=>jsxRuntimeExports.jsx(EditableText$1,{value:Sa,elementTag:"span",isEditable:xa&&!ca,onChange:Ea=>Aa(Ea,wa),className:ba},wa),[xa,ca,Aa]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:Sa=>{assignRef$1(Sa,na),fa.current=Sa},style:va,contentStyle:ma,onElementClick:ra,transformToolConfig:da,...ea,className:`${ea.className} ${ua}`,...ya,enableDnd:!xa,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ua}`}),jsxRuntimeExports.jsx(CouponBox,{...aa,renderLabel:Ca})]})}),CouponBoxElement=dt$1(CouponBoxElementLogic).withConfig({displayName:"CouponBox__CouponBoxElement",componentId:"sc-17j9ju2-0"})([".dpc-coupon-box{height:100%;}textarea{}"]);registerElement({type:"dpcCouponBox",name:"CouponBox",component:CouponBoxElement,optionControls:optionControls$a,initialStateValues:initialStateValues$a,defaultStateValues:defaultStateValues$a});const colorableAttrs=["fill","stroke","stop-color"],referenceAttrs=["fill","stroke","mask","clip-path","filter"],nanoId=customAlphabet("1234567890abcdefghijklmnopqrstuvwxyz",6),parseStyleTag=ea=>(ea.querySelectorAll("style").forEach(ra=>{const oa=ra.innerHTML,aa=new CSSStyleSheet;aa.replaceSync(oa),Array.from(aa.cssRules).forEach(sa=>{if(sa.selectorText){const la=ea.querySelectorAll(sa.selectorText),ca=sa,ua=Array.from(ca.style).map(da=>{const pa=ca.style.getPropertyValue(da);return{property:da,value:pa}});la.forEach(da=>{ua.forEach(pa=>{da.setAttribute(pa.property,pa.value)})})}}),ra.remove()}),ea),parseInlineStyles=ea=>(ea.querySelectorAll("[style]").forEach(ra=>{ra.getAttribute("style").split(";").filter(sa=>sa).map(sa=>sa.trim()).forEach(sa=>{const[la,ca]=sa.split(":").map(ua=>ua.trim());ra.setAttribute(la,ca)}),ra.removeAttribute("style")}),ea),removeClassNames=ea=>(ea.querySelectorAll("[class]").forEach(ra=>{ra.removeAttribute("class")}),ea),generateUniqueId=ea=>{const na=ea.querySelectorAll("[id]"),ra={};return na.forEach(oa=>{const aa=nanoId();ra[oa.id]=aa,oa.setAttribute("id",aa)}),referenceAttrs.forEach(oa=>{ea.querySelectorAll(`[${oa}]`).forEach(sa=>{const la=sa.getAttribute(oa);if(la.startsWith("url(")||la.startsWith("#")&&!tinycolor$2(la).isValid()){const da=la.match(/\((.*?)\)/)[1].replaceAll('"',"").replace("#",""),pa=`url(#${ra[da]})`;sa.setAttribute(oa,pa)}})}),ea},generateColorsMap=ea=>{const na={};return colorableAttrs.forEach(oa=>{const aa=ea.querySelectorAll(`[${oa}]`);na[oa]=new Map;const sa=na[oa];aa.forEach(la=>{const ca=la.getAttribute(oa);if(tinycolor$2(ca).isValid()){const da=tinycolor$2(ca).toRgb(),pa=`rgba(${da.r}, ${da.g}, ${da.b}, ${da.a})`;sa.has(pa)||sa.set(pa,`depicter-${nanoId()}-${camelCase(oa)}`);const ha=sa.get(pa);la.classList.add(ha)}})}),Object.keys(na).reduce((oa,aa)=>na[aa].size?[...oa,...[...na[aa]].map(([sa,la])=>[sa,la])]:oa,[])},parseSvgContent=ea=>(parseStyleTag(ea),parseInlineStyles(ea),removeClassNames(ea),generateUniqueId(ea),generateColorsMap(ea)),VectorBox=ea=>{const{className:na,src:ra,content:oa,onGetColors:aa,onGetContent:sa,onError:la}=ea,[ca,ua]=reactExports.useState(oa?"loaded":"loading"),[da,pa]=reactExports.useState(""),ha=reactExports.useRef(null),{t:ga}=useTranslation(),fa=reactExports.useCallback(async va=>{try{const xa=await fetch(va,{credentials:"same-origin"});if(!xa.ok)throw new Error(`Failed to load SVG: ${xa.statusText}`);return await xa.text()}catch(xa){return xa instanceof Error?console.log(xa.message):console.log("An unknown error occurred"),""}},[]),ma=reactExports.useCallback(()=>{const va=ha.current?.querySelector("svg");if(!va)return;const xa=parseSvgContent(va);sa?.(va.outerHTML),aa?.(xa)},[aa,sa]);return reactExports.useEffect(()=>{ra?fa(ra).then(va=>{pa(va),ua("loaded"),ma()}).catch(()=>{ua("failed"),la?.()}):oa&&(pa(oa),ua("loaded"))},[oa,fa,la,ma,ra]),jsxRuntimeExports.jsxs("div",{className:na,children:[ca!=="failed"&&jsxRuntimeExports.jsx(LoadingSplash$1,{overlay:!0,visible:ca==="loading",background:ca==="loading",children:jsxRuntimeExports.jsx("div",{ref:ha,dangerouslySetInnerHTML:{__html:da}})}),ca==="failed"&&jsxRuntimeExports.jsx(NoticeOverlay$1,{label:ga("Oops! SVG loading failed."),iconSrc:LoadingFailedIcon,hideLabelOn:300}),ca==="failed"&&jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:`<!-- Load failed: ${ra} -->`}})]})},VectorBox$1=dt$1(VectorBox).withConfig({displayName:"VectorBox",componentId:"sc-syr4d8-0"})(["width:100%;height:100%;svg{width:100%;height:100%;}"]),vectorElementDefaultStateValues={...elementDefaultCommonState,keepAspectRatio:!0,innerStyles:{}},VectorColors=ea=>{const{t:na}=useTranslation(),{className:ra,value:oa={},selector:aa,action:sa}=ea,la=reactExports.useMemo(()=>Object.entries(oa).map(([ca])=>{const[,,ua]=ca.split("-");return createOptionControl({id:ca,control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},styles:{marginBottom:"5px"},selector:aa(`${ca}.svg.${ua}`),action:sa(`${ca}.svg.$bp.${ua}`)})}),[sa,aa,oa]);return lodashExports.isEmpty(oa)?jsxRuntimeExports.jsx("small",{children:na("There are no colors on your vector")}):jsxRuntimeExports.jsx(OCManager,{className:ra,optionControls:la,fieldsetComponent:Fieldset$1})},VectorColors$1=dt$1(VectorColors).withConfig({displayName:"VectorColors",componentId:"sc-1l2ev64-0"})([""]),action$8=updateSelectedElementsValueByPathAndPrefix(""),selector$a=getSelectedElementsValueByPathAndPrefix(""),vectorElementStylesControls=[{id:"vectorElementColorsFieldset",border:"bottom",tier:Tiers.PRO,optionControls:[[createOptionControl({id:"customColors",control:SwitchBox$1,controlProps:{label:i18next.t("Enable changing colors")},action:action$8("options.customColors"),selector:selector$a("options.customColors"),modifier:({value:ea},na)=>{ea&&na(updateSelectedElementsSize("height")({dimension:"height",value:"auto"}))}})],[createOptionControl({id:"vectorColors",control:VectorColors$1,controlProps:{action:updateSelectedElementsValueByPathAndPrefix("innerStyles"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles")},selector:selector$a("innerStyles"),dependency:ea=>selector$a("options.customColors")(ea)})]]}],vectorElementStylesOptionsControls=optionControlsPipe(ea=>excludeControls(ea,["backgroundColor","padding","backgroundBlur"]))(elementStylesOptionControls),vectorElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...vectorElementStylesControls,...vectorElementStylesOptionsControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],VectorElementLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,styles:aa,options:sa,innerStyles:la}=ea,{source:ca,content:ua,customColors:da}=sa,{t:pa}=useTranslation(),ha=useDispatch(),ga=useUniqueClassName(),{src:fa,status:ma}=useGetImageDynamicData({sourceId:ca,isDynamic:!1}),va={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useBackgroundColor(aa?.backgroundColor),...useBackgroundBlur(aa?.backgroundBlur),...useFilter(aa?.filter),...usePadding(aa?.padding),...useSvg(aa?.svg)},xa={...useBlendingMode(aa?.blendingMode),...useFlexStyles(aa?.flex)},ya=reactExports.useCallback(Ca=>{ha(updateElement({id:ra,values:{options:{content:Ca}}}))},[ha,ra]),Aa=reactExports.useCallback(Ca=>{if(!Ca.length)return;const Sa={};Ca.forEach(([wa,ba])=>{const[,,Ea]=ba.split("-");Sa[ba]={svg:{default:{[Ea]:wa}}}}),ha(updateElement({id:ra,values:{innerStyles:Sa}}))},[ha,ra]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,style:xa,contentStyle:va,onElementClick:oa,...ea,className:`${ea.className} ${ga}`,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ga}`}),ua&&da?jsxRuntimeExports.jsx(VectorBox$1,{content:ua}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ma==="rendering"&&jsxRuntimeExports.jsxs("small",{children:[pa("Loading"),"..."]}),da?jsxRuntimeExports.jsx(VectorBox$1,{src:fa,onGetContent:ya,onGetColors:Aa}):jsxRuntimeExports.jsx(ImageBox$1,{src:fa,width:"100%",height:"100%"})]})]})}),VectorElement=dt$1(VectorElementLogic).withConfig({displayName:"Vector__VectorElement",componentId:"sc-1hu0nrf-0"})(["small{display:block;width:250px;}"]);registerElement({type:"vector",name:"Vector",component:VectorElement,optionControls:vectorElementOptionControls,defaultStateValues:vectorElementDefaultStateValues,icon:SvgImage});const IconArea=dt$1.div.withConfig({displayName:"DropArea__IconArea",componentId:"sc-1sd7ve9-0"})([""]),DropArea=reactExports.forwardRef((ea,na)=>{const{className:ra,children:oa}=ea;return jsxRuntimeExports.jsx("div",{className:ra,ref:na,children:jsxRuntimeExports.jsxs(IconArea,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgDrop}),oa]})})}),DropArea$1=dt$1(DropArea).withConfig({displayName:"DropArea",componentId:"sc-1sd7ve9-1"})(["position:absolute;height:100%;z-index:5;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,0.7);transition:border 0.3s,opacity 0.3s,visibility 0.3s;svg{fill:#aaaaaa;}"," ","{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-weight:400;font-size:12px;line-height:16px;color:#aaaaaa;border:2px dashed #aaaaaa;border-radius:15px;padding:24px 19px;}",""],({hasContent:ea})=>ea&&lt$1(["opacity:0;visibility:hidden;pointer-events:none;"]),IconArea,ea=>ea.canDrop&&lt$1(["border-color:#4980f5;","{border-color:#4980f5;svg{fill:#4980f5;}}"],IconArea)),optionsSelector$p=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$p=updateSelectedElementsValueByPathAndPrefix("options"),hoverSwitchOptions=[{id:"hoverSwitchOptions",label:i18next.t("Controls Options"),border:"bottom",optionControls:[[createOptionControl({id:"switchDuration",control:SliderWithNumber,label:i18next.t("Switch duration"),controlProps:{min:0,max:2,numberProps:{units:"s"}},selector:optionsSelector$p("switchDuration"),action:optionsAction$p("switchDuration")})]]}],hoverSwitchElementStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["padding","backgroundBlur"]))(elementStylesOptionControls),optionControls$9=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...hoverSwitchOptions,...hoverSwitchElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...elementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$9={...elementDefaultCommonState,options:{switchDuration:.3}},initialStateValues$9={options:{switchDuration:.3}},ImageContainer$2=dt$1.div.withConfig({displayName:"HoverSwitchImage__ImageContainer",componentId:"sc-1gujrjq-0"})([""]),PrimaryImg=dt$1(ImageBox$1).withConfig({displayName:"HoverSwitchImage__PrimaryImg",componentId:"sc-1gujrjq-1"})([""]),SecondaryImg=dt$1(ImageBox$1).withConfig({displayName:"HoverSwitchImage__SecondaryImg",componentId:"sc-1gujrjq-2"})([""]),HoverSwitchImageElementLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,options:aa,styles:sa,innerStyles:la}=ea,ca=useUniqueClassName(),{t:ua}=useTranslation(),da=reactExports.useMemo(()=>({type:"block",keepRatioOnEdges:!0}),[]),{primarySource:pa,secondarySource:ha}=aa,{src:ga}=useGetImageDynamicData({sourceId:pa?.src,isDynamic:pa?.hasDynamicTag??!1,size:"large"}),{src:fa}=useGetImageDynamicData({sourceId:ha?.src,isDynamic:ha?.hasDynamicTag??!1,size:"large"}),ma=reactExports.useRef(null),va=useDispatch(),xa={...useBorder(sa?.border),...useCorner(sa?.corner),...useBoxShadow(sa?.boxShadow),...useOpacity(sa?.opacity),...useTextShadow(sa?.textShadow),...useBackgroundColor(sa?.backgroundColor),...useFilter(sa?.filter),...usePadding(sa?.padding),...useFlexStyles(sa?.flex),overflow:"hidden"},ya={...useBlendingMode(sa?.blendingMode),...useFlexStyles(sa?.flex)},Aa=reactExports.useCallback(($a,Ma,Ia=!1)=>{va(updateElement({id:ra,values:{options:{[`${$a}Source`]:{src:Ma,hasDynamicTag:Ia}}}}))},[va,ra]),{setDropZoneRef:Ca,canDrop:Sa,isDragging:wa}=useAssetDropZone({canDrop($a){const Ma=$a.assetData.type==="dynamicMedia"&&$a.assetData.sourceType==="image";return $a?.assetData?.type==="photo"||Ma},drop($a){Aa("primary",$a.assetData.payload?.source||$a.assetData.id,$a.assetData.type==="dynamicMedia")}}),{setDropZoneRef:ba,canDrop:Ea}=useAssetDropZone({canDrop($a){const Ma=$a.assetData.type==="dynamicMedia"&&$a.assetData.sourceType==="image";return $a?.assetData?.type==="photo"||Ma},drop($a){Aa("secondary",$a.assetData.payload?.source||$a.assetData.id,$a.assetData.type==="dynamicMedia")}});return jsxRuntimeExports.jsxs(BaseElement$1,{ref:$a=>{assignRef$1($a,na),ma.current=$a},style:ya,contentStyle:xa,onElementClick:oa,transformToolConfig:da,...ea,className:`${ea.className} ${ca}`,children:[la&&jsxRuntimeExports.jsx(InnerStyles,{styles:la,baseSelector:`.${ca}`}),jsxRuntimeExports.jsx(DropArea$1,{ref:Ca,canDrop:Sa,hasContent:!wa&&!!ga,children:ua("Drop primary image here")}),jsxRuntimeExports.jsx(DropArea$1,{ref:ba,canDrop:Ea,hasContent:!wa&&!!fa,children:ua("Drop secondary image here")}),jsxRuntimeExports.jsxs(ImageContainer$2,{children:[jsxRuntimeExports.jsx(PrimaryImg,{fitMode:"cover",loadingType:"symbol",className:"depicter-primary",draggable:!1,src:ga,alt:"",style:{transitionDuration:`${aa.switchDuration}s`}}),jsxRuntimeExports.jsx(SecondaryImg,{fitMode:"cover",className:"depicter-secondary",loadingType:"symbol",draggable:!1,src:fa,alt:""})]})]})}),HoverSwitchImageElement=dt$1(HoverSwitchImageElementLogic).withConfig({displayName:"HoverSwitchImage__HoverSwitchImageElement",componentId:"sc-1gujrjq-3"})(["background-color:white;.icv__arrow-wrapper{transform:translateX(0) !important;}:hover{","{opacity:0;}}","{backdrop-filter:blur(10px);width:100%;height:calc(50% - 1px);&:first-child{top:0;}&:nth-child(2){bottom:0;}}","{position:relative;width:100%;height:100%;}",",","{position:absolute;width:100%;height:100%;top:0;left:0;}","{z-index:2;opacity:1;transition:opacity 0.3s ease;}","{z-index:1;}"],PrimaryImg,DropArea$1,ImageContainer$2,PrimaryImg,SecondaryImg,PrimaryImg,SecondaryImg);registerElement({type:"hoverSwitchImage",name:"HoverSwitchImage",component:HoverSwitchImageElement,optionControls:optionControls$9,initialStateValues:initialStateValues$9,defaultStateValues:defaultStateValues$9});const innerStyles$4={"dpc-choice":{flex:{default:{rowGap:6}}},"dpc-choice-item":{backgroundColor:{default:"#f6f6f6"},corner:getCornerValue(6),typography:{default:{font:"Open sans",fontSize:20,fontVariant:"regular",color:"#000000",letterSpacing:0}},border:getBorderValue(1,"black",!1),hover:{backgroundColor:{default:"#e8e8e8"}}},"depicter-choice-label":{padding:getPaddingValue(11)},"depicter-other-choice-input":{typography:{default:{font:"Open sans",fontSize:20,fontVariant:"regular",color:"#000000",letterSpacing:0}},corner:getCornerValue(6),backgroundColor:{default:"#fff"},padding:getPaddingValue(8),border:getBorderValue(1,"#D5D5D5")}},options$8={choices:[{id:"1",label:"Excellent",value:"excellent"},{id:"2",label:"Good",value:"good"},{id:"3",label:"Average",value:"average"},{id:"4",label:"Poor",value:"poor"}],type:"single",addOtherItem:!1},defaultStateValues$8={...elementDefaultCommonState,innerStyles:innerStyles$4,options:options$8},initialStateValues$8={innerStyles:innerStyles$4,options:options$8},SvgHandle$1=ea=>reactExports.createElement("svg",{width:18,height:25,viewBox:"0 0 18 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("rect",{x:.75,y:.75,width:16.5,height:23.5,rx:4.25,strokeWidth:1.5}),reactExports.createElement("path",{d:"M9 5L12.4641 9.5H5.5359L9 5Z"}),reactExports.createElement("path",{d:"M9 20L12.4641 15.5H5.5359L9 20Z"})),SvgRemove$1=ea=>reactExports.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("rect",{width:17,height:17,rx:6}),reactExports.createElement("path",{d:"M10.7783 4L12.8996 6.12132L6.53544 12.4855L4.41412 10.3642L10.7783 4Z"}),reactExports.createElement("path",{d:"M12.8986 10.3631L10.7772 12.4844L4.41525 6.12243L6.53657 4.00111L12.8986 10.3631Z"}));function arrayMove(ea,na,ra){const oa=ea.slice();return oa.splice(ra<0?oa.length+ra:ra,0,oa.splice(na,1)[0]),oa}function getSortedRects(ea,na){return ea.reduce((ra,oa,aa)=>{const sa=na.get(oa);return sa&&(ra[aa]=sa),ra},Array(ea.length))}function isValidIndex(ea){return ea!==null&&ea>=0}function itemsEqual(ea,na){if(ea===na)return!0;if(ea.length!==na.length)return!1;for(let ra=0;ra<ea.length;ra++)if(ea[ra]!==na[ra])return!1;return!0}function normalizeDisabled(ea){return typeof ea=="boolean"?{draggable:ea,droppable:ea}:ea}const rectSortingStrategy=ea=>{let{rects:na,activeIndex:ra,overIndex:oa,index:aa}=ea;const sa=arrayMove(na,oa,ra),la=na[aa],ca=sa[aa];return!ca||!la?null:{x:ca.left-la.left,y:ca.top-la.top,scaleX:ca.width/la.width,scaleY:ca.height/la.height}},ID_PREFIX="Sortable",Context$1=React.createContext({activeIndex:-1,containerId:ID_PREFIX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(ea){let{children:na,id:ra,items:oa,strategy:aa=rectSortingStrategy,disabled:sa=!1}=ea;const{active:la,dragOverlay:ca,droppableRects:ua,over:da,measureDroppableContainers:pa}=useDndContext(),ha=useUniqueId(ID_PREFIX,ra),ga=ca.rect!==null,fa=reactExports.useMemo(()=>oa.map(ba=>typeof ba=="object"&&"id"in ba?ba.id:ba),[oa]),ma=la!=null,va=la?fa.indexOf(la.id):-1,xa=da?fa.indexOf(da.id):-1,ya=reactExports.useRef(fa),Aa=!itemsEqual(fa,ya.current),Ca=xa!==-1&&va===-1||Aa,Sa=normalizeDisabled(sa);useIsomorphicLayoutEffect$1(()=>{Aa&&ma&&pa(fa)},[Aa,fa,ma,pa]),reactExports.useEffect(()=>{ya.current=fa},[fa]);const wa=reactExports.useMemo(()=>({activeIndex:va,containerId:ha,disabled:Sa,disableTransforms:Ca,items:fa,overIndex:xa,useDragOverlay:ga,sortedRects:getSortedRects(fa,ua),strategy:aa}),[va,ha,Sa.draggable,Sa.droppable,Ca,fa,xa,ua,ga,aa]);return React.createElement(Context$1.Provider,{value:wa},na)}const defaultNewIndexGetter=ea=>{let{id:na,items:ra,activeIndex:oa,overIndex:aa}=ea;return arrayMove(ra,oa,aa).indexOf(na)},defaultAnimateLayoutChanges=ea=>{let{containerId:na,isSorting:ra,wasDragging:oa,index:aa,items:sa,newIndex:la,previousItems:ca,previousContainerId:ua,transition:da}=ea;return!da||!oa||ca!==sa&&aa===la?!1:ra?!0:la!==aa&&na===ua},defaultTransition={duration:200,easing:"ease"},transitionProperty="transform",disabledTransition=CSS.Transition.toString({property:transitionProperty,duration:0,easing:"linear"}),defaultAttributes={roleDescription:"sortable"};function useDerivedTransform(ea){let{disabled:na,index:ra,node:oa,rect:aa}=ea;const[sa,la]=reactExports.useState(null),ca=reactExports.useRef(ra);return useIsomorphicLayoutEffect$1(()=>{if(!na&&ra!==ca.current&&oa.current){const ua=aa.current;if(ua){const da=getClientRect(oa.current,{ignoreTransform:!0}),pa={x:ua.left-da.left,y:ua.top-da.top,scaleX:ua.width/da.width,scaleY:ua.height/da.height};(pa.x||pa.y)&&la(pa)}}ra!==ca.current&&(ca.current=ra)},[na,ra,oa,aa]),reactExports.useEffect(()=>{sa&&la(null)},[sa]),sa}function useSortable(ea){let{animateLayoutChanges:na=defaultAnimateLayoutChanges,attributes:ra,disabled:oa,data:aa,getNewIndex:sa=defaultNewIndexGetter,id:la,strategy:ca,resizeObserverConfig:ua,transition:da=defaultTransition}=ea;const{items:pa,containerId:ha,activeIndex:ga,disabled:fa,disableTransforms:ma,sortedRects:va,overIndex:xa,useDragOverlay:ya,strategy:Aa}=reactExports.useContext(Context$1),Ca=normalizeLocalDisabled(oa,fa),Sa=pa.indexOf(la),wa=reactExports.useMemo(()=>({sortable:{containerId:ha,index:Sa,items:pa},...aa}),[ha,aa,Sa,pa]),ba=reactExports.useMemo(()=>pa.slice(pa.indexOf(la)),[pa,la]),{rect:Ea,node:$a,isOver:Ma,setNodeRef:Ia}=useDroppable$1({id:la,data:wa,disabled:Ca.droppable,resizeObserverConfig:{updateMeasurementsFor:ba,...ua}}),{active:Oa,activatorEvent:Da,activeNodeRect:Ta,attributes:_a,setNodeRef:La,listeners:Na,isDragging:za,over:Fa,setActivatorNodeRef:Ha,transform:Va}=useDraggable$1({id:la,data:wa,attributes:{...defaultAttributes,...ra},disabled:Ca.draggable}),Ua=useCombinedRefs(Ia,La),Qa=!!Oa,Wa=Qa&&!ma&&isValidIndex(ga)&&isValidIndex(xa),Za=!ya&&za,Xa=Za&&Wa?Va:null,il=Wa?Xa??(ca??Aa)({rects:va,activeNodeRect:Ta,activeIndex:ga,overIndex:xa,index:Sa}):null,Ja=isValidIndex(ga)&&isValidIndex(xa)?sa({id:la,items:pa,activeIndex:ga,overIndex:xa}):Sa,nl=Oa?.id,Ya=reactExports.useRef({activeId:nl,items:pa,newIndex:Ja,containerId:ha}),rl=pa!==Ya.current.items,sl=na({active:Oa,containerId:ha,isDragging:za,isSorting:Qa,id:la,index:Sa,items:pa,newIndex:Ya.current.newIndex,previousItems:Ya.current.items,previousContainerId:Ya.current.containerId,transition:da,wasDragging:Ya.current.activeId!=null}),dl=useDerivedTransform({disabled:!sl,index:Sa,node:$a,rect:Ea});return reactExports.useEffect(()=>{Qa&&Ya.current.newIndex!==Ja&&(Ya.current.newIndex=Ja),ha!==Ya.current.containerId&&(Ya.current.containerId=ha),pa!==Ya.current.items&&(Ya.current.items=pa)},[Qa,Ja,ha,pa]),reactExports.useEffect(()=>{if(nl===Ya.current.activeId)return;if(nl&&!Ya.current.activeId){Ya.current.activeId=nl;return}const ml=setTimeout(()=>{Ya.current.activeId=nl},50);return()=>clearTimeout(ml)},[nl]),{active:Oa,activeIndex:ga,attributes:_a,data:wa,rect:Ea,index:Sa,newIndex:Ja,items:pa,isOver:Ma,isSorting:Qa,isDragging:za,listeners:Na,node:$a,overIndex:xa,over:Fa,setNodeRef:Ua,setActivatorNodeRef:Ha,setDroppableNodeRef:Ia,setDraggableNodeRef:La,transform:dl??il,transition:pl()};function pl(){if(dl||rl&&Ya.current.newIndex===Sa)return disabledTransition;if(!(Za&&!isKeyboardEvent(Da)||!da)&&(Qa||sl))return CSS.Transition.toString({...da,property:transitionProperty})}}function normalizeLocalDisabled(ea,na){var ra,oa;return typeof ea=="boolean"?{draggable:ea,droppable:!1}:{draggable:(ra=ea?.draggable)!=null?ra:na.draggable,droppable:(oa=ea?.droppable)!=null?oa:na.droppable}}function hasSortableData(ea){if(!ea)return!1;const na=ea.data.current;return!!(na&&"sortable"in na&&typeof na.sortable=="object"&&"containerId"in na.sortable&&"items"in na.sortable&&"index"in na.sortable)}const directions=[KeyboardCode.Down,KeyboardCode.Right,KeyboardCode.Up,KeyboardCode.Left],sortableKeyboardCoordinates=(ea,na)=>{let{context:{active:ra,collisionRect:oa,droppableRects:aa,droppableContainers:sa,over:la,scrollableAncestors:ca}}=na;if(directions.includes(ea.code)){if(ea.preventDefault(),!ra||!oa)return;const ua=[];sa.getEnabled().forEach(ha=>{if(!ha||ha!=null&&ha.disabled)return;const ga=aa.get(ha.id);if(ga)switch(ea.code){case KeyboardCode.Down:oa.top<ga.top&&ua.push(ha);break;case KeyboardCode.Up:oa.top>ga.top&&ua.push(ha);break;case KeyboardCode.Left:oa.left>ga.left&&ua.push(ha);break;case KeyboardCode.Right:oa.left<ga.left&&ua.push(ha);break}});const da=closestCorners({collisionRect:oa,droppableRects:aa,droppableContainers:ua});let pa=getFirstCollision(da,"id");if(pa===la?.id&&da.length>1&&(pa=da[1].id),pa!=null){const ha=sa.get(ra.id),ga=sa.get(pa),fa=ga?aa.get(ga.id):null,ma=ga?.node.current;if(ma&&fa&&ha&&ga){const xa=getScrollableAncestors(ma).some((ba,Ea)=>ca[Ea]!==ba),ya=isSameContainer(ha,ga),Aa=isAfter(ha,ga),Ca=xa||!ya?{x:0,y:0}:{x:Aa?oa.width-fa.width:0,y:Aa?oa.height-fa.height:0},Sa={x:fa.left,y:fa.top};return Ca.x&&Ca.y?Sa:subtract(Sa,Ca)}}}};function isSameContainer(ea,na){return!hasSortableData(ea)||!hasSortableData(na)?!1:ea.data.current.sortable.containerId===na.data.current.sortable.containerId}function isAfter(ea,na){return!hasSortableData(ea)||!hasSortableData(na)||!isSameContainer(ea,na)?!1:ea.data.current.sortable.index<na.data.current.sortable.index}const ImagePlaceholder$1="data:image/svg+xml,%3csvg%20width='159'%20height='159'%20viewBox='0%200%20159%20159'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6117_19588)'%3e%3crect%20width='159'%20height='159'%20fill='%23EFEFEF'/%3e%3cpath%20d='M113.717%2087.3656C117.987%2080.8457%20127.543%2080.8457%20131.814%2087.3656L175.028%20153.344C179.739%20160.538%20174.579%20170.087%20165.98%20170.087H79.551C70.9519%20170.087%2065.7912%20160.537%2070.5027%20153.344L113.717%2087.3656Z'%20fill='%23DBDBDB'/%3e%3cpath%20d='M30.3394%2051.292C34.6683%2045.6179%2043.2092%2045.6179%2047.5382%2051.292L129.657%20158.929C135.089%20166.048%20130.012%20176.306%20121.058%20176.306H-43.1805C-52.1346%20176.306%20-57.2111%20166.048%20-51.7799%20158.929L30.3394%2051.292Z'%20fill='%23DBDBDB'/%3e%3ccircle%20cx='90.3163'%20cy='45.9694'%20r='16.7653'%20fill='%23DBDBDB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6117_19588'%3e%3crect%20width='159'%20height='159'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",RadioButton=reactExports.memo(ea=>{const{className:na="dpc-radio-button",name:ra,value:oa,children:aa,label:sa,id:la,isSelected:ca=!1,displayOtherInput:ua=!1,displayMedia:da=!1,disableInputFocus:pa=!1,media:ha,srcSet:ga,onChange:fa,onInputOtherChange:ma}=ea,va=reactExports.useRef(`choice-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,15)}`),xa=reactExports.useRef(null),[ya,Aa]=reactExports.useState(""),Ca=la==="other",Sa=reactExports.useCallback(ba=>{fa?.(la,!ca,ba.currentTarget.value)},[la,ca,fa]),wa=reactExports.useCallback(ba=>{Aa(ba.currentTarget.value),ma?.(ba.currentTarget.value)},[ma]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsxs("label",{className:"depicter-choice-label",htmlFor:pa?"none":va.current,children:[da&&jsxRuntimeExports.jsx("div",{className:"depicter-choice-media",children:jsxRuntimeExports.jsx("img",{alt:ra,src:ha||ImagePlaceholder$1,srcSet:ga})}),jsxRuntimeExports.jsxs("div",{className:"depicter-choice-container",children:[aa||jsxRuntimeExports.jsx("span",{className:"depicter-choice-text",children:sa}),jsxRuntimeExports.jsx("input",{className:"depicter-choice-input depicter-choice-radio-input",id:va.current,type:"radio",name:ra,value:oa,defaultChecked:ca,onInput:Sa})]}),Ca&&(ca||ua)&&jsxRuntimeExports.jsx("input",{className:"depicter-other-choice-input depicter-radio-button-other-input",type:"text",value:ya,onInput:wa,ref:xa})]})})}),SvgCheck=ea=>reactExports.createElement("svg",{width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.05542 10.253L0.459229 5.65685L2.227 3.88909L5.05544 6.71753L11.773 0L13.5407 1.76777L5.05542 10.253Z"})),ImagePlaceholder="data:image/svg+xml,%3csvg%20width='159'%20height='159'%20viewBox='0%200%20159%20159'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6117_19588)'%3e%3crect%20width='159'%20height='159'%20fill='%23EFEFEF'/%3e%3cpath%20d='M113.717%2087.3656C117.987%2080.8457%20127.543%2080.8457%20131.814%2087.3656L175.028%20153.344C179.739%20160.538%20174.579%20170.087%20165.98%20170.087H79.551C70.9519%20170.087%2065.7912%20160.537%2070.5027%20153.344L113.717%2087.3656Z'%20fill='%23DBDBDB'/%3e%3cpath%20d='M30.3394%2051.292C34.6683%2045.6179%2043.2092%2045.6179%2047.5382%2051.292L129.657%20158.929C135.089%20166.048%20130.012%20176.306%20121.058%20176.306H-43.1805C-52.1346%20176.306%20-57.2111%20166.048%20-51.7799%20158.929L30.3394%2051.292Z'%20fill='%23DBDBDB'/%3e%3ccircle%20cx='90.3163'%20cy='45.9694'%20r='16.7653'%20fill='%23DBDBDB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6117_19588'%3e%3crect%20width='159'%20height='159'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",CheckBox=reactExports.memo(ea=>{const{className:na="dpc-checkbox",name:ra,value:oa,children:aa,label:sa,id:la,isSelected:ca=!1,displayOtherInput:ua=!1,displayMedia:da=!1,disableInputFocus:pa=!1,onInputOtherChange:ha,media:ga,srcSet:fa,onChange:ma}=ea,va=reactExports.useRef(`choice-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,15)}`),xa=reactExports.useRef(null),[ya,Aa]=reactExports.useState(""),Ca=la==="other",Sa=reactExports.useCallback(ba=>{ma?.(la,!ca,ba.currentTarget.value)},[la,ca,ma]),wa=reactExports.useCallback(ba=>{Aa(ba.currentTarget.value),ha?.(ba.currentTarget.value)},[ha]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsxs("label",{className:"depicter-choice-label",htmlFor:pa?"none":va.current,children:[da&&jsxRuntimeExports.jsx("div",{className:"depicter-choice-media",children:jsxRuntimeExports.jsx("img",{alt:ra,src:ga||ImagePlaceholder,srcSet:fa})}),jsxRuntimeExports.jsxs("div",{className:"depicter-choice-container",children:[aa||jsxRuntimeExports.jsx("span",{className:"depicter-choice-text",children:sa}),jsxRuntimeExports.jsxs("div",{className:"depicter-checkbox-input-wrapper",children:[jsxRuntimeExports.jsx("input",{className:"depicter-choice-input depicter-choice-checkbox-input",id:va.current,type:"checkbox",name:oa,defaultChecked:ca,onInput:Sa}),jsxRuntimeExports.jsx(SvgCheck,{})]})]}),Ca&&(ca||ua)&&jsxRuntimeExports.jsx("input",{className:"depicter-other-choice-input depicter-checkbox-other-input",type:"text",value:ya,onInput:wa,ref:xa})]})})}),ChoiceItem=ea=>{const{className:na="dpc-choice-item",zoom:ra=1,type:oa="single",isSelected:aa=!1,displayOtherInput:sa=!1,name:la="",onRemove:ca,onChange:ua,renderLabel:da,...pa}=ea,{attributes:ha,listeners:ga,isDragging:fa,setNodeRef:ma,transform:va,transition:xa}=useSortable({id:pa.id}),ya={transform:va?CSS.Transform.toString({x:va.x/ra,y:va.y/ra,scaleX:1,scaleY:1}):void 0,transition:xa};return jsxRuntimeExports.jsx("div",{className:`${na} ${fa?"is-dragging":""}`,ref:ma,style:ya,...ha,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"dpc-choice-drag-button",...ga,children:jsxRuntimeExports.jsx(SvgHandle$1,{})}),oa==="single"?jsxRuntimeExports.jsx(RadioButton,{name:la,onChange:ua,isSelected:aa,displayOtherInput:sa,...pa,children:da?.(pa.id,pa.label,"depicter-choice-text")}):jsxRuntimeExports.jsx(CheckBox,{onChange:ua,isSelected:aa,displayOtherInput:sa,...pa,children:da?.(pa.id,pa.label,"depicter-choice-text")}),jsxRuntimeExports.jsx("button",{className:"dpc-choice-remove-button depicter-keep-element-selection",type:"button",onMouseDown:()=>ca?.(pa.id),children:jsxRuntimeExports.jsx(SvgRemove$1,{})})]})})},SvgAdd$2=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("rect",{x:5.41663,width:2.16667,height:13}),reactExports.createElement("rect",{x:13,y:5.41669,width:2.16667,height:13,transform:"rotate(90 13 5.41669)"})),measuring$1={droppable:{strategy:MeasuringStrategy.BeforeDragging}},Choice$2=ea=>{const{className:na="dpc-choice",choices:ra=[],name:oa,type:aa="single",addOtherItem:sa=!1,displayOtherInput:la=!0,addChoiceButtonText:ca,isActive:ua,zoom:da=1,onAddChoice:pa,onRemove:ha,renderLabel:ga,onItemsChange:fa}=ea,[ma,va]=reactExports.useState(ra),[,xa]=reactExports.useState(null),[ya,Aa]=reactExports.useState([]),[Ca,Sa]=reactExports.useState(!1),wa=useSensors(useSensor(PointerSensor),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates}));reactExports.useEffect(()=>{va(ra)},[ra]),reactExports.useEffect(()=>{Aa([])},[aa]),reactExports.useEffect(()=>{const Oa=ra.find(Da=>Da.value==="other");sa&&!Oa?fa?.([...ra,{id:"other",value:"other",label:"Other"}]):!sa&&Oa&&fa?.(ra.filter(Da=>Da.value!=="other"))},[sa,ra,fa]);const ba=reactExports.useCallback((Oa,Da)=>{Aa(aa==="single"?[Oa]:Da?[...ya,Oa]:ya.filter(Ta=>Ta!==Oa))},[aa,ya]),Ea=reactExports.useCallback(Oa=>{const{id:Da}=Oa;return jsxRuntimeExports.jsx(ChoiceItem,{type:aa,name:oa,zoom:da,isSelected:ya.includes(Da),displayOtherInput:la,onChange:ba,onRemove:ha,renderLabel:ga,disableInputFocus:!0,...Oa},Da)},[la,oa,ba,ha,ga,aa,ya,da]),$a=reactExports.useCallback(({active:Oa})=>{xa(Oa.id),Sa(!0)},[]),Ma=reactExports.useCallback(()=>{xa(null),Sa(!1)},[]),Ia=reactExports.useCallback(Oa=>{const{active:Da,over:Ta}=Oa;if(Ta&&Da.id!==Ta.id){const _a=ma.findIndex(za=>za.id===Da.id),La=ma.findIndex(za=>za.id===Ta.id),Na=arrayMove(ma,_a,La);va(Na),fa?.(Na)}xa(null),Sa(!1)},[ma,fa]);return jsxRuntimeExports.jsx(DndContext$1,{onDragStart:$a,onDragEnd:Ia,onDragCancel:Ma,sensors:wa,collisionDetection:closestCenter,measuring:measuring$1,children:jsxRuntimeExports.jsx(SortableContext,{items:ma,children:jsxRuntimeExports.jsxs("div",{className:`${na} ${Ca?"dpc-choice-is-sorting":""} ${ua?"dpc-choice-active":""}`,children:[ma.map(Ea),jsxRuntimeExports.jsxs("button",{className:"dpc-choice-add-button",type:"button",onMouseDown:pa,children:[jsxRuntimeExports.jsx(SvgAdd$2,{}),ca]}),jsxRuntimeExports.jsx("input",{type:"hidden",value:JSON.stringify(ra.filter(Oa=>ya.includes(Oa.id))),readOnly:!0})]})})})},optionsSelector$o=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$o=updateSelectedElementsValueByPathAndPrefix("options"),requiredOptionControl=createOptionControl({id:"required",control:SwitchBox$1,controlProps:{label:i18next.t("Required"),tooltip:{content:i18next.t("If enabled, the user will not be able to submit or continue without selecting an option."),options:{id:"workspace"}}},selector:optionsSelector$o("required"),action:optionsAction$o("required")}),requiredOptionNotice=createOptionControl({id:"requiredNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("Ensure that you have added an error message element to this step to alert users when fields are left empty."),variant:"boxed"},styles:{marginBottom:"10px"},dependency:optionsSelector$o("required")}),inputNameOptionControl=createOptionControl({id:"inputName",control:Input$2,label:i18next.t("Name"),controlProps:{variant:"small",onBlurChange:!0},tooltip:{content:i18next.t('A unique name to identify the value of the choice in the survey data. Example: "Product quality"'),options:{id:"workspace"}},selector:optionsSelector$o("name"),action:optionsAction$o("name")}),optionsSelector$n=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$n=updateSelectedElementsValueByPathAndPrefix("options"),choiceOptions=[{id:"choiceOptions",label:i18next.t("Options"),border:"bottom",optionControls:[[inputNameOptionControl],[requiredOptionControl],[requiredOptionNotice],[createOptionControl({id:"multipleMode",control:SwitchBox$1,controlProps:{label:i18next.t("Multiple choice")},valueFilter:ea=>ea==="multiple",onChangeValueFilter:ea=>ea?"multiple":"single",selector:optionsSelector$n("type"),action:optionsAction$n("type")})],[createOptionControl({id:"otherItem",control:SwitchBox$1,controlProps:{label:i18next.t("Enable other item")},selector:optionsSelector$n("addOtherItem"),action:optionsAction$n("addOtherItem")})]]}],itemStyleSelector$2=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item"),itemStyleAction$2=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item"),itemLabelSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-label"),itemLabelAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-choice-label"),choiceItemStylesOptionControls=[{id:"itemStyles",label:i18next.t("Item Styles"),border:"bottom",optionControls:[[createOptionControl({id:"labelTypography",control:CompactTypography$1,label:i18next.t("Label"),selector:itemStyleSelector$2("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","lineHeight"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item.typography")}})],[createOptionControl({id:"spaceBetweenItems",control:Number$2,label:i18next.t("Items Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice")("flex.rowGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice")("flex.rowGap"),controlProps:{units:"px"},styles:{flex:.5}})],[createOptionControl({id:"itemBackgroundColor",label:i18next.t("Background"),control:ColorPicker$1,controlProps:{showHex:!0},selector:itemStyleSelector$2("backgroundColor"),action:itemStyleAction$2("backgroundColor")})],[createOptionControl({id:"itemCorner",label:i18next.t("Corner"),control:BoxEdgeSizing$1,selector:itemStyleSelector$2("corner"),action:itemStyleAction$2("corner")})],[createOptionControl({id:"itemPadding",label:i18next.t("Padding"),control:BoxSideSizing$1,selector:itemLabelSelector("padding"),action:itemLabelAction("padding")})],...elementTextStylesOptionControls[0].optionControls,[createOptionControl({id:"border",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:itemStyleAction$2,selector:itemStyleSelector$2})},hideOnIntersection:!0,selector:itemStyleSelector$2("border.enable"),action:itemStyleAction$2("border.enable")})]]}],optionsSelector$m=getSelectedElementsValueByPathAndPrefix("options"),inputSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-other-choice-input"),inputAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-other-choice-input"),choiceInputStylesOptionControls=[{id:"inputStyles",label:i18next.t("Other Input styles"),border:"bottom",optionControls:[[createOptionControl({id:"labelTypography",control:CompactTypography$1,label:i18next.t("Label"),selector:inputSelector("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","lineHeight"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.depicter-other-choice-input.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.depicter-other-choice-input.typography")},dependency:ea=>optionsSelector$m("addOtherItem")(ea)})],[createOptionControl({id:"inputBackground",label:i18next.t("Background"),control:ColorPicker$1,controlProps:{showHex:!0},selector:inputSelector("backgroundColor"),action:inputAction("backgroundColor"),dependency:ea=>optionsSelector$m("addOtherItem")(ea)})],[createOptionControl({id:"inputCorner",label:i18next.t("Corner"),control:BoxEdgeSizing$1,selector:inputSelector("corner"),action:inputAction("corner"),dependency:ea=>optionsSelector$m("addOtherItem")(ea)})],[createOptionControl({id:"inputPadding",label:i18next.t("Padding"),control:BoxSideSizing$1,selector:inputSelector("padding"),action:inputAction("padding"),dependency:ea=>optionsSelector$m("addOtherItem")(ea)})],[createOptionControl({id:"border",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:inputAction,selector:inputSelector})},hideOnIntersection:!0,selector:inputSelector("border.enable"),action:inputAction("border.enable"),dependency:ea=>optionsSelector$m("addOtherItem")(ea)})]]}],itemStyleSelector$1=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item"),itemStyleAction$1=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item"),choiceItemHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"hoverBackgroundColor",control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},label:i18next.t("Item Background Color"),selector:itemStyleSelector$1("hover.backgroundColor"),action:itemStyleAction$1("hover.backgroundColor"),disabledWhen:na=>!getSelectedElementsValueByPathAndPrefix("styles.hover")("enable")(na)})]],"hoverStyles",0))(elementHoverStylesOptionControls),choiceElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 105px"}}))(elementPositionOptionControls()),optionControls$8=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...choiceElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...choiceOptions,...choiceItemStylesOptionControls,...choiceInputStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...choiceItemHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:elementActionOptionControls()}],TextArea$1=dt$1.textarea.withConfig({displayName:"TextArea",componentId:"sc-sy174q-0"})(["color:inherit;font:inherit;font-size:inherit;padding:0;margin:0;min-height:0;resize:none;border:none;overflow:hidden;background:transparent;width:100%;min-width:0;white-space:inherit;letter-spacing:inherit;text-transform:inherit;line-height:inherit;text-decoration:inherit;text-shadow:inherit;text-align:inherit;overflow:hidden;display:block;&::focus{outline:none;}"]),calcTextBoxArea=ea=>{const na=document.createElement("span");na.style.whiteSpace="break-spaces",na.style.visibility="hidden",na.style.position="absolute",na.style.top="0",na.style.left="0",na.style.width="auto",na.style.height="auto",na.innerText=ea,document.body.appendChild(na);const{width:ra,height:oa}=na.getBoundingClientRect();return document.body.removeChild(na),{width:ra,height:oa}},AutosizeTextArea=ea=>{const{value:na,onChange:ra,editable:oa=!1,renderValue:aa,autoWidth:sa=!1,className:la,removeStaticElementEdit:ca,contentStyle:ua,...da}=ea,[pa,ha]=reactExports.useState(),[ga,fa]=reactExports.useState(na);reactExports.useEffect(()=>{fa(na)},[na]);const ma=reactExports.useCallback(xa=>{const{height:ya,width:Aa}=calcTextBoxArea(xa.value);pa!==ya&&ha(ya),sa?(xa.style.width="auto",xa.style.width=`${Aa}px`):xa.style.width="100%"},[sa,pa]),va=ua??{cursor:"default",width:sa?"auto":"100%"};return oa&&!ca&&(va.visibility="hidden",va.height="0"),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oa&&jsxRuntimeExports.jsx(TextArea$1,{className:la,cols:1,rows:1,style:{height:`${pa}px`,overflowX:"hidden",whiteSpace:"break-spaces"},onInput:xa=>ma(xa.currentTarget),ref:xa=>{xa&&ma(xa)},value:ga,onChange:xa=>fa(xa.target.value),onBlur:()=>ra(ga),...da}),(!ca||!oa)&&jsxRuntimeExports.jsx("div",{style:va,className:la,children:(aa||na).split(/\r?\n/).map((xa,ya)=>jsxRuntimeExports.jsxs("span",{style:{whiteSpace:"break-spaces"},children:[xa,jsxRuntimeExports.jsx("br",{})]},ya))})]})},AutosizeTextArea$1=dt$1(AutosizeTextArea).withConfig({displayName:"AutosizeTextArea",componentId:"sc-1otq3en-0"})([""]),PartialEditableText=ea=>jsxRuntimeExports.jsx(AutosizeTextArea$1,{onPointerDown:na=>na.stopPropagation(),...ea}),theme$2H=withTheme(scheme$1j),PartialEditableText$1=dt$1(PartialEditableText).withConfig({displayName:"PartialEditableText",componentId:"sc-cxol0x-0"})(["",""],theme$2H.colors((ea,{editable:na})=>na?lt$1(["&:hover,&:focus{box-shadow:0 0 0 calc(2px / var(--depicter-workspace-zoom)) ",";}"],ea.hover.outlineColor):"")),ttConfig$3={offAbles:[],offDirections:["n","s","ne","nw","se","sw"]},optionsAction$m=updateSelectedElementsValueByPathAndPrefix("options"),ChoiceLogic$1=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,styles:aa,innerStyles:sa,options:la,locked:ca}=ea,{choices:ua}=la,da=useUniqueClassName(),pa=useTypography(aa?.typography),ha=useIsSelected(ra),{t:ga}=useTranslation(),fa=useDispatchAndToHistory(),ma=useSelector(getWorkspaceComputedZoom),{isActive:va,...xa}=useActiveOnClick(ra,!ca,ha,void 0,{offAbles:["draggable"]},ttConfig$3),ya={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...pa,...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},Aa=reactExports.useCallback(()=>{const Ea=nanoid$1(5),$a={id:Ea,value:`new-choice-${Ea}`,label:ga("New Choice")};fa(optionsAction$m("choices")({value:[...ua,$a]}))},[ua,fa,ga]),Ca=reactExports.useCallback(Ea=>{fa(optionsAction$m("choices")({value:ua.filter($a=>$a.id!==Ea)}))},[ua,fa]),Sa=reactExports.useCallback((Ea,$a)=>{const Ma=$a.toLowerCase().replace(/[^\w\s]/g,"").trim().replace(/\s+/g,"-"),Ia=ua.map(Oa=>Oa.id===Ea?{...Oa,value:Ma,label:$a}:Oa);fa(optionsAction$m("choices")({value:Ia}))},[ua,fa]),wa=reactExports.useCallback((Ea,$a)=>jsxRuntimeExports.jsx(EditableText$1,{value:$a,elementTag:"span",isEditable:va&&!ca,onChange:Ma=>Sa(Ea,Ma)}),[va,ca,Sa]),ba=reactExports.useCallback(Ea=>{fa(optionsAction$m("choices")({value:Ea}))},[fa]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:ya,onElementClick:oa,...ea,transformToolConfig:ttConfig$3,className:`${ea.className} ${da}`,enableDnd:!va,...xa,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${da}`}),jsxRuntimeExports.jsx(Choice$2,{...la,addChoiceButtonText:ga("Add Choice"),onAddChoice:Aa,onRemove:Ca,renderLabel:wa,onItemsChange:ba,isActive:va,zoom:ma})]})}),Choice$1=dt$1(ChoiceLogic$1).withConfig({displayName:"Choice",componentId:"sc-vx7uao-0"})(["","{cursor:inherit;}"],PartialEditableText$1);registerElement({type:"dpcChoice",name:"Choice",component:Choice$1,optionControls:optionControls$8,initialStateValues:initialStateValues$8,defaultStateValues:defaultStateValues$8});const innerStyles$3={"dpc-media-choice":{flex:{default:{columnGap:10,rowGap:10}}},"depicter-choice-label":{padding:getPaddingValue(11)},"dpc-choice-item":{...innerStyles$4["dpc-choice-item"],width:{default:{value:190,unit:"px"}},height:{default:{value:220,unit:"px"}}}},options$7={choices:[{id:"1",label:"Excellent",value:"excellent"},{id:"2",label:"Good",value:"good"},{id:"3",label:"Average",value:"average"}],type:"single"},defaultStateValues$7={...elementDefaultCommonState,innerStyles:innerStyles$3,options:options$7},initialStateValues$7={innerStyles:innerStyles$3,options:options$7},SvgHandle=ea=>reactExports.createElement("svg",{width:25,height:18,viewBox:"0 0 25 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("rect",{x:.75,y:.75,width:23.5,height:16.5,rx:4.25,strokeWidth:1.5}),reactExports.createElement("path",{d:"M20 9L15.5 12.4641L15.5 5.5359L20 9Z"}),reactExports.createElement("path",{d:"M5 9L9.5 12.4641L9.5 5.5359L5 9Z"})),SvgRemove=ea=>reactExports.createElement("svg",{width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("circle",{cx:11.5,cy:11.5,r:11.5}),reactExports.createElement("rect",{x:15.0355,y:5.84314,width:3,height:13,transform:"rotate(45 15.0355 5.84314)"}),reactExports.createElement("rect",{x:17.1569,y:15.0355,width:3,height:13,transform:"rotate(135 17.1569 15.0355)"})),MediaChoiceItem=reactExports.forwardRef((ea,na)=>{const{className:ra="dpc-choice-item",type:oa="single",name:aa="",zoom:sa=1,isSelected:la=!1,onRemove:ca,onChange:ua,renderLabel:da,...pa}=ea,{attributes:ha,listeners:ga,setNodeRef:fa,transform:ma,transition:va,isDragging:xa}=useSortable({id:pa.id}),ya={transform:ma?CSS.Transform.toString({x:ma.x/sa,y:ma.y/sa,scaleX:1,scaleY:1}):void 0,transition:va};return jsxRuntimeExports.jsx("div",{className:`${ra} ${xa?"is-dragging":""}`,ref:Aa=>{fa(Aa)},style:ya,...ha,children:jsxRuntimeExports.jsxs("div",{ref:na,children:[jsxRuntimeExports.jsx("div",{className:"dpc-choice-drag-button",...ga,children:jsxRuntimeExports.jsx(SvgHandle,{})}),oa==="single"?jsxRuntimeExports.jsx(RadioButton,{name:aa,onChange:ua,isSelected:la,displayMedia:!0,...pa,children:da?.(pa.id,pa.label,"depicter-choice-text")}):jsxRuntimeExports.jsx(CheckBox,{onChange:ua,isSelected:la,displayMedia:!0,...pa,children:da?.(pa.id,pa.label,"depicter-choice-text")}),jsxRuntimeExports.jsx("button",{className:"dpc-choice-remove-button depicter-keep-element-selection",type:"button",onMouseDown:()=>ca?.(pa.id),children:jsxRuntimeExports.jsx(SvgRemove,{})})]})})}),SvgAdd$1=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("rect",{x:5.41663,width:2.16667,height:13}),reactExports.createElement("rect",{x:13,y:5.41669,width:2.16667,height:13,transform:"rotate(90 13 5.41669)"})),measuring={droppable:{strategy:MeasuringStrategy.BeforeDragging}},MediaChoice=ea=>{const{className:na="dpc-media-choice",choices:ra=[],name:oa,type:aa="single",isActive:sa,zoom:la=1,itemComponent:ca=MediaChoiceItem,addChoiceButtonText:ua,onAddChoice:da,onRemove:pa,renderLabel:ha,onItemsChange:ga,updateMedia:fa}=ea,[ma,va]=reactExports.useState(ra),[,xa]=reactExports.useState(null),[ya,Aa]=reactExports.useState([]),[Ca,Sa]=reactExports.useState(!1),wa=useSensors(useSensor(PointerSensor),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates}));reactExports.useEffect(()=>{va(ra)},[ra]),reactExports.useEffect(()=>{Aa([])},[aa]);const ba=reactExports.useCallback((Oa,Da)=>{Aa(aa==="single"?[Oa]:Da?[...ya,Oa]:ya.filter(Ta=>Ta!==Oa))},[aa,ya]),Ea=reactExports.useCallback(Oa=>{const{id:Da}=Oa;return jsxRuntimeExports.jsx(ca,{type:aa,name:oa,zoom:la,isSelected:ya.includes(Da),onChange:ba,onRemove:pa,renderLabel:ha,updateMedia:fa,disableInputFocus:!0,...Oa},Da)},[ca,oa,ba,pa,ha,aa,fa,ya,la]),$a=reactExports.useCallback(({active:Oa})=>{xa(Oa.id),Sa(!0)},[]),Ma=reactExports.useCallback(()=>{xa(null),Sa(!1)},[]),Ia=reactExports.useCallback(Oa=>{const{active:Da,over:Ta}=Oa;if(Ta&&Da.id!==Ta.id){const _a=ma.findIndex(za=>za.id===Da.id),La=ma.findIndex(za=>za.id===Ta.id),Na=arrayMove(ma,_a,La);va(Na),ga?.(Na)}xa(null),Sa(!1)},[ma,ga]);return jsxRuntimeExports.jsx(DndContext$1,{onDragStart:$a,onDragEnd:Ia,onDragCancel:Ma,sensors:wa,collisionDetection:closestCenter,measuring,children:jsxRuntimeExports.jsx(SortableContext,{items:ma,children:jsxRuntimeExports.jsxs("div",{className:`${na} ${Ca?"dpc-choice-is-sorting":""} ${sa?"dpc-choice-active":""}`,children:[ma.map(Ea),jsxRuntimeExports.jsxs("button",{className:"dpc-choice-add-button",type:"button",onMouseDown:da,children:[jsxRuntimeExports.jsx(SvgAdd$1,{}),ua]}),jsxRuntimeExports.jsx("input",{type:"hidden",value:JSON.stringify(ra.filter(Oa=>ya.includes(Oa.id))),readOnly:!0})]})})})},choiceItemStylesOptions=optionControlsPipe(ea=>excludeControls(ea,["spaceBetweenItems"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"itemWidth",control:Number$2,controlProps:{units:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"auto",value:"auto"}]},label:i18next.t("Item Width"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item")("width"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item")("width"),styles:{flex:.5}}),createOptionControl({id:"itemHeight",control:Number$2,controlProps:{units:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"auto",value:"auto"}]},label:i18next.t("Item Height"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item")("height"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-choice-item")("height"),styles:{flex:.5}})],[createOptionControl({id:"spaceBetweenItems",control:Number$2,label:i18next.t("Columns Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-media-choice")("flex.columnGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-media-choice")("flex.columnGap"),controlProps:{units:"px"},styles:{flex:.5}}),createOptionControl({id:"spaceBetweenRows",control:Number$2,label:i18next.t("Rows Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-media-choice")("flex.rowGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-media-choice")("flex.rowGap"),controlProps:{units:"px"},styles:{flex:.5}})]],"itemStyles",-1))(choiceItemStylesOptionControls),mediaChoiceElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio","height"]),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 105px"}}))(elementPositionOptionControls()),mediaChoiceOptions=excludeControls(choiceOptions,["otherItem"]),optionControls$7=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...mediaChoiceElementPositionOptionControls,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...mediaChoiceOptions,...choiceItemStylesOptions,...choiceInputStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...choiceItemHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],EditorMediaChoiceItem=ea=>{const{className:na,id:ra,value:oa,label:aa,updateMedia:sa,"media:imageAsset":la,...ca}=ea,{src:ua}=useGetImageDynamicData({sourceId:la,size:"thumb"}),da=reactExports.useMemo(()=>({id:ra,value:oa,label:aa,media:ua}),[ra,ua,aa,oa]),{setDropZoneRef:pa,canDrop:ha}=useAssetDropZone({canDrop(ga){return["photo"].includes(ga?.assetData?.type||"")},drop(ga){sa?.(ra,ga.assetData.payload?.source||ga.assetData.id)}});return jsxRuntimeExports.jsx(MediaChoiceItem,{className:`${na} dpc-choice-item ${ha?"dp-drop-active":""}`,ref:ga=>{ga&&pa?.(ga)},...ca,...da})},EditorMediaChoiceItem$1=dt$1(EditorMediaChoiceItem).withConfig({displayName:"MediaChoiceItem",componentId:"sc-1tmqsw1-0"})(["&.dp-drop-active .depicter-choice-media{box-shadow:0 0 0 3px #4980f5;}"]),ttConfig$2={offAbles:[],offDirections:["n","s","ne","nw","se","sw"]},optionsAction$l=updateSelectedElementsValueByPathAndPrefix("options"),ChoiceLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,styles:aa,innerStyles:sa,options:la,locked:ca}=ea,{choices:ua}=la,da=useUniqueClassName(),pa=useTypography(aa?.typography),ha=useIsSelected(ra),{t:ga}=useTranslation(),fa=useDispatchAndToHistory(),ma=useSelector(getWorkspaceComputedZoom),{isActive:va,...xa}=useActiveOnClick(ra,!ca,ha,void 0,{offAbles:["draggable"]},ttConfig$2),ya={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...pa,...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},Aa=reactExports.useCallback(()=>{const $a=nanoid$1(5),Ma={id:$a,value:`new-choice-${$a}`,label:ga("New Choice")};fa(optionsAction$l("choices")({value:[...ua,Ma]}))},[ua,fa,ga]),Ca=reactExports.useCallback($a=>{fa(optionsAction$l("choices")({value:ua.filter(Ma=>Ma.id!==$a)}))},[ua,fa]),Sa=reactExports.useCallback(($a,Ma)=>{const Ia=Ma.toLowerCase().replace(/[^\w\s]/g,"").trim().replace(/\s+/g,"-"),Oa=ua.map(Da=>Da.id===$a?{...Da,value:Ia,label:Ma}:Da);fa(optionsAction$l("choices")({value:Oa}))},[ua,fa]),wa=reactExports.useCallback(($a,Ma)=>jsxRuntimeExports.jsx(EditableText$1,{value:Ma,elementTag:"span",isEditable:va&&!ca,onChange:Ia=>Sa($a,Ia)}),[va,ca,Sa]),ba=reactExports.useCallback($a=>{fa(optionsAction$l("choices")({value:$a}))},[fa]),Ea=reactExports.useCallback(($a,Ma)=>{const Ia=ua.map(Oa=>Oa.id===$a?{...Oa,"media:imageAsset":Ma}:Oa);fa(optionsAction$l("choices")({value:Ia}))},[ua,fa]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:ya,onElementClick:oa,...ea,transformToolConfig:ttConfig$2,className:`${ea.className} ${da}`,enableDnd:!va,...xa,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${da}`}),jsxRuntimeExports.jsx(MediaChoice,{...la,isActive:va,zoom:ma,itemComponent:EditorMediaChoiceItem$1,renderLabel:wa,onAddChoice:Aa,onRemove:Ca,onItemsChange:ba,updateMedia:Ea,addChoiceButtonText:ga("Add Choice")})]})}),Choice=dt$1(ChoiceLogic).withConfig({displayName:"MediaChoice__Choice",componentId:"sc-1wzdey1-0"})([""]);registerElement({type:"dpcMediaChoice",name:"Media Choice",component:Choice,optionControls:optionControls$7,initialStateValues:initialStateValues$7,defaultStateValues:defaultStateValues$7});const innerStyles$2={"dpc-items-container":{flex:{default:{rowGap:10,columnGap:10}}},"dpc-opinion-scale-item":{backgroundColor:{default:"#F6F6F6"},corner:getCornerValue(6),border:defaultBorder,boxShadow:defaultBoxShadow,typography:{default:{font:"Open sans",fontSize:26,fontVariant:"regular",color:"#000000",letterSpacing:0}},hover:{backgroundColor:{default:"#E8E8E8"}}},"dpc-item-selected":{typography:{default:{font:"Open sans",fontSize:26,fontVariant:"regular",color:"#000000",letterSpacing:0}},backgroundColor:{default:"#F6F6F6"},border:{default:{enable:!0,color:"#000",style:"solid",top:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},right:{value:2,unit:"px"},link:!0}},boxShadow:{default:{enable:!1,color:"#000",inset:!1,offsetX:0,offsetY:0,blur:0,spread:0}}},"dpc-labels-container":{typography:{default:{font:"Open sans",fontSize:18,fontVariant:"regular",color:"#000000",letterSpacing:0}}}},options$6={start:1,end:10,columnsGap:10,itemMinWidth:30},defaultStateValues$6={...elementDefaultCommonState,innerStyles:innerStyles$2,options:options$6},initialStateValues$6={innerStyles:innerStyles$2,options:options$6},OpinionScaleItem=ea=>{const{className:na="dpc-opinion-scale-item",value:ra,selected:oa,onClick:aa}=ea;return jsxRuntimeExports.jsx("div",{className:`${na} ${oa?"dpc-item-selected":""}`,onMouseDown:()=>aa?.(ra),children:ra})},SvgIndicator=ea=>reactExports.createElement("svg",{height:8,width:7,className:"shouldFlipIfRtl",...ea},reactExports.createElement("path",{d:"M5 3.5v1.001H-.002v-1z"}),reactExports.createElement("path",{d:"M4.998 4L2.495 1.477 3.2.782 6.416 4 3.199 7.252l-.704-.709z"})),OpinionScale$2=ea=>{const{className:na="dpc-opinion-scale",start:ra,end:oa,displayLabels:aa=!1,leftLabel:sa="Low",rightLabel:la="High",centerLabel:ca="Neutral",name:ua,itemMinWidth:da,breakpoint:pa,renderLabel:ha,formId:ga,onChange:fa}=ea,[ma,va]=reactExports.useState(null),xa=[...Array(parseInt(oa,10)-parseInt(ra,10)+1).keys().map(Sa=>Sa+parseInt(ra,10))],ya=reactExports.useCallback(Sa=>{va(Sa),fa?.(Sa.toString())},[fa]),Aa=reactExports.useCallback(Sa=>jsxRuntimeExports.jsx(OpinionScaleItem,{value:Sa,selected:ma===Sa,onClick:ya},Sa),[ya,ma]),Ca={gridTemplateColumns:`repeat(auto-fit, minmax(${da}px, 1fr))`};return jsxRuntimeExports.jsxs("div",{className:`${na} ${na}-${pa}`,children:[jsxRuntimeExports.jsx("div",{className:"dpc-items-container",style:Ca,children:xa.map(Aa)}),aa&&jsxRuntimeExports.jsxs("div",{className:"dpc-labels-container",children:[jsxRuntimeExports.jsxs("span",{className:"dpc-item-text",children:[jsxRuntimeExports.jsxs("span",{className:"dpc-text-indicator",children:[ra," ",jsxRuntimeExports.jsx(SvgIndicator,{})]}),ha?.("leftLabel",sa,"")||sa]}),jsxRuntimeExports.jsxs("span",{className:"dpc-item-text",children:[jsxRuntimeExports.jsxs("span",{className:"dpc-text-indicator",children:[Math.ceil(xa.length/2)," ",jsxRuntimeExports.jsx(SvgIndicator,{})]}),ha?.("centerLabel",ca,"")||ca]}),jsxRuntimeExports.jsxs("span",{className:"dpc-item-text",children:[jsxRuntimeExports.jsxs("span",{className:"dpc-text-indicator",children:[oa," ",jsxRuntimeExports.jsx(SvgIndicator,{})]}),ha?.("rightLabel",la,"")||la]})]}),jsxRuntimeExports.jsx("input",{form:ga,type:"hidden",name:ua,value:ma??"",readOnly:!0})]})},optionsSelector$l=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$k=updateSelectedElementsValueByPathAndPrefix("options"),itemStyleSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-opinion-scale-item"),itemStyleAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-opinion-scale-item"),selectedItemStyleSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-item-selected"),selectedItemStyleAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-item-selected"),opinionScaleOptions=[{id:"opinionScaleOptions",label:i18next.t("Options"),border:"bottom",optionControls:[[inputNameOptionControl],[requiredOptionControl],[requiredOptionNotice],[createOptionControl({id:"opinionScaleStart",control:Select$1,label:i18next.t("Start"),selector:optionsSelector$l("start"),action:optionsAction$k("start"),controlProps:{options:[{value:"0",label:"0"},{value:"1",label:"1"}]},styles:{flex:.5}}),createOptionControl({id:"opinionScaleEnd",control:Select$1,label:i18next.t("End"),selector:optionsSelector$l("end"),action:optionsAction$k("end"),controlProps:{options:[{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"}]},styles:{flex:.5}})],[createOptionControl({id:"displayLabels",control:SwitchBox$1,controlProps:{label:i18next.t("Display Labels")},selector:optionsSelector$l("displayLabels"),action:optionsAction$k("displayLabels")})]]}],opinionScaleStylesOptionControls=[{id:"itemStyles",label:i18next.t("Item Styles"),border:"bottom",optionControls:[[createOptionControl({id:"itemLabelTypography",control:CompactTypography$1,selector:itemStyleSelector("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","textAlignmentRTL","lineHeight"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-opinion-scale-item.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-opinion-scale-item.typography")}})],[createOptionControl({id:"itemBackgroundColor",label:i18next.t("Background"),control:ColorPicker$1,controlProps:{showHex:!0},selector:itemStyleSelector("backgroundColor"),action:itemStyleAction("backgroundColor")})],[createOptionControl({id:"itemCorner",label:i18next.t("Corner"),control:BoxEdgeSizing$1,selector:itemStyleSelector("corner"),action:itemStyleAction("corner")})],[createOptionControl({id:"itemBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:itemStyleAction,selector:itemStyleSelector})},hideOnIntersection:!0,selector:itemStyleSelector("border.enable"),action:itemStyleAction("border.enable")})],[createOptionControl({id:"itemBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:itemStyleAction,selector:itemStyleSelector})},hideOnIntersection:!0,selector:itemStyleSelector("boxShadow.enable"),action:itemStyleAction("boxShadow.enable")})],[createOptionControl({id:"itemSpaceBetweenItems",control:Number$2,label:i18next.t("Columns Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-items-container")("flex.columnGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-items-container")("flex.columnGap"),controlProps:{units:"px"},styles:{flex:.5}}),createOptionControl({id:"itemSpaceBetweenRows",control:Number$2,label:i18next.t("Rows Space"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-items-container")("flex.rowGap"),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-items-container")("flex.rowGap"),controlProps:{units:"px"},styles:{flex:.5}})],[createOptionControl({id:"itemMinWidth",control:Number$2,label:i18next.t("Min width"),defaultValue:30,selector:optionsSelector$l("itemMinWidth"),action:optionsAction$k("itemMinWidth"),controlProps:{units:"px"},styles:{flex:.5}})]]}],selectedOpinionScaleStylesOptionControls=[{id:"selectedItemStyles",label:i18next.t("Selected Item Styles"),border:"bottom",optionControls:[[createOptionControl({id:"selectedItemLabelTypography",control:CompactTypography$1,selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-item-selected")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","textAlignmentRTL","lineHeight"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-item-selected.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-item-selected.typography")}})],[createOptionControl({id:"selectedItemBackgroundColor",label:i18next.t("Background"),control:ColorPicker$1,controlProps:{showHex:!0},selector:selectedItemStyleSelector("backgroundColor"),action:selectedItemStyleAction("backgroundColor")})],[createOptionControl({id:"selectedItemBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Border")},optionControls:borderStylesPopoverControls({action:selectedItemStyleAction,selector:selectedItemStyleSelector})},hideOnIntersection:!0,selector:selectedItemStyleSelector("border.enable"),action:selectedItemStyleAction("border.enable")})],[createOptionControl({id:"selectedItemBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:selectedItemStyleAction,selector:selectedItemStyleSelector})},hideOnIntersection:!0,selector:selectedItemStyleSelector("boxShadow.enable"),action:selectedItemStyleAction("boxShadow.enable")})]]}],opLabelStylesOptionControls=[{id:"labelsStyle",label:i18next.t("Label"),border:"bottom",optionControls:[[createOptionControl({id:"labelTypography",control:CompactTypography$1,selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-labels-container")("typography"),controlProps:{modifyOptionControls:ea=>excludeControls(ea,["textWrap","textDirection","textAlignment","textAlignmentRTL","lineHeight"]),action:updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-labels-container.typography"),selector:getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-labels-container.typography")},dependency:ea=>optionsSelector$l("displayLabels")(ea)})]]}],osItemHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"itemHoverBackgroundColor",control:ColorPicker$1,controlProps:{showHex:!0,showAlpha:!0,allowedType:"solid"},label:i18next.t("Item Background Color"),selector:itemStyleSelector("hover.backgroundColor"),action:itemStyleAction("hover.backgroundColor"),disabledWhen:na=>!getSelectedElementsValueByPathAndPrefix("styles.hover")("enable")(na)})]],"hoverStyles",0))(elementHoverStylesOptionControls),optionControls$6=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...opinionScaleOptions,...opinionScaleStylesOptionControls,...selectedOpinionScaleStylesOptionControls,...opLabelStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...osItemHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],optionsAction$j=updateSelectedElementsValueByPathAndPrefix("options"),OpinionScaleLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,styles:aa,innerStyles:sa,options:la,locked:ca}=ea,ua=useUniqueClassName(),da=useTypography(aa?.typography),pa=useIsSelected(ra),ha=useDispatchAndToHistory(),ga=useSelector(getActiveBreakpoint),{isActive:fa,...ma}=useActiveOnClick(ra,!ca,pa,void 0,{offAbles:["draggable"]},defaultTransformToolConfig),va={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...da,...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},xa=reactExports.useCallback((Aa,Ca)=>{ha(optionsAction$j(Aa)({value:Ca}))},[ha]),ya=reactExports.useCallback((Aa,Ca,Sa)=>jsxRuntimeExports.jsx(PartialEditableText$1,{editable:fa&&!ca,className:Sa,value:Ca,removeStaticElementEdit:!0,onChange:wa=>xa(Aa,wa)}),[fa,ca,xa]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:va,onElementClick:oa,...ea,className:`${ea.className} ${ua} ${fa?"is-active":""}`,...ma,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${ua}`}),jsxRuntimeExports.jsx(OpinionScale$2,{...la,renderLabel:ya,breakpoint:ga})]})}),OpinionScale$1=dt$1(OpinionScaleLogic).withConfig({displayName:"OpinionScale",componentId:"sc-s8haui-0"})(["","{cursor:inherit;}.dpc-opinion-scale-item{pointer-events:none;}&.is-active{.dpc-opinion-scale-item{pointer-events:auto;}}"],PartialEditableText$1);registerElement({type:"dpcOpinionScale",name:"Opinion Scale",component:OpinionScale$1,optionControls:optionControls$6,initialStateValues:initialStateValues$6,defaultStateValues:defaultStateValues$6});const optionsSelector$k=getSelectedElementsValueByPathAndPrefix("options"),inputOptions=optionControlsPipe(ea=>modifyFieldset(ea,"inputOptions",{border:"bottom"}),ea=>addRowToFieldsetByTargetAndIndex(ea,[requiredOptionNotice],"inputOptions",4),ea=>modifyControl(ea,"requiredNotice",{dependency:optionsSelector$k("attributes.required")}))(inputOptionsList),inputStyles=optionControlsPipe(ea=>modifyControl(ea,"labelTypography",{dependency:na=>optionsSelector$k("showLabel")(na)}),ea=>modifyControl(ea,"descriptionTypography",{dependency:na=>optionsSelector$k("showDescription")(na)}))(inputStylesOptionControls),optionControls$5=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...inputPositionAndSizingOptions$1,...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...inputOptions,...inputStyles]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:elementHoverStylesOptionControls},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],inputInnerStyles$1={...inputDefaultInnerStyles,"depicter-text-input":{padding:{default:{...defaultStyles?.padding?.default,link:!0,top:{value:16,unit:"px"},right:{value:16,unit:"px"},bottom:{value:16,unit:"px"},left:{value:16,unit:"px"}}},boxShadow:defaultStyles?.boxShadow,backgroundColor:{default:"#F3F3F3"},typography:{default:{...defaultStyles?.typography?.default,fontSize:24,color:"#000000",font:"Open Sans",fontVariant:"regular"}},border:{default:{...defaultStyles?.border?.default,enable:!0,style:"solid",color:"#D5D5D5",top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"}}},corner:{default:{...defaultStyles?.corner?.default,link:!0,topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"}}}}},defaultStateValues$5={...defaultStateValues$c,innerStyles:{...inputInnerStyles$1}},initialStateValues$5={...initialStateValues$c,innerStyles:{...inputInnerStyles$1}};registerElement({type:"survey:input",name:"Input",component:ea=>jsxRuntimeExports.jsx(InputElement,{...ea,extraInnerStyleClassName:".depicter-form-field"}),optionControls:optionControls$5,initialStateValues:initialStateValues$5,defaultStateValues:defaultStateValues$5});const innerStyles$1={},options$5={},defaultStateValues$4={...elementDefaultCommonState,innerStyles:innerStyles$1,options:options$5},initialStateValues$4={innerStyles:innerStyles$1,options:options$5},errorMessageElementStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementTextStylesOptionControls,["textShadow"]),"stylesGroup#2",1))(elementStylesOptionControls),errorMessageElementHoverStylesOptionControls=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextColor"]),"hoverStyles",0),ea=>addRowToFieldsetByTargetAndIndex(ea,getControlsByIds(elementHoverTextStylesOptionControls,["hoverTextShadow"]),"hoverStyles",3))(elementHoverStylesOptionControls),errorMessageOptionsList=[{id:"errorMessageOptions",optionControls:[[createOptionControl({id:"errorMessageNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("This error message just show when survey step has error"),variant:"boxed"}})]],border:"bottom"}],errorMessageElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...errorMessageOptionsList,...elementLayoutStylesOptionControls,...elementTypographyOptionControls,...errorMessageElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...errorMessageElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],ErrorIcon="data:image/svg+xml,%3csvg%20width='20'%20height='18'%20viewBox='0%200%2020%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.06516%201.25C8.83496%20-0.0833333%2010.7595%20-0.0833333%2011.5293%201.25L19.3235%2014.75C20.0933%2016.0833%2019.131%2017.75%2017.5914%2017.75H2.00298C0.463383%2017.75%20-0.498867%2016.0833%200.270933%2014.75L8.06516%201.25Z'%20fill='%23F1534B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%204C10.8284%204%2011.5%204.67157%2011.5%205.5V10.5C11.5%2011.3284%2010.8284%2012%2010%2012C9.17157%2012%208.5%2011.3284%208.5%2010.5V5.5C8.5%204.67157%209.17157%204%2010%204Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2013C10.8284%2013%2011.5%2013.6716%2011.5%2014.5C11.5%2015.3284%2010.8284%2016%2010%2016C9.17157%2016%208.5%2015.3284%208.5%2014.5C8.5%2013.6716%209.17157%2013%2010%2013Z'%20fill='white'/%3e%3c/svg%3e",ttConfig$1={offAbles:[],offDirections:[]},ErrorMessageLogic=React.forwardRef((ea,na)=>{const{id:ra,onClick:oa,styles:aa,innerStyles:sa,options:la,locked:ca}=ea,{content:ua}=la||{},da=useUniqueClassName(),pa=useTypography(aa?.typography),ha=useIsSelected(ra),ga=useDispatchAndToHistory(),{isActive:fa,...ma}=useActiveOnClick(ra,!ca,ha,void 0,{offAbles:["draggable"]},ttConfig$1),va={...useBorder(aa?.border),...useCorner(aa?.corner),...useBoxShadow(aa?.boxShadow),...useOpacity(aa?.opacity),...useTextShadow(aa?.textShadow),...useBackgroundColor(aa?.backgroundColor),...pa,...usePadding(aa?.padding),...useFlexStyles(aa?.flex)},xa=reactExports.useCallback(ya=>{ga(updateElement({id:ra,values:{options:{content:ya}}}))},[ga,ra]);return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:va,onElementClick:oa,enableDnd:!fa,transformToolConfig:ttConfig$1,...ea,...ma,className:`${ea.className} ${da}`,children:[sa&&jsxRuntimeExports.jsx(InnerStyles,{styles:sa,baseSelector:`.${da}`}),jsxRuntimeExports.jsx(Icon$4,{shape:ErrorIcon}),jsxRuntimeExports.jsx(EditableText$1,{value:ua,elementTag:"span",isEditable:fa&&!ca,onChange:ya=>{xa(ya)}})]})}),ErrorMessage$2=dt$1(ErrorMessageLogic).withConfig({displayName:"ErrorMessage",componentId:"sc-vdg7ir-0"})(["",",","{display:inline-block;}","{line-height:100%;vertical-align:middle;margin-right:7px;}","{vertical-align:middle;}"],Icon$4,EditableText$1,Icon$4,EditableText$1);registerElement({type:"survey:errorMessage",name:"Survey Error Message",component:ErrorMessage$2,optionControls:errorMessageElementOptionControls,initialStateValues:initialStateValues$4,defaultStateValues:defaultStateValues$4,icon:SvgText});const buttonOptions=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[createOptionControl({id:"surveySubmitButtonNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("Submit button only appears in the last step of the survey."),variant:"boxed"},styles:{marginBottom:"10px"}})],"buttonOptions",0))(iconOptions),optionTabControls=optionControlsPipe(ea=>excludeControls(ea,["elementForeground","elementVisibility"]))(elementOptionsOptionControls()),buttonElementOptionControls$2=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...buttonOptions,...elementTypographyOptionControls,...buttonElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...optionTabControls]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...buttonElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}];registerElement({type:"survey:submit",name:"Survey Submit",component:ButtonElement,optionControls:buttonElementOptionControls$2,initialStateValues:initialStateValues$m,defaultStateValues:defaultStateValues$m,icon:SvgButton});const optionsSelector$j=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$i=updateSelectedElementsValueByPathAndPrefix("options"),nextButtonOptions$1=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"toggleToSubmit",control:SwitchBox$1,controlProps:{label:i18next.t("Auto submit"),tooltip:{content:i18next.t("It changes the button to a submit button at the last survey step"),options:{place:"top",id:"workspace"}}},selector:optionsSelector$j("toggleToSubmit"),action:optionsAction$i("toggleToSubmit")})],[createOptionControl({id:"removeIconOnSubmit",control:SwitchBox$1,controlProps:{label:i18next.t("Remove Icon on Submit")},selector:optionsSelector$j("removeIconOnSubmit"),action:optionsAction$i("removeIconOnSubmit"),dependency:na=>optionsSelector$j("toggleToSubmit")(na)})],[createOptionControl({id:"submitContent",label:i18next.t("Submit Content"),control:Input$2,controlProps:{variant:"small"},selector:optionsSelector$j("submitContent"),action:optionsAction$i("submitContent"),dependency:na=>optionsSelector$j("toggleToSubmit")(na)})]],"buttonOptions",0))(buttonOptions$1),buttonElementOptionControls$1=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...nextButtonOptions$1,...elementTypographyOptionControls,...buttonElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...optionTabControls$1]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...buttonElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$3={...defaultStateValues$m,options:{...initialStateValues$m.options,submitContent:i18next.t("Submit"),toggleToSubmit:!0,removeIconOnSubmit:!0}},initialStateValues$3={...initialStateValues$m,options:{...initialStateValues$m.options,submitContent:i18next.t("Submit"),toggleToSubmit:!0,removeIconOnSubmit:!0}};registerElement({type:"survey:next",name:"Button",component:ButtonElement,optionControls:buttonElementOptionControls$1,initialStateValues:initialStateValues$3,defaultStateValues:defaultStateValues$3,icon:SvgButton});registerElement({type:"survey:prev",name:"Button",component:ButtonElement,optionControls:buttonElementOptionControls$3,initialStateValues:initialStateValues$m,defaultStateValues:defaultStateValues$m,icon:SvgButton});const innerStyles={"dpc-progress-indicator-bar":{backgroundColor:{default:"#000"}}},options$4={},defaultStateValues$2={...elementDefaultCommonState,innerStyles,options:options$4},initialStateValues$2={innerStyles,options:options$4},ProgressIndicator$2=ea=>{const{className:na="dpc-progress-indicator",totalSteps:ra,activeStep:oa}=ea,aa={width:`${oa/ra*100}%`};return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx("div",{className:"dpc-progress-indicator-bar",style:aa})})},barSelector=getSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-indicator-bar"),barAction=updateSelectedElementsValueByPathAndPrefix("innerStyles.dpc-progress-indicator-bar"),progressIndicatorElementPositionOptionControls=optionControlsPipe(ea=>excludeControls(ea,["elementAspectRatio"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[elementResetPosition],"elementPosition",2),ea=>modifyControl(ea,"width",{styles:{flex:"0 0 105px"}}),ea=>modifyControl(ea,"elementResetPosition",{controlProps:{vertical:!0}}))(elementPositionOptionControls()),progressIndicatorLayerStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["blendingMode"]))(elementLayerStyles),progressIndicatorStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["filter","padding"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"progressBarColor",label:i18next.t("Progress bar color"),control:ColorPicker$1,controlProps:{showHex:!1},selector:barSelector("backgroundColor"),action:barAction("backgroundColor")})]],"stylesGroup#1",1))(elementStylesOptionControls),progressIndicatorHoverStylesOptionControls=optionControlsPipe(ea=>excludeControls(ea,["hoverBackgroundColor","hoverBorderColor"]))(elementHoverStylesOptionControls),progressIndicatorElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...progressIndicatorElementPositionOptionControls,...elementArrangeOptionControls(),...progressIndicatorLayerStylesOptionControls,...elementLayoutStylesOptionControls,...progressIndicatorStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...progressIndicatorHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],ttConfig={offAbles:[],offDirections:[]},ProgressIndicatorLogic=React.forwardRef((ea,na)=>{const{onClick:ra,styles:oa,innerStyles:aa,options:sa}=ea,la=useUniqueClassName(),ca=useTypography(oa?.typography),ua=useSelector(getSectionsList),da=useSelector(getActiveSectionIndex),pa={...useBorder(oa?.border),...useCorner(oa?.corner),...useBoxShadow(oa?.boxShadow),...useOpacity(oa?.opacity),...useTextShadow(oa?.textShadow),...useBackgroundColor(oa?.backgroundColor),...ca,...usePadding(oa?.padding),...useFlexStyles(oa?.flex)};return jsxRuntimeExports.jsxs(BaseElement$1,{ref:na,contentStyle:pa,onElementClick:ra,...ea,transformToolConfig:ttConfig,className:`${ea.className} ${la}`,children:[aa&&jsxRuntimeExports.jsx(InnerStyles,{styles:aa,baseSelector:`.${la}`}),jsxRuntimeExports.jsx(ProgressIndicator$2,{...sa,totalSteps:ua.length-1,activeStep:da})]})}),ProgressIndicator$1=dt$1(ProgressIndicatorLogic).withConfig({displayName:"ProgressIndicator",componentId:"sc-1sjis06-0"})([""]);registerElement({type:"dpcProgressIndicator",name:"Progress Indicator",component:ProgressIndicator$1,optionControls:progressIndicatorElementOptionControls,initialStateValues:initialStateValues$2,defaultStateValues:defaultStateValues$2,icon:SvgControl});const optionsSelector$i=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$h=updateSelectedElementsValueByPathAndPrefix("options"),nextButtonOptions=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[createOptionControl({id:"redirectToCart",control:SwitchBox$1,controlProps:{label:i18next.t("Use Ajax Add to cart"),tooltip:{content:i18next.t("It will add the product with ajax"),options:{place:"top",id:"workspace"}}},selector:optionsSelector$i("useAjax"),action:optionsAction$h("useAjax")})]],"buttonOptions",-1))(buttonOptions$1),buttonElementOptionControls=[{id:"design",label:i18next.t("Design"),icon:SvgDesign,optionControls:[...elementPositionOptionControls(),...elementArrangeOptionControls(),...elementLayerStyles,...elementLayoutStylesOptionControls,...nextButtonOptions,...elementTypographyOptionControls,...buttonElementStylesOptionControls]},{id:"options",label:i18next.t("Options"),icon:SvgOptions$1,optionControls:[...elementOptionsOptionControls()]},{id:"hover",label:i18next.t("Hover"),icon:SvgHover,optionControls:[...buttonElementHoverStylesOptionControls]},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:[createOptionControl({id:"elementAnimation",hideOnIntersection:!0,control:AnimationOptions,controlProps:{action:updateActiveAnimation,selector:getActiveAnimationByPath}})]},{id:"action",label:i18next.t("Action"),icon:SvgAction,optionControls:[...elementActionOptionControls()]}],defaultStateValues$1={...defaultStateValues$m,options:{...initialStateValues$m.options,content:i18next.t("Add to cart"),cartPageLabel:i18next.t("View Cart")}},initialStateValues$1={...initialStateValues$m,options:{...initialStateValues$m.options,content:i18next.t("Add to cart"),cartPageLabel:i18next.t("View Cart")}};registerElement({type:"wooAddToCart",name:"Add to Cart Button",component:ea=>jsxRuntimeExports.jsx(ButtonElement,{...ea}),optionControls:buttonElementOptionControls,initialStateValues:initialStateValues$1,defaultStateValues:defaultStateValues$1});registerElement({type:"wooSaleBadge",name:"Sale Badge",component:ButtonElement,optionControls:buttonElementOptionControls$3,defaultStateValues:defaultStateValues$m,initialStateValues:initialStateValues$m});const HiddenInputSource=({className:ea,options:na=[],value:ra,...oa})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Select$1,{options:na,value:ra,...oa}),jsxRuntimeExports.jsx(LabelWithIcon$1,{variant:"boxed",children:na.find(aa=>aa.value===ra)?.description})]}),HiddenInputSource$1=dt$1(HiddenInputSource).withConfig({displayName:"HiddenInputSource",componentId:"sc-1ajn2u4-0"})(["display:flex;gap:10px;flex-direction:column;","{white-space:pre-line;}"],LabelWithIcon$1),optionsSelector$h=getSelectedElementsValueByPathAndPrefix("options"),optionsAction$g=updateSelectedElementsValueByPathAndPrefix("options"),inputNameOption=createOptionControl({id:"inputHiddenName",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., product_id, user_token")},label:i18next.t("Field Name"),tooltip:{content:i18next.t("The unique identifier for this hidden field. This will be the name attribute of the input element and the key used when the form is submitted."),options:{id:"workspace"}},selector:optionsSelector$h("name"),action:optionsAction$g("name")}),inputSourceOptions=createOptionControl({id:"inputHiddenSource",control:HiddenInputSource$1,label:i18next.t("Value Source"),tooltip:{content:i18next.t("Choose how the hidden field gets its value. The field can use a static value or dynamically retrieve data from various sources."),options:{id:"workspace"}},controlProps:{options:[{value:"static",label:i18next.t("Static Value"),description:i18next.t(`Use a fixed, predefined value that never changes.

Best for: Product IDs, configuration values, or any constant data.

Example: "product_123" or "vip_customer"`)},{value:"query",label:i18next.t("URL Query Parameter"),description:i18next.t(`Extract value from the current page URL parameters.

Best for: Referral codes, campaign tracking, or user-specific data passed via URL.

Example: ?ref=partner123 → reads "partner123"`)},{value:"localStorage",label:i18next.t("Local Storage"),description:i18next.t(`Retrieve value from browser's local storage (persists across sessions).

Best for: User preferences, saved settings, or long-term data storage.

Example: user_preferences, theme_settings`)},{value:"sessionStorage",label:i18next.t("Session Storage"),description:i18next.t(`Retrieve value from browser's session storage (cleared when tab closes).

Best for: Temporary data, cart tokens, or session-specific information.

Example: cart_token, temp_user_id`)},{value:"cookie",label:i18next.t("Browser Cookie"),description:i18next.t(`Read value from a browser cookie.

Best for: Tracking IDs, authentication tokens, or data that needs to persist across browser sessions.

Example: tracking_id, auth_token`)},{value:"globalVariable",label:i18next.t("Global JavaScript Variable"),description:i18next.t(`Access a variable from the global JavaScript scope (without window prefix).

Best for: Configuration objects, app state, or variables set by other scripts.

Example: CONFIG.apiKey, APP.user.authToken, SITE_SETTINGS.theme`)}]},selector:optionsSelector$h("source"),action:optionsAction$g("source")}),inputStaticValueOption=createOptionControl({id:"inputHiddenStaticValue",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("Enter the static value")},label:i18next.t("Static Value"),tooltip:{content:i18next.t("Enter the exact value that will be submitted with the form. This value will be constant and never change."),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="static"}),inputQueryKeyOption=createOptionControl({id:"inputHiddenQueryKey",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., ref, campaign, utm_source")},label:i18next.t("Query Parameter Name"),tooltip:{content:i18next.t('The name of the URL parameter to extract the value from. For example, if your URL is "?ref=partner123", enter "ref" to get "partner123".'),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="query"}),inputLocalStorageKeyOption=createOptionControl({id:"inputHiddenLocalStorageKey",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., user_preferences, theme_settings")},label:i18next.t("Local Storage Key"),tooltip:{content:i18next.t("The key used to store the value in localStorage. This data persists across browser sessions until manually cleared."),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="localStorage"}),inputSessionStorageKeyOption=createOptionControl({id:"inputHiddenSessionStorageKey",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., cart_token, temp_user_id")},label:i18next.t("Session Storage Key"),tooltip:{content:i18next.t("The key used to store the value in sessionStorage. This data is cleared when the browser tab is closed."),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="sessionStorage"}),inputCookieKeyOption=createOptionControl({id:"inputHiddenCookieKey",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., tracking_id, auth_token")},label:i18next.t("Cookie Name"),tooltip:{content:i18next.t("The name of the cookie to read the value from. Cookies persist across browser sessions and can be set by your server or client-side code."),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="cookie"}),inputGlobalVariableKeyOption=createOptionControl({id:"inputHiddenGlobalVariableKey",control:Input$2,controlProps:{variant:"small",placeholder:i18next.t("e.g., CONFIG.apiKey, APP.user.authToken")},label:i18next.t("Global Variable Path"),tooltip:{content:i18next.t('The path to the global variable (without "window." prefix). Use dot notation for nested properties. For example: "CONFIG.apiKey" or "APP.user.authToken".'),options:{id:"workspace"}},selector:optionsSelector$h("sourceKey"),action:optionsAction$g("sourceKey"),dependency:ea=>optionsSelector$h("source")(ea)==="globalVariable"}),optionControls$4=[{id:"options",label:i18next.t("Hidden Input Configuration"),icon:SvgOptions$1,optionControls:[{id:"inputHiddenOptions",optionControls:[[inputNameOption],[inputSourceOptions],[inputStaticValueOption],[inputQueryKeyOption],[inputLocalStorageKeyOption],[inputSessionStorageKeyOption],[inputCookieKeyOption],[inputGlobalVariableKeyOption]]}]}],inputInnerStyles={},defaultStateValues={size:{default:{width:{value:100,unit:"%"},height:"auto"}},innerStyles:{...inputInnerStyles},options:{name:"hiddenInput",source:"static"}},initialStateValues={size:{default:{width:{value:100,unit:"%"},height:"auto"}},innerStyles:{...inputInnerStyles},options:{name:"hiddenInput",source:"static"}},transformToolConfig={offDirections:["n","s","ne","nw","se","sw","w","e"],offAbles:["rotatable"]},Container$F=dt$1.div.withConfig({displayName:"HiddenInput__Container",componentId:"sc-3iwtm1-0"})([""]),InfoContainer=dt$1.div.withConfig({displayName:"HiddenInput__InfoContainer",componentId:"sc-3iwtm1-1"})([""]),FieldName=dt$1.div.withConfig({displayName:"HiddenInput__FieldName",componentId:"sc-3iwtm1-2"})([""]),SourceLabel=dt$1.span.withConfig({displayName:"HiddenInput__SourceLabel",componentId:"sc-3iwtm1-3"})([""]),SourceValue=dt$1.span.withConfig({displayName:"HiddenInput__SourceValue",componentId:"sc-3iwtm1-4"})([""]),HiddenInputElementLogic=React.forwardRef((ea,na)=>{const{onClick:ra,id:oa,locked:aa,options:sa}=ea,la=useUniqueClassName(),ca=useIsSelected(oa),{isActive:ua,...da}=useActiveOnClick(oa,!aa,ca,void 0,{offAbles:["draggable"]},{offAbles:void 0}),ha=(()=>{const fa=sa?.source||"static",ma=sa?.sourceKey||"";switch(fa){case"static":return{label:"Static Value: ",value:ma||"Not set",color:"#6a6a6a"};case"query":return{label:"Query Param: ",value:ma?`?${ma}=...`:"Not set",color:"#6a6a6a"};case"localStorage":return{label:"LocalStorage: ",value:ma||"Not set",color:"#6a6a6a"};case"sessionStorage":return{label:"SessionStorage: ",value:ma||"Not set",color:"#6a6a6a"};case"cookie":return{label:"Cookie: ",value:ma||"Not set",color:"#6a6a6a"};case"globalVariable":return{label:"Global Var: ",value:ma||"Not set",color:"#6a6a6a"};default:return{label:"Source: ",value:"Not configured",color:"#6a6a6a"}}})(),ga=sa?.name||"hiddenInput";return jsxRuntimeExports.jsx(BaseElement$1,{ref:fa=>{assignRef$1(fa,na)},onElementClick:ra,transformToolConfig,...ea,className:`${ea.className} ${la} dp-not-sortable-element`,...da,enableDnd:!1,children:jsxRuntimeExports.jsxs(Container$F,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgHiddenEye}),jsxRuntimeExports.jsx(InfoContainer,{children:jsxRuntimeExports.jsxs(FieldName,{children:[toReadable(ga),jsxRuntimeExports.jsx("span",{style:{color:"#6a6a6a",margin:"0 4px"},children:"|"}),jsxRuntimeExports.jsx(SourceLabel,{children:ha.label}),jsxRuntimeExports.jsx(SourceValue,{style:{color:"#6a6a6a"},children:ha.value})]})})]})})}),HiddenInput=dt$1(HiddenInputElementLogic).withConfig({displayName:"HiddenInput",componentId:"sc-3iwtm1-5"})(["","{display:flex;align-items:center;border:2px dashed #c9c9c9;border-radius:5px;padding:8px 10px;gap:8px;min-height:40px;}","{fill:#6a6a6a;flex-shrink:0;}","{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}","{font-weight:600;font-size:14px;color:#000000;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;}","{color:#6a6a6a;font-weight:500;white-space:nowrap;font-size:12px;}","{font-weight:500;white-space:nowrap;overflow:hidden;margin-left:4px;text-overflow:ellipsis;max-width:120px;font-size:12px;}"],Container$F,Icon$4,InfoContainer,FieldName,SourceLabel,SourceValue);registerElement({type:"hiddenInput",name:"Hidden Input",component:HiddenInput,optionControls:optionControls$4,initialStateValues,defaultStateValues});const useOpenPreview=()=>{const ea=useSelector(getDocumentName),{addToModalsStack:na}=useModal();let ra=useSelector(getActiveSectionIndex);const oa=useSelector(getActiveBreakpoint),aa=usePosthogCaptureCallback();return DocType.type==="survey"&&(ra=0),reactExports.useCallback(()=>{na([{id:"preview",options:{title:ea,url:`${documentAPI().getPreviewSrc("draft")}&startSection=${ra}`,breakpoint:oa,breakpointBoxes:orderedBreakpointBoxes,backgroundPreviewSrc:DocType.configs.previewBackgroundSrc,documentType:DocType.type}}]),aa("open_preview_editor",{with:"preview_button"})},[ra,oa,ea,na,aa])},SvgAlert=ea=>reactExports.createElement("svg",{id:"notification",xmlns:"http://www.w3.org/2000/svg",width:16,height:18,viewBox:"0 0 16 18",...ea},reactExports.createElement("path",{id:"Rectangle_504","data-name":"Rectangle 504",d:"M6,0H6a6,6,0,0,1,6,6v5a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V6A6,6,0,0,1,6,0Z",transform:"translate(2 2)"}),reactExports.createElement("rect",{id:"Rectangle_507","data-name":"Rectangle 507",width:16,height:2,rx:1,transform:"translate(0 13)"}),reactExports.createElement("path",{id:"Rectangle_505","data-name":"Rectangle 505",d:"M2,0H2A2,2,0,0,1,4,2V6A0,0,0,0,1,4,6H0A0,0,0,0,1,0,6V2A2,2,0,0,1,2,0Z",transform:"translate(6)"}),reactExports.createElement("path",{id:"Rectangle_506","data-name":"Rectangle 506",d:"M0,0H4A0,0,0,0,1,4,0V0A2,2,0,0,1,2,2H2A2,2,0,0,1,0,0V0A0,0,0,0,1,0,0Z",transform:"translate(6 16)"})),defaultColors$1t={background:"#222222",border:"#6A6A6A",shadow:"rgba(0, 0, 0, 0.25)",icon:"rgba(170, 170, 170, 1)",iconHover:"#FFF",indicator:{background:"rgba(255, 80, 74, 1)",border:"#191919"},title:{color:"#FFF",border:"#6a6a6a"},item:{border:"#6a6a6a",imageContainer:"#191919",title:"#FFF",content:"#aaaaaa",date:"#6a6a6a",button:{color:"#4980F5"},unseen:{background:"rgba(73, 128, 245, 0.1)"}},highlighted:{background:"#222222",shadow:"rgba(0, 0, 0, 0.6)",border:"#000",color:"#FFF"}},colors$1t={dark:defaultColors$1t},defaultSizing$1e={title:{fontSize:"15px",fontWeight:"bold",lineHeight:"20px"},item:{button:{fontSize:"12px",fontWeight:"bold",lineHeight:"17px"},title:{fontSize:"12px",fontWeight:"bold",lineHeight:"17px"},content:{fontSize:"12px",fontWeight:"400",lineHeight:"17px"},date:{fontSize:"12px",fontWeight:"600",lineHeight:"17px"}},highlighted:{title:{fontSize:"14px",fontWeight:"bold",lineHeight:"19px"},content:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"}}},sizes$1t={default:defaultSizing$1e},scheme$16=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1t,sizes:sizes$1t},Symbol.toStringTag,{value:"Module"})),NotificationPanelUnseenIndicator=dt$1.span.withConfig({displayName:"NotificationPanelUnseenIndicator",componentId:"sc-1i1gws7-0"})([""]),theme$2G=withTheme(scheme$16),IndicatorBlink=mt$1(["0%,50%{opacity:1;transform:scale(1);}100%{opacity:0.7;transform:scale(0.85);}"]),NotificationPanelUnseenIndicator$1=dt$1(NotificationPanelUnseenIndicator).withConfig({displayName:"NotificationPanelUnseenIndicator",componentId:"sc-1i1gws7-1"})(["width:6px;height:6px;display:inline-block;border-radius:50%;position:relative;&::before{content:'';position:absolute;inset:0;display:block;border-radius:50%;}",""],theme$2G.colors(ea=>lt$1(["box-shadow:0 0 0 3px ",";background-color:",";&::before{background:",";animation:"," 0.6s infinite alternate;}"],ea.indicator.border,ea.indicator.border,ea.indicator.background,IndicatorBlink))),NotificationPanelHandler=({onClick:ea,hasUnseen:na,className:ra})=>jsxRuntimeExports.jsxs(IconButton,{onClick:ea,className:ra,children:[jsxRuntimeExports.jsx(SvgAlert,{}),na&&jsxRuntimeExports.jsx(NotificationPanelUnseenIndicator$1,{})]}),theme$2F=withTheme(scheme$16),BellIconRotate=mt$1(["0%{transform:rotate(0);}1%{transform:rotate(8.82deg);}3%{transform:rotate(-8.23deg);}5%{transform:rotate(9.996deg);}7%{transform:rotate(-9.408deg);}9%{transform:rotate(8.82deg);}11%{transform:rotate(-8.23deg);}13%{transform:rotate(7.644deg);}15%{transform:rotate(-7.056deg);}17%{transform:rotate(6.468deg);}19%{transform:rotate(-5.88deg);}21%{transform:rotate(5.292deg);}23%{transform:rotate(-4.704deg);}25%{transform:rotate(4.116deg);}27%{transform:rotate(-3.528deg);}29%{transform:rotate(2.94deg);}31%{transform:rotate(-2.352deg);}33%{transform:rotate(1.764deg);}35%{transform:rotate(-1.176deg);}37%{transform:rotate(0.588deg);}39%{transform:rotate(-0.294deg);}41%{transform:rotate(0.294deg);}43%,100%{transform:rotate(0);}"]),NotificationPanelHandler$1=dt$1(NotificationPanelHandler).withConfig({displayName:"NotificationPanelHandler",componentId:"sc-9iguly-0"})(["position:relative;padding:0;width:22px;","{position:absolute;top:10px;right:3px;}span{display:flex;align-items:center;}svg{transition:fill 150ms ease-out;transform-origin:top center;","}",""],NotificationPanelUnseenIndicator$1,({hasUnseen:ea})=>ea&&lt$1(["animation:"," 7s infinite;"],BellIconRotate),theme$2F.colors(ea=>lt$1(["&:hover svg{fill:",";}svg{fill:",";}"],ea.iconHover,ea.icon))),isNewerVersion=(ea,na)=>{const[ra=0,oa=0,aa=0]=ea.split(".").map(Number),[sa=0,la=0,ca=0]=na.split(".").map(Number);return ra>sa||ra===sa&&oa>la||ra===sa&&oa===la&&aa>ca},PrimaryButton=dt$1(SolidButton).attrs({size:"small"}).withConfig({displayName:"NotificationPanelItemButtons__PrimaryButton",componentId:"sc-pe8s66-0"})([""]),NotificationPanelItemButtons=({className:ea,variant:na,buttons:ra=[],onPreview:oa,onChangelog:aa})=>{const sa=na==="link"?SimpleLink:PrimaryButton,la=reactExports.useMemo(()=>{const ua=ra?.find(({url:da})=>da.startsWith("update:"));return ua&&!isNewerVersion(ua.url?.split(":")?.[1]||"0.0.0",browserEnv.updateInfo.to)?ra.filter(da=>da.url!==ua.url):ra},[ra]),ca=(ua,da)=>{const{label:pa,url:ha}=ua;if(ha.startsWith("changelog:")){const[,ga,fa]=ha.split(":");return jsxRuntimeExports.jsx(sa,{onClick:()=>aa?.({from:ga,to:fa}),children:pa},da)}if(ha.startsWith("update:"))return jsxRuntimeExports.jsx(sa,{href:browserEnv.updateInfo.url,target:"_blank",children:pa});if(ha.startsWith("template-preview:")){const[,ga,fa,ma,va]=ha.split(":");return jsxRuntimeExports.jsx(sa,{onClick:()=>oa?.({id:fa,name:ma,tier:ga,previewUrl:getTemplatePreviewByID(fa),type:va}),children:pa},da)}return jsxRuntimeExports.jsx(sa,{href:ha,target:"_blank",children:pa},da)};return jsxRuntimeExports.jsx("div",{className:ea,children:la.map(ca)})},NotificationPanelItemButtons$1=dt$1(NotificationPanelItemButtons).withConfig({displayName:"NotificationPanelItemButtons",componentId:"sc-pe8s66-1"})(["display:flex;align-items:center;gap:10px;","{padding:0;}"],SimpleLink),NotificationPanelItemMedia=ea=>{const{className:na,thumbnail:ra,video:oa}=ea,aa=oa?"video":ra?"image":null;return aa?jsxRuntimeExports.jsxs("div",{className:na,children:[aa==="image"&&jsxRuntimeExports.jsx(ImageBox$1,{src:ra,fitMode:"scale-down"}),aa==="video"&&jsxRuntimeExports.jsx(VideoPlayer$1,{url:oa,controls:!0})]}):null},NotificationPanelItemMedia$1=dt$1(NotificationPanelItemMedia).withConfig({displayName:"NotificationPanelItemMedia",componentId:"sc-qpyr56-0"})(["border-radius:5px;overflow:hidden;background-color:rgba(0,0,0,0.2);"," img{max-height:250px;}","{height:174px;background-color:#000;> div,> div > div{display:flex;}}"],ImageBox$1,VideoPlayer$1),Footer$2=dt$1.div.withConfig({displayName:"NotificationPanelItem__Footer",componentId:"sc-1bannlu-0"})([""]),Title$y=dt$1(Label$6).withConfig({displayName:"NotificationPanelItem__Title",componentId:"sc-1bannlu-1"})([""]),Content$d=dt$1.div.withConfig({displayName:"NotificationPanelItem__Content",componentId:"sc-1bannlu-2"})([""]),Date$2=dt$1.span.withConfig({displayName:"NotificationPanelItem__Date",componentId:"sc-1bannlu-3"})([""]),NotificationPanelItem=({className:ea,date:na,title:ra,buttons:oa,content:aa,onPreview:sa,onChangelog:la,thumbnail:ca,video:ua,isUnseen:da})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(NotificationPanelItemMedia$1,{thumbnail:ca,video:ua}),jsxRuntimeExports.jsx(Title$y,{children:ra}),aa&&jsxRuntimeExports.jsx(Content$d,{dangerouslySetInnerHTML:{__html:aa}}),jsxRuntimeExports.jsxs(Footer$2,{children:[jsxRuntimeExports.jsx(NotificationPanelItemButtons$1,{variant:"link",onChangelog:la,onPreview:sa,buttons:oa}),jsxRuntimeExports.jsx(Date$2,{children:calRelativeTime(na)})]}),da&&jsxRuntimeExports.jsx(NotificationPanelUnseenIndicator$1,{})]}),theme$2E=withTheme(scheme$16),NotificationPanelItem$1=dt$1(NotificationPanelItem).withConfig({displayName:"NotificationPanelItem",componentId:"sc-1bannlu-4"})(["position:relative;display:flex;flex-direction:column;padding:15px;","{margin-top:12px;}","{text-transform:capitalize;}","{display:flex;flex-direction:row;justify-content:space-between;margin-top:12px;}","{position:absolute;width:7px;height:7px;top:8px;right:14px;box-shadow:none;}"," ",""],Title$y,Date$2,Footer$2,NotificationPanelUnseenIndicator$1,theme$2E.colors((ea,{isUnseen:na})=>lt$1(["border-bottom:1px solid ",";","{color:",";}","{color:",";}","{color:",";}",""],ea.item.border,Title$y,ea.item.title,Content$d,ea.item.content,Date$2,ea.item.date,na&&lt$1(["background-color:",";"],ea.item.unseen.background))),theme$2E.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$y,ea.item.title.fontSize,ea.item.title.fontWeight,ea.item.title.lineHeight,Content$d,ea.item.content.fontSize,ea.item.content.fontWeight,ea.item.content.lineHeight,Date$2,ea.item.date.fontSize,ea.item.date.fontWeight,ea.item.date.lineHeight))),Title$x=dt$1(Label$6).withConfig({displayName:"NotificationHighlightedItem__Title",componentId:"sc-1bh5t1l-0"})([""]),Content$c=dt$1.span.withConfig({displayName:"NotificationHighlightedItem__Content",componentId:"sc-1bh5t1l-1"})([""]),Container$E=dt$1.div.withConfig({displayName:"NotificationHighlightedItem__Container",componentId:"sc-1bh5t1l-2"})([""]),ButtonsContainer$2=dt$1.div.withConfig({displayName:"NotificationHighlightedItem__ButtonsContainer",componentId:"sc-1bh5t1l-3"})([""]),DismissButton=dt$1(OutlineButton$1).attrs({size:"small"}).withConfig({displayName:"NotificationHighlightedItem__DismissButton",componentId:"sc-1bh5t1l-4"})([""]),NotificationHighlightedItem=({className:ea,title:na,buttons:ra=[],content:oa,onPreview:aa,onChangelog:sa,thumbnail:la,video:ca,onDismiss:ua,date:da,id:pa})=>{const{t:ha}=useTranslation(),ga=reactExports.useCallback(()=>{ua(pa,da)},[da,pa,ua]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(NotificationPanelItemMedia$1,{thumbnail:la,video:ca}),jsxRuntimeExports.jsxs(Container$E,{children:[jsxRuntimeExports.jsx(Title$x,{children:na}),oa&&jsxRuntimeExports.jsx(Content$c,{dangerouslySetInnerHTML:{__html:oa}}),jsxRuntimeExports.jsxs(ButtonsContainer$2,{children:[jsxRuntimeExports.jsx(DismissButton,{onClick:ga,children:ha("Dismiss")}),jsxRuntimeExports.jsx(NotificationPanelItemButtons$1,{variant:"button",onChangelog:sa,onPreview:aa,buttons:ra})]})]}),jsxRuntimeExports.jsx(CloseButton$2,{onClick:ga})]})},theme$2D=withTheme(scheme$16),NotificationHighlightedItem$1=dt$1(NotificationHighlightedItem).withConfig({displayName:"NotificationHighlightedItem",componentId:"sc-1bh5t1l-5"})(["position:fixed;width:365px;border-radius:5px;overflow:hidden;z-index:999;"," ","{height:204px;}","{display:flex;flex-direction:column;padding:20px;}","{display:flex;gap:10px;margin-top:20px;justify-content:flex-end;}","{position:absolute;top:5px;right:5px;}"," ",""],ea=>lt$1(["bottom:","px;right:","px;"],ea.viewPortPosition.bottom,ea.viewPortPosition.right),VideoPlayer$1,Container$E,ButtonsContainer$2,CloseButton$2,theme$2D.colors(ea=>lt$1(["background:",";border:1px solid ",";box-shadow:0px 10px 100px 0px ",";",",","{color:",";}"],ea.highlighted.background,ea.highlighted.border,ea.highlighted.shadow,Title$x,Content$c,ea.highlighted.color)),theme$2D.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$x,ea.highlighted.title.fontSize,ea.highlighted.title.fontWeight,ea.highlighted.title.lineHeight,Content$c,ea.highlighted.content.fontSize,ea.highlighted.content.fontWeight,ea.highlighted.content.lineHeight))),Title$w=dt$1(Label$6).withConfig({displayName:"NotificationsPanel__Title",componentId:"sc-iaguu1-0"})([""]),NotificationPanel=({className:ea,getRequestConfig:na,updateRequestConfig:ra,inViewportOptions:oa,highlightedViewPortPosition:aa,onPreview:sa,onChangelog:la})=>{const{t:ca}=useTranslation(),[ua,da]=reactExports.useState(!1),[pa,ha]=reactExports.useState(null),[ga,fa]=reactExports.useState(!1),[ma,va]=reactExports.useState([]),xa=reactExports.useMemo(()=>ma.map(Oa=>Oa.id),[ma]),ya=usePosthogCaptureCallback(),Aa=reactExports.useMemo(()=>pa?.hits?.find(Oa=>Oa.highlighted&&xa.includes(Oa.id)),[pa?.hits,xa]),Ca=reactExports.useCallback(Oa=>{ha(Oa),va(Oa.hits.filter(Da=>Da.id>Oa.lastSeenID||0))},[]),[Sa,{status:wa}]=useRequest(na,{onSuccess:Ca}),[ba]=useRequest(ra);reactExports.useEffect(()=>{Sa()},[Sa]);const Ea=reactExports.useCallback(()=>{da(Oa=>!Oa),ua&&ya("open_notifications_panel",{with:"notifications_panel"})},[ya,ua]),$a=reactExports.useCallback(()=>{if(ma.length){const{id:Oa,date:Da}=ma[0];ba({lastSeenID:Oa,lastSeenDate:Da}),va([])}da(!1)},[ma,ba]),Ma=reactExports.useCallback(Oa=>{const{id:Da}=Oa,Ta=xa.includes(Da);return jsxRuntimeExports.jsx(NotificationPanelItem$1,{onPreview:sa,onChangelog:la,isUnseen:Ta,...Oa},Da)},[la,sa,xa]),Ia=reactExports.useCallback((Oa,Da)=>{ba({lastSeenID:Oa,lastSeenDate:Da}),va(ma.filter(Ta=>Ta.id!==Oa)),fa(!0)},[ma,ba]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Popover$3,{className:ea,open:ua,onOutsideClick:$a,handler:jsxRuntimeExports.jsx(NotificationPanelHandler$1,{onClick:Ea,hasUnseen:!!xa.length}),inViewportOptions:oa,children:[jsxRuntimeExports.jsx(Title$w,{children:ca("Notifications")}),jsxRuntimeExports.jsx(LoadingSplash$1,{visible:wa==="loading",children:jsxRuntimeExports.jsx(Scrollbars,{children:pa?.hits?.map(Ma)})})]}),Aa&&!ga&&reactDomExports.createPortal(jsxRuntimeExports.jsx(NotificationHighlightedItem$1,{...Aa,viewPortPosition:aa,onDismiss:Ia}),document.body)]})},theme$2C=withTheme(scheme$16),FadeInAnimation=mt$1(["from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0px);}"]),NotificationsPanel=dt$1(NotificationPanel).withConfig({displayName:"NotificationsPanel",componentId:"sc-iaguu1-1"})([".depicter-popover-wrapper{width:340px;padding:0;animation:"," 300ms forwards;}","{width:100%;padding:15px;margin:0;}","{height:60vh;max-height:680px;}","{&:last-of-type{border-bottom:none;}}"," ",""],FadeInAnimation,Title$w,LoadingSplash$1,NotificationPanelItem$1,theme$2C.colors(ea=>lt$1([".depicter-popover-wrapper{border:1px solid ",";background-color:",";box-shadow:0 0 25px 10px ",";}","{color:",";border-bottom:1px solid ",";}"],ea.border,ea.background,ea.shadow,Title$w,ea.title.color,ea.title.border)),theme$2C.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Title$w,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight))),useOpenChangelogs=()=>{const{addToModalsStack:ea}=useModal(),[na,ra]=reactExports.useState(!1);return reactExports.useEffect(()=>{const aa=localStorage.getItem("dpChangelogLastSeen");browserEnv.updateInfo.from!==null&&aa!==browserEnv.updateInfo.to?(localStorage.setItem("dpChangelogLastSeen",browserEnv.updateInfo.to),ra(!0)):ra(!1)},[ea]),reactExports.useCallback((aa,sa,la)=>{(na||aa)&&ea([{id:"changelog",options:{from:sa||browserEnv.updateInfo.from,to:la||browserEnv.updateInfo.to}}])},[na,ea])},usePreviewTemplate=()=>{const{addToModalsStack:ea}=useModal(),na=reactExports.useCallback((aa,sa)=>{ea([{id:"preview",options:{title:aa.name,url:getTemplatePreviewByID(aa.id),extraButtons:sa&&[sa],showOpenInNewTabButton:!1,documentType:aa.type}}])},[ea]),ra=reactExports.useCallback(aa=>{window.open(aa,"_blank")},[]),oa=reactExports.useCallback(aa=>getTemplatePreviewByID(aa),[]);return{previewByID:na,previewByPath:ra,getUrl:oa}},UserMenu=reactExports.lazy(()=>__vitePreload(()=>import("./assets/index-BpBYVwpe.js"),[],import.meta.url)),IconsBar=({className:ea})=>{const na=useOpenChangelogs(),{previewByID:ra}=usePreviewTemplate(),{addToModalsStack:oa}=useModal(),aa=reactExports.useCallback(la=>{na(!0,la.from,la.to)},[na]),sa=reactExports.useCallback(()=>{oa([{id:"settings"}])},[oa]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgSettings,{}),onClick:sa}),jsxRuntimeExports.jsx(NotificationsPanel,{getRequestConfig:getNotifications,updateRequestConfig:updateNotificationsStatus,inViewportOptions:{xPlacement:"insideRight",yPlacement:"bottom",space:{right:-5,bottom:-5}},highlightedViewPortPosition:{bottom:15,right:15},onPreview:ra,onChangelog:aa}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(UserMenu,{})})]})},StyledButtonsBar=dt$1(IconsBar).withConfig({displayName:"IconsBar__StyledButtonsBar",componentId:"sc-fv029-0"})(["display:flex;flex-flow:row wrap;align-items:center;gap:10px;","{box-shadow:0 0 0 3px #363636;}> ","{width:auto;}"],NotificationPanelUnseenIndicator$1,IconButton),Logo=({className:ea})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs("svg",{viewBox:"0 0 256 223",fill:"none",children:[jsxRuntimeExports.jsx("path",{d:"M79.4263 65.4321L144.858 0L255.999 111.141L144.422 222.718L79.4263 157.722C67.1879 145.483 60.3125 128.885 60.3125 111.577C60.3125 94.2693 67.1879 77.6705 79.4263 65.4321Z",fill:"#265FFF"}),jsxRuntimeExports.jsx("path",{d:"M32.3808 33.4024L65.7832 0L176.924 111.141L65.3471 222.718L32.3808 189.751C11.6477 169.018 0 140.898 0 111.577C0 82.2558 11.6477 54.1357 32.3808 33.4024Z",fill:"#FFD300"}),jsxRuntimeExports.jsx("path",{d:"M78.8873 157.18C72.8985 151.192 68.1478 144.083 64.9064 136.258C61.6651 128.434 59.9965 120.048 59.9961 111.579C59.9957 103.11 61.6634 94.7238 64.9039 86.8992C68.1445 79.0746 72.8945 71.965 78.8827 65.9761L78.8873 65.9715L105.322 39.5356L176.925 111.137L104.886 183.177L78.8873 157.18Z",fill:"#FFE980"})]})}),Logo$1=dt$1(Logo).withConfig({displayName:"Logo",componentId:"sc-pg1aa6-0"})(["display:flex;align-items:center;justify-content:center;& > svg{display:block;width:23px;}"]),useAfterSave=ea=>{const{status:na}=useSelector(getDocumentSavingStatus),ra=useSelector(getUnsavedChanges)===0,oa=reactExports.useRef("unwatch");return oa.current==="watch"&&na!=="inprogress"&&ra&&(ea(),oa.current="unwatch"),()=>{na!=="inprogress"&&ra?ea():oa.current="watch"}},useMousetrap=(ea,na)=>{const ra=reactExports.useMemo(()=>new Mousetrap,[na]);return reactExports.useEffect(()=>(ea.forEach(oa=>ra.bind(oa.keys,oa.callback,oa.action)),()=>{ra.reset()}),[ea,ra]),ra},defaultColors$1s={background:"#363636",borderBottom:"#262626",splitter:{color:"#696969"},rename:{color:"white",unsaved:"#4980F5"},switchMode:{color:"#FFFFFF",indicator:"#4980F5",selected:{background:"rgba(170, 170, 170, 0.13)"}},savingIndicator:{color:"rgba(129,129,129,0.6)"},previewButton:{background:"#4980F5",hover:"#00D4E4",shadow:"rgba(21, 212, 228, 0.5)"}},colors$1s={dark:defaultColors$1s},defaultSizing$1d={height:"50px",borderBottom:"2px",savingIndicator:{fontSize:"14px"},rename:{fontSize:"14px"},publishButton:{fontSize:"10px",minWidth:"93px"},switchMode:{indicator:"2px",padding:"15px 20px",fontSize:"15px",fontWeight:"500"}},sizes$1s={default:defaultSizing$1d},scheme$15=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1s,sizes:sizes$1s},Symbol.toStringTag,{value:"Module"})),PreviewButton=({className:ea,onClick:na,...ra})=>{const{t:oa}=useTranslation(),aa=useTrack(),[sa,la]=reactExports.useState(!1),ca=useAfterSave(reactExports.useCallback(()=>{na?.(),la(!1)},[na])),ua=reactExports.useCallback(()=>{la(!0),ca(),aa(increasePreviewCount)},[ca,aa]);return useMousetrap([{keys:["mod+enter"],callback:ua}]),jsxRuntimeExports.jsx(SolidButton,{className:ea,loading:sa,icon:jsxRuntimeExports.jsx(SvgEye,{}),size:"small",onClick:ua,...ra,children:oa("Preview")})},theme$2B=withTheme(scheme$15),StyledPreviewButton=dt$1(PreviewButton).withConfig({displayName:"PreviewButton__StyledPreviewButton",componentId:"sc-1lo83ew-0"})(["text-transform:uppercase;",""],theme$2B.colors(ea=>lt$1(["background-color:",";&:hover{background-color:",";box-shadow:0 0 10px ",";}"],ea.previewButton.background,ea.previewButton.hover,ea.previewButton.shadow))),publishButtonColor={unpublished:{border:"#01D06F",dot:"#01D06F",background:"#173823",hover:{background:"#336730",color:"#FFF"}}},publishButtonColors={dark:publishButtonColor},publishButtonSize={},publishButtonSizes={default:publishButtonSize,sizes:solidButton.sizes},publishButton={colors:publishButtonColors,sizes:publishButtonSizes},SvgDownArrow=ea=>reactExports.createElement("svg",{width:8,height:5,viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.53321 4.74414H3.53223L0 1.20703L1.20605 0L3.5332 2.32715L5.86328 0L7.07031 1.20703L3.53418 4.74414H3.53321Z"})),unPublishedKeyframes=mt$1(["0%{opacity:1}12.5%{opacity:0;}25%,100%{opacity:1;}"]),UnpublishedIndicator=dt$1.span.withConfig({displayName:"PublishButton__UnpublishedIndicator",componentId:"sc-y0olcg-0"})(["order:4;display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:3px;animation:"," 4s infinite cubic-bezier(0.76,0,0.24,1);"],unPublishedKeyframes),PublishButton=({unpublished:ea,arrow:na=!0,...ra})=>{const{t:oa}=useTranslation();return jsxRuntimeExports.jsxs(OutlineButton$1,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgPublish}),...ra,children:[oa("Publish"),na&&jsxRuntimeExports.jsx(Icon$4,{shape:SvgDownArrow}),ea&&jsxRuntimeExports.jsx(UnpublishedIndicator,{})]})},theme$2A=withTheme(publishButton),PublishButton$1=dt$1(PublishButton).withConfig({displayName:"PublishButton",componentId:"sc-y0olcg-1"})(["text-transform:uppercase;padding-right:12px;","{display:flex;align-items:center;column-gap:4px;}",""],ButtonLabel,theme$2A.colors((ea,na)=>lt$1(["",""],na.unpublished&&lt$1(["border-color:",";background-color:",";","{background:",";}&:hover{background-color:",";border-color:",";color:",";span{color:",";}svg{fill:"," !important;}}"],ea.unpublished.border,ea.unpublished.background,UnpublishedIndicator,ea.unpublished.dot,ea.unpublished.hover.background,ea.unpublished.border,ea.unpublished.hover.color,ea.unpublished.hover.color,ea.unpublished.hover.color)))),SvgDraftIcon=ea=>reactExports.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.5H11C11.8284 1.5 12.5 2.17157 12.5 3H14C14 1.34315 12.6569 0 11 0H3C1.34315 0 0 1.34315 0 3V11C0 12.6569 1.34315 14 3 14H11C12.6569 14 14 12.6569 14 11V10H12.5V11C12.5 11.8284 11.8284 12.5 11 12.5H3C2.17157 12.5 1.5 11.8284 1.5 11V3C1.5 2.17157 2.17157 1.5 3 1.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 4.22386 3.22386 4 3.5 4H8.5C8.77614 4 9 4.22386 9 4.5C9 4.77614 8.77614 5 8.5 5H3.5C3.22386 5 3 4.77614 3 4.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.5C3 7.22386 3.22386 7 3.5 7H5.5C5.77614 7 6 7.22386 6 7.5C6 7.77614 5.77614 8 5.5 8H3.5C3.22386 8 3 7.77614 3 7.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.91438 10.1097C7.46332 9.65863 7.46332 8.92731 7.91438 8.47624L11.793 4.59767C12.244 4.14661 12.9753 4.14661 13.4264 4.59767C13.8775 5.04874 13.8775 5.78006 13.4264 6.23113L9.54783 10.1097C9.09677 10.5608 8.36545 10.5608 7.91438 10.1097Z"})),useNavigation=(ea=!1)=>{const na=useNavigate(),ra=useLocation();return{navigate:(aa,sa)=>{const la=ea?`${aa}${ra.search}`:aa;na(la,sa)},location:ra}},useActivePanel=()=>{const na=useLocation().pathname.split("/")[1]||"sections",ra=reactExports.useRef(null);return reactExports.useEffect(()=>{ra.current!==na&&(ra.current=na)},[na]),{activePanel:na,previousPanel:ra.current}},useOpenDisplayRulesPanel=()=>{const ea=useDispatch(),{activePanel:na}=useActivePanel(),{navigate:ra}=useNavigation();return reactExports.useEffect(()=>{na!=="displayRules"&&ea(setDisplayRulesConfig(null))},[na,ea]),aa=>{reactDomExports.unstable_batchedUpdates(()=>{aa&&ea(setDisplayRulesConfig({...aa})),ra("/displayRules")})}},useDisplayRules=()=>reactExports.useContext(DisplayRulesContext),useDocumentPublish=()=>{const ea=useSelector(getDocumentLastPublishTime),na=useOpenNotice("confirm"),{t:ra}=useTranslation(),oa=useOpenDisplayRulesPanel(),[aa,sa]=useDisplayRules(),la=useDispatch(),ca=usePosthogCaptureCallback(),ua=useTrack(),da=useSelector(getUnsavedChanges),{status:pa}=useSelector(getDocumentSavingStatus),ga=!(pa==="idle"&&da===0)&&pa!=="failed",fa=DocType.is(["popup","banner-bar"]),ma=aa.visibilitySchedule.enable&&fa,va=!useSelector(getUnpublishedChangesStatus)&&!aa.isChanged;return[reactExports.useCallback((ya=!0)=>{if(ya&&!ea&&DocType.is(["banner-bar","popup"])){let Aa=!0;if(na({title:ra("Manage Your {{document}} Visibility",{document:DocType.getLabel("document",!0)}),content:ra('If you want your {{document}} to appear on your entire website, you can publish it now. Or, if you want to control when and how your visitors see it, you can use the "Display Rules" tool.',{document:DocType.getLabel("document")}),confirmLabel:"Open Display Rules",cancelLabel:"Publish Now",icon:DisplayRulesIcon}).then(()=>{oa({publishBtn:!0}),Aa=!1}),!Aa)return}aa.isChanged?(la(saveDocument("published",void 0,aa,()=>{sa({type:"setIsChanged",payload:!1})})),ca("publish_document")):la(saveDocument("published")),ua(increasePublishCount)},[ea,aa,ua,na,ra,oa,la,ca,sa]),{lastPublishTime:ea,isVisibilityScheduled:ma,allChangesPublished:va,isLoading:ga}]},SwitchToDraftButton=dt$1(OutlineButton$1).attrs({size:"small"}).withConfig({displayName:"DocumentPublishNotice__SwitchToDraftButton",componentId:"sc-1y6vdbc-0"})([""]),DocumentPublishNotice=({className:ea})=>{const na=useDispatch(),{t:ra}=useTranslation(),oa=useOpenNotice("confirm"),aa=usePosthogCaptureCallback(),[sa,{lastPublishTime:la,isVisibilityScheduled:ca,allChangesPublished:ua,isLoading:da}]=useDocumentPublish(),pa=()=>{aa("switch_to_draft"),oa({title:ra("Switch to draft?"),content:ra("This {{document}} will not be visible on your website if you switch to draft.",{document:DocType.getLabel("document")})}).then(()=>{na(saveDocument("unpublished"))}).catch(noop$3)};return la?jsxRuntimeExports.jsxs(Flag$1,{className:ea,type:"custom",icon:jsxRuntimeExports.jsx(Icon$4,{shape:ua?SuccessIcon$1:WarningIcon$1}),title:ra(ua?ca?"All changes are scheduled":"All changes are published":ca?"You have unscheduled changes":"You have unpublished changes"),children:[jsxRuntimeExports.jsx(Label$6,{children:`${ra("Last publish")}: ${calRelativeTime(la)}`}),jsxRuntimeExports.jsx(SolidButton,{size:"small",color:ua?"secondary":"primary",onClick:()=>sa(),loading:da,style:{backgroundColor:ua?"#444":"",color:ua?"#aaa":""},disabled:ua,children:ra(ua?ca?"Scheduled":"Published":ca?"Schedule changes":"Publish changes")}),!da&&jsxRuntimeExports.jsx(SwitchToDraftButton,{onClick:pa,children:ra("Switch to draft")})]}):jsxRuntimeExports.jsxs(Flag$1,{className:`${ea} dp-draft-mode`,type:"custom",icon:jsxRuntimeExports.jsx(SvgDraftIcon,{}),title:ra("Changes are saved as draft."),children:[jsxRuntimeExports.jsx(Label$6,{children:ra("This {{document}} is saved as draft. {{P}} it to make it visible on website.",{document:DocType.getLabel("document"),P:ra(ca?"Schedule":"Publish")})}),jsxRuntimeExports.jsx(SolidButton,{size:"small",color:"primary",onClick:()=>sa(),loading:da,children:ra(ca?"Schedule now":"Publish now")})]})},DocumentPublishNotice$1=dt$1(DocumentPublishNotice).withConfig({displayName:"DocumentPublishNotice",componentId:"sc-1y6vdbc-1"})(["cursor:initial;&.dp-draft-mode{background-color:#3c332c;border:solid 2px #cfa175;svg{display:inline-block;vertical-align:sub;fill:white;}}","{margin-right:5px;margin-top:3px;}> div{padding:0;}","{font-size:10px;margin:0;font-style:italic;}","{width:100%;text-transform:uppercase;font-size:10px;font-weight:600;margin-left:-9px;}"],Icon$4,Label$6,BaseButton$1),popoverPlacement$3={yPlacement:"bottom",xPlacement:"insideLeft",space:{left:-41,top:0}},DocumentVisibilitySchedule=ea=>{const{className:na}=ea,[{visibilitySchedule:ra,isLoading:oa},aa]=useDisplayRules(),sa=usePosthogCaptureCallback(),la=da=>{aa({type:"updateVisibilitySchedule",payload:{enable:da}}),sa("visibility_scheduling",{enable:da})},ca=da=>{aa({type:"updateVisibilitySchedule",payload:{start:da}})},ua=da=>{aa({type:"updateVisibilitySchedule",payload:{end:da}})};return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(SwitchBox$1,{value:oa?!1:!!ra.enable,onChange:la,label:i18next.t("{{document}} visibility scheduling",{document:DocType.getLabel("document",!0)})})}),ra.enable&&!oa&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,label:i18next.t("Start"),resetLabel:i18next.t("Clear"),notSetLabel:i18next.t("Pick Date"),nowButton:!1,value:ra.start,onChange:ca,inViewportOptions:popoverPlacement$3})}),jsxRuntimeExports.jsx(FieldsetRow,{children:jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,label:i18next.t("End"),resetLabel:i18next.t("Clear"),notSetLabel:i18next.t("Pick Date"),nowButton:!1,value:ra.end,onChange:ua,inViewportOptions:popoverPlacement$3})})]})]})},DocumentVisibilityScheduling=dt$1(DocumentVisibilitySchedule).withConfig({displayName:"DocumentVisibilityScheduling",componentId:"sc-o7wtp8-0"})([""," > span{display:inline-block;min-width:25px;}"],DatePicker$1),DocumentVersionHistory=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{navigate:oa}=useNavigation(),aa=usePosthogCaptureCallback(),sa=()=>{oa("/revisions"),aa("open_version_history")};return jsxRuntimeExports.jsx(Flag$1,{className:na,type:"custom",icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgClock}),title:ra("Version History"),children:jsxRuntimeExports.jsx(BaseButton$1,{onClick:sa,children:ra("Show")})})},DocumentVersionHistory$1=dt$1(DocumentVersionHistory).withConfig({displayName:"DocumentVersionHistory",componentId:"sc-12zqh3x-0"})(["align-items:center;"," svg{fill:#aaaaaa;}","{font-size:12px;font-weight:600;line-height:16px;margin-top:-2px;}","{color:#4980f5;font-size:12px;font-weight:400;line-height:16px;}","{display:flex;flex-direction:row;justify-content:space-between;align-items:center;row-gap:0;}"],Icon$4,Title$B,BaseButton$1,Content$h),documentPublishOptionControls=[{id:"documentVisibilitySchedulingFieldset",border:"bottom",tier:DocType.isNot(["popup","banner-bar"])?Tiers.PRO:void 0,optionControls:[[createOptionControl({id:"documentSchedulePublish",control:DocumentVisibilityScheduling,dependency:()=>DocType.isNot(["popup","banner-bar"])})]]},{id:"documentPublishFieldset",optionControls:[[createOptionControl({id:"documentUnPublishedHandler",control:DocumentPublishNotice$1})]]},{id:"documentHistoryFieldset",tier:Tiers.PRO,badgePosition:{top:"11px",right:"10px"},optionControls:[[createOptionControl({id:"documentVersionHistory",control:DocumentVersionHistory$1})]]},...DocType.isNot(["popup","banner-bar"])?[{id:"documentShortcodeFieldset",border:"top",optionControls:[[createOptionControl({id:"documentShortCodeID",label:i18next.t("Shortcode"),selector:getDocumentId,control:Input$2,valueFilter:ea=>`[depicter id="${ea}"]`,controlProps:{preventChange:!0,variant:"small",copyAble:!0}})],[createOptionControl({id:"documentShortcodeNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("Paste shortcode into your posts or pages")}})]]},{id:"documentPHPCodeFieldset",optionControls:[[createOptionControl({id:"documentPHPCodeID",label:i18next.t("PHP code"),selector:getDocumentId,control:Input$2,valueFilter:ea=>`<?php depicter(${ea}); ?>`,controlProps:{preventChange:!0,variant:"small",copyAble:!0}})],[createOptionControl({id:"documentPHPCodeNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("Paste the PHP code into your theme’s file")}})]]}]:[]],Overlay=({visible:ea,...na})=>jsxRuntimeExports.jsx("div",{...na}),Overlay$1=dt$1(Overlay).withConfig({displayName:"Overlay",componentId:"sc-8g3q87-0"})(["position:absolute;background-color:rgba(22,22,22,0.6);width:100%;height:100%;top:0;left:0;z-index:10;backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:visibility 0ms 150ms,opacity 150ms 0ms ease-out;",""],({visible:ea})=>ea?lt$1(["opacity:1;visibility:visible;transition:visibility 0ms 0ms,opacity 150ms 0ms ease-out;"]):""),PublishPopover=({className:ea})=>{const[na,ra]=reactExports.useState(!1),oa=useSelector(getUnpublishedChangesStatus),[aa,sa]=reactExports.useState(!1),la=reactExports.useCallback(()=>{sa(!1)},[]),ca=reactExports.useCallback(()=>{sa(!0)},[]),ua=reactExports.useCallback(()=>{aa?la():ca()},[la,ca,aa]),da=useUserTierAuthCallback();return jsxRuntimeExports.jsx(PopoverOpenStateContext.Provider,{value:{open:na,setOpen:ra},children:jsxRuntimeExports.jsxs(Popover$3,{className:ea,open:aa,handler:jsxRuntimeExports.jsx(PublishButton$1,{size:"small",unpublished:oa,onClick:ua}),onOutsideClick:la,inViewportOptions:{yPlacement:"bottom",xPlacement:"insideRight",space:{bottom:-10,left:0}},children:[jsxRuntimeExports.jsx(Overlay$1,{visible:na}),jsxRuntimeExports.jsx(OCManager,{optionControls:documentPublishOptionControls,tierChecker:da,fieldsetComponent:Fieldset$1})]})})},PublishPopover$1=dt$1(PublishPopover).withConfig({displayName:"Publish",componentId:"sc-1vknvep-0"})(["position:relative;> ","{padding:15px 0 5px 0;width:265px;z-index:99999;}","{font-size:10px;color:rgba(255,255,255,0.87);> div{margin-top:0;}}"],PopoverWrapper$1,LabelWithIcon$1);var AutosizeInput$1={},hasRequiredAutosizeInput;function requireAutosizeInput(){if(hasRequiredAutosizeInput)return AutosizeInput$1;hasRequiredAutosizeInput=1,Object.defineProperty(AutosizeInput$1,"__esModule",{value:!0});var ea=Object.assign||function(Aa){for(var Ca=1;Ca<arguments.length;Ca++){var Sa=arguments[Ca];for(var wa in Sa)Object.prototype.hasOwnProperty.call(Sa,wa)&&(Aa[wa]=Sa[wa])}return Aa},na=function(){function Aa(Ca,Sa){for(var wa=0;wa<Sa.length;wa++){var ba=Sa[wa];ba.enumerable=ba.enumerable||!1,ba.configurable=!0,"value"in ba&&(ba.writable=!0),Object.defineProperty(Ca,ba.key,ba)}}return function(Ca,Sa,wa){return Sa&&Aa(Ca.prototype,Sa),wa&&Aa(Ca,wa),Ca}}(),ra=requireReact(),oa=la(ra),aa=requirePropTypes(),sa=la(aa);function la(Aa){return Aa&&Aa.__esModule?Aa:{default:Aa}}function ca(Aa,Ca){var Sa={};for(var wa in Aa)Ca.indexOf(wa)>=0||Object.prototype.hasOwnProperty.call(Aa,wa)&&(Sa[wa]=Aa[wa]);return Sa}function ua(Aa,Ca){if(!(Aa instanceof Ca))throw new TypeError("Cannot call a class as a function")}function da(Aa,Ca){if(!Aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ca&&(typeof Ca=="object"||typeof Ca=="function")?Ca:Aa}function pa(Aa,Ca){if(typeof Ca!="function"&&Ca!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ca);Aa.prototype=Object.create(Ca&&Ca.prototype,{constructor:{value:Aa,enumerable:!1,writable:!0,configurable:!0}}),Ca&&(Object.setPrototypeOf?Object.setPrototypeOf(Aa,Ca):Aa.__proto__=Ca)}var ha={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},ga=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],fa=function(Ca){return ga.forEach(function(Sa){return delete Ca[Sa]}),Ca},ma=function(Ca,Sa){Sa.style.fontSize=Ca.fontSize,Sa.style.fontFamily=Ca.fontFamily,Sa.style.fontWeight=Ca.fontWeight,Sa.style.fontStyle=Ca.fontStyle,Sa.style.letterSpacing=Ca.letterSpacing,Sa.style.textTransform=Ca.textTransform},va=typeof window<"u"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,xa=function(){return va?"_"+Math.random().toString(36).substr(2,12):void 0},ya=function(Aa){pa(Ca,Aa),na(Ca,null,[{key:"getDerivedStateFromProps",value:function(wa,ba){var Ea=wa.id;return Ea!==ba.prevId?{inputId:Ea||xa(),prevId:Ea}:null}}]);function Ca(Sa){ua(this,Ca);var wa=da(this,(Ca.__proto__||Object.getPrototypeOf(Ca)).call(this,Sa));return wa.inputRef=function(ba){wa.input=ba,typeof wa.props.inputRef=="function"&&wa.props.inputRef(ba)},wa.placeHolderSizerRef=function(ba){wa.placeHolderSizer=ba},wa.sizerRef=function(ba){wa.sizer=ba},wa.state={inputWidth:Sa.minWidth,inputId:Sa.id||xa(),prevId:Sa.id},wa}return na(Ca,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(wa,ba){ba.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var wa=this.input&&window.getComputedStyle(this.input);wa&&(ma(wa,this.sizer),this.placeHolderSizer&&ma(wa,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var wa=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?wa=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:wa=this.sizer.scrollWidth+2;var ba=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;wa+=ba,wa<this.props.minWidth&&(wa=this.props.minWidth),wa!==this.state.inputWidth&&this.setState({inputWidth:wa})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var wa=this.props.injectStyles;return va&&wa?oa.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var wa=[this.props.defaultValue,this.props.value,""].reduce(function(Ma,Ia){return Ma??Ia}),ba=ea({},this.props.style);ba.display||(ba.display="inline-block");var Ea=ea({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),$a=ca(this.props,[]);return fa($a),$a.className=this.props.inputClassName,$a.id=this.state.inputId,$a.style=Ea,oa.default.createElement("div",{className:this.props.className,style:ba},this.renderStyles(),oa.default.createElement("input",ea({},$a,{ref:this.inputRef})),oa.default.createElement("div",{ref:this.sizerRef,style:ha},wa),this.props.placeholder?oa.default.createElement("div",{ref:this.placeHolderSizerRef,style:ha},this.props.placeholder):null)}}]),Ca}(ra.Component);return ya.propTypes={className:sa.default.string,defaultValue:sa.default.any,extraWidth:sa.default.oneOfType([sa.default.number,sa.default.string]),id:sa.default.string,injectStyles:sa.default.bool,inputClassName:sa.default.string,inputRef:sa.default.func,inputStyle:sa.default.object,minWidth:sa.default.oneOfType([sa.default.number,sa.default.string]),onAutosize:sa.default.func,onChange:sa.default.func,placeholder:sa.default.string,placeholderIsMinWidth:sa.default.bool,style:sa.default.object,value:sa.default.any},ya.defaultProps={minWidth:1,injectStyles:!0},AutosizeInput$1.default=ya,AutosizeInput$1}var AutosizeInputExports=requireAutosizeInput();const AutosizeInput=getDefaultExportFromCjs(AutosizeInputExports),RenameBox=ea=>{const{value:na,className:ra,onChange:oa,editing:aa,title:sa,doubleClickToEdit:la=!1,onEditStatus:ca}=ea,[ua,da]=reactExports.useState(na),[pa,ha]=reactExports.useState(aa);reactExports.useEffect(()=>{ha(aa)},[aa]),reactExports.useEffect(()=>{ca?.(pa)},[pa,ca]);const ga=ya=>{ya instanceof KeyboardEvent&&![27,13].includes(ya.keyCode)||ya instanceof MouseEvent&&ya.target instanceof HTMLInputElement&&ya.target.tagName==="INPUT"||(ha(!1),ya instanceof KeyboardEvent&&ya.keyCode===27||!ua||ua===na?da(na):oa&&oa(ua))},fa=reactExports.useCallback(ya=>{pa||(ya.preventDefault(),ha(!0))},[pa]);reactExports.useEffect(()=>{da(na)},[na]),reactExports.useEffect(()=>{if(pa)return document.addEventListener("keydown",ga,!1),document.addEventListener("mousedown",ga,!1),()=>{document.removeEventListener("keydown",ga,!1),document.removeEventListener("mousedown",ga,!1)};document.removeEventListener("keydown",ga,!1),document.removeEventListener("mousedown",ga,!1)});const ma=ya=>{ya.target instanceof HTMLInputElement&&da(ya.target.value)},va=ya=>{ya.target instanceof HTMLInputElement&&ya.target.select()},xa=reactExports.useMemo(()=>la?{onDoubleClick:fa}:{onClick:fa},[la,fa]);return jsxRuntimeExports.jsx("div",{className:ra,children:pa?jsxRuntimeExports.jsx(AutosizeInput,{value:ua,onChange:ma,onFocus:va,autoFocus:!0}):jsxRuntimeExports.jsx("span",{...xa,title:sa||ua,children:ua})})},RenameBox$1=dt$1(RenameBox).withConfig({displayName:"RenameBox",componentId:"sc-123adt8-0"})(["> span{cursor:text;&:hover{border-bottom:dashed 1px currentcolor;}}"]),RenameDocument=ea=>{const{className:na,value:ra,onChange:oa}=ea,{t:aa}=useTranslation();return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(RenameBox$1,{value:ra,onChange:oa,title:aa("Click to rename")})})},RenameDocument$1=dt$1(RenameDocument).withConfig({displayName:"RenameDocument",componentId:"sc-10kz0t-0"})(["display:flex;.unsavedSign{margin-left:3px;}input{background:transparent;padding:0;border:0;}"]),flashingAnimation=mt$1(["from{opacity:0}to{opacity:100}"]),FlashingLabel=dt$1.span.withConfig({displayName:"SavingIndicator__FlashingLabel",componentId:"sc-1yz157j-0"})(["animation:"," 0.8s linear infinite alternate;"],flashingAnimation),SavingIndicator=({className:ea})=>{const{status:na}=useSelector(getDocumentSavingStatus),ra=useSelector(getUnsavedChanges),{t:oa}=useTranslation(),aa=na==="idle"&&ra===0;return jsxRuntimeExports.jsxs("div",{className:ea,children:[aa&&jsxRuntimeExports.jsx("span",{children:oa("All changes saved")}),!aa&&na==="failed"&&jsxRuntimeExports.jsx("span",{children:oa("Unable to save")}),!aa&&na!=="failed"&&jsxRuntimeExports.jsx(FlashingLabel,{children:oa("Saving changes...")})]})},theme$2z=withTheme(scheme$15),SavingIndicator$1=dt$1(SavingIndicator).withConfig({displayName:"SavingIndicator",componentId:"sc-1yz157j-1"})(["&::before{content:'';display:inline-block;height:1px;margin:0 5px;width:8px;vertical-align:middle;}min-width:140px;font-style:italic;"," ",""],theme$2z.colors(ea=>lt$1(["&::before{background-color:",";}color:",";"],ea.savingIndicator.color,ea.savingIndicator.color)),theme$2z.sizes(ea=>lt$1(["font-size:",";"],ea.savingIndicator.fontSize))),Splitter=dt$1.div.withConfig({displayName:"Splitter",componentId:"sc-1sthx0x-0"})(["width:1px;height:calc(100% - 26px);background-color:silver;"]),theme$2y=withTheme(scheme$15),SwitchModeTab=dt$1(SimpleTab).withConfig({displayName:"SwitchModeTab",componentId:"sc-k2wj6q-0"})(["height:100%;"," "," @media (max-width:1550px){font-size:13px;padding:0 10px;vertical-align:top;}"],theme$2y.colors((ea,na)=>lt$1(["color:",";background-color:",";&::after{background-color:",";}"],ea.switchMode.color,na.selected&&ea.switchMode.selected.background,ea.switchMode.indicator)),theme$2y.sizes(ea=>lt$1(["padding:",";font-size:",";font-weight:",";&::after{height:",";}"],ea.switchMode.padding,ea.switchMode.fontSize,ea.switchMode.fontWeight,ea.switchMode.indicator))),defaultColors$1r={background:"#191919",artboardName:"#AAAAAA",artboardNameError:"#FF504A",tooltipError:"#FF504A",workspaceToolbar:{background:"#222222"},artboardToolbar:{activeColor:"#AAAAAA",disabledOpacity:.64,hover:"white"},stageToolbarButton:{color:"#AAAAAA",hover:"white"},addNewSlideButton:{color:"white",icon:"#ACACAC",hover:{background:"black"}},playAnimationsButton:{color:"#AAAAAA",icon:"#ACACAC",hover:{color:"white"}},sectionThumbnail:{border:"#707070",background:"#343434",placeholderIcon:"#AAAAAA",hover:{border:"#4980F5"}},bottomToolbar:{background:"#222222",splitter:{color:"#5A5A5A"}},hiddenItem:{disable:"#6a6a6a",active:"#FFFFFF",background:"#000000"},workspaceZoomControl:{text:"#FFF",hoverBackground:"#000"}},colors$1r={dark:defaultColors$1r},defaultSizes$e={artboardName:{fontSize:"15px"},workspaceToolbar:{height:"50px",padding:"0 0px 0 30px"},addNewSlideButton:{marginTop:10,padding:"0px 13px 0px 9px",iconSpace:"7px",height:"28px",fontSize:"12px"},sectionThumbnail:{width:"31px",height:"31px",border:"solid 1px",borderRadius:"4px"},bottomToolbar:{borderRadius:"8px",height:"50px",bottomSpace:"10px",padding:"0 15px",splitter:{width:"1px",height:"24px",space:"15px"}},playAnimationsButton:{marginTop:10,iconSpace:"6px",fontSize:"12px"},hiddenItem:{width:"30px",height:"30px",radius:"5px"},optionTabs:{width:"265px"},workspaceZoomControl:{radius:"4px",padding:"3px 5px",fontSize:"11px",fontWeight:"400"}},sizes$1r={default:defaultSizes$e},scheme$14=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1r,sizes:sizes$1r},Symbol.toStringTag,{value:"Module"})),shortcutKeyMap={Cmd:"⌘",Ctrl:"⌃",Alt:"⌥",Shift:"⇧",Mod:"⌘",CapsLock:"⇪"},getShortcutString=ea=>{let na=ea.join(" + ");return getOS()==="Mac OS"?Object.keys(shortcutKeyMap).forEach(oa=>{const aa=shortcutKeyMap[oa];na=na.replace(oa,aa)}):na=na.replace("Mod","Ctrl"),na},ContextMenuItemDriver=ea=>{const{props:na,size:ra="medium",UIItem:oa,dispatcher:aa,label:sa,type:la,dependency:ca=()=>!0,disabledWhen:ua=()=>!1,selector:da=()=>null,shortcuts:pa,allowedTier:ha,defaultValue:ga,anchorPoint:fa,...ma}=ea,va=!useUserTierAuth(ha),xa=useOpenUpgradeToPro(),ya=reactExports.useCallback(()=>{xa({source:"depicter_editor",medium:"context_menu",content:sa})},[sa,xa]),Aa=useDispatch(),Ca=useDispatchAndToHistory(),Sa=useSelector(ca),wa=useSelector(ua);let ba=useSelector(da);ba==null&&(ba=ga);const Ea=reactExports.useMemo(()=>pa?getShortcutString(pa):"",[pa]),$a=reactExports.useMemo(()=>({type:la,value:ba,size:ra,disabled:wa,checked:la==="checkbox"?ba:!1,label:sa,shortcut:Ea,...oa?{anchorPoint:fa}:{},...ma,...na}),[la,ba,ra,wa,sa,Ea,oa,fa,ma,na]),Ma=reactExports.useMemo(()=>({position:{top:"5px",right:"5px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})}),[]);if(!Sa)return null;const Ia=Da=>{if(!aa)return;const{thunk:Ta,createHistory:_a=!0}=aa;_a?Ca(Ta(Da.value)):Aa(Ta(Da.value))},Oa=oa||MenuItem;return va?jsxRuntimeExports.jsx(WithBadge,{onClick:ya,symbolsData:Ma,overlay:"rgba(54, 54, 54, 0.6)",children:jsxRuntimeExports.jsx(Oa,{onClick:Ia,...$a,children:sa})}):jsxRuntimeExports.jsx(Oa,{onClick:Ia,...$a,children:sa})},ContextMenuItemDriver$1=dt$1(ContextMenuItemDriver).withConfig({displayName:"ContextMenuItemDriver",componentId:"sc-1qj1ag8-0"})([""]),SubMenuFactory=ea=>{const{items:na,size:ra="medium",label:oa,dependency:aa=()=>!0,disabledWhen:sa=()=>!1,...la}=ea,ca=useSelector(aa),ua=useSelector(sa);if(!ca)return null;const da=pa=>jsxRuntimeExports.jsx(ContextMenuItemDriver$1,{...pa},pa.id);return jsxRuntimeExports.jsx(SubMenu,{label:oa,size:ra,disabled:ua,...la,children:na.map(da)})},SubMenuFactory$1=dt$1(SubMenuFactory).withConfig({displayName:"SubMenuFactory",componentId:"sc-87l4h4-0"})([""]),ContextMenuFactory=reactExports.forwardRef(({className:ea,items:na=[],...ra},oa)=>{const[aa,sa]=reactExports.useState(!1),[la,ca]=reactExports.useState(void 0),ua=useClick(aa,sa),da=fa=>"items"in fa?jsxRuntimeExports.jsx(SubMenuFactory$1,{...fa},fa.id):jsxRuntimeExports.jsx(ContextMenuItemDriver$1,{...fa,anchorPoint:la},fa.id),pa=fa=>{const{id:ma,divider:va,size:xa="medium",header:ya,items:Aa}=fa;return jsxRuntimeExports.jsxs(React.Fragment,{children:[va&&["both","before"].includes(va)&&jsxRuntimeExports.jsx(MenuDivider,{}),!!ya&&jsxRuntimeExports.jsx(MenuHeader,{size:xa,children:ya}),Aa.map(da),va&&["both","after"].includes(va)&&jsxRuntimeExports.jsx(MenuDivider,{})]},ma)},ha=reactExports.useCallback(fa=>{sa(!0),fa&&ca(fa)},[]),ga=reactExports.useCallback(()=>{sa(!1)},[]);return reactExports.useImperativeHandle(oa,()=>({open:ha,close:ga,anchorProps:ua}),[ua,ga,ha]),jsxRuntimeExports.jsx(ControlledMenu,{className:`${ea} depicter-keep-element-selection`,state:aa?"open":"closed",initialMounted:!1,anchorPoint:la,onClose:ga,size:"medium",...ra,children:na.map(pa)})}),ContextMenuFactory$1=dt$1(ContextMenuFactory).withConfig({displayName:"ContextMenuFactory",componentId:"sc-1x8h67j-0"})([""]),nativeCopyPasteExpected=()=>{const{activeElement:ea}=document,{tagName:na,contentEditable:ra}=ea;if(ra==="true"||na.toLowerCase()==="textarea"||na.toLowerCase()==="input"&&["text","number","search","email","tel","url"].includes(ea?.type))return!0;const oa=global.getSelection(),aa=oa.rangeCount?oa.getRangeAt(0):null;return!!(aa&&!aa.collapsed)},useGlobalClipboardHandlers=(ea,na)=>{reactExports.useEffect(()=>{const ra=aa=>{nativeCopyPasteExpected()},oa=aa=>{nativeCopyPasteExpected()||na?.(aa)};return document.addEventListener("copy",ra),document.addEventListener("cut",ra),document.addEventListener("paste",oa),()=>{document.removeEventListener("copy",ra),document.removeEventListener("cut",ra),document.removeEventListener("paste",oa)}},[ea,na])},updateDocumentValueByPathAndPrefix=(ea="",na)=>(ra,oa=!1)=>aa=>sa=>{sa(updateDocumentOptionsByPath({...aa,merge:oa,path:ea?`${ea?`${ea}.`:""}${ra}`:ra,bp:na}))},useWindowResize=(ea=0)=>{const[na,ra]=reactExports.useState([0,0]),oa=reactExports.useRef();return reactExports.useLayoutEffect(()=>{function aa(){clearTimeout(oa.current),ea?oa.current=window.setTimeout(ra,ea,[window.innerWidth,window.innerHeight]):ra([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",aa),aa(),()=>{clearTimeout(oa.current),window.removeEventListener("resize",aa)}},[ea]),na},getActiveAnimationData=createSelector([getActiveSectionElementsAnimationData,getSectionPreviewState],(ea,na)=>na==="activated"?ea:null),useSectionAnimator=()=>{const{refs:ea}=reactExports.useContext(HTMLElementRefsContext),na=useSelector(getActiveAnimationData),ra=useSelector(getSectionPreviewState),oa=useSelector(getActiveBreakpoint),aa=useDispatch(),sa=reactExports.useRef(new Map),la=()=>{sa.current.forEach(xa=>xa()),sa.current=new Map},ca=reactExports.useCallback(()=>{aa(updateSectionPreviewState("deactivated"))},[aa]),ua=reactExports.useCallback(async(xa,ya,Aa)=>{if(!ya)return!0;const Ca=getResponsiveValue(ya.data,oa);if(!Ca||Ca.type==="wizard")return!0;const Sa=ea[`${xa}_animation`],{type:wa,params:ba}=Ca;if(!Aa){const{reset:Ea,timeline:$a}=animator.animate(wa,Sa,"in",ba);return sa.current.set(xa,Ea),await $a.finished,!0}return!0},[oa,ea]),da=reactExports.useCallback(async(xa,ya)=>{const Aa=getResponsiveValue(ya,oa);if(!Aa)return!0;const{params:Ca,enable:Sa}=Aa;if(!Sa)return!0;const wa=ea[`${xa}_animation`];sa.current.get(xa)?.();const{reset:ba,timeline:Ea}=animator.animate("kenBurns",wa,"out",Ca);return sa.current.set(xa,ba),await Ea.finished,!0},[oa,ea]),pa=reactExports.useCallback(async(xa,ya,Aa)=>{if(!ya)return!0;const Ca=ea[`${xa}_animation`],{data:Sa,wait:wa=!1}=ya,ba=getResponsiveValue(Sa,oa);if(!ba||ba.type==="wizard")return!0;const{type:Ea,params:$a}=ba;if(!Aa&&!wa){sa.current.get(xa)?.();const{reset:Ma,timeline:Ia}=animator.animate(Ea,Ca,"out",$a);return sa.current.set(xa,Ma),await Ia.finished,!0}return!0},[oa,ea]),ha=reactExports.useCallback(async(xa,ya)=>{if(!ya)return!0;const Aa=ea[`${xa}_loop_animation`],Ca=getResponsiveValue(ya.data,oa);if(!Ca)return!0;const{type:Sa,params:wa}=Ca,{reset:ba,timeline:Ea}=animator.animate(Sa,Aa,"out",wa,void 0,{loop:4,direction:Ca.params.timelineOptions?.direction||"alternative"});return sa.current.set(`${xa}_loop`,ba),await Ea.finished,!0},[oa,ea]),ga=reactExports.useCallback(async()=>{const xa=Object.keys(na).filter(ya=>!isSection(ya));return xa.length?Promise.all(xa.map(async ya=>{const{in:Aa,out:Ca,loop:Sa,waitForAction:wa}=na[ya];Sa&&Sa.betweenInAndOut?await Promise.all([ha(ya,Sa),ua(ya,Aa,wa)]):(await ua(ya,Aa,wa),await ha(ya,Sa)),await pa(ya,Ca,wa)})):!1},[na,ua,ha,pa]),fa=reactExports.useCallback(async()=>{const xa=Object.keys(na).filter(ya=>isSection(ya));return xa.length?Promise.all(xa.map(async ya=>{const{kenBurns:Aa,in:Ca,out:Sa}=na[ya];await ua(ya,Ca),await da(ya,Aa),await pa(ya,Sa)})):!1},[na,ua,pa,da]),ma=reactExports.useCallback(async()=>{await Promise.all([ga(),fa()])},[ga,fa]),va=reactExports.useCallback(async()=>{la();const xa=Date.now();await ma(),Date.now()-xa>50&&await va()},[ma]);reactExports.useEffect(()=>(la(),document.addEventListener("click",ca),ra==="deactivated"?(document.removeEventListener("click",ca),la):(isEmpty(na)||va(),()=>{document.removeEventListener("click",ca),la()})),[oa,na,ra,ea,ca,ma,va])},Box$1=dt$1.div.withConfig({displayName:"CarouselScheme__Box",componentId:"sc-1ga4dh4-0"})([""]),Container$D=dt$1.div.withConfig({displayName:"CarouselScheme__Container",componentId:"sc-1ga4dh4-1"})([""]),CarouselScheme=({className:ea,size:na,count:ra=5})=>{const oa=useSelector(getSectionSnapshotsList,shallowEqual$2),aa=useSelector(getSectionsList),sa=useSelector(getActiveSectionIndex),la=useSelector(getActiveBreakpoint),ca=getResponsiveValue(na,la);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Container$D,{children:Array.from({length:ra}).map((ua,da)=>{const pa=sa-(ra-1)/2+da;return jsxRuntimeExports.jsx(Box$1,{style:{width:`${ca.width.value}${ca.width.unit}`},children:aa[pa]&&la==="default"&&jsxRuntimeExports.jsx("img",{src:oa[aa[pa]],alt:""})},da)})})})},CarouselScheme$1=dt$1(CarouselScheme).withConfig({displayName:"CarouselScheme",componentId:"sc-1ga4dh4-2"})(["pointer-events:none;overflow:hidden;height:100%;width:100%;position:absolute;z-index:1;","{position:absolute;display:flex;left:50%;transform:translateX(-50%);height:100%;gap:10px;}","{height:100%;flex-shrink:0;opacity:0.1;background-color:white;}"],Container$D,Box$1),Shortcut=ea=>{const{mousetrapInstance:na,keys:ra,thunk:oa,dependency:aa=()=>!0}=ea,sa=useDispatch(),la=useSelector(aa),ca=reactExports.useCallback(()=>(sa(oa?.()),!1),[sa,oa]);return reactExports.useEffect(()=>(la?na.bind(ra,ca):na.unbind(ra),()=>{na.unbind(ra)}),[ca,la,sa,ra,na,oa]),null},ShortcutFactory=ea=>{const{shortcuts:na,element:ra}=ea,oa=reactExports.useMemo(()=>new Mousetrap(ra||void 0),[ra]);reactExports.useEffect(()=>()=>{oa.reset()},[oa]);const aa=sa=>jsxRuntimeExports.jsx(Shortcut,{mousetrapInstance:oa,...sa},sa.id);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:na.map(aa)})},defaultColors$1q={container:{background:"rgba(0,0,0,0.5)"},area:{line:"rgba(255,255,255,0.5)"}},colors$1q={dark:defaultColors$1q},defaultSizing$1c={},sizes$1q={default:defaultSizing$1c},scheme$13=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1q,sizes:sizes$1q},Symbol.toStringTag,{value:"Module"})),GridLines=dt$1.div.withConfig({displayName:"CropperArea__GridLines",componentId:"sc-3qe5f9-0"})([""]),CropperArea=reactExports.forwardRef((ea,na)=>{const{className:ra,width:oa,height:aa,y:sa,x:la,rotation:ca}=ea,ua={width:oa,height:aa,transform:`translate(${la}px, ${sa}px) rotate(${ca}deg)`},da=reactExports.useCallback(pa=>{pa&&assignRef$1(pa,na)},[na]);return jsxRuntimeExports.jsx("div",{className:ra,ref:da,style:ua,children:jsxRuntimeExports.jsx(GridLines,{})})}),theme$2x=withTheme(scheme$13),CropperArea$1=dt$1(CropperArea).withConfig({displayName:"CropperArea",componentId:"sc-3qe5f9-1"})(["position:absolute;top:0;left:0;pointer-events:none !important;box-shadow:0 0 0 9999em rgba(0,0,0,0.5);&:before{content:'';position:absolute;inset:0;backdrop-filter:brightness(0.5);pointer-events:none;}&:after{content:'';position:absolute;inset:0;backdrop-filter:brightness(2);pointer-events:none;","}","{width:100%;height:100%;position:relative;pointer-events:none;&:before{content:'';position:absolute;top:0;bottom:0;left:33.33%;right:33.33%;border-top:0;border-bottom:0;}&:after{content:'';position:absolute;top:33.33%;bottom:33.33%;left:0;right:0;border-left:0;border-right:0;}}",""],ea=>ea.clipPath&&lt$1(["clip-path:",";"],`url(#${ea.clipPath})`),GridLines,theme$2x.colors(ea=>lt$1(["","{&:after,&:before,&{border:1px solid ",";}}"],GridLines,ea.area.line))),ZoomControl=dt$1(Slider$1).withConfig({displayName:"Zoomable__ZoomControl",componentId:"sc-c5birw-0"})(["width:100%;margin-right:0;border-radius:26px;border:solid 10px #272727;box-sizing:content-box;"]),Zoomable={name:"zoomable",props:{zoomValue:Number,onMediaZoomChange:Function},events:{},render(ea,na){const ra=ea.getRect(),{zoomValue:oa,onMediaZoomChange:aa}=ea.props,sa=la=>{aa?.(limitFloatRange$2(la/100,3))};return jsxRuntimeExports.jsx("div",{className:"moveable-zoom",style:{position:"absolute",left:`${ra.width/2}px`,top:`${ra.height+20*(ea.props.zoom||1)}px`,willChange:"transform",transform:`translate(-50%, 0px) scale(${ea.props.zoom||1})`,transformOrigin:"top 50%",width:"170px"},children:jsxRuntimeExports.jsx(ZoomControl,{min:100,max:500,value:oa*100,onChange:sa})},"zoomable-viewer")}},CropperAreaLogic=ea=>{const{width:na,height:ra,y:oa,x:aa,rotation:sa,onChange:la,disable:ca,mediaZoom:ua,clipPath:da,...pa}=ea,ha=reactExports.useRef(null),ga=reactExports.useRef(null),[fa,ma]=reactExports.useState({translate:[aa,oa],width:na,height:ra,rotation:sa}),[va,xa]=reactExports.useState(!1);reactExports.useEffect(()=>{ma({translate:[aa,oa],width:na,height:ra,rotation:sa})},[aa,oa,na,ra,sa]),reactExports.useEffect(()=>{const Ea=new Mousetrap;return Ea.bind("shift",()=>{xa(!0)},"keydown"),Ea.bind("shift",()=>{xa(!1)},"keyup"),()=>{Ea.reset()}},[]);const ya=Ea=>{ga.current=Ea,Ea?.updateRect()},Aa=()=>{la({width:fa.width,height:fa.height,x:fa.translate[0],y:fa.translate[1]})},Ca=({setOrigin:Ea,dragStart:$a})=>{Ea(["%","%"]),$a&&$a.set(fa.translate)},Sa=({width:Ea,height:$a,drag:{beforeTranslate:Ma}})=>{ma({...fa,translate:Ma,width:Ea,height:$a})},wa=()=>{Aa()},ba=reactExports.useMemo(()=>({zoomable:!0,zoomValue:ua}),[ua]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CropperArea$1,{ref:ha,width:fa.width,height:fa.height,rotation:fa.rotation,x:fa.translate[0],y:fa.translate[1],clipPath:da}),jsxRuntimeExports.jsx(Moveable,{target:ha.current,ref:ya,className:"depicter-crop-area-moveable",ables:[Zoomable],props:ba,snapDirections:{center:!0,middle:!0},elementSnapDirections:{center:!0,middle:!0},keepRatio:va,edge:!1,origin:!1,snappable:!ca,resizable:!ca,throttleDrag:1,resizeFormat:Ea=>[Math.trunc(Ea[0]),Math.trunc(Ea[1])],onResize:Sa,onResizeStart:Ca,onRenderEnd:wa,...pa})]})},theme$2w=withTheme(scheme$13),CropperContainer=dt$1.div.withConfig({displayName:"CropperContainer",componentId:"sc-1vtenre-0"})(["height:100%;width:100%;",""],theme$2w.colors(ea=>lt$1(["background:",";"],ea.container.background))),CropperMedia=reactExports.forwardRef((ea,na)=>{const{className:ra,width:oa,height:aa,y:sa,x:la,rotation:ca,transformOrigin:ua="center center",children:da}=ea,pa={width:oa,height:aa,transform:`translate(${la}px, ${sa}px) rotate(${ca}deg)`,transformOrigin:ua},ha=reactExports.useCallback(ga=>{ga&&assignRef$1(ga,na)},[na]);return jsxRuntimeExports.jsx("div",{className:ra,style:pa,ref:ha,children:da})}),CropperMedia$1=dt$1(CropperMedia).withConfig({displayName:"CropperMedia",componentId:"sc-6l5fr4-0"})(["position:absolute;top:0;left:0;cursor:grab;& > *{width:100%;height:100%;}"]),MediaLogic=ea=>{const{width:na,height:ra,y:oa,x:aa,rotation:sa,onChange:la,transformOrigin:ca,children:ua,...da}=ea,[pa,ha]=reactExports.useState({translate:[aa,oa],rotation:sa,width:na,height:ra}),[ga,fa]=reactExports.useState(!1),ma=reactExports.useRef(null),va=reactExports.useRef(null);reactExports.useEffect(()=>{ha({translate:[aa,oa],rotation:sa,width:na,height:ra})},[aa,oa,sa,na,ra]),reactExports.useEffect(()=>{const Ea=new Mousetrap;return Ea.bind("shift",()=>{fa(!0)},"keydown"),Ea.bind("shift",()=>{fa(!1)},"keyup"),Ea.bind(["right","shift+right"],$a=>va.current?.request("draggable",{deltaX:$a.shiftKey?10:1,isInstant:!0})),Ea.bind(["left","shift+left"],$a=>va.current?.request("draggable",{deltaX:$a.shiftKey?-10:-1,isInstant:!0})),Ea.bind(["up","shift+up"],$a=>va.current?.request("draggable",{deltaY:$a.shiftKey?-10:-1,isInstant:!0})),Ea.bind(["down","shift+down"],$a=>va.current?.request("draggable",{deltaY:$a.shiftKey?10:1,isInstant:!0})),()=>{Ea.reset()}},[]);const xa=Ea=>{va.current=Ea,Ea?.updateRect()},ya=()=>{la({width:pa.width,height:pa.height,x:pa.translate[0],y:pa.translate[1]})},Aa=({set:Ea})=>{Ea(pa.translate)},Ca=({setOrigin:Ea,dragStart:$a})=>{Ea(["%","%"]),$a&&$a.set(pa.translate)},Sa=({beforeTranslate:Ea})=>{ha({...pa,translate:Ea})},wa=({width:Ea,height:$a,drag:{beforeTranslate:Ma}})=>{ha({...pa,translate:Ma,width:Ea,height:$a})},ba=()=>{ya()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CropperMedia$1,{ref:ma,x:pa.translate[0],y:pa.translate[1],width:pa.width,height:pa.height,transformOrigin:ca,rotation:pa.rotation,children:ua}),jsxRuntimeExports.jsx(Moveable,{target:ma.current,ref:xa,snappable:!0,snapDirections:{center:!0,middle:!0},elementSnapDirections:{center:!0,middle:!0},keepRatio:ga,edge:!1,origin:!1,draggable:!0,resizable:!0,resizeFormat:Ea=>[Math.trunc(Ea[0]),Math.trunc(Ea[1])],throttleDrag:1,renderDirections:["nw","ne","sw","se"],onDragStart:Aa,onDrag:Sa,onResize:wa,onResizeStart:Ca,onRenderEnd:ba,...da})]})},MediaCropper=reactExports.forwardRef(({className:ea,children:na,cropSize:{width:ra,height:oa},mediaSize:{width:aa,height:sa},offset:{x:la,y:ca},focalPoint:{x:ua,y:da}={x:.5,y:.5},onChange:pa,rotation:ha=0,zoom:ga,disableCropperArea:fa,clipPath:ma},va)=>{const{position:xa,mediaSize:{width:ya,height:Aa}}=calcFocalPointMediaPosition$1(aa,sa,ua,da,ra,oa);xa.x=la-xa.x,xa.y=ca-xa.y,ha=0;const Ca=reactExports.useMemo(()=>({left:xa.x,top:xa.y,right:xa.x+ya,bottom:xa.y+Aa}),[Aa,xa.x,xa.y,ya]),Sa=reactExports.useMemo(()=>({left:la,top:ca,width:ra,height:oa}),[la,ca,ra,oa]),wa=reactExports.useCallback(({x:Ta,y:_a,width:La,height:Na})=>{const za={x:limitFloatRange$2((la+ra/2-Ta)/La,2),y:limitFloatRange$2((ca+oa/2-_a)/Na,2)};pa?.({focalPoint:za,mediaSize:{width:Math.floor(La),height:Math.floor(Na)},cropSize:{width:Math.floor(ra),height:Math.floor(oa)},offset:{x:la,y:ca}})},[oa,ra,la,ca,pa]),ba=reactExports.useCallback(({x:Ta,y:_a,width:La,height:Na})=>{const za={x:limitFloatRange$2((Ta+La/2-xa.x)/ya,2),y:limitFloatRange$2((_a+Na/2-xa.y)/Aa,2)};pa?.({focalPoint:za,mediaSize:{width:Math.floor(ya),height:Math.floor(Aa)},cropSize:{width:Math.floor(La),height:Math.floor(Na)},offset:{x:Ta,y:_a}})},[Aa,xa.x,xa.y,ya,pa]),Ea=la-xa.x+ra/2,$a=ca-xa.y+oa/2,Ma=`${Ea}px ${$a}px`,Ia=fitToBox$1("cover",ra,oa,aa,sa),Oa=ya/Ia.width,Da=reactExports.useCallback(Ta=>{const _a={width:Ia.width*Ta,height:Ia.height*Ta},La={x:xa.x-(_a.width-ya)*ua,y:xa.y-(_a.height-Aa)*da};wa({...La,..._a})},[Ia.width,Ia.height,xa.x,xa.y,ya,ua,Aa,da,wa]);return jsxRuntimeExports.jsxs(CropperContainer,{className:ea,ref:va,children:[jsxRuntimeExports.jsx(MediaLogic,{zoom:ga,rootContainer:document.body,transformOrigin:Ma,width:ya,height:Aa,x:xa.x,y:xa.y,rotation:ha,keepRatio:!0,innerBounds:ha?void 0:Sa,onChange:wa,children:na}),jsxRuntimeExports.jsx(CropperAreaLogic,{zoom:ga,rootContainer:document.body,width:ra,height:oa,x:la,y:ca,rotation:ha,bounds:ha?void 0:Ca,disable:fa,onChange:ba,mediaZoom:Oa,onMediaZoomChange:Da,clipPath:ma})]})}),MediaCropper$1=dt$1(MediaCropper).withConfig({displayName:"MediaCropper",componentId:"sc-pvt9iu-0"})(["position:absolute;top:0;right:0;height:100%;width:100%;z-index:1;pointer-events:none;*{pointer-events:all;}.depicter-crop-area-moveable{z-index:2990;}"]),MediaCropperTool=({className:ea})=>{const na=useDispatch(),{t:ra}=useTranslation(),oa=reactExports.useRef(null),{cropperData:aa,setCropperData:sa}=reactExports.useContext(MediaCropperToolContext),[la,ca]=reactExports.useState(null),ua=useSelector(getWorkspaceComputedZoom),da=useSelector(getWorkspacePanningStatus),{src:pa,status:ha}=useGetImageDynamicData({sourceId:aa?.source,size:"large",isDynamic:aa?.hasDynamicTag});reactExports.useEffect(()=>{if(aa)if(la)aa.updateOnChange&&na(aa.update(la,aa.id));else{const{cropData:ma}=aa;ca(ma)}else la!==null&&ca(null)},[la,aa,na]);const ga=reactExports.useCallback(()=>{sa(void 0),reactDomExports.unstable_batchedUpdates(()=>{na(updateOverSectionControlVisibility("visible")),na(setCropperActiveMediaId(void 0))})},[na,sa]);useMousetrap([{keys:["enter"],callback:()=>{document.activeElement&&document.activeElement.blur(),la&&aa&&reactDomExports.unstable_batchedUpdates(()=>{na(aa.update(la,aa.id)),aa.onFinish?.(),ga()})}},{keys:["esc"],callback:()=>{aa&&(aa.onCancel?.(),ga())}}]),useOnClickOutside(oa,ma=>{!da&&la&&aa&&!(aa?.preventOutsideCloseSelector&&ma?.target?.closest(aa?.preventOutsideCloseSelector))&&reactDomExports.unstable_batchedUpdates(()=>{na(aa.update(la,aa.id)),aa.onFinish?.(),ga()})});const fa=reactExports.useCallback(ma=>{ca(ma)},[]);if(la&&aa){const{type:ma}=aa;let va=null;return ha==="rendering"?va=jsxRuntimeExports.jsxs("small",{children:[ra("Loading"),"..."]}):ha==="source-detached"||!pa?va=jsxRuntimeExports.jsx("small",{children:ra("Image source not found.")}):ma==="image"&&pa&&["static","rendered"].includes(ha)&&(va=jsxRuntimeExports.jsx("img",{src:pa,alt:""})),jsxRuntimeExports.jsx(MediaCropper$1,{...la,zoom:1/ua,ref:oa,className:`${ea} depicter-keep-element-selection depicter-media-cropper`,disableCropperArea:aa?.disableCropperArea,clipPath:aa?.clipPath,onChange:fa,children:va})}return null},MediaCropperTool$1=dt$1(MediaCropperTool).withConfig({displayName:"MediaCropperTool",componentId:"sc-kywbf1-0"})(["z-index:10000;"]),rotateIcon=`<svg xmlns="http://www.w3.org/2000/svg" width="9" height="8.999" viewBox="0 0 9 8.999">
  <g id="loop" transform="translate(0.001)">
    <path id="Subtraction_76" data-name="Subtraction 76" d="M4.5,9A4.5,4.5,0,1,1,8.306,2.1H7.048A3.5,3.5,0,1,0,8,4.5H9A4.505,4.505,0,0,1,4.5,9Z" fill="#fff"/>
    <g id="Group_417" data-name="Group 417" transform="translate(5.75 0.15)">
      <path id="Rectangle_1607" data-name="Rectangle 1607" d="M0,0H.8a0,0,0,0,1,0,0V.8a0,0,0,0,1,0,0h0A.8.8,0,0,1,0,0V0A0,0,0,0,1,0,0Z" transform="translate(2.064 2.752) rotate(-90)" fill="#fff"/>
      <rect id="Rectangle_1608" data-name="Rectangle 1608" width="0.8" height="1.376" transform="translate(0.688 2.752) rotate(-90)" fill="#fff"/>
      <rect id="Rectangle_1609" data-name="Rectangle 1609" width="1.376" height="0.8" transform="translate(2.064 2.064) rotate(-90)" fill="#fff"/>
      <path id="Rectangle_1611" data-name="Rectangle 1611" d="M.4,0h0A.4.4,0,0,1,.8.4V.688a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V.4A.4.4,0,0,1,.4,0Z" transform="translate(0 2.752) rotate(-90)" fill="#fff"/>
      <path id="Rectangle_1612" data-name="Rectangle 1612" d="M0,0H.288a.4.4,0,0,1,.4.4v0a.4.4,0,0,1-.4.4H0a0,0,0,0,1,0,0V0A0,0,0,0,1,0,0Z" transform="translate(2.064 0.688) rotate(-90)" fill="#fff"/>
    </g>
  </g>
</svg>
`,defaultColors$1p={border:"#00D4E4",rotateControl:{background:"#00D4E4",icon:"white"},guidelines:"#FF70C2",edgeControls:"white",textResizeControl:"#00D4E4"},colors$1p={dark:defaultColors$1p},defaultSizing$1b={borderWidth:"2px",guidelineWidth:"1px",edgeControls:"10px",rotateControl:{size:"15px",space:"10px"},textResizeControl:{height:"22px",width:"10px",radius:"2px"}},sizes$1p={default:defaultSizing$1b},scheme$12=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1p,sizes:sizes$1p},Symbol.toStringTag,{value:"Module"})),theme$2v=withTheme(scheme$12),TransformTool=dt$1(TransformTool$1).withConfig({displayName:"TransformTool",componentId:"sc-1q4icue-0"})(["position:absolute;top:0;left:0;> *{pointer-events:all;}&.ms-shift-hold{.moveable-area{pointer-events:none !important;}}.ms-moveable{.moveable-control{border-radius:0;}.moveable-rotation-control{background:none;}.moveable-dragline{display:none;}"," "," ","}"],theme$2v.colors(ea=>lt$1([".moveable-control{border-color:",";background:",";}.moveable-line{background:",";pointer-events:none;&.moveable-rotation-line{background:transparent;}}.moveable-guideline{background:",";}.moveable-rotation-control{border:none;background:"," url(",") no-repeat center !important;}&.ms-moveable-text .moveable-control{&.moveable-w,&.moveable-e{background:",";}}"],ea.border,ea.edgeControls,ea.border,ea.guidelines,ea.rotateControl.background,encodeSvg(rotateIcon),ea.textResizeControl)),ea=>ea.hideLines&&lt$1([".moveable-line:not(.moveable-guideline){background:transparent;}"]),theme$2v.sizes(ea=>lt$1([".moveable-control{width:",";height:",";border-width:",";margin-top:calc(-"," / 2);margin-left:calc(-"," / 2);}.moveable-line{width:",";height:",";}.moveable-guideline{width:",";height:",";}.moveable-rotation-control{width:",";height:",";margin-top:calc(-"," / 2);margin-left:calc(-"," / 2);border-radius:100%;}&.ms-moveable-text .moveable-control{&.moveable-w,&.moveable-e{height:",";width:",";margin-top:calc(-"," / 2);margin-left:calc(-"," / 2);border-radius:",";}}"],ea.edgeControls,ea.edgeControls,ea.borderWidth,ea.edgeControls,ea.edgeControls,ea.borderWidth,ea.borderWidth,ea.guidelineWidth,ea.guidelineWidth,ea.rotateControl.size,ea.rotateControl.size,ea.rotateControl.size,ea.rotateControl.size,ea.textResizeControl.height,ea.textResizeControl.width,ea.textResizeControl.height,ea.textResizeControl.width,ea.textResizeControl.radius))),TransformToolController=React.memo(ea=>{const{container:na}=ea,ra=useSelector(getActiveSectionRelativeWrapperBoundaries,shallowEqual$2),oa=useSelector(getWorkspaceComputedZoom),aa=useSelector(getActiveBreakpoint),sa=useSelector(getOverSectionControlsVisibility)==="visible",la=useSelector(getActiveTransformToolObjects,equal),ca=reactExports.useMemo(()=>ra?[ra.left,ra.right]:[],[ra]),ua=reactExports.useMemo(()=>ra?[ra.top,ra.bottom]:[],[ra]),da=useDispatch(),{refs:pa}=reactExports.useContext(HTMLElementRefsContext),{event:ha}=reactExports.useContext(TransformToolStartEventContext),ga=reactExports.useMemo(()=>{const Aa={};return Object.keys(pa).filter(Ca=>/^element-\d+$/g.test(Ca)).forEach(Ca=>{Aa[Ca]=pa[Ca]}),Aa},[pa]),fa=useUpdateElementTransform(aa),ma=reactExports.useCallback((Aa,Ca)=>{reactDomExports.unstable_batchedUpdates(()=>{da(updateTransformState("end")),Ca&&fa(Aa),da(clearTransformToolFrames())})},[da,fa]),va=reactExports.useCallback(()=>{da(updateTransformState("start"))},[da]),xa=reactExports.useCallback(Aa=>{da(updateTransformToolFrames(Aa))},[da]),ya=Object.keys(la);return reactExports.useEffect(()=>{ya.length===0&&reactDomExports.unstable_batchedUpdates(()=>{da(clearTransformToolFrames()),da(updateTransformState("end"))})},[da,ya]),jsxRuntimeExports.jsx(TransformTool,{visibility:sa?"visible":"hidden",transforms:la,startEvent:ha?.nativeEvent,elementsRef:ga,container:na,onEnd:ma,onStart:va,verticalGuidelines:ca,horizontalGuidelines:ua,onUpdate:xa,zoom:1/oa})}),shortcuts={elements:{shortcuts:[{id:"copyElementShortcut",keys:["mod+c"],thunk:copyElements,dependency:ea=>!!getSelectedElements(ea).length},{id:"deleteElementShortcut",keys:["del","backspace"],thunk:removeSelectedElements,dependency:ea=>!!getSelectedElements(ea).length&&!getActiveMediaCropperId(ea)},{id:"duplicateElementShortcut",keys:["mod+d"],thunk:duplicateSelectedElements,dependency:ea=>!!getSelectedElements(ea).length},{id:"groupElementShortcut",keys:["mod+g"],thunk:groupSelectedElements,dependency:ea=>getSelectedElementsIsGroupable(ea)&&getSelectedElements(ea).length>1},{id:"ungroupElementShortcut",keys:["mod+g"],thunk:ungroupSelectedElements,dependency:ea=>getSelectedElementsIsGrouped(ea)&&getSelectedElements(ea).length===1},{id:"lockElementShortcut",keys:["mod+k"],thunk:()=>toggleSelectedElementsLock(!0),dependency:ea=>!getSelectedElementsAllLocked(ea)},{id:"unlockElementShortcut",keys:["mod+k"],thunk:()=>toggleSelectedElementsLock(!1),dependency:getSelectedElementsAllLocked},{id:"createTextElement",keys:"t",thunk:()=>createElementOnActiveSection(textItemAssetContent[0].payload)},{id:"sendElementsForward",keys:["mod+]"],thunk:()=>changeSelectedElementsDepth("forward"),dependency:ea=>!!getSelectedElements(ea).length},{id:"sendElementsBackward",keys:["mod+["],thunk:()=>changeSelectedElementsDepth("backward"),dependency:ea=>!!getSelectedElements(ea).length}],element:null}},useOnBoundariesChange=(ea,na=0,ra=!1,oa=null)=>{const aa=reactExports.useRef(null),sa=reactExports.useRef(),la=reactExports.useRef(null);return reactExports.useLayoutEffect(()=>{if(la.current){const ca=getElementRelativeBoundaries(la.current,document.body);(ra&&!shallowEqual$2(ca,oa)||!ra&&!shallowEqual$2(ca,aa.current))&&(aa.current=ca,na?(clearTimeout(sa.current),sa.current=window.setTimeout(ea,na,ca)):ea(ca,la.current))}}),reactExports.useCallback(ca=>{la.current=ca},[])};window.requestIdleCallback=window.requestIdleCallback||function(ea){const na=Date.now();return setTimeout(()=>{ea({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-na))}})},1)};window.cancelIdleCallback=window.cancelIdleCallback||function(ea){clearTimeout(ea)};var __awaiter$5=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};const WOFF="application/font-woff",JPEG="image/jpeg",mimes={woff:WOFF,woff2:WOFF,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:JPEG,jpeg:JPEG,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function getExtension(ea){const na=/\.([^./]*?)$/g.exec(ea);return na?na[1]:""}function getMimeType(ea){const na=getExtension(ea).toLowerCase();return mimes[na]||""}function resolveUrl(ea,na){if(ea.match(/^[a-z]+:\/\//i))return ea;if(ea.match(/^\/\//))return window.location.protocol+ea;if(ea.match(/^[a-z]+:/i))return ea;const ra=document.implementation.createHTMLDocument(),oa=ra.createElement("base"),aa=ra.createElement("a");return ra.head.appendChild(oa),ra.body.appendChild(aa),na&&(oa.href=na),aa.href=ea,aa.href}function isDataUrl(ea){return ea.search(/^(data:)/)!==-1}function makeDataUrl(ea,na){return`data:${na};base64,${ea}`}function parseDataUrlContent(ea){return ea.split(/,/)[1]}const uuid=function ea(){let na=0;const ra=()=>`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4);return()=>(na+=1,`u${ra()}${na}`)}();function toArray(ea){const na=[];for(let ra=0,oa=ea.length;ra<oa;ra+=1)na.push(ea[ra]);return na}function px(ea,na){const ra=window.getComputedStyle(ea).getPropertyValue(na);return parseFloat(ra.replace("px",""))}function getNodeWidth(ea){const na=px(ea,"border-left-width"),ra=px(ea,"border-right-width");return ea.clientWidth+na+ra}function getNodeHeight(ea){const na=px(ea,"border-top-width"),ra=px(ea,"border-bottom-width");return ea.clientHeight+na+ra}function getPixelRatio(){let ea,na;try{na=process}catch{}const ra=na&&na.env?na.env.devicePixelRatio:null;return ra&&(ea=parseInt(ra,10),Number.isNaN(ea)&&(ea=1)),ea||window.devicePixelRatio||1}function createImage(ea){return new Promise((na,ra)=>{const oa=new Image;oa.onload=()=>na(oa),oa.onerror=ra,oa.crossOrigin="anonymous",oa.decoding="sync",oa.src=ea})}function svgToDataURL(ea){return __awaiter$5(this,void 0,void 0,function*(){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(ea)).then(encodeURIComponent).then(na=>`data:image/svg+xml;charset=utf-8,${na}`)})}function nodeToDataURL(ea,na,ra){return __awaiter$5(this,void 0,void 0,function*(){const oa="http://www.w3.org/2000/svg",aa=document.createElementNS(oa,"svg"),sa=document.createElementNS(oa,"foreignObject");return aa.setAttribute("width",`${na}`),aa.setAttribute("height",`${ra}`),aa.setAttribute("viewBox",`0 0 ${na} ${ra}`),sa.setAttribute("width","100%"),sa.setAttribute("height","100%"),sa.setAttribute("x","0"),sa.setAttribute("y","0"),sa.setAttribute("externalResourcesRequired","true"),aa.appendChild(sa),sa.appendChild(ea),svgToDataURL(aa)})}const cache={};function getCacheKey(ea){return/ttf|otf|eot|woff2?/i.test(ea)?ea.replace(/.*\//,""):ea}function getBlobFromURL(ea,na){const ra=getCacheKey(ea);if(cache[ra]!=null)return cache[ra];na.cacheBust&&(ea+=(/\?/.test(ea)?"&":"?")+new Date().getTime());const oa=sa=>{let la="";if(na.imagePlaceholder){const ua=na.imagePlaceholder.split(/,/);ua&&ua[1]&&(la=ua[1])}let ca=`Failed to fetch resource: ${ea}`;return sa&&(ca=typeof sa=="string"?sa:sa.message),ca&&console.error(ca),{blob:la,contentType:""}},aa=window.fetch(ea,na.fetchRequestInit).then(sa=>sa.blob().then(la=>({blob:la,contentType:sa.headers.get("Content-Type")||""}))).then(({blob:sa,contentType:la})=>new Promise((ca,ua)=>{const da=new FileReader;da.onloadend=()=>ca({contentType:la,blob:da.result}),da.onerror=ua,da.readAsDataURL(sa)})).then(({blob:sa,contentType:la})=>({contentType:la,blob:parseDataUrlContent(sa)})).catch(oa);return cache[ra]=aa,aa}function formatCSSText(ea){const na=ea.getPropertyValue("content");return`${ea.cssText} content: '${na.replace(/'|"/g,"")}';`}function formatCSSProperties(ea){return toArray(ea).map(na=>{const ra=ea.getPropertyValue(na),oa=ea.getPropertyPriority(na);return`${na}: ${ra}${oa?" !important":""};`}).join(" ")}function getPseudoElementStyle(ea,na,ra){const oa=`.${ea}:${na}`,aa=ra.cssText?formatCSSText(ra):formatCSSProperties(ra);return document.createTextNode(`${oa}{${aa}}`)}function clonePseudoElement(ea,na,ra){const oa=window.getComputedStyle(ea,ra),aa=oa.getPropertyValue("content");if(aa===""||aa==="none")return;const sa=uuid();try{na.className=`${na.className} ${sa}`}catch{return}const la=document.createElement("style");la.appendChild(getPseudoElementStyle(sa,ra,oa)),na.appendChild(la)}function clonePseudoElements(ea,na){clonePseudoElement(ea,na,":before"),clonePseudoElement(ea,na,":after")}var __awaiter$4=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};function cloneCanvasElement(ea){return __awaiter$4(this,void 0,void 0,function*(){const na=ea.toDataURL();return na==="data:,"?Promise.resolve(ea.cloneNode(!1)):createImage(na)})}function cloneVideoElement(ea,na){return __awaiter$4(this,void 0,void 0,function*(){return Promise.resolve(ea.poster).then(ra=>getBlobFromURL(ra,na)).then(ra=>makeDataUrl(ra.blob,getMimeType(ea.poster)||ra.contentType)).then(ra=>createImage(ra))})}function cloneSingleNode(ea,na){return __awaiter$4(this,void 0,void 0,function*(){return ea instanceof HTMLCanvasElement?cloneCanvasElement(ea):ea instanceof HTMLVideoElement&&ea.poster?cloneVideoElement(ea,na):Promise.resolve(ea.cloneNode(!1))})}const isSlotElement=ea=>ea.tagName!=null&&ea.tagName.toUpperCase()==="SLOT";function cloneChildren(ea,na,ra){var oa;return __awaiter$4(this,void 0,void 0,function*(){const aa=isSlotElement(ea)&&ea.assignedNodes?toArray(ea.assignedNodes()):toArray(((oa=ea.shadowRoot)!==null&&oa!==void 0?oa:ea).childNodes);return aa.length===0||ea instanceof HTMLVideoElement?Promise.resolve(na):aa.reduce((sa,la)=>sa.then(()=>cloneNode$1(la,ra)).then(ca=>{ca&&na.appendChild(ca)}),Promise.resolve()).then(()=>na)})}function cloneCSSStyle(ea,na){const ra=window.getComputedStyle(ea),oa=na.style;oa&&(ra.cssText?oa.cssText=ra.cssText:toArray(ra).forEach(aa=>{oa.setProperty(aa,ra.getPropertyValue(aa),ra.getPropertyPriority(aa))}))}function cloneInputValue(ea,na){ea instanceof HTMLTextAreaElement&&(na.innerHTML=ea.value),ea instanceof HTMLInputElement&&na.setAttribute("value",ea.value)}function decorate(ea,na){return __awaiter$4(this,void 0,void 0,function*(){return na instanceof Element?Promise.resolve().then(()=>cloneCSSStyle(ea,na)).then(()=>clonePseudoElements(ea,na)).then(()=>cloneInputValue(ea,na)).then(()=>na):Promise.resolve(na)})}function cloneNode$1(ea,na,ra){return __awaiter$4(this,void 0,void 0,function*(){return!ra&&na.filter&&!na.filter(ea)?Promise.resolve(null):Promise.resolve(ea).then(oa=>cloneSingleNode(oa,na)).then(oa=>cloneChildren(ea,oa,na)).then(oa=>decorate(ea,oa))})}var __awaiter$3=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};const URL_REGEX=/url\((['"]?)([^'"]+?)\1\)/g,URL_WITH_FORMAT_REGEX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,FONT_SRC_REGEX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function toRegex(ea){const na=ea.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${na})(['"]?\\))`,"g")}function parseURLs(ea){const na=[];return ea.replace(URL_REGEX,(ra,oa,aa)=>(na.push(aa),ra)),na.filter(ra=>!isDataUrl(ra))}function embed(ea,na,ra,oa,aa){const sa=ra?resolveUrl(na,ra):na;return Promise.resolve(sa).then(la=>getBlobFromURL(la,oa)).then(la=>typeof la=="string"?makeDataUrl(la,getMimeType(na)):makeDataUrl(la.blob,getMimeType(na)||la.contentType)).then(la=>ea.replace(toRegex(na),`$1${la}$3`)).then(la=>la,()=>sa)}function filterPreferredFontFormat(ea,{preferredFontFormat:na}){return na?ea.replace(FONT_SRC_REGEX,ra=>{for(;;){const[oa,,aa]=URL_WITH_FORMAT_REGEX.exec(ra)||[];if(!aa)return"";if(aa===na)return`src: ${oa};`}}):ea}function shouldEmbed(ea){return ea.search(URL_REGEX)!==-1}function embedResources(ea,na,ra){return __awaiter$3(this,void 0,void 0,function*(){if(!shouldEmbed(ea))return Promise.resolve(ea);const oa=filterPreferredFontFormat(ea,ra);return Promise.resolve(oa).then(parseURLs).then(aa=>aa.reduce((sa,la)=>sa.then(ca=>embed(ca,la,na,ra)),Promise.resolve(oa)))})}var __awaiter$2=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};function embedBackground(ea,na){var ra;return __awaiter$2(this,void 0,void 0,function*(){const oa=(ra=ea.style)===null||ra===void 0?void 0:ra.getPropertyValue("background");return oa?Promise.resolve(oa).then(aa=>embedResources(aa,null,na)).then(aa=>(ea.style.setProperty("background",aa,ea.style.getPropertyPriority("background")),ea)):Promise.resolve(ea)})}function embedImageNode(ea,na){return __awaiter$2(this,void 0,void 0,function*(){if(!(ea instanceof HTMLImageElement&&!isDataUrl(ea.src))&&!(ea instanceof SVGImageElement&&!isDataUrl(ea.href.baseVal)))return Promise.resolve(ea);const ra=ea instanceof HTMLImageElement?ea.src:ea.href.baseVal;return Promise.resolve(ra).then(oa=>getBlobFromURL(oa,na)).then(oa=>makeDataUrl(oa.blob,getMimeType(ra)||oa.contentType)).then(oa=>new Promise((aa,sa)=>{ea.onload=aa,ea.onerror=sa,ea instanceof HTMLImageElement?(ea.srcset="",ea.src=oa):ea.href.baseVal=oa})).then(()=>ea,()=>ea)})}function embedChildren(ea,na){return __awaiter$2(this,void 0,void 0,function*(){const oa=toArray(ea.childNodes).map(aa=>embedImages(aa,na));return Promise.all(oa).then(()=>ea)})}function embedImages(ea,na){return __awaiter$2(this,void 0,void 0,function*(){return ea instanceof Element?Promise.resolve(ea).then(ra=>embedBackground(ra,na)).then(ra=>embedImageNode(ra,na)).then(ra=>embedChildren(ra,na)):Promise.resolve(ea)})}function applyStyleWithOptions(ea,na){const{style:ra}=ea;na.backgroundColor&&(ra.backgroundColor=na.backgroundColor),na.width&&(ra.width=`${na.width}px`),na.height&&(ra.height=`${na.height}px`);const oa=na.style;return oa!=null&&Object.keys(oa).forEach(aa=>{ra[aa]=oa[aa]}),ea}var __awaiter$1=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};const cssFetchCache={},fontsCSSTextCache={};function fetchCSS(ea){const na=cssFetchCache[ea];if(na!=null)return na;const ra=window.fetch(ea).then(oa=>({url:ea,cssText:oa.text()}));return cssFetchCache[ea]=ra,ra}function embedFonts(ea,na){return __awaiter$1(this,void 0,void 0,function*(){return ea.cssText.then(ra=>{let oa=ra;const aa=/url\(["']?([^"')]+)["']?\)/g,la=(oa.match(/url\([^)]+\)/g)||[]).map(ca=>{let ua=ca.replace(aa,"$1");return ua.startsWith("https://")||(ua=new URL(ua,ea.url).href),window.fetch(ua,na.fetchRequestInit).then(da=>da.blob()).then(da=>new Promise((pa,ha)=>{const ga=new FileReader;ga.onloadend=()=>{oa=oa.replace(ca,`url(${ga.result})`),pa([ca,ga.result])},ga.onerror=ha,ga.readAsDataURL(da)}))});return Promise.all(la).then(()=>oa)})})}function parseCSS(ea){if(ea==null)return[];const na=[],ra=/(\/\*[\s\S]*?\*\/)/gi;let oa=ea.replace(ra,"");const aa=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const ua=aa.exec(oa);if(ua===null)break;na.push(ua[0])}oa=oa.replace(aa,"");const sa=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,la="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",ca=new RegExp(la,"gi");for(;;){let ua=sa.exec(oa);if(ua===null){if(ua=ca.exec(oa),ua===null)break;sa.lastIndex=ca.lastIndex}else ca.lastIndex=sa.lastIndex;na.push(ua[0])}return na}function getCSSRules(ea,na){return __awaiter$1(this,void 0,void 0,function*(){const ra=[],oa=[];return ea.forEach(aa=>{if("cssRules"in aa)try{toArray(aa.cssRules).forEach((sa,la)=>{if(sa.type===CSSRule.IMPORT_RULE){let ca=la+1;const ua=sa.href,da=fetchCSS(ua).then(pa=>pa?embedFonts(pa,na):"").then(pa=>parseCSS(pa).forEach(ha=>{try{aa.insertRule(ha,ha.startsWith("@import")?ca+=1:aa.cssRules.length)}catch(ga){console.error("Error inserting rule from remote css",{rule:ha,error:ga})}})).catch(pa=>{console.error("Error loading remote css",pa.toString())});oa.push(da)}})}catch(sa){const la=ea.find(ca=>ca.href==null)||document.styleSheets[0];aa.href!=null&&oa.push(fetchCSS(aa.href).then(ca=>ca?embedFonts(ca,na):"").then(ca=>parseCSS(ca).forEach(ua=>{la.insertRule(ua,aa.cssRules.length)})).catch(ca=>{console.error("Error loading remote stylesheet",ca.toString())})),console.error("Error inlining remote css file",sa.toString())}}),Promise.all(oa).then(()=>(ea.forEach(aa=>{if("cssRules"in aa)try{toArray(aa.cssRules).forEach(sa=>{ra.push(sa)})}catch(sa){console.error(`Error while reading CSS rules from ${aa.href}`,sa.toString())}}),ra))})}function getWebFontRules(ea){return ea.filter(na=>na.type===CSSRule.FONT_FACE_RULE).filter(na=>shouldEmbed(na.style.getPropertyValue("src")))}function parseWebFontRules(ea,na){return __awaiter$1(this,void 0,void 0,function*(){return new Promise((ra,oa)=>{ea.ownerDocument==null&&oa(new Error("Provided element is not within a Document")),ra(toArray(ea.ownerDocument.styleSheets))}).then(ra=>getCSSRules(ra,na)).then(getWebFontRules)})}function getWebFontCSS(ea,na){return __awaiter$1(this,void 0,void 0,function*(){return parseWebFontRules(ea,na).then(ra=>Promise.all(ra.map(oa=>{const aa=oa.parentStyleSheet?oa.parentStyleSheet.href:null;return embedResources(oa.cssText,aa,na)}))).then(ra=>{const oa=ra.join(`
`);return na.fontsCacheKey&&(fontsCSSTextCache[na.fontsCacheKey]=oa),oa})})}function embedWebFonts(ea,na){return __awaiter$1(this,void 0,void 0,function*(){let ra;return na.fontEmbedCSS?ra=Promise.resolve(na.fontEmbedCSS):na.fontsCacheKey&&fontsCSSTextCache[na.fontsCacheKey]?ra=Promise.resolve(fontsCSSTextCache[na.fontsCacheKey]):ra=getWebFontCSS(ea,na),ra.then(oa=>{const aa=document.createElement("style"),sa=document.createTextNode(oa);return aa.appendChild(sa),ea.firstChild?ea.insertBefore(aa,ea.firstChild):ea.appendChild(aa),ea})})}var __awaiter=function(ea,na,ra,oa){function aa(sa){return sa instanceof ra?sa:new ra(function(la){la(sa)})}return new(ra||(ra=Promise))(function(sa,la){function ca(pa){try{da(oa.next(pa))}catch(ha){la(ha)}}function ua(pa){try{da(oa.throw(pa))}catch(ha){la(ha)}}function da(pa){pa.done?sa(pa.value):aa(pa.value).then(ca,ua)}da((oa=oa.apply(ea,na||[])).next())})};function getImageSize(ea,na={}){const ra=na.width||getNodeWidth(ea),oa=na.height||getNodeHeight(ea);return{width:ra,height:oa}}function toSvg(ea,na={}){return __awaiter(this,void 0,void 0,function*(){const{width:ra,height:oa}=getImageSize(ea,na);return Promise.resolve(ea).then(aa=>cloneNode$1(aa,na,!0)).then(aa=>embedWebFonts(aa,na)).then(aa=>embedImages(aa,na)).then(aa=>applyStyleWithOptions(aa,na)).then(aa=>nodeToDataURL(aa,ra,oa))})}const dimensionCanvasLimit=16384;function checkCanvasDimensions(ea){(ea.width>dimensionCanvasLimit||ea.height>dimensionCanvasLimit)&&(ea.width>dimensionCanvasLimit&&ea.height>dimensionCanvasLimit?ea.width>ea.height?(ea.height*=dimensionCanvasLimit/ea.width,ea.width=dimensionCanvasLimit):(ea.width*=dimensionCanvasLimit/ea.height,ea.height=dimensionCanvasLimit):ea.width>dimensionCanvasLimit?(ea.height*=dimensionCanvasLimit/ea.width,ea.width=dimensionCanvasLimit):(ea.width*=dimensionCanvasLimit/ea.height,ea.height=dimensionCanvasLimit))}function toCanvas(ea,na={}){return __awaiter(this,void 0,void 0,function*(){return toSvg(ea,na).then(createImage).then(ra=>{const oa=document.createElement("canvas"),aa=oa.getContext("2d"),sa=na.pixelRatio||getPixelRatio(),{width:la,height:ca}=getImageSize(ea,na),ua=na.canvasWidth||la,da=na.canvasHeight||ca;return oa.width=ua*sa,oa.height=da*sa,na.skipAutoScale||checkCanvasDimensions(oa),oa.style.width=`${ua}`,oa.style.height=`${da}`,na.backgroundColor&&(aa.fillStyle=na.backgroundColor,aa.fillRect(0,0,oa.width,oa.height)),aa.drawImage(ra,0,0,oa.width,oa.height),oa})})}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;var ea=util&&util.__awaiter||function(wa,ba,Ea,$a){function Ma(Ia){return Ia instanceof Ea?Ia:new Ea(function(Oa){Oa(Ia)})}return new(Ea||(Ea=Promise))(function(Ia,Oa){function Da(La){try{_a($a.next(La))}catch(Na){Oa(Na)}}function Ta(La){try{_a($a.throw(La))}catch(Na){Oa(Na)}}function _a(La){La.done?Ia(La.value):Ma(La.value).then(Da,Ta)}_a(($a=$a.apply(wa,ba||[])).next())})},na=util&&util.__generator||function(wa,ba){var Ea={label:0,sent:function(){if(Ia[0]&1)throw Ia[1];return Ia[1]},trys:[],ops:[]},$a,Ma,Ia,Oa;return Oa={next:Da(0),throw:Da(1),return:Da(2)},typeof Symbol=="function"&&(Oa[Symbol.iterator]=function(){return this}),Oa;function Da(_a){return function(La){return Ta([_a,La])}}function Ta(_a){if($a)throw new TypeError("Generator is already executing.");for(;Ea;)try{if($a=1,Ma&&(Ia=_a[0]&2?Ma.return:_a[0]?Ma.throw||((Ia=Ma.return)&&Ia.call(Ma),0):Ma.next)&&!(Ia=Ia.call(Ma,_a[1])).done)return Ia;switch(Ma=0,Ia&&(_a=[_a[0]&2,Ia.value]),_a[0]){case 0:case 1:Ia=_a;break;case 4:return Ea.label++,{value:_a[1],done:!1};case 5:Ea.label++,Ma=_a[1],_a=[0];continue;case 7:_a=Ea.ops.pop(),Ea.trys.pop();continue;default:if(Ia=Ea.trys,!(Ia=Ia.length>0&&Ia[Ia.length-1])&&(_a[0]===6||_a[0]===2)){Ea=0;continue}if(_a[0]===3&&(!Ia||_a[1]>Ia[0]&&_a[1]<Ia[3])){Ea.label=_a[1];break}if(_a[0]===6&&Ea.label<Ia[1]){Ea.label=Ia[1],Ia=_a;break}if(Ia&&Ea.label<Ia[2]){Ea.label=Ia[2],Ea.ops.push(_a);break}Ia[2]&&Ea.ops.pop(),Ea.trys.pop();continue}_a=ba.call(wa,Ea)}catch(La){_a=[6,La],Ma=0}finally{$a=Ia=0}if(_a[0]&5)throw _a[1];return{value:_a[0]?_a[1]:void 0,done:!0}}};Object.defineProperty(util,"__esModule",{value:!0}),util.nodeToDataURL=util.svgToDataURL=util.createImage=util.canvasToBlob=util.getPixelRatio=util.getNodeHeight=util.getNodeWidth=util.toArray=util.delay=util.uuid=util.parseDataUrlContent=util.makeDataUrl=util.isDataUrl=util.resolveUrl=util.getMimeType=util.getExtension=void 0;var ra="application/font-woff",oa="image/jpeg",aa={woff:ra,woff2:ra,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:oa,jpeg:oa,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function sa(wa){var ba=/\.([^./]*?)$/g.exec(wa);return ba?ba[1]:""}util.getExtension=sa;function la(wa){var ba=sa(wa).toLowerCase();return aa[ba]||""}util.getMimeType=la;function ca(wa,ba){if(wa.match(/^[a-z]+:\/\//i))return wa;if(wa.match(/^\/\//))return window.location.protocol+wa;if(wa.match(/^[a-z]+:/i))return wa;var Ea=document.implementation.createHTMLDocument(),$a=Ea.createElement("base"),Ma=Ea.createElement("a");return Ea.head.appendChild($a),Ea.body.appendChild(Ma),ba&&($a.href=ba),Ma.href=wa,Ma.href}util.resolveUrl=ca;function ua(wa){return wa.search(/^(data:)/)!==-1}util.isDataUrl=ua;function da(wa,ba){return"data:"+ba+";base64,"+wa}util.makeDataUrl=da;function pa(wa){return wa.split(/,/)[1]}util.parseDataUrlContent=pa,util.uuid=function(){var ba=0,Ea=function(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)};return function(){return ba+=1,"u"+Ea()+ba}}();var ha=function(wa){return function(ba){return new Promise(function(Ea){return setTimeout(function(){return Ea(ba)},wa)})}};util.delay=ha;function ga(wa){for(var ba=[],Ea=0,$a=wa.length;Ea<$a;Ea+=1)ba.push(wa[Ea]);return ba}util.toArray=ga;function fa(wa,ba){var Ea=window.getComputedStyle(wa).getPropertyValue(ba);return parseFloat(Ea.replace("px",""))}function ma(wa){var ba=fa(wa,"border-left-width"),Ea=fa(wa,"border-right-width");return wa.clientWidth+ba+Ea}util.getNodeWidth=ma;function va(wa){var ba=fa(wa,"border-top-width"),Ea=fa(wa,"border-bottom-width");return wa.clientHeight+ba+Ea}util.getNodeHeight=va;function xa(){var wa,ba;try{ba=process}catch{}var Ea=ba&&ba.env?ba.env.devicePixelRatio:null;return Ea&&(wa=parseInt(Ea,10),Number.isNaN(wa)&&(wa=1)),wa||window.devicePixelRatio||1}util.getPixelRatio=xa;function ya(wa,ba){return ba===void 0&&(ba={}),wa.toBlob?new Promise(function(Ea){return wa.toBlob(Ea,ba.type?ba.type:"image/png",ba.quality?ba.quality:1)}):new Promise(function(Ea){for(var $a=window.atob(wa.toDataURL(ba.type?ba.type:void 0,ba.quality?ba.quality:void 0).split(",")[1]),Ma=$a.length,Ia=new Uint8Array(Ma),Oa=0;Oa<Ma;Oa+=1)Ia[Oa]=$a.charCodeAt(Oa);Ea(new Blob([Ia],{type:ba.type?ba.type:"image/png"}))})}util.canvasToBlob=ya;function Aa(wa){return new Promise(function(ba,Ea){var $a=new Image;$a.onload=function(){return ba($a)},$a.onerror=Ea,$a.crossOrigin="anonymous",$a.decoding="sync",$a.src=wa})}util.createImage=Aa;function Ca(wa){return ea(this,void 0,void 0,function(){return na(this,function(ba){return[2,Promise.resolve().then(function(){return new XMLSerializer().serializeToString(wa)}).then(encodeURIComponent).then(function(Ea){return"data:image/svg+xml;charset=utf-8,"+Ea})]})})}util.svgToDataURL=Ca;function Sa(wa,ba,Ea){return ea(this,void 0,void 0,function(){var $a,Ma,Ia;return na(this,function(Oa){return $a="http://www.w3.org/2000/svg",Ma=document.createElementNS($a,"svg"),Ia=document.createElementNS($a,"foreignObject"),Ma.setAttribute("width",""+ba),Ma.setAttribute("height",""+Ea),Ma.setAttribute("viewBox","0 0 "+ba+" "+Ea),Ia.setAttribute("width","100%"),Ia.setAttribute("height","100%"),Ia.setAttribute("x","0"),Ia.setAttribute("y","0"),Ia.setAttribute("externalResourcesRequired","true"),Ma.appendChild(Ia),Ia.appendChild(wa),[2,Ca(Ma)]})})}return util.nodeToDataURL=Sa,util}var utilExports=requireUtil();const useGetSectionSizingStyles=(ea,na)=>{const ra=useSelector(getActiveBreakpoint),oa=useSelector(getSectionLayout),aa=na==="teaser",sa=aa?"boxed":oa,la=breakpointBoxes[ra],ca=useSelector(getDocumentWrapperSideSpace),{width:{value:ua,unit:da},height:{value:pa,unit:ha}}=getResponsiveValue(ea,ra);if(sa==="boxed"&&(ha==="%"||da==="%")||sa==="fullwidth"&&ha==="%")throw new Error("Layout and wrapper sizing are not compatible");const ga={width:`${ua+ca*2}px`,height:`${pa}px`,margin:"20px"};return(sa==="fullwidth"||sa==="fullscreen")&&(ga.minWidth="70vw",sa==="fullscreen"&&(ga.minHeight="80vh")),la&&(ga.width=aa?ua:`${Math.max(ua+ca*2,la.width)}px`,ga.height=`${sa==="fullscreen"?Math.max(pa,la.height):pa}px`,ga.minWidth="",ga.minHeight=""),DocType.type==="carousel"&&(ga.minWidth=`${Math.min(ua*3.5,breakpointBoxes[ra]?.width||Number.MAX_SAFE_INTEGER)}px`,ga.width=`${ua}${da}`),ga},useUpdateSectionBoundaries=ea=>{const na=useDispatch(),ra=useSelector(getSectionBoundaries(ea),shallowEqual$2);return useSelector(getWorkspacePan),useOnBoundariesChange((oa,aa)=>{na(updateSectionComputedValues({id:ea,values:{boundaries:oa,clientSize:{width:aa.clientWidth,height:aa.clientHeight}}}))},0,!0,ra)},useUpdateWrapperBoundaries=ea=>{const na=useDispatch(),ra=useSelector(getSectionWrapperBoundaries(ea),shallowEqual$2);return useSelector(getWorkspacePan),useOnBoundariesChange(oa=>{na(updateSectionComputedValues({id:ea,values:{wrapperBoundaries:oa}}))},0,!0,ra)},useSnapshot=(ea=1e3,na=!0,ra,oa,aa=800)=>{const sa=useSelector(getActiveBreakpoint),la=reactExports.useRef("idle"),ca=reactExports.useRef(null),ua=reactExports.useRef(0),da=reactExports.useMemo(()=>({pixelRatio:1,filter:ha=>{const ga=["ms-transform-tool","depicter-media-cropper","depicter-loading-splash","dp-badge","depicter-wrapper-border"],fa=["VIDEO"],ma=ga.some(xa=>ha?.classList?.contains(xa)),va=fa.some(xa=>ha?.nodeName===xa);return!ma&&!va},skipFonts:!1,style:{margin:0},...ra}),[ra]),pa=reactExports.useCallback(async()=>{if(sa!=="default"||!ca.current||la.current!=="idle")return;la.current="inprogress";const{clientWidth:ha,clientHeight:ga}=ca.current.querySelector(".dp-elements-wrapper"),{clientHeight:fa,clientWidth:ma}=ca.current,va=(ma-ha)/2,xa=(fa-ga)/2;if(ca.current)try{const ya=await toCanvas(ca.current,da),Aa=cropCanvas(ya,{x:va,y:xa,width:ha,height:ga},fitToBox$1("contain",aa,aa,ha,ga,0)),Ca=await utilExports.canvasToBlob(Aa,{type:"image/jpeg",quality:.98});Ca&&oa?.(Ca)}catch(ya){console.log(ya)}finally{la.current="idle"}},[sa,da,aa,oa]);return reactExports.useEffect(()=>{if(na&&ea>0&&sa==="default"){let ha=0;return clearTimeout(ua.current),ua.current=window.setTimeout(()=>{ha=window.requestIdleCallback(pa,{timeout:ea})},300),()=>{window.cancelIdleCallback(ha)}}return()=>{}}),{captureSnapshot:pa,setRef:ha=>{ca.current=ha}}},useUpdateSection=ea=>{const na=useSelector(getActiveSection),ra=useDispatch(),oa=useDispatchAndToHistory();return reactExports.useCallback((sa,la=!0)=>{reactDomExports.unstable_batchedUpdates(()=>{const ca=setWith({},ea,{},Object),ua=setWith(ca,ea,sa,Object);la?oa(updateSection({id:na,value:ua})):ra(updateSection({id:na,value:ua}))})},[oa,ra,na,ea])},ContentArea$2=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx("span",{className:ea,children:na("Content Area")})},theme$2u=withTheme(scheme$1u),ContentAreaBadge=dt$1(ContentArea$2).withConfig({displayName:"ContentArea",componentId:"sc-1w3fh4k-0"})(["display:block;text-transform:uppercase;padding:0 5px;"," ",""],theme$2u.colors(ea=>lt$1(["background-color:",";color:",";"],ea.contentArea.background,ea.contentArea.color)),theme$2u.sizes(ea=>lt$1(["font-size:",";font-weight:",";border-bottom-right-radius:",";"],ea.contentArea.fontSize,ea.contentArea.fontWeight,ea.contentArea.borderRadius))),WrapperBorder=dt$1.div.withConfig({displayName:"ElementsWrapper__WrapperBorder",componentId:"sc-1tk9wje-0"})([""]),ElementsWrapper=reactExports.forwardRef((ea,na)=>{const{className:ra,children:oa,size:aa,sideSpace:sa,id:la}=ea,ca=useSelector(getActiveBreakpoint),ua=useSelector(getActiveSectionType),da={[ca==="default"?"width":"maxWidth"]:`${withUnit$1(aa.width)}`,[ca==="default"?"height":"maxHeight"]:`${withUnit$1(aa.height)}`,margin:`0 ${sa}px`},pa=useUpdateWrapperBoundaries(la),ha=ma=>{ma&&pa(ma),assignRef(ma,na)},ga=reactExports.useMemo(()=>({symbols:jsxRuntimeExports.jsx(ContentAreaBadge,{}),position:{top:"0",left:"0"}}),[]),fa=ua==="teaser";return jsxRuntimeExports.jsxs("div",{className:ra,style:da,ref:ha,children:[!fa&&jsxRuntimeExports.jsx(WithBadge,{className:"dp-elements-wrapper",symbolsData:ga,children:oa}),fa&&jsxRuntimeExports.jsx("div",{className:"dp-elements-wrapper",children:oa}),!fa&&jsxRuntimeExports.jsx(WrapperBorder,{className:"depicter-wrapper-border"})]})}),ElementsWrapper$1=dt$1(ElementsWrapper).withConfig({displayName:"ElementsWrapper",componentId:"sc-1tk9wje-1"})(["position:relative;box-sizing:content-box;margin:0 auto;height:100%;width:100%;.dp-elements-wrapper{width:100%;height:100%;}","{position:absolute;width:100%;height:100%;top:0;left:0;border:dashed 5px rgba(128,128,128,0.5);clip-path:polygon( 0 0,2px 0,2px calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) 2px,0 1px,0 0,100% 0,100% 100%,0 100% );z-index:99;}"],WrapperBorder),ElementsContainer=React.memo(ea=>{const{className:na,id:ra,wrapperSize:{width:oa,height:aa},wrapperSideSpace:sa}=ea,la=useSelector(getActiveSectionData),ca=useSelector(getActiveSectionAndForegroundElementsData),ua=useSelector(getActiveSectionElementsData),da=la?.type==="teaser"?ua:ca,pa=reactExports.useMemo(()=>Object.values(da),[da]),[ha,ga]=reactExports.useState(null),fa=reactExports.useMemo(()=>pa.filter(xa=>xa.wrap).map(xa=>getElement(xa.type,xa)),[pa]),ma=reactExports.useMemo(()=>pa.filter(xa=>!xa.wrap).map(xa=>getElement(xa.type,xa)),[pa]),va=reactExports.useMemo(()=>({width:oa,height:aa}),[aa,oa]);return jsxRuntimeExports.jsx("div",{className:na,ref:ga,tabIndex:-1,children:jsxRuntimeExports.jsxs(TransformToolStartEventHandler,{children:[ma,jsxRuntimeExports.jsx(ElementsWrapper$1,{size:va,sideSpace:sa,id:ra,children:fa}),ha&&jsxRuntimeExports.jsx(TransformToolController,{container:ha}),jsxRuntimeExports.jsx(MediaCropperTool$1,{}),jsxRuntimeExports.jsx(ShortcutFactory,{shortcuts:shortcuts.elements.shortcuts,element:shortcuts.elements.element})]})})}),ElementsContainer$1=dt$1(ElementsContainer).withConfig({displayName:"ElementsContainer",componentId:"sc-oycbny-0"})(["position:relative;z-index:1;height:100%;display:flex;align-items:center;justify-content:center;"]),TileImageContainer=dt$1.div.withConfig({displayName:"SectionBackgroundImage__TileImageContainer",componentId:"sc-ecywh5-0"})([""]),sectionOptionSelector$2=getActiveSectionValueByPathAndPrefix(""),SectionBackgroundImage=ea=>{const{className:na,previewData:ra,id:oa}=ea,{t:aa}=useTranslation(),{alt:sa}=useSelector(getActiveSectionBackgroundImageData),{hasDynamicTag:la}=useSelector(getActiveSectionOptions),ca=useSelector(sectionOptionSelector$2("background.image.fitMode")),ua=useSelector(sectionOptionSelector$2("background.image.position")),da=useSelector(sectionOptionSelector$2("background.image.cropData")),pa=useSelector(sectionOptionSelector$2("background.image.src")),[ha,ga]=reactExports.useState(void 0),[fa,ma]=reactExports.useState(!1);reactExports.useEffect(()=>{ra?(ga(ra?.payload?.source||ra?.id),ma(ra?.type==="dynamicMedia")):pa&&!isEmptyObject(pa)?(ga(pa),ma(la)):(ga(void 0),ma(!1))},[la,ra,pa]);const{src:va,status:xa}=useGetImageDynamicData({sourceId:ha,size:"large",isDynamic:fa}),ya={fitMode:ca==="custom"?"crop":ca,position:ua,alt:sa,crop:ca==="custom"&&!ra?da:void 0};if(!va)return null;let Aa=jsxRuntimeExports.jsx(ImageBox$1,{src:va,id:`backgroundImage_${oa}`,loadingType:"symbol",...ya});return xa==="source-detached"?Aa=jsxRuntimeExports.jsx("small",{children:aa("Dynamic background image source not found.")}):ca==="tile"&&(Aa=jsxRuntimeExports.jsx(TileImageContainer,{style:{backgroundImage:`url(${va})`,backgroundPosition:ua}})),jsxRuntimeExports.jsx("div",{className:na,children:Aa})},SectionBackgroundImage$1=dt$1(SectionBackgroundImage).withConfig({displayName:"SectionBackgroundImage",componentId:"sc-ecywh5-1"})(["width:100%;height:100%;","{width:100%;height:100%;}small{padding:10px;color:gray;}","{width:100%;height:100%;}"],ImageBox$1,TileImageContainer),useInitialVideoPreview=ea=>{const[na,ra]=reactExports.useState(!1),oa=reactExports.useCallback(()=>{ra(!1),document.removeEventListener("mousedown",oa)},[]);return reactExports.useEffect(()=>(ra(!0),document.addEventListener("mousedown",oa),()=>{document.removeEventListener("mousedown",oa)}),[ea,oa]),na},sectionOptionSelector$1=getActiveSectionValueByPathAndPrefix(""),SectionBackgroundYoutube$2=ea=>{const{className:na,previewData:ra}=ea,oa=useSelector(getSectionPreviewState),{src:aa,loop:sa}=useSelector(getActiveSectionBackgroundVideoData),la=useSelector(getActiveSectionBackgroundVideoType),ca=useSelector(sectionOptionSelector$1("background.video.fitMode")),ua=useSelector(sectionOptionSelector$1("background.video.position")),[da,pa]=reactExports.useState(void 0);reactExports.useEffect(()=>{pa(ra?ra?.id:aa||void 0)},[ra,aa]);const{previewSource:ha,source:ga}=useVideoAssetSource(da),fa=useInitialVideoPreview(ga),ma=reactExports.useMemo(()=>({fitMode:ca,position:ua,poster:ra&&ha?{src:ha,position:ua,fitMode:ca}:void 0,autoPlay:!1,muted:!0,loop:sa,playState:oa==="activated"||fa?"play":"stop"}),[ca,ua,ha,fa,sa,oa,ra]);return!ga||la!=="selfHostedVideo"?null:jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(VideoBox$1,{src:ra?void 0:ga,...ma})})},SectionBackgroundVideo=dt$1(SectionBackgroundYoutube$2).withConfig({displayName:"SectionBackgroundVideo",componentId:"sc-da3a1l-0"})(["width:100%;height:100%;","{width:100%;height:100%;}"],VideoBox$1),calcVideoCoverSize=(ea,na,ra)=>{const oa=ea.width/na.width,aa=ea.height/na.height,sa=Math.max(oa,aa);let la=na.height*sa,ca=na.width*sa;const ua=la-ea.height;if(ua<=ra){const da=ca/la;la=la+ra-ua,ca=(la+ra-ua)*da}return{width:ca,height:la}},validPaths=/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\\&\S+)?/,parseEmbedVideoId=(ea,na)=>{let ra=null;switch(ea){case"youtube":ra=na?.match(validPaths);break;case"vimeo":ra=na?.match(validPaths);break;default:ra=null;break}return Array.isArray(ra)?ra[6]:ra},Container$C=dt$1.div.withConfig({displayName:"SectionBackgroundYoutube__Container",componentId:"sc-3hxzv2-0"})([""]),selector$9=getActiveSectionValueByPathAndPrefix("background.video"),SectionBackgroundYoutube=ea=>{const{className:na,previewData:ra}=ea,oa=useSelector(selector$9("type")),aa=useSelector(selector$9("embedType")),sa=useSelector(selector$9("loop")),la=useSelector(selector$9("src")),ca=useInitialVideoPreview(la),ua=useSelector(getSectionPreviewState),{clientSize:da}=useSelector(getActiveSectionComputedValues),[pa,ha]=reactExports.useState(null),[ga,fa]=reactExports.useState(!0),ma=reactExports.useRef(null),va=reactExports.useMemo(()=>parseEmbedVideoId("youtube",la),[la]),xa=reactExports.useMemo(()=>!da||!pa?{}:calcVideoCoverSize({width:da?.width,height:da?.height},pa,120),[da,pa]),ya=reactExports.useMemo(()=>({youtube:{playerVars:{rel:"0"}}}),[]);reactExports.useEffect(()=>{!ma.current||!la||(ca||ua==="activated"?ma.current.play():ma.current.pause())},[ca,ua,la]);const Aa=reactExports.useCallback(()=>{!ma.current||!ga||Axios.request({url:`https://noembed.com/embed?url=https://www.youtube.com/watch?v=${va}`}).then(({data:Ca})=>{ha({width:Ca.width,height:Ca.height}),fa(!1)})},[ga,va]);return!ra&&(oa!=="embedVideo"||aa!=="youtube")?null:jsxRuntimeExports.jsx("div",{className:na,children:ra||!la?jsxRuntimeExports.jsx(EmptyEmbedVideo$1,{type:"youtube"}):jsxRuntimeExports.jsx(LoadingSplash$1,{visible:ga,overlay:!0,background:!0,children:jsxRuntimeExports.jsx(Container$C,{style:{...xa},children:jsxRuntimeExports.jsx(VideoPlayer$1,{url:la,controls:!1,loop:sa,config:ya,muted:!0,ref:ma,onReady:Aa})})})})},SectionBackgroundYoutube$1=dt$1(SectionBackgroundYoutube).withConfig({displayName:"SectionBackgroundYoutube",componentId:"sc-3hxzv2-1"})(["position:relative;width:100%;height:100%;","{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);iframe{pointer-events:none;}}","{background-color:#000;}"],Container$C,LoadingSplash$1),Container$B=dt$1.div.withConfig({displayName:"SectionBackgroundVimeo__Container",componentId:"sc-1wx739u-0"})([""]),selector$8=getActiveSectionValueByPathAndPrefix("background.video"),SectionBackgroundVimeo=ea=>{const{className:na,previewData:ra}=ea,oa=useSelector(selector$8("type")),aa=useSelector(selector$8("embedType")),sa=useSelector(selector$8("loop")),la=useSelector(selector$8("src")),ca=useInitialVideoPreview(la),ua=useSelector(getSectionPreviewState),{clientSize:da}=useSelector(getActiveSectionComputedValues),[pa,ha]=reactExports.useState(null),[ga,fa]=reactExports.useState(!0),ma=reactExports.useRef(null),va=reactExports.useMemo(()=>!da||!pa?{}:calcVideoCoverSize({width:da?.width,height:da?.height},pa,0),[da,pa]),xa=reactExports.useMemo(()=>({vimeo:{playerOptions:{autoplay:"1"}}}),[]);reactExports.useEffect(()=>{!ma.current||!la||(ca||ua==="activated"?ma.current.play():ma.current.pause())},[ca,ua,la]);const ya=reactExports.useCallback(()=>{!ma.current||!ga||Axios.request({url:`https://vimeo.com/api/oembed.json?url=${la}`}).then(({data:Aa})=>{ha({width:Aa.width,height:Aa.height}),fa(!1)})},[ga,la]);return!ra&&(oa!=="embedVideo"||aa!=="vimeo")?null:jsxRuntimeExports.jsx("div",{className:na,children:ra||!la?jsxRuntimeExports.jsx(EmptyEmbedVideo$1,{type:"vimeo"}):jsxRuntimeExports.jsx(LoadingSplash$1,{visible:ga,overlay:!0,background:!0,children:jsxRuntimeExports.jsx(Container$B,{style:{...va},children:jsxRuntimeExports.jsx(VideoPlayer$1,{url:la,controls:!1,loop:sa,config:xa,muted:!0,ref:ma,onReady:ya})})})})},SectionBackgroundVimeo$1=dt$1(SectionBackgroundVimeo).withConfig({displayName:"SectionBackgroundVimeo",componentId:"sc-1wx739u-1"})(["position:relative;width:100%;height:100%;","{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);iframe{pointer-events:none;}}","{background-color:#000;}"],Container$B,LoadingSplash$1),IsAllowedBackgroundType=ea=>{const{className:na,previewData:ra,allowedTypes:oa=[],component:aa}=ea,sa=useSelector(getActiveSection),la=reactExports.useMemo(()=>[ra?.type,ra?.sourceType].some(ca=>ca?oa.includes(ca):!1),[ra?.type,ra?.sourceType,oa]);return ra&&!la?null:jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(aa,{previewData:ra,id:sa})})},IsAllowedBackgroundType$1=dt$1(IsAllowedBackgroundType).withConfig({displayName:"IsAllowedBackgroundType",componentId:"sc-1k00qwl-0"})(["width:100%;height:100%;"]),MediaContainer=dt$1.div.withConfig({displayName:"SectionBackground__MediaContainer",componentId:"sc-1ab6r63-0"})([""]),OverlayContainer=dt$1.div.withConfig({displayName:"SectionBackground__OverlayContainer",componentId:"sc-1ab6r63-1"})([""]),sectionOptionSelector=getActiveSectionValueByPathAndPrefix(""),SectionBackground=ea=>{const{className:na,previewData:ra}=ea,oa=useSelector(getActiveSection),aa=useSelector(getActiveSectionBackgroundData),sa={...useBackgroundColor(aa.color)},la=useSelector(sectionOptionSelector("background.filter.$resp")),ca=useSelector(sectionOptionSelector("background.overlay.$resp")),ua=useFilter(la),da=useBackgroundColor(ca);return jsxRuntimeExports.jsxs("div",{style:sa,className:`${na}`,children:[jsxRuntimeExports.jsxs(MediaContainer,{style:ua,children:[jsxRuntimeExports.jsx(Animator$1,{id:oa,children:jsxRuntimeExports.jsx(IsAllowedBackgroundType$1,{previewData:ra,allowedTypes:["photo","dynamicMedia"],component:SectionBackgroundImage$1})}),jsxRuntimeExports.jsx(IsAllowedBackgroundType$1,{previewData:ra,allowedTypes:["video"],component:SectionBackgroundVideo}),jsxRuntimeExports.jsx(IsAllowedBackgroundType$1,{previewData:ra,allowedTypes:["embedYoutube"],component:SectionBackgroundYoutube$1}),jsxRuntimeExports.jsx(IsAllowedBackgroundType$1,{previewData:ra,allowedTypes:["embedVimeo"],component:SectionBackgroundVimeo$1})]}),da&&jsxRuntimeExports.jsx(OverlayContainer,{style:da})]})},SectionBackground$1=dt$1(SectionBackground).withConfig({displayName:"SectionBackground",componentId:"sc-1ab6r63-2"})(["position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;overflow:hidden;.dp-carousel &{width:inherit;left:50%;transform:translateX(-50%);}","{width:100%;height:100%;}","{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;}","{position:absolute;top:0;left:0;}"],MediaContainer,OverlayContainer,IsAllowedBackgroundType$1),TeaserGif=""+new URL("assets/teaser.gif",import.meta.url).href,Section=React.forwardRef((ea,na)=>{const{id:ra,className:oa,options:aa,type:sa}=ea,la=useSelector(getActiveSectionWrapperSize),ca=useSelector(getActiveBreakpoint),ua=reactExports.useRef(),da=useDispatchAndToHistory(),pa=useDispatch(),ha=getResponsiveValue(la,ca),ga=useSelector(getDocumentWrapperSideSpace),fa=useGetSectionSizingStyles(la,sa),ma=useUpdateSectionBoundaries(ra),va=useSelector(getSectionCropperToolData(ra),equal),{openCropTool:xa}=useMediaCropperTool(ra),ya=useSelector(getActiveSectionValueByPathAndPrefix("background")("image.fitMode")),Aa=useSelector(getDocumentOptionsByPathAndPrefix("documentTypeOptions")("teaser.enabled")),Ca=sa==="teaser"&&!Aa,Sa={...fa},[wa,ba]=reactExports.useState(void 0),Ea=useUserTierAuthCallback(),$a=useOpenUpgradeToPro(),Ma=updateDocumentValueByPathAndPrefix("documentTypeOptions")("teaser.enabled"),Ia=reactExports.useCallback(()=>{da(Ma({value:!0}))},[da,Ma]),{setDropZoneRef:Oa,canDrop:Da}=useAssetDropZone({canDrop(Fa){const{type:Ha="",sourceType:Va=""}=Fa?.assetData||{};return[Ha,Va].some(Ua=>["photo","video","dynamicMedia","embedYoutube","embedVimeo"].includes(Ua))},onIn(Fa){ba(Fa.assetData),pa(setAssetDragLayerVisibility(!1))},onOut(){ba(void 0),pa(setAssetDragLayerVisibility(!0))},drop(Fa){ba(void 0),pa(setAssetDragLayerVisibility(!0));const{type:Ha="",sourceType:Va="",width:Ua,height:Qa}=Fa.assetData,Wa=[Ha,Va],Za=Wa.some(rl=>["video","embedYoutube","embedVimeo"].includes(rl)),Xa=Wa.some(rl=>["embedYoutube","embedVimeo"].includes(rl)),tl=Wa.some(rl=>rl==="video"),il=Wa.some(rl=>["photo","dynamicMedia"].includes(rl)),Ja=Wa.some(rl=>["dynamicMedia"].includes(rl)),nl=il&&!Za?"image":"video",Ya=Xa?"":Fa.assetData.payload?.source||Fa.assetData.id;Xa&&!Ea(Tiers.PRO)||tl&&!Ea(Tiers.EARLY)?$a({source:"depicter_editor",medium:"section_background",content:Va}):da(nl==="image"?setSectionBackgroundImage({src:Ya,size:Ua&&Qa?{}:null,hasDynamicTag:Ja}):setSectionBackgroundVideo({src:Ya,hasDynamicTag:Ja,sourceType:Va}))}},100,[dragTypes.ASSET,dragTypes.NON_GROUPABLE_ASSET]);useWindowResize(100);const Ta=Fa=>{pa(updateSectionSnapshot({id:ra,url:URL.createObjectURL(Fa)}))},{setRef:_a}=useSnapshot(1e3,!0,void 0,Ta),La=Fa=>{Fa&&(assignRef(Fa,na),Oa?.(Fa),ma(Fa),_a(Fa)),ua.current=Fa};useSectionAnimator();const Na=reactExports.useCallback(()=>{ya==="custom"&&va&&xa({...va,disableCropperArea:!0,update:cropSection})},[ya,va,xa]),za=DocType.type==="carousel";return Ca?jsxRuntimeExports.jsx("div",{className:`${oa} dp-teaser-disabled`,id:ra,ref:La,children:jsxRuntimeExports.jsxs("div",{className:"dp-teaser-disabled-message",children:[jsxRuntimeExports.jsx("div",{className:"dp-teaser-disabled-icon",children:jsxRuntimeExports.jsx("img",{src:TeaserGif,alt:"Teaser"})}),jsxRuntimeExports.jsx("div",{className:"dp-teaser-disabled-text",children:i18next.t("The popup teaser is currently disabled. Enable it to add a small on-page element that invites your visitors to open the popup manually.")}),jsxRuntimeExports.jsxs("div",{className:"dp-teaser-disabled-button",children:[!Ea(Tiers.PRO)&&jsxRuntimeExports.jsx(UpgradeButton$1,{source:"depicter_editor",size:"small",corners:"round",medium:"section_teaser",content:"enable_teaser",children:i18next.t("Enable Teaser")}),Ea(Tiers.PRO)&&jsxRuntimeExports.jsx(OutlineButton$1,{className:classnames("dp-teaser-button",{"dp-teaser-button-pro":Ea(Tiers.PRO)}),size:"small",corners:"round",onClick:Ia,children:i18next.t("Enable Teaser")})]})]})}):jsxRuntimeExports.jsxs("div",{className:`${oa} ${Da?"ms-drop-as-background":""}  ${za?"dp-carousel":""}`,id:ra,style:Sa,ref:La,onDoubleClick:Na,children:[za&&jsxRuntimeExports.jsx(CarouselScheme$1,{size:la}),jsxRuntimeExports.jsx(SectionBackground$1,{previewData:wa}),jsxRuntimeExports.jsx(ElementsContainer$1,{id:ra,wrapperSize:ha,wrapperSideSpace:ga,className:"dp-elements-container"}),jsxRuntimeExports.jsx("style",{children:aa?.customStyle?.replaceAll("selector",`.${oa?.split(" ").join(".")}`)})]})}),Section$1=dt$1(Section).withConfig({displayName:"Section",componentId:"sc-ygd3bg-0"})(["transition:box-shadow 300ms ease-out;&.ms-drop-as-background{box-shadow:0 0 0 3px #4980f5;}&.dp-teaser-disabled{width:550px;display:flex;align-items:center;justify-content:center;color:#6c757d;}.dp-teaser-button-content{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;}.dp-teaser-disabled-message{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px;}.dp-teaser-disabled-icon{margin-bottom:10px;img{width:205px;height:150px;}}.dp-teaser-disabled-text{font-size:14px;line-height:1.4;max-width:300px;}.dp-teaser-disabled-button{margin-top:10px;}position:relative;z-index:1;"]),ContentSwitcher=React.createContext(""),ContentWrap=({index:ea,children:na,className:ra,renderOnVisible:oa=!0,visibilityControl:aa="display"})=>{const sa=reactExports.useContext(ContentSwitcher),la=sa&&Array.isArray(ea)?ea.includes(sa):sa===ea,[ca,ua]=reactExports.useState(!1);return aa==="render"&&!la?null:(la&&!ca&&ua(!0),jsxRuntimeExports.jsx("div",{className:`${ra} content-wrap-${la?"visible":"hidden"}`,children:(!oa||la||ca)&&na}))},ContentWrap$1=dt$1(ContentWrap).withConfig({displayName:"ContentWrap",componentId:"sc-19tf5bq-0"})(["&.content-wrap-hidden{","}"],({visibilityControl:ea})=>lt$1(ea==="hidden"?["visibility:hidden;position:absolute;pointer-events:none;top:0;left:0;"]:["display:none !important;"])),defaultColors$1o={background:"#363636",color:"#AAAAAA",editBackground:"rgba(22,22,22,0.7)"},colors$1o={dark:defaultColors$1o},defaultSizing$1a={width:"265px",padding:"15px 10px 15px 10px"},sizes$1o={default:defaultSizing$1a},scheme$11=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1o,sizes:sizes$1o},Symbol.toStringTag,{value:"Module"})),tooltipOptions$3={options:{id:"workspace"}},TabsContent$2=({className:ea,active:na,optionControls:ra})=>{const[oa,aa]=reactExports.useState(!1),sa=reactExports.useRef(null);useDynamicTooltip();const la=useUserTierAuthCallback();return na?jsxRuntimeExports.jsx(PopoverOpenStateContext.Provider,{value:{open:oa,setOpen:aa},children:jsxRuntimeExports.jsxs("div",{className:ea,ref:sa,children:[jsxRuntimeExports.jsx(Overlay$1,{visible:oa}),jsxRuntimeExports.jsx(ContentSwitcher.Provider,{value:na,children:ra?.map(({id:ca,optionControls:ua})=>jsxRuntimeExports.jsx(ContentWrap$1,{className:"ms-options-panel-content-wrap",index:ca,children:jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,children:jsxRuntimeExports.jsx(OCManager,{optionControls:ua,tierChecker:la,fieldsetComponent:Fieldset$1,tooltip:tooltipOptions$3,container:sa})})},ca))})]})}):null},theme$2t=withTheme(scheme$11),TabsContent$3=dt$1(TabsContent$2).withConfig({displayName:"TabsContent",componentId:"sc-8mgqqn-0"})(["position:relative;","{margin:15px 0;}.ms-options-panel-content-wrap{position:relative;height:100%;}.ms-options-panel-content-wrap > ","{position:relative;}"," ",""],OCManager,Scrollbars,theme$2t.colors(ea=>lt$1(["background-color:",";color:",";.ms-options-panel-content-wrap > ","{&:after{background:",";}}"],ea.background,ea.color,Scrollbars,ea.editBackground)),theme$2t.sizes(ea=>lt$1(["width:",";"],ea.width))),getOptionPanelData=createSelector([getSelectedElementsType],ea=>{if(!ea.length)return DocType.options.sectionOptionGroups;const na=ea.map(ra=>getElementOptionControls(ra)).filter(ra=>ra);return intersectMultipleOptionControlsGroups(na)}),OptionsPanel=({className:ea})=>{const na=useSelector(getOptionPanelData,equal),ra=!!useSelector(getSelectedElements).length,oa=useSelector(getActiveOptionsPanelTab(ra));return useDynamicTooltip(),na?.length?jsxRuntimeExports.jsx(TabsContent$3,{className:`${ea} ms-workspace-options-content depicter-keep-element-selection`,active:oa,optionControls:na}):jsxRuntimeExports.jsx("div",{className:ea})},OptionsPanel$1=dt$1(OptionsPanel).withConfig({displayName:"OptionsPanel",componentId:"sc-kdj2g1-0"})(["flex-shrink:0;"]),SvgSectionsPanelArrow=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19.235,height:7.672,viewBox:"0 0 19.235 7.672",...ea},reactExports.createElement("path",{id:"Path_1270","data-name":"Path 1270",d:"M12.416,2.012a3,3,0,0,1,4.168,0l7.074,6.83H5.342Z",transform:"translate(24.118 8.842) rotate(-180)"}));var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var ea=function(na,ra,oa,aa,sa,la,ca,ua){if(!na){var da;if(ra===void 0)da=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var pa=[oa,aa,sa,la,ca,ua],ha=0;da=new Error(ra.replace(/%s/g,function(){return pa[ha++]})),da.name="Invariant Violation"}throw da.framesToPop=1,da}};return browser=ea,browser}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var Manager=function(){function ea(){_classCallCheck$2(this,ea),_defineProperty$8(this,"refs",{})}return _createClass$2(ea,[{key:"add",value:function(ra,oa){this.refs[ra]||(this.refs[ra]=[]),this.refs[ra].push(oa)}},{key:"remove",value:function(ra,oa){var aa=this.getIndex(ra,oa);aa!==-1&&this.refs[ra].splice(aa,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var ra=this;return this.refs[this.active.collection].find(function(oa){var aa=oa.node;return aa.sortableInfo.index==ra.active.index})}},{key:"getIndex",value:function(ra,oa){return this.refs[ra].indexOf(oa)}},{key:"getOrderedRefs",value:function(){var ra=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ra].sort(sortByIndex)}}]),ea}();function sortByIndex(ea,na){var ra=ea.node.sortableInfo.index,oa=na.node.sortableInfo.index;return ra-oa}function omit(ea,na){return Object.keys(ea).reduce(function(ra,oa){return na.indexOf(oa)===-1&&(ra[oa]=ea[oa]),ra},{})}var events={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},vendorPrefix=function(){if(typeof window>"u"||typeof document>"u")return"";var ea=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],na=(Array.prototype.slice.call(ea).join("").match(/-(moz|webkit|ms)-/)||ea.OLink===""&&["","o"])[1];switch(na){case"ms":return"ms";default:return na&&na.length?na[0].toUpperCase()+na.substr(1):""}}();function setInlineStyles(ea,na){Object.keys(na).forEach(function(ra){ea.style[ra]=na[ra]})}function setTranslate3d(ea,na){ea.style["".concat(vendorPrefix,"Transform")]=na==null?"":"translate3d(".concat(na.x,"px,").concat(na.y,"px,0)")}function setTransitionDuration(ea,na){ea.style["".concat(vendorPrefix,"TransitionDuration")]=na==null?"":"".concat(na,"ms")}function closest(ea,na){for(;ea;){if(na(ea))return ea;ea=ea.parentNode}return null}function limit(ea,na,ra){return Math.max(ea,Math.min(ra,na))}function getPixelValue(ea){return ea.substr(-2)==="px"?parseFloat(ea):0}function getElementMargin(ea){var na=window.getComputedStyle(ea);return{bottom:getPixelValue(na.marginBottom),left:getPixelValue(na.marginLeft),right:getPixelValue(na.marginRight),top:getPixelValue(na.marginTop)}}function provideDisplayName(ea,na){var ra=na.displayName||na.name;return ra?"".concat(ea,"(").concat(ra,")"):ea}function getScrollAdjustedBoundingClientRect(ea,na){var ra=ea.getBoundingClientRect();return{top:ra.top+na.top,left:ra.left+na.left}}function getPosition(ea){return ea.touches&&ea.touches.length?{x:ea.touches[0].pageX,y:ea.touches[0].pageY}:ea.changedTouches&&ea.changedTouches.length?{x:ea.changedTouches[0].pageX,y:ea.changedTouches[0].pageY}:{x:ea.pageX,y:ea.pageY}}function isTouchEvent(ea){return ea.touches&&ea.touches.length||ea.changedTouches&&ea.changedTouches.length}function getEdgeOffset(ea,na){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(ea){var oa={left:ra.left+ea.offsetLeft,top:ra.top+ea.offsetTop};return ea.parentNode===na?oa:getEdgeOffset(ea.parentNode,na,oa)}}function getTargetIndex(ea,na,ra){return ea<ra&&ea>na?ea-1:ea>ra&&ea<na?ea+1:ea}function getLockPixelOffset(ea){var na=ea.lockOffset,ra=ea.width,oa=ea.height,aa=na,sa=na,la="px";if(typeof na=="string"){var ca=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(na);invariant(ca!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',na),aa=parseFloat(na),sa=parseFloat(na),la=ca[1]}return invariant(isFinite(aa)&&isFinite(sa),"lockOffset value should be a finite. Given %s",na),la==="%"&&(aa=aa*ra/100,sa=sa*oa/100),{x:aa,y:sa}}function getLockPixelOffsets(ea){var na=ea.height,ra=ea.width,oa=ea.lockOffset,aa=Array.isArray(oa)?oa:[oa,oa];invariant(aa.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",oa);var sa=_slicedToArray(aa,2),la=sa[0],ca=sa[1];return[getLockPixelOffset({height:na,lockOffset:la,width:ra}),getLockPixelOffset({height:na,lockOffset:ca,width:ra})]}function isScrollable(ea){var na=window.getComputedStyle(ea),ra=/(auto|scroll)/,oa=["overflow","overflowX","overflowY"];return oa.find(function(aa){return ra.test(na[aa])})}function getScrollingParent(ea){return ea instanceof HTMLElement?isScrollable(ea)?ea:getScrollingParent(ea.parentNode):null}function getContainerGridGap(ea){var na=window.getComputedStyle(ea);return na.display==="grid"?{x:getPixelValue(na.gridColumnGap),y:getPixelValue(na.gridRowGap)}:{x:0,y:0}}var KEYCODE={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},NodeType={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function cloneNode(ea){var na="input, textarea, select, canvas, [contenteditable]",ra=ea.querySelectorAll(na),oa=ea.cloneNode(!0),aa=_toConsumableArray(oa.querySelectorAll(na));return aa.forEach(function(sa,la){if(sa.type!=="file"&&(sa.value=ra[la].value),sa.type==="radio"&&sa.name&&(sa.name="__sortableClone__".concat(sa.name)),sa.tagName===NodeType.Canvas&&ra[la].width>0&&ra[la].height>0){var ca=sa.getContext("2d");ca.drawImage(ra[la],0,0)}}),oa}function sortableHandle(ea){var na,ra,oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ra=na=function(aa){_inherits$1(sa,aa);function sa(){return _classCallCheck$2(this,sa),_possibleConstructorReturn$1(this,_getPrototypeOf$1(sa).apply(this,arguments))}return _createClass$2(sa,[{key:"componentDidMount",value:function(){var ca=reactDomExports.findDOMNode(this);ca.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return invariant(oa.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var ca=oa.withRef?"wrappedInstance":null;return reactExports.createElement(ea,_extends$5({ref:ca},this.props))}}]),sa}(reactExports.Component),_defineProperty$8(na,"displayName",provideDisplayName("sortableHandle",ea)),ra}function isSortableHandle(ea){return ea.sortableHandle!=null}var AutoScroller=function(){function ea(na,ra){_classCallCheck$2(this,ea),this.container=na,this.onScrollCallback=ra}return _createClass$2(ea,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(ra){var oa=this,aa=ra.translate,sa=ra.minTranslate,la=ra.maxTranslate,ca=ra.width,ua=ra.height,da={x:0,y:0},pa={x:1,y:1},ha={x:10,y:10},ga=this.container,fa=ga.scrollTop,ma=ga.scrollLeft,va=ga.scrollHeight,xa=ga.scrollWidth,ya=ga.clientHeight,Aa=ga.clientWidth,Ca=fa===0,Sa=va-fa-ya===0,wa=ma===0,ba=xa-ma-Aa===0;aa.y>=la.y-ua/2&&!Sa?(da.y=1,pa.y=ha.y*Math.abs((la.y-ua/2-aa.y)/ua)):aa.x>=la.x-ca/2&&!ba?(da.x=1,pa.x=ha.x*Math.abs((la.x-ca/2-aa.x)/ca)):aa.y<=sa.y+ua/2&&!Ca?(da.y=-1,pa.y=ha.y*Math.abs((aa.y-ua/2-sa.y)/ua)):aa.x<=sa.x+ca/2&&!wa&&(da.x=-1,pa.x=ha.x*Math.abs((aa.x-ca/2-sa.x)/ca)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(da.x!==0||da.y!==0)&&(this.interval=setInterval(function(){oa.isAutoScrolling=!0;var Ea={left:pa.x*da.x,top:pa.y*da.y};oa.container.scrollTop+=Ea.top,oa.container.scrollLeft+=Ea.left,oa.onScrollCallback(Ea)},5))}}]),ea}();function defaultGetHelperDimensions(ea){var na=ea.node;return{height:na.offsetHeight,width:na.offsetWidth}}function defaultShouldCancelStart(ea){var na=[NodeType.Input,NodeType.Textarea,NodeType.Select,NodeType.Option,NodeType.Button];return!!(na.indexOf(ea.target.tagName)!==-1||closest(ea.target,function(ra){return ra.contentEditable==="true"}))}var propTypes={axis:PropTypes.oneOf(["x","y","xy"]),contentWindow:PropTypes.any,disableAutoscroll:PropTypes.bool,distance:PropTypes.number,getContainer:PropTypes.func,getHelperDimensions:PropTypes.func,helperClass:PropTypes.string,helperContainer:PropTypes.oneOfType([PropTypes.func,typeof HTMLElement>"u"?PropTypes.any:PropTypes.instanceOf(HTMLElement)]),hideSortableGhost:PropTypes.bool,keyboardSortingTransitionDuration:PropTypes.number,lockAxis:PropTypes.string,lockOffset:PropTypes.oneOfType([PropTypes.number,PropTypes.string,PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number,PropTypes.string]))]),lockToContainerEdges:PropTypes.bool,onSortEnd:PropTypes.func,onSortMove:PropTypes.func,onSortOver:PropTypes.func,onSortStart:PropTypes.func,pressDelay:PropTypes.number,pressThreshold:PropTypes.number,keyCodes:PropTypes.shape({lift:PropTypes.arrayOf(PropTypes.number),drop:PropTypes.arrayOf(PropTypes.number),cancel:PropTypes.arrayOf(PropTypes.number),up:PropTypes.arrayOf(PropTypes.number),down:PropTypes.arrayOf(PropTypes.number)}),shouldCancelStart:PropTypes.func,transitionDuration:PropTypes.number,updateBeforeSortStart:PropTypes.func,useDragHandle:PropTypes.bool,useWindowAsScrollContainer:PropTypes.bool},defaultKeyCodes={lift:[KEYCODE.SPACE],drop:[KEYCODE.SPACE],cancel:[KEYCODE.ESC],up:[KEYCODE.UP,KEYCODE.LEFT],down:[KEYCODE.DOWN,KEYCODE.RIGHT]},defaultProps={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:defaultGetHelperDimensions,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:defaultKeyCodes,shouldCancelStart:defaultShouldCancelStart,transitionDuration:300,useWindowAsScrollContainer:!1},omittedProps=Object.keys(propTypes);function validateProps(ea){invariant(!(ea.distance&&ea.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function _finallyRethrows(ea,na){try{var ra=ea()}catch(oa){return na(!0,oa)}return ra&&ra.then?ra.then(na.bind(null,!1),na.bind(null,!0)):na(!1,value)}function sortableContainer(ea){var na,ra,oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ra=na=function(aa){_inherits$1(sa,aa);function sa(la){var ca;return _classCallCheck$2(this,sa),ca=_possibleConstructorReturn$1(this,_getPrototypeOf$1(sa).call(this,la)),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"state",{}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleStart",function(ua){var da=ca.props,pa=da.distance,ha=da.shouldCancelStart;if(!(ua.button===2||ha(ua))){ca.touched=!0,ca.position=getPosition(ua);var ga=closest(ua.target,function(Aa){return Aa.sortableInfo!=null});if(ga&&ga.sortableInfo&&ca.nodeIsChild(ga)&&!ca.state.sorting){var fa=ca.props.useDragHandle,ma=ga.sortableInfo,va=ma.index,xa=ma.collection,ya=ma.disabled;if(ya||fa&&!closest(ua.target,isSortableHandle))return;ca.manager.active={collection:xa,index:va},!isTouchEvent(ua)&&ua.target.tagName===NodeType.Anchor&&ua.preventDefault(),pa||(ca.props.pressDelay===0?ca.handlePress(ua):ca.pressTimer=setTimeout(function(){return ca.handlePress(ua)},ca.props.pressDelay))}}}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"nodeIsChild",function(ua){return ua.sortableInfo.manager===ca.manager}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleMove",function(ua){var da=ca.props,pa=da.distance,ha=da.pressThreshold;if(!ca.state.sorting&&ca.touched&&!ca._awaitingUpdateBeforeSortStart){var ga=getPosition(ua),fa={x:ca.position.x-ga.x,y:ca.position.y-ga.y},ma=Math.abs(fa.x)+Math.abs(fa.y);ca.delta=fa,!pa&&(!ha||ma>=ha)?(clearTimeout(ca.cancelTimer),ca.cancelTimer=setTimeout(ca.cancel,0)):pa&&ma>=pa&&ca.manager.isActive()&&ca.handlePress(ua)}}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleEnd",function(){ca.touched=!1,ca.cancel()}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"cancel",function(){var ua=ca.props.distance,da=ca.state.sorting;da||(ua||clearTimeout(ca.pressTimer),ca.manager.active=null)}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handlePress",function(ua){try{var da=ca.manager.getActive(),pa=function(){if(da){var ha=function(){var Ma=Sa.sortableInfo.index,Ia=getElementMargin(Sa),Oa=getContainerGridGap(ca.container),Da=ca.scrollContainer.getBoundingClientRect(),Ta=ma({index:Ma,node:Sa,collection:wa});if(ca.node=Sa,ca.margin=Ia,ca.gridGap=Oa,ca.width=Ta.width,ca.height=Ta.height,ca.marginOffset={x:ca.margin.left+ca.margin.right+ca.gridGap.x,y:Math.max(ca.margin.top,ca.margin.bottom,ca.gridGap.y)},ca.boundingClientRect=Sa.getBoundingClientRect(),ca.containerBoundingRect=Da,ca.index=Ma,ca.newIndex=Ma,ca.axis={x:fa.indexOf("x")>=0,y:fa.indexOf("y")>=0},ca.offsetEdge=getEdgeOffset(Sa,ca.container),ba?ca.initialOffset=getPosition(_objectSpread$8({},ua,{pageX:ca.boundingClientRect.left,pageY:ca.boundingClientRect.top})):ca.initialOffset=getPosition(ua),ca.initialScroll={left:ca.scrollContainer.scrollLeft,top:ca.scrollContainer.scrollTop},ca.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ca.helper=ca.helperContainer.appendChild(cloneNode(Sa)),setInlineStyles(ca.helper,{boxSizing:"border-box",height:"".concat(ca.height,"px"),left:"".concat(ca.boundingClientRect.left-Ia.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ca.boundingClientRect.top-Ia.top,"px"),width:"".concat(ca.width,"px")}),ba&&ca.helper.focus(),xa&&(ca.sortableGhost=Sa,setInlineStyles(Sa,{opacity:0,visibility:"hidden"})),ca.minTranslate={},ca.maxTranslate={},ba){var _a=Ca?{top:0,left:0,width:ca.contentWindow.innerWidth,height:ca.contentWindow.innerHeight}:ca.containerBoundingRect,La=_a.top,Na=_a.left,za=_a.width,Fa=_a.height,Ha=La+Fa,Va=Na+za;ca.axis.x&&(ca.minTranslate.x=Na-ca.boundingClientRect.left,ca.maxTranslate.x=Va-(ca.boundingClientRect.left+ca.width)),ca.axis.y&&(ca.minTranslate.y=La-ca.boundingClientRect.top,ca.maxTranslate.y=Ha-(ca.boundingClientRect.top+ca.height))}else ca.axis.x&&(ca.minTranslate.x=(Ca?0:Da.left)-ca.boundingClientRect.left-ca.width/2,ca.maxTranslate.x=(Ca?ca.contentWindow.innerWidth:Da.left+Da.width)-ca.boundingClientRect.left-ca.width/2),ca.axis.y&&(ca.minTranslate.y=(Ca?0:Da.top)-ca.boundingClientRect.top-ca.height/2,ca.maxTranslate.y=(Ca?ca.contentWindow.innerHeight:Da.top+Da.height)-ca.boundingClientRect.top-ca.height/2);va&&va.split(" ").forEach(function(Ua){return ca.helper.classList.add(Ua)}),ca.listenerNode=ua.touches?Sa:ca.contentWindow,ba?(ca.listenerNode.addEventListener("wheel",ca.handleKeyEnd,!0),ca.listenerNode.addEventListener("mousedown",ca.handleKeyEnd,!0),ca.listenerNode.addEventListener("keydown",ca.handleKeyDown)):(events.move.forEach(function(Ua){return ca.listenerNode.addEventListener(Ua,ca.handleSortMove,!1)}),events.end.forEach(function(Ua){return ca.listenerNode.addEventListener(Ua,ca.handleSortEnd,!1)})),ca.setState({sorting:!0,sortingIndex:Ma}),Aa&&Aa({node:Sa,index:Ma,collection:wa,isKeySorting:ba,nodes:ca.manager.getOrderedRefs(),helper:ca.helper},ua),ba&&ca.keyMove(0)},ga=ca.props,fa=ga.axis,ma=ga.getHelperDimensions,va=ga.helperClass,xa=ga.hideSortableGhost,ya=ga.updateBeforeSortStart,Aa=ga.onSortStart,Ca=ga.useWindowAsScrollContainer,Sa=da.node,wa=da.collection,ba=ca.manager.isKeySorting,Ea=function(){if(typeof ya=="function"){ca._awaitingUpdateBeforeSortStart=!0;var $a=_finallyRethrows(function(){var Ma=Sa.sortableInfo.index;return Promise.resolve(ya({collection:wa,index:Ma,node:Sa,isKeySorting:ba},ua)).then(function(){})},function(Ma,Ia){if(ca._awaitingUpdateBeforeSortStart=!1,Ma)throw Ia;return Ia});if($a&&$a.then)return $a.then(function(){})}}();return Ea&&Ea.then?Ea.then(ha):ha(Ea)}}();return Promise.resolve(pa&&pa.then?pa.then(function(){}):void 0)}catch(ha){return Promise.reject(ha)}}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleSortMove",function(ua){var da=ca.props.onSortMove;typeof ua.preventDefault=="function"&&ua.preventDefault(),ca.updateHelperPosition(ua),ca.animateNodes(),ca.autoscroll(),da&&da(ua)}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleSortEnd",function(ua){var da=ca.props,pa=da.hideSortableGhost,ha=da.onSortEnd,ga=ca.manager,fa=ga.active.collection,ma=ga.isKeySorting,va=ca.manager.getOrderedRefs();ca.listenerNode&&(ma?(ca.listenerNode.removeEventListener("wheel",ca.handleKeyEnd,!0),ca.listenerNode.removeEventListener("mousedown",ca.handleKeyEnd,!0),ca.listenerNode.removeEventListener("keydown",ca.handleKeyDown)):(events.move.forEach(function(Sa){return ca.listenerNode.removeEventListener(Sa,ca.handleSortMove)}),events.end.forEach(function(Sa){return ca.listenerNode.removeEventListener(Sa,ca.handleSortEnd)}))),ca.helper.parentNode.removeChild(ca.helper),pa&&ca.sortableGhost&&setInlineStyles(ca.sortableGhost,{opacity:"",visibility:""});for(var xa=0,ya=va.length;xa<ya;xa++){var Aa=va[xa],Ca=Aa.node;Aa.edgeOffset=null,Aa.boundingClientRect=null,setTranslate3d(Ca,null),setTransitionDuration(Ca,null),Aa.translate=null}ca.autoScroller.clear(),ca.manager.active=null,ca.manager.isKeySorting=!1,ca.setState({sorting:!1,sortingIndex:null}),typeof ha=="function"&&ha({collection:fa,newIndex:ca.newIndex,oldIndex:ca.index,isKeySorting:ma,nodes:va},ua),ca.touched=!1}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"autoscroll",function(){var ua=ca.props.disableAutoscroll,da=ca.manager.isKeySorting;if(ua){ca.autoScroller.clear();return}if(da){var pa=_objectSpread$8({},ca.translate),ha=0,ga=0;ca.axis.x&&(pa.x=Math.min(ca.maxTranslate.x,Math.max(ca.minTranslate.x,ca.translate.x)),ha=ca.translate.x-pa.x),ca.axis.y&&(pa.y=Math.min(ca.maxTranslate.y,Math.max(ca.minTranslate.y,ca.translate.y)),ga=ca.translate.y-pa.y),ca.translate=pa,setTranslate3d(ca.helper,ca.translate),ca.scrollContainer.scrollLeft+=ha,ca.scrollContainer.scrollTop+=ga;return}ca.autoScroller.update({height:ca.height,maxTranslate:ca.maxTranslate,minTranslate:ca.minTranslate,translate:ca.translate,width:ca.width})}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"onAutoScroll",function(ua){ca.translate.x+=ua.left,ca.translate.y+=ua.top,ca.animateNodes()}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleKeyDown",function(ua){var da=ua.keyCode,pa=ca.props,ha=pa.shouldCancelStart,ga=pa.keyCodes,fa=ga===void 0?{}:ga,ma=_objectSpread$8({},defaultKeyCodes,fa);ca.manager.active&&!ca.manager.isKeySorting||!ca.manager.active&&(!ma.lift.includes(da)||ha(ua)||!ca.isValidSortingTarget(ua))||(ua.stopPropagation(),ua.preventDefault(),ma.lift.includes(da)&&!ca.manager.active?ca.keyLift(ua):ma.drop.includes(da)&&ca.manager.active?ca.keyDrop(ua):ma.cancel.includes(da)?(ca.newIndex=ca.manager.active.index,ca.keyDrop(ua)):ma.up.includes(da)?ca.keyMove(-1):ma.down.includes(da)&&ca.keyMove(1))}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"keyLift",function(ua){var da=ua.target,pa=closest(da,function(ma){return ma.sortableInfo!=null}),ha=pa.sortableInfo,ga=ha.index,fa=ha.collection;ca.initialFocusedNode=da,ca.manager.isKeySorting=!0,ca.manager.active={index:ga,collection:fa},ca.handlePress(ua)}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"keyMove",function(ua){var da=ca.manager.getOrderedRefs(),pa=da[da.length-1].node.sortableInfo.index,ha=ca.newIndex+ua,ga=ca.newIndex;if(!(ha<0||ha>pa)){ca.prevIndex=ga,ca.newIndex=ha;var fa=getTargetIndex(ca.newIndex,ca.prevIndex,ca.index),ma=da.find(function(ba){var Ea=ba.node;return Ea.sortableInfo.index===fa}),va=ma.node,xa=ca.containerScrollDelta,ya=ma.boundingClientRect||getScrollAdjustedBoundingClientRect(va,xa),Aa=ma.translate||{x:0,y:0},Ca={top:ya.top+Aa.y-xa.top,left:ya.left+Aa.x-xa.left},Sa=ga<ha,wa={x:Sa&&ca.axis.x?va.offsetWidth-ca.width:0,y:Sa&&ca.axis.y?va.offsetHeight-ca.height:0};ca.handleSortMove({pageX:Ca.left+wa.x,pageY:Ca.top+wa.y,ignoreTransition:ua===0})}}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"keyDrop",function(ua){ca.handleSortEnd(ua),ca.initialFocusedNode&&ca.initialFocusedNode.focus()}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"handleKeyEnd",function(ua){ca.manager.active&&ca.keyDrop(ua)}),_defineProperty$8(_assertThisInitialized$1(_assertThisInitialized$1(ca)),"isValidSortingTarget",function(ua){var da=ca.props.useDragHandle,pa=ua.target,ha=closest(pa,function(ga){return ga.sortableInfo!=null});return ha&&ha.sortableInfo&&!ha.sortableInfo.disabled&&(da?isSortableHandle(pa):pa.sortableInfo)}),validateProps(la),ca.manager=new Manager,ca.events={end:ca.handleEnd,move:ca.handleMove,start:ca.handleStart},ca}return _createClass$2(sa,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var ca=this,ua=this.props.useWindowAsScrollContainer,da=this.getContainer();Promise.resolve(da).then(function(pa){ca.container=pa,ca.document=ca.container.ownerDocument||document;var ha=ca.props.contentWindow||ca.document.defaultView||window;ca.contentWindow=typeof ha=="function"?ha():ha,ca.scrollContainer=ua?ca.document.scrollingElement||ca.document.documentElement:getScrollingParent(ca.container)||ca.container,ca.autoScroller=new AutoScroller(ca.scrollContainer,ca.onAutoScroll),Object.keys(ca.events).forEach(function(ga){return events[ga].forEach(function(fa){return ca.container.addEventListener(fa,ca.events[ga],!1)})}),ca.container.addEventListener("keydown",ca.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var ca=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(ua){return events[ua].forEach(function(da){return ca.container.removeEventListener(da,ca.events[ua])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(ca){var ua=this.props,da=ua.lockAxis,pa=ua.lockOffset,ha=ua.lockToContainerEdges,ga=ua.transitionDuration,fa=ua.keyboardSortingTransitionDuration,ma=fa===void 0?ga:fa,va=this.manager.isKeySorting,xa=ca.ignoreTransition,ya=getPosition(ca),Aa={x:ya.x-this.initialOffset.x,y:ya.y-this.initialOffset.y};if(Aa.y-=window.pageYOffset-this.initialWindowScroll.top,Aa.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Aa,ha){var Ca=getLockPixelOffsets({height:this.height,lockOffset:pa,width:this.width}),Sa=_slicedToArray(Ca,2),wa=Sa[0],ba=Sa[1],Ea={x:this.width/2-wa.x,y:this.height/2-wa.y},$a={x:this.width/2-ba.x,y:this.height/2-ba.y};Aa.x=limit(this.minTranslate.x+Ea.x,this.maxTranslate.x-$a.x,Aa.x),Aa.y=limit(this.minTranslate.y+Ea.y,this.maxTranslate.y-$a.y,Aa.y)}da==="x"?Aa.y=0:da==="y"&&(Aa.x=0),va&&ma&&!xa&&setTransitionDuration(this.helper,ma),setTranslate3d(this.helper,Aa)}},{key:"animateNodes",value:function(){var ca=this.props,ua=ca.transitionDuration,da=ca.hideSortableGhost,pa=ca.onSortOver,ha=this.containerScrollDelta,ga=this.windowScrollDelta,fa=this.manager.getOrderedRefs(),ma={left:this.offsetEdge.left+this.translate.x+ha.left,top:this.offsetEdge.top+this.translate.y+ha.top},va=this.manager.isKeySorting,xa=this.newIndex;this.newIndex=null;for(var ya=0,Aa=fa.length;ya<Aa;ya++){var Ca=fa[ya].node,Sa=Ca.sortableInfo.index,wa=Ca.offsetWidth,ba=Ca.offsetHeight,Ea={height:this.height>ba?ba/2:this.height/2,width:this.width>wa?wa/2:this.width/2},$a=va&&Sa>this.index&&Sa<=xa,Ma=va&&Sa<this.index&&Sa>=xa,Ia={x:0,y:0},Oa=fa[ya].edgeOffset;Oa||(Oa=getEdgeOffset(Ca,this.container),fa[ya].edgeOffset=Oa,va&&(fa[ya].boundingClientRect=getScrollAdjustedBoundingClientRect(Ca,ha)));var Da=ya<fa.length-1&&fa[ya+1],Ta=ya>0&&fa[ya-1];if(Da&&!Da.edgeOffset&&(Da.edgeOffset=getEdgeOffset(Da.node,this.container),va&&(Da.boundingClientRect=getScrollAdjustedBoundingClientRect(Da.node,ha))),Sa===this.index){da&&(this.sortableGhost=Ca,setInlineStyles(Ca,{opacity:0,visibility:"hidden"}));continue}ua&&setTransitionDuration(Ca,ua),this.axis.x?this.axis.y?Ma||Sa<this.index&&(ma.left+ga.left-Ea.width<=Oa.left&&ma.top+ga.top<=Oa.top+Ea.height||ma.top+ga.top+Ea.height<=Oa.top)?(Ia.x=this.width+this.marginOffset.x,Oa.left+Ia.x>this.containerBoundingRect.width-Ea.width&&Da&&(Ia.x=Da.edgeOffset.left-Oa.left,Ia.y=Da.edgeOffset.top-Oa.top),this.newIndex===null&&(this.newIndex=Sa)):($a||Sa>this.index&&(ma.left+ga.left+Ea.width>=Oa.left&&ma.top+ga.top+Ea.height>=Oa.top||ma.top+ga.top+Ea.height>=Oa.top+ba))&&(Ia.x=-(this.width+this.marginOffset.x),Oa.left+Ia.x<this.containerBoundingRect.left+Ea.width&&Ta&&(Ia.x=Ta.edgeOffset.left-Oa.left,Ia.y=Ta.edgeOffset.top-Oa.top),this.newIndex=Sa):$a||Sa>this.index&&ma.left+ga.left+Ea.width>=Oa.left?(Ia.x=-(this.width+this.marginOffset.x),this.newIndex=Sa):(Ma||Sa<this.index&&ma.left+ga.left<=Oa.left+Ea.width)&&(Ia.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=Sa)):this.axis.y&&($a||Sa>this.index&&ma.top+ga.top+Ea.height>=Oa.top?(Ia.y=-(this.height+this.marginOffset.y),this.newIndex=Sa):(Ma||Sa<this.index&&ma.top+ga.top<=Oa.top+Ea.height)&&(Ia.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=Sa))),setTranslate3d(Ca,Ia),fa[ya].translate=Ia}this.newIndex==null&&(this.newIndex=this.index),va&&(this.newIndex=xa);var _a=va?this.prevIndex:xa;pa&&this.newIndex!==_a&&pa({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:_a,isKeySorting:va,nodes:fa,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return invariant(oa.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var ca=this.props.getContainer;return typeof ca!="function"?reactDomExports.findDOMNode(this):ca(oa.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var ca=oa.withRef?"wrappedInstance":null;return reactExports.createElement(ea,_extends$5({ref:ca},omit(this.props,omittedProps)))}},{key:"helperContainer",get:function(){var ca=this.props.helperContainer;return typeof ca=="function"?ca():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var ca=this.props.useWindowAsScrollContainer;return ca?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),sa}(reactExports.Component),_defineProperty$8(na,"displayName",provideDisplayName("sortableList",ea)),_defineProperty$8(na,"defaultProps",defaultProps),_defineProperty$8(na,"propTypes",propTypes),_defineProperty$8(na,"childContextTypes",{manager:PropTypes.object.isRequired}),ra}var propTypes$1={index:PropTypes.number.isRequired,collection:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),disabled:PropTypes.bool},omittedProps$1=Object.keys(propTypes$1);function sortableElement(ea){var na,ra,oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ra=na=function(aa){_inherits$1(sa,aa);function sa(){return _classCallCheck$2(this,sa),_possibleConstructorReturn$1(this,_getPrototypeOf$1(sa).apply(this,arguments))}return _createClass$2(sa,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(ca){this.node&&(ca.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),ca.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),ca.collection!==this.props.collection&&(this.unregister(ca.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var ca=this.props,ua=ca.collection,da=ca.disabled,pa=ca.index,ha=reactDomExports.findDOMNode(this);ha.sortableInfo={collection:ua,disabled:da,index:pa,manager:this.context.manager},this.node=ha,this.ref={node:ha},this.context.manager.add(ua,this.ref)}},{key:"unregister",value:function(){var ca=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(ca,this.ref)}},{key:"getWrappedInstance",value:function(){return invariant(oa.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var ca=oa.withRef?"wrappedInstance":null;return reactExports.createElement(ea,_extends$5({ref:ca},omit(this.props,omittedProps$1)))}}]),sa}(reactExports.Component),_defineProperty$8(na,"displayName",provideDisplayName("sortableElement",ea)),_defineProperty$8(na,"contextTypes",{manager:PropTypes.object.isRequired}),_defineProperty$8(na,"propTypes",propTypes$1),_defineProperty$8(na,"defaultProps",{collection:0}),ra}const SECTION_ITEM_MAX_WIDTH=180,SECTION_ITEM_MAX_HEIGHT=130,getSectionItemAspect=(ea,na)=>ea.unit==="%"||na.unit==="%"?.7:ea.value/na.value,calcSectionItemSize=(ea,na=SECTION_ITEM_MAX_WIDTH,ra=SECTION_ITEM_MAX_HEIGHT)=>({width:ea<1?ra*ea:na,height:ea<1?ra:na/ea}),createNewSection=()=>ea=>{const na={...emptySectionState};reactDomExports.unstable_batchedUpdates(()=>{ea(addSection(na)),ea(setActiveSection(na.id)),ea(addToSectionList(na.id)),ea(setActiveBreakpoint("default"))})},SvgNewSectionPlusIcon=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",...ea},reactExports.createElement("g",{id:"add",transform:"translate(-1218.5 -1029.5)"},reactExports.createElement("rect",{id:"Rectangle_1760","data-name":"Rectangle 1760",width:17,height:3,transform:"translate(1218.5 1036.5)"}),reactExports.createElement("rect",{id:"Rectangle_1761","data-name":"Rectangle 1761",width:17,height:3,transform:"translate(1228.5 1029.5) rotate(90)"}))),defaultColors$1n={toolbar:{background:"rgba(22,22,22, 0.8)",backDrop:"blur(10px)",newSection:{iconColor:"#AAAAAA",hover:{iconColor:"white"}},switchSection:{iconColor:"#AAAAAA"},sectionsButton:{color:"#AAAAAA",activeColor:"white"}},panel:{background:"rgba(22,22,22,0.8)",backDrop:"blur(10px)"},sectionsList:{background:"#000000",backDrop:"blur(10%) opacity(0.9)"},sectionItem:{nameTextColor:"#AAAAAA",sectionIndex:{color:"white",background:"rgba(0,0,0,0.5)"},sectionOption:{background:"rgba(0, 0, 0, 0.5)",icon:"#FFFFFF"},active:{border:"#4980F5",nameTextColor:"white",sectionIndex:{background:"#4980F5"},sectionOption:{background:"#4980F5"}},dynamicTag:{background:"#4980F5",icon:"#FFFFFF"}},newSectionItem:{nameTextColor:"#AAAAAA",background:"#222222",border:"#6A6A6A"}},colors$1n={dark:defaultColors$1n},defaultSizing$19={toolbar:{radius:"8px",height:"38px",bottomSpace:"16px",newSection:{width:"49px",space:"3px"},switchSection:{navButtons:{width:"35px"}},sectionsButton:{width:"28px"}},sectionsList:{space:"30px"},panel:{space:"10px",height:"180px",bottomPosition:"65px",radius:"5px"},sectionItem:{shadow:"10px 20px 25px rgba(0,0,0,0.15)",radius:"4px",sectionName:{space:"5px",fontSize:"12px",fontWeight:"400"},sectionIndex:{size:"17px",fontSize:"12px",fontWeight:"400",space:"7px",radius:"10px",padding:"0 5px"},sectionOption:{width:"33px",height:"17px",space:"4px",border:"9px;"},active:{borderWidth:"3px",sectionName:{fontWeight:"600"}},dynamicTag:{border:"4px",fontSize:"10px",fontWeight:"600"}},newSectionItem:{shadow:"10px 20px 25px rgba(0,0,0,0.15)",borderWidth:"2px",radius:"4px",sectionName:{space:"5px",fontSize:"12px",fontWeight:"400"}}},sizes$1n={default:defaultSizing$19},scheme$10=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1n,sizes:sizes$1n},Symbol.toStringTag,{value:"Module"})),Box=dt$1.div.withConfig({displayName:"NewSectionItem__Box",componentId:"sc-fbqy57-0"})([""]),NewSectionItem=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatchAndToHistory(),oa=useSelector(getActiveSectionWrapperDefaultSize),aa=getSectionItemAspect(oa.width,oa.height),{width:sa,height:la}=calcSectionItemSize(aa),{isLimited:ca,openModal:ua}=useLimitedAccessSections(),da={width:`${sa}px`,height:`${la}px`},pa=usePosthogCaptureCallback(),ha=reactExports.useCallback(()=>{if(ca){ua();return}ra(createNewSection()),pa("create_new_section",{with:"sections_panel"})},[ra,ca,ua,pa]);let ga=jsxRuntimeExports.jsxs("div",{className:ea,onClick:ha,children:[jsxRuntimeExports.jsx(Box,{style:da,children:jsxRuntimeExports.jsx(SvgNewSectionPlusIcon,{})}),jsxRuntimeExports.jsx("span",{children:na("New {{section}}",{section:DocType.getLabel("section",!0)})})]});return ca&&(ga=jsxRuntimeExports.jsx(WithBadge,{symbolsData:{position:{top:"5px",right:"5px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})},children:ga})),ga},theme$2s=withTheme(scheme$10),NewSectionItem$1=dt$1(NewSectionItem).withConfig({displayName:"NewSectionItem",componentId:"sc-fbqy57-1"})(["text-align:center;cursor:pointer;","{display:flex;align-items:center;justify-content:space-around;}span{display:block;}"," ",""],Box,theme$2s.sizes(ea=>lt$1(["","{border:dashed ",";border-radius:",";box-shadow:",";}font-weight:",";font-size:",";span{margin-top:",";}"],Box,ea.newSectionItem.borderWidth,ea.newSectionItem.radius,ea.newSectionItem.shadow,ea.newSectionItem.sectionName.fontWeight,ea.newSectionItem.sectionName.fontSize,ea.newSectionItem.sectionName.space)),theme$2s.colors(ea=>lt$1(["","{border-color:",";background:",";}svg{fill:",";}color:",";"],Box,ea.newSectionItem.border,ea.newSectionItem.background,ea.newSectionItem.border,ea.newSectionItem.nameTextColor))),SectionItemOptions=({className:ea,id:na})=>{const{t:ra}=useTranslation(),oa=useDispatchAndToHistory(),sa=useSelector(getSectionData(na))?.type==="teaser",{isLimited:la,openModal:ca}=useLimitedAccessSections(),ua=reactExports.useCallback(ha=>{ha.syntheticEvent.stopPropagation(),sa||oa(removeSection({id:na}))},[na,oa,sa]),da=reactExports.useCallback(ha=>{if(ha.syntheticEvent.stopPropagation(),la){ca();return}sa||oa(duplicateSection({id:na})),oa(duplicateSection({id:na}))},[na,oa,sa,la,ca]),pa=jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgMore,{}),onClick:ha=>ha.stopPropagation()});return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs(Menu,{direction:"bottom",align:"end",transition:!0,size:"medium",minWidth:"120px",menuButton:pa,gap:5,children:[jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:ua,disabled:sa,children:ra("Delete")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:da,disabled:sa,children:ra("Duplicate")})]})})},theme$2r=withTheme(scheme$10),SectionItemDropdown=dt$1(SectionItemOptions).withConfig({displayName:"SectionItemDropdown",componentId:"sc-4lrebh-0"})(["position:absolute;z-index:5;","{height:auto;padding:6px 7px;}"," ",""],IconButton,theme$2r.colors(ea=>lt$1(["","{background:",";}"],IconButton,ea.sectionItem.sectionOption.background)),theme$2r.sizes(ea=>lt$1(["top:",";right:",";","{border-radius:",";}"],ea.sectionItem.sectionOption.space,ea.sectionItem.sectionOption.space,IconButton,ea.sectionItem.sectionOption.border))),IndexNumber=dt$1.div.withConfig({displayName:"SectionItem__IndexNumber",componentId:"sc-9dul4h-0"})([""]),InnerContainer$2=dt$1.div.withConfig({displayName:"SectionItem__InnerContainer",componentId:"sc-9dul4h-1"})([""]),Title$v=dt$1.span.withConfig({displayName:"SectionItem__Title",componentId:"sc-9dul4h-2"})([""]),DynamicTag=dt$1(IconWithTooltip$1).withConfig({displayName:"SectionItem__DynamicTag",componentId:"sc-9dul4h-3"})([""]),SectionItem=sortableElement(ea=>{const{position:na,name:ra,className:oa,onClick:aa,id:sa,snapshot:la,hasDynamicContent:ca,aspect:ua}=ea,{width:da,height:pa}=calcSectionItemSize(ua),{t:ha}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:oa,children:[jsxRuntimeExports.jsxs(InnerContainer$2,{onClick:()=>aa(sa),children:[jsxRuntimeExports.jsx(IndexNumber,{children:na}),jsxRuntimeExports.jsx(SectionItemDropdown,{id:sa}),jsxRuntimeExports.jsx("img",{className:"ms-section-snapshot",alt:"",draggable:"false",style:{backgroundColor:la?"":"white"},width:la?void 0:da,height:la?void 0:pa,src:la||emptyGif}),ca&&jsxRuntimeExports.jsx(DynamicTag,{tooltip:{content:ha("Data source connected"),options:{id:"workspace",place:"bottom"}},shape:SvgSmallDataSources})]}),jsxRuntimeExports.jsx(Title$v,{children:ra})]})}),theme$2q=withTheme(scheme$10),SectionItem$1=dt$1(SectionItem).withConfig({displayName:"SectionItem",componentId:"sc-9dul4h-4"})(["display:flex;flex-direction:column;align-items:center;user-select:none;","{cursor:pointer;position:relative;z-index:1;display:flex;min-width:100px;min-height:80px;align-items:center;justify-content:center;}","{pointer-events:none;position:absolute;width:100%;height:100%;}","{position:absolute;z-index:2;text-align:center;}.ms-section-snapshot{max-width:","px;max-height:","px;}","{text-overflow:ellipsis;display:block;max-width:130px;white-space:nowrap;overflow:hidden;& input{width:calc(100% - 10px) !important;}}","{position:absolute;bottom:7px;left:7px;z-index:2;padding:3px 5px;}"," ",""],InnerContainer$2,ImageBox$1,IndexNumber,SECTION_ITEM_MAX_WIDTH,SECTION_ITEM_MAX_HEIGHT,Title$v,DynamicTag,theme$2q.sizes((ea,na)=>lt$1(["","{border-radius:",";box-shadow:"," ",";}img{border-radius:",";}","{margin-top:",";font-size:",";font-weight:",";}","{top:",";left:",";height:",";padding:",";font-size:",";font-weight:",";border-radius:",";}","{font-size:",";font-weight:",";border-radius:",";}"],InnerContainer$2,ea.sectionItem.radius,ea.newSectionItem.shadow,na.active&&`, 0 0 0 ${ea.sectionItem.active.borderWidth}`,ea.sectionItem.radius,Title$v,ea.sectionItem.sectionName.space,ea.sectionItem.sectionName.fontSize,na.active?ea.sectionItem.active.sectionName.fontWeight:ea.sectionItem.sectionName.fontWeight,IndexNumber,ea.sectionItem.sectionIndex.space,ea.sectionItem.sectionIndex.space,ea.sectionItem.sectionIndex.size,ea.sectionItem.sectionIndex.padding,ea.sectionItem.sectionIndex.fontSize,ea.sectionItem.sectionIndex.fontWeight,ea.sectionItem.sectionIndex.radius,DynamicTag,ea.sectionItem.dynamicTag.fontSize,ea.sectionItem.dynamicTag.fontWeight,ea.sectionItem.dynamicTag.border)),theme$2q.colors((ea,na)=>lt$1(["","{color:",";}","{color:",";background-color:",";}","{background-color:",";svg{fill:",";}}",""],Title$v,ea.sectionItem.nameTextColor,IndexNumber,ea.sectionItem.sectionIndex.color,ea.sectionItem.sectionIndex.background,DynamicTag,ea.sectionItem.dynamicTag.background,ea.sectionItem.dynamicTag.icon,na.active&&lt$1(["","{color:",";}","{background-color:",";}"],InnerContainer$2,ea.sectionItem.active.border,IndexNumber,ea.sectionItem.active.sectionIndex.background)))),ListContainer$1=dt$1.div.withConfig({displayName:"SectionsList__ListContainer",componentId:"sc-kpc5xn-0"})([""]),SortableContainerElement$1=sortableContainer(({children:ea})=>jsxRuntimeExports.jsx(ListContainer$1,{children:ea})),SortableItemStyles=ft$1([".ms-section-items-sortable-helper{z-index:10;}"]),SectionsList=ea=>{const{className:na}=ea,ra=useSelector(getSectionsDataOrderedList),oa=useSelector(getSectionsList),aa=useSelector(getActiveSection),sa=useSelector(getSectionSnapshotsList,shallowEqual$2),la=useDispatchAndToHistory(),ca=useSelector(getDocumentWrapperSize),ua=reactExports.useRef(null),da=(fa,ma)=>la(renameSection({id:fa,name:ma})),pa=fa=>la(setActiveSection(fa)),ha=fa=>{const ma=oa.slice(),va=ma[fa.oldIndex];ma.splice(fa.oldIndex,1),ma.splice(fa.newIndex,0,va),la(reorderSectionList(ma))},ga=fa=>{const ma=ua.current?.getScrollLeft();ua.current?.scrollLeft((ma||0)+fa.deltaY)};return reactExports.useEffect(()=>{ua.current?.scrollLeft(ua.current.getScrollWidth())},[oa.length]),jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsxs(Scrollbars,{onWheel:ga,ref:ua,autoHide:!0,children:[jsxRuntimeExports.jsx(SortableItemStyles,{}),jsxRuntimeExports.jsxs(SortableContainerElement$1,{lockAxis:"x",axis:"x",distance:5,onSortEnd:ha,helperClass:"ms-section-items-sortable-helper",children:[ra.filter(fa=>!["teaser"].includes(fa?.type||"")).map((fa,ma)=>{const va=fa.wrapperSize?.default||ca.default;return jsxRuntimeExports.jsx(SectionItem$1,{id:fa.id,position:ma+1,index:ma,snapshot:sa[fa.id]||fa.snapshot,name:fa.name||fa.id,active:aa===fa.id,aspect:getSectionItemAspect(va.width,va.height),background:fa.background.video?.src||fa.background.image?.src,backgroundType:fa.background.video?.src?"video":"image",backgroundColor:fa.background.color?.default||"white",onRename:xa=>{xa&&da(fa.id,xa.trim())},onClick:pa,hasDynamicContent:!!fa?.dataSource?.type},fa.id)}),jsxRuntimeExports.jsx(NewSectionItem$1,{})]})]})})},theme$2p=withTheme(scheme$10),SectionsList$1=dt$1(SectionsList).withConfig({displayName:"SectionsList",componentId:"sc-kpc5xn-1"})(["height:176px;margin-left:30px;width:calc(100% - 60px);","{height:176px;display:flex;flex-wrap:nowrap;flex-direction:row;align-items:center;padding-left:3px;}","{","}"],ListContainer$1,SectionItem$1,theme$2p.sizes(ea=>lt$1(["margin-right:",";"],ea.sectionsList.space))),SectionsPanel=({className:ea})=>{const na=useSelector(getSectionPanelIsOpen),ra=reactExports.useRef(null),oa=useSelector(getActiveSection),aa=useDispatch(),sa=ca=>{ca&&aa(updateSectionSnapshot({id:oa,url:URL.createObjectURL(ca)}))},{captureSnapshot:la}=useSnapshot(0,!1,void 0,sa);return reactExports.useEffect(()=>{na&&la()},[la,na]),useOnClickOutside(ra,()=>{na&&aa(closeSectionsPanel())},".ms-sections-panel-toolbar"),jsxRuntimeExports.jsxs("div",{ref:ra,className:`${ea} ${na?"isOpen":"isClosed"}`,children:[jsxRuntimeExports.jsx(SvgSectionsPanelArrow,{}),jsxRuntimeExports.jsx(SectionsList$1,{})]})},theme$2o=withTheme(scheme$10),SectionsPanel$1=dt$1(SectionsPanel).withConfig({displayName:"SectionsPanel",componentId:"sc-14kndhj-0"})(["position:absolute;display:flex;align-items:center;z-index:1;transition:opacity 200ms,visibility 200ms,transform 400ms;> svg{position:absolute;bottom:-8px;left:calc(50% - 13px);}"," &.isClosed{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(5px);}",""],theme$2o.sizes(ea=>lt$1(["left:",";right:",";bottom:",";height:",";border-radius:",";"],ea.panel.space,ea.panel.space,ea.panel.bottomPosition,ea.panel.height,ea.panel.radius)),theme$2o.colors(ea=>lt$1(["background:",";backdrop-filter:",";> svg{fill:",";}"],ea.panel.background,ea.panel.backDrop,ea.panel.background))),SvgNewSection=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19.999,height:21.999,viewBox:"0 0 19.999 21.999",...ea},reactExports.createElement("path",{id:"new_slide","data-name":"new slide",d:"M15581,3514h-10a3,3,0,0,1-3-3v-13a3,3,0,0,1,3-3h4.812a6.5,6.5,0,1,1,8.191,9.979V3511A3,3,0,0,1,15581,3514Zm-10-17.5a1.5,1.5,0,0,0-1.5,1.5v13a1.5,1.5,0,0,0,1.5,1.5h10a1.5,1.5,0,0,0,1.5-1.5v-5.316a6.5,6.5,0,0,1-7.769-9.185Zm6.5,2a1,1,0,1,0,0,2h2v1.995a1,1,0,1,0,1.994,0V3500.5h2a1,1,0,1,0,0-2h-2v-2a1,1,0,1,0-1.994,0v2Z",transform:"translate(-15567.5 -3492.499)",strokeWidth:1})),NewSectionButton=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatch(),{isLimited:oa,openModal:aa}=useLimitedAccessSections(),sa=reactExports.useCallback(()=>{if(oa){aa();return}ra(createNewSection())},[ra,oa,aa]);return jsxRuntimeExports.jsx("div",{className:ea,onClick:sa,"data-tip":na("New {{section}}",{section:DocType.getLabel("section",!0)}),"data-for":"workspace",children:jsxRuntimeExports.jsx(SvgNewSection,{})})},theme$2n=withTheme(scheme$10),NewSectionButton$1=dt$1(NewSectionButton).withConfig({displayName:"NewSectionButton",componentId:"sc-1p0u2jz-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:space-around;cursor:pointer;svg{transition:fill 300ms;}"," ",";"],theme$2n.colors(ea=>lt$1(["background:",";backdrop-filter:",";svg{fill:",";}&:hover{svg{fill:",";}}"],ea.toolbar.background,ea.toolbar.backDrop,ea.toolbar.newSection.iconColor,ea.toolbar.newSection.hover.iconColor)),theme$2n.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";margin-left:",";"],ea.toolbar.newSection.width,ea.toolbar.height,ea.toolbar.radius,ea.toolbar.newSection.space))),SvgNextSection=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20.003,height:19.002,viewBox:"0 0 20.003 19.002",...ea},reactExports.createElement("path",{id:"next_slide","data-name":"next slide",d:"M15575,3511a4,4,0,0,1-4-4v-4.342h-2.253a.751.751,0,0,1,0-1.5H15571V3497a4,4,0,0,1,4-4h8a4.006,4.006,0,0,1,4,4v10a4.006,4.006,0,0,1-4,4Zm-2.5-4a2.5,2.5,0,0,0,2.5,2.5h8a2.5,2.5,0,0,0,2.5-2.5v-10a2.5,2.5,0,0,0-2.5-2.5h-8a2.5,2.5,0,0,0-2.5,2.5v4.154h6.7l-1.729-1.733a.751.751,0,0,1,1.061-1.064l2.469,2.472,0,0,1.06,1.064-3.36,3.36a.76.76,0,0,1-1.06,0,.759.759,0,0,1,0-1.064l1.529-1.53h-6.67Z",transform:"translate(-15567.499 -3492.5)",strokeWidth:1})),SvgPrevSection=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19.999,height:19.002,viewBox:"0 0 19.999 19.002",...ea},reactExports.createElement("path",{id:"prev_slide","data-name":"prev slide",d:"M15572,3511a4,4,0,0,1-4-4v-10a4,4,0,0,1,4-4h8a4.007,4.007,0,0,1,4,4v4.154h2.249a.751.751,0,0,1,0,1.5H15584V3507a4.007,4.007,0,0,1-4,4Zm-2.5-14v10a2.5,2.5,0,0,0,2.5,2.5h8a2.5,2.5,0,0,0,2.5-2.5v-4.342h-6.674l1.529,1.53a.751.751,0,0,1-.523,1.283.754.754,0,0,1-.532-.219l-3.36-3.36,1.063-1.064v0l2.469-2.468a.751.751,0,1,1,1.064,1.06l-1.733,1.733h6.7V3497a2.5,2.5,0,0,0-2.5-2.5h-8A2.5,2.5,0,0,0,15569.5,3497Z",transform:"translate(-15567.502 -3492.5)",strokeWidth:1})),SvgSectionsIcon=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22.299,height:21.998,viewBox:"0 0 22.299 21.998",...ea},reactExports.createElement("path",{id:"slides",d:"M15574.3,3514a1,1,0,0,1-1-1h12a3,3,0,0,0,3-3v-12a1,1,0,0,1,1,1v11a4,4,0,0,1-4,4Zm-3.3-4a3,3,0,0,1-3-3v-11a3,3,0,0,1,3-3h11a3,3,0,0,1,3,3v11a3,3,0,0,1-3,3Zm-1.5-14v11a1.5,1.5,0,0,0,1.5,1.5h11a1.5,1.5,0,0,0,1.5-1.5v-11a1.5,1.5,0,0,0-1.5-1.5h-11A1.5,1.5,0,0,0,15569.5,3496Z",transform:"translate(-15567.501 -3492.502)",strokeWidth:1})),SectionsButton=({className:ea})=>{const na=useSelector(getActiveSectionIndex)+1,ra=useSelector(getSectionPanelIsOpen),{t:oa}=useTranslation(),aa=useDispatch(),sa=reactExports.useCallback(()=>{aa(toggleSectionsPanel())},[aa]);return jsxRuntimeExports.jsxs("div",{className:ea,onClick:sa,"data-tip":ra?oa("Close {{sections}} panel",{sections:DocType.getLabel("sections")}):oa("Open {{sections}} panel",{sections:DocType.getLabel("sections")}),"data-for":"workspace",children:[jsxRuntimeExports.jsx("span",{children:na}),jsxRuntimeExports.jsx(SvgSectionsIcon,{})]})},theme$2m=withTheme(scheme$10),SectionsButton$1=dt$1(SectionsButton).withConfig({displayName:"SectionsButton",componentId:"sc-i7uz0x-0"})(["display:flex;align-items:center;justify-content:space-around;position:relative;height:100%;transition:fill 300ms,color 300ms;span{position:absolute;top:9px;left:0;width:17px;white-space:nowrap;text-align:center;font-size:11px;letter-spacing:-1px;font-weight:600;}",""],theme$2m.colors(ea=>lt$1(["color:",";svg{fill:",";}&:hover{color:",";svg{fill:",";}}"],ea.toolbar.sectionsButton.color,ea.toolbar.sectionsButton.color,ea.toolbar.sectionsButton.activeColor,ea.toolbar.sectionsButton.activeColor))),SwitchSectionButtons=({className:ea})=>{const{t:na}=useTranslation(),ra=useSelector(getNextSection),oa=useSelector(getPreviousSection),aa=useDispatchAndToHistory(),sa=reactExports.useCallback(()=>(ra&&aa(setActiveSection(ra)),!1),[aa,ra]),la=reactExports.useCallback(()=>(oa&&aa(setActiveSection(oa)),!1),[aa,oa]),ca=reactExports.useMemo(()=>({content:na("Next {{section}}",{section:DocType.getLabel("document")}),options:{id:"workspace",place:"top"}}),[na]),ua=reactExports.useMemo(()=>({content:na("Previous {{section}}",{section:DocType.getLabel("document")}),options:{id:"workspace",place:"top"}}),[na]);return useMousetrap([{keys:["mod+right"],callback:sa},{keys:["mod+left"],callback:la}]),jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(IconButton,{tooltip:ua,disabled:!oa,onClick:la,icon:jsxRuntimeExports.jsx(SvgPrevSection,{})}),jsxRuntimeExports.jsx(SectionsButton$1,{}),jsxRuntimeExports.jsx(IconButton,{tooltip:ca,disabled:!ra,onClick:sa,icon:jsxRuntimeExports.jsx(SvgNextSection,{})})]})},theme$2l=withTheme(scheme$10),SwitchSectionButtons$1=dt$1(SwitchSectionButtons).withConfig({displayName:"SwitchSectionButtons",componentId:"sc-td2gf-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-around;cursor:pointer;user-select:none;svg{transition:fill 300ms;}"," ","{display:flex;align-items:center;justify-content:space-around;height:100%;padding:0;}",";"],theme$2l.colors(ea=>lt$1(["background:",";backdrop-filter:",";"],ea.toolbar.background,ea.toolbar.backDrop)),IconButton,theme$2l.sizes(ea=>lt$1(["height:",";border-radius:",";","{width:",";}"],ea.toolbar.height,ea.toolbar.radius,IconButton,ea.toolbar.switchSection.navButtons.width))),BottomToolbar=ea=>{const{className:na}=ea,ra=useSelector(getTransformToolState)==="end";return jsxRuntimeExports.jsxs("div",{className:`ms-sections-panel-toolbar ${na} ${ra?"":"ms-hide-toolbar"}`,children:[jsxRuntimeExports.jsx(SwitchSectionButtons$1,{}),jsxRuntimeExports.jsx(NewSectionButton$1,{})]})},theme$2k=withTheme(scheme$10),SectionsPanelToolbar=dt$1(BottomToolbar).withConfig({displayName:"SectionsPanelToolbar",componentId:"sc-n3dwt0-0"})(["position:absolute;z-index:1;transform:translateX(-50%);display:flex;align-items:center;transition:300ms opacity;"," &.ms-hide-toolbar{opacity:0;pointer-events:none;}"],theme$2k.sizes(ea=>lt$1(["bottom:",";left:calc(50% + ","px);"],ea.toolbar.bottomSpace,parseInt(ea.toolbar.newSection.width.replace("px",""),10)/2))),Content$b=dt$1.div.withConfig({displayName:"ZoomableContainer__Content",componentId:"sc-1f2x97u-0"})(["transform-origin:top left;"]),ZoomableContainer=ea=>{const{className:na,onGetSize:ra,children:oa,zoom:aa=1,margin:sa=0,constrainWidth:la=!0}=ea,ca=reactExports.useRef(null),[ua,da]=reactExports.useState(void 0),[pa,ha]=reactExports.useState(void 0),ga={transform:`scale(${aa})`,...ua!==void 0&&la&&{width:`${ua}px`},...pa!==void 0&&{height:`${pa}px`}},fa={...ua!==void 0&&la&&{width:`${ua*aa}px`},...pa!==void 0&&{height:`${pa*aa}px`}},ma=reactExports.useCallback((va,xa)=>{const ya=va+sa*2,Aa=xa+sa*2;ra?.({width:ya,height:Aa}),Aa!==ua&&da(ya),Aa!==pa&&ha(Aa)},[pa,sa,ra,ua]);return useResizeObserver$1({targetRef:ca,onResize:ma,useLastChild:!0}),jsxRuntimeExports.jsx("div",{style:fa,className:na,children:jsxRuntimeExports.jsx(Content$b,{ref:ca,style:ga,children:oa})})},ZoomableContainer$1=dt$1(ZoomableContainer).withConfig({displayName:"ZoomableContainer",componentId:"sc-1f2x97u-1"})(["margin:auto;"]),defaultColors$1m={scrollbar:{background:"rgba(68, 68, 68, 0.5)",active:"rgba(68, 68, 68, 0.85)",border:"rgba(255, 255, 255, 0.3)"}},colors$1m={dark:defaultColors$1m},defaultSizing$18={scrollbar:{size:"8px"}},sizes$1m={default:defaultSizing$18},scheme$$=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1m,sizes:sizes$1m},Symbol.toStringTag,{value:"Module"})),inputs=["input","select","button","textarea"],ZoomAndPanArea=reactExports.forwardRef((ea,na)=>{const{className:ra,children:oa,onChange:aa,zoom:sa=1,zoomStep:la=.001,minZoom:ca=.5,maxZoom:ua=10,panPosition:da={top:0,left:0},panable:pa=!0,onPanEnd:ha,onPanStart:ga}=ea,fa=reactExports.useRef(null),ma=reactExports.useRef(null),va=reactExports.useRef(sa),xa=reactExports.useRef(da),ya=reactExports.useCallback((ba,Ea)=>{(va.current!==ba||!shallowEqual$2(xa.current,Ea))&&(va.current=ba,xa.current=Ea,aa?.(ba,Ea))},[aa]);reactExports.useEffect(()=>{const ba=Math.min(ua,Math.max(ca,sa));if(ba!==va.current){const Ea=ma.current,{clientWidth:$a,clientHeight:Ma}=Ea,Ia=ba/va.current;ya(ba,{top:(Ea.scrollTop+Ma/2)*Ia-Ma/2,left:(Ea.scrollLeft+$a/2)*Ia-$a/2})}},[sa,ua,ca]),reactExports.useLayoutEffect(()=>{ma.current?.scrollTo(da)},[da]);const Aa=reactExports.useCallback(ba=>{if(!ba.metaKey&&!ba.ctrlKey)return;ba.preventDefault();const Ea=ma.current,{clientX:$a,clientY:Ma}=ba,{x:Ia,y:Oa}=Ea.getBoundingClientRect(),Da=ba.deltaY,Ta=Math.min(ua,Math.max(ca,sa*Math.exp(-Da*la))),_a=Ta/sa;ya(Ta,{top:(Ea.scrollTop+Ma-Oa)*_a-Ma+Oa,left:(Ea.scrollLeft+$a-Ia)*_a-$a+Ia})},[ua,ca,ya,sa,la]),Ca=reactExports.useCallback(ba=>{const Ea=ma.current;switch(ba.type){case"mousedown":Ea.addEventListener("mousemove",Ca),Ea.addEventListener("mouseup",Ca),fa.current={x:ba.clientX+Ea.scrollLeft,y:ba.clientY+Ea.scrollTop};break;case"mousemove":const{x:$a,y:Ma}=fa.current;ya(va.current,{top:Ma-ba.clientY,left:$a-ba.clientX});break;case"mouseup":default:Ea.removeEventListener("mousemove",Ca),Ea.removeEventListener("mouseup",Ca),fa.current=null;break}},[ya]),Sa=reactExports.useCallback(ba=>{const Ea=ma.current;if(Ea&&ba.key===" "&&pa){if(inputs.includes(document.activeElement?.tagName.toLowerCase()||"")||document.activeElement?.isContentEditable)return;ba.preventDefault(),ba.repeat||(ba.type==="keydown"?(ga?.(),Ea.addEventListener("mousedown",Ca)):(ha?.(),Ea.removeEventListener("mousedown",Ca),Ea.removeEventListener("mousemove",Ca),Ea.removeEventListener("mouseup",Ca)))}},[ha,ga,Ca,pa]);reactExports.useEffect(()=>{document.addEventListener("keydown",Sa),document.addEventListener("keyup",Sa);const ba=ma.current;return()=>{document.removeEventListener("keydown",Sa),document.removeEventListener("keyup",Sa),ba?.removeEventListener("mousemove",Ca)}},[Sa,Ca]),reactExports.useEffect(()=>{const ba=ma.current;return ba&&ba.addEventListener("wheel",Aa,{passive:!1}),()=>{ba?.removeEventListener("wheel",Aa)}},[Aa]);const wa=reactExports.useCallback(ba=>{ba&&(ma.current=ba.view,assignRef$1(ba.view,na))},[na]);return jsxRuntimeExports.jsx(Scrollbars,{className:ra,ref:wa,children:oa})}),theme$2j=withTheme(scheme$$),Area=dt$1(ZoomAndPanArea).withConfig({displayName:"ZoomAndPanArea",componentId:"sc-16w7t8l-0"})([""," ","{display:flex;}",""],theme$2j.colors(ea=>lt$1(["",",","{background:",";box-shadow:0 0 0 1px "," inset;&:hover,&:active{background:",";}}"],VerticalThumb,HorizontalThumb,ea.scrollbar.background,ea.scrollbar.border,ea.scrollbar.active)),ScrollbarsView,theme$2j.sizes(ea=>lt$1(["","{width:"," !important;}","{height:"," !important;}"],VerticalTrack,ea.scrollbar.size,HorizontalTrack,ea.scrollbar.size))),PanOverlay=dt$1.div.withConfig({displayName:"ZoomAndPan__PanOverlay",componentId:"sc-bhpl23-0"})(["position:absolute;display:block;width:100%;height:100%;top:0;left:0;cursor:grab;z-index:100;"]),ZoomAndPan$1=reactExports.forwardRef((ea,na)=>{const{children:ra,margin:oa=0,zoom:aa=1,onChange:sa,addOverlay:la,panPosition:ca,constrainWidth:ua=!0,...da}=ea,pa=reactExports.useRef(null),[ha,ga]=reactExports.useState(aa==="fit"?1:aa),[fa,ma]=reactExports.useState(!1),[va,xa]=reactExports.useState(null),ya=aa==="fit",Aa=reactExports.useRef(aa==="fit"?1:aa),Ca=reactExports.useRef(ca),wa=useWindowResize()?.join("");reactExports.useLayoutEffect(()=>{if(ya&&pa.current&&va){const{width:Ia,height:Oa}=va,{clientWidth:Da,clientHeight:Ta}=pa.current;if(Ia<=Da&&Oa<=Ta){sa?.(1,1,Ca.current||{top:0,left:0});return}const{width:_a}=fitToBox$1("contain",Da,Ta,Ia,Oa),La=_a/Ia;Aa.current=La,ga(La)}},[va,sa,ya,wa]);const ba=reactExports.useCallback(Ia=>{pa.current=Ia,assignRef$1(Ia,na)},[na]),Ea=reactExports.useCallback((Ia,Oa)=>{Ia===Aa.current&&ya?sa?.("fit",Ia,Oa):(Ia!==Aa.current||!shallowEqual$2(Ca.current,Oa))&&sa?.(Ia,Ia,Oa),Ca.current=Oa},[sa,ya]),$a=reactExports.useCallback(()=>{la&&ma(!0)},[la]),Ma=reactExports.useCallback(()=>{la&&ma(!1)},[la]);return jsxRuntimeExports.jsx(Area,{...da,panPosition:ca,onPanEnd:Ma,onPanStart:$a,onChange:Ea,zoom:ya?ha:aa,ref:ba,children:jsxRuntimeExports.jsxs(ZoomableContainer$1,{margin:oa,zoom:ya?ha:aa,onGetSize:xa,constrainWidth:ua,children:[fa&&jsxRuntimeExports.jsx(PanOverlay,{}),ra]})})});document.documentElement.style.setProperty("--depicter-workspace-zoom","1");const ZoomAndPanController=({className:ea,children:na,constrainWidth:ra})=>{const{zoom:oa=1,computedZoom:aa=1,pan:sa={top:0,left:0}}=useSelector(getWorkspaceZoomAndPan,equal),la=useSelector(getWorkspacePanningStatus),ca=useDispatch();useSelector(getActiveBreakpoint),reactExports.useEffect(()=>{document.documentElement.style.setProperty("--depicter-workspace-zoom",(aa||1).toString(10))},[aa]),useMousetrap([{keys:["mod+="],callback:()=>(ca(updateWorkspacePanAndZoom({computedZoom:aa,zoom:aa+.2,pan:sa})),!1)},{keys:["mod+-"],callback:()=>(ca(updateWorkspacePanAndZoom({computedZoom:aa,zoom:aa-.2,pan:sa})),!1)},{keys:["mod+0"],callback:()=>(ca(updateWorkspacePanAndZoom({computedZoom:aa,zoom:1,pan:sa})),!1)},{keys:["mod+shift+0"],callback:()=>(ca(updateWorkspacePanAndZoom({computedZoom:aa,zoom:"fit",pan:sa})),!1)}]);const ua=reactExports.useCallback(pa=>{document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||pa.key===" "&&!pa.repeat&&(pa.type==="keydown"?la||ca(setPanningStartStatus(!0)):pa.type==="keyup"&&la&&ca(setPanningStartStatus(!1)))},[ca,la]);reactExports.useEffect(()=>(document.addEventListener("keydown",ua),document.addEventListener("keyup",ua),()=>{document.removeEventListener("keyup",ua),document.removeEventListener("keydown",ua)}),[ua]);const da=reactExports.useCallback((pa,ha,ga)=>{ca(updateWorkspacePanAndZoom({computedZoom:ha,zoom:pa,pan:ga}))},[ca]);return jsxRuntimeExports.jsx(ZoomAndPan$1,{margin:20,zoom:oa,panPosition:sa,onChange:da,className:ea,addOverlay:!0,constrainWidth:ra,children:na})},ZoomAndPan=dt$1(ZoomAndPanController).withConfig({displayName:"ZoomAndPanController",componentId:"sc-1sj8yqy-0"})([""]),Artboard=({className:ea,children:na,onContextMenu:ra,constrainWidth:oa})=>jsxRuntimeExports.jsx("div",{className:`${ea} depicter-artboard`,onContextMenu:ra,children:jsxRuntimeExports.jsx(ZoomAndPan,{constrainWidth:!oa,children:na})}),Artboard$1=dt$1(Artboard).withConfig({displayName:"Artboard",componentId:"sc-1fuy6d-0"})(["position:relative;width:100%;height:100%;"]),defaultMimeTypes=["image/jpeg","image/pjpeg","image/jpeg","image/pjpeg","image/png","image/gif","video/mp4","video/quicktime"],useAssetFileDropZone=ea=>{const{allowedTypes:na=defaultMimeTypes,onDrop:ra}=ea,oa=useUserTierAuthCallback(),aa=useOpenUpgradeToPro(),{setDropZoneRef:sa,canDrop:la,isDragging:ca}=useAssetDropZone({canDrop(ua){return ua.files.length?ua.files.some(pa=>na.includes(pa.type)):!0},drop(ua){const da=oa(Tiers.LEGACY_FREE),pa=ua.files.some(ga=>ga.type.startsWith("video/"));if(!da&&pa){aa({source:"depicter_editor",medium:"file_upload",content:"drop_zone"});return}const ha=ua.files.filter(ga=>na.includes(ga.type));ra(ha)}},0,dragTypes.FILE);return reactExports.useMemo(()=>({setDropZoneRef:sa,canDrop:la,isDrag:ca}),[sa,la,ca])},getImageAssetPayloadFromFile=ea=>new Promise(na=>{const ra={id:nanoid$1(),type:"photo"},oa=document.createElement("img"),aa=URL.createObjectURL(ea);oa.src=aa,oa.onload=()=>{ra.width=oa.width,ra.height=oa.height,ra.payload={elementData:{options:{dataURL:aa}}},na(ra)}}),getVideoAssetPayloadFromFile=ea=>new Promise(na=>{const ra={id:nanoid$1(),type:"video"},oa=document.createElement("video"),aa=URL.createObjectURL(ea);oa.src=aa,oa.addEventListener("loadedmetadata",()=>{ra.width=oa.videoWidth,ra.height=oa.videoHeight,ra.payload={elementData:{options:{dataURL:aa}}},na(ra)})}),getAssetPayloadFromFile=async ea=>await(ea.type.includes("image")?getImageAssetPayloadFromFile:getVideoAssetPayloadFromFile)(ea);let insertCount=0,resetInsertCount;const useCreateElementFromAsset=(ea,na)=>{const ra=useDispatch(),oa=useSelector(getActiveSection);return reactExports.useCallback(aa=>{const sa={x:insertCount*20,y:insertCount*20};ra(createElementsFromAssetPayload(getAssetPayload(aa||ea),na||oa,sa)),insertCount+=1,clearTimeout(resetInsertCount),resetInsertCount=window.setTimeout(()=>{insertCount=0},1e4)},[ea,ra,na,oa])},DropZone=({className:ea,children:na})=>{const ra=useSelector(getActiveSection),oa=useSelector(getWorkspaceComputedZoom),aa=reactExports.useRef(null),sa=useCreateElementFromAsset(),la=useDispatch(),ca=reactExports.useCallback(ma=>{ma.forEach(va=>{getAssetPayloadFromFile(va).then(xa=>{const{id:ya,payload:Aa}=xa;la(addDataURL({id:ya,value:Aa?.elementData?.options?.dataURL})),sa(xa),la(uploadMedia(ya,va))})})},[la,sa]),{setDropZoneRef:ua,isDrag:da}=useAssetFileDropZone({onDrop:ca}),{setDropZoneRef:pa,isDragging:ha}=useAssetDropZone({canDrop(){return!0},drop(ma,va,xa){const ya=va.getSourceClientOffset();if(ya&&ra){const Aa=xa.querySelector(".dp-elements-wrapper")?.getBoundingClientRect();if(!Aa)return;const{left:Ca,top:Sa}=Aa,{dragMeta:wa}=ma.assetData?.previewOptions||{},ba={x:(ya.x-Ca+(wa?.positionRefine?.x||0))/oa,y:(ya.y-Sa+(wa?.positionRefine?.y||0))/oa};la(createElementsFromAssetPayload(getAssetPayload(ma.assetData),ra,ba))}}},0,void 0,!1),ga=reactExports.useCallback(({active:ma,over:va})=>{if(!ma||!va||!aa.current)return;const{id:xa,rect:ya}=ma,{id:Aa}=va,Ca=aa.current.querySelector(".dp-elements-wrapper")?.getBoundingClientRect();if(!Ca||!ya.current.translated)return;const{left:Sa,top:wa}=Ca,ba={x:(ya.current.translated.left-Sa)/oa,y:(ya.current.translated.top-wa)/oa};la(changeElementHierarchyThunk({id:xa.toString(),target:Aa.toString(),overridePosition:ba}))},[la,oa]),{setNodeRef:fa}=useDroppable({id:ra,accepts:dragTypes.GROUPABLE_ELEMENT,acceptDrops:useIsKeyDown("Alt"),onDrop:ga});return jsxRuntimeExports.jsx("div",{className:`${ea} ${da||ha?"depicter-can-drop":""}`,ref:ma=>{ma&&(ua(ma),pa(ma),fa(ma)),aa.current=ma},children:na})},DropZone$1=dt$1(DropZone).withConfig({displayName:"DropZone",componentId:"sc-zwbhxb-0"})(["&.depicter-can-drop{}"]),defaultColors$1l={tab:{iconColor:"#aaaaaa",color:"rgba(129, 129, 129, 0.87)"},selectedTab:{iconColor:"#4980F5",background:"#363636",color:"rgba(255, 255, 255, 0.87)"}},colors$1l={dark:defaultColors$1l},defaultSizing$17={tab:{height:"47px",borderRadius:"3px",fontSize:"10px",labelGap:"5px"}},sizes$1l={default:defaultSizing$17},scheme$_=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1l,sizes:sizes$1l},Symbol.toStringTag,{value:"Module"})),Tab$2=({icon:ea,label:na,hide:ra,dependency:oa=()=>!0,...aa})=>{const sa=useSelector(oa);return!ra&&sa?jsxRuntimeExports.jsxs(SimpleItem,{...aa,children:[ea&&jsxRuntimeExports.jsx(Icon$4,{shape:ea}),na&&jsxRuntimeExports.jsx(Label$6,{children:na})]}):null},theme$2i=withTheme(scheme$_),Tab$3=dt$1(Tab$2).withConfig({displayName:"Tab",componentId:"sc-16ofhry-0"})(["display:flex;cursor:pointer;align-items:center;justify-content:flex-end;transition:background 300ms;flex:1;flex-flow:column wrap;svg{display:block;transition:fill 300ms;}","{display:flex;align-items:center;flex:1;}","{margin-bottom:0;}"," ",""],Icon$4,Label$6,theme$2i.colors((ea,na)=>lt$1(["background-color:",";","{color:",";}svg{fill:",";}"],na.selected?ea.selectedTab.background:"transparent",Label$6,na.selected?ea.selectedTab.color:ea.tab.color,na.selected?ea.selectedTab.iconColor:ea.tab.iconColor)),theme$2i.sizes(ea=>lt$1(["height:",";border-top-left-radius:",";border-top-right-radius:",";> ","{font-size:",";margin-bottom:",";}"],ea.tab.height,ea.tab.borderRadius,ea.tab.borderRadius,Label$6,ea.tab.fontSize,ea.tab.labelGap))),OptionsPanelTabsBar=({className:ea,tabs:na,value:ra,onChange:oa})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Choose,{value:ra,onChange:oa,className:ea,children:na.map(({id:aa,label:sa,icon:la,dependency:ca})=>jsxRuntimeExports.jsx(Tab$3,{value:aa,dependency:ca,icon:la,label:sa},aa))})}),TabsBar=dt$1(OptionsPanelTabsBar).withConfig({displayName:"TabsBar",componentId:"sc-f45bq3-0"})(["display:flex;height:100%;align-items:flex-end;"]),OptionsTab=({className:ea})=>{const na=useDispatch(),ra=useSelector(getOptionPanelData,equal),oa=!!useSelector(getSelectedElements).length,aa=oa?updateActiveElementOptionsTab:updateActiveSectionOptionsTab,sa=useSelector(getActiveOptionsPanelTab(oa)),la=ca=>{na(aa(ca))};return reactExports.useEffect(()=>{ra?.length&&(sa===""||!ra.map(ca=>ca.id).includes(sa))&&na(aa(ra[0].id))},[sa,na,ra,aa]),ra?jsxRuntimeExports.jsx(TabsBar,{className:`${ea} depicter-keep-element-selection`,tabs:ra,value:sa,onChange:la}):null},OptionTabs=dt$1(OptionsTab).withConfig({displayName:"OptionsPanelTabs",componentId:"sc-hhrz7p-0"})([""]),responsiveSwitchColor={color:"#AAAAAA",indicator:"#000000",selected:{color:"white"}},responsiveSwitchColors={dark:responsiveSwitchColor},responsiveSwitchSize={width:"30px",height:"30px",radius:"5px"},responsiveSwitchSizes={default:responsiveSwitchSize},responsiveSwitch={colors:responsiveSwitchColors,sizes:responsiveSwitchSizes},theme$2h=withTheme(responsiveSwitch),ResponsiveItem=dt$1(SimpleItem).withConfig({displayName:"ResponsiveSwitch__ResponsiveItem",componentId:"sc-ts00s8-0"})(["display:flex;cursor:pointer;align-items:center;justify-content:space-around;transition:background 300ms;svg{display:block;transition:fill 300ms;}"," ",""],theme$2h.colors((ea,na)=>lt$1(["background:",";svg{fill:",";}"],na.selected?ea.indicator:"transparent",na.selected?ea.selected.color:ea.color)),theme$2h.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.width,ea.height,ea.radius))),ResponsiveSwitch=ea=>{const{t:na}=useTranslation(),{onChange:ra,value:oa,className:aa,tooltip:sa}=ea,la={place:sa?.place||"top",group:sa?.group||"workspace"};return jsxRuntimeExports.jsxs(Choose,{className:aa,onChange:ra,value:oa,children:[jsxRuntimeExports.jsx(ResponsiveItem,{value:"default",tooltip:{value:na("Desktop"),...la},children:jsxRuntimeExports.jsx(Icon$4,{shape:SvgDesktop})}),jsxRuntimeExports.jsx(ResponsiveItem,{value:"tablet",tooltip:{value:na("Tablet"),...la},children:jsxRuntimeExports.jsx(Icon$4,{shape:SvgTablet})}),jsxRuntimeExports.jsx(ResponsiveItem,{value:"mobile",tooltip:{value:na("Mobile"),...la},children:jsxRuntimeExports.jsx(Icon$4,{shape:SvgMobile})})]})},StyledResponsiveSwitch=dt$1(ResponsiveSwitch).withConfig({displayName:"ResponsiveSwitch__StyledResponsiveSwitch",componentId:"sc-ts00s8-1"})(["display:flex;"]),ResponsiveSwitch$1=withDefaultProps(StyledResponsiveSwitch,{value:"default"}),BreakpointButtonsLogic=({className:ea})=>{const na=useDispatchAndToHistory(),ra=useSelector(getActiveBreakpoint),oa=aa=>{na(setActiveBreakpoint(aa))};return jsxRuntimeExports.jsx(ResponsiveSwitch$1,{className:`${ea} depicter-keep-element-selection`,value:ra,onChange:oa})},BreakpointButtons=dt$1(BreakpointButtonsLogic).withConfig({displayName:"BreakpointButtons",componentId:"sc-m0ocwf-0"})([""]),SectionName$1=({className:ea})=>{const[na,ra]=reactExports.useState(!0),oa=useSelector(getActiveSectionName),aa=useSelector(getActiveSection),sa=useSelector(getSectionNamesMap),{t:la}=useTranslation(),ca=useDispatchAndToHistory(),ua=reactExports.useCallback(da=>{Array.from(sa.values()).includes(da.trim())?ra(!1):(ca(renameSection({name:da.trim(),id:aa})),ra(!0))},[sa,ca,aa]);return reactExports.useEffect(()=>{ra(!0)},[aa]),jsxRuntimeExports.jsxs("div",{className:`${ea} ${na?"ms-valid":"ms-invalid"}`,children:[jsxRuntimeExports.jsx(RenameBox$1,{value:oa,onChange:ua,title:la("Click to rename")}),!na&&jsxRuntimeExports.jsx(StyledTooltipWrap,{tooltipProps:{place:"top",id:"workspace"},tooltip:jsxRuntimeExports.jsx("p",{children:la("{{section}} name is already exist please try another name",{section:DocType.getLabel("section",!0)})}),children:jsxRuntimeExports.jsx(SvgInfo$1,{})})]})},theme$2g=withTheme(scheme$14),SectionName$2=dt$1(SectionName$1).withConfig({displayName:"SectionName",componentId:"sc-1x5mj2l-0"})(["position:relative;display:inline-flex;align-items:center;column-gap:8px;input{padding:0;border:none;}"," ",""],theme$2g.colors(ea=>lt$1(["color:",";&.ms-invalid{color:",";svg{fill:",";}","{+ div{background:"," !important;border:none;}}}"],ea.artboardName,ea.artboardNameError,ea.tooltipError,StyledTooltipWrap,ea.tooltipError)),theme$2g.sizes(ea=>lt$1(["font-size:",";"],ea.artboardName.fontSize))),SectionOptions=({className:ea})=>{const{t:na}=useTranslation(),ra=useSelector(getActiveSection),oa=useSelector(getActiveSectionType),aa=useDispatchAndToHistory(),{isLimited:sa,openModal:la}=useLimitedAccessSections(),ca=oa==="teaser",ua=reactExports.useCallback(()=>{aa(removeSection({id:ra}))},[ra,aa]),da=reactExports.useCallback(()=>{if(sa){la();return}aa(duplicateSection({id:ra}))},[ra,aa,sa,la]);if(ca)return null;const pa=jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgMore,{style:{fill:"currentColor"}})});return jsxRuntimeExports.jsxs(Menu,{className:ea,direction:"bottom",align:"start",minWidth:"120px",transition:!0,size:"medium",menuButton:pa,children:[jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:ua,children:na("Delete")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:da,children:na("Duplicate")})]})},SectionOptions$1=dt$1(SectionOptions).withConfig({displayName:"SectionOptions",componentId:"sc-1o8bts7-0"})(["","{padding:15px 5px;}"],IconButton),UndoRedoButtons=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatch(),oa=useSelector(getHasUndo),aa=useSelector(getHasRedo);return jsxRuntimeExports.jsxs("div",{className:`${ea} depicter-keep-element-selection`,children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>ra(undo()),tooltip:{content:na("Undo"),options:{place:"top",id:"workspace"}},disabled:!oa,icon:jsxRuntimeExports.jsx(SvgUndo,{})}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>ra(redo()),tooltip:{content:na("Redo"),options:{place:"top",id:"workspace"}},disabled:!aa,icon:jsxRuntimeExports.jsx(SvgRedo,{})})]})},UndoRedoButtons$1=dt$1(UndoRedoButtons).withConfig({displayName:"UndoRedoButtons",componentId:"sc-1n2amu2-0"})(["height:100%;display:flex;align-items:center;"]),theme$2f=withTheme(scheme$14),HiddenItem=dt$1(SimpleItem).withConfig({displayName:"ShowHiddenItemsButton__HiddenItem",componentId:"sc-jm2sby-0"})(["display:flex;align-items:center;justify-content:center;transition:background 300ms ease-out;"," ",""],theme$2f.colors((ea,na)=>lt$1(["background:",";svg{fill:",";}"],na.selected?ea.hiddenItem.background:"transparent",na.selected?ea.hiddenItem.active:ea.hiddenItem.disable)),theme$2f.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.hiddenItem.width,ea.hiddenItem.height,ea.hiddenItem.radius))),ShowHiddenItemsButton=({className:ea})=>{const na=useDispatchAndToHistory(),{t:ra}=useTranslation(),oa=useSelector(getShowHiddenItems);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(HiddenItem,{onClick:()=>na(setShowHiddenItems(!oa)),selected:!oa,children:jsxRuntimeExports.jsx(IconButton,{tooltip:{content:ra("Invisible Hidden Elements"),options:{place:"top",id:"workspace"}},icon:jsxRuntimeExports.jsx(SvgHidden,{})})})})},ShowHiddenItemsButton$1=dt$1(ShowHiddenItemsButton).withConfig({displayName:"ShowHiddenItemsButton",componentId:"sc-jm2sby-1"})([""]),SectionPreviewButton=({className:ea})=>{const{t:na}=useTranslation(),oa=useSelector(getSectionPreviewState)==="activated",aa=useDispatch(),sa=reactExports.useCallback(la=>{la.stopPropagation(),la.preventDefault(),aa(updateSectionPreviewState(oa?"deactivated":"activated"))},[aa,oa]);return jsxRuntimeExports.jsx(SolidButton,{className:`${ea} ${oa?"ms-preview-activated":""}`,size:"small",color:"secondary",icon:oa?jsxRuntimeExports.jsx(SvgStop,{}):jsxRuntimeExports.jsx(SvgPlay,{}),onClick:sa,children:na(oa?"Stop Animations":"Play Animations")})},ActivePreviewAnimation=mt$1(["from{background-color:rgba(73,128,245,1);}to{background-color:rgba(73,128,245,0.7);}"]),SectionPreviewButton$1=dt$1(SectionPreviewButton).withConfig({displayName:"SectionPreviewButton",componentId:"sc-qp4eg7-0"})(["transition:background-color 300ms,color 300ms,box-shadow 300ms;&:hover{box-shadow:0 0 0 2px #4980f5 inset;background:#121212;color:#ffffff;svg{fill:#ffffff !important;}}&.ms-preview-activated{animation:"," 0.8s alternate infinite ease-out;box-shadow:none;}"],ActivePreviewAnimation),WorkspaceZoomValue=dt$1.span.withConfig({displayName:"WorkspaceZoomControl__WorkspaceZoomValue",componentId:"sc-amvazq-0"})([""]),ZoomControlContainer=dt$1.div.withConfig({displayName:"WorkspaceZoomControl__ZoomControlContainer",componentId:"sc-amvazq-1"})([""]),WorkspaceZoom=({className:ea})=>{const{t:na}=useTranslation(),ra=useSelector(getWorkspaceZoom),oa=useDispatchAndToHistory(),aa=reactExports.useCallback(la=>{const{value:ca}=la;oa(setWorkspaceZoom(ca))},[oa]),sa=jsxRuntimeExports.jsxs(ZoomControlContainer,{children:[jsxRuntimeExports.jsx(WorkspaceZoomValue,{children:ra==="fit"?na("Fit"):`${Math.round(ra*100)}%`}),jsxRuntimeExports.jsx(Icon$4,{shape:SvgChevronDown})]});return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs(Menu,{direction:"bottom",align:"end",minWidth:"60px",transition:!0,size:"medium",menuButton:sa,children:[jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:"fit",onClick:aa,children:na("Fit")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:1,onClick:aa,children:na("100%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:.25,onClick:aa,children:na("25%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:.5,onClick:aa,children:na("50%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:.75,onClick:aa,children:na("75%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:1.5,onClick:aa,children:na("150%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:2,onClick:aa,children:na("200%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:3,onClick:aa,children:na("300%")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:4,onClick:aa,children:na("400%")})]})})},theme$2e=withTheme(scheme$14),WorkspaceZoomControl=dt$1(WorkspaceZoom).withConfig({displayName:"WorkspaceZoomControl",componentId:"sc-amvazq-2"})(["display:flex;align-items:center;","{display:inline-block;position:relative;top:-2px;margin-left:3px;}","{cursor:pointer;}"," ",""],Icon$4,ZoomControlContainer,theme$2e.colors(ea=>lt$1(["","{color:",";}","{&:hover{background-color:",";}}svg{fill:",";}"],WorkspaceZoomValue,ea.workspaceZoomControl.text,ZoomControlContainer,ea.workspaceZoomControl.hoverBackground,ea.workspaceZoomControl.text)),theme$2e.sizes(ea=>lt$1(["","{border-radius:",";padding:",";}","{font-size:",";font-weight:",";}"],ZoomControlContainer,ea.workspaceZoomControl.radius,ea.workspaceZoomControl.padding,WorkspaceZoomValue,ea.workspaceZoomControl.fontSize,ea.workspaceZoomControl.fontWeight))),SectionAnimateButton=({className:ea})=>{const{t:na}=useTranslation(),ra=useDispatch(),{openQuickTip:oa,closeQuickTip:aa}=reactExports.useContext(QuickTipContext),sa=useUserTierAuth(Tiers.PRO),la=reactExports.useCallback(da=>{oa({media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2025/06/animation-wizard.mp4"},upgradeBtn:!sa,upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"sectionAnimate",term:"Animate"},title:na("Apply animations to your elements with ease!"),content:na("Create stunning animations for your elements with our intuitive wizard. You are one click away from making your content come to life!"),options:{locate:{x:"left",y:"bottom"},space:10}},da.currentTarget.getBoundingClientRect())},[oa,na,sa]),ca=reactExports.useCallback(()=>{aa()},[aa]),ua=reactExports.useCallback(da=>{da.stopPropagation(),da.preventDefault(),ra(updateActiveSectionOptionsTab("animation/animationWizard"))},[ra]);return jsxRuntimeExports.jsx(SolidButton,{className:ea,size:"small",color:"secondary",icon:jsxRuntimeExports.jsx(SvgWizard,{}),onClick:ua,onMouseEnter:la,onMouseLeave:ca,children:na("Animate")})},SectionAnimateButton$1=dt$1(SectionAnimateButton).withConfig({displayName:"SectionAnimateButton",componentId:"sc-nygvve-0"})(["transition:background-color 300ms,color 300ms,box-shadow 300ms;&:hover{box-shadow:0 0 0 2px #4980f5 inset;background:#121212;color:#ffffff;svg{fill:#ffffff !important;}}"]),LeftContainer$4=dt$1.div.withConfig({displayName:"Toolbar__LeftContainer",componentId:"sc-3ou2r3-0"})([""]),RightContainer$4=dt$1.div.withConfig({displayName:"Toolbar__RightContainer",componentId:"sc-3ou2r3-1"})([""]),Toolbar=({className:ea})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(LeftContainer$4,{children:[jsxRuntimeExports.jsx(SectionOptions$1,{}),jsxRuntimeExports.jsx(SectionName$2,{}),jsxRuntimeExports.jsx(SectionAnimateButton$1,{}),jsxRuntimeExports.jsx(SectionPreviewButton$1,{}),jsxRuntimeExports.jsx(UndoRedoButtons$1,{}),jsxRuntimeExports.jsx(ShowHiddenItemsButton$1,{})]}),jsxRuntimeExports.jsx(BreakpointButtons,{}),jsxRuntimeExports.jsxs(RightContainer$4,{children:[jsxRuntimeExports.jsx(WorkspaceZoomControl,{}),jsxRuntimeExports.jsx(OptionTabs,{})]})]}),theme$2d=withTheme(scheme$14),Toolbar$1=dt$1(Toolbar).withConfig({displayName:"Toolbar",componentId:"sc-3ou2r3-2"})(["display:flex;align-items:center;justify-content:space-between;margin-top:-2px;","{display:flex;height:100%;align-items:center;& > *{margin-right:10px;}}","{display:flex;height:100%;align-items:center;}","{margin-right:22px;}"," "," ","{position:absolute;left:calc(50% - 140px);transform:translateX(-50%);@media (max-width:1750px){position:relative;left:initial;top:initial;transform:initial;}}"],LeftContainer$4,RightContainer$4,WorkspaceZoomControl,theme$2d.colors(ea=>lt$1(["background-color:",";"],ea.workspaceToolbar.background)),theme$2d.sizes(ea=>lt$1(["height:",";padding:",";","{width:",";}"],ea.workspaceToolbar.height,ea.workspaceToolbar.padding,OptionTabs,ea.optionTabs.width)),BreakpointButtons),DragRect=dt$1.div.withConfig({displayName:"DragOverlay__DragRect",componentId:"sc-o8fzk0-0"})(["border:dashed 2px silver;border-radius:5px;"]),DragOverlay=ea=>{const{className:na}=ea,[ra,oa]=reactExports.useState(null),[aa,sa]=reactExports.useState(!0);return useDndMonitor({onDragMove(la){const{width:ca,height:ua}=la.active.rect.current.translated;oa({width:ca,height:ua}),sa(la.active.data.current?.staticPosition)},onDragEnd(){oa(null)},onDragCancel(){oa(null)}}),jsxRuntimeExports.jsx(DragOverlay$2,{dropAnimation:null,className:na,style:{visibility:aa?"visible":"hidden"},children:ra&&jsxRuntimeExports.jsx(DragRect,{style:{width:`${ra.width}px`,height:`${ra.height}px`}})})},DragOverlay$1=dt$1(DragOverlay).withConfig({displayName:"DragOverlay",componentId:"sc-o8fzk0-1"})(["pointer-events:none !important;"]),DndContext=ea=>{const na=useSensor(PointerSensor),ra=useSensors(na);return jsxRuntimeExports.jsx(DndContext$1,{sensors:ra,...ea})},defaultColors$1k={handler:{background:"#363636",icon:{normal:"#aaaaaa",active:"rgba(73, 128, 245, 1)",hover:"#FFF"}},area:{background:"#222"},closeButton:{color:"rgba(73, 128, 245, 0.87)",hover:"white"},elementsTab:{icon:"#AAAAAA",color:"#818181",background:"#363636"},layer:{icon:{fill:"#AAAAAA",background:"#242424"},color:"#FFF",active:"rgba(170, 170, 170, 0.14)",snapColor:"#D7D7D7 "}},colors$1k={dark:defaultColors$1k},defaultSizing$16={closeButton:{fontSize:"12px",fontWeight:"400"},elementsTab:{fontSize:"10px",fontWeight:"600",lineHeight:"14px",letterSpacing:"1px"},layer:{fontSize:"13px",fontWeight:"400",lineHeight:"15px"}},sizes$1k={default:defaultSizing$16},scheme$Z=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1k,sizes:sizes$1k},Symbol.toStringTag,{value:"Module"})),PanelHandler=ea=>{const{className:na,active:ra=!1,onClick:oa}=ea;return jsxRuntimeExports.jsx(IconButton,{className:`${na} ${ra?"dp-layers-panel-active":""}`,icon:jsxRuntimeExports.jsx(SvgLayers,{}),onClick:oa})},theme$2c=withTheme(scheme$Z),PanelHandler$1=dt$1(PanelHandler).withConfig({displayName:"PanelHandler",componentId:"sc-zojp0n-0"})(["width:41px;height:38px;border-radius:8px;",""],theme$2c.colors((ea,na)=>lt$1(["background-color:",";&:hover{background-color:",";svg{fill:"," !important;}}svg{fill:"," !important;}"],ea.handler.background,ea.handler.background,na.active?ea.handler.icon.active:ea.handler.icon.hover,na.active?ea.handler.icon.active:ea.handler.icon.normal))),theme$2b=withTheme(scheme$Z),CloseButton$1=dt$1(BaseButton$1).withConfig({displayName:"CloseButton",componentId:"sc-1dd3rm2-0"})(["padding-right:0;"," ",""],theme$2b.colors(ea=>lt$1(["color:",";:hover{color:",";}"],ea.closeButton.color,ea.closeButton.hover)),theme$2b.sizes(ea=>lt$1(["font-size:",";font-weight:",";"],ea.closeButton.fontSize,ea.closeButton.fontWeight))),Title$u=dt$1.span.withConfig({displayName:"LayersTab__Title",componentId:"sc-gtapxs-0"})([""]),Container$A=dt$1.div.withConfig({displayName:"LayersTab__Container",componentId:"sc-gtapxs-1"})([""]),ArrowIcon=dt$1(Icon$4).withConfig({displayName:"LayersTab__ArrowIcon",componentId:"sc-gtapxs-2"})([""]),Tab$1=dt$1(Label$6).withConfig({displayName:"LayersTab__Tab",componentId:"sc-gtapxs-3"})([""]),LayersTab=ea=>{const{className:na,title:ra,tooltip:oa,defaultExpand:aa=!0,children:sa}=ea,[la,ca]=reactExports.useState(aa),ua=reactExports.useCallback(da=>{da.preventDefault(),ca(!la)},[la]);return jsxRuntimeExports.jsxs("div",{className:`${na} ${la?"":"dp-container-hidden"}`,children:[jsxRuntimeExports.jsxs(Tab$1,{tooltip:{content:oa,options:{id:"workspace",place:"top"}},onClick:ua,children:[jsxRuntimeExports.jsx(ArrowIcon,{shape:SvgChevronDown}),jsxRuntimeExports.jsx(Title$u,{children:ra})]}),jsxRuntimeExports.jsx(Container$A,{children:sa})]})},theme$2a=withTheme(scheme$Z),LayersTab$1=dt$1(LayersTab).withConfig({displayName:"LayersTab",componentId:"sc-gtapxs-4"})(["border-radius:6px;","{display:flex;align-items:center;padding:10px 5px;margin:0;cursor:pointer;","{text-transform:uppercase;}","{margin-right:6px;}"," ","{display:flex;}}&.dp-container-hidden{","{display:none;}"," svg{transform:rotate(-90deg);}}","{top:0;}"," ",""],Tab$1,Title$u,ArrowIcon,IconButton,Icon$4,Container$A,ArrowIcon,StyledTooltipWrap,theme$2a.colors(ea=>lt$1(["background-color:",";","{fill:",";}"],ea.elementsTab.background,ArrowIcon,ea.elementsTab.icon)),theme$2a.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";letter-spacing:",";}"],Title$u,ea.elementsTab.fontSize,ea.elementsTab.fontWeight,ea.elementsTab.lineHeight,ea.elementsTab.letterSpacing))),getLayersByParent=(ea,na)=>{const ra=ea.find(oa=>oa.id===na);return ea.filter(oa=>oa.parent===na).sort((oa,aa)=>{if(aa.order!==oa.order)return ra?.isAutoLayout?oa.order-aa.order:aa.order-oa.order;const[,sa]=oa.id.split("-"),[,la]=aa.id.split("-"),ca=parseInt(sa,10),ua=parseInt(la,10);return ra?.isAutoLayout?ca-ua:ua-ca})},getLayers=(ea,na)=>ea.filter(oa=>oa.parent===na).reduce((oa,aa)=>(oa.push(aa),oa.push(...getLayers(ea,aa.id)),oa),[]);function restrictToBoundingRect(ea,na,ra){const oa={...ea};return na.top+ea.y<=ra.top?oa.y=ra.top-na.top:na.bottom+ea.y>=ra.top+ra.height&&(oa.y=ra.top+ra.height-na.bottom),na.left+ea.x<=ra.left?oa.x=ra.left-na.left:na.right+ea.x>=ra.left+ra.width&&(oa.x=ra.left+ra.width-na.right),oa}const restrictToVerticalAxis=ea=>{let{transform:na}=ea;return{...na,x:0}},restrictToWindowEdges=ea=>{let{transform:na,draggingNodeRect:ra,windowRect:oa}=ea;return!ra||!oa?na:restrictToBoundingRect(na,ra,oa)},SvgLock=ea=>reactExports.createElement("svg",{width:11,height:13,viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.06246C0.5 5.64827 0.835769 5.3125 1.24996 5.3125H9.75004C10.1642 5.3125 10.5 5.64827 10.5 6.06246V11.3122C10.5 11.7264 10.1642 12.0621 9.75004 12.0621H1.24996C0.835769 12.0621 0.5 11.7264 0.5 11.3122V6.06246Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.39989 5.31314H3.39919L2 5.31241V3.81267C2 1.74479 3.56997 0.0625 5.49973 0.0625C7.42983 0.0625 9.00008 1.74478 9.00008 3.81267V5.31167L7.60019 5.31241V3.81267C7.60019 2.5722 6.65793 1.56297 5.49973 1.56297C4.34187 1.56297 3.39989 2.57219 3.39989 3.81267V5.31241V5.31314Z"})),SvgUnlock=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.06246C0.5 5.64827 0.835769 5.3125 1.24996 5.3125H9.75004C10.1642 5.3125 10.5 5.64827 10.5 6.06246V11.3122C10.5 11.7264 10.1642 12.0621 9.75004 12.0621H1.24996C0.835769 12.0621 0.5 11.7264 0.5 11.3122V6.06246Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.39989 5.31314H7.39919L6 5.31241V3.81267C6 1.74479 7.56997 0.0625 9.49973 0.0625C11.4298 0.0625 13.0001 1.74478 13.0001 3.81267V5.31167L11.6002 5.31241V3.81267C11.6002 2.5722 10.6579 1.56297 9.49973 1.56297C8.34187 1.56297 7.39989 2.57219 7.39989 3.81267V5.31241V5.31314Z"})),SvgOptions=ea=>reactExports.createElement("svg",{width:3,height:13,viewBox:"0 0 3 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.9375C0 1.38522 0.447715 0.9375 1 0.9375H2C2.55228 0.9375 3 1.38522 3 1.9375V2.9375C3 3.48978 2.55228 3.9375 2 3.9375H1C0.447715 3.9375 0 3.48978 0 2.9375V1.9375Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.4375C0 5.88522 0.447715 5.4375 1 5.4375H2C2.55228 5.4375 3 5.88522 3 6.4375V7.4375C3 7.98978 2.55228 8.4375 2 8.4375H1C0.447715 8.4375 0 7.98978 0 7.4375V6.4375Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 10.9375C0 10.3852 0.447715 9.9375 1 9.9375H2C2.55228 9.9375 3 10.3852 3 10.9375V11.9375C3 12.4898 2.55228 12.9375 2 12.9375H1C0.447715 12.9375 0 12.4898 0 11.9375V10.9375Z"})),InnerContainer$1=dt$1.div.withConfig({displayName:"LayerItem__InnerContainer",componentId:"sc-azlp5f-0"})([""]),ElementSymbol=dt$1(Icon$4).withConfig({displayName:"LayerItem__ElementSymbol",componentId:"sc-azlp5f-1"})([""]),CollapseHandler=dt$1(IconButton).attrs({icon:jsxRuntimeExports.jsx(SvgChevronDown,{})}).withConfig({displayName:"LayerItem__CollapseHandler",componentId:"sc-azlp5f-2"})([""]),LockHandler=dt$1(IconButton).withConfig({displayName:"LayerItem__LockHandler",componentId:"sc-azlp5f-3"})([""]),ContextMenuHandler=dt$1(IconButton).attrs({icon:jsxRuntimeExports.jsx(SvgOptions,{})}).withConfig({displayName:"LayerItem__ContextMenuHandler",componentId:"sc-azlp5f-4"})([""]),ContextMenu=dt$1(ContextMenuFactory$1).withConfig({displayName:"LayerItem__ContextMenu",componentId:"sc-azlp5f-5"})(["z-index:99999999;"]),RenameContainer=dt$1.div.withConfig({displayName:"LayerItem__RenameContainer",componentId:"sc-azlp5f-6"})([""]),LayerItem=ea=>{const{className:na,parent:ra,id:oa,type:aa,treeDepth:sa,name:la,locked:ca=!1,collapsible:ua=!1,collapsed:da=!1,onToggleCollapse:pa}=ea,ha=reactExports.useRef(null),ga=reactExports.useRef(null),fa=useSelector(getContextMenuItems,shallowEqual$2),{isSelected:ma,selectHandler:va,selectableClassName:xa,selectedClassName:ya}=useSelectElement(oa,ca,ra,!1),[Aa,Ca]=useHoverElement(oa,ma),Sa=useDispatchAndToHistory(),wa=reactExports.useCallback(()=>{Sa(toggleLockElements({ids:[oa],locked:!ca}))},[Sa,oa,ca]),ba=reactExports.useCallback(()=>{pa?.(!da)},[pa,da]),Ea=reactExports.useCallback(_a=>{let La={};aa==="text"?La={options:{content:_a||""}}:La={name:_a||""},Sa(updateElement({id:oa,values:La}))},[Sa,oa,aa]),{onClick:$a,onMouseDown:Ma}=ha.current?.anchorProps||{},Ia=reactExports.useCallback(_a=>{_a.preventDefault(),_a.stopPropagation(),va(_a),$a?.(_a)},[$a,va]),Oa=reactExports.useCallback(()=>{Ca()},[Ca]),Da=reactExports.useCallback(()=>{Ca(!0)},[Ca]),Ta=classnames(na,ya,xa,`dp-layer-depth-${sa}`,{"dp-element-locked":ca,"dp-layer-collapsible":ua,"dp-layer-collapsed":ua&&da,"dp-element-hovered":Aa});return jsxRuntimeExports.jsx("div",{className:Ta,onClick:va,onContextMenu:Ia,onMouseDown:Ma,onPointerEnter:Oa,onPointerLeave:Da,"data-id":oa,children:jsxRuntimeExports.jsxs(InnerContainer$1,{children:[ua&&jsxRuntimeExports.jsx(CollapseHandler,{onClick:ba}),jsxRuntimeExports.jsx(ElementSymbol,{shape:getElementIcon(aa)}),jsxRuntimeExports.jsx(RenameContainer,{children:jsxRuntimeExports.jsx(RenameBox$1,{value:la,title:la,onChange:Ea,doubleClickToEdit:!0})}),jsxRuntimeExports.jsx(LockHandler,{onClick:wa,icon:ca?jsxRuntimeExports.jsx(SvgLock,{}):jsxRuntimeExports.jsx(SvgUnlock,{})}),jsxRuntimeExports.jsx(ContextMenu,{ref:ha,items:fa.filter(_a=>_a.id!=="selectElementsGroup"),direction:"left",portal:!0,anchorRef:ga}),jsxRuntimeExports.jsx(ContextMenuHandler,{ref:ga,onClick:$a,onMouseDown:Ma})]})})},theme$29=withTheme(scheme$Z),LayerItem$1=dt$1(LayerItem).withConfig({displayName:"LayerItem",componentId:"sc-azlp5f-7"})(["padding-left:17px;padding-right:5px;cursor:pointer;","{display:flex;margin-left:",";position:relative;padding:5px 0px;}","{position:absolute;left:0;top:50%;width:17px;height:100%;justify-content:center;transform:translateY(-50%) translateX(-100%);svg{transform:rotate(-90deg);}}","{display:flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:2px;margin-right:7px;}","{flex:1;align-self:center;min-width:0;","{width:100%;display:flex;align-items:center;input{background:transparent;padding:0;border:0;width:100% !important;}span{max-width:100%;height:15px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}",",","{padding:0 5px;width:auto;height:auto;gap:0;opacity:0;transition:opacity 150ms ease-out;}","{position:relative;right:-2px;}&.dp-element-hovered,&.dp-element-selected{> ","{",",","{opacity:1;}}}&.dp-element-locked{","{opacity:0.3;right:0;}}&.dp-layer-collapsed{","{svg{transform:rotate(0deg);}}}"," ",""],InnerContainer$1,({treeDepth:ea})=>`${ea*28}px`,CollapseHandler,ElementSymbol,RenameContainer,RenameBox$1,LockHandler,ContextMenuHandler,LockHandler,InnerContainer$1,LockHandler,ContextMenuHandler,LockHandler,CollapseHandler,theme$29.colors(ea=>lt$1(["&.dp-element-hovered,&.dp-element-selected{background-color:",";}","{background-color:",";svg{fill:",";}}","{color:",";input{color:",";}}"],ea.layer.active,ElementSymbol,ea.layer.icon.background,ea.layer.icon.fill,RenameContainer,ea.layer.color,ea.layer.color)),theme$29.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],RenameContainer,ea.layer.fontSize,ea.layer.fontWeight,ea.layer.lineHeight))),Layer=ea=>{const{className:na,...ra}=ea,[oa,aa]=reactExports.useState(null),{isDragging:sa,isOver:la,attributes:ca,listeners:ua,setNodeRef:da,active:pa}=useSortable({id:ra.id,data:{type:ra.type,layers:[],insert:oa}}),ha=pa?.data.current?.type==="group",ga=pa?.data.current?.layers.includes(ra.id),fa=reactExports.useMemo(()=>!sa&&la&&!(ha&&ga),[sa,la,ha,ga]),ma=reactExports.useCallback(ya=>{if(fa){const Aa=ya.currentTarget.getBoundingClientRect();aa(ya.clientY-Aa.top<=Aa.height/2?"before":"after")}},[fa]),va=reactExports.useCallback(()=>{aa(null)},[]),xa=[na,sa?"dp-layer-is-dragging":"",fa?"dp-layer-can-drop":"",oa?`dp-layer-insert-${oa}`:""].map(ya=>ya).join(" ");return jsxRuntimeExports.jsx("div",{className:xa,ref:da,...ca,...ua,onMouseMove:ma,onMouseLeave:va,children:jsxRuntimeExports.jsx(LayerItem$1,{...ra})})},Layer$1=dt$1(Layer).withConfig({displayName:"Layer",componentId:"sc-1frkuw1-0"})(["&.dp-layer-is-dragging{opacity:0.5;}> "," > ","{position:relative;&:before{content:'';position:absolute;top:-2px;left:0;right:5px;height:2px;background-color:#d7d7d7;opacity:0;visibility:hidden;}&:after{content:'';position:absolute;bottom:-2px;left:0;right:5px;height:2px;background-color:#d7d7d7;opacity:0;visibility:hidden;}}&.dp-layer-insert-before > "," > ","{&:before{opacity:1;visibility:visible;}}&.dp-layer-insert-after > "," > ","{&:after{opacity:1;visibility:visible;}}"],LayerItem$1,InnerContainer$1,LayerItem$1,InnerContainer$1,LayerItem$1,InnerContainer$1),SubItemsContainer=dt$1.div.withConfig({displayName:"LayersGroup__SubItemsContainer",componentId:"sc-1uq2ug0-0"})([""]),LayersGroup=ea=>{const{className:na,children:ra,layers:oa,...aa}=ea,[sa,la]=reactExports.useState(!0),[ca,ua]=reactExports.useState(null),{isDragging:da,isOver:pa,attributes:ha,listeners:ga,setNodeRef:fa,active:ma}=useSortable({id:aa.id,data:{type:"group",layers:oa,insert:ca}}),va=ma?.data.current?.type==="group",xa=ma?.data.current?.layers.includes(aa.id),ya=reactExports.useMemo(()=>!da&&pa&&!(va&&xa),[da,pa,va,xa]),Aa=reactExports.useCallback(ba=>{la(ba)},[]),Ca=reactExports.useCallback(ba=>{if(ya){const Ea=ba.currentTarget.getBoundingClientRect();ua(ba.clientY-Ea.top<=Ea.height/2?"before":"after")}},[ya]),Sa=reactExports.useCallback(()=>{ua(null)},[]),wa=[na,sa?"":"dp-children-hidden",da?"dp-layer-is-dragging":"",ya?"dp-layer-can-drop":"",ca?`dp-layer-insert-${ca}`:""].map(ba=>ba).join(" ");return jsxRuntimeExports.jsxs("div",{className:wa,ref:fa,...ha,...ga,children:[jsxRuntimeExports.jsx("div",{onMouseMove:Ca,onMouseLeave:Sa,children:jsxRuntimeExports.jsx(LayerItem$1,{collapsible:!0,collapsed:sa,onToggleCollapse:Aa,...aa})}),jsxRuntimeExports.jsx(SubItemsContainer,{children:ra})]})},LayersGroup$1=dt$1(LayersGroup).withConfig({displayName:"LayersGroup",componentId:"sc-1uq2ug0-1"})(["position:relative;","{display:flex;flex-direction:column;}&:before{content:'';position:absolute;top:-2px;left:",";right:5px;height:2px;background-color:#d7d7d7;opacity:0;visibility:hidden;}&:after{content:'';position:absolute;bottom:-2px;left:",";right:5px;height:2px;background-color:#d7d7d7;opacity:0;visibility:hidden;}&.dp-layer-insert-before:before{opacity:1;visibility:visible;}&.dp-layer-insert-after:after{opacity:1;visibility:visible;}&.dp-children-hidden{","{display:none;}}&.dp-layer-is-dragging{opacity:0.5;}"],SubItemsContainer,({treeDepth:ea})=>`${ea*14+10}px`,({treeDepth:ea})=>`${ea*14+10}px`,SubItemsContainer),LayersTree=ea=>{const{className:na,items:ra,parentId:oa}=ea,aa=reactExports.useMemo(()=>getLayersByParent(ra,oa),[ra,oa]),sa=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:5}})),la=useDispatchAndToHistory(),ca=(da,pa)=>{if(da.isGroup){const ha=getLayersByParent(ra,da.id);return jsxRuntimeExports.jsx(LayersGroup$1,{treeDepth:pa,layers:getLayers(ra,da.id).map(ga=>ga.id),...da,children:jsxRuntimeExports.jsx(SortableContext,{items:ha,children:ha.map(ga=>ca(ga,pa+1))})},da.id)}return jsxRuntimeExports.jsx(Layer$1,{treeDepth:pa,...da},da.id)},ua=reactExports.useCallback(da=>{const{active:pa,over:ha}=da;if(!pa||!ha)return;const ga=pa?.data.current?.type==="group",fa=pa?.data.current?.layers.includes(ha.id);pa.id===ha.id||ga&&fa||!ha.data.current?.insert||la(reorderElement({from:{id:pa.id,type:pa.data.current?.type},to:{id:ha.id,type:ha.data.current?.type},insert:ha.data.current?.insert}))},[la]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(DndContext$1,{sensors:sa,collisionDetection:pointerWithin,modifiers:[restrictToVerticalAxis],onDragEnd:ua,measuring:{droppable:{strategy:MeasuringStrategy.Always}},children:jsxRuntimeExports.jsx(SortableContext,{items:aa,children:aa.map(da=>ca(da,0))})})})},LayersPanelTree=dt$1(LayersTree).withConfig({displayName:"LayersTree",componentId:"sc-6wjgqu-0"})(["","{margin-bottom:2px;}"],LayerItem$1),PanelAreaHeader=dt$1.div.withConfig({displayName:"PanelArea__PanelAreaHeader",componentId:"sc-vik8be-0"})([""]),PanelAreaDragHandler=dt$1(IconButton).withConfig({displayName:"PanelArea__PanelAreaDragHandler",componentId:"sc-vik8be-1"})([""]),PanelAreaContainer=dt$1.div.withConfig({displayName:"PanelArea__PanelAreaContainer",componentId:"sc-vik8be-2"})([""]),PanelArea=ea=>{const{className:na,position:ra,onClose:oa}=ea,{t:aa}=useTranslation(),{layers:sa,foregroundLayers:la}=useSelector(getActiveSectionLayersPanelData),ca=useSelector(getActiveSection),ua=useSelector(getSelectedElements),da=reactExports.useRef(null),{attributes:pa,listeners:ha,setNodeRef:ga,transform:fa}=useDraggable$1({id:"layers-panel-area"}),ma=reactExports.useMemo(()=>({bottom:ra.y,right:ra.x,transform:`translate(${fa?.x||0}px, ${fa?.y||0}px)`}),[ra.x,ra.y,fa?.x,fa?.y]);return reactExports.useEffect(()=>{if(ua.length&&da.current){const{scrollTop:va,clientHeight:xa}=da.current.getValues(),ya=da.current.view.querySelector(`[data-id="${ua[0]}"]`);if(!ya)return;const Aa=ya.offsetTop,Ca=ya.offsetHeight,Sa=Aa+Ca,wa=va,ba=va+xa,Ea=Math.max(Aa,wa),$a=Math.min(Sa,ba);if(!(Math.max(0,$a-Ea)>=.5*Ca)){const Oa=Aa-xa/2+ya.offsetHeight/2;da.current.scrollTop(Oa)}}},[ua]),jsxRuntimeExports.jsxs("div",{className:`${na} depicter-keep-element-selection`,ref:ga,...pa,style:ma,children:[jsxRuntimeExports.jsxs(PanelAreaHeader,{children:[jsxRuntimeExports.jsx(PanelAreaDragHandler,{...ha,icon:jsxRuntimeExports.jsx(Icon$4,{shape:LayersPanelDragIcon})}),jsxRuntimeExports.jsx(CloseButton$1,{onClick:oa,children:aa("Close")})]}),jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,ref:da,children:jsxRuntimeExports.jsxs(PanelAreaContainer,{children:[la.length?jsxRuntimeExports.jsx(LayersTab$1,{title:aa("Foreground layers"),tooltip:aa("These layers appear on all {{section}}",{section:DocType.getLabel("sections")}),children:jsxRuntimeExports.jsx(LayersPanelTree,{items:la,parentId:"foreground"})}):null,sa.length?jsxRuntimeExports.jsx(LayersTab$1,{title:aa("Layers"),children:jsxRuntimeExports.jsx(LayersPanelTree,{items:sa,parentId:ca})}):null]})})]})},theme$28=withTheme(scheme$Z),PanelArea$1=dt$1(PanelArea).withConfig({displayName:"PanelArea",componentId:"sc-vik8be-3"})(["position:fixed;display:flex;flex-direction:column;gap:5px;width:255px;height:450px;border-radius:5px;z-index:9999999;user-select:none;","{display:flex;align-items:center;","{flex:1;}}","{position:absolute;right:5px;top:5px;}","{display:flex;flex-direction:column;gap:6px;padding:0px 7px 5px 5px;}","{right:0;}",""],PanelAreaHeader,PanelAreaDragHandler,CloseButton$1,PanelAreaContainer,VerticalTrack,theme$28.colors(ea=>lt$1(["background-color:",";"],ea.area.background))),LayersPanel=ea=>{const{className:na}=ea,ra=useSelector(getLayersPanelStatus),oa=useSelector(getLayersPanelPosition),aa=useDispatch(),sa=useSensor(MouseSensor),la=useSensors(sa),ca=reactExports.useCallback(pa=>{if(!oa&&!ra){const ha=pa.target.getBoundingClientRect();aa(setLayersPanelPosition({x:window.innerWidth-ha.right,y:window.innerHeight-ha.top+5}))}aa(setLayersPanelActiveStatus(!ra))},[aa,oa,ra]),ua=reactExports.useCallback(()=>{aa(setLayersPanelActiveStatus(!1))},[aa]),da=reactExports.useCallback(pa=>{pa.active.id==="layers-panel-area"&&aa(setLayersPanelPosition({x:pa.delta.x*-1+oa.x,y:pa.delta.y*-1+oa.y}))},[aa,oa]);return jsxRuntimeExports.jsxs("div",{className:`${na} depicter-keep-element-selection`,children:[jsxRuntimeExports.jsx(PanelHandler$1,{onClick:ca,active:ra}),jsxRuntimeExports.jsx(DndContext$1,{sensors:la,modifiers:[restrictToWindowEdges],onDragEnd:da,children:oa&&ra&&reactDomExports.createPortal(jsxRuntimeExports.jsx(PanelArea$1,{position:oa,onClose:ua}),document.body)})]})},LayersPanel$1=dt$1(LayersPanel).withConfig({displayName:"LayersPanel",componentId:"sc-14mdhj3-0"})(["display:flex;flex-direction:column;align-items:flex-end;"]),useTeaserSectionSwitching=()=>{const ea=useDispatch(),{activePanel:na}=useActivePanel(),ra=reactExports.useRef(null),oa=useSelector(getSections),aa=useSelector(getSectionsList),sa=useSelector(getActiveSectionData);return reactExports.useEffect(()=>{const la=sa.type||"section";if(na==="teaser"){la!=="teaser"&&(ra.current=sa.id);const ca=aa.find(ua=>oa[ua]?.type==="teaser");ca&&sa.id!==ca&&ea(setActiveSection(ca))}else{if(la==="teaser"){const ca=ra.current||aa.find(ua=>oa[ua]?.type!=="teaser");ca&&ea(setActiveSection(ca))}la!=="teaser"&&(ra.current=sa.id)}},[na,sa.id,sa.type,oa,aa,ea]),{isTeaserSection:na==="teaser"}},Container$z=dt$1.div.withConfig({displayName:"Viewport__Container",componentId:"sc-1lf22n5-0"})([""]),Viewport=({className:ea})=>{const na=useDispatch(),ra=useSelector(getSelectedElements,shallowEqual$2),oa=useSelector(getContextMenuItems,shallowEqual$2),aa=useSelector(getTransformToolState),sa=!!useSelector(getActiveMediaCropperId),la=reactExports.useRef(null),ca=useSelector(getActiveSectionData),{isTeaserSection:ua}=useTeaserSectionSwitching(),da=reactExports.useCallback(ga=>{ga.preventDefault(),!(sa||!la.current)&&la.current.open({x:ga.clientX,y:ga.clientY})},[sa]);reactExports.useEffect(()=>{la.current&&la.current.close()},[ra,aa,oa]);const pa=useHTMLElementRefsReducer(),ha=reactExports.useCallback(({clipboardData:ga})=>{ga&&na(pasteElements(ga))},[na]);return useGlobalClipboardHandlers(void 0,ha),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs(DndContext,{children:[jsxRuntimeExports.jsx(DragOverlay$1,{}),jsxRuntimeExports.jsxs(HTMLElementRefsContext.Provider,{value:pa,children:[jsxRuntimeExports.jsx(Toolbar$1,{}),jsxRuntimeExports.jsxs(Container$z,{children:[jsxRuntimeExports.jsxs(DropZone$1,{children:[jsxRuntimeExports.jsx(ContextMenuFactory$1,{items:oa,ref:la}),jsxRuntimeExports.jsx(Artboard$1,{onContextMenu:da,constrainWidth:ua,children:jsxRuntimeExports.jsx(Section$1,{...ca})}),!ua&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SectionsPanel$1,{}),jsxRuntimeExports.jsx(SectionsPanelToolbar,{})]}),jsxRuntimeExports.jsx(LayersPanel$1,{})]}),jsxRuntimeExports.jsx(OptionsPanel$1,{})]})]})]})})},Viewport$1=dt$1(Viewport).withConfig({displayName:"Viewport",componentId:"sc-1lf22n5-1"})(["position:absolute;width:100%;height:100%;display:flex;flex-direction:column;z-index:1;","{width:100%;}","{flex-grow:1;height:calc(100% - 50px);display:flex;}","{position:relative;flex-grow:1;overflow:hidden;}","{position:absolute;bottom:15px;right:15px;}"],Toolbar$1,Container$z,DropZone$1,LayersPanel$1),Workspace=({className:ea})=>{const na=useDispatch();return useMousetrap([{keys:["mod+z"],callback:()=>na(undo())&&!1},{keys:["mod+shift+z","mod+y"],callback:()=>na(redo())&&!1},{keys:["mod+a"],callback:()=>(na(selectAllElements()),!1)}]),useClearSelectedElements(),jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Tooltip$1,{id:"workspace",effect:"solid",inverted:!0}),jsxRuntimeExports.jsx(Viewport$1,{})]})},theme$27=withTheme(scheme$14),Workspace$1=dt$1(Workspace).withConfig({displayName:"Workspace",componentId:"sc-12ydk0e-0"})(["display:flex;position:relative;flex:1;",""],theme$27.colors(ea=>lt$1(["background-color:",";"],ea.background))),defaultColors$1j={background:"#2F2F2F",container:{background:"#FFFFFF"}},colors$1j={dark:defaultColors$1j},defaultSizes$d={toolbar:{gap:"13px 0"},container:{gap:"0 58px 55px 58px"}},sizes$1j={default:defaultSizes$d},scheme$Y=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1j,sizes:sizes$1j},Symbol.toStringTag,{value:"Module"})),DisplayExtensionControls=ea=>{const{className:na,iFrameRef:ra,documentType:oa,onReplay:aa}=ea,[sa,la]=reactExports.useState(!1),{t:ca}=useTranslation();reactExports.useEffect(()=>{if(!ra)return noop$3;const ha=()=>{ra?.contentWindow?.depicterInstances?.[0]?.display&&la(!0)};return ra.addEventListener("load",ha),()=>{ra.removeEventListener("load",ha)}},[ra]);const ua=()=>{ra?.contentWindow?.postMessage("reopen")},da=ca(oa==="popup"?"Popup":"Notification Bar"),pa=()=>{ra?.contentWindow?.location.reload(),aa?.()};return jsxRuntimeExports.jsx("div",{className:na,children:sa?jsxRuntimeExports.jsx(SolidButton,{size:"small",color:"secondary",onClick:ua,icon:jsxRuntimeExports.jsx(SvgReplay,{}),children:ca("Reopen {{display}}",{display:da})}):jsxRuntimeExports.jsx(SolidButton,{size:"small",color:"secondary",icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgReplay}),onClick:pa,children:ca("Replay")})})},DisplayExtensionControls$1=dt$1(DisplayExtensionControls).withConfig({displayName:"DisplayExtensionControls",componentId:"sc-1q4mb0v-0"})([""]),LivePreviewHeader=({className:ea,breakpoint:na,onChange:ra,iFrameRef:oa})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ResponsiveSwitch$1,{onChange:aa=>ra(aa),value:na,tooltip:{group:"global",place:"bottom"}}),jsxRuntimeExports.jsx(DisplayExtensionControls$1,{iFrameRef:oa,documentType:DocType.type})]}),theme$26=withTheme(scheme$Y),LivePreviewHeader$1=dt$1(LivePreviewHeader).withConfig({displayName:"LivePreviewHeader",componentId:"sc-zdspmg-0"})(["display:flex;gap:5px;align-items:center;justify-content:center;width:100%;"," ",""],theme$26.sizes(ea=>lt$1(["padding:",";"],ea.toolbar.gap)),theme$26.colors(ea=>lt$1(["background-color:",";"],ea.background)));function iFrameReady(ea,na){let ra,oa,aa=!1;function sa(){aa||(aa=!0,clearTimeout(ra),na.call(this))}function la(){this.readyState==="complete"&&sa.call(this)}const ca=()=>{sa.call(ea.contentDocument||ea.contentWindow?.document)};ea.addEventListener("load",ca);function ua(){oa=ea.contentDocument||ea.contentWindow?.document,oa.URL.indexOf("about:")!==0?oa.readyState==="complete"?sa.call(oa):(oa.addEventListener("DOMContentLoaded",sa),oa.addEventListener("readystatechange",la)):ra=window.setTimeout(ua,1)}ua();const{setAttribute:da}=ea;return ea.setAttribute=function(pa,ha){pa==="src"?(da.call(ea,pa,ha),aa=!1,ua()):da.call(ea,pa,ha)},()=>{ea.removeEventListener("load",ca),oa?.removeEventListener("DOMContentLoaded",sa),oa?.removeEventListener("readystatechange",la)}}const ResizerControlWhite=`<svg xmlns="http://www.w3.org/2000/svg" width="15.142" height="15.849" viewBox="0 0 15.142 14.849">
  <g id="resize_window_vh" data-name="resize window vh" transform="translate(-1570.322 -945.575)">
    <rect id="Rectangle_5454" data-name="Rectangle 5454" width="2" height="20" rx="0.5" transform="translate(1584.464 945.575) rotate(45)" fill="#FFF"/>
    <rect id="Rectangle_5455" data-name="Rectangle 5455" width="2" height="10" rx="0.5" transform="translate(1584.757 951.939) rotate(45)" fill="#FFF"/>
  </g>
</svg>
`,ResizeWhite=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="6" viewBox="0 0 20 5">
  <g id="resize_window_v" data-name="resize window v" transform="translate(-962 -951)">
    <rect id="Rectangle_5452" data-name="Rectangle 5452" width="2" height="20" rx="0.5" transform="translate(982 950) rotate(90)" fill="#FFF"/>
    <rect id="Rectangle_5453" data-name="Rectangle 5453" width="2" height="20" rx="0.5" transform="translate(982 955) rotate(90)" fill="#FFF"/>
  </g>
</svg>`,defaultColors$1i={control:{background:"#222222",hover:"#363636"}},colors$1i={dark:defaultColors$1i},defaultSizing$15={control:{size:"20px"}},sizes$1i={default:defaultSizing$15},scheme$X=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1i,sizes:sizes$1i},Symbol.toStringTag,{value:"Module"})),BackgroundPagePreviewIframe=dt$1.iframe.withConfig({displayName:"ResizableIframe__BackgroundPagePreviewIframe",componentId:"sc-amsjsx-0"})([""]),FramesHolder=dt$1.div.withConfig({displayName:"ResizableIframe__FramesHolder",componentId:"sc-amsjsx-1"})([""]),ResizableIframe=React.memo(reactExports.forwardRef((ea,na)=>{const{className:ra,width:oa,height:aa,breakpointBoxes:sa,minWidth:la=200,minHeight:ca=400,onLoad:ua,onBreakpointChange:da,onResizeEnd:pa,onResize:ha,backgroundFrameSrc:ga,...fa}=ea,[ma,va]=reactExports.useState(!1),xa=reactExports.useRef(null),ya=reactExports.useRef(null),Aa=reactExports.useRef(null),Ca=reactExports.useRef(null),Sa=reactExports.useMemo(()=>sa.map(Oa=>Oa.name),[sa]);useWindowResize(100);const wa=reactExports.useMemo(()=>({width:oa?`${oa}px`:"",height:aa?`${aa}px`:"",pointerEvents:ma?"none":"auto"}),[oa,aa,ma]),ba=Oa=>{ya.current=Oa,Oa?.updateRect()},Ea=reactExports.useCallback(()=>{va(!0)},[]),$a=reactExports.useCallback(({width:Oa,height:Da,delta:[Ta,_a]})=>{const La=Math.max(la,Oa+Ta),Na=Math.max(ca,Da+_a);ha?.(La,Na)},[ca,la,ha]),Ma=reactExports.useCallback(()=>{let Oa="default";[...Sa].some(Da=>{const Ta=sa.find(_a=>_a.name===Da);return Ta&&Ta.width&&oa&&oa<=Ta.width?(Oa=Da,!0):!1}),da?.(Oa),pa?.(),va(!1)},[Sa,sa,oa,da,pa]);reactExports.useEffect(()=>Aa.current?iFrameReady(Aa.current,ua):()=>{},[fa.src,ua]);const Ia=reactExports.useCallback(Oa=>{assignRef$1(Oa,na),Aa.current=Oa},[na]);return jsxRuntimeExports.jsxs("div",{className:ra,children:[jsxRuntimeExports.jsxs(FramesHolder,{ref:Ca,style:wa,children:[jsxRuntimeExports.jsx("iframe",{ref:Ia,...fa}),ga&&jsxRuntimeExports.jsx(BackgroundPagePreviewIframe,{...fa,src:ga})]}),jsxRuntimeExports.jsx(Moveable,{target:Ca,container:xa.current,ref:ba,draggable:!1,edge:!0,origin:!1,resizable:!0,renderDirections:["se"],onResizeStart:Ea,onResize:$a,onResizeEnd:Ma})]})})),theme$25=withTheme(scheme$X),ResizableIframe$1=dt$1(ResizableIframe).withConfig({displayName:"ResizableIframe",componentId:"sc-amsjsx-2"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;","{position:relative;width:100%;height:100%;max-width:100%;max-height:100%;}iframe{width:100%;height:100%;border:solid 1px #1e1e1e;position:relative;z-index:2;","}","{position:absolute;inset:0;z-index:1;}.moveable-line{display:none;}.moveable-control.moveable-direction.moveable-se{border:none;border-radius:0;margin-left:0;margin-top:0;}.moveable-line.moveable-s{display:block;margin-top:10px;}.moveable-line.moveable-e{display:block;margin-left:10px;}.moveable-line.moveable-e,.moveable-line.moveable-s{background:url(",") no-repeat center center !important;}.moveable-control.moveable-direction.moveable-se{background-image:url(",");background-repeat:no-repeat;background-position:center center;}"," ",""],FramesHolder,({backgroundFrameSrc:ea})=>!ea&&lt$1(["background-position:0 0,0 10px,10px -10px,-10px 0px;background-image:linear-gradient(45deg,#1e1e1e 25%,transparent 25%),linear-gradient(-45deg,#1e1e1e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1e1e1e 75%),linear-gradient(-45deg,transparent 75%,#1e1e1e 75%);background-size:20px 20px;"]),BackgroundPagePreviewIframe,encodeSvg(ResizeWhite),encodeSvg(ResizerControlWhite),theme$25.colors(ea=>lt$1([".moveable-line.moveable-e,.moveable-line.moveable-s,.moveable-control.moveable-direction.moveable-se{background-color:"," !important;&:hover{background-color:"," !important;}}"],ea.control.background,ea.control.hover)),theme$25.sizes(ea=>lt$1([".moveable-line.moveable-e,.moveable-line.moveable-s{height:",";}.moveable-control.moveable-direction.moveable-se{width:",";height:",";}"],ea.control.size,ea.control.size,ea.control.size))),PreviewContainer$1=dt$1.div.withConfig({displayName:"LivePreview__PreviewContainer",componentId:"sc-xtabfz-0"})([""]),LivePreview=({className:ea,breakpointBoxes:na,revisionId:ra})=>{const{status:oa}=useSelector(getDocumentSavingStatus),aa=useSelector(getUnsavedChanges),{activePanel:sa}=useActivePanel(),la=sa==="publish"?"publish":"draft",[ca,ua]=reactExports.useState(!0),[da,pa]=reactExports.useState(0),[ha,ga]=reactExports.useState("default"),fa=na.find(wa=>wa.name===ha),[ma,va]=reactExports.useState({width:fa?.width,height:fa?.height}),xa=reactExports.useRef(null),ya=useSyncHTMLRefToContext("livePreviewIframe");reactExports.useEffect(()=>{aa?(oa==="idle"||oa==="inprogress")&&ua(!0):oa==="succeed"&&!aa&&pa(wa=>wa+1)},[oa,aa]);const Aa=reactExports.useCallback(wa=>{if(ha===wa)return;const ba=na.find(Ea=>Ea.name===wa);va({width:ba?.width,height:ba?.height}),ga(wa)},[ha,na]),Ca=reactExports.useCallback((wa,ba)=>{va({width:wa,height:ba})},[]),Sa=reactExports.useCallback(()=>{ua(!1)},[]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(LivePreviewHeader$1,{breakpoint:ha,onChange:Aa,iFrameRef:xa.current}),jsxRuntimeExports.jsx(LoadingSplash$1,{visible:ca,overlay:!0,children:jsxRuntimeExports.jsx(PreviewContainer$1,{children:jsxRuntimeExports.jsx(ResizableIframe$1,{ref:wa=>{xa.current=wa,ya(wa)},src:`${documentAPI().getPreviewSrc(la,ra)}&r=${da}`,title:"Document Preview",width:ma?.width,height:ma?.height,breakpointBoxes:na,onBreakpointChange:ga,onResize:Ca,onLoad:Sa,backgroundFrameSrc:DocType.configs.previewBackgroundSrc})})})]})},theme$24=withTheme(scheme$Y),LivePreview$1=dt$1(LivePreview).withConfig({displayName:"LivePreview",componentId:"sc-xtabfz-1"})(["display:flex;flex-direction:column;flex:1;","{height:100%;}","{padding:20px 40px 40px 20px;}","{> div:first-of-type{z-index:9999;}}",";"],PreviewContainer$1,ResizableIframe$1,LoadingSplash$1,theme$24.colors(ea=>lt$1(["","{background:",";}"],LoadingSplash$1,ea.background))),defaultColors$1h={panel:{background:"#363636"}},colors$1h={dark:defaultColors$1h},defaultSizing$14={panel:{width:"310px"},content:{padding:"23px 0px"}},sizes$1h={default:defaultSizing$14},scheme$W=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1h,sizes:sizes$1h},Symbol.toStringTag,{value:"Module"})),defaultColors$1g={background:"rgba(0, 0, 0, 0.34)",color:"#FFFFFF",icon:"#AAAAAA",hover:{icon:"#FFFFFF",border:"#4980F5"}},colors$1g={dark:defaultColors$1g},defaultSizing$13={height:"52px",border:"5px",padding:"15px",fontSize:"12px"},sizes$1g={default:defaultSizing$13},schema$4=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1g,sizes:sizes$1g},Symbol.toStringTag,{value:"Module"})),IconTab=ea=>{const{className:na,icon:ra,label:oa,onClick:aa,type:sa}=ea;return jsxRuntimeExports.jsxs("div",{className:na,onClick:()=>aa(sa),children:[ra&&jsxRuntimeExports.jsx(ra,{}),jsxRuntimeExports.jsx("span",{children:oa})]})},theme$23=withTheme(schema$4),IconTab$1=dt$1(IconTab).withConfig({displayName:"IconTab",componentId:"sc-1sagwap-0"})(["display:flex;align-items:center;cursor:pointer;transition:all 300ms ease-out;svg{margin-right:9px;transition:fill 300ms ease-out;}"," ",""],theme$23.colors(ea=>lt$1(["background:",";color:",";svg{fill:",";}&:hover{box-shadow:0 0 0 2px ",";svg{fill:",";}}"],ea.background,ea.color,ea.icon,ea.hover.border,ea.hover.icon)),theme$23.sizes(ea=>lt$1(["height:",";padding:",";border-radius:",";font-size:",";"],ea.height,ea.padding,ea.border,ea.fontSize))),tooltipOptions$2={options:{id:"workspace"}},TabsContent=({className:ea,active:na,contents:ra,containerRef:oa})=>{const{t:aa}=useTranslation(),[sa,la]=reactExports.useState(na),[ca,ua]=reactExports.useState(!1),da=useUserTierAuthCallback(),pa=useDispatch(),ha=ga=>{pa(updateActiveOptionsPanel(ga)),la(ga)};return reactExports.useEffect(()=>{la(na)},[na]),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(PopoverOpenStateContext.Provider,{value:{open:ca,setOpen:ua},children:jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:sa,children:[jsxRuntimeExports.jsx(Overlay$1,{visible:ca}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"default",children:ra.map(ga=>jsxRuntimeExports.jsx(IconTab$1,{icon:ga.icon,label:ga.label,type:ga.id,onClick:ha},ga.id))}),ra.map(ga=>{const{icon:fa}=ga,ma=fa;return jsxRuntimeExports.jsxs(ContentWrap$1,{index:ga.id,children:[jsxRuntimeExports.jsx(OptionsSectionHeader$1,{icon:jsxRuntimeExports.jsx(ma,{}),label:ga.label,backLabel:aa("Back to Settings"),onBack:()=>ha("default")}),jsxRuntimeExports.jsx(OCManager,{fieldsetComponent:Fieldset$1,tierChecker:da,tooltip:tooltipOptions$2,optionControls:ga.optionControls,container:oa})]},ga.id)})]})})})},TabsContent$1=dt$1(TabsContent).withConfig({displayName:"TabsContent",componentId:"sc-hnae8y-0"})(["","{margin:0 15px 7px 15px;}","{width:calc(100% + 30px);margin:-23px 0px 15px 0px;> div{width:36px;margin-left:20px;}}"],IconTab$1,OptionsSectionHeader$1),SettingsPanelContent=({className:ea,containerRef:na})=>{const ra=useSelector(getActiveOptionsPanel);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(TabsContent$1,{active:ra,contents:DocType.options.documentOptionGroups,containerRef:na})})},OptionsTabs=dt$1(SettingsPanelContent).withConfig({displayName:"OptionsTab",componentId:"sc-123x8ij-0"})([""]),OptionsContent=({className:ea,containerRef:na})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(OptionsTabs,{containerRef:na})}),theme$22=withTheme(scheme$W),OptionsContent$1=dt$1(OptionsContent).withConfig({displayName:"OptionsContent",componentId:"sc-1r5ecvf-0"})(["position:relative;",""],theme$22.sizes(ea=>lt$1(["padding:",";"],ea.content.padding))),DocumentOptionsPanel=({className:ea})=>{const na=reactExports.useRef(null);return jsxRuntimeExports.jsxs("div",{className:`${ea} dp-options-container`,ref:na,children:[jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,children:jsxRuntimeExports.jsx(OptionsContent$1,{containerRef:na})}),jsxRuntimeExports.jsx(Tooltip$1,{id:"settingsPanel",effect:"solid",inverted:!0})]})},theme$21=withTheme(scheme$W),DocumentOptionsPanel$1=dt$1(DocumentOptionsPanel).withConfig({displayName:"documentOptions",componentId:"sc-22pbaz-0"})(["position:relative;"," ",""],theme$21.colors(ea=>lt$1(["background:",";"],ea.panel.background)),theme$21.sizes(ea=>lt$1(["width:",";"],ea.panel.width))),DocumentOptionsSection=()=>{const ea=useHTMLElementRefsReducer(),na=useTrack();return reactExports.useEffect(()=>{na(increaseOptionsTabCount)},[na]),jsxRuntimeExports.jsxs(HTMLElementRefsContext.Provider,{value:ea,children:[jsxRuntimeExports.jsx(DocumentOptionsPanel$1,{}),jsxRuntimeExports.jsx(LivePreview$1,{breakpointBoxes:orderedBreakpointBoxes})]})},defaultColors$1f={border:"#000",background:"#323232",title:"#FFF",pageItem:{color:"#6A6A6A",hover:"#FFF",selected:"#FFF"},pageTitle:{color:"#AAA",icon:"#AAA"},pageDesc:"#AAA",control:{background:"#1C1C1C",description:"#6A6A6A",hover:{description:"#FFF"}}},colors$1f={dark:defaultColors$1f},defaultSizing$12={title:{fontSize:"18px",fontWeight:"700",lineHeight:"25px"},pageItem:{fontSize:"15px",fontWeight:"400",lineHeight:"19px",selected:{fontWeight:"600"}},pageTitle:{fontSize:"18px",fontWeight:"600",lineHeight:"25px"},pageDesc:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},control:{description:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"}}},sizes$1f={default:defaultSizing$12},scheme$V=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1f,sizes:sizes$1f},Symbol.toStringTag,{value:"Module"})),SvgSave=ea=>reactExports.createElement("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"save"},reactExports.createElement("path",{id:"Exclude",fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H7.61538L11 3.38462V10C11 10.5523 10.5523 11 10 11H1C0.447715 11 0 10.5523 0 10V1ZM1 1H7V4H1V1ZM4 7.5C4 6.67157 4.67157 6 5.5 6C6.32843 6 7 6.67157 7 7.5C7 8.32843 6.32843 9 5.5 9C4.67157 9 4 8.32843 4 7.5Z"}))),Footer=ea=>{const{className:na,documentId:ra,publishBtn:oa,publishStatus:aa,disablePublish:sa,afterSave:la,onClose:ca}=ea,{t:ua}=useTranslation(),[da,pa]=useDisplayRules(),{isChanged:ha}=da,ga=reactExports.useContext(RequestContext),[fa,ma]=reactExports.useState(!1),va=()=>{ma(!0),saveDisplayRulesRequest(ga,ra,da).then(()=>{pa({type:"updateLastHistoryData",payload:{triggers:da.triggers,afterClose:da.afterClose,visibilitySchedule:da.visibilitySchedule,displayConditions:da.displayConditions}}),pa({type:"setIsChanged",payload:!1}),ma(!1),la?.(),oa&&ca?.()})};return oa?jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(SolidButton,{size:"small",onClick:va,loading:fa||aa==="publishing",disabled:sa,children:ua("Publish Now")})}):jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(SolidButton,{size:"small",icon:jsxRuntimeExports.jsx(SvgSave,{}),onClick:va,loading:fa,disabled:!ha,children:ua("Save")})})},theme$20=withTheme(scheme$V),Footer$1=dt$1(Footer).withConfig({displayName:"Footer",componentId:"sc-vdhsxo-0"})(["display:flex;gap:10px;align-items:center;justify-content:flex-start;padding:10px 0;",",","{width:97px;}",";"],OutlineButton$1,SolidButton,theme$20.colors(ea=>lt$1(["background-color:",";"],ea.background))),SvgSchedule=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.73684 2C6.30086 2 5.94737 2.35349 5.94737 2.78947V4.36842H4.36842C3.06037 4.36842 2 5.42879 2 6.73684V14.6316C2 15.9396 3.06037 17 4.36842 17H14.6316C15.9396 17 17 15.9396 17 14.6316V6.73684C17 5.42879 15.9396 4.36842 14.6316 4.36842H13.0526V2.78947C13.0526 2.35349 12.6991 2 12.2632 2H11.4737C11.0377 2 10.6842 2.35349 10.6842 2.78947V4.36842H8.31579V2.78947C8.31579 2.35349 7.9623 2 7.52632 2H6.73684ZM10.6842 5.94737H8.31579V6.73684C8.31579 7.17283 7.9623 7.52632 7.52632 7.52632H6.73684C6.30086 7.52632 5.94737 7.17283 5.94737 6.73684V5.94737H4.36842C3.93244 5.94737 3.57895 6.30086 3.57895 6.73684V9.10526H15.4211V6.73684C15.4211 6.30086 15.0676 5.94737 14.6316 5.94737H13.0526V6.73684C13.0526 7.17283 12.6991 7.52632 12.2632 7.52632H11.4737C11.0377 7.52632 10.6842 7.17283 10.6842 6.73684V5.94737ZM3.57895 14.6316V10.6842H15.4211V14.6316C15.4211 15.0676 15.0676 15.4211 14.6316 15.4211H4.36842C3.93244 15.4211 3.57895 15.0676 3.57895 14.6316Z"})),SvgDisplayConditions=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",...ea},reactExports.createElement("path",{d:"M10.7492 17C10.669 16.9999 10.5893 16.985 10.5133 16.9556L8.0086 15.994C7.85965 15.9362 7.73026 15.8258 7.63882 15.6783C7.54737 15.5309 7.49853 15.3539 7.49923 15.1726V10.8742C7.49854 10.8724 7.49759 10.8708 7.49642 10.8695L2.22613 3.7863C2.10927 3.62921 2.03393 3.43673 2.00905 3.2317C1.98418 3.02668 2.01082 2.81772 2.0858 2.62964C2.16079 2.44157 2.28097 2.28227 2.43208 2.17066C2.5832 2.05905 2.7589 1.99982 2.93832 2H16.0617C16.2411 1.99982 16.4168 2.05905 16.5679 2.17066C16.719 2.28227 16.8392 2.44157 16.9142 2.62964C16.9892 2.81772 17.0158 3.02668 16.9909 3.2317C16.9661 3.43673 16.8907 3.62921 16.7739 3.7863L11.502 10.8702C11.5009 10.8716 11.5 10.8732 11.4992 10.8749V16.1346C11.4995 16.2483 11.4803 16.361 11.4427 16.4662C11.4051 16.5713 11.3499 16.6668 11.2802 16.7473C11.2105 16.8277 11.1277 16.8914 11.0366 16.9348C10.9454 16.9782 10.8478 17.0003 10.7492 17Z"})),SvgTriggers=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.82247 11.2267H4L11.6994 0L10.1765 7.77219H15L7.29957 19L8.82247 11.2267Z"})),SvgAfterClose=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2814 17L12.9891 14.7477L10.6976 17L7.54641 7.70803L17 10.8054L14.7085 13.0577L17 15.3108L15.2814 17Z"}),reactExports.createElement("path",{d:"M7.1606 10.7064C6.93128 10.7422 6.69613 10.7608 6.45657 10.7608C3.99527 10.7608 2 8.79959 2 6.38038C2 3.96116 3.99527 2 6.45657 2C8.91787 2 10.9131 3.96116 10.9131 6.38038C10.9131 6.81266 10.8494 7.23032 10.7307 7.62477L7.07071 6.33997L8.74822 4.69113L8.17526 4.12797L6.45657 5.81728L4.73745 4.12755L4.16449 4.69071L5.88361 6.38044L4.16455 8.07011L4.73751 8.63327L6.3108 7.08688L7.1606 10.7064Z"})),Container$y=dt$1.div.withConfig({displayName:"BaseControl__Container",componentId:"sc-15zpfs7-0"})([""]),Description$3=dt$1.div.withConfig({displayName:"BaseControl__Description",componentId:"sc-15zpfs7-1"})([""]),BaseControl=ea=>{const{className:na,children:ra,description:oa,tier:aa=Tiers.FREE,...sa}=ea,la=!useUserTierAuth(aa),ca=useOpenUpgradeToPro(),ua=reactExports.useCallback(ha=>{ha?.preventDefault(),ca({source:"depicter_editor",medium:"display_rules",...sa})},[ca,sa]),da=reactExports.useMemo(()=>({position:{top:"0px",right:"0px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})}),[]),pa=la?jsxRuntimeExports.jsx(WithBadge,{onClick:ua,symbolsData:da,hover:!0,children:ra}):ra;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Container$y,{children:pa}),jsxRuntimeExports.jsx(Description$3,{children:oa})]})},theme$1$=withTheme(scheme$V),BaseControl$1=dt$1(BaseControl).withConfig({displayName:"BaseControl",componentId:"sc-15zpfs7-2"})(["display:flex;flex-flow:row wrap;padding:15px;border-radius:5px;margin-bottom:10px;","{flex:1;","}","{max-width:270px;transition:color 150ms ease-out;}",";",";"],Container$y,ea=>ea.description&&lt$1(["margin-right:15px;"]),Description$3,theme$1$.colors(ea=>lt$1(["background-color:",";","{color:",";}&:hover ","{color:",";}"],ea.control.background,Description$3,ea.control.description,Description$3,ea.control.hover.description)),theme$1$.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Description$3,ea.control.description.fontSize,ea.control.description.fontWeight,ea.control.description.lineHeight))),defaultColors$1e={color:"#FFF"},colors$1e={dark:defaultColors$1e},defaultSizing$11={},sizes$1e={default:defaultSizing$11},scheme$U=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1e,sizes:sizes$1e},Symbol.toStringTag,{value:"Module"})),popoverPlacement$2={yPlacement:"bottom",xPlacement:"insideLeft",space:{left:0,top:0}},SchedulingPublish=({className:ea})=>{const{t:na}=useTranslation(),[{visibilitySchedule:{enable:ra=!1,start:oa,end:aa}},sa]=useDisplayRules(),la=reactExports.useCallback(da=>{sa({type:"updateVisibilitySchedule",payload:{enable:da}})},[sa]),ca=reactExports.useCallback(da=>{sa({type:"updateVisibilitySchedule",payload:{start:da}})},[sa]),ua=reactExports.useCallback(da=>{sa({type:"updateVisibilitySchedule",payload:{end:da}})},[sa]);return jsxRuntimeExports.jsxs(BaseControl$1,{className:ea,tier:Tiers.PRO,content:"publishSchedule",children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:ra,onChange:la,children:na("Enable scheduling")}),ra&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,nowButton:!1,label:na("Start"),resetLabel:na("Clear"),notSetLabel:na("Pick Date"),value:oa,onChange:ca,inViewportOptions:popoverPlacement$2}),jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,nowButton:!1,label:na("End"),resetLabel:na("Clear"),notSetLabel:na("Pick Date"),value:aa,onChange:ua,inViewportOptions:popoverPlacement$2})]})]})},theme$1_=withTheme(scheme$U),SchedulingPublish$1=dt$1(SchedulingPublish).withConfig({displayName:"SchedulingPublish",componentId:"sc-1l6hi54-0"})(["label{font-weight:600;}","{justify-content:flex-start;margin-top:5px;> span{min-width:27px;margin-right:4px;}}",""],DatePicker$1,theme$1_.colors(ea=>lt$1(["label{color:",";}"],ea.color))),VisibilityScheduling=ea=>{const{className:na}=ea;return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(SchedulingPublish$1,{})})},VisibilityScheduling$1=dt$1(VisibilityScheduling).withConfig({displayName:"VisibilityScheduling",componentId:"sc-6jzbmf-0"})([""]),options$3=[{value:"all",label:i18next.t("All")},{value:"any",label:i18next.t("Any")}],MatchingMode=ea=>jsxRuntimeExports.jsx(Select$1,{options:options$3,...ea}),MatchingMode$1=dt$1(MatchingMode).withConfig({displayName:"MatchingMode",componentId:"sc-en0yg7-0"})(["width:50px;"]),SvgAdd=ea=>reactExports.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"add"},reactExports.createElement("rect",{id:"Rectangle 7236",x:12,y:5,width:2,height:12,transform:"rotate(90 12 5)"}),reactExports.createElement("rect",{id:"Rectangle 7237",x:5,width:2,height:12}))),defaultColors$1d={border:"#6a6a6a",color:"#AAA",icon:"#AAA"},colors$1d={dark:defaultColors$1d},defaultSizing$10={},sizes$1d={default:defaultSizing$10},scheme$T=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1d,sizes:sizes$1d},Symbol.toStringTag,{value:"Module"})),AddCondition=({className:ea,onClick:na})=>{const{t:ra}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,onClick:na,children:jsxRuntimeExports.jsx(LabelWithIcon$1,{icon:SvgAdd,iconLocation:"before",children:ra("Add condition")})})},theme$1Z=withTheme(scheme$T),AddCondition$1=dt$1(AddCondition).withConfig({displayName:"AddCondition",componentId:"sc-11jnknw-0"})(["cursor:pointer;border-radius:5px;padding:15px;","{display:flex;align-items:center;color:#aaa;font-size:11px;font-weight:600;line-height:16px;svg{fill:#aaaaaa;}","{margin-top:0;margin-right:5px;}}",""],LabelWithIcon$1,IconHolder$1,theme$1Z.colors(ea=>lt$1(["border:1px dashed ",";","{color:",";svg{fill:",";}}"],ea.border,LabelWithIcon$1,ea.color,ea.icon))),defaultColors$1c={line:"#6a6a6a"},colors$1c={dark:defaultColors$1c},defaultSizing$$={},sizes$1c={default:defaultSizing$$},scheme$S=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1c,sizes:sizes$1c},Symbol.toStringTag,{value:"Module"})),options$2=[{value:"and",label:i18next.t("AND")},{value:"or",label:i18next.t("OR")}],Operator=({className:ea,...na})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Select$1,{options:options$2,...na})}),theme$1Y=withTheme(scheme$S),Operator$1=dt$1(Operator).withConfig({displayName:"Operator",componentId:"sc-1pqjs6j-0"})(["display:flex;justify-content:center;margin-top:15px;","{width:55px;position:relative;","}",""],Select$1,({value:ea})=>lt$1(ea==="and"?["&:before{content:'';height:12px;width:1px;position:absolute;top:-2px;left:50%;transform:translateY(-100%);}&:after{content:'';height:12px;width:1px;position:absolute;bottom:-2px;left:50%;transform:translateY(100%);}"]:["&:before{content:'';height:1px;width:12px;position:absolute;top:50%;left:-2px;transform:translateX(-100%);}&:after{content:'';height:1px;width:12px;position:absolute;top:50%;right:-2px;transform:translateX(100%);}"]),theme$1Y.colors(ea=>lt$1(["","{&::after,&::before{background-color:",";}}"],Select$1,ea.line))),defaultColors$1b={color:"#FFF"},colors$1b={dark:defaultColors$1b},defaultSizing$_={},sizes$1b={default:defaultSizing$_},scheme$R=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1b,sizes:sizes$1b},Symbol.toStringTag,{value:"Module"})),SvgDelete$1=ea=>reactExports.createElement("svg",{width:17,height:15,viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"delete"},reactExports.createElement("path",{id:"Subtraction 38",fillRule:"evenodd",clipRule:"evenodd",d:"M4.9999 3.00062H4.9989L4 2.99964V0.99988C4 0.44849 4.44855 0 4.9999 0H9.9994C10.5508 0 10.9993 0.44849 10.9993 0.99988V2.99866L9.9994 2.99964V1.50025C9.9994 1.22437 9.77533 0.99988 9.4999 0.99988H5.4994C5.22397 0.99988 4.9999 1.22437 4.9999 1.50025V2.99964V3.00062Z"}),reactExports.createElement("path",{id:"Subtraction 39",fillRule:"evenodd",clipRule:"evenodd",d:"M3.9999 4.99999L3 5.00097V13.0007C3 13.5521 3.44855 14.0006 3.9999 14.0006H10.9994C11.5507 14.0006 11.9993 13.5521 11.9993 13.0007V5.00195L10.9994 5.00097V12.5004C10.9994 12.7762 10.7753 13.0007 10.4999 13.0007H4.4994C4.22397 13.0007 3.9999 12.7762 3.9999 12.5004V4.99999Z"}),reactExports.createElement("path",{id:"Rectangle 714",fillRule:"evenodd",clipRule:"evenodd",d:"M1 4.5C1 4.22386 1.22386 4 1.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H1.5C1.22386 5 1 4.77614 1 4.5Z"}))),DeleteButton$1=dt$1(IconButton).attrs({icon:jsxRuntimeExports.jsx(SvgDelete$1,{})}).withConfig({displayName:"DeleteButton",componentId:"sc-1j0hye2-0"})([""]),defaultColors$1a={background:"#313131"},colors$1a={dark:defaultColors$1a},defaultSizing$Z={},sizes$1a={default:defaultSizing$Z},scheme$Q=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1a,sizes:sizes$1a},Symbol.toStringTag,{value:"Module"})),options$1=[{value:"include",label:i18next.t("Include")},{value:"exclude",label:i18next.t("Exclude")}],SelectionMode=ea=>jsxRuntimeExports.jsx(Select$1,{options:options$1,...ea}),SelectionMode$1=dt$1(SelectionMode).withConfig({displayName:"SelectionMode",componentId:"sc-1h0n9jp-0"})(["width:71px;"]),defaultColors$19={handler:{background:"#222222",border:"#6A6A6A",color:"#FFFFFF",icon:"#AAAAAA",focus:"#4980F5",hover:{border:"#C4C4C4"}},popover:{background:"#222",border:"#000",shadow:"rgba(0, 0, 0, 0.25)"},searchBar:{background:"#000",color:"#FFF",placeholder:"#6A6A6A",icon:"#6A6A6A",border:"#000"},category:{color:"#6A6A6A",selected:"#FFF"},item:{color:"#FFF",hover:{background:"#363636"}},noCondition:{color:"#6A6A6A",icon:"#6A6A6A"}},colors$19={dark:defaultColors$19},defaultSizing$Y={},sizes$19={default:defaultSizing$Y},scheme$P=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$19,sizes:sizes$19},Symbol.toStringTag,{value:"Module"})),SvgArrowRight$2=ea=>reactExports.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"dropdown arrow"},reactExports.createElement("path",{id:"Subtraction 75",fillRule:"evenodd",clipRule:"evenodd",d:"M4.74414 3.60741L4.74414 3.60839L1.20703 7.14062L-5.27181e-08 5.93457L2.32715 3.60742L-2.56292e-07 1.27735L1.20703 0.0703148L4.74414 3.60644L4.74414 3.60741Z"}))),ConditionCategory$1=({className:ea,id:na,data:ra,onClick:oa})=>{const{label:aa}=ra,sa=()=>{oa(na)};return jsxRuntimeExports.jsxs("div",{className:ea,onClick:sa,children:[aa,jsxRuntimeExports.jsx(Icon$4,{shape:SvgArrowRight$2})]})},theme$1X=withTheme(scheme$P),ConditionCategory$2=dt$1(ConditionCategory$1).withConfig({displayName:"ConditionCategory",componentId:"sc-1riftab-0"})(["display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;line-height:19px;transition:color 150ms ease-out;cursor:pointer;",""],theme$1X.colors((ea,{selected:na})=>lt$1(["color:",";"," svg{fill:",";}&:hover{color:",";"," svg{fill:",";}}"],na?ea.category.selected:ea.category.color,Icon$4,na?ea.category.selected:ea.category.color,ea.category.selected,Icon$4,ea.category.selected))),ConditionCategory=({className:ea,data:na,onClick:ra})=>{const{label:oa,tier:aa=Tiers.FREE,description:sa}=na,la=!useUserTierAuth(aa),ca=useOpenUpgradeToPro(),ua=reactExports.useCallback(()=>{ca({source:"depicter_editor",medium:"display_rules",content:"conditions",term:"label"})},[ca]),da=reactExports.useMemo(()=>({position:{top:"3px",right:"8px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})}),[]),pa=()=>{la?ua():ra(na)},ha=sa?{content:sa,options:{id:"workspace"}}:void 0,ga=jsxRuntimeExports.jsx("div",{className:ea,onClick:pa,children:jsxRuntimeExports.jsx(Label$6,{tooltip:ha,children:oa})});return la?jsxRuntimeExports.jsx(WithBadge,{onClick:ua,symbolsData:da,children:ga}):ga},theme$1W=withTheme(scheme$P),ConditionItem=dt$1(ConditionCategory).withConfig({displayName:"ConditionItem",componentId:"sc-1s9e5ws-0"})(["font-size:12px;font-weight:600;line-height:19px;padding:3px 10px;border-radius:5px;margin-bottom:0;cursor:pointer;","{font-size:12px;font-weight:600;line-height:19px;margin-bottom:0;cursor:inherit;}",""],Label$6,theme$1W.colors(ea=>lt$1(["","{color:",";}&:hover{background-color:",";}"],Label$6,ea.item.color,ea.item.hover.background))),SvgNoCondition=ea=>reactExports.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"Group 1082"},reactExports.createElement("path",{id:"Subtraction 118",fillRule:"evenodd",clipRule:"evenodd",d:"M14.001 28.0019C10.2607 28.0019 6.74512 26.5454 4.10059 23.9004C1.45606 21.2563 0 17.7402 0 14.001C0 10.2617 1.45605 6.7456 4.10059 4.10156C6.74512 1.45654 10.2607 0 14.001 0C17.7402 0 21.2559 1.45654 23.9014 4.10156C26.5459 6.7456 28.002 10.2617 28.002 14.001C28.002 17.7402 26.5459 21.2563 23.9014 23.9004C21.2559 26.5454 17.7402 28.0019 14.001 28.0019ZM14.001 3.00243C11.0625 3.00243 8.29981 4.14647 6.22266 6.22362C4.14454 8.30077 3 11.063 3 14.001C3 20.0674 7.93457 25.0024 14.001 25.0024C16.9395 25.0024 19.7012 23.8579 21.7783 21.7803C23.8555 19.7016 25 16.9389 25 14.0009C25 11.063 23.8555 8.30124 21.7783 6.22361C19.7022 4.14646 16.9394 3.00242 14.001 3.00242V3.00243Z"}),reactExports.createElement("path",{id:"Rectangle 3372",fillRule:"evenodd",clipRule:"evenodd",d:"M12.001 8.00098C12.001 6.89641 12.8964 6.00098 14.001 6.00098C15.1055 6.00098 16.001 6.89641 16.001 8.00098V15.001C16.001 16.1055 15.1055 17.001 14.001 17.001C12.8964 17.001 12.001 16.1055 12.001 15.001V8.00098Z"}),reactExports.createElement("path",{id:"Rectangle 3373",fillRule:"evenodd",clipRule:"evenodd",d:"M12.001 21.001C12.001 19.8964 12.8964 19.001 14.001 19.001C15.1055 19.001 16.001 19.8964 16.001 21.001C16.001 22.1055 15.1055 23.001 14.001 23.001C12.8964 23.001 12.001 22.1055 12.001 21.001Z"}))),NoCondition=ea=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{...ea,children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgNoCondition}),jsxRuntimeExports.jsx(Label$6,{children:na("No condition found!")})]})},theme$1V=withTheme(scheme$P),NoCondition$1=dt$1(NoCondition).withConfig({displayName:"NoCondition",componentId:"sc-1v2fhc5-0"})(["display:flex;flex-direction:column;align-items:center;margin-top:45px;","{font-size:12px;font-weight:600;line-height:19px;margin-top:7px;margin-bottom:0;}",""],Label$6,theme$1V.colors(ea=>lt$1(["","{color:",";}"," svg{fill:",";}"],Label$6,ea.noCondition.color,Icon$4,ea.noCondition.icon))),CategoryContainer=dt$1.div.withConfig({displayName:"ConditionCategories__CategoryContainer",componentId:"sc-jb9pui-0"})([""]),ItemContainer$1=dt$1.div.withConfig({displayName:"ConditionCategories__ItemContainer",componentId:"sc-jb9pui-1"})([""]),ConditionCategories=({className:ea,categories:na,value:ra,searchResults:oa,onChange:aa})=>{const sa=reactExports.useMemo(()=>Object.keys(na),[na]),[la,ca]=reactExports.useState(ra||sa[0]),ua=reactExports.useMemo(()=>na[la],[na,la]),da=ma=>{ca(ma)},pa=ma=>{aa(ma)},ha=ma=>{const va=na[ma];return jsxRuntimeExports.jsx(ConditionCategory$2,{id:ma,onClick:da,selected:la===ma,data:va},ma)},ga=ma=>jsxRuntimeExports.jsx(ConditionItem,{onClick:pa,data:ma},ma.slug);let fa=null;return oa&&(fa=oa.length?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:oa.map(ga)}):jsxRuntimeExports.jsx(NoCondition$1,{})),jsxRuntimeExports.jsxs("div",{className:ea,children:[!oa&&jsxRuntimeExports.jsx(CategoryContainer,{children:sa.map(ha)}),jsxRuntimeExports.jsx(ItemContainer$1,{children:jsxRuntimeExports.jsx(Scrollbars,{children:fa||ua.items.map(ga)})})]})},theme$1U=withTheme(scheme$P),ConditionCategories$1=dt$1(ConditionCategories).withConfig({displayName:"ConditionCategories",componentId:"sc-jb9pui-2"})(["display:flex;height:225px;","{padding:15px;width:158px;","{margin-bottom:8px;&:last-of-type{margin-bottom:0;}}}","{flex:1;padding:15px 10px 15px 15px;","{margin-bottom:5px;&:last-of-type{margin-bottom:0;}}","{right:0;}}",""],CategoryContainer,ConditionCategory$2,ItemContainer$1,ConditionItem,VerticalTrack,theme$1U.colors(ea=>lt$1(["","{border-right:1px solid ",";}"],CategoryContainer,ea.popover.border))),ConditionSearchBar=ea=>jsxRuntimeExports.jsx(SearchBar$1,{...ea}),theme$1T=withTheme(scheme$P),ConditionSearchBar$1=dt$1(ConditionSearchBar).withConfig({displayName:"ConditionSearchBar",componentId:"sc-5wdppj-0"})(["margin:0;padding:7px 10px;input{border:none;font-weight:600;}",""],theme$1T.colors(ea=>lt$1(["border-bottom:1px solid ",";input{background:",";}"],ea.searchBar.border,ea.searchBar.background))),SvgConditionType=ea=>reactExports.createElement("svg",{width:12,height:11,viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{id:"Vector",d:"M6.99937 11C6.93521 11 6.87148 10.989 6.81062 10.9675L4.80688 10.2623C4.68772 10.2199 4.58421 10.1389 4.51105 10.0308C4.4379 9.92263 4.39883 9.79286 4.39938 9.6599V6.50771C4.39884 6.50643 4.39807 6.50527 4.39713 6.50428L0.180906 1.30995C0.0874159 1.19475 0.0271431 1.0536 0.00724324 0.903248C-0.0126566 0.752896 0.00865253 0.599662 0.0686406 0.461738C0.128629 0.323815 0.224776 0.206995 0.345667 0.125149C0.466559 0.0433025 0.607117 -0.000132577 0.750653 3.03981e-07H11.2493C11.3929 -0.000132577 11.5334 0.0433025 11.6543 0.125149C11.7752 0.206995 11.8714 0.323815 11.9314 0.461738C11.9913 0.599662 12.0127 0.752896 11.9928 0.903248C11.9729 1.0536 11.9126 1.19475 11.8191 1.30995L7.60162 6.50481C7.60076 6.50587 7.6 6.50702 7.59937 6.50824V10.3654C7.5996 10.4488 7.58424 10.5314 7.55416 10.6085C7.52409 10.6856 7.47991 10.7557 7.42415 10.8147C7.36839 10.8736 7.30215 10.9204 7.22925 10.9522C7.15635 10.984 7.07823 11.0002 6.99937 11Z"})),ConditionTypeHandler=({className:ea,children:na,onClick:ra})=>jsxRuntimeExports.jsxs("div",{className:ea,onClick:ra,children:[na,jsxRuntimeExports.jsx(Icon$4,{shape:SvgConditionType})]}),theme$1S=withTheme(scheme$P),ConditionTypeHandler$1=dt$1(ConditionTypeHandler).withConfig({displayName:"ConditionTypeHandler",componentId:"sc-1724fkj-0"})(["width:174px;height:31px;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:600;padding:5px 9px;border-radius:5px;cursor:pointer;",""],theme$1S.colors((ea,{isFocus:na})=>lt$1(["background:",";border:1px solid ",";color:",";&:hover{border:1px solid "," !;}"," svg{fill:",";}"],ea.handler.background,na?ea.handler.focus:ea.handler.border,ea.handler.color,na?ea.handler.focus:ea.handler.hover.border,Icon$4,na?ea.handler.focus:ea.handler.icon))),popoverPlacement$1={xPlacement:"insideLeft",yPlacement:"bottom",space:{bottom:-5}},ConditionType=({className:ea,value:na,onChange:ra})=>{const{t:oa}=useTranslation(),[aa,sa]=reactExports.useState(!1),[la,ca]=reactExports.useState(null),[{conditions:ua}]=useDisplayRules(),da=reactExports.useCallback(()=>{sa(xa=>!xa)},[]),pa=reactExports.useCallback(()=>{ca(null),sa(!1)},[]),ha=xa=>{ra(xa),pa()},ga=xa=>{xa||ca(null),ca(xa)},fa=findKey$1(ua,xa=>xa.items.some(ya=>ya.slug===na)),ma=fa?find$3(ua[fa].items,{slug:na}):void 0,va=reactExports.useMemo(()=>la?Object.values(ua).map(ya=>ya.items).reduce((ya,Aa)=>[...ya,...Aa],[]).filter(ya=>ya.label.toLowerCase().includes(la.toLowerCase())):null,[ua,la]);return jsxRuntimeExports.jsxs(Popover$3,{className:ea,open:aa,onOutsideClick:pa,handler:jsxRuntimeExports.jsx(ConditionTypeHandler$1,{onClick:da,isFocus:!fa&&!ma,children:ma?.label||oa("Select condition")}),inViewportOptions:popoverPlacement$1,viewportContainer:document.getElementById("depicter-display-rules-content-container"),children:[jsxRuntimeExports.jsx(ConditionSearchBar$1,{value:"",onSearch:ga,size:"medium",searchPlaceholder:oa("Search for condition")}),jsxRuntimeExports.jsx(ConditionCategories$1,{categories:ua,value:fa,searchResults:va,onChange:ha})]})},theme$1R=withTheme(scheme$P),ConditionType$1=dt$1(ConditionType).withConfig({displayName:"ConditionType",componentId:"sc-1un5fpn-0"})(["","{width:420px;padding:0;}",""],PopoverWrapper$1,theme$1R.colors(ea=>lt$1(["","{background:",";border:1px solid ",";box-shadow:2px 10px 25px ",";}"],PopoverWrapper$1,ea.popover.background,ea.popover.border,ea.popover.shadow))),DisplayRulesDropdown=ea=>{const{className:na,value:ra,onChange:oa,defaultValue:aa,options:sa}=ea,la=reactExports.useCallback(ca=>{oa(ca)},[oa]);return jsxRuntimeExports.jsx(Select$1,{className:na,options:sa,value:ra||aa,onChange:la})},Dropdown=dt$1(DisplayRulesDropdown).withConfig({displayName:"Dropdown",componentId:"sc-1h3lcx4-0"})(["width:135px;"]),DisplayRulesMultiSelect=ea=>{const{className:na,value:ra=[],options:oa,onChange:aa}=ea,{t:sa}=useTranslation(),la=reactExports.useMemo(()=>[{value:"all",label:sa("All")},...oa],[oa,sa]),ca=reactExports.useMemo(()=>ra.length?ra:["all"],[ra]),ua=reactExports.useCallback(da=>{const ha=lodashExports.difference(da,ca)[0]==="all"?[]:da.filter(ga=>ga!=="all");aa(ha)},[ca,aa]);return jsxRuntimeExports.jsx(MultipleSelect$1,{className:na,optionFilterProp:"label",options:la,value:ca,onChange:ua})},MultiSelect=dt$1(DisplayRulesMultiSelect).withConfig({displayName:"MultiSelect",componentId:"sc-13daa1y-0"})(["width:510px;.rc-select .rc-select-selector{padding:4px 9px;}"]),DisplayRulesComparison$1=ea=>{const{className:na,value:ra={comparisonFunction:"equal"},onChange:oa}=ea,aa=comparisonOptionsList.find(ca=>ca.value===ra.comparisonFunction),sa=reactExports.useCallback(ca=>{oa({comparisonFunction:ca,targetValue:""})},[oa]),la=reactExports.useCallback(ca=>{oa({comparisonFunction:ra.comparisonFunction,targetValue:ca})},[ra.comparisonFunction,oa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Select$1,{value:ra.comparisonFunction,options:comparisonOptionsList,onChange:sa}),jsxRuntimeExports.jsx(Input$2,{inputType:aa.type,variant:"small",value:ra?.targetValue,placeholder:aa.valuePlaceholder,onChange:la})]})},Comparison=dt$1(DisplayRulesComparison$1).withConfig({displayName:"Comparison",componentId:"sc-109otkz-0"})(["display:flex;gap:6px;",",","{width:150px;}"," textarea{padding:5px 9px;}"],Select$1,Input$2,Input$2),DisplayRulesComparison=ea=>{const{className:na,value:ra={comparisonFunction:"equal"},targetParamPlaceholder:oa,onChange:aa}=ea,sa=comparisonOptionsList.find(da=>da.value===ra.comparisonFunction),la=reactExports.useCallback(da=>{aa({targetParam:ra.targetParam,comparisonFunction:da,targetValue:""})},[aa,ra.targetParam]),ca=reactExports.useCallback(da=>{aa({targetParam:ra.targetParam,comparisonFunction:ra.comparisonFunction,targetValue:da})},[aa,ra.targetParam,ra.comparisonFunction]),ua=reactExports.useCallback(da=>{aa({targetParam:da,comparisonFunction:ra.comparisonFunction,targetValue:ra.targetValue})},[aa,ra.comparisonFunction,ra.targetValue]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Input$2,{inputType:"input",variant:"small",value:ra?.targetParam,placeholder:oa,onChange:ua}),jsxRuntimeExports.jsx(Select$1,{value:ra.comparisonFunction,options:comparisonOptionsList,onChange:la}),jsxRuntimeExports.jsx(Input$2,{inputType:sa.type,variant:"small",value:ra?.targetValue,placeholder:sa.valuePlaceholder,onChange:ca})]})},ParamComparison=dt$1(DisplayRulesComparison).withConfig({displayName:"ParamComparison",componentId:"sc-ukglzt-0"})(["display:flex;gap:6px;",",","{width:150px;}"," textarea{padding:5px 9px;}"],Select$1,Input$2,Input$2),cachedData={},DisplayRulesRemoteMultiSelect=ea=>{const{className:na,value:ra=[],query:oa,defaultValue:aa=["all"],onChange:sa}=ea,[la,ca]=reactExports.useState(!0),[ua,da]=reactExports.useState([]),{t:pa}=useTranslation(),ha=xa=>{da(xa),cachedData[oa]=xa,ca(!1)},[ga]=useRequest(getConditionOptions,{onSuccess:ha});reactExports.useEffect(()=>{cachedData[oa]?(da(cachedData[oa]),ca(!1)):(ca(!0),ga({query:oa}))},[oa]);const fa=reactExports.useMemo(()=>[{value:"all",label:pa("All")},...ua],[ua,pa]),ma=reactExports.useMemo(()=>ra.length?ra:aa,[ra,aa]),va=reactExports.useCallback(xa=>{if(la)return;const Aa=lodashExports.difference(xa,ma)[0]==="all"?[]:xa.filter(Ca=>Ca!=="all");sa(Aa)},[la,ma,sa]);return jsxRuntimeExports.jsx(MultipleSelect$1,{className:na,options:fa,value:ma,loading:la,onChange:va})},RemoteMultiSelect=dt$1(DisplayRulesRemoteMultiSelect).withConfig({displayName:"RemoteMultiSelect",componentId:"sc-122sm3-0"})(["width:510px;.rc-select .rc-select-selector{padding:4px 9px;}"]),comparisonOptionsList=[{value:"equal",label:i18next.t("Equal to"),valuePlaceholder:"example: value",type:"input"},{value:"greaterThan",label:i18next.t("Greater than"),valuePlaceholder:"example: 10",type:"input"},{value:"lowerThan",label:i18next.t("Lower than"),valuePlaceholder:"example: 20",type:"input"},{value:"greaterThanOrEqual",label:i18next.t("Greater than or equal"),valuePlaceholder:"example: 10",type:"input"},{value:"lowerThanOrEqual",label:i18next.t("Lower than or equal"),valuePlaceholder:"example: 20",type:"input"},{value:"containing",label:i18next.t("Contains"),valuePlaceholder:"example: value",type:"input"},{value:"notContaining",label:i18next.t("Not contains"),valuePlaceholder:"example: value",type:"input"},{value:"endsWith",label:i18next.t("Ends with"),valuePlaceholder:"example: value",type:"input"},{value:"beginsWith",label:i18next.t("Starts with"),valuePlaceholder:"example: value",type:"input"},{value:"regExpMatch",label:i18next.t("RegExp match"),valuePlaceholder:"example: .*value.*",type:"input"},{value:"oneOf",label:i18next.t("One of (line separated)"),valuePlaceholder:`example: value1
 value2`,type:"textArea"},{value:"nonOf",label:i18next.t("Non of (line separated)"),valuePlaceholder:"example: value1, value2",type:"textArea"}],conditionOptionControlsMap=new Map;conditionOptionControlsMap.set("multiSelect",MultiSelect);conditionOptionControlsMap.set("dropdown",Dropdown);conditionOptionControlsMap.set("comparison",Comparison);conditionOptionControlsMap.set("paramComparison",ParamComparison);conditionOptionControlsMap.set("remoteMultiSelect",RemoteMultiSelect);const Condition=({className:ea,id:na,groupId:ra})=>{const[{displayConditions:{[ra]:{conditions:{[na]:oa}}}},aa]=useDisplayRules(),{selectionMode:sa,control:la,controlOptions:ca,slug:ua,value:da}=oa,pa=reactExports.useCallback(()=>{aa({type:"deleteCondition",payload:{groupId:ra,id:na}})},[aa,ra,na]),ha=reactExports.useCallback(va=>{aa({type:"updateConditionData",payload:{groupId:ra,id:na,value:{selectionMode:va}}})},[aa,ra,na]),ga=reactExports.useCallback(va=>{aa({type:"updateConditionData",payload:{groupId:ra,id:na,value:{control:va.control,slug:va.slug,controlOptions:va?.controlOptions,value:void 0}}})},[aa,ra,na]),fa=reactExports.useCallback(va=>{aa({type:"updateConditionData",payload:{groupId:ra,id:na,value:{value:va}}})},[aa,ra,na]),ma=reactExports.useMemo(()=>la&&conditionOptionControlsMap.get(la),[ua,la]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(SelectionMode$1,{value:sa,onChange:ha}),jsxRuntimeExports.jsx(ConditionType$1,{value:ua,onChange:ga}),ma?jsxRuntimeExports.jsx(ma,{value:da,onChange:fa,...ca}):null,jsxRuntimeExports.jsx(DeleteButton$1,{onClick:pa})]})},theme$1Q=withTheme(scheme$Q),Condition$1=dt$1(Condition).withConfig({displayName:"Condition",componentId:"sc-38pfe0-0"})(["min-height:45px;position:relative;padding:7px;display:flex;flex-direction:row wrap;align-items:start;gap:6px;border-radius:5px;","{position:absolute;top:8px;right:0;opacity:0;}&:hover ","{opacity:1;transition:opacity 150ms ease-out;}",""],DeleteButton$1,DeleteButton$1,theme$1Q.colors(ea=>lt$1(["background-color:",";"],ea.background))),Title$t=dt$1.div.withConfig({displayName:"ConditionGroup__Title",componentId:"sc-1g3wba8-0"})([""]),ConditionGroup=({className:ea,id:na,showOperator:ra})=>{const{t:oa}=useTranslation(),[{displayConditions:{[na]:aa}},sa]=useDisplayRules(),{matchingMode:la,operator:ca,conditions:ua}=aa,da=Object.keys(ua),pa=reactExports.useCallback(va=>{sa({type:"updateDisplayConditionGroup",payload:{id:na,value:{matchingMode:va}}})},[sa,na]),ha=reactExports.useCallback(va=>{sa({type:"updateDisplayConditionGroup",payload:{id:na,value:{operator:va}}})},[sa,na]),ga=reactExports.useCallback(()=>{sa({type:"deleteConditionGroup",payload:na})},[sa,na]),fa=reactExports.useCallback(()=>{sa({type:"addCondition",payload:{groupId:na,id:nanoid$1()}})},[sa,na]),ma=reactExports.useCallback(va=>jsxRuntimeExports.jsx(Condition$1,{id:va,groupId:na},va),[na]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(BaseControl$1,{children:[jsxRuntimeExports.jsxs(Title$t,{children:[jsxRuntimeExports.jsx(Label$6,{children:oa("When")}),jsxRuntimeExports.jsx(MatchingMode$1,{value:la,onChange:pa}),jsxRuntimeExports.jsx(Label$6,{children:oa("conditions match.")})]}),da.map(ma),jsxRuntimeExports.jsx(AddCondition$1,{onClick:fa}),jsxRuntimeExports.jsx(DeleteButton$1,{onClick:ga})]}),ra&&jsxRuntimeExports.jsx(Operator$1,{value:ca,onChange:ha})]})},theme$1P=withTheme(scheme$R),ConditionGroup$1=dt$1(ConditionGroup).withConfig({displayName:"ConditionGroup",componentId:"sc-1g3wba8-1"})(["margin-bottom:15px;","{display:flex;align-items:center;","{color:#fff;font-size:11px;font-weight:600;line-height:15px;margin:0;}","{margin:0 5px;}}","{margin-top:10px;}","{position:relative;margin-bottom:0 !important;> div > ","{position:absolute;right:8px;top:15px;opacity:0;transition:opacity 150ms ease-out;}&:hover > div > ","{opacity:1;}}","{margin-top:7px;&:first-of-type{margin-top:10px;}}",""],Title$t,Label$6,MatchingMode$1,AddCondition$1,BaseControl$1,DeleteButton$1,DeleteButton$1,Condition$1,theme$1P.colors(ea=>lt$1([""," ","{color:",";}"],Title$t,Label$6,ea.color))),SvgSmallAdd=ea=>reactExports.createElement("svg",{width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("g",{id:"add"},reactExports.createElement("rect",{id:"Rectangle 7236",x:8,y:3,width:2,height:8,transform:"rotate(90 8 3)"}),reactExports.createElement("rect",{id:"Rectangle 7237",x:3,width:2,height:8}))),defaultColors$18={background:"#444",hover:{background:"#FFF"}},colors$18={dark:defaultColors$18},defaultSizing$X={},sizes$18={default:defaultSizing$X},scheme$O=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$18,sizes:sizes$18},Symbol.toStringTag,{value:"Module"})),AddConditionGroup=({className:ea})=>{const{t:na}=useTranslation(),[,ra]=useDisplayRules(),oa=()=>{const aa=nanoid$1();ra({type:"addConditionGroup",payload:aa})};return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(SolidButton,{size:"medium",color:"secondary",icon:jsxRuntimeExports.jsx(SvgSmallAdd,{}),iconAlign:"left",onClick:oa,children:na("Add group")})})},theme$1O=withTheme(scheme$O),AddConditionGroup$1=dt$1(AddConditionGroup).withConfig({displayName:"AddConditionGroup",componentId:"sc-hx8gav-0"})(["display:flex;justify-content:center;",""],theme$1O.colors(ea=>lt$1(["","{background-color:",";&:hover{background-color:",";}}"],SolidButton,ea.background,ea.hover.background))),WarningContainer=dt$1.div.withConfig({displayName:"DisplayConditions__WarningContainer",componentId:"sc-1fu1xl5-0"})([""]),DisplayConditions=ea=>{const{className:na}=ea,[{displayConditions:ra}]=useDisplayRules(),{t:oa}=useTranslation(),aa=Object.keys(ra).sort((ca,ua)=>ra[ca].order-ra[ua].order),sa=reactExports.useCallback((ca,ua)=>jsxRuntimeExports.jsx(ConditionGroup$1,{id:ca,showOperator:ua+1!==aa.length},ca),[aa]),la=reactExports.useMemo(()=>aa.some(ca=>{const ua=ra[ca].conditions;return Object.keys(ua).some(da=>!!ua[da].slug)}),[ra,aa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[!la&&jsxRuntimeExports.jsx(WarningContainer,{children:jsxRuntimeExports.jsx(Flag$1,{type:"info",children:oa("Your content appears on the entire of your website. Set display conditions to control when your content appears on the website.")})}),aa.map(sa),jsxRuntimeExports.jsx(AddConditionGroup$1,{})]})},DisplayConditions$1=dt$1(DisplayConditions).withConfig({displayName:"DisplayConditions",componentId:"sc-1fu1xl5-1"})(["","{padding-bottom:20px;margin-bottom:20px;border-bottom:2px dashed #444;}"],WarningContainer),defaultColors$17={color:"#FFF"},colors$17={dark:defaultColors$17},defaultSizing$W={},sizes$17={default:defaultSizing$W},scheme$N=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$17,sizes:sizes$17},Symbol.toStringTag,{value:"Module"})),DependencyControls$6=dt$1.div.withConfig({displayName:"Click__DependencyControls",componentId:"sc-7h251x-0"})([""]),Control$6=dt$1.div.withConfig({displayName:"Click__Control",componentId:"sc-7h251x-1"})([""]),Click=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{click:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"click",value:{enable:da}}})},[aa]),ua=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"click",value:{params:{selector:da||""}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger if you want to set your content to display after a visitor clicks on an element on the page."),children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"click",onChange:ca,children:ra("Click")}),sa&&jsxRuntimeExports.jsx(DependencyControls$6,{children:jsxRuntimeExports.jsxs(Control$6,{children:[jsxRuntimeExports.jsx(Label$6,{tooltip:{content:ra("You can set any CSS selector targeting single or multiple elements on the page."),options:{place:"top",id:"workspace"}},children:ra("CSS Selector")}),jsxRuntimeExports.jsx(Input$2,{value:la?.selector,variant:"small",onBlurChange:!0,placeholder:"E.g. .element-class",onChange:ua})]})})]})},theme$1N=withTheme(scheme$N),Click$1=dt$1(Click).withConfig({displayName:"Click",componentId:"sc-7h251x-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{&:first-of-type{width:345px;margin-right:10px;}}",""],SwitchBox$1,DependencyControls$6,Control$6,theme$1N.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$16={color:"#FFF"},colors$16={dark:defaultColors$16},defaultSizing$V={},sizes$16={default:defaultSizing$V},scheme$M=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$16,sizes:sizes$16},Symbol.toStringTag,{value:"Module"})),DependencyControls$5=dt$1.div.withConfig({displayName:"ScrollPercentage__DependencyControls",componentId:"sc-196zowb-0"})([""]),Control$5=dt$1.div.withConfig({displayName:"ScrollPercentage__Control",componentId:"sc-196zowb-1"})([""]),ScrollPercentage=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{scroll:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"scroll",value:{enable:da}}})},[aa]),ua=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"scroll",value:{params:{percentage:da}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger to set your content displays right after the visitor scrolls to the specified percentage of the page."),children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"scrollPercentage",onChange:ca,children:ra("Scroll percentage")}),sa&&jsxRuntimeExports.jsx(DependencyControls$5,{children:jsxRuntimeExports.jsxs(Control$5,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Percentage")}),jsxRuntimeExports.jsx(Number$2,{value:la?.percentage,units:"%",onChange:ua})]})})]})},theme$1M=withTheme(scheme$M),ScrollPercentage$1=dt$1(ScrollPercentage).withConfig({displayName:"ScrollPercentage",componentId:"sc-196zowb-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{width:72px;}",""],SwitchBox$1,DependencyControls$5,Control$5,theme$1M.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$15={color:"#FFF"},colors$15={dark:defaultColors$15},defaultSizing$U={},sizes$15={default:defaultSizing$U},scheme$L=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$15,sizes:sizes$15},Symbol.toStringTag,{value:"Module"})),DependencyControls$4=dt$1.div.withConfig({displayName:"SpendTime__DependencyControls",componentId:"sc-ppdac8-0"})([""]),Control$4=dt$1.div.withConfig({displayName:"SpendTime__Control",componentId:"sc-ppdac8-1"})([""]),SpendTime=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{wait:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"wait",value:{enable:da}}})},[aa]),ua=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"wait",value:{params:{duration:da}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger when you want to set the content displays to visitors when they spend a certain amount of time on a page."),children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"wait",onChange:ca,children:ra("Spend time on page")}),sa&&jsxRuntimeExports.jsx(DependencyControls$4,{children:jsxRuntimeExports.jsxs(Control$4,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Duration")}),jsxRuntimeExports.jsx(Number$2,{value:la?.duration,units:"s",onChange:ua})]})})]})},theme$1L=withTheme(scheme$L),SpendTime$1=dt$1(SpendTime).withConfig({displayName:"SpendTime",componentId:"sc-ppdac8-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{width:72px;}",""],SwitchBox$1,DependencyControls$4,Control$4,theme$1L.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$14={color:"#FFF"},colors$14={dark:defaultColors$14},defaultSizing$T={},sizes$14={default:defaultSizing$T},scheme$K=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$14,sizes:sizes$14},Symbol.toStringTag,{value:"Module"})),DependencyControls$3=dt$1.div.withConfig({displayName:"InactiveTime__DependencyControls",componentId:"sc-vixqaf-0"})([""]),Control$3=dt$1.div.withConfig({displayName:"InactiveTime__Control",componentId:"sc-vixqaf-1"})([""]),InactiveTime=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{inactivity:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"inactivity",value:{enable:da}}})},[aa]),ua=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"inactivity",value:{params:{duration:da}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger when you want to set the content displays to the visitors after they become active on the page after a certain amount of time."),children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"inactivity",onChange:ca,children:ra("Inactive time")}),sa&&jsxRuntimeExports.jsx(DependencyControls$3,{children:jsxRuntimeExports.jsxs(Control$3,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Duration")}),jsxRuntimeExports.jsx(Number$2,{value:la?.duration,units:"s",onChange:ua})]})})]})},theme$1K=withTheme(scheme$K),InactiveTime$1=dt$1(InactiveTime).withConfig({displayName:"InactiveTime",componentId:"sc-vixqaf-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{width:72px;}",""],SwitchBox$1,DependencyControls$3,Control$3,theme$1K.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$13={color:"#FFF"},colors$13={dark:defaultColors$13},defaultSizing$S={},sizes$13={default:defaultSizing$S},scheme$J=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$13,sizes:sizes$13},Symbol.toStringTag,{value:"Module"})),ExitIntent=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{exitIntent:{enable:sa}}=oa,la=reactExports.useCallback(ca=>{aa({type:"updateTriggers",payload:{type:"exitIntent",value:{enable:ca}}})},[aa]);return jsxRuntimeExports.jsx(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger if you want to display the content right before the user intends to leave the page. This trigger would be helpful if you want to decrease the cart abundance rate."),children:jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"exitIntent",onChange:la,children:ra("Exit Intent")})})},theme$1J=withTheme(scheme$J),ExitIntent$1=dt$1(ExitIntent).withConfig({displayName:"ExitIntent",componentId:"sc-8knwsm-0"})(["","{label{font-weight:600;}}",""],SwitchBox$1,theme$1J.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$12={color:"#FFF"},colors$12={dark:defaultColors$12},defaultSizing$R={},sizes$12={default:defaultSizing$R},scheme$I=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$12,sizes:sizes$12},Symbol.toStringTag,{value:"Module"})),DependencyControls$2=dt$1.div.withConfig({displayName:"ScrollToElement__DependencyControls",componentId:"sc-q44onk-0"})([""]),Control$2=dt$1.div.withConfig({displayName:"ScrollToElement__Control",componentId:"sc-q44onk-1"})([""]),ScrollToElement=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{scrollToElement:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"scrollToElement",value:{enable:da}}})},[aa]),ua=reactExports.useCallback(da=>{aa({type:"updateTriggers",payload:{type:"scrollToElement",value:{params:{selector:da||""}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{...na,className:ea,description:ra("Enable this trigger to set your content displays right after the visitor scrolls to the specified element the page."),children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"scrollToElement",onChange:ca,children:ra("Scroll to element")}),sa&&jsxRuntimeExports.jsx(DependencyControls$2,{children:jsxRuntimeExports.jsxs(Control$2,{children:[jsxRuntimeExports.jsx(Label$6,{tooltip:{content:ra("You can set any CSS selector targeting single or multiple elements on the page."),options:{place:"top",id:"workspace"}},children:ra("CSS Selector")}),jsxRuntimeExports.jsx(Input$2,{value:la?.selector,onChange:ua,variant:"small",onBlurChange:!0,placeholder:"E.g. .element-class"})]})})]})},theme$1I=withTheme(scheme$I),ScrollToElement$1=dt$1(ScrollToElement).withConfig({displayName:"ScrollToElement",componentId:"sc-q44onk-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{&:first-of-type{width:345px;margin-right:10px;}}",""],SwitchBox$1,DependencyControls$2,Control$2,theme$1I.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),defaultColors$11={color:"#FFF"},colors$11={dark:defaultColors$11},defaultSizing$Q={},sizes$11={default:defaultSizing$Q},scheme$H=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$11,sizes:sizes$11},Symbol.toStringTag,{value:"Module"})),DependencyControls$1=dt$1.div.withConfig({displayName:"WaitForHover__DependencyControls",componentId:"sc-72d4wx-0"})([""]),Control$1=dt$1.div.withConfig({displayName:"WaitForHover__Control",componentId:"sc-72d4wx-1"})([""]),WaitForHover=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{triggers:oa},aa]=useDisplayRules(),{waitForHover:{enable:sa,params:la}}=oa,ca=reactExports.useCallback(pa=>{aa({type:"updateTriggers",payload:{type:"waitForHover",value:{enable:pa}}})},[aa]),ua=reactExports.useCallback(pa=>{aa({type:"updateTriggers",payload:{type:"waitForHover",value:{params:{selector:pa||""}}}})},[aa]),da=reactExports.useCallback(pa=>{aa({type:"updateTriggers",payload:{type:"waitForHover",value:{params:{time:pa}}}})},[aa]);return jsxRuntimeExports.jsxs(BaseControl$1,{className:ea,description:ra("Enable this trigger if you want to set the content display after a visitor hovers over an element and waits for a specified number of seconds."),...na,children:[jsxRuntimeExports.jsx(SwitchBox$1,{value:sa,id:"waitForHover",onChange:ca,children:ra("Wait For Hover")}),sa&&jsxRuntimeExports.jsxs(DependencyControls$1,{children:[jsxRuntimeExports.jsxs(Control$1,{children:[jsxRuntimeExports.jsx(Label$6,{tooltip:{content:ra("You can set any CSS selector targeting single or multiple elements on the page."),options:{place:"top",id:"workspace"}},children:ra("CSS Selector")}),jsxRuntimeExports.jsx(Input$2,{value:la?.selector,variant:"small",onBlurChange:!0,placeholder:"E.g. .element-class",onChange:ua})]}),jsxRuntimeExports.jsxs(Control$1,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Duration")}),jsxRuntimeExports.jsx(Number$2,{value:la?.time,units:"s",onChange:da})]})]})]})},theme$1H=withTheme(scheme$H),WaitForHover$1=dt$1(WaitForHover).withConfig({displayName:"WaitForHover",componentId:"sc-72d4wx-2"})(["","{label{font-weight:600;}}","{display:flex;margin-top:10px;}","{&:first-of-type{width:345px;margin-right:10px;}&:last-of-type{width:72px;}}",""],SwitchBox$1,DependencyControls$1,Control$1,theme$1H.colors(ea=>lt$1([""," label{color:",";}"],SwitchBox$1,ea.color))),Triggers=ea=>{const{className:na}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Click$1,{}),jsxRuntimeExports.jsx(WaitForHover$1,{tier:Tiers.PRO,content:"triggers",term:"hover"}),jsxRuntimeExports.jsx(ScrollPercentage$1,{tier:Tiers.PRO,content:"triggers",term:"scrollPercentage"}),jsxRuntimeExports.jsx(ScrollToElement$1,{tier:Tiers.PRO,content:"triggers",term:"scrollTo"}),jsxRuntimeExports.jsx(SpendTime$1,{}),jsxRuntimeExports.jsx(InactiveTime$1,{tier:Tiers.PRO,content:"triggers",term:"inactiveTime"}),jsxRuntimeExports.jsx(ExitIntent$1,{tier:Tiers.PRO,content:"triggers",term:"exitIntent"})]})},Triggers$1=dt$1(Triggers).withConfig({displayName:"Triggers",componentId:"sc-7xheyt-0"})([""]),checkBoxColor={checked:{background:"#4980F5",border:"#4980F5",iconColor:"#FFF",disabled:{background:"#444444",border:"#444444",iconColor:"#6a6a6a"}},unChecked:{background:"transparent",border:"#C4C4C4",disabled:{background:"transparent",border:"#6A6A6A"}},hover:{border:"#FFF"},indeterminate:{background:"#444444",border:"#444444"}},CheckBoxColors={dark:checkBoxColor,light:{checked:{background:"#4980F5",border:"#4980F5",iconColor:"#FFF",disabled:{background:"#444444",border:"#444444",iconColor:"#6a6a6a"}},unChecked:{background:"white",border:"#BDBDBD",disabled:{background:"white",border:"#C8C8C8"}},hover:{border:"#4F4F4F"},indeterminate:{background:"#444444",border:"#444444"}}},CheckBoxSize={width:"15px",height:"15px",roundBorder:"3px",border:"1px"},CheckBoxSizes={default:CheckBoxSize},checkBox={colors:CheckBoxColors,sizes:CheckBoxSizes},SvgChecked=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9.192,height:7.071,viewBox:"0 0 9.192 7.071",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-108.318 -604.94)"},reactExports.createElement("path",{className:"a",d:"M1,0H1A1,1,0,0,1,2,1V3A0,0,0,0,1,2,3H0A0,0,0,0,1,0,3V1A1,1,0,0,1,1,0Z",transform:"translate(108.318 608.475) rotate(-45)"}),reactExports.createElement("path",{className:"a",d:"M0,0H7A1,1,0,0,1,8,1V1A1,1,0,0,1,7,2H1A1,1,0,0,1,0,1V0A0,0,0,0,1,0,0Z",transform:"translate(110.439 610.596) rotate(-45)"}))),SvgIndeterminate=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:3,viewBox:"0 0 9 3",...ea},reactExports.createElement("defs",null),reactExports.createElement("g",{transform:"translate(-108 -608)"},reactExports.createElement("rect",{className:"a",width:9,height:3,rx:1,transform:"translate(108 608)"}))),InputCheckbox=dt$1.input.withConfig({displayName:"Checkbox__InputCheckbox",componentId:"sc-uugjjf-0"})([""]),CheckboxContainer=dt$1.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-uugjjf-1"})([""]),Checkbox=ea=>{const{className:na,children:ra,...oa}=ea,{inputValue:aa,indeterminate:sa,...la}=useCheckboxProps(oa),ca=reactExports.useMemo(nanoid,[]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsxs(CheckboxContainer,{children:[jsxRuntimeExports.jsx(InputCheckbox,{id:ca,...la}),aa===!0&&jsxRuntimeExports.jsx(SvgChecked,{}),sa&&jsxRuntimeExports.jsx(SvgIndeterminate,{})]}),jsxRuntimeExports.jsx("label",{htmlFor:ca,children:ra})]})},theme$1G=withTheme(checkBox),Checkbox$1=dt$1(Checkbox).withConfig({displayName:"Checkbox",componentId:"sc-uugjjf-2"})(["position:relative;display:flex;align-items:center;cursor:",";> label,","{cursor:",";}","{display:block;-webkit-appearance:none;appearance:none;background-color:transparent;margin:0;}","{position:relative;margin-right:8px;svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;}}"," ",""],ea=>ea.disabled?"initial":"pointer",InputCheckbox,ea=>ea.disabled?"initial":"pointer",InputCheckbox,CheckboxContainer,theme$1G.colors(ea=>lt$1(["","{background-color:",";box-shadow:0 0 0 1px ",";&:disabled{background-color:",";box-shadow:0 0 0 1px ",";}&:hover{box-shadow:0 0 0 1px ",";}&:checked{background-color:",";box-shadow:0 0 0 1px ",";+ svg{fill:",";path{fill:",";}}&:disabled{background-color:",";box-shadow:0 0 0 1px ",";+ svg{fill:",";path{fill:",";}}}}&:indeterminate{background-color:",";box-shadow:0 0 0 1px ",";+ svg{fill:#fff;}}}"],InputCheckbox,ea.unChecked.background,ea.unChecked.border,ea.unChecked.disabled.background,ea.unChecked.disabled.border,ea.hover.border,ea.checked.background,ea.checked.border,ea.checked.iconColor,ea.checked.iconColor,ea.checked.disabled.background,ea.checked.disabled.border,ea.checked.disabled.iconColor,ea.checked.disabled.iconColor,ea.indeterminate.background,ea.indeterminate.border)),theme$1G.sizes((ea,{round:na})=>lt$1(["","{width:",";height:",";border-radius:",";}"],InputCheckbox,ea.width,ea.height,na?ea.roundBorder:"50%"))),NeverShow=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{afterClose:{displayAgain:oa}},aa]=useDisplayRules(),sa=oa==="never",la=reactExports.useCallback(ca=>{ca&&aa({type:"updateAfterClose",payload:{displayAgain:"never"}})},[aa]);return jsxRuntimeExports.jsx(BaseControl$1,{className:ea,...na,children:jsxRuntimeExports.jsx(Checkbox$1,{value:sa,onChange:la,children:ra("Never show again to the user")})})},NeverShow$1=dt$1(NeverShow).withConfig({displayName:"NeverShow",componentId:"sc-13e1zun-0"})([""]),AlwaysShow=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{afterClose:{displayAgain:oa}},aa]=useDisplayRules(),sa=oa==="always",la=reactExports.useCallback(ca=>{ca&&aa({type:"updateAfterClose",payload:{displayAgain:"always"}})},[aa]);return jsxRuntimeExports.jsx(BaseControl$1,{className:ea,...na,children:jsxRuntimeExports.jsx(Checkbox$1,{value:sa,onChange:la,children:ra("Show again on every visit")})})},AlwaysShow$1=dt$1(AlwaysShow).withConfig({displayName:"AlwaysShow",componentId:"sc-b35fvx-0"})([""]),AfterReturnShow=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{afterClose:{displayAgain:oa}},aa]=useDisplayRules(),sa=oa==="return",la=reactExports.useCallback(ca=>{ca&&aa({type:"updateAfterClose",payload:{displayAgain:"return"}})},[aa]);return jsxRuntimeExports.jsx(BaseControl$1,{className:ea,...na,children:jsxRuntimeExports.jsx(Checkbox$1,{value:sa,onChange:la,children:ra("Show again after return")})})},AfterReturnShow$1=dt$1(AfterReturnShow).withConfig({displayName:"AfterReturnShow",componentId:"sc-cs79gn-0"})([""]),DependencyControls=dt$1.div.withConfig({displayName:"AfterPeriod__DependencyControls",componentId:"sc-1ah1ims-0"})([""]),Control=dt$1.div.withConfig({displayName:"AfterPeriod__Control",componentId:"sc-1ah1ims-1"})([""]),options=[{value:"m",label:i18next.t("Minutes")},{value:"h",label:i18next.t("Hours")},{value:"d",label:i18next.t("Days")}],AfterPeriod=({className:ea,...na})=>{const{t:ra}=useTranslation(),[{afterClose:{displayAgain:oa,displayAgainPeriodType:aa="min",displayAgainPeriod:sa=0}},la]=useDisplayRules(),ca=oa==="afterPeriod",ua=reactExports.useCallback(ha=>{ha&&la({type:"updateAfterClose",payload:{displayAgain:"afterPeriod"}})},[la]),da=reactExports.useCallback(ha=>{la({type:"updateAfterClose",payload:{displayAgainPeriodType:ha}})},[la]),pa=reactExports.useCallback(ha=>{la({type:"updateAfterClose",payload:{displayAgainPeriod:ha}})},[la]);return jsxRuntimeExports.jsxs(BaseControl$1,{className:ea,...na,children:[jsxRuntimeExports.jsx(Checkbox$1,{value:ca,onChange:ua,children:ra("Show again after a period")}),ca&&jsxRuntimeExports.jsxs(DependencyControls,{children:[jsxRuntimeExports.jsxs(Control,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Period type")}),jsxRuntimeExports.jsx(Select$1,{value:aa,options,onChange:da})]}),jsxRuntimeExports.jsxs(Control,{children:[jsxRuntimeExports.jsx(Label$6,{children:ra("Period amount")}),jsxRuntimeExports.jsx(Number$2,{value:sa,onChange:pa})]})]})]})},AfterPeriod$1=dt$1(AfterPeriod).withConfig({displayName:"AfterPeriod",componentId:"sc-1ah1ims-2"})(["","{margin-top:10px;display:flex;gap:10px;","{width:98px;}","{width:92px;}}"],DependencyControls,Select$1,Number$2),AfterClose=ea=>{const{className:na}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(NeverShow$1,{}),jsxRuntimeExports.jsx(AlwaysShow$1,{tier:Tiers.PRO,content:"after_close",term:"always"}),jsxRuntimeExports.jsx(AfterReturnShow$1,{tier:Tiers.PRO,content:"after_close",term:"return"}),jsxRuntimeExports.jsx(AfterPeriod$1,{tier:Tiers.PRO,content:"after_close",term:"period"})]})},AfterClose$1=dt$1(AfterClose).withConfig({displayName:"AfterClose",componentId:"sc-1v1bxo8-0"})(["","{label{color:#fff;font-size:12px;line-height:16px;font-weight:600;}}"],Checkbox$1),displayRulesPages=[{value:"displayConditions",label:i18next.t("Display Conditions"),description:i18next.t("Specify single or multiple conditions to control under what conditions the content is shown to visitors."),icon:SvgDisplayConditions,content:DisplayConditions$1},{value:"visibilityScheduling",label:i18next.t("Visibility Scheduling"),description:i18next.t("Schedule your content to be displayed to the visitors within a specific date and time range."),icon:SvgSchedule,content:VisibilityScheduling$1},{value:"triggers",label:i18next.t("Triggers"),description:i18next.t("Define when your content should appear to visitors based on their behavior."),icon:SvgTriggers,content:Triggers$1},{value:"afterClose",label:i18next.t("After Close"),description:i18next.t("Define when the content should display again after a visitor closes it."),icon:SvgAfterClose,content:AfterClose$1}],defaultColors$10={title:"#FFF",pageItem:{icon:"#AAAAAA",arrowIcon:"#6A6A6A",color:"#AAAAAA",selected:{background:"#212121",color:"#FFF",icon:"#FFF"}},pageTitle:{color:"#AAA"},pageDesc:"#AAA"},colors$10={dark:defaultColors$10},defaultSizing$P={title:{fontSize:"25px",fontWeight:"700",lineHeight:"34px"},pageItem:{fontSize:"15px",fontWeight:"400",lineHeight:"19px",selected:{fontWeight:"600"}},pageTitle:{fontSize:"22px",fontWeight:"600",lineHeight:"34px"},pageDesc:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"}},sizes$10={default:defaultSizing$P},scheme$G=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$10,sizes:sizes$10},Symbol.toStringTag,{value:"Module"})),SvgArrowRight$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:9,viewBox:"0 0 15 9",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4649 2.11871C9.17201 1.82582 9.17201 1.35094 9.4649 1.05805C9.7578 0.765153 10.2327 0.765153 10.5256 1.05805L13.0004 3.53292L11.9398 4.59359L9.4649 2.11871Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7017 7.94477C10.4088 8.23766 9.93395 8.23766 9.64106 7.94477C9.34817 7.65188 9.34817 7.177 9.64106 6.88411L12.9998 3.52535L14.0605 4.58601L10.7017 7.94477Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.35205C0.335786 5.35205 0 5.01626 0 4.60205C0 4.18784 0.335786 3.85205 0.75 3.85205L12.25 3.85205C12.6642 3.85205 13 4.18784 13 4.60205C13 5.01626 12.6642 5.35205 12.25 5.35205L0.75 5.35205Z"})),ArrowRightIcon=dt$1(Icon$4).withConfig({displayName:"PageItem__ArrowRightIcon",componentId:"sc-1ut81jx-0"})([""]),PageIcon=dt$1(Icon$4).withConfig({displayName:"PageItem__PageIcon",componentId:"sc-1ut81jx-1"})([""]),PageItem=ea=>{const{label:na,icon:ra,selected:oa,...aa}=ea;return jsxRuntimeExports.jsxs(SimpleItem,{selected:oa,...aa,children:[ra&&jsxRuntimeExports.jsx(PageIcon,{shape:ra}),na&&jsxRuntimeExports.jsx(Label$6,{children:na}),oa&&jsxRuntimeExports.jsx(ArrowRightIcon,{shape:SvgArrowRight$1})]})},theme$1F=withTheme(scheme$G),PageItem$1=dt$1(PageItem).withConfig({displayName:"PageItem",componentId:"sc-1ut81jx-2"})(["display:flex;align-items:center;gap:7px;padding:15px 20px;border-radius:5px;cursor:pointer;","{cursor:inherit;margin:0;flex:1;}",";",""],Label$6,theme$1F.colors((ea,{selected:na})=>lt$1(["","{color:",";}"," svg{fill:",";}"," svg{fill:",";}",""],Label$6,ea.pageItem.color,PageIcon,ea.pageItem.icon,ArrowRightIcon,ea.pageItem.arrowIcon,na&&lt$1(["background-color:",";","{color:",";}"," svg{fill:",";}"],ea.pageItem.selected.background,Label$6,ea.pageItem.selected.color,PageIcon,ea.pageItem.selected.icon))),theme$1F.sizes((ea,{selected:na})=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}",""],Label$6,ea.pageItem.fontSize,ea.pageItem.fontWeight,ea.pageItem.lineHeight,na&&lt$1(["","{font-weight:",";}"],Label$6,ea.pageItem.selected.fontWeight)))),Context=React.createContext({pages:[],activePage:void 0,setActivePage:()=>{}}),useTabbedPages=()=>reactExports.useContext(Context),PagesList=ea=>{const{className:na}=ea,{pages:ra,activePage:oa,setActivePage:aa}=useTabbedPages(),sa=ca=>{aa(ca)},la=ca=>jsxRuntimeExports.jsx(PageItem$1,{...ca},ca.value);return jsxRuntimeExports.jsx(Choose,{className:na,value:oa,onChange:sa,children:ra.map(la)})},PagesList$1=dt$1(PagesList).withConfig({displayName:"PagesList",componentId:"sc-1afryrm-0"})([""]),Title$s=dt$1(Label$6).withConfig({displayName:"Sidebar__Title",componentId:"sc-qhktv9-0"})([""]),Sidebar=ea=>{const{className:na,title:ra}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[ra&&jsxRuntimeExports.jsx(Title$s,{children:ra}),jsxRuntimeExports.jsx(PagesList$1,{})]})},theme$1E=withTheme(scheme$G),Sidebar$1=dt$1(Sidebar).withConfig({displayName:"Sidebar",componentId:"sc-qhktv9-1"})(["width:275px;height:100%;padding:10px;","{margin-bottom:40px;margin-left:23px;}",";",""],Title$s,theme$1E.colors(ea=>lt$1(["","{color:",";}"],Title$s,ea.title)),theme$1E.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Title$s,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight))),PageTitle=dt$1(Label$6).withConfig({displayName:"Content__PageTitle",componentId:"sc-1d02qoq-0"})([""]),PageDescription=dt$1(Label$6).withConfig({displayName:"Content__PageDescription",componentId:"sc-1d02qoq-1"})([""]),ContentContainer=dt$1.div.withConfig({displayName:"Content__ContentContainer",componentId:"sc-1d02qoq-2"})([""]),FooterContainer=dt$1.div.withConfig({displayName:"Content__FooterContainer",componentId:"sc-1d02qoq-3"})([""]),Content$9=ea=>{const{className:na,footer:ra}=ea,{pages:oa,activePage:aa}=useTabbedPages(),{label:sa,description:la,content:ca}=oa.find(ua=>ua.value===aa);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(PageTitle,{children:sa}),jsxRuntimeExports.jsx(PageDescription,{children:la}),jsxRuntimeExports.jsxs(ContentContainer,{id:"depicter-display-rules-content-container",children:[jsxRuntimeExports.jsx(ca,{}),ra&&jsxRuntimeExports.jsx(FooterContainer,{children:jsxRuntimeExports.jsx(ra,{})})]})]})},theme$1D=withTheme(scheme$G),Content$a=dt$1(Content$9).withConfig({displayName:"Content",componentId:"sc-1d02qoq-4"})(["padding:10px;display:flex;flex-direction:column;user-select:none;","{margin-bottom:10px;}","{margin-bottom:15px;}","{flex:1;margin-right:-15px;}",";",";"],PageTitle,PageDescription,ContentContainer,theme$1D.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],PageTitle,ea.pageTitle.color,PageDescription,ea.pageDesc)),theme$1D.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],PageTitle,ea.pageTitle.fontSize,ea.pageTitle.fontWeight,ea.pageTitle.lineHeight,PageDescription,ea.pageDesc.fontSize,ea.pageDesc.fontWeight,ea.pageDesc.lineHeight))),Container$x=dt$1.div.withConfig({displayName:"TabbedPages__Container",componentId:"sc-hgb9tx-0"})([""]),TabbedPages=ea=>{const{className:na,pages:ra,defaultPage:oa,footer:aa,title:sa,loading:la=!1}=ea,[ca,ua]=reactExports.useState(oa||ra[0].value);return jsxRuntimeExports.jsx(Context.Provider,{value:{pages:ra,activePage:ca,setActivePage:ua},children:jsxRuntimeExports.jsx(LoadingSplash$1,{className:na,visible:la,children:jsxRuntimeExports.jsxs(Container$x,{children:[jsxRuntimeExports.jsx(Sidebar$1,{title:sa}),jsxRuntimeExports.jsx(Content$a,{footer:aa})]})})})},TabbedPages$1=dt$1(TabbedPages).withConfig({displayName:"TabbedPages",componentId:"sc-hgb9tx-1"})(["","{flex:1;display:flex;flex-direction:row;width:100%;height:100%;user-select:none;}","{flex:1;}"],Container$x,Content$a),DisplayRules=ea=>{const{className:na,documentId:ra,publishBtn:oa,publishStatus:aa,disablePublish:sa,afterSave:la,onClose:ca}=ea,{t:ua}=useTranslation(),da=()=>jsxRuntimeExports.jsx(Footer$1,{documentId:ra,publishBtn:oa,publishStatus:aa,disablePublish:sa,afterSave:la,onClose:ca});return jsxRuntimeExports.jsx(TabbedPages$1,{className:na,pages:displayRulesPages,defaultPage:"displayConditions",footer:da,title:ua("Display Rules"),...ea})},DisplayRules$1=dt$1(DisplayRules).withConfig({displayName:"displayRules",componentId:"sc-f9nz7z-0"})([""]),defaultColors$$={background:"#323232"},colors$$={dark:defaultColors$$},defaultSizes$c={},sizes$$={default:defaultSizes$c},scheme$F=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$$,sizes:sizes$$},Symbol.toStringTag,{value:"Module"})),Container$w=dt$1.div.withConfig({displayName:"DisplayRulesSection__Container",componentId:"sc-gut55q-0"})([""]),DisplayRulesSection=ea=>{const{className:na}=ea,ra=useSelector(getDocumentId),oa=useSelector(getDisplayRulesConfig),{navigate:aa}=useNavigation(),[sa,{isLoading:la,allChangesPublished:ca}]=useDocumentPublish(),ua=()=>{aa("/sections")},da=reactExports.useMemo(()=>oa?.publishBtn?{...oa,publishStatus:la?"publishing":"published",disablePublish:ca,afterSave:()=>sa(!1)}:oa,[oa,la,ca,sa]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(Scrollbars,{children:jsxRuntimeExports.jsx(Container$w,{children:jsxRuntimeExports.jsx(DisplayRules$1,{...da||{},documentId:ra,onClose:ua})})})})},theme$1C=withTheme(scheme$F),DisplayRulesSection$1=dt$1(DisplayRulesSection).withConfig({displayName:"DisplayRulesSection",componentId:"sc-gut55q-1"})(["display:flex;flex:1;overflow:hidden;","{width:1110px;margin:80px auto 0 auto;}",";"],Container$w,theme$1C.colors(ea=>lt$1(["background-color:",";"],ea.background))),MailChimpLogo="data:image/svg+xml,%3csvg%20width='51'%20height='56'%20viewBox='0%200%2051%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_10123_26557)'%3e%3cpath%20d='M15.5259%2036.6094C15.4275%2036.8375%2015.0387%2037.1496%2014.4824%2037.1285C13.9102%2037.0843%2013.2734%2036.6689%2013.1874%2035.6342C13.1448%2035.1231%2013.3378%2034.501%2013.4566%2034.1756C13.6865%2033.5465%2013.4792%2032.8871%2012.9407%2032.5349C12.6244%2032.3279%2012.2464%2032.2576%2011.8768%2032.3366C11.5138%2032.4144%2011.2047%2032.6278%2011.0061%2032.9377C10.8415%2033.1946%2010.741%2033.5153%2010.687%2033.6874C10.6726%2033.7334%2010.6611%2033.7699%2010.6523%2033.7933C10.5312%2034.1189%2010.3379%2034.2141%2010.207%2034.1964C10.1451%2034.188%2010.06%2034.1467%2010.0055%2033.9975C9.85679%2033.5901%209.97697%2032.437%2010.7456%2031.5896C11.2328%2031.0524%2011.9966%2030.7774%2012.7386%2030.8713C13.5116%2030.9695%2014.1543%2031.4366%2014.5484%2032.1864C15.0721%2033.1831%2014.6056%2034.2287%2014.3269%2034.8534C14.2967%2034.9212%2014.269%2034.9832%2014.2455%2035.0391C14.0707%2035.4539%2014.0616%2035.8159%2014.2198%2036.0588C14.3414%2036.2454%2014.5578%2036.3546%2014.8134%2036.3595C14.9326%2036.3616%2015.0414%2036.3363%2015.1375%2036.3138C15.2749%2036.2819%2015.417%2036.2488%2015.5034%2036.357C15.535%2036.3924%2015.5838%2036.4745%2015.5259%2036.6094ZM12.9052%2028.9833C12.4941%2028.9622%2012.1128%2028.9988%2011.7973%2029.0623C9.15851%2029.5942%207.66815%2031.8376%207.96138%2034.7524C8.22666%2037.3896%2010.8966%2039.6131%2013.3684%2039.6795C13.624%2039.6855%2013.8778%2039.6687%2014.1263%2039.6263C16.8009%2039.1706%2017.5011%2036.2683%2017.0603%2033.4176C16.5625%2030.1989%2014.3837%2029.0644%2012.9052%2028.9833Z'%20fill='white'/%3e%3cpath%20d='M48.4127%2041.7879C45.5342%2048.6813%2038.6644%2052.5186%2030.4807%2052.2757C22.8515%2052.0492%2016.3449%2048.0261%2013.4972%2041.4682C11.775%2041.4697%2010.0006%2040.7132%208.65085%2039.5182C7.22914%2038.2596%206.35199%2036.6306%206.181%2034.9312C6.04788%2033.6081%206.21082%2032.3778%206.62575%2031.3039L5.0264%2029.9501C-2.29151%2023.7753%2020.5971%20-1.64869%2027.9179%204.73211C27.9547%204.7644%2030.4081%207.16985%2030.4142%207.1759C30.4238%207.17099%2031.7678%206.60154%2031.7746%206.59871C38.1955%203.94168%2043.4058%205.22468%2043.4123%209.46425C43.4155%2011.6687%2042.0099%2014.2385%2039.7578%2016.5714C40.5739%2017.3282%2041.2276%2018.5111%2041.6028%2019.8631C41.9177%2020.862%2041.9734%2021.8759%2042.002%2022.5254C42.0413%2023.4239%2042.0844%2025.5171%2042.0887%2025.5543C42.146%2025.5717%2042.7959%2025.75%2042.9931%2025.8053C44.7166%2026.2888%2045.9428%2026.9331%2046.5425%2027.562C47.142%2028.1911%2047.4395%2028.7997%2047.5474%2029.5138C47.6485%2030.0897%2047.6349%2031.1069%2046.8748%2032.2443C46.8748%2032.2443%2047.0709%2032.6717%2047.2605%2033.2789C47.4501%2033.8861%2047.5879%2034.39%2047.609%2034.4648C48.3059%2034.4648%2049.4%2035.2662%2049.4%2037.2001C49.4%2039.1243%2048.6009%2041.304%2048.4127%2041.7879ZM50.0925%2034.0267C49.7818%2033.6457%2049.4072%2033.3382%2049.0021%2033.121C48.9685%2033.0094%2048.9324%2032.8914%2048.8944%2032.7695C48.8506%2032.6292%2048.8065%2032.4972%2048.7638%2032.3754C49.3958%2031.0406%2049.3461%2029.8796%2049.2369%2029.239C49.0692%2028.1558%2048.6066%2027.2477%2047.7818%2026.3823C46.7757%2025.3269%2045.1012%2024.6498%2043.7676%2024.2492C43.7515%2023.6157%2043.7315%2022.8977%2043.7118%2022.4504C43.6858%2021.8555%2043.6315%2020.6227%2043.2443%2019.3781C42.9575%2018.3551%2042.5351%2017.4157%2042.0118%2016.6215C44.0316%2014.1981%2045.1271%2011.6948%2045.1239%209.46142C45.1182%205.84266%2042.2991%203.50407%2037.9419%203.50407C35.8729%203.50407%2033.5138%204.02781%2031.1157%205.02013C31.1118%205.02183%2030.98%205.07736%2030.7971%205.15461C30.0681%204.43992%2029.1071%203.49897%2029.0428%203.44325C27.9462%202.48738%2026.585%202.00255%2024.9969%202.00255C23.1063%202.00255%2020.9341%202.70288%2018.5406%204.08371C16.4763%205.27473%2014.2578%206.97777%2012.1246%209.00908C7.77548%2013.1506%204.26915%2018.109%202.74519%2022.2734C2.09092%2024.0611%201.80986%2025.6835%201.90982%2027.0951C2.03105%2028.8091%202.72695%2030.2483%203.92016%2031.2552L4.66244%2031.8834C4.42721%2032.9016%204.36505%2033.9796%204.47801%2035.1023C4.69219%2037.2306%205.77096%2039.2537%207.51589%2040.7986C8.91878%2042.0406%2010.6389%2042.8478%2012.3699%2043.0966C13.9234%2046.1954%2016.2963%2048.8075%2019.2817%2050.6922C22.5025%2052.7257%2026.3575%2053.8645%2030.4299%2053.9853C30.6896%2053.9931%2030.9523%2053.9971%2031.2108%2053.9971C31.2112%2053.9971%2031.2112%2053.9971%2031.2118%2053.9971C35.4161%2053.9971%2039.3529%2052.964%2042.5962%2051.0099C45.9354%2048.9978%2048.493%2046.0367%2049.9921%2042.4467C49.9976%2042.4336%2050.0027%2042.4208%2050.0078%2042.4078C50.2667%2041.7424%2051.1116%2039.4004%2051.1116%2037.2001C51.1116%2035.6098%2050.5572%2034.5965%2050.0925%2034.0267Z'%20fill='white'/%3e%3cpath%20d='M28.1059%2027.6852C27.9923%2027.6694%2027.9439%2027.6208%2027.9298%2027.5564C27.8857%2027.3572%2028.1927%2027.0289%2028.5162%2026.7921C29.4962%2026.0881%2030.7667%2025.9359%2031.832%2026.3941C32.3531%2026.6158%2032.8441%2027.0108%2033.0827%2027.4C33.1981%2027.5887%2033.2206%2027.7347%2033.1458%2027.8114C33.0294%2027.9343%2032.7323%2027.7936%2032.2486%2027.5817C31.765%2027.3696%2031.1369%2027.1328%2030.3788%2027.179C29.3049%2027.2448%2028.3728%2027.7158%2028.1059%2027.6852ZM32.9447%2028.8781C32.8753%2028.9867%2032.7256%2028.9669%2032.4091%2028.9316C31.8358%2028.8662%2031.2577%2028.8283%2030.3811%2029.1418C30.3811%2029.1418%2030.0623%2029.2697%2029.9201%2029.2697C29.8791%2029.2697%2029.8451%2029.2555%2029.8166%2029.2302C29.7954%2029.2124%2029.7687%2029.1771%2029.7684%2029.1155C29.7672%2028.9862%2029.885%2028.8026%2030.0753%2028.6362C30.2983%2028.4432%2030.6459%2028.2358%2031.2756%2028.1362C32.1431%2028.0335%2032.7791%2028.4377%2032.9267%2028.677C32.9902%2028.7797%2032.9653%2028.8472%2032.9447%2028.8781ZM35.595%2029.2281C35.7483%2028.9165%2036.2193%2028.8341%2036.647%2029.044C37.0747%2029.254%2037.2972%2029.677%2037.1441%2029.9887C36.9908%2030.3003%2036.5196%2030.3829%2036.0921%2030.1728C35.6644%2029.9628%2035.4418%2029.5397%2035.595%2029.2281ZM37.863%2023.0141C38.5391%2022.9051%2038.8662%2023.6047%2039.1078%2024.7608C39.2705%2025.5383%2039.2393%2026.2525%2039.0587%2026.6668C38.7462%2026.6228%2038.4064%2026.6245%2038.0517%2026.6668C37.782%2026.3225%2037.5398%2025.7667%2037.4038%2025.1164C37.1622%2023.9603%2037.1872%2023.1229%2037.863%2023.0141ZM39.4563%2028.6445C39.4482%2029.1206%2039.16%2029.502%2038.8126%2029.4961C38.465%2029.4903%2038.1898%2029.0993%2038.1979%2028.6233C38.2061%2028.1472%2038.4943%2027.7659%2038.8417%2027.7717C39.1893%2027.7776%2039.4644%2028.1684%2039.4563%2028.6445ZM47.2633%2036.0408C46.8946%2035.814%2046.4533%2035.893%2046.4533%2035.893C46.4533%2035.893%2046.252%2034.5159%2045.682%2033.2646C43.9921%2034.5975%2041.8162%2035.5343%2040.1596%2036.0093C38.2478%2036.5578%2035.6612%2036.979%2032.775%2036.8071C31.1736%2036.6781%2030.1142%2036.2106%2029.7158%2037.5048C33.3735%2038.8429%2037.2456%2038.2701%2037.2456%2038.2701C37.3206%2038.2626%2037.3875%2038.3169%2037.3951%2038.3919C37.4013%2038.4527%2037.3641%2038.5141%2037.3106%2038.5368C37.3106%2038.5368%2034.3363%2039.9169%2029.6126%2038.4569C29.744%2039.5641%2030.8237%2040.0604%2031.3397%2040.261C31.9889%2040.5135%2032.7001%2040.6302%2032.7001%2040.6302C38.5531%2041.6363%2044.0252%2038.292%2045.2573%2037.4496C45.3495%2037.3865%2045.4108%2037.4479%2045.3367%2037.5598C45.2656%2037.6672%2045.2611%2037.6734%2045.2159%2037.7316C43.7082%2039.6752%2039.6544%2041.926%2034.3805%2041.9253C32.0804%2041.925%2029.7814%2041.115%2028.9373%2039.8708C27.6277%2037.9401%2028.8725%2035.1218%2031.0547%2035.4157C31.0571%2035.4159%2031.8011%2035.5001%2032.0103%2035.5235C34.7383%2035.827%2038.6865%2035.4448%2041.9411%2033.9353C44.9184%2032.5543%2046.0431%2031.0345%2045.8742%2029.8042C45.8284%2029.4727%2045.6801%2029.1252%2045.361%2028.798C44.8262%2028.2747%2043.9776%2027.8673%2042.5463%2027.4658C42.0734%2027.3332%2041.7525%2027.2484%2041.407%2027.1347C40.7924%2026.9324%2040.4886%2026.7696%2040.4198%2025.6148C40.3898%2025.1096%2040.3017%2023.3503%2040.2698%2022.6231C40.2138%2021.3492%2040.0604%2019.6078%2038.9791%2018.8888C38.6975%2018.7014%2038.3839%2018.6109%2038.0547%2018.5936C37.7322%2018.5783%2037.5707%2018.6361%2037.506%2018.6472C36.8887%2018.7517%2036.524%2019.0801%2036.0689%2019.459C34.7203%2020.582%2033.5814%2020.766%2032.3151%2020.7114C31.5586%2020.6796%2030.7566%2020.5618%2029.8375%2020.5076C29.6587%2020.497%2029.4792%2020.4859%2029.3%2020.4766C27.1791%2020.3682%2024.9043%2022.1989%2024.5263%2024.7981C24.0001%2028.4163%2026.6221%2030.286%2027.379%2031.3833C27.4758%2031.5146%2027.5875%2031.6997%2027.5875%2031.8751C27.5875%2032.085%2027.4514%2032.2517%2027.318%2032.3932C27.3178%2032.3936%2027.3182%2032.3941%2027.318%2032.3943C25.1543%2034.6177%2024.4622%2038.1501%2025.2775%2041.0944C25.3794%2041.4622%2025.5085%2041.8138%2025.6612%2042.1497C27.5744%2046.6176%2033.5094%2048.6982%2039.3078%2046.8057C40.0845%2046.5523%2040.8201%2046.2385%2041.5107%2045.8759C42.8112%2045.2392%2043.9479%2044.3636%2044.884%2043.3565C46.4221%2041.75%2047.3374%2040.0037%2047.6927%2037.8521C47.8672%2036.7006%2047.6117%2036.2552%2047.2633%2036.0408Z'%20fill='white'/%3e%3cpath%20d='M35.4733%2014.5707C35.5661%2014.5921%2035.6253%2014.4315%2035.5421%2014.3851C34.3168%2013.6982%2032.4369%2013.2318%2031.1031%2013.2224C31.0373%2013.2218%2031.0005%2013.1459%2031.0398%2013.0932C31.2703%2012.7833%2031.5864%2012.4769%2031.8751%2012.2556C31.94%2012.2057%2031.9007%2012.1013%2031.819%2012.1062C29.9198%2012.2231%2027.7544%2013.1315%2026.5096%2013.9794C26.4482%2014.0213%2026.3688%2013.9665%2026.3839%2013.8938C26.4809%2013.4266%2026.7869%2012.8112%2026.9456%2012.5236C26.9833%2012.4556%2026.9097%2012.3806%2026.8406%2012.4159C24.8398%2013.4386%2022.6062%2015.2603%2020.7918%2017.3556C20.7277%2017.4297%2020.823%2017.5341%2020.9022%2017.4765C22.4692%2016.3376%2024.6174%2015.2782%2027.4318%2014.5923C30.5843%2013.8239%2033.6194%2014.146%2035.4733%2014.5707Z'%20fill='white'/%3e%3cpath%20d='M28.6994%208.07525C28.6994%208.07525%2026.7071%205.76669%2026.1057%205.59652C22.4053%204.5972%2014.412%2010.106%209.30844%2017.3841C7.24339%2020.329%204.28724%2025.5437%205.70075%2028.226C5.87492%2028.5586%206.86067%2029.4125%207.38994%2029.8535C8.27529%2028.5683%209.72313%2027.6379%2011.3659%2027.3187C13.4574%2021.71%2016.9488%2016.5412%2021.5705%2012.9847C25.0007%2010.126%2028.6994%208.07525%2028.6994%208.07525Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_10123_26557'%3e%3crect%20width='51'%20height='56'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",HubSpotLogo="data:image/svg+xml,%3csvg%20width='43'%20height='47'%20viewBox='0%200%2043%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.7636%2022.3257C39.7225%2020.5346%2038.2582%2019.0987%2036.4275%2018.0178C35.0594%2017.2214%2033.6408%2016.7159%2032.0422%2016.4988V10.8078C33.6408%2010.129%2034.6329%208.62666%2034.6329%206.87396C34.6329%204.48502%2032.7172%202.54912%2030.3301%202.54912C27.9412%202.54912%2025.9919%204.48502%2025.9919%206.87396C25.9919%208.62666%2026.9267%2010.129%2028.5253%2010.8078V16.5013C27.2465%2016.6861%2025.9203%2017.0848%2024.7092%2017.6974C22.2355%2015.8187%2014.1242%209.65552%209.37928%206.0558C9.49182%205.65008%209.57847%205.23188%209.57847%204.79067C9.57847%202.14468%207.43571%200%204.78875%200C2.1418%200%200%202.14468%200%204.79067C0%207.43635%202.14404%209.58166%204.791%209.58166C5.69388%209.58166%206.52898%209.31757%207.24963%208.8834L8.25099%209.64305L22.0104%2019.5569C21.2831%2020.2248%2020.6056%2020.9844%2020.0637%2021.8368C18.9654%2023.5745%2018.2943%2025.4864%2018.2943%2027.5719V28.0071C18.2943%2029.4711%2018.5725%2030.8532%2019.0463%2032.1516C19.4635%2033.2853%2020.0736%2034.3161%2020.8291%2035.2481L16.2625%2039.8258C15.6007%2039.5795%2014.882%2039.5289%2014.1922%2039.6802C13.5024%2039.8315%2012.8708%2040.1782%2012.3728%2040.6788C12.028%2041.0219%2011.7547%2041.43%2011.5688%2041.8795C11.3829%2042.329%2011.288%2042.8109%2011.2896%2043.2973C11.2899%2044.2862%2011.6752%2045.2156%2012.3747%2045.9149C12.7176%2046.2599%2013.1256%2046.5335%2013.5749%2046.7198C14.0243%2046.906%2014.5061%2047.0013%2014.9926%2047C15.4792%2047.0012%2015.9612%2046.906%2016.4107%2046.7197C16.8602%2046.5334%2017.2683%2046.2599%2017.6114%2045.9149C17.956%2045.5718%2018.2292%2045.1638%2018.4152%2044.7145C18.6012%2044.2653%2018.6964%2043.7836%2018.6953%2043.2973C18.6953%2042.9146%2018.6361%2042.5412%2018.5248%2042.1863L23.2449%2037.4656C23.892%2037.9126%2024.5909%2038.2889%2025.3422%2038.6134C26.8241%2039.2542%2028.4598%2039.6445%2030.2499%2039.6445H30.5779C32.557%2039.6445%2034.4238%2039.1797%2036.1788%2038.2288C38.028%2037.2239%2039.4754%2035.8498%2040.5688%2034.0955C41.668%2032.3364%2042.2733%2030.3928%2042.2733%2028.2545V28.1478C42.2733%2026.0443%2041.7863%2024.1036%2040.7636%2022.3257ZM34.9964%2032.2283C33.7153%2033.652%2032.2427%2034.529%2030.5779%2034.529H30.3036C29.3528%2034.529%2028.4227%2034.2662%2027.5121%2033.7882C26.4858%2033.262%2025.7057%2032.5113%2025.0673%2031.5608C24.4074%2030.6278%2024.0493%2029.6092%2024.0493%2028.5292V28.2011C24.0493%2027.1394%2024.2529%2026.1326%2024.7664%2025.1817C25.3154%2024.1423%2026.0568%2023.3341%2027.0428%2022.6914C28.0109%2022.0533%2029.0449%2021.7403%2030.1965%2021.7403H30.3036C31.3478%2021.7403%2032.3364%2021.9462%2033.2693%2022.4235C34.2199%2022.9325%2034.9964%2023.6279%2035.5985%2024.5426C36.1832%2025.4576%2036.5311%2026.4446%2036.643%2027.5198C36.6606%2027.7433%2036.6695%2027.9722%2036.6695%2028.1909C36.6695%2029.6501%2036.1119%2031.0016%2034.9964%2032.2283Z'%20fill='%23F8761F'/%3e%3c/svg%3e",ZapierLogo="data:image/svg+xml,%3csvg%20width='47'%20height='47'%20viewBox='0%200%2047%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29.3755%2023.5111C29.3757%2025.2055%2029.0697%2026.8861%2028.4725%2028.4717C26.8863%2029.069%2025.2053%2029.3752%2023.5103%2029.3756H23.4897C21.7947%2029.3758%2020.1137%2029.0698%2018.5275%2028.4725C17.9293%2026.8865%2017.6228%2025.2054%2017.623%2023.5103V23.4882C17.623%2021.7418%2017.9434%2020.0693%2018.5238%2018.526C20.1103%2017.9278%2021.7919%2017.6219%2023.4874%2017.623H23.5066C25.2537%2017.623%2026.9255%2017.9434%2028.4688%2018.526C29.0667%2020.1121%2029.3727%2021.7932%2029.3719%2023.4882V23.5103H29.3741L29.3755%2023.5111ZM46.6736%2019.5827H32.9569L42.6552%209.88366C41.1301%207.74188%2039.2578%205.87006%2037.1156%204.34556L27.4158%2014.0446V0.327117C26.126%200.110161%2024.8204%200.000745493%2023.5125%200H23.4874C22.1568%200%2020.8535%200.113716%2019.5835%200.327117V14.0446L9.88144%204.34482C8.81298%205.10529%207.81015%205.954%206.88348%206.88201L6.87906%206.88644C5.95244%207.81377%205.10451%208.81654%204.34408%209.8844L14.0461%2019.5827H0.326368C0.326368%2019.5827%200%2022.1598%200%2023.4919V23.5081C0%2024.8402%200.112972%2026.1457%200.327112%2027.4165H14.0468L4.34334%2037.1141C5.86952%2039.2556%207.74195%2041.1278%209.88367%2042.6537L19.5842%2032.9554V46.6736C20.8528%2046.8863%2022.1539%2046.9985%2023.483%2047H23.5162C24.8226%2046.9988%2026.1267%2046.8896%2027.4151%2046.6736V32.9554L37.1163%2042.6559C38.1849%2041.8947%2039.1885%2041.0461%2040.1165%2040.1187H40.1187C41.0449%2039.1904%2041.8926%2038.1869%2042.653%2037.1186L32.9546%2027.4173H46.6743C46.887%2026.1472%2046.9993%2024.8461%2046.9993%2023.517V23.483C46.9993%2022.176%2046.89%2020.8727%2046.6743%2019.5842L46.6736%2019.5827Z'%20fill='%23FF4A00'/%3e%3c/svg%3e",CampaignMonitorLogo="data:image/svg+xml,%3csvg%20width='53'%20height='38'%20viewBox='0%200%2053%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M52.5424%201.78213C52.3909%201.56318%2052.1981%201.37658%2051.975%201.23304C51.752%201.0895%2051.5031%200.991829%2051.2427%200.945631C50.9822%200.899432%2050.7153%200.905612%2050.4572%200.963815C50.1991%201.02202%2049.9549%201.1311%2049.7386%201.28481L0.353271%2036.2191C0.537794%2036.4861%200.783254%2036.7041%201.06887%2036.8549C1.35449%2037.0057%201.67186%2037.0847%201.99412%2037.0853H50.8954C51.1598%2037.0853%2051.4216%2037.0327%2051.6659%2036.9304C51.9101%2036.8281%2052.132%2036.6782%2052.3189%2036.4892C52.5058%2036.3002%2052.6539%2036.0759%2052.7549%2035.829C52.8559%2035.5821%2052.9078%2035.3176%2052.9075%2035.0505V2.91559C52.9006%202.5094%2052.7735%202.11461%2052.5424%201.78213Z'%20fill='%237856FF'/%3e%3cpath%20d='M3.15863%201.28334C2.85954%201.07287%202.50945%200.948523%202.14579%200.923602C1.78214%200.898681%201.41863%200.974126%201.09415%201.14186C0.769679%201.3096%200.496456%201.56332%200.303723%201.87586C0.110991%202.1884%200.00600515%202.54801%200%202.91619V35.1091L23.5031%2015.6537L3.15863%201.28334Z'%20fill='%237856FF'/%3e%3c/svg%3e",GoogleSheetsLogo="data:image/svg+xml,%3csvg%20viewBox='0%200%20314.7%20428'%20xmlns='http://www.w3.org/2000/svg'%20width='1838'%20height='2500'%3e%3cpath%20d='M206%20108.7h108.7L206%200z'%20fill='%23188038'/%3e%3cpath%20d='M206%20108.7V0H24C10.7%200%200%2010.7%200%2024v380c0%2013.3%2010.7%2024%2024%2024h266.7c13.3%200%2024-10.7%2024-24V108.7z'%20fill='%2334a853'/%3e%3cpath%20d='M60%20167.9V315h194.7V167.9zM145.3%20291H84v-37.6h61.3zm0-61.5H84v-37.6h61.3zm85.4%2061.5h-61.3v-37.6h61.3zm0-61.5h-61.3v-37.6h61.3z'%20fill='%23fff'/%3e%3c/svg%3e",MailerLiteLogo="data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns:x='ns_extend;'%20xmlns:i='ns_ai;'%20xmlns:graph='ns_graphs;'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2062.8%2050.2'%20style='enable-background:new%200%200%2062.8%2050.2;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%2309C269;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3cmetadata%3e%3csfw%20xmlns='ns_sfw;'%3e%3cslices%3e%3c/slices%3e%3csliceSourceBounds%20bottomLeftOrigin='true'%20height='50.2'%20width='62.8'%20x='236.9'%20y='-225.3'%3e%3c/sliceSourceBounds%3e%3c/sfw%3e%3c/metadata%3e%3cg%20id='mailerlite-light'%3e%3cg%3e%3cg%20id='lite'%20transform='translate(137.000000,%200.000000)'%3e%3cpath%20id='Shape-path'%20class='st0'%20d='M-81.2,0h-48.9c-3.8,0-6.9,3.1-6.9,6.8v22.8v4.5v16.2l9.5-9.3h46.4c3.8,0,6.9-3.1,6.9-6.8%20V6.8C-74.3,3.1-77.4,0-81.2,0z'%3e%3c/path%3e%3cpath%20id='Shape-path-3'%20class='st1'%20d='M-90.2,15.8c5.2,0,7.6,4.1,7.6,8c0,1-0.8,1.8-1.8,1.8H-94c0.5,2.3,2.1,3.6,4.7,3.6%20c1.9,0,2.9-0.4,3.9-0.9c0.2-0.1,0.5-0.2,0.7-0.2c0.9,0,1.7,0.7,1.7,1.6c0,0.6-0.4,1.1-1,1.5c-1.3,0.7-2.7,1.4-5.5,1.4%20c-5.2,0-8.3-3.1-8.3-8.4C-97.9,18.1-93.7,15.8-90.2,15.8z%20M-105.5,13.2c0.6,0,1,0.5,1,1v1.9h2.9c0.9,0,1.7,0.7,1.7,1.6%20c0,0.9-0.7,1.6-1.7,1.6h-2.9V28c0,1.2,0.6,1.3,1.5,1.3c0.5,0,0.8-0.1,1.1-0.1c0.2,0,0.5-0.1,0.7-0.1c0.7,0,1.6,0.6,1.6,1.5%20c0,0.6-0.4,1.1-1,1.4c-0.9,0.4-1.7,0.6-2.7,0.6c-3.2,0-4.9-1.5-4.9-4.4v-8.8h-1.7c-0.6,0-1-0.5-1-1c0-0.3,0.1-0.6,0.4-0.9l4-4%20C-106.3,13.5-106,13.2-105.5,13.2z%20M-124.2,9.4c1,0,1.8,0.8,1.8,1.8v19.4c0,1-0.8,1.8-1.8,1.8s-1.8-0.8-1.8-1.8V11.2%20C-126,10.2-125.2,9.4-124.2,9.4z%20M-115.6,16c1,0,1.8,0.8,1.8,1.8v12.8c0,1-0.8,1.8-1.8,1.8c-1,0-1.8-0.8-1.8-1.8V17.8%20C-117.4,16.8-116.6,16-115.6,16z%20M-90.1,19.1c-1.7,0-3.6,1-3.9,3.5h7.9C-86.6,20.1-88.4,19.1-90.1,19.1z%20M-115.5,9.9%20c1.1,0,2,0.9,2,2V12c0,1.1-0.9,2-2,2h-0.2c-1.1,0-2-0.9-2-2v-0.1c0-1.1,0.9-2,2-2H-115.5z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",defaultColors$_={background:"#323232",color:"#ffffff",title:"#ffffff",subtitle:"#FFF",card:{background:"#212121",hover:"#111111",title:"#FFFFFF",description:"#AAAAAA",soonButton:{color:"#6a6a6a",background:"#444"},enabled:{background:"#111",border:"#01D06F"}},badge:{color:"#FFF",background:"rgba(170, 170, 170, 0.34)"},settings:{backButton:"#4980F5",title:"#FFFFFF",description:"#AAAAAA"},step:{background:"#212121",index:"#FFFFFF",title:"#FFFFFF",disabled:"#6a6a6a"},save:{disabled:{background:"#444444",color:"#6A6A6A"},enabled:{border:"#01D06F",background:"#173823",hover:{background:"#336730",color:"#FFF"}}}},colors$_={dark:defaultColors$_},defaultSizing$O={container:{padding:"40px",maxWidth:"910px"},title:{fontSize:"25px",fontWeight:"700",lineHeight:"34px"},subtitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},card:{padding:"32px 30px",borderRadius:"12px",gap:"20px"},cardTitle:{fontSize:"16px",fontWeight:"600",lineHeight:"19px"},cardDescription:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"},badge:{borderRadius:"5px",fontSize:"10px",fontWeight:"700",lineHeight:"14px"},list:{gap:"16px"},settings:{width:"500px",title:{fontSize:"16px",fontWeight:"600",lineHeight:"19px"},desc:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"}},step:{index:{fontSize:"14px",fontWeight:"600",lineHeight:"19px"},title:{fontSize:"16px",fontWeight:"600",lineHeight:"19px"}}},sizes$_={default:defaultSizing$O},scheme$E=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$_,sizes:sizes$_},Symbol.toStringTag,{value:"Module"})),Header$5=dt$1.div.withConfig({displayName:"StepCard__Header",componentId:"sc-8c7q8r-0"})([""]),StepIndex=dt$1.span.withConfig({displayName:"StepCard__StepIndex",componentId:"sc-8c7q8r-1"})([""]),Title$r=dt$1(Label$6).withConfig({displayName:"StepCard__Title",componentId:"sc-8c7q8r-2"})([""]),Content$8=dt$1.div.withConfig({displayName:"StepCard__Content",componentId:"sc-8c7q8r-3"})([""]),IntegrationStepCard=ea=>{const{className:na,children:ra,index:oa,title:aa,activeIndex:sa,lastStep:la}=ea,{t:ca}=useTranslation(),ua=la&&oa===sa||oa<sa,da=oa===sa,pa=sa<oa,ha=ua?SuccessOutlineIcon:da?InfoSmallIcon:InfoDisabledIcon;return jsxRuntimeExports.jsxs("div",{className:`${na} ${pa?"dp-step-disabled":""}`,children:[jsxRuntimeExports.jsxs(Header$5,{children:[jsxRuntimeExports.jsxs(StepIndex,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:ha}),ca("Step {{index}}",{index:oa})]}),jsxRuntimeExports.jsx(Title$r,{children:aa})]}),!pa&&jsxRuntimeExports.jsx(Content$8,{children:ra})]})},theme$1B=withTheme(scheme$E),StepCard=dt$1(IntegrationStepCard).withConfig({displayName:"StepCard",componentId:"sc-8c7q8r-4"})(["padding:25px 30px;border-radius:8px;","{display:flex;align-items:center;gap:6px;margin-bottom:12px;","{display:flex;}}","{margin-bottom:0;}","{margin-top:12px;}"," ",""],StepIndex,Icon$4,Title$r,Content$8,theme$1B.colors(ea=>lt$1(["background-color:",";","{color:",";}","{color:",";}&.dp-step-disabled{pointer-events:none;",",","{color:",";}}"],ea.step.background,StepIndex,ea.step.index,Title$r,ea.step.title,StepIndex,Title$r,ea.step.disabled)),theme$1B.sizes(ea=>lt$1(["","{font-size:",";line-height:",";font-weight:",";}","{font-size:",";line-height:",";font-weight:",";}"],StepIndex,ea.step.index.fontSize,ea.step.index.lineHeight,ea.step.index.fontWeight,Title$r,ea.step.title.fontSize,ea.step.title.lineHeight,ea.step.title.fontWeight))),SaveIntegration=({className:ea,...na})=>{const{t:ra}=useTranslation(),oa=reactExports.useMemo(()=>({size:"large",color:"primary",children:ra("Save Integration"),...na}),[na,ra]);return jsxRuntimeExports.jsx(SolidButton,{className:ea,...oa})},theme$1A=withTheme(scheme$E),SaveIntegration$1=dt$1(SaveIntegration).withConfig({displayName:"SaveIntegration",componentId:"sc-14aid1y-0"})(["","{display:flex;}",""],Icon$4,theme$1A.colors((ea,{disabled:na})=>lt$1(["",""],na&&lt$1(["opacity:1;background:",";color:",";"],ea.save.disabled.background,ea.save.disabled.color)))),Container$v=dt$1.div.withConfig({displayName:"AuthSelector__Container",componentId:"sc-185rwkz-0"})([""]),AuthSelector=ea=>{const{className:na,onSelect:ra,newConfig:oa,apiKey:aa="",getRequestConfig:sa,postRequestConfig:la,removeRequestConfig:ca}=ea,[ua,da]=reactExports.useState([]),[pa,ha]=reactExports.useState(!1),ga=reactExports.useRef(!0),{t:fa}=useTranslation(),ma=reactExports.useCallback(Oa=>{da(Oa),Oa.length?ha(!1):ha(!0),ga.current?aa&&Oa.includes(aa)?ra(aa):(aa&&!Oa.includes(aa)||!aa)&&ra(""):ga.current=!1},[aa,ra]),va=reactExports.useCallback(()=>{ha(!1)},[]),xa=reactExports.useCallback(Oa=>{ra(Oa)},[ra]),ya=reactExports.useMemo(()=>[{label:fa("Select an api key"),value:""},...(ua.length?ua:[]).map(Oa=>({label:Oa,value:Oa}))],[ua,fa]),Aa=reactExports.useCallback(Oa=>{ra(Oa)},[ra]),[Ca,{status:Sa}]=useRequest(sa,{onSuccess:ma}),wa=reactExports.useCallback(()=>{Ca()},[Ca]),ba=reactExports.useCallback(()=>{Ca(),ra("")},[Ca,ra]),[Ea,{status:$a}]=useRequest(la,{onSuccess:wa,initialStatus:"idle"}),[Ma,{status:Ia}]=useRequest(ca,{onSuccess:ba,initialStatus:"idle"});return reactExports.useEffect(()=>{ua.length===0&&Ca()},[ua.length,Ca]),jsxRuntimeExports.jsxs(LoadingSplash$1,{className:na,visible:Sa==="loading",loadingSize:"small",children:[(ua?.length===0||pa)&&oa(Ea,$a==="loading",ua?.length>0?va:void 0,Aa),ua?.length>0&&!pa&&jsxRuntimeExports.jsxs(Container$v,{children:[jsxRuntimeExports.jsx(Select$1,{options:ya,onChange:xa,value:aa||""}),jsxRuntimeExports.jsx(OutlineButton$1,{color:"secondary",size:"small",disabled:!aa||Ia==="loading",onClick:()=>Ma(aa),children:fa("Remove")}),jsxRuntimeExports.jsx(OutlineButton$1,{color:"primary",size:"small",onClick:()=>ha(!0),children:fa("Add new")})]})]})},AuthSelector$1=dt$1(AuthSelector).withConfig({displayName:"AuthSelector",componentId:"sc-185rwkz-1"})(["","{display:flex;flex-flow:row wrap;align-items:flex-start;gap:12px 5px;","{width:100%;}","{width:85px;}}"],Container$v,Select$1,OutlineButton$1),defaultColors$Z={description:"rgba(170, 170, 170, 0.87)"},colors$Z={dark:defaultColors$Z},defaultSizing$N={description:{fontSize:"12px",fontWeight:"400",lineHeight:"16px"}},sizes$Z={default:defaultSizing$N},scheme$D=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$Z,sizes:sizes$Z},Symbol.toStringTag,{value:"Module"})),Description$2=dt$1(Label$6).withConfig({displayName:"AddAPIKey__Description",componentId:"sc-14gw53w-0"})([""]),ButtonSection=dt$1.div.withConfig({displayName:"AddAPIKey__ButtonSection",componentId:"sc-14gw53w-1"})([""]),AddAPIKey=ea=>{const{className:na,onAdd:ra,isAdding:oa,cancel:aa,onChange:sa}=ea,[la,ca]=reactExports.useState(""),[ua,da]=reactExports.useState(!0),{t:pa}=useTranslation(),ha=reactExports.useCallback(ma=>!ma||ma.trim()===""||!/-/.test(ma)?(da(!1),!1):(da(!0),!0),[]),ga=reactExports.useCallback(ma=>{ca(ma)},[]),fa=reactExports.useCallback(()=>{ra(la),ca(""),da(!0),sa?.(la)},[ra,sa,la]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Input$2,{variant:"small",value:la,pattern:ha,onChange:ga,validationOn:"blur",placeholder:pa("Enter a new API key"),onBlurChange:!0,validationMessage:pa("Invalid API key format")}),jsxRuntimeExports.jsxs(ButtonSection,{children:[jsxRuntimeExports.jsx(SolidButton,{color:"primary",size:"small",loading:oa,disabled:!la||!ua||oa,onClick:fa,children:pa("Add")}),aa&&jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:aa,children:pa("Cancel")})]}),jsxRuntimeExports.jsx(Description$2,{children:pa("You can find your API key in your Mailchimp account settings")})]})},theme$1z=withTheme(scheme$D),AddAPIKey$1=dt$1(AddAPIKey).withConfig({displayName:"AddAPIKey",componentId:"sc-14gw53w-2"})(["display:flex;flex-flow:row wrap;gap:12px;","{display:flex;align-items:center;gap:5px;}","{flex:1;}","{flex-basis:100%;}"," ",""],ButtonSection,Input$2,Description$2,theme$1z.colors(ea=>lt$1(["","{color:",";}"],Description$2,ea.description)),theme$1z.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Description$2,ea.description.fontSize,ea.description.fontWeight,ea.description.lineHeight))),Container$u=dt$1.div.withConfig({displayName:"AudienceList__Container",componentId:"sc-bbyxqa-0"})([""]),AudienceList=ea=>{const{className:na,apiKey:ra,listId:oa="",onSelect:aa}=ea,[sa,la]=reactExports.useState([]),{t:ca}=useTranslation(),ua=reactExports.useCallback(()=>getMailchimpAudienceList(ra),[ra]),da=reactExports.useCallback(ma=>{const va=ma.hits.length?ma.hits:[];la(va),aa(va.find(xa=>xa.id===oa)?oa:"")},[oa,aa]),[pa,{status:ha}]=useRequest(ua,{onSuccess:da}),ga=reactExports.useMemo(()=>[{label:ca("Select an audience list"),value:""},...(sa.length?sa:[]).map(ma=>({label:ma.name,value:ma.id}))],[sa,ca]),fa=reactExports.useCallback(ma=>{aa(ma)},[aa]);return reactExports.useEffect(()=>{sa.length===0&&pa()},[pa,sa.length]),jsxRuntimeExports.jsx(LoadingSplash$1,{className:na,visible:ha==="loading",children:jsxRuntimeExports.jsx(Container$u,{children:jsxRuntimeExports.jsx(Select$1,{options:ga,value:oa,onChange:fa})})})},AudienceList$1=dt$1(AudienceList).withConfig({displayName:"AudienceList",componentId:"sc-bbyxqa-1"})([""]),defaultColors$Y={background:"rgba(0, 0, 0, 0.34)",label:"#fff"},colors$Y={dark:defaultColors$Y},defaultSizing$M={label:{fontSize:"14px",lineHeight:"18px",fontWeight:"400"}},sizes$Y={default:defaultSizing$M},scheme$C=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$Y,sizes:sizes$Y},Symbol.toStringTag,{value:"Module"})),FieldContainer=dt$1.div.withConfig({displayName:"FieldMapper__FieldContainer",componentId:"sc-lmp2kh-0"})([""]),FieldContainerHeader=dt$1.div.withConfig({displayName:"FieldMapper__FieldContainerHeader",componentId:"sc-lmp2kh-1"})([""]),FieldTitleContainer=dt$1.div.withConfig({displayName:"FieldMapper__FieldTitleContainer",componentId:"sc-lmp2kh-2"})([""]),MailchimpFieldContainer=dt$1.div.withConfig({displayName:"FieldMapper__MailchimpFieldContainer",componentId:"sc-lmp2kh-3"})([""]),ItemContainer=dt$1.div.withConfig({displayName:"FieldMapper__ItemContainer",componentId:"sc-lmp2kh-4"})([""]),FieldMapper=ea=>{const{className:na,mapping:ra,requiredFields:oa,fields:aa,inputs:sa,onChange:la,onValidChange:ca}=ea,{t:ua}=useTranslation(),da=reactExports.useMemo(()=>{const fa=ra.map(va=>va.from&&va.to),ma=oa?.filter(va=>!fa.includes(va))||[];return ca?.(ma.length===0),ma},[ra,oa,ca]),pa=reactExports.useMemo(()=>[{id:"",label:ua("Select a field")},...aa].map(fa=>({value:fa.id,label:fa.label})),[aa,ua]),ha=reactExports.useCallback((fa,ma)=>{const va=[...ra],xa=va.findIndex(ya=>ya.from===fa);xa!==-1?va[xa]={from:fa,to:ma}:va.push({from:fa,to:ma}),la(va)},[ra,la]),ga=reactExports.useCallback(fa=>{const{name:ma,label:va}=fa,xa=ra.find(ya=>ya.from===ma);return jsxRuntimeExports.jsxs(ItemContainer,{children:[jsxRuntimeExports.jsx(FieldTitleContainer,{children:jsxRuntimeExports.jsx(Label$6,{children:va})}),jsxRuntimeExports.jsx(MailchimpFieldContainer,{children:jsxRuntimeExports.jsx(Select$1,{options:pa,value:xa?.to||"",onChange:ya=>ha(ma,ya)})})]},ma)},[ra,ha,pa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[sa.length&&da&&da.length>0&&jsxRuntimeExports.jsx(Flag$1,{type:"error",children:da.map(fa=>{const ma=aa.find(va=>va.id===fa);return ua(`The "${ma.label}" field is required by Mailchimp. Please map at least one form field to "${ma.label}" to continue.`)})}),sa.length?jsxRuntimeExports.jsxs(FieldContainer,{children:[jsxRuntimeExports.jsxs(FieldContainerHeader,{children:[jsxRuntimeExports.jsx(FieldTitleContainer,{children:jsxRuntimeExports.jsx(Label$6,{children:ua("Form fields")})}),jsxRuntimeExports.jsx(MailchimpFieldContainer,{children:jsxRuntimeExports.jsx(Label$6,{children:ua("Mailchimp fields")})})]}),sa.map(ga)]}):jsxRuntimeExports.jsx(Flag$1,{type:"warning",children:ua("There are no inputs available on this document. Please add some inputs before mapping fields.")})]})},theme$1y=withTheme(scheme$C),FieldsMapper$1=dt$1(FieldMapper).withConfig({displayName:"FieldMapper",componentId:"sc-lmp2kh-5"})(["","{margin-top:12px;display:flex;flex-direction:column;}","{margin-bottom:0;}","{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px;padding:0 20px;}","{flex:0 0 270px;}","{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;margin-bottom:3px;&:last-of-type{margin-bottom:0;}}"," ",""],FieldContainer,Label$6,FieldContainerHeader,MailchimpFieldContainer,ItemContainer,theme$1y.colors(ea=>lt$1(["","{background-color:",";","{color:",";}}"],ItemContainer,ea.background,Label$6,ea.label)),theme$1y.sizes(ea=>lt$1(["","{","{font-size:",";line-height:",";font-weight:",";}}"],ItemContainer,Label$6,ea.label.fontSize,ea.label.lineHeight,ea.label.fontWeight))),Container$t=dt$1.div.withConfig({displayName:"FieldsMapper__Container",componentId:"sc-15c6jrv-0"})([""]),requiredFields=["email_address"],FieldsMapperMailchimp=ea=>{const{className:na,apiKey:ra,listId:oa,mapping:aa,onChange:sa}=ea,la=useSelector(getFormInputElements),[ca,ua]=reactExports.useState([]),da=reactExports.useMemo(()=>la.map(ma=>({name:`field:${ma.options?.attributes?.name||""}`,label:toReadable(ma?.options?.attributes?.name||"")})),[la]),pa=reactExports.useCallback(({hits:ma})=>{ua(ma.map(va=>({id:va.tag,label:va.name})))},[]),ha=reactExports.useCallback(()=>getMailchimpAudienceFields(ra,oa),[ra,oa]),[ga,{status:fa}]=useRequest(ha,{onSuccess:pa});return reactExports.useEffect(()=>{ga()},[ra,ga,oa]),jsxRuntimeExports.jsx(LoadingSplash$1,{className:na,visible:fa==="loading",children:jsxRuntimeExports.jsx(Container$t,{children:jsxRuntimeExports.jsx(FieldsMapper$1,{inputs:da,fields:ca,mapping:aa,onChange:sa,requiredFields})})})},FieldsMapper=dt$1(FieldsMapperMailchimp).withConfig({displayName:"FieldsMapper",componentId:"sc-15c6jrv-1"})([""]),Settings=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),[oa,aa]=reactExports.useState(1),{localConfig:sa,updateIntegration:la,saveChanges:ca,addToast:ua}=useDocumentIntegration(),da=!sa?.config?.apiKey||!sa.config.listId,pa=reactExports.useCallback(ma=>{aa(ma?2:1),la({config:{apiKey:ma}})},[la]),ha=reactExports.useCallback(ma=>{aa(ma?3:2),la({config:{listId:ma}})},[la]),ga=reactExports.useCallback(ma=>{la({config:{fieldMapping:ma}})},[la]),fa=reactExports.useCallback(()=>{ua({type:"success",title:ra("Success"),message:ra("Mailchimp integration has been saved successfully.")}),ca()},[ua,ca,ra]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(StepCard,{index:1,activeIndex:oa,title:ra("Choose API Key"),children:jsxRuntimeExports.jsx(AuthSelector$1,{onSelect:pa,getRequestConfig:getMailchimpApiKeys,postRequestConfig:addMailchimpApiKey,removeRequestConfig:removeMailchimpApiKey,apiKey:sa?.config?.apiKey,newConfig:(ma,va,xa,ya)=>jsxRuntimeExports.jsx(AddAPIKey$1,{onAdd:ma,isAdding:va,cancel:xa,onChange:ya})})}),jsxRuntimeExports.jsx(StepCard,{index:2,title:ra("Choose Audience"),activeIndex:oa,children:jsxRuntimeExports.jsx(AudienceList$1,{apiKey:sa?.config?.apiKey,listId:sa?.config?.listId,onSelect:ha})}),jsxRuntimeExports.jsx(StepCard,{index:3,title:ra("Map Fields"),activeIndex:oa,lastStep:!0,children:jsxRuntimeExports.jsx(FieldsMapper,{apiKey:sa?.config?.apiKey,listId:sa?.config?.listId,mapping:sa?.config?.fieldMapping||[],onChange:ga})}),jsxRuntimeExports.jsx(SaveIntegration$1,{disabled:da,onClick:()=>fa()})]})},Settings$1=dt$1(Settings).withConfig({displayName:"Settings",componentId:"sc-rihgjl-0"})(["display:flex;flex-direction:column;gap:10px;"]),getMailchimpIntegration=async()=>(await i18nInit,{type:"mailchimp",name:i18next.t("Mailchimp"),description:i18next.t("Connect your {{document}} to Mailchimp to make the most of your email marketing sync contacts, grow your audience, and more.",{document:DocType.getLabel("document")}),icon:MailChimpLogo,tier:Tiers.PRO,settingsComponent:Settings$1}),mailchimpIntegration={type:"mailchimp",name:"Mailchimp",description:"Connect your document to Mailchimp to make the most of your email marketing sync contacts, grow your audience, and more.",icon:MailChimpLogo,tier:Tiers.PRO,settingsComponent:Settings$1},getComingSoonList=async()=>(await i18nInit,[{type:"googleSheets",name:"Google Sheets",description:i18next.t("Connect your {{document}} to Google Sheets to automate your data entry, sync contacts, and more.",{document:DocType.getLabel("document")}),icon:GoogleSheetsLogo,comingSoon:!0},{type:"zapier",name:"Zapier",description:i18next.t("Connect your {{document}} to Zapier to automate your workflows, sync contacts, and more.",{document:DocType.getLabel("document")}),icon:ZapierLogo,comingSoon:!0},{type:"hubspot",name:"Hubspot",description:i18next.t("Connect Depicter to HubSpot to automate your marketing, manage leads, and grow your business effortlessly."),icon:HubSpotLogo,comingSoon:!0},{type:"mailerlite",name:"MailerLite",description:i18next.t("Connect your {{document}} to MailerLite to automate your email marketing, sync contacts, and grow your audience.",{document:DocType.getLabel("document")}),icon:MailerLiteLogo,comingSoon:!0},{type:"campaign-monitor",name:"Campaign Monitor",description:i18next.t("Connect your {{document}} to Campaign Monitor to automate your email marketing, sync contacts, and grow your audience.",{document:DocType.getLabel("document")}),icon:CampaignMonitorLogo,comingSoon:!0}]),getIntegrations=async()=>{const[ea,na]=await Promise.all([getMailchimpIntegration(),getComingSoonList()]);return[ea,...na]},integrations=[mailchimpIntegration],IntegrationContext=reactExports.createContext(void 0),IntegrationProvider=({children:ea,integrations:na,onChange:ra})=>{const[oa,aa]=reactExports.useState("home"),[sa,la]=reactExports.useState(null),[ca,ua]=reactExports.useState(!1),[da,pa]=reactExports.useState(null),ha=reactExports.useMemo(()=>sa&&na[sa]?na[sa]:null,[sa,na]),ga=reactExports.useMemo(()=>sa&&integrations.find(Ma=>Ma.type===sa)||null,[sa]),[fa,ma]=reactExports.useState(ha||{type:sa||"",config:{},enabled:!1});reactExports.useEffect(()=>{ma(ha||{type:sa||"",config:{},enabled:!1})},[sa,ha]),reactExports.useEffect(()=>{ha?.type&&fa?.type&&ha.type===fa.type&&!lodashExports.isEqual(ha.config,fa.config)&&ua(!0)},[ha,fa]);const va=reactExports.useCallback($a=>{ua(!1),la($a),aa("settings")},[]),xa=reactExports.useCallback(()=>{la(null),ua(!1),aa("home")},[]),ya=reactExports.useCallback($a=>{ma(Ma=>({...Ma,config:{...Ma.config,...$a.config},enabled:$a.enabled??Ma.enabled,type:Ma.type}))},[]),Aa=reactExports.useCallback(($a=!0)=>{ua(!1),ra({...fa,enabled:!0},sa),$a&&xa()},[ra,sa,fa,xa]),Ca=reactExports.useCallback($a=>{ra({enabled:!1},$a)},[ra]),Sa=reactExports.useCallback($a=>{ra({enabled:!0},$a)},[ra]),wa=reactExports.useCallback($a=>{ra(void 0,$a)},[ra]),ba=reactExports.useCallback($a=>{pa($a)},[]),Ea=reactExports.useMemo(()=>({route:oa,integrations:na,activeIntegration:sa,integration:ha,integrationInfo:ga,setRoute:aa,setActiveIntegration:la,goHome:xa,goToSettings:va,hasUnsavedChanges:ca,updateIntegration:ya,localConfig:fa,saveChanges:Aa,disableIntegration:Ca,removeIntegration:wa,enableIntegration:Sa,addToast:ba,toast:da}),[oa,na,sa,ha,ga,xa,va,ca,ya,fa,Aa,Ca,wa,Sa,ba,da]);return jsxRuntimeExports.jsx(IntegrationContext.Provider,{value:Ea,children:ea})},useDocumentIntegration=()=>reactExports.useContext(IntegrationContext),ConnectedBadge=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Icon$4,{shape:SuccessIcon$1}),jsxRuntimeExports.jsx(Label$6,{children:na("Connected")})]})},theme$1x=withTheme(scheme$E),ConnectedBadge$1=dt$1(ConnectedBadge).withConfig({displayName:"Connected",componentId:"sc-68hlr8-0"})(["display:flex;align-items:center;padding:2px 5px;gap:3px;","{margin-bottom:0;text-transform:uppercase;}","{display:flex;}"," ",""],Label$6,Icon$4,theme$1x.colors(ea=>lt$1(["background-color:",";","{color:",";}"],ea.badge.background,Label$6,ea.badge.color)),theme$1x.sizes(ea=>lt$1(["border-radius:",";","{font-size:",";font-weight:",";line-height:",";}"],ea.badge.borderRadius,Label$6,ea.badge.fontSize,ea.badge.fontWeight,ea.badge.lineHeight))),ComingSoonBadge$1=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Label$6,{children:na("Coming Soon")})})},theme$1w=withTheme(scheme$E),ComingSoonBadge$2=dt$1(ComingSoonBadge$1).withConfig({displayName:"ComingSoon",componentId:"sc-1ovup04-0"})(["display:flex;align-items:center;padding:2px 5px;","{margin-bottom:0;text-transform:uppercase;}"," ",""],Label$6,theme$1w.colors(ea=>lt$1(["background-color:",";","{color:",";}"],ea.badge.background,Label$6,ea.badge.color)),theme$1w.sizes(ea=>lt$1(["border-radius:",";","{font-size:",";font-weight:",";line-height:",";}"],ea.badge.borderRadius,Label$6,ea.badge.fontSize,ea.badge.fontWeight,ea.badge.lineHeight))),CardContainer=dt$1.div.withConfig({displayName:"IntegrationCard__CardContainer",componentId:"sc-11p1wgj-0"})(["display:flex;align-items:center;transition:background-color 0.2s ease;"]),IconSection$1=dt$1.div.withConfig({displayName:"IntegrationCard__IconSection",componentId:"sc-11p1wgj-1"})(["flex-shrink:0;"]),ContentSection$1=dt$1.div.withConfig({displayName:"IntegrationCard__ContentSection",componentId:"sc-11p1wgj-2"})(["flex:1;display:flex;flex-direction:column;gap:5px;padding-right:28px;"]),TitleRow=dt$1.div.withConfig({displayName:"IntegrationCard__TitleRow",componentId:"sc-11p1wgj-3"})(["display:flex;align-items:center;gap:12px;"]),Title$q=dt$1.h3.withConfig({displayName:"IntegrationCard__Title",componentId:"sc-11p1wgj-4"})(["margin:0;"]),Description$1=dt$1.p.withConfig({displayName:"IntegrationCard__Description",componentId:"sc-11p1wgj-5"})(["margin:0;"]),ControlsSection=dt$1.div.withConfig({displayName:"IntegrationCard__ControlsSection",componentId:"sc-11p1wgj-6"})(["flex-shrink:0;display:flex;align-items:center;gap:12px;"]),IntegrationCard=ea=>{const{className:na,name:ra,type:oa,description:aa,icon:sa,status:la,comingSoon:ca=!1,tier:ua}=ea,{t:da}=useTranslation(),pa=useUserTierAuth(ua),ha=useOpenUpgradeToPro(),{goToSettings:ga,disableIntegration:fa,removeIntegration:ma,enableIntegration:va}=useDocumentIntegration(),xa=la==="not-connected",ya=la==="enabled",Aa=!!ca,Ca=reactExports.useCallback((ba,Ea=!1)=>{if(!pa){ha({source:"depicter_editor",medium:"integrations",content:ra,term:ra});return}ba?(va(oa),Ea&&ga(oa)):fa(oa)},[pa,ha,ra,va,oa,ga,fa]),Sa=reactExports.useCallback(()=>{ga(oa)},[ga,oa]),wa=reactExports.useCallback(()=>{ma(oa)},[ma,oa]);return jsxRuntimeExports.jsxs(CardContainer,{className:`${na} ${ya?"dp-integration-enabled":""} ${Aa?"dp-integration-coming-soon":""}`,children:[jsxRuntimeExports.jsx(IconSection$1,{children:jsxRuntimeExports.jsx("img",{src:sa,alt:ra})}),jsxRuntimeExports.jsxs(ContentSection$1,{children:[jsxRuntimeExports.jsxs(TitleRow,{children:[jsxRuntimeExports.jsx(Title$q,{children:ra}),!pa&&xa&&jsxRuntimeExports.jsx(ProBadge$1,{isHover:!0}),ya&&jsxRuntimeExports.jsx(ConnectedBadge$1,{}),!ya&&Aa&&jsxRuntimeExports.jsx(ComingSoonBadge$2,{})]}),jsxRuntimeExports.jsx(Description$1,{children:aa})]}),jsxRuntimeExports.jsx(ControlsSection,{children:xa?jsxRuntimeExports.jsx(SolidButton,{color:Aa?"tertiary":"primary",size:"small",disabled:Aa,onClick:()=>Ca(!0,!0),children:da("Connect")}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ya&&jsxRuntimeExports.jsxs(Menu,{direction:"bottom",align:"end",transition:!0,size:"medium",minWidth:"120px",menuButton:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgMore,{}),onClick:ba=>ba.stopPropagation()}),gap:5,children:[jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:Sa,children:da("Edit")}),jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:wa,children:da("Delete")})]}),jsxRuntimeExports.jsx(SwitchBox$1,{size:"large",displayIcons:!1,value:ya,disabled:Aa,onChange:Ca})]})})]})},theme$1v=withTheme(scheme$E),IntegrationCard$1=dt$1(IntegrationCard).withConfig({displayName:"IntegrationCard",componentId:"sc-11p1wgj-7"})(["","{display:flex;align-items:center;width:55px;height:55px;margin-right:30px;img{width:100%;height:100%;}}","{width:auto;}"," ",""],IconSection$1,IconButton,theme$1v.colors(ea=>lt$1(["background-color:",";&:hover{background-color:",";}","{color:",";}","{color:",";}","{svg{fill:",";!important;}}&.dp-integration-enabled{border:1px solid ",";background-color:",";}&.dp-integration-coming-soon{","{background-color:#6a6a6a;}}"],ea.card.background,ea.card.hover,Title$q,ea.card.title,Description$1,ea.card.description,IconButton,ea.card.title,ea.card.enabled.border,ea.card.enabled.background,SolidButton)),theme$1v.sizes(ea=>lt$1(["padding:",";border-radius:",";","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],ea.card.padding,ea.card.borderRadius,Title$q,ea.cardTitle.fontSize,ea.cardTitle.fontWeight,ea.cardTitle.lineHeight,Description$1,ea.cardDescription.fontSize,ea.cardDescription.fontWeight,ea.cardDescription.lineHeight))),IntegrationsList=({className:ea})=>{const{integrations:na}=useDocumentIntegration(),[ra,oa]=reactExports.useState([]),[aa,sa]=reactExports.useState(!0);reactExports.useEffect(()=>{(async()=>{try{const ua=await getIntegrations();oa(ua)}catch(ua){console.error("Failed to load integrations:",ua)}finally{sa(!1)}})()},[]);const la=reactExports.useMemo(()=>ra.map(ua=>{const da=na[ua.type];let pa="not-connected";return da&&(pa=da.enabled?"enabled":"disabled"),{...ua,status:pa,config:da?.config}}).sort((ua,da)=>ua.status==="enabled"&&da.status!=="enabled"?-1:ua.status!=="enabled"&&da.status==="enabled"?1:0),[na,ra]);return aa?jsxRuntimeExports.jsx("div",{className:ea,children:"Loading integrations..."}):jsxRuntimeExports.jsx("div",{className:ea,children:la.map(ca=>jsxRuntimeExports.jsx(IntegrationCard$1,{...ca},ca.type))})},theme$1u=withTheme(scheme$E),IntegrationsList$1=dt$1(IntegrationsList).withConfig({displayName:"IntegrationsList",componentId:"sc-xbzfih-0"})(["display:flex;flex-direction:column;",""],theme$1u.sizes(ea=>lt$1(["gap:",";"],ea.list.gap))),Title$p=dt$1.h1.withConfig({displayName:"IntegrationsHeader__Title",componentId:"sc-oyaxoy-0"})(["margin:0 0 16px 0;text-align:center;"]),Subtitle=dt$1.p.withConfig({displayName:"IntegrationsHeader__Subtitle",componentId:"sc-oyaxoy-1"})(["margin:0 0 40px 0;text-align:center;line-height:1.5;margin-left:auto;margin-right:auto;"]),IntegrationsHeader=({title:ea,subtitle:na,className:ra})=>jsxRuntimeExports.jsxs("div",{className:ra,children:[jsxRuntimeExports.jsx(Title$p,{children:ea}),jsxRuntimeExports.jsx(Subtitle,{children:na})]}),theme$1t=withTheme(scheme$E),StyledIntegrationsHeader=dt$1(IntegrationsHeader).withConfig({displayName:"IntegrationsHeader__StyledIntegrationsHeader",componentId:"sc-oyaxoy-2"})(["margin-bottom:25px;","{margin-bottom:5px;}","{max-width:100%;margin-bottom:0;}"," ",""],Title$p,Subtitle,theme$1t.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$p,ea.title,Subtitle,ea.subtitle)),theme$1t.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$p,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Subtitle,ea.subtitle.fontSize,ea.subtitle.fontWeight,ea.subtitle.lineHeight))),IntegrationsSuggestion=({className:ea})=>{const{t:na}=useTranslation(),ra=reactExports.useCallback(()=>{window?.Beacon("open")},[]);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx("div",{className:"suggestion-content",children:jsxRuntimeExports.jsxs("p",{className:"suggestion-text",children:[na("Don't see your favorite integration?")," ",jsxRuntimeExports.jsx(BaseButton$1,{onClick:ra,className:"suggestion-link",children:na("Suggest a new integration")})," ",na(" and we'll consider adding it!")]})})})},theme$1s=withTheme(scheme$E),IntegrationsSuggestion$1=dt$1(IntegrationsSuggestion).withConfig({displayName:"IntegrationsSuggestion",componentId:"sc-1xa8y7t-0"})([""," "," .suggestion-content{display:flex;align-items:center;}.suggestion-text{margin:0;}.suggestion-link{background:none !important;border:none !important;text-decoration:underline;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:inherit;padding:0 !important;margin:0 4px;color:#4980f5 !important;display:inline;width:auto !important;min-width:auto !important;height:auto !important;border-radius:0 !important;&:hover{text-decoration:none;opacity:0.8;}&:focus{outline:2px solid currentColor;outline-offset:2px;border-radius:2px;}}"],theme$1s.colors(ea=>lt$1(["background-color:",";&:hover{background-color:",";}.suggestion-text{color:",";}.suggestion-link{color:#4980f5;}"],ea.card.background,ea.card.hover,ea.card.description)),theme$1s.sizes(ea=>lt$1(["padding:20px 30px;border-radius:",";margin-bottom:",";.suggestion-text{font-size:14px;font-weight:",";line-height:1.4;}"],ea.card.borderRadius,ea.list.gap,ea.cardDescription.fontWeight))),IntegrationsHome=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(StyledIntegrationsHeader,{title:na("Setup Integration"),subtitle:na("Select a service to begin. You'll then be guided through a few easy steps to connect your account and map your form fields.")}),jsxRuntimeExports.jsx(IntegrationsSuggestion$1,{}),jsxRuntimeExports.jsx(IntegrationsList$1,{})]})},theme$1r=withTheme(scheme$E),IntegrationsHome$1=dt$1(IntegrationsHome).withConfig({displayName:"IntegrationsHome",componentId:"sc-1vf8lmc-0"})(["display:flex;flex-direction:column;flex:1;width:100%;"," ",""],theme$1r.colors(ea=>lt$1(["color:",";"],ea.color)),theme$1r.sizes(ea=>lt$1(["padding:",";padding-top:0;"],ea.container.padding))),HeaderSection=dt$1.div.withConfig({displayName:"IntegrationSettings__HeaderSection",componentId:"sc-169v9m2-0"})([""]),IconSection=dt$1.div.withConfig({displayName:"IntegrationSettings__IconSection",componentId:"sc-169v9m2-1"})([""]),ContentSection=dt$1.div.withConfig({displayName:"IntegrationSettings__ContentSection",componentId:"sc-169v9m2-2"})([""]),SettingsSection=dt$1.div.withConfig({displayName:"IntegrationSettings__SettingsSection",componentId:"sc-169v9m2-3"})([""]),Title$o=dt$1.h2.withConfig({displayName:"IntegrationSettings__Title",componentId:"sc-169v9m2-4"})([""]),Description=dt$1.p.withConfig({displayName:"IntegrationSettings__Description",componentId:"sc-169v9m2-5"})([""]),IntegrationSettings=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{goHome:oa,integrationInfo:aa}=useDocumentIntegration();if(!aa)return console.warn("No integration info available"),null;const{icon:sa,name:la,settingsComponent:ca}=aa;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(BaseButton$1,{icon:jsxRuntimeExports.jsx(SvgArrowLeft$2,{}),onClick:oa,children:ra("Back to Integrations ")}),jsxRuntimeExports.jsxs(HeaderSection,{children:[jsxRuntimeExports.jsx(IconSection,{children:jsxRuntimeExports.jsx(Icon$4,{shape:sa})}),jsxRuntimeExports.jsxs(ContentSection,{children:[jsxRuntimeExports.jsx(Title$o,{children:la}),jsxRuntimeExports.jsx(Description,{children:ra("Once all steps are completed, you can activate the integration.")})]})]}),jsxRuntimeExports.jsx(SettingsSection,{children:ca&&jsxRuntimeExports.jsx(ca,{})})]})},theme$1q=withTheme(scheme$E),IntegrationSettings$1=dt$1(IntegrationSettings).withConfig({displayName:"IntegrationSettings",componentId:"sc-169v9m2-6"})(["display:flex;flex-direction:column;align-items:flex-start;gap:10px;> ","{padding:3px 0px;}","{","{display:flex;}img{width:36px;}}","{display:flex;align-items:center;gap:9px;}","{display:flex;flex-direction:column;gap:3px;}","{width:100%;}"," ",""],BaseButton$1,IconSection,Icon$4,HeaderSection,ContentSection,SettingsSection,theme$1q.colors(ea=>lt$1(["> ","{color:",";svg{fill:",";}}","{color:",";}","{color:",";}"],BaseButton$1,ea.settings.backButton,ea.settings.backButton,Title$o,ea.settings.title,Description,ea.settings.description)),theme$1q.sizes(ea=>lt$1(["width:",";","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],ea.settings.width,Title$o,ea.settings.title.fontSize,ea.settings.title.fontWeight,ea.settings.title.lineHeight,Description,ea.settings.desc.fontSize,ea.settings.desc.fontWeight,ea.settings.desc.lineHeight))),IntegrationsSection$1=({className:ea})=>{const{route:na,toast:ra,addToast:oa}=useDocumentIntegration(),aa=useDispatch(),{addToast:sa}=useToast();return reactExports.useEffect(()=>{ra&&(sa(ra),oa(null))},[sa,oa,ra]),reactExports.useEffect(()=>{na==="home"&&aa(saveDocument("draft"))},[aa,na]),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:na,children:[jsxRuntimeExports.jsx(ContentWrap$1,{visibilityControl:"render",index:"home",children:jsxRuntimeExports.jsx(IntegrationsHome$1,{})}),jsxRuntimeExports.jsx(ContentWrap$1,{visibilityControl:"render",index:"settings",children:jsxRuntimeExports.jsx(IntegrationSettings$1,{})})]})})},theme$1p=withTheme(scheme$E),StyledIntegrationsSection=dt$1(IntegrationsSection$1).withConfig({displayName:"IntegrationsSection__StyledIntegrationsSection",componentId:"sc-yrdhk7-0"})(["margin-top:80px;display:flex;flex-direction:column;align-items:center;","{display:flex;justify-content:center;align-items:flex-start;min-height:100%;padding:0;width:100%;}"," ",""],ContentWrap$1,theme$1p.colors(ea=>lt$1(["background-color:",";color:",";"],ea.background,ea.color)),theme$1p.sizes(ea=>lt$1(["max-width:",";"],ea.container.maxWidth))),Integrations=ea=>jsxRuntimeExports.jsx(IntegrationProvider,{...ea,children:jsxRuntimeExports.jsx(StyledIntegrationsSection,{})}),Integrations$1=dt$1(Integrations).withConfig({displayName:"integrations",componentId:"sc-b5wo9q-0"})([""]),ContentWrapper$2=dt$1.div.withConfig({displayName:"IntegrationsSection__ContentWrapper",componentId:"sc-1kxjp7f-0"})(["display:flex;justify-content:center;align-items:flex-start;min-height:100%;padding:20px;width:100%;"]),EditorIntegrationsSection=({className:ea})=>{const na=useSelector(getDocumentIntegrations),ra=updateDocumentValueByPathAndPrefix("integrations"),oa=useDispatch(),aa=reactExports.useCallback((sa,la)=>{oa(ra(la,!0)({value:sa}))},[oa,ra]);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Scrollbars,{children:jsxRuntimeExports.jsx(ContentWrapper$2,{children:jsxRuntimeExports.jsx(Integrations$1,{integrations:na,onChange:aa})})})})},theme$1o=withTheme(scheme$E),IntegrationsSection=dt$1(EditorIntegrationsSection).withConfig({displayName:"IntegrationsSection",componentId:"sc-1kxjp7f-1"})(["display:flex;flex:1;overflow:hidden;",""],theme$1o.colors(ea=>lt$1(["background-color:",";"],ea.background))),defaultColors$X={panel:{background:"#323232",color:"#FFF",icon:"#AAA",tag:"#AAAAAA"},item:{background:"rgba(0, 0, 0, 0.35)",relativeTime:"#FFF",date:"#AAAAAA",author:"#AAAAAA",selected:"rgba(73, 128, 245, 1)"},notfound:{icon:"#AAAAAA",title:"#AAA",desc:"#FFF"}},colors$X={dark:defaultColors$X},defaultSizing$L={panel:{fontSize:"14px",fontWeight:"400",lineHeight:"19px"},item:{time:{fontSize:"14px",fontWeight:"600",lineHeight:"19px"},author:{fontSize:"11px",fontWeight:"600",lineHeight:"15px"}},notfound:{title:{fontSize:"16px",fontWeight:"500",lineHeight:"19px"},desc:{fontSize:"12px",fontWeight:"400",lineHeight:"14px"}}},sizes$X={default:defaultSizing$L},scheme$B=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$X,sizes:sizes$X},Symbol.toStringTag,{value:"Module"}));var md5$1={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",na={rotl:function(ra,oa){return ra<<oa|ra>>>32-oa},rotr:function(ra,oa){return ra<<32-oa|ra>>>oa},endian:function(ra){if(ra.constructor==Number)return na.rotl(ra,8)&16711935|na.rotl(ra,24)&4278255360;for(var oa=0;oa<ra.length;oa++)ra[oa]=na.endian(ra[oa]);return ra},randomBytes:function(ra){for(var oa=[];ra>0;ra--)oa.push(Math.floor(Math.random()*256));return oa},bytesToWords:function(ra){for(var oa=[],aa=0,sa=0;aa<ra.length;aa++,sa+=8)oa[sa>>>5]|=ra[aa]<<24-sa%32;return oa},wordsToBytes:function(ra){for(var oa=[],aa=0;aa<ra.length*32;aa+=8)oa.push(ra[aa>>>5]>>>24-aa%32&255);return oa},bytesToHex:function(ra){for(var oa=[],aa=0;aa<ra.length;aa++)oa.push((ra[aa]>>>4).toString(16)),oa.push((ra[aa]&15).toString(16));return oa.join("")},hexToBytes:function(ra){for(var oa=[],aa=0;aa<ra.length;aa+=2)oa.push(parseInt(ra.substr(aa,2),16));return oa},bytesToBase64:function(ra){for(var oa=[],aa=0;aa<ra.length;aa+=3)for(var sa=ra[aa]<<16|ra[aa+1]<<8|ra[aa+2],la=0;la<4;la++)aa*8+la*6<=ra.length*8?oa.push(ea.charAt(sa>>>6*(3-la)&63)):oa.push("=");return oa.join("")},base64ToBytes:function(ra){ra=ra.replace(/[^A-Z0-9+\/]/ig,"");for(var oa=[],aa=0,sa=0;aa<ra.length;sa=++aa%4)sa!=0&&oa.push((ea.indexOf(ra.charAt(aa-1))&Math.pow(2,-2*sa+8)-1)<<sa*2|ea.indexOf(ra.charAt(aa))>>>6-sa*2);return oa}};crypt.exports=na}()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var ea={utf8:{stringToBytes:function(na){return ea.bin.stringToBytes(unescape(encodeURIComponent(na)))},bytesToString:function(na){return decodeURIComponent(escape(ea.bin.bytesToString(na)))}},bin:{stringToBytes:function(na){for(var ra=[],oa=0;oa<na.length;oa++)ra.push(na.charCodeAt(oa)&255);return ra},bytesToString:function(na){for(var ra=[],oa=0;oa<na.length;oa++)ra.push(String.fromCharCode(na[oa]));return ra.join("")}}};return charenc_1=ea,charenc_1}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var isBuffer_1,hasRequiredIsBuffer$2;function requireIsBuffer$2(){if(hasRequiredIsBuffer$2)return isBuffer_1;hasRequiredIsBuffer$2=1,isBuffer_1=function(ra){return ra!=null&&(ea(ra)||na(ra)||!!ra._isBuffer)};function ea(ra){return!!ra.constructor&&typeof ra.constructor.isBuffer=="function"&&ra.constructor.isBuffer(ra)}function na(ra){return typeof ra.readFloatLE=="function"&&typeof ra.slice=="function"&&ea(ra.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var ea=requireCrypt(),na=requireCharenc().utf8,ra=requireIsBuffer$2(),oa=requireCharenc().bin,aa=function(sa,la){sa.constructor==String?la&&la.encoding==="binary"?sa=oa.stringToBytes(sa):sa=na.stringToBytes(sa):ra(sa)?sa=Array.prototype.slice.call(sa,0):!Array.isArray(sa)&&sa.constructor!==Uint8Array&&(sa=sa.toString());for(var ca=ea.bytesToWords(sa),ua=sa.length*8,da=1732584193,pa=-271733879,ha=-1732584194,ga=271733878,fa=0;fa<ca.length;fa++)ca[fa]=(ca[fa]<<8|ca[fa]>>>24)&16711935|(ca[fa]<<24|ca[fa]>>>8)&4278255360;ca[ua>>>5]|=128<<ua%32,ca[(ua+64>>>9<<4)+14]=ua;for(var ma=aa._ff,va=aa._gg,xa=aa._hh,ya=aa._ii,fa=0;fa<ca.length;fa+=16){var Aa=da,Ca=pa,Sa=ha,wa=ga;da=ma(da,pa,ha,ga,ca[fa+0],7,-680876936),ga=ma(ga,da,pa,ha,ca[fa+1],12,-389564586),ha=ma(ha,ga,da,pa,ca[fa+2],17,606105819),pa=ma(pa,ha,ga,da,ca[fa+3],22,-1044525330),da=ma(da,pa,ha,ga,ca[fa+4],7,-176418897),ga=ma(ga,da,pa,ha,ca[fa+5],12,1200080426),ha=ma(ha,ga,da,pa,ca[fa+6],17,-1473231341),pa=ma(pa,ha,ga,da,ca[fa+7],22,-45705983),da=ma(da,pa,ha,ga,ca[fa+8],7,1770035416),ga=ma(ga,da,pa,ha,ca[fa+9],12,-1958414417),ha=ma(ha,ga,da,pa,ca[fa+10],17,-42063),pa=ma(pa,ha,ga,da,ca[fa+11],22,-1990404162),da=ma(da,pa,ha,ga,ca[fa+12],7,1804603682),ga=ma(ga,da,pa,ha,ca[fa+13],12,-40341101),ha=ma(ha,ga,da,pa,ca[fa+14],17,-1502002290),pa=ma(pa,ha,ga,da,ca[fa+15],22,1236535329),da=va(da,pa,ha,ga,ca[fa+1],5,-165796510),ga=va(ga,da,pa,ha,ca[fa+6],9,-1069501632),ha=va(ha,ga,da,pa,ca[fa+11],14,643717713),pa=va(pa,ha,ga,da,ca[fa+0],20,-373897302),da=va(da,pa,ha,ga,ca[fa+5],5,-701558691),ga=va(ga,da,pa,ha,ca[fa+10],9,38016083),ha=va(ha,ga,da,pa,ca[fa+15],14,-660478335),pa=va(pa,ha,ga,da,ca[fa+4],20,-405537848),da=va(da,pa,ha,ga,ca[fa+9],5,568446438),ga=va(ga,da,pa,ha,ca[fa+14],9,-1019803690),ha=va(ha,ga,da,pa,ca[fa+3],14,-187363961),pa=va(pa,ha,ga,da,ca[fa+8],20,1163531501),da=va(da,pa,ha,ga,ca[fa+13],5,-1444681467),ga=va(ga,da,pa,ha,ca[fa+2],9,-51403784),ha=va(ha,ga,da,pa,ca[fa+7],14,1735328473),pa=va(pa,ha,ga,da,ca[fa+12],20,-1926607734),da=xa(da,pa,ha,ga,ca[fa+5],4,-378558),ga=xa(ga,da,pa,ha,ca[fa+8],11,-2022574463),ha=xa(ha,ga,da,pa,ca[fa+11],16,1839030562),pa=xa(pa,ha,ga,da,ca[fa+14],23,-35309556),da=xa(da,pa,ha,ga,ca[fa+1],4,-1530992060),ga=xa(ga,da,pa,ha,ca[fa+4],11,1272893353),ha=xa(ha,ga,da,pa,ca[fa+7],16,-155497632),pa=xa(pa,ha,ga,da,ca[fa+10],23,-1094730640),da=xa(da,pa,ha,ga,ca[fa+13],4,681279174),ga=xa(ga,da,pa,ha,ca[fa+0],11,-358537222),ha=xa(ha,ga,da,pa,ca[fa+3],16,-722521979),pa=xa(pa,ha,ga,da,ca[fa+6],23,76029189),da=xa(da,pa,ha,ga,ca[fa+9],4,-640364487),ga=xa(ga,da,pa,ha,ca[fa+12],11,-421815835),ha=xa(ha,ga,da,pa,ca[fa+15],16,530742520),pa=xa(pa,ha,ga,da,ca[fa+2],23,-995338651),da=ya(da,pa,ha,ga,ca[fa+0],6,-198630844),ga=ya(ga,da,pa,ha,ca[fa+7],10,1126891415),ha=ya(ha,ga,da,pa,ca[fa+14],15,-1416354905),pa=ya(pa,ha,ga,da,ca[fa+5],21,-57434055),da=ya(da,pa,ha,ga,ca[fa+12],6,1700485571),ga=ya(ga,da,pa,ha,ca[fa+3],10,-1894986606),ha=ya(ha,ga,da,pa,ca[fa+10],15,-1051523),pa=ya(pa,ha,ga,da,ca[fa+1],21,-2054922799),da=ya(da,pa,ha,ga,ca[fa+8],6,1873313359),ga=ya(ga,da,pa,ha,ca[fa+15],10,-30611744),ha=ya(ha,ga,da,pa,ca[fa+6],15,-1560198380),pa=ya(pa,ha,ga,da,ca[fa+13],21,1309151649),da=ya(da,pa,ha,ga,ca[fa+4],6,-145523070),ga=ya(ga,da,pa,ha,ca[fa+11],10,-1120210379),ha=ya(ha,ga,da,pa,ca[fa+2],15,718787259),pa=ya(pa,ha,ga,da,ca[fa+9],21,-343485551),da=da+Aa>>>0,pa=pa+Ca>>>0,ha=ha+Sa>>>0,ga=ga+wa>>>0}return ea.endian([da,pa,ha,ga])};aa._ff=function(sa,la,ca,ua,da,pa,ha){var ga=sa+(la&ca|~la&ua)+(da>>>0)+ha;return(ga<<pa|ga>>>32-pa)+la},aa._gg=function(sa,la,ca,ua,da,pa,ha){var ga=sa+(la&ua|ca&~ua)+(da>>>0)+ha;return(ga<<pa|ga>>>32-pa)+la},aa._hh=function(sa,la,ca,ua,da,pa,ha){var ga=sa+(la^ca^ua)+(da>>>0)+ha;return(ga<<pa|ga>>>32-pa)+la},aa._ii=function(sa,la,ca,ua,da,pa,ha){var ga=sa+(ca^(la|~ua))+(da>>>0)+ha;return(ga<<pa|ga>>>32-pa)+la},aa._blocksize=16,aa._digestsize=16,md5$1.exports=function(sa,la){if(sa==null)throw new Error("Illegal argument "+sa);var ca=ea.wordsToBytes(aa(sa,la));return la&&la.asBytes?ca:la&&la.asString?oa.bytesToString(ca):ea.bytesToHex(ca)}}()),md5$1.exports}var md5Exports=requireMd5();const md5=getDefaultExportFromCjs(md5Exports),PhotoFrame=dt$1.div.withConfig({displayName:"PhotoFrame",componentId:"sc-1j90r3g-0"})([""]),NameHolder=dt$1.span.withConfig({displayName:"NameHolder",componentId:"sc-ien6fb-0"})([""]),generateGravatar=ea=>`https://www.gravatar.com/avatar/${md5(ea)}?s=200`,Avatar=ea=>{const{className:na,onClick:ra,gravatar:oa,avatar:aa,name:sa}=ea,la=aa||(oa?generateGravatar(oa):"");return jsxRuntimeExports.jsxs("div",{className:na,onClick:ra,children:[la&&jsxRuntimeExports.jsx(PhotoFrame,{children:jsxRuntimeExports.jsx("img",{src:la,alt:""})}),sa&&jsxRuntimeExports.jsx(NameHolder,{children:sa})]})},Avatar$1=dt$1(Avatar).withConfig({displayName:"Avatar",componentId:"sc-pklhfd-0"})(["display:flex;flex-direction:row;align-items:center;","{border-radius:50%;overflow:hidden;"," img{width:100%;height:100%;object-fit:cover;}}","{margin-left:9px;font-weight:600;}",""],PhotoFrame,({size:ea=34})=>lt$1(["width:","px;height:","px;"],ea,ea),NameHolder,({onClick:ea})=>lt$1(["cursor:",";"],ea?"pointer":"auto")),SvgCopy=ea=>reactExports.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46124 12H5.07674C3.92761 12 3 11.0723 3 9.92308V5.07692C3 3.92769 3.92761 3 5.07674 3H9.92248C11.0716 3 11.9992 3.92769 11.9992 5.07692V7.15385C12.033 7.16872 10.9568 7.17413 10.9608 7.15385V5.07692C10.9608 4.50231 10.497 4.03846 9.92248 4.03846H5.07674C4.50218 4.03846 4.03837 4.50231 4.03837 5.07692V9.92308C4.03837 10.4977 4.50218 10.9615 5.07674 10.9615H6.46124V12Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53876 3L9.92248 3C11.0716 3 11.9992 3.92769 11.9992 5.07692L12 9.92308C12 11.0723 11.0724 12 9.92326 12H5.07674C3.92761 12 3 11.0723 3 9.92308L3.00078 7.84615C2.96698 7.83128 4.04321 7.82587 4.03915 7.84615L4.03837 9.92308C4.03837 10.4977 4.50218 10.9615 5.07674 10.9615H9.92326C10.4978 10.9615 10.9616 10.4977 10.9616 9.92308L10.9608 5.07692C10.9608 4.50231 10.497 4.03846 9.92248 4.03846L8.53876 4.03846V3Z"}),reactExports.createElement("path",{d:"M7.96154 2.07715C7.96154 1.50253 7.49769 1.03846 6.92308 1.03846H2.07692C1.50231 1.03846 1.03846 1.50231 1.03846 2.07692V6.92308C1.03846 7.49744 1.5019 7.96113 2.07617 7.96154V9C0.927288 8.9996 0 8.07206 0 6.92308V2.07692C0 0.927692 0.927692 0 2.07692 0H6.92308C8.07231 0 9 0.927692 9 2.07692V4.15385L8.99925 4.15547L9 2.07692L7.96154 2.07715Z"})),SvgRevert=ea=>reactExports.createElement("svg",{width:11,height:13,viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2.5L6 -4.76837e-07V5L2 2.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.49529 13C4.02236 13 2.63812 12.4273 1.60195 11.3889C0.645082 10.4318 0.0765979 9.16351 0 7.81791H1.29823C1.37887 8.8718 1.85058 9.85109 2.62737 10.5756C3.40953 11.3042 4.42822 11.7048 5.4953 11.7048C7.81625 11.7048 9.70311 9.81682 9.70311 7.49664C9.70311 6.42998 9.30262 5.41171 8.57422 4.62868C7.84985 3.85036 6.87013 3.37786 5.8165 3.2972V2C8.7234 2.16803 11 4.58298 11 7.49664C11 10.5313 8.52987 13 5.49529 13Z"})),RevisionsContext=React.createContext({activeRevision:"",revisions:[],setRevisions:()=>{},setActiveRevision:()=>{}}),DateWrapper=dt$1.div.withConfig({displayName:"RevisionItem__DateWrapper",componentId:"sc-1951nls-0"})([""]),RelativeTime=dt$1.span.withConfig({displayName:"RevisionItem__RelativeTime",componentId:"sc-1951nls-1"})([""]),DateTime=dt$1.span.withConfig({displayName:"RevisionItem__DateTime",componentId:"sc-1951nls-2"})([""]),AuthorWrapper=dt$1.div.withConfig({displayName:"RevisionItem__AuthorWrapper",componentId:"sc-1951nls-3"})([""]),PublishedBy=dt$1.span.withConfig({displayName:"RevisionItem__PublishedBy",componentId:"sc-1951nls-4"})([""]),AuthorName$1=dt$1.span.withConfig({displayName:"RevisionItem__AuthorName",componentId:"sc-1951nls-5"})([""]),ButtonsWrapper$2=dt$1.div.withConfig({displayName:"RevisionItem__ButtonsWrapper",componentId:"sc-1951nls-6"})([""]),RevisionItem=ea=>{const{className:na,publishedAt:ra,author:oa,id:aa,isCurrent:sa}=ea,{activeRevision:la,setActiveRevision:ca,revisions:ua}=reactExports.useContext(RevisionsContext),{t:da}=useTranslation(),pa=useOpenNotice("confirm",!0),ha=la===aa||la===""&&sa,ga=({hits:Aa})=>{const Ca=new URL(window.location.href);Ca.searchParams.set("document",Aa.id),window.open(Ca.toString(),"_blank")},[fa,{status:ma}]=useRequest(duplicateDocument,{onSuccess:ga,initialStatus:"success"}),va=reactExports.useCallback(()=>{ca(sa?"":aa)},[aa,sa,ca]),xa=reactExports.useCallback(async()=>{fa(aa)},[fa,aa]),ya=reactExports.useCallback(async()=>{if(await pa({title:da("Restore History"),content:da("Are you sure you want to restore this version? It will replace the current version and remove all unsaved changes."),cancelLabel:da("Cancel"),confirmLabel:da("Restore")})){const Ca=ua.findIndex(wa=>wa.id===aa);await documentAPI().revert(Ca+1)&&window.location.reload()}},[aa,pa,ua,da]);return jsxRuntimeExports.jsxs("div",{className:`${na} ${ha?"depicter-item-selected":""}`,onClick:va,children:[jsxRuntimeExports.jsxs(DateWrapper,{children:[jsxRuntimeExports.jsx(RelativeTime,{children:sa?da("Current"):calRelativeTime(ra)}),jsxRuntimeExports.jsx(DateTime,{children:formatDateAndTime(ra,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0})})]}),jsxRuntimeExports.jsxs(AuthorWrapper,{children:[jsxRuntimeExports.jsx(Avatar$1,{avatar:oa.avatar,size:12}),jsxRuntimeExports.jsxs(PublishedBy,{children:[da("Published by "),jsxRuntimeExports.jsx(AuthorName$1,{children:oa.name})]})]}),!sa&&jsxRuntimeExports.jsxs(ButtonsWrapper$2,{children:[jsxRuntimeExports.jsx(OutlineButton$1,{size:"medium",icon:jsxRuntimeExports.jsx(SvgCopy,{}),onClick:()=>{xa()},loading:ma==="loading",children:da("Make a copy")}),jsxRuntimeExports.jsx(SolidButton,{size:"medium",icon:jsxRuntimeExports.jsx(SvgRevert,{}),onClick:()=>{ya()},children:da("Restore")})]})]})},theme$1n=withTheme(scheme$B),RevisionItem$1=dt$1(RevisionItem).withConfig({displayName:"RevisionItem",componentId:"sc-1951nls-7"})(["padding:18px 15px;transition:all 150ms ease-out;cursor:pointer;","{display:flex;gap:7px;margin-bottom:5px;align-items:center;}","{display:flex;gap:5px;align-items:center;}","{text-transform:capitalize;font-style:italic;}","{display:flex;gap:5px;height:0;overflow:hidden;transition:height 300ms ease-out;",",","{margin-top:15px;font-weight:600;line-height:16px;}}&.depicter-item-selected{","{height:52px;}}"," ",""],DateWrapper,AuthorWrapper,AuthorName$1,ButtonsWrapper$2,OutlineButton$1,SolidButton,ButtonsWrapper$2,theme$1n.colors(ea=>lt$1(["background-color:",";","{color:",";}","{color:",";}","{color:",";}&:hover,&.depicter-item-selected{box-shadow:0 0 0 2px "," inset;}"],ea.item.background,RelativeTime,ea.item.relativeTime,DateTime,ea.item.date,PublishedBy,ea.item.author,ea.item.selected)),theme$1n.sizes(ea=>lt$1(["",",","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],RelativeTime,DateTime,ea.item.time.fontSize,ea.item.time.fontWeight,ea.item.time.lineHeight,PublishedBy,ea.item.author.fontSize,ea.item.author.fontWeight,ea.item.author.lineHeight))),SvgNotfound=ea=>reactExports.createElement("svg",{width:56,height:59,viewBox:"0 0 56 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3H41C42.1046 3 43 3.89543 43 5V13.0307C44.0294 13.0942 45.0324 13.255 46 13.5041V5C46 2.23858 43.7614 0 41 0H5C2.23858 0 0 2.23858 0 5V54C0 56.7614 2.23858 59 5 59H41C43.7614 59 46 56.7614 46 54V44.4959C45.0324 44.745 44.0294 44.9058 43 44.9693V54C43 55.1046 42.1046 56 41 56H5C3.89543 56 3 55.1046 3 54V5C3 3.89543 3.89543 3 5 3ZM41.8158 18.3334C44.4365 18.3034 46.9765 19.2394 48.9511 20.9626C50.9258 22.6858 52.1969 25.0757 52.522 27.6763C52.847 30.2769 52.2033 32.9062 50.7136 35.0624C49.2239 37.2187 46.9925 38.7511 44.4451 39.3671C41.8977 39.9832 39.2126 39.6399 36.9022 38.4026C35.1794 37.4801 33.7548 36.1086 32.7688 34.45H36.6661C37.4025 34.45 37.9995 33.853 37.9995 33.1166C37.9995 32.3802 37.4025 31.7833 36.6661 31.7833H30.697C30.6764 31.7828 30.6557 31.7828 30.635 31.7833H29.9995C29.2631 31.7833 28.6661 32.3802 28.6661 33.1166V39.7833C28.6661 40.5197 29.2631 41.1166 29.9995 41.1166C30.7358 41.1166 31.3328 40.5197 31.3328 39.7833V37.0811C32.4809 38.5877 33.9464 39.8448 35.6433 40.7535C38.5314 42.3 41.8877 42.7292 45.0719 41.9591C48.2562 41.189 51.0454 39.2735 52.9076 36.5782C54.7697 33.8829 55.5744 30.5963 55.168 27.3456C54.7617 24.0948 53.1728 21.1074 50.7045 18.9534C48.2362 16.7994 45.0612 15.6295 41.7854 15.6669C38.5096 15.7043 35.3622 16.9464 32.9437 19.1563C30.5252 21.3661 29.005 24.389 28.673 27.6482C28.5984 28.3808 29.1317 29.0351 29.8643 29.1098C30.5969 29.1844 31.2513 28.651 31.3259 27.9184C31.5915 25.3111 32.8077 22.8928 34.7425 21.1249C36.6773 19.357 39.1952 18.3633 41.8158 18.3334ZM43.2644 23.7826C43.2644 23.0462 42.6675 22.4492 41.9311 22.4492C41.1947 22.4492 40.5978 23.0462 40.5978 23.7826V29.1159C40.5978 29.4695 40.7382 29.8086 40.9883 30.0587L43.6549 32.7254C44.1756 33.2461 45.0199 33.2461 45.5406 32.7254C46.0613 32.2047 46.0613 31.3604 45.5406 30.8397L43.2644 28.5636V23.7826ZM10.5 8C9.67157 8 9 8.67157 9 9.5C9 10.3284 9.67157 11 10.5 11H30.5C31.3284 11 32 10.3284 32 9.5C32 8.67157 31.3284 8 30.5 8H10.5ZM10.5 18C9.67157 18 9 18.6716 9 19.5C9 20.3284 9.67157 21 10.5 21H24.5C25.3284 21 26 20.3284 26 19.5C26 18.6716 25.3284 18 24.5 18H10.5ZM9 29.5C9 28.6716 9.67157 28 10.5 28H22.5C23.3284 28 24 28.6716 24 29.5C24 30.3284 23.3284 31 22.5 31H10.5C9.67157 31 9 30.3284 9 29.5ZM10.5 38C9.67157 38 9 38.6716 9 39.5C9 40.3284 9.67157 41 10.5 41H23.5C24.3284 41 25 40.3284 25 39.5C25 38.6716 24.3284 38 23.5 38H10.5ZM9 49.5C9 48.6716 9.67157 48 10.5 48H27.5C28.3284 48 29 48.6716 29 49.5C29 50.3284 28.3284 51 27.5 51H10.5C9.67157 51 9 50.3284 9 49.5Z"})),Title$n=dt$1.span.withConfig({displayName:"RevisionsNotfound__Title",componentId:"sc-17rhxof-0"})([""]),Desc$4=dt$1.span.withConfig({displayName:"RevisionsNotfound__Desc",componentId:"sc-17rhxof-1"})([""]),RevisionsNotfound=ea=>{const{className:na}=ea,{t:ra}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(SvgNotfound,{}),jsxRuntimeExports.jsx(Title$n,{children:ra("No history available!")}),jsxRuntimeExports.jsx(Desc$4,{children:ra("There are no histories available for this document. Revisions are created when you publish changes.")})]})},theme$1m=withTheme(scheme$B),RevisionsNotfound$1=dt$1(RevisionsNotfound).withConfig({displayName:"RevisionsNotfound",componentId:"sc-17rhxof-2"})(["display:flex;flex-direction:column;align-items:center;svg{margin-bottom:11px;}","{margin-bottom:7px;}"," ",""],Title$n,theme$1m.colors(ea=>lt$1(["svg{fill:",";}","{color:",";}","{color:",";max-width:60%;text-align:center;line-height:1.5;}"],ea.notfound.icon,Title$n,ea.notfound.title,Desc$4,ea.notfound.desc)),theme$1m.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$n,ea.notfound.title.fontSize,ea.notfound.title.fontWeight,ea.notfound.title.lineHeight,Desc$4,ea.notfound.desc.fontSize,ea.notfound.desc.fontWeight,ea.notfound.desc.lineHeight))),Title$m=dt$1.span.withConfig({displayName:"RevisionsPanel__Title",componentId:"sc-khu7sk-0"})([""]),Tag=dt$1.span.withConfig({displayName:"RevisionsPanel__Tag",componentId:"sc-khu7sk-1"})([""]),CurrentItemWrapper=dt$1.div.withConfig({displayName:"RevisionsPanel__CurrentItemWrapper",componentId:"sc-khu7sk-2"})([""]),ItemsWrapper=dt$1.div.withConfig({displayName:"RevisionsPanel__ItemsWrapper",componentId:"sc-khu7sk-3"})([""]),Container$s=dt$1.div.withConfig({displayName:"RevisionsPanel__Container",componentId:"sc-khu7sk-4"})([""]),RevisionsPanel=({className:ea})=>{const{revisions:na,setRevisions:ra}=reactExports.useContext(RevisionsContext),oa=useSelector(getDocumentAuthor),aa=useSelector(getDocumentLastPublishTime),{t:sa}=useTranslation(),la=reactExports.useCallback(({hits:pa})=>{ra(pa)},[ra]),ca=reactExports.useCallback(pa=>jsxRuntimeExports.jsx(RevisionItem$1,{...pa},pa.id),[]),[ua,{status:da}]=useRequest(getRevisions,{onSuccess:la});return reactExports.useEffect(()=>{ua({ID:editorEnv.documentId})},[ua]),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,children:jsxRuntimeExports.jsx(Container$s,{children:jsxRuntimeExports.jsxs(LoadingSplash$1,{visible:da!=="success",children:[jsxRuntimeExports.jsx(Title$m,{children:sa("Current version")}),jsxRuntimeExports.jsx(CurrentItemWrapper,{children:jsxRuntimeExports.jsx(RevisionItem$1,{id:editorEnv.documentId,author:oa,publishedAt:aa,isCurrent:!0})}),jsxRuntimeExports.jsxs(Title$m,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgClock}),sa("Version History"),jsxRuntimeExports.jsxs(Tag,{children:["(",sa("Select to preview"),")"]})]}),na.length?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ItemsWrapper,{children:na.map(ca)})}):jsxRuntimeExports.jsx(RevisionsNotfound$1,{})]})})})})},theme$1l=withTheme(scheme$B),RevisionsPanel$1=dt$1(RevisionsPanel).withConfig({displayName:"RevisionsPanel",componentId:"sc-khu7sk-5"})(["width:410px;height:100%;","{display:flex;align-items:center;gap:5px;margin-bottom:10px;}"," svg{width:13px;height:13px;}","{margin-bottom:18px;}","{","{margin-bottom:10px;&:last-of-type{margin-bottom:0;}}}","{display:flex;flex-direction:column;padding:25px 20px;min-height:100%;","{flex:1;}}","{margin-top:65px;}"," ",""],Title$m,Icon$4,CurrentItemWrapper,ItemsWrapper,RevisionItem$1,Container$s,LoadingSplash$1,RevisionsNotfound$1,theme$1l.colors(ea=>lt$1(["background-color:",";","{color:",";}","{color:",";}"," svg{fill:",";}"],ea.panel.background,Title$m,ea.panel.color,Tag,ea.panel.tag,Icon$4,ea.panel.icon)),theme$1l.sizes(ea=>lt$1(["",",","{font-size:",";font-weight:",";line-height:",";}"],Title$m,Tag,ea.panel.fontSize,ea.panel.fontWeight,ea.panel.lineHeight))),RevisionsSection=()=>{const[ea,na]=reactExports.useState(""),[ra,oa]=reactExports.useState([]),aa=useHTMLElementRefsReducer();return jsxRuntimeExports.jsx(HTMLElementRefsContext.Provider,{value:aa,children:jsxRuntimeExports.jsxs(RevisionsContext.Provider,{value:{revisions:ra,activeRevision:ea,setActiveRevision:na,setRevisions:oa},children:[jsxRuntimeExports.jsx(RevisionsPanel$1,{}),jsxRuntimeExports.jsx(LivePreview$1,{breakpointBoxes:orderedBreakpointBoxes,revisionId:ea})]})})},RevisionsSection$1=dt$1(RevisionsSection).withConfig({displayName:"RevisionsSection",componentId:"sc-xzws48-0"})([""]),defaultColors$W={background:"#323232",title:"#FFF",leads:{header:{bg:"#3B3B3B",border:"#444444"},column:{bg:"#323232"},item:{bg:"#212121",hover:"#444",selected:"#070707"},detail:{bg:"#252525",pagination:"#212121"}}},colors$W={dark:defaultColors$W},defaultSizing$K={title:{fontSize:"25px",fontWeight:"700",lineHeight:"34px"}},sizes$W={default:defaultSizing$K},scheme$A=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$W,sizes:sizes$W},Symbol.toStringTag,{value:"Module"})),defaultColors$V={label:"#AAAAAA"},colors$V={dark:defaultColors$V},defaultSizes$b={label:{fontSize:"14px",fontWeight:"400",lineHeight:"16px"}},sizes$V={default:defaultSizes$b},scheme$z=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$V,sizes:sizes$V},Symbol.toStringTag,{value:"Module"})),initialState$1={items:[],status:{loading:"inprogress",hasMore:!1,noResults:!1},page:1,params:{},additionalState:{},response:{}},reset=()=>({type:"RESET"}),updateStatus=ea=>({type:"UPDATE_STATUS",payload:ea}),pushItems=ea=>({type:"PUSH_ITEMS",payload:ea}),changePage=ea=>({type:"CHANGE_PAGE",payload:ea}),setResponse=ea=>({type:"SET_RESPONSE",payload:ea}),usePaginatedRemote=(ea,na)=>{const{axios:ra=Axios,getRequestConfig:oa,resetDependency:aa,onReset:sa}=na,la=reactExports.useContext(ea),{dispatch:ca,state:{params:ua,page:da}}=la;return reactExports.useLayoutEffect(()=>{ca(reset()),sa?.()},[oa,ca,aa,JSON.stringify(ua)]),reactExports.useEffect(()=>{const{CancelToken:pa}=Axios;let ha;return ra.request({...oa({...ua,page:da}),cancelToken:new pa(ga=>{ha=ga})}).then(({data:ga})=>{const{hits:fa,hasMore:ma}=ga;ca(setResponse(ga)),ca(pushItems(fa)),ca(updateStatus({hasMore:ma,loading:"succeed",error:""}))}).catch(ga=>{Axios.isCancel(ga)||ca(updateStatus({hasMore:!1,loading:"failed",error:ga})),ha=null}),()=>{ha&&ha()}},[ra,ca,oa,da,JSON.stringify(ua)]),la},paginatedRemoteReducer=()=>(ea,na)=>{switch(na.type){case"RESET":return{...ea,items:[],status:{...initialState$1.status},page:1};case"CLEAR_ITEMS":return{...ea,items:[]};case"RESET_STATUS":return{...ea,status:initialState$1.status};case"SET_STATUS":return{...ea,status:na.payload};case"PUSH_ITEMS":return{...ea,items:uniqBy([...ea.items,...na.payload],"id")};case"SET_ITEMS":return{...ea,items:na.payload};case"CHANGE_PAGE":return{...ea,page:na.payload};case"UPDATE_STATUS":return{...ea,status:{...ea.status,...na.payload}};case"SET_RESPONSE":return{...ea,response:na.payload};default:return ea}},leadsInitialState={...initialState$1,params:{s:"",page:1,perpage:20,orderBy:"created_at",order:"DESC",sources:["all"],dateEnd:"",dateStart:"",includeFields:!0},additionalState:{columns:[],selectedItems:[],popoverId:"",popoverButtonRect:null,axios:lodashExports.noop,initialColumns:[],columnsConfig:{},compactDetails:!0,activeLeadId:null,activeRoute:"list"},response:null},leadsReducer=(ea,na)=>{switch(na.type){case"SET_ACTIVE_LEAD":return{...ea,additionalState:{...ea.additionalState,activeLeadId:na.payload}};case"SET_ACTIVE_ROUTE":return{...ea,additionalState:{...ea.additionalState,activeRoute:na.payload}};case"SET_LEADS_SOURCES":return{...ea,params:{...ea.params,sources:na.payload}};case"SET_LEADS_DATE_RANGE":return{...ea,params:{...ea.params,dateStart:na.payload.start,dateEnd:na.payload.end}};case"SET_LEADS_START_DATE":return{...ea,params:{...ea.params,dateStart:na.payload}};case"SET_LEADS_END_DATE":return{...ea,params:{...ea.params,dateEnd:na.payload}};case"SET_LEADS_SEARCH":return{...ea,params:{...ea.params,s:na.payload}};case"SET_LEADS_ORDER_BY":return{...ea,params:{...ea.params,orderBy:na.payload}};case"SET_LEADS_ORDER":return{...ea,params:{...ea.params,order:na.payload}};case"SET_LEADS_COLUMNS":return{...ea,additionalState:{...ea.additionalState,columns:na.payload}};case"SET_SELECTED_LEAD":{let{selectedItems:ra}=ea.additionalState;return na.payload==="all"?ra=ea.items.map(oa=>oa.id):ra.push(na.payload),{...ea,additionalState:{...ea.additionalState,selectedItems:ra}}}case"CLEAR_SELECTED_LEAD":{let{selectedItems:ra}=ea.additionalState;return na.payload==="all"?ra=[]:ra=ra.filter(oa=>oa!==na.payload),{...ea,additionalState:{...ea.additionalState,selectedItems:ra}}}case"SET_LEADS_POPOVER_ID":return{...ea,additionalState:{...ea.additionalState,popoverId:na.payload}};case"SET_SCROLLBARS_REF":return{...ea,additionalState:{...ea.additionalState,scrollbarsRef:na.payload}};case"SET_POPOVER_BUTTON_RECT":return{...ea,additionalState:{...ea.additionalState,popoverButtonRect:na.payload}};case"DELETE_LEADS":{const ra=ea.items.filter(aa=>!na.payload.includes(aa.id)),oa=ea.additionalState.selectedItems.filter(aa=>!na.payload.includes(aa));return{...ea,items:ra,additionalState:{...ea.additionalState,selectedItems:oa,columns:ra.length?ea.additionalState.columns:[]}}}default:return ea}},leadsReducer$1=(ea,na)=>leadsReducer(paginatedRemoteReducer()(ea,na),na),LeadsContext=reactExports.createContext({state:leadsInitialState,dispatch:()=>{}}),useLeads=()=>reactExports.useContext(LeadsContext),setLeadsSearch=ea=>({type:"SET_LEADS_SEARCH",payload:ea}),setLeadsDateRange=ea=>({type:"SET_LEADS_DATE_RANGE",payload:ea}),setLeadsStartDate=ea=>({type:"SET_LEADS_START_DATE",payload:ea}),setLeadsEndDate=ea=>({type:"SET_LEADS_END_DATE",payload:ea}),setLeadsSources=ea=>({type:"SET_LEADS_SOURCES",payload:ea}),setLeadsColumns=ea=>({type:"SET_LEADS_COLUMNS",payload:ea}),setLeadsOrderBy=ea=>({type:"SET_LEADS_ORDER_BY",payload:ea}),setLeadsOrder=ea=>({type:"SET_LEADS_ORDER",payload:ea}),setSelectedLead=ea=>({type:"SET_SELECTED_LEAD",payload:ea}),clearSelectedLead=ea=>({type:"CLEAR_SELECTED_LEAD",payload:ea}),setLeadsPopoverId=ea=>({type:"SET_LEADS_POPOVER_ID",payload:ea}),setScrollbarsRef=ea=>({type:"SET_SCROLLBARS_REF",payload:ea}),setPopoverButtonRect=ea=>({type:"SET_POPOVER_BUTTON_RECT",payload:ea}),deleteLeads=ea=>({type:"DELETE_LEADS",payload:ea}),setActiveLead=ea=>({type:"SET_ACTIVE_LEAD",payload:ea}),setActiveRoute=ea=>({type:"SET_ACTIVE_ROUTE",payload:ea});function getEncodedValue(ea,na){if(ea==null)return ea;if(ea.length===0&&ea!=="")return null;const ra=ea instanceof Array?ea[0]:ea;return ra==null,ra}function encodeString(ea){return ea==null?ea:String(ea)}function decodeString$1(ea){const na=getEncodedValue(ea);return na==null?na:String(na)}const StringParam={encode:encodeString,decode:decodeString$1};function objectToSearchString(ea){const na=new URLSearchParams,ra=Object.entries(ea);for(const[oa,aa]of ra)if(aa!==void 0&&aa!==null)if(Array.isArray(aa))for(const sa of aa)na.append(oa,sa??"");else na.append(oa,aa);return na.toString()}'{}[],":'.split("").map(ea=>[ea,encodeURIComponent(ea)]);function encodeQueryParams(ea,na){const ra={},oa=Object.keys(na);for(const aa of oa){const sa=na[aa];ea[aa]?ra[aa]=ea[aa].encode(na[aa]):ra[aa]=sa==null?sa:String(sa)}return ra}function searchStringToObject(ea){const na=new URLSearchParams(ea),ra={};for(let[oa,aa]of na)Object.prototype.hasOwnProperty.call(ra,oa)?Array.isArray(ra[oa])?ra[oa].push(aa):ra[oa]=[ra[oa],aa]:ra[oa]=aa;return ra}class DecodedParamCache{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(na,ra,oa,aa){this.paramsMap.set(na,{stringified:ra,decoded:oa,decode:aa})}has(na,ra,oa){if(!this.paramsMap.has(na))return!1;const aa=this.paramsMap.get(na);return aa?aa.stringified===ra&&(oa==null||aa.decode===oa):!1}get(na){var ra;if(this.paramsMap.has(na))return(ra=this.paramsMap.get(na))==null?void 0:ra.decoded}registerParams(na){for(const ra of na){const oa=this.registeredParams.get(ra)||0;this.registeredParams.set(ra,oa+1)}}unregisterParams(na){for(const ra of na){const oa=(this.registeredParams.get(ra)||0)-1;oa<=0?(this.registeredParams.delete(ra),this.paramsMap.has(ra)&&this.paramsMap.delete(ra)):this.registeredParams.set(ra,oa)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const decodedParamCache=new DecodedParamCache;function convertInheritedParamStringsToParams(ea,na){var ra,oa,aa;const sa={};let la=!1;const ca=Object.keys(ea);let ua=ca;if(na.includeKnownParams||na.includeKnownParams!==!1&&ca.length===0){const pa=Object.keys((ra=na.params)!=null?ra:{});ua.push(...pa)}for(const pa of ua){const ha=ea[pa];if(ha!=null&&typeof ha=="object"){sa[pa]=ha;continue}la=!0,sa[pa]=(aa=(oa=na.params)==null?void 0:oa[pa])!=null?aa:StringParam}return la?sa:ea}function extendParamConfigForKeys(ea,na,ra,oa){var aa;if(!ra||!na.length)return ea;let sa={...ea},la=!1;for(const ca of na)Object.prototype.hasOwnProperty.call(sa,ca)||(sa[ca]=(aa=ra[ca])!=null?aa:oa,la=!0);return la?sa:ea}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function is(ea,na){return ea===na?ea!==0||na!==0||1/ea===1/na:ea!==ea&&na!==na}function shallowEqual(ea,na,ra){var oa,aa;if(is(ea,na))return!0;if(typeof ea!="object"||ea===null||typeof na!="object"||na===null)return!1;const sa=Object.keys(ea),la=Object.keys(na);if(sa.length!==la.length)return!1;for(let ca=0;ca<sa.length;ca++){const ua=(aa=(oa=void 0)==null?void 0:oa.equals)!=null?aa:is;if(!hasOwnProperty$1.call(na,sa[ca])||!ua(ea[sa[ca]],na[sa[ca]]))return!1}return!0}function getLatestDecodedValues(ea,na,ra){const oa={},aa=Object.keys(na);for(const sa of aa){const la=na[sa],ca=ea[sa];let ua;if(ra.has(sa,ca,la.decode))ua=ra.get(sa);else{if(ua=la.decode(ca),la.equals&&ra.has(sa,ca)){const da=ra.get(sa);la.equals(ua,da)&&(ua=da)}ua!==void 0&&ra.set(sa,ca,ua,la.decode)}ua===void 0&&la.default!==void 0&&(ua=la.default),oa[sa]=ua}return oa}function makeStableGetLatestDecodedValues(){let ea;function na(ra,oa,aa){const sa=getLatestDecodedValues(ra,oa,aa);return ea!=null&&shallowEqual(ea,sa)?ea:(ea=sa,sa)}return na}function serializeUrlNameMap(ea){let na;for(const ra in ea)if(ea[ra].urlName){const aa=`${ea[ra].urlName}\0${ra}`;na?na.push(aa):na=[aa]}return na?na.join(`
`):void 0}function deserializeUrlNameMap(ea){if(ea)return Object.fromEntries(ea.split(`
`).map(na=>na.split("\0")))}function applyUrlNames(ea,na){var ra;let oa={};for(const aa in ea)((ra=na[aa])==null?void 0:ra.urlName)!=null?oa[na[aa].urlName]=ea[aa]:oa[aa]=ea[aa];return oa}let cachedSearchString,cachedUrlNameMapString,cachedSearchStringToObjectFn,cachedParsedQuery={};const memoSearchStringToObject=(ea,na,ra)=>{if(cachedSearchString===na&&cachedSearchStringToObjectFn===ea&&cachedUrlNameMapString===ra)return cachedParsedQuery;cachedSearchString=na,cachedSearchStringToObjectFn=ea;const oa=ea(na??"");cachedUrlNameMapString=ra;const aa=deserializeUrlNameMap(ra);for(let[sa,la]of Object.entries(oa)){aa?.[sa]&&(delete oa[sa],sa=aa[sa],oa[sa]=la);const ca=cachedParsedQuery[sa];shallowEqual(la,ca)&&(oa[sa]=ca)}return cachedParsedQuery=oa,oa},defaultOptions={searchStringToObject,objectToSearchString,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function mergeOptions(ea,na){na==null&&(na={});const ra={...ea,...na};return na.params&&ea.params&&(ra.params={...ea.params,...na.params}),ra}const providerlessContextValue={adapter:{},options:defaultOptions},QueryParamContext=reactExports.createContext(providerlessContextValue);function useQueryParamContext(){const ea=reactExports.useContext(QueryParamContext);if(ea===void 0||ea===providerlessContextValue)throw new Error("useQueryParams must be used within a QueryParamProvider");return ea}function QueryParamProviderInner({children:ea,adapter:na,options:ra}){const{adapter:oa,options:aa}=reactExports.useContext(QueryParamContext),sa=reactExports.useMemo(()=>({adapter:na??oa,options:mergeOptions(aa,ra)}),[na,ra,oa,aa]);return reactExports.createElement(QueryParamContext.Provider,{value:sa},ea)}function QueryParamProvider({children:ea,adapter:na,options:ra}){const oa=na;return oa?reactExports.createElement(oa,null,aa=>reactExports.createElement(QueryParamProviderInner,{adapter:aa,options:ra},ea)):reactExports.createElement(QueryParamProviderInner,{options:ra},ea)}function removeDefaults(ea,na){var ra;for(const oa in ea)((ra=na[oa])==null?void 0:ra.default)!==void 0&&ea[oa]!==void 0&&na[oa].encode(na[oa].default)===ea[oa]&&(ea[oa]=void 0)}function getUpdatedSearchString({changes:ea,updateType:na,currentSearchString:ra,paramConfigMap:oa,options:aa}){const{searchStringToObject:sa,objectToSearchString:la}=aa;na==null&&(na=aa.updateType);let ca;const ua=memoSearchStringToObject(sa,ra),da=extendParamConfigForKeys(oa,Object.keys(ea),aa.params);let pa;if(typeof ea=="function"){const ga=getLatestDecodedValues(ua,da,decodedParamCache);pa=ea(ga)}else pa=ea;ca=encodeQueryParams(da,pa),aa.removeDefaultsFromUrl&&removeDefaults(ca,da),ca=applyUrlNames(ca,da);let ha;return na==="push"||na==="replace"?ha=la(ca):ha=la({...ua,...ca}),ha?.length&&ha[0]!=="?"&&(ha=`?${ha}`),ha??""}function updateSearchString({searchString:ea,adapter:na,navigate:ra,updateType:oa}){const sa={...na.location,search:ea};typeof oa=="string"&&oa.startsWith("replace")?na.replace(sa):na.push(sa)}const immediateTask=ea=>ea(),timeoutTask=ea=>setTimeout(()=>ea(),0),updateQueue=[];function enqueueUpdate(ea,{immediate:na}={}){updateQueue.push(ea);let ra=na?immediateTask:timeoutTask;updateQueue.length===1&&ra(()=>{const oa=updateQueue.slice();updateQueue.length=0;const aa=oa[0].currentSearchString;let sa;for(let la=0;la<oa.length;++la){const ca=la===0?oa[la]:{...oa[la],currentSearchString:sa};sa=getUpdatedSearchString(ca)}ea.options.skipUpdateWhenNoChange&&sa===aa||updateSearchString({searchString:sa??"",adapter:oa[oa.length-1].adapter,navigate:!0,updateType:oa[oa.length-1].updateType})})}function useQueryParams(ea,na){const{adapter:ra,options:oa}=useQueryParamContext(),[aa]=reactExports.useState(makeStableGetLatestDecodedValues),{paramConfigMap:sa,options:la}=parseArguments(ea,na),ca=reactExports.useMemo(()=>mergeOptions(oa,la),[oa,la]);let ua=convertInheritedParamStringsToParams(sa,ca);const da=memoSearchStringToObject(ca.searchStringToObject,ra.location.search,serializeUrlNameMap(ua));ca.includeAllParams&&(ua=extendParamConfigForKeys(ua,Object.keys(da),ca.params,StringParam));const pa=aa(da,ua,decodedParamCache),ha=Object.keys(ua).join("\0");reactExports.useEffect(()=>{const va=ha.split("\0");return decodedParamCache.registerParams(va),()=>{decodedParamCache.unregisterParams(va)}},[ha]);const ga={adapter:ra,paramConfigMap:ua,options:ca},fa=reactExports.useRef(ga);fa.current==null&&(fa.current=ga),reactExports.useEffect(()=>{fa.current.adapter=ra,fa.current.paramConfigMap=ua,fa.current.options=ca},[ra,ua,ca]);const[ma]=reactExports.useState(()=>(xa,ya)=>{const{adapter:Aa,paramConfigMap:Ca,options:Sa}=fa.current;ya==null&&(ya=Sa.updateType),enqueueUpdate({changes:xa,updateType:ya,currentSearchString:Aa.location.search,paramConfigMap:Ca,options:Sa,adapter:Aa},{immediate:!Sa.enableBatching})});return[pa,ma]}var useQueryParams_default=useQueryParams;function parseArguments(ea,na){let ra,oa;return ea===void 0?(ra={},oa=na):Array.isArray(ea)?(ra=Object.fromEntries(ea.map(aa=>[aa,"inherit"])),oa=na):(ra=ea,oa=na),{paramConfigMap:ra,options:oa}}const useQueryParam=(ea,na,ra)=>{const oa=reactExports.useMemo(()=>({[ea]:na??"inherit"}),[ea,na]),[aa,sa]=useQueryParams_default(oa,ra),la=aa[ea],ca=reactExports.useCallback((ua,da)=>sa(typeof ua=="function"?pa=>{const ha=ua(pa[ea]);return{[ea]:ha}}:{[ea]:ua},da),[ea,sa]);return[la,ca]},Label$2=dt$1.span.withConfig({displayName:"LeadsSourceSelect__Label",componentId:"sc-e3mv66-0"})([""]),LeadsSourceSelect=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),[oa,aa]=reactExports.useState([]),{dispatch:sa,state:{params:{sources:la=["all"]}}}=useLeads(),[ca,ua]=useQueryParam("sources",StringParam),da=reactExports.useCallback(({hits:fa})=>{aa([{value:"all",label:ra("All")},...fa.map(ma=>({value:ma.id,label:ma.name}))])},[ra]),[pa,{status:ha}]=useRequest(getDocuments,{onSuccess:da});reactExports.useEffect(()=>{pa({s:"",page:1,perpage:1e3,has:"form"})},[pa]),reactExports.useEffect(()=>{const fa=ca?.split(",")||["all"];sa(setLeadsSources(fa))},[sa,ca]);const ga=reactExports.useCallback(fa=>{if(ha==="loading")return;const va=difference(fa,la)[0]==="all"?["all"]:fa.filter(xa=>xa!=="all");reactDomExports.unstable_batchedUpdates(()=>{sa(setLeadsSources(va)),ua(va.join(","))})},[sa,ua,la,ha]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Label$2,{children:ra("Source")}),jsxRuntimeExports.jsx(MultipleSelect$1,{size:"tiny",value:la,options:oa,loading:ha==="loading",onChange:ga})]})},theme$1k=withTheme(scheme$z),LeadsSourceSelect$1=dt$1(LeadsSourceSelect).withConfig({displayName:"LeadsSourceSelect",componentId:"sc-e3mv66-1"})(["display:flex;align-items:flex-start;gap:10px;","{width:275px;.rc-select .rc-select-selector{min-height:31px;}}","{margin-top:7px;}"," ",""],MultipleSelect$1,Label$2,theme$1k.colors(ea=>lt$1(["","{color:",";}"],Label$2,ea.label)),theme$1k.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Label$2,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight))),defaultColors$U={background:"rgba(7, 7, 7, 1)"},colors$U={dark:defaultColors$U},defaultSizes$a={},sizes$U={default:defaultSizes$a},scheme$y=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$U,sizes:sizes$U},Symbol.toStringTag,{value:"Module"})),defaultColors$T={label:"#AAAAAA"},colors$T={dark:defaultColors$T},defaultSizes$9={label:{fontSize:"14px",fontWeight:"400",lineHeight:"16px"}},sizes$T={default:defaultSizes$9},scheme$x=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$T,sizes:sizes$T},Symbol.toStringTag,{value:"Module"})),PRESET_RANGES={TODAY:"today",YESTERDAY:"yesterday",LAST_7_DAYS:"last_7_days",LAST_30_DAYS:"last_30_days",THIS_MONTH:"this_month",LAST_MONTH:"last_month",ALL_TIME:"all_time",CUSTOM:"custom"},defaultColors$S={label:"#666"},colors$S={default:defaultColors$S},defaultSizes$8={label:{fontSize:"14px",fontWeight:"500",lineHeight:"1.4"}},sizes$S={default:defaultSizes$8},defaultSpacing={gap:"10px"},spacing={default:defaultSpacing},Label$1=dt$1.span.withConfig({displayName:"RangeDatePicker__Label",componentId:"sc-uhv5rp-0"})([""]),DateRangeContainer=dt$1.div.withConfig({displayName:"RangeDatePicker__DateRangeContainer",componentId:"sc-uhv5rp-1"})(["display:flex;flex-direction:row;gap:10px;"]),CustomRangeContainer=dt$1.div.withConfig({displayName:"RangeDatePicker__CustomRangeContainer",componentId:"sc-uhv5rp-2"})(["display:flex;align-items:center;gap:10px;"]),getDateRange=ea=>{const na=new Date,ra=aa=>aa.toISOString().split("T")[0],oa={[PRESET_RANGES.TODAY]:()=>{const aa=new Date(na);return{start:ra(aa),end:ra(aa)}},[PRESET_RANGES.YESTERDAY]:()=>{const aa=new Date(na);return aa.setDate(aa.getDate()-1),{start:ra(aa),end:ra(aa)}},[PRESET_RANGES.LAST_7_DAYS]:()=>{const aa=new Date(na);return aa.setDate(aa.getDate()-6),{start:ra(aa),end:ra(na)}},[PRESET_RANGES.LAST_30_DAYS]:()=>{const aa=new Date(na);return aa.setDate(aa.getDate()-29),{start:ra(aa),end:ra(na)}},[PRESET_RANGES.THIS_MONTH]:()=>{const aa=new Date(na.getFullYear(),na.getMonth(),1);return{start:ra(aa),end:ra(na)}},[PRESET_RANGES.LAST_MONTH]:()=>{const aa=new Date(na.getFullYear(),na.getMonth()-1,1),sa=new Date(na.getFullYear(),na.getMonth(),0);return{start:ra(aa),end:ra(sa)}},[PRESET_RANGES.ALL_TIME]:()=>{const aa=new Date("2020-01-01"),sa=new Date(na);return{start:ra(aa),end:ra(sa)}}};return ea===PRESET_RANGES.CUSTOM?{start:"",end:""}:oa[ea]?.()||{start:"",end:""}},CustomRangePicker=({value:ea,onStartChange:na,onEndChange:ra,startLabel:oa,endLabel:aa,resetLabel:sa,inViewportOptions:la,disableTimePicker:ca=!1,t:ua})=>{const da=pa=>pa?`${pa} 12:00:00`:"";return jsxRuntimeExports.jsxs(CustomRangeContainer,{children:[jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,resetLabel:sa||ua("Clear"),label:oa||ua("Start"),onChange:na,inViewportOptions:la,value:da(ea.start),disableTimePicker:ca}),jsxRuntimeExports.jsx(DatePicker$1,{resetButton:!0,resetLabel:sa||ua("Clear"),label:aa||ua("End"),onChange:ra,inViewportOptions:la,value:da(ea.end),disableTimePicker:ca})]})},getPresetOptions=(ea,na)=>[{value:PRESET_RANGES.TODAY,label:ea("Today")},{value:PRESET_RANGES.YESTERDAY,label:ea("Yesterday")},{value:PRESET_RANGES.LAST_7_DAYS,label:ea("Last 7 days")},{value:PRESET_RANGES.LAST_30_DAYS,label:ea("Last 30 days")},{value:PRESET_RANGES.THIS_MONTH,label:ea("This month")},{value:PRESET_RANGES.LAST_MONTH,label:ea("Last month")},{value:PRESET_RANGES.ALL_TIME,label:ea("All time")},...na?[{value:PRESET_RANGES.CUSTOM,label:ea("Custom Range")}]:[]],RangeDatePicker=ea=>{const{className:na,value:ra,onChange:oa,onPresetChange:aa,label:sa,startLabel:la,endLabel:ca,resetLabel:ua,placeholder:da,inViewportOptions:pa,presetOptions:ha,defaultPreset:ga=PRESET_RANGES.ALL_TIME,showCustomRange:fa=!0,disableTimePicker:ma=!1}=ea,{t:va}=useTranslation(),[xa,ya]=reactExports.useState(ga),Aa=ha||getPresetOptions(va,fa),Ca=ba=>ba?ba.split(" ")[0]:"",Sa=reactExports.useCallback((ba,Ea)=>{const $a=Ca(Ea),Ma={start:ba==="start"?$a:ra?.start||"",end:ba==="end"?$a:ra?.end||""};oa?.(Ma),ya(PRESET_RANGES.CUSTOM)},[oa,ra]),wa=reactExports.useCallback(ba=>{const Ea=ba;if(ya(Ea),aa?.(Ea),Ea!==PRESET_RANGES.CUSTOM){const $a=getDateRange(Ea);console.log("newRange",$a,Ea),oa?.($a)}},[oa,aa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[sa&&jsxRuntimeExports.jsx(Label$1,{children:sa}),jsxRuntimeExports.jsxs(DateRangeContainer,{children:[jsxRuntimeExports.jsx(Select$1,{value:xa,onChange:wa,options:Aa,placeholder:da||va("Select date range")}),xa===PRESET_RANGES.CUSTOM&&jsxRuntimeExports.jsx(CustomRangePicker,{value:ra||{start:"",end:""},onStartChange:ba=>Sa("start",ba),onEndChange:ba=>Sa("end",ba),startLabel:la,endLabel:ca,resetLabel:ua,inViewportOptions:pa,disableTimePicker:ma,t:va})]})]})},theme$1j=withTheme({colors:colors$S,sizes:sizes$S,spacing}),RangeDatePicker$1=dt$1(RangeDatePicker).withConfig({displayName:"RangeDatePicker",componentId:"sc-uhv5rp-3"})(["display:flex;flex-direction:row;gap:10px;","{padding-left:5px;}"," ",""],PopoverEditButton,theme$1j.colors(ea=>lt$1(["","{color:",";}"],Label$1,ea.label)),theme$1j.sizes(ea=>lt$1(["",","," ",",","{font-size:",";font-weight:",";line-height:",";}"],Label$1,DatePicker$1,DateLabel,PopoverEditButton,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight))),Label=dt$1.span.withConfig({displayName:"LeadsDatePicker__Label",componentId:"sc-hqrulx-0"})([""]),popoverPlacement={yPlacement:"bottom",xPlacement:"insideLeft",space:{left:0,bottom:-10}},LeadsDatePicker=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),oa=useLocation(),aa=useNavigate(),sa=reactExports.useMemo(()=>new URLSearchParams(oa.search).get("dateRange"),[oa.search]),[la,ca]=sa?sa.split(","):["",""];console.log("start",la,"end",ca);const{state:{params:{dateStart:ua,dateEnd:da}},dispatch:pa}=useLeads();reactExports.useEffect(()=>{la!==ua&&pa(setLeadsStartDate(la)),ca!==da&&pa(setLeadsEndDate(ca))},[pa,ca,da,la,ua]);const ha=reactExports.useCallback(ga=>{console.log("range",ga);const fa=new URLSearchParams(oa.search);fa.set("dateRange",`${ga.start},${ga.end}`),aa(`${oa.pathname}?${fa.toString()}`,{replace:!0}),pa(setLeadsDateRange(ga))},[oa.pathname,oa.search,aa,pa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Label,{children:ra("Date range")}),jsxRuntimeExports.jsx(RangeDatePicker$1,{value:{start:la,end:ca},onChange:ha,startLabel:ra("Start"),endLabel:ra("End"),resetLabel:ra("Clear"),placeholder:ra("Select date range"),inViewportOptions:popoverPlacement,disableTimePicker:!0})]})},theme$1i=withTheme(scheme$x),LeadsDatePicker$1=dt$1(LeadsDatePicker).withConfig({displayName:"LeadsDatePicker",componentId:"sc-hqrulx-1"})(["display:flex;flex-direction:row;align-items:center;gap:10px;"," ",""],theme$1i.colors(ea=>lt$1(["","{color:",";}"],Label,ea.label)),theme$1i.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Label,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight))),SvgExport=ea=>reactExports.createElement("svg",{width:10,height:14,viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.87158 0C4.45737 0 4.12158 0.335787 4.12158 0.75L4.12158 6.56228L2.59099 5.03168C2.29809 4.73879 1.82322 4.73879 1.53033 5.03168C1.23744 5.32458 1.23744 5.79945 1.53033 6.09234L4.88909 9.4511L5.94975 8.39045L5.94621 8.38691L8.41685 5.91627C8.70974 5.62338 8.70974 5.1485 8.41685 4.85561C8.12396 4.56272 7.64908 4.56272 7.35619 4.85561L5.62158 6.59022L5.62158 0.75C5.62158 0.335786 5.2858 0 4.87158 0ZM0 10H10V14H0V10ZM6.0001 12.5C6.0001 12.2239 6.22396 12 6.5001 12C6.77624 12 7.0001 12.2239 7.0001 12.5C7.0001 12.7761 6.77624 13 6.5001 13C6.22396 13 6.0001 12.7761 6.0001 12.5ZM8.00015 12.5C8.00015 12.2239 8.224 12 8.50015 12C8.77629 12 9.00015 12.2239 9.00015 12.5C9.00015 12.7761 8.77629 13 8.50015 13C8.224 13 8.00015 12.7761 8.00015 12.5Z"})),NotFoundLeadsIcon="data:image/svg+xml,%3csvg%20width='364'%20height='183'%20viewBox='0%200%20364%20183'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='89.5'%20y='48.5'%20width='202'%20height='129'%20rx='5.5'%20stroke='%23444444'%20stroke-width='3'/%3e%3crect%20x='145.5'%20y='94.5'%20width='5.53846'%20height='5.53846'%20rx='1.5'%20stroke='%236A6A6A'/%3e%3crect%20x='145.5'%20y='106.5'%20width='5.53846'%20height='5.53846'%20rx='1.5'%20stroke='%236A6A6A'/%3e%3crect%20x='145.5'%20y='118.5'%20width='5.53846'%20height='5.53846'%20rx='1.5'%20stroke='%236A6A6A'/%3e%3crect%20x='145.5'%20y='130.5'%20width='5.53846'%20height='5.53846'%20rx='1.5'%20stroke='%236A6A6A'/%3e%3crect%20x='145.5'%20y='142.5'%20width='5.53846'%20height='5.53846'%20rx='1.5'%20stroke='%236A6A6A'/%3e%3crect%20x='96'%20y='64'%20width='30'%20height='108'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='130'%20y='64'%20width='153'%20height='8'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='155'%20y='96'%20width='33'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='212'%20y='96'%20width='59'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='155'%20y='108'%20width='24'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='223'%20y='108'%20width='48'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='155'%20y='120'%20width='21'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='226'%20y='120'%20width='45'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='155'%20y='132'%20width='22'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='228'%20y='132'%20width='43'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='155'%20y='144'%20width='49'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3crect%20x='233'%20y='144'%20width='38'%20height='3'%20rx='1'%20fill='%232B2B2B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M98.5%2059C99.8807%2059%20101%2057.8807%20101%2056.5C101%2055.1193%2099.8807%2054%2098.5%2054C97.1193%2054%2096%2055.1193%2096%2056.5C96%2057.8807%2097.1193%2059%2098.5%2059Z'%20fill='%23444444'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M106.5%2059C107.881%2059%20109%2057.8807%20109%2056.5C109%2055.1193%20107.881%2054%20106.5%2054C105.119%2054%20104%2055.1193%20104%2056.5C104%2057.8807%20105.119%2059%20106.5%2059Z'%20fill='%23444444'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M114.5%2059C115.881%2059%20117%2057.8807%20117%2056.5C117%2055.1193%20115.881%2054%20114.5%2054C113.119%2054%20112%2055.1193%20112%2056.5C112%2057.8807%20113.119%2059%20114.5%2059Z'%20fill='%23444444'/%3e%3cpath%20d='M364%2076C364%2082.0751%20359.075%2087%20353%2087C346.925%2087%20342%2082.0751%20342%2076C342%2069.9249%20346.925%2065%20353%2065C359.075%2065%20364%2069.9249%20364%2076ZM347.909%2076C347.909%2078.8118%20350.188%2081.0913%20353%2081.0913C355.812%2081.0913%20358.091%2078.8118%20358.091%2076C358.091%2073.1882%20355.812%2070.9087%20353%2070.9087C350.188%2070.9087%20347.909%2073.1882%20347.909%2076Z'%20fill='%23222222'/%3e%3cpath%20d='M15.2409%2069.2634C15.2409%2067.7238%2016.9076%2066.7615%2018.2409%2067.5313L38.639%2079.3082C39.9724%2080.078%2039.9724%2082.0025%2038.639%2082.7723L18.2409%2094.5491C16.9076%2095.3189%2015.2409%2094.3566%2015.2409%2092.817L15.2409%2069.2634Z'%20fill='%23222222'/%3e%3cpath%20d='M317.665%2033.3621C319.205%2033.3621%20320.167%2035.0287%20319.397%2036.3621L313.499%2046.5777C312.729%2047.911%20310.805%2047.911%20310.035%2046.5777L304.137%2036.3621C303.367%2035.0287%20304.33%2033.3621%20305.869%2033.3621L317.665%2033.3621Z'%20fill='%23222222'/%3e%3crect%20x='328.791'%20y='162.291'%20width='23'%20height='23'%20rx='4'%20transform='rotate(-30%20328.791%20162.291)'%20fill='%23222222'/%3e%3crect%20x='183'%20y='12'%20width='19'%20height='19'%20rx='4'%20fill='%23222222'/%3e%3ccircle%20cx='49'%20cy='169'%20r='10'%20fill='%23222222'/%3e%3crect%20x='64'%20y='46'%20width='5'%20height='21'%20rx='2.5'%20transform='rotate(90%2064%2046)'%20fill='%23222222'/%3e%3crect%20x='56'%20y='59'%20width='5'%20height='21'%20rx='2.5'%20transform='rotate(-180%2056%2059)'%20fill='%23222222'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M200.5%20138C198.137%20138%20195.845%20137.537%20193.688%20136.625C191.604%20135.743%20189.733%20134.482%20188.126%20132.874C186.518%20131.267%20185.257%20129.396%20184.375%20127.312C183.463%20125.154%20183%20122.862%20183%20120.5C183%20118.137%20183.463%20115.846%20184.375%20113.688C185.257%20111.604%20186.518%20109.733%20188.126%20108.126C189.733%20106.518%20191.604%20105.257%20193.688%20104.375C195.846%20103.463%20198.137%20103%20200.5%20103C202.862%20103%20205.154%20103.463%20207.312%20104.375C209.395%20105.257%20211.267%20106.518%20212.874%20108.126C214.481%20109.733%20215.743%20111.604%20216.625%20113.688C217.537%20115.846%20218%20118.137%20218%20120.5C218%20122.862%20217.537%20125.154%20216.625%20127.312C215.743%20129.396%20214.481%20131.267%20212.874%20132.874C211.267%20134.482%20209.395%20135.743%20207.312%20136.625C205.154%20137.537%20202.862%20138%20200.5%20138ZM200.5%20105.673C192.324%20105.673%20185.673%20112.324%20185.673%20120.5C185.673%20128.676%20192.324%20135.327%20200.5%20135.327C208.675%20135.327%20215.327%20128.676%20215.327%20120.5C215.327%20112.324%20208.675%20105.673%20200.5%20105.673Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M194.154%20116.462C193.517%20115.824%20193.517%20114.791%20194.154%20114.154C194.791%20113.517%20195.824%20113.517%20196.462%20114.154L206.846%20124.539C207.483%20125.176%20207.483%20126.209%20206.846%20126.846C206.209%20127.484%20205.176%20127.484%20204.538%20126.846L194.154%20116.462Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M214.994%20137.302C214.357%20136.665%20214.357%20135.631%20214.994%20134.994C215.631%20134.357%20216.665%20134.357%20217.302%20134.994L223.956%20141.649C224.594%20142.286%20224.594%20143.319%20223.956%20143.956C223.319%20144.594%20222.286%20144.594%20221.649%20143.956L214.994%20137.302Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M204.539%20114.154C205.176%20113.517%20206.209%20113.517%20206.846%20114.154C207.483%20114.791%20207.483%20115.824%20206.846%20116.461L196.462%20126.846C195.824%20127.483%20194.791%20127.483%20194.154%20126.846C193.517%20126.209%20193.517%20125.176%20194.154%20124.538L204.539%20114.154Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M332%20130V128C332%20126.939%20331.579%20125.922%20330.828%20125.172C330.078%20124.421%20329.061%20124%20328%20124H320C318.939%20124%20317.922%20124.421%20317.172%20125.172C316.421%20125.922%20316%20126.939%20316%20128V130'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M324%20120C326.209%20120%20328%20118.209%20328%20116C328%20113.791%20326.209%20112%20324%20112C321.791%20112%20320%20113.791%20320%20116C320%20118.209%20321.791%20120%20324%20120Z'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M270%2024V22C270%2020.9391%20269.579%2019.9217%20268.828%2019.1716C268.078%2018.4214%20267.061%2018%20266%2018H258C256.939%2018%20255.922%2018.4214%20255.172%2019.1716C254.421%2019.9217%20254%2020.9391%20254%2022V24'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M262%2014C264.209%2014%20266%2012.2091%20266%2010C266%207.79086%20264.209%206%20262%206C259.791%206%20258%207.79086%20258%2010C258%2012.2091%20259.791%2014%20262%2014Z'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M132%2021V19C132%2017.9391%20131.579%2016.9217%20130.828%2016.1716C130.078%2015.4214%20129.061%2015%20128%2015H120C118.939%2015%20117.922%2015.4214%20117.172%2016.1716C116.421%2016.9217%20116%2017.9391%20116%2019V21'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M124%2011C126.209%2011%20128%209.20914%20128%207C128%204.79086%20126.209%203%20124%203C121.791%203%20120%204.79086%20120%207C120%209.20914%20121.791%2011%20124%2011Z'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M52%20133V131C52%20129.939%2051.5786%20128.922%2050.8284%20128.172C50.0783%20127.421%2049.0609%20127%2048%20127H40C38.9391%20127%2037.9217%20127.421%2037.1716%20128.172C36.4214%20128.922%2036%20129.939%2036%20131V133'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44%20123C46.2091%20123%2048%20121.209%2048%20119C48%20116.791%2046.2091%20115%2044%20115C41.7909%20115%2040%20116.791%2040%20119C40%20121.209%2041.7909%20123%2044%20123Z'%20stroke='%232B2B2B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",OpenEditorIcon="data:image/svg+xml,%3csvg%20width='19'%20height='18'%20viewBox='0%200%2019%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.5%202H2.66667C2.22464%202%201.80072%202.17559%201.48816%202.48816C1.17559%202.80072%201%203.22464%201%203.66667V15.3333C1%2015.7754%201.17559%2016.1993%201.48816%2016.5118C1.80072%2016.8244%202.22464%2017%202.66667%2017H14.3333C14.7754%2017%2015.1993%2016.8244%2015.5118%2016.5118C15.8244%2016.1993%2016%2015.7754%2016%2015.3333V9.5'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2012.0557L6.00195%2012.0537L7.04297%207.98731L10.0684%2011.0073L6.00195%2012.0552L6%2012.0557ZM10.4004%2010.4858V10.4849L7.57031%207.65478L14.6406%200.58496C15.0176%200.20752%2015.5195%200%2016.0527%200C16.5859%200%2017.0898%200.20752%2017.4707%200.58496C18.2461%201.36328%2018.2461%202.6333%2017.4707%203.41601L10.4004%2010.4849V10.4858Z'%20fill='white'/%3e%3c/svg%3e",SvgSmallArrowRight=ea=>reactExports.createElement("svg",{width:8,height:5,viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.53321 4.74414H3.53223L0 1.20703L1.20605 0L3.5332 2.32715L5.86328 0L7.07031 1.20703L3.53418 4.74414H3.53321Z"})),SvgClearSelected=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13.5,height:13.499,viewBox:"0 0 13.5 13.499",...ea},reactExports.createElement("path",{id:"clear_selected","data-name":"clear selected",d:"M7131.75-409.5a3.753,3.753,0,0,1-3.75-3.749v-6a3.753,3.753,0,0,1,3.75-3.749h6a3.754,3.754,0,0,1,3.75,3.749v6a3.754,3.754,0,0,1-3.75,3.749Zm-2.251-9.75v6A2.254,2.254,0,0,0,7131.75-411h6A2.252,2.252,0,0,0,7140-413.25v-6a2.252,2.252,0,0,0-2.249-2.249h-6A2.254,2.254,0,0,0,7129.5-419.25Zm7.372,6.183-2.122-2.122-2.121,2.12a.749.749,0,0,1-1.061,0,.75.75,0,0,1,0-1.059l2.122-2.122-2.122-2.122a.752.752,0,0,1,0-1.061.752.752,0,0,1,1.061,0l2.122,2.122,2.121-2.122a.752.752,0,0,1,1.061,0,.752.752,0,0,1,0,1.061l-2.122,2.122,2.122,2.122a.749.749,0,0,1,0,1.061.754.754,0,0,1-.531.219A.753.753,0,0,1,7136.871-413.067Z",transform:"translate(-7128.001 423)"})),SvgSelectAll=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:13,height:13,viewBox:"0 0 13 13",...ea},reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"clip-path"},reactExports.createElement("rect",{width:13,height:13,fill:"none"}))),reactExports.createElement("g",{id:"select_all","data-name":"select all",clipPath:"url(#clip-path)"},reactExports.createElement("path",{id:"Subtraction_32","data-name":"Subtraction 32",d:"M4-1138.556H-2a2,2,0,0,1-2-2v-6a2,2,0,0,1,2-2H4a2.006,2.006,0,0,1,1.884,1.325l-4.352,4.352-1.94-1.939a.745.745,0,0,0-.53-.22.745.745,0,0,0-.531.22.744.744,0,0,0-.22.53.745.745,0,0,0,.22.53l2.475,2.475a.745.745,0,0,0,.53.22.745.745,0,0,0,.53-.22.745.745,0,0,0,.149-.213.749.749,0,0,0,.194-.14L6-1145.228v4.672A2,2,0,0,1,4-1138.556Z",transform:"translate(7 1151.556)"}),reactExports.createElement("path",{id:"Subtraction_31","data-name":"Subtraction 31",d:"M-2-1138.17h0A3.006,3.006,0,0,1-4-1141v-4a3,3,0,0,1,3-3H3a3.006,3.006,0,0,1,2.83,2H0a2,2,0,0,0-2,2v5.828Z",transform:"translate(4 1148)"}))),SvgDelete=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",id:"delete",width:14,height:13,viewBox:"0 0 14 13",...ea},reactExports.createElement("path",{id:"Subtraction_37","data-name":"Subtraction 37",d:"M2-1145H-4a2,2,0,0,1-2-2v-9H4v9A2,2,0,0,1,2-1145Zm-7-10v8a1,1,0,0,0,1,1H2a1,1,0,0,0,1-1v-8Z",transform:"translate(8 1158)"}),reactExports.createElement("path",{id:"Subtraction_38","data-name":"Subtraction 38",d:"M-3-1149H-4v-1a1,1,0,0,1,1-1H1a1,1,0,0,1,1,1v1H1v-.5a.5.5,0,0,0-.5-.5h-3a.5.5,0,0,0-.5.5v.5Z",transform:"translate(8 1151)"}),reactExports.createElement("rect",{id:"Rectangle_714","data-name":"Rectangle 714",width:14,height:1,rx:.5,transform:"translate(0 2)"}),reactExports.createElement("rect",{id:"Rectangle_718","data-name":"Rectangle 718",width:1,height:4,rx:.5,transform:"translate(5 5)"}),reactExports.createElement("rect",{id:"Rectangle_719","data-name":"Rectangle 719",width:1,height:4,rx:.5,transform:"translate(8 5)"})),SvgArrowLeft$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5,height:8,viewBox:"0 0 5 8",fill:"none",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4.0006L0.000433902 4.00015L0 3.9997L3.86347 0L5 1.17652L2.27214 4.00015L5 6.82378L3.86347 8L0 4.0006Z"}));var fileDownload,hasRequiredFileDownload;function requireFileDownload(){return hasRequiredFileDownload||(hasRequiredFileDownload=1,fileDownload=function(ea,na,ra,oa){var aa=typeof oa<"u"?[oa,ea]:[ea],sa=new Blob(aa,{type:ra||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(sa,na);else{var la=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(sa):window.webkitURL.createObjectURL(sa),ca=document.createElement("a");ca.style.display="none",ca.href=la,ca.setAttribute("download",na),typeof ca.download>"u"&&ca.setAttribute("target","_blank"),document.body.appendChild(ca),ca.click(),setTimeout(function(){document.body.removeChild(ca),window.URL.revokeObjectURL(la)},200)}}),fileDownload}var fileDownloadExports=requireFileDownload();const FileDownload=getDefaultExportFromCjs(fileDownloadExports),LeadsExportButton=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{state:{params:oa,response:aa}}=useLeads(),sa=reactExports.useCallback(da=>{const pa=new Date,ha=`depicter-exported-leads-${pa.toISOString().slice(0,10)}_${pa.toTimeString().slice(0,8)}.csv`,ga=new Blob([da],{type:"text/csv"});FileDownload(ga,ha)},[]),[la,{status:ca}]=useRequest(exportLeads,{onSuccess:sa,initialStatus:"success"}),ua=reactExports.useCallback(()=>{const da=parseInt(aa?.totalHits||"0",10);da>0&&la({...oa,page:1,perpage:da})},[oa,la,aa?.totalHits]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(SolidButton,{size:"small",color:"primary",onClick:ua,icon:jsxRuntimeExports.jsx(SvgExport,{}),tooltip:{content:ra("Export CSV"),options:{id:"workspace",place:"top"}},disabled:ca==="loading"})})},LeadsExportButton$1=dt$1(LeadsExportButton).withConfig({displayName:"LeadsExportButton",componentId:"sc-rxwg38-0"})(["","{width:40px;padding:14px;font-weight:600;}"],SolidButton),defaultColors$R={input:{borderColor:"#505050",background:"#222222",color:"#fff",placeHolderColor:"#696969",hoverBorder:"#c4c4c4"}},colors$R={dark:defaultColors$R},defaultSizes$7={input:{fontSize:"12px",fontWeight:"400",lineHeight:"17px"},result:{fontSize:"14px",fontWeight:"400",lineHeight:"16px"}},sizes$R={default:defaultSizes$7},scheme$w=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$R,sizes:sizes$R},Symbol.toStringTag,{value:"Module"})),LeadsSearchBar=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{state:oa,dispatch:aa}=useLeads(),{params:{s:sa}}=oa,[la,ca]=useQueryParam("s",StringParam);reactExports.useEffect(()=>{const da=la||sa||"";da!==sa&&aa(setLeadsSearch(da))},[aa,la,sa]);const ua=reactExports.useCallback(da=>{reactDomExports.unstable_batchedUpdates(()=>{aa(setLeadsSearch(da)),ca(da)})},[aa,ca]);return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(SearchBar$1,{size:"medium",searchPlaceholder:ra("Search…"),throttleSearch:1e3,onSearch:ua,value:sa})})},theme$1h=withTheme(scheme$w),LeadsSearchBar$1=dt$1(LeadsSearchBar).withConfig({displayName:"LeadsSearchBar",componentId:"sc-e5mj1t-0"})(["display:flex;align-items:center;gap:18px;","{width:180px;margin:0;}","{top:8px !important;left:8px !important;}","{width:25px;}input{height:31px;padding-left:25px;&::placeholder{color:#696969;}&:focus{border-color:#505050 !important;}}","{&:hover input{border-color:#c4c4c4;}}"," ",""],SearchBar$1,IconWrapper,ClearButtonIcon,SearchBar$1,theme$1h.sizes(ea=>lt$1(["input{font-size:",";font-weight:",";line-height:",";}"],ea.input.fontSize,ea.input.fontWeight,ea.input.lineHeight)),theme$1h.colors(ea=>lt$1(["input{border-color:",";background:",";color:",";&::placeholder{color:",";}&:focus{border-color:"," !important;}}&:hover input{border-color:",";}"],ea.input.borderColor,ea.input.background,ea.input.color,ea.input.placeHolderColor,ea.input.borderColor,ea.input.hoverBorder))),defaultColors$Q={},colors$Q={dark:defaultColors$Q},defaultSizes$6={fontSize:"14px",fontWeight:"400",lineHeight:"16px"},sizes$Q={default:defaultSizes$6},scheme$v=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$Q,sizes:sizes$Q},Symbol.toStringTag,{value:"Module"})),LeadsResultsCount=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{state:{response:oa,items:aa}}=useLeads();return jsxRuntimeExports.jsx(Label$6,{className:na,children:oa?.totalHits&&aa.length?ra("{{count}} Results found",{count:parseInt(oa?.totalHits,10)}):null})},theme$1g=withTheme(scheme$v),LeadsResultsCount$1=dt$1(LeadsResultsCount).withConfig({displayName:"LeadsResultsCount",componentId:"sc-mkkqdm-0"})(["margin-top:8px;width:120px;text-align:right;",""],theme$1g.sizes(ea=>lt$1(["font-size:",";font-weight:",";line-height:",";"],ea.fontSize,ea.fontWeight,ea.lineHeight))),RightContainer$3=dt$1.div.withConfig({displayName:"LeadsHeader__RightContainer",componentId:"sc-1gl4w38-0"})([""]),LeftContainer$3=dt$1.div.withConfig({displayName:"LeadsHeader__LeftContainer",componentId:"sc-1gl4w38-1"})([""]),LeadsHeader=ea=>{const{className:na}=ea,ra=reactExports.useRef(null),{state:{additionalState:{isSingleDocument:oa}}}=useLeads();return jsxRuntimeExports.jsxs("div",{className:na,ref:ra,children:[jsxRuntimeExports.jsxs(LeftContainer$3,{children:[!oa&&jsxRuntimeExports.jsx(LeadsSourceSelect$1,{}),jsxRuntimeExports.jsx(LeadsDatePicker$1,{})]}),jsxRuntimeExports.jsxs(RightContainer$3,{children:[jsxRuntimeExports.jsx(LeadsExportButton$1,{}),jsxRuntimeExports.jsx(LeadsSearchBar$1,{}),jsxRuntimeExports.jsx(LeadsResultsCount$1,{})]})]})},theme$1f=withTheme(scheme$y),LeadsHeader$1=dt$1(LeadsHeader).withConfig({displayName:"LeadsHeader",componentId:"sc-1gl4w38-2"})(["display:flex;padding:23px 20px;border-radius:5px;gap:15px 30px;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;",",","{display:flex;align-items:flex-start;gap:8px 30px;}","{flex-wrap:wrap;}","{flex:0 0 auto;}","{flex-direction:row-reverse;justify-content:end;gap:8px 20px;}",""],RightContainer$3,LeftContainer$3,LeftContainer$3,LeadsDatePicker$1,RightContainer$3,theme$1f.colors(ea=>lt$1(["background-color:",";"],ea.background))),defaultColors$P={label:"#AAAAAA"},colors$P={dark:defaultColors$P},defaultSizes$5={label:{fontSize:"22px",fontWeight:"400",lineHeight:"33px"}},sizes$P={default:defaultSizes$5},scheme$u=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$P,sizes:sizes$P},Symbol.toStringTag,{value:"Module"})),LeadsNoResults=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Icon$4,{shape:NotFoundLeadsIcon}),jsxRuntimeExports.jsx(Label$6,{children:na("No leads found in this period.")})]})},theme$1e=withTheme(scheme$u),LeadsNoResult=dt$1(LeadsNoResults).withConfig({displayName:"LeadsNoResult",componentId:"sc-1uoul3p-0"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;","{margin-top:30px;}"," ",""],Label$6,theme$1e.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Label$6,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight)),theme$1e.colors(ea=>lt$1(["","{color:",";}"],Label$6,ea.label))),defaultColors$O={border:"#252525",label:"#AAAAAA",icon:"#AAAAAA",background:"#191919",content:"#FFF"},colors$O={dark:defaultColors$O},defaultSizes$4={label:{fontSize:"11px",fontWeight:"600",lineHeight:"15px"}},sizes$O={default:defaultSizes$4},scheme$t=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$O,sizes:sizes$O},Symbol.toStringTag,{value:"Module"}));class LeadsColumnHelper{items;columns;config;constructor(na,ra=[],oa={}){this.items=na,this.columns=ra,this.config=oa}intersect(){const na=this.items.map(aa=>aa.fields.map(sa=>sa.name)),ra={};na.flat().forEach(aa=>{ra[aa]=(ra[aa]||0)+1});const oa=this.items.length;return this.columns=[...new Set([...this.columns,...Object.keys(ra).filter(aa=>ra[aa]===oa)])],this}exclude(na){return this.columns=this.columns.filter(ra=>!na.includes(ra)),this}sort(){return this.columns=this.columns.sort((na,ra)=>{const oa=this.config[na]!==void 0?this.config[na].order:1/0,aa=this.config[ra]!==void 0?this.config[ra].order:1/0;return oa-aa}),this}result(){return this.columns}}const CheckboxColumn$1=dt$1.div.withConfig({displayName:"LeadsColumn__CheckboxColumn",componentId:"sc-1p68ion-0"})([""]),Column$1=dt$1.div.withConfig({displayName:"LeadsColumn__Column",componentId:"sc-1p68ion-1"})([""]),Container$r=dt$1.div.withConfig({displayName:"LeadsColumn__Container",componentId:"sc-1p68ion-2"})([""]),OpenDetailsContainer=dt$1.div.withConfig({displayName:"LeadsColumn__OpenDetailsContainer",componentId:"sc-1p68ion-3"})([""]),LeadsColumn=ea=>{const{className:na}=ea,{state:{items:ra,params:{order:oa="DESC",orderBy:aa="source"},additionalState:{columns:sa,selectedItems:la,initialColumns:ca,columnsConfig:ua,compactDetails:da},response:pa},dispatch:ha}=useLeads(),{commonFields:ga=[]}=pa,fa=reactExports.useRef(!1),[ma,va]=useQueryParam("sort",StringParam),xa=reactExports.useMemo(()=>la.length?la.length===ra.length:!1,[ra.length,la.length]),ya=reactExports.useMemo(()=>fa.current?sa:new LeadsColumnHelper(ra,[...ca,...ga]).intersect().exclude([]).sort().result(),[ga,ca,ra,sa]);reactExports.useEffect(()=>{ha(setLeadsColumns(ya)),fa.current=!0},[ha,ya]),reactExports.useEffect(()=>{const wa=ma?JSON.parse(ma):{orderBy:aa,order:oa},ba=wa.orderBy||"source_id",Ea=wa.order||"DESC";(ba!==aa||Ea!==oa)&&(ha(setLeadsOrderBy(ba)),ha(setLeadsOrder(Ea)))},[ha,oa,aa,ma]);const Aa=reactExports.useCallback(wa=>{const ba=ua[wa]?.orderName||wa;let Ea="DESC";aa===ba&&(Ea=oa==="DESC"?"ASC":"DESC"),reactDomExports.unstable_batchedUpdates(()=>{ha(setLeadsOrderBy(ba)),ha(setLeadsOrder(Ea)),va(JSON.stringify({orderBy:ba,order:Ea}))})},[ua,ha,oa,aa,va]),Ca=reactExports.useCallback(wa=>{const ba=ua[wa]?.label||formatAsSpaceSeparated(wa),Ea=ua[wa]?.orderName||wa,$a=Ea===aa,Ma=ua[wa]?.size||"",Ia=["created_at","source_id"].includes(Ea);let Oa=` ${Ia?"depicter-columns-orderable":""}`;return Oa+=` ${$a?`depicter-columns-active depicter-columns-${oa}`:""}`,Oa+=` ${Ma?"":"depicter-columns-auto"}`,jsxRuntimeExports.jsxs(Column$1,{className:Oa,style:{width:Ma?`${Ma}px`:`var(--column-width-${wa}, auto)`},onClick:()=>Ia&&Aa(Ea),children:[jsxRuntimeExports.jsx(Label$6,{children:toReadable(ba)}),jsxRuntimeExports.jsx(SvgSmallArrowRight,{})]},wa)},[ua,Aa,oa,aa]),Sa=reactExports.useCallback(wa=>{ha(wa?setSelectedLead("all"):clearSelectedLead("all"))},[ha]);return sa.length?jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsxs(Container$r,{children:[jsxRuntimeExports.jsx(CheckboxColumn$1,{children:jsxRuntimeExports.jsx(Checkbox$1,{value:xa,onChange:Sa})}),sa.map(Ca),da&&jsxRuntimeExports.jsx(OpenDetailsContainer,{})]})}):null},theme$1d=withTheme(scheme$t),LeadsColumn$1=dt$1(LeadsColumn).withConfig({displayName:"LeadsColumn",componentId:"sc-1p68ion-4"})(["position:sticky;top:0;z-index:3;","{display:inline-flex;align-self:start;align-items:center;padding:20px 0;min-width:100%;}","{padding:0 30px;","{display:flex;justify-content:center;> div{margin:0;}label{position:absolute;width:100%;height:100%;padding:15px;cursor:pointer;}}}","{text-transform:uppercase;cursor:inherit;}","{cursor:pointer;flex-grow:0;flex-shrink:0;padding:0 20px;svg{margin-left:5px;visibility:hidden;opacity:0;}&.depicter-columns-ASC{svg{transform:rotate(180deg);}}&.depicter-columns-auto{max-width:230px;}&:not(.depicter-columns-orderable){cursor:auto;svg{display:none;}}&:hover,&.depicter-columns-active{svg{visibility:visible;opacity:1;}}}","{min-width:190px;flex:1;}"," ",""],Container$r,CheckboxColumn$1,Checkbox$1,Label$6,Column$1,OpenDetailsContainer,theme$1d.colors(ea=>lt$1(["","{border-bottom:1px solid ",";background-color:",";}","{color:",";}svg{fill:",";}"],Container$r,ea.border,ea.background,Label$6,ea.label,ea.icon)),theme$1d.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Label$6,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight))),defaultColors$N={label:"#FFF",border:"#252525",background:"transparent",hover:{background:"rgba(253, 253, 253, 0.1)"},selected:{background:"#070707"},popover:{background:"#0e0e0e",border:"#252525"}},colors$N={dark:defaultColors$N},defaultSizes$3={label:{fontSize:"14px",fontWeight:"400",lineHeight:"19px"}},sizes$N={default:defaultSizes$3},scheme$s=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$N,sizes:sizes$N},Symbol.toStringTag,{value:"Module"})),CheckboxColumn=dt$1.div.withConfig({displayName:"LeadsItem__CheckboxColumn",componentId:"sc-fjoeof-0"})([""]),SourceColumn=dt$1.div.withConfig({displayName:"LeadsItem__SourceColumn",componentId:"sc-fjoeof-1"})([""]),RelativeDateColumn=dt$1.div.withConfig({displayName:"LeadsItem__RelativeDateColumn",componentId:"sc-fjoeof-2"})([""]),DateColumn=dt$1.div.withConfig({displayName:"LeadsItem__DateColumn",componentId:"sc-fjoeof-3"})([""]),Column=dt$1.div.withConfig({displayName:"LeadsItem__Column",componentId:"sc-fjoeof-4"})([""]),Container$q=dt$1.div.withConfig({displayName:"LeadsItem__Container",componentId:"sc-fjoeof-5"})([""]),OpenDetailsWrapper=dt$1.div.withConfig({displayName:"LeadsItem__OpenDetailsWrapper",componentId:"sc-fjoeof-6"})([""]),tooltipOptions$1={id:"workspace",place:"top"},LeadsItem=ea=>{const{className:na,source:ra,createdAt:oa,fields:aa,id:sa}=ea,{largeIcon:la,name:ca}=getDocumentTypeMeta(ra.type),{state:{additionalState:{columns:ua,selectedItems:da,popoverId:pa,isSingleDocument:ha,initialColumns:ga,columnsConfig:fa,compactDetails:ma}},dispatch:va}=useLeads(),xa=reactExports.useRef(null),ya=reactExports.useRef(null),Aa=da.includes(sa),Ca=pa===sa;useOnClickOutside(xa,()=>{Ca&&(va(setLeadsPopoverId(null)),va(setPopoverButtonRect(null)))},".depicter-leads-details");const{t:Sa}=useTranslation(),wa=reactExports.useCallback(Ia=>{Ia.stopPropagation(),window.open(getEditorPathByID(ra.id),"_blank")},[ra.id]),ba=reactExports.useCallback((Ia,Oa)=>{if(!Ia)return;const Da=Ia.offsetWidth,Ta=getComputedStyle(document.documentElement).getPropertyValue(`--column-width-${Oa}`),_a=parseFloat(Ta);(Da>_a||Number.isNaN(_a))&&document.documentElement.style.setProperty(`--column-width-${Oa}`,`${Da+10}px`)},[]),Ea=reactExports.useCallback(Ia=>{const Da=aa.find(La=>La.name===Ia)?.value||"N/A",{size:Ta=""}=fa[Ia]||{};let _a="";return _a+=` ${Ta?"":"depicter-columns-auto"}`,jsxRuntimeExports.jsx(Column,{className:_a,ref:La=>ba(La,Ia),style:{width:Ta?`${Ta}px`:`var(--column-width-${Ia}, auto)`},title:Da,children:jsxRuntimeExports.jsx(Label$6,{children:Da})},Ia)},[fa,aa,ba]),$a=reactExports.useCallback(Ia=>{va(Ia?setSelectedLead(sa):clearSelectedLead(sa))},[va,sa]),Ma=reactExports.useCallback(Ia=>{if(!Ia.target.closest(".depicter-checkbox-column"))if(ma){const Oa=ya.current.getBoundingClientRect();va(setLeadsPopoverId(pa?null:sa)),va(setPopoverButtonRect(pa?null:Oa))}else va(setActiveLead(sa)),va(setActiveRoute("lead-detail"))},[ma,va,sa,pa]);return jsxRuntimeExports.jsx("div",{className:`${na} ${Aa?"depicter-item-selected":""} ${Ca?"depicter-item-opened":""}`,ref:xa,children:jsxRuntimeExports.jsxs(Container$q,{onClick:Ma,children:[jsxRuntimeExports.jsx(CheckboxColumn,{className:"depicter-checkbox-column",children:jsxRuntimeExports.jsx(Checkbox$1,{value:Aa,onChange:$a})}),!ha&&jsxRuntimeExports.jsxs(SourceColumn,{style:{width:`${fa.source.size}px`},children:[jsxRuntimeExports.jsx(IconWithTooltip$1,{shape:la,tooltip:{content:ca,options:tooltipOptions$1}}),jsxRuntimeExports.jsx(Label$6,{title:ra.name,children:ra.name}),jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(Icon$4,{shape:OpenEditorIcon}),onClick:wa,tooltip:{content:Sa("Open Editor"),options:tooltipOptions$1}})]}),jsxRuntimeExports.jsx(RelativeDateColumn,{style:{width:`${fa.relativeDate.size}px`},children:jsxRuntimeExports.jsx(Label$6,{children:calRelativeTime(oa)})}),jsxRuntimeExports.jsx(DateColumn,{style:{width:`${fa.date.size}px`},children:jsxRuntimeExports.jsx(Label$6,{children:oa})}),ua.filter(Ia=>!ga.includes(Ia)).map(Ea),ma&&jsxRuntimeExports.jsx(OpenDetailsWrapper,{children:jsxRuntimeExports.jsx(OutlineButton$1,{ref:ya,size:"small",onClick:Ma,children:Sa("View Details")})})]})})},theme$1c=withTheme(scheme$s),LeadsItem$1=dt$1(LeadsItem).withConfig({displayName:"LeadsItem",componentId:"sc-fjoeof-7"})(["transition:all 150ms ease-out;cursor:pointer;","{display:inline-flex;align-items:center;min-width:100%;height:60px;}","{margin-bottom:0;}","{display:flex;}","{padding:0 30px;","{display:flex;justify-content:center;> div{margin:0;}label{position:absolute;width:100%;height:100%;padding:15px;cursor:pointer;}}}","{display:flex;gap:10px;align-items:center;","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;+ ","{opacity:0;transition:all 150ms ease-out;}}&:hover ","{+ ","{opacity:1;}}}",",",",",",","{flex-grow:0;flex-shrink:0;padding:0 20px;}","{position:sticky;display:flex;align-self:stretch;align-items:center;justify-content:end;right:0;padding:0 10px;min-width:190px;flex:1;opacity:0;visibility:hidden;}&:hover,&.depicter-item-opened{","{opacity:1;visibility:visible;background:linear-gradient(270deg,#303030 76.58%,rgba(48,48,48,0) 100%);}}&.depicter-item-selected{","{background:linear-gradient(270deg,#070707 76.58%,rgba(48,48,48,0) 100%);}}","{&.depicter-columns-auto{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px;}}"," ",""],Container$q,Label$6,IconWithTooltip$1,CheckboxColumn,Checkbox$1,SourceColumn,Label$6,IconButton,Label$6,IconButton,Column,DateColumn,RelativeDateColumn,SourceColumn,OpenDetailsWrapper,OpenDetailsWrapper,OpenDetailsWrapper,Column,theme$1c.colors(ea=>lt$1(["","{border-bottom:1px solid ",";background-color:",";}","{color:",";}&:hover,&.depicter-item-opened{","{background:",";}}&.depicter-item-selected{","{background:",";}}"],Container$q,ea.border,ea.background,Label$6,ea.label,Container$q,ea.hover.background,Container$q,ea.selected.background)),theme$1c.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],Label$6,ea.label.fontSize,ea.label.fontWeight,ea.label.lineHeight))),LeadsList=ea=>{const{className:na}=ea,{dispatch:ra,state:{additionalState:{axios:oa}}}=useLeads(),aa=reactExports.useRef(null),sa=reactExports.useCallback(()=>{ra(clearSelectedLead("all"))},[ra]),{state:{page:la,items:ca,status:{hasMore:ua,loading:da}}}=usePaginatedRemote(LeadsContext,{axios:oa,getRequestConfig:getLeads,onReset:sa});reactExports.useEffect(()=>{aa.current&&ra(setScrollbarsRef(aa.current))},[ra]);const pa=reactExports.useCallback(()=>{ra(changePage(la+1))},[la,ra]);return jsxRuntimeExports.jsx(InfiniteScroll$1,{className:na,dataLength:ca.length,hasMore:ua,loader:jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),next:pa,ref:aa,children:jsxRuntimeExports.jsx(LoadingSplash$1,{visible:da!=="succeed",fadeMode:"in",children:ca.length?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LeadsColumn$1,{}),ca.map(ha=>jsxRuntimeExports.jsx(LeadsItem$1,{...ha},ha.id))]}):jsxRuntimeExports.jsx(LeadsNoResult,{})})})},LeadsList$1=dt$1(LeadsList).withConfig({displayName:"LeadsList",componentId:"sc-dc4wq6-0"})([".infinite-scroll-component__outerdiv{height:100%;}.infinite-scroll-component{display:flex;flex-direction:column;overflow:initial !important;min-height:100%;> ","{margin-top:15px;}}","{flex:1;}","{right:0;}","{padding-bottom:100px;}"],DotSpinner$1,LoadingSplash$1,VerticalTrack,ContentWrapper$4),defaultColors$M={background:"#070707",border:"#444"},colors$M={dark:defaultColors$M},defaultSizes$2={},sizes$M={default:defaultSizes$2},scheme$r=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$M,sizes:sizes$M},Symbol.toStringTag,{value:"Module"})),ToolbarButton=dt$1(IconButton).attrs({size:"small"}).withConfig({displayName:"LeadsListControls__ToolbarButton",componentId:"sc-88ijoe-0"})(["padding:0;text-transform:uppercase;"]),LeadsListControls=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{dispatch:oa,state:{additionalState:{scrollbarsRef:aa,selectedItems:sa}}}=useLeads(),la=useOpenNotice("confirm",!0),ca=reactExports.useCallback(()=>{oa(deleteLeads(sa)),aa?.scrollToTop()},[oa,sa,aa]),[ua]=useRequest(deleteLeads$1,{onSuccess:ca}),da=reactExports.useCallback(()=>{oa(clearSelectedLead("all"))},[oa]),pa=reactExports.useCallback(()=>{oa(setSelectedLead("all"))},[oa]),ha=reactExports.useCallback(()=>(la({title:ra("Deleting items"),content:ra("Are you sure you want to delete selected items?"),cancelLabel:ra("Cancel"),confirmLabel:ra("Confirm")}).then(ga=>{ga&&ua({ids:sa})}),!1),[la,ua,sa,ra]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(ToolbarButton,{icon:jsxRuntimeExports.jsx(SvgClearSelected,{}),onClick:da,children:ra("Clear Selected")}),jsxRuntimeExports.jsx(ToolbarButton,{icon:jsxRuntimeExports.jsx(SvgSelectAll,{}),onClick:pa,children:ra("Select All")}),jsxRuntimeExports.jsx(ToolbarButton,{icon:jsxRuntimeExports.jsx(SvgDelete,{}),onClick:ha,children:ra("Delete")})]})},theme$1b=withTheme(scheme$r),LeadsListControls$1=dt$1(LeadsListControls).withConfig({displayName:"LeadsListControls",componentId:"sc-88ijoe-1"})(["display:flex;gap:0 20px;position:absolute;bottom:15px;left:0;padding:24px 45px;border-radius:10px;z-index:2;",""],theme$1b.colors(ea=>lt$1(["background-color:",";border:1px solid ",";"],ea.background,ea.border))),defaultColors$L={title:"#AAAAAA",email:"#4980F5",background:"#000",segmentTitle:"#FFFFFF",content:"#FFFFFF"},colors$L={dark:defaultColors$L},defaultSizes$1={title:{fontSize:"14px",fontWeight:"400",lineHeight:"16px"},segmentTitle:{fontWeight:"600",fontSize:"26px",lineHeight:"36px"}},sizes$L={default:defaultSizes$1},scheme$q=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$L,sizes:sizes$L},Symbol.toStringTag,{value:"Module"})),TableTitle=dt$1.td.withConfig({displayName:"LeadsDetails__TableTitle",componentId:"sc-rbz8z5-0"})([""]),TableContent=dt$1.td.withConfig({displayName:"LeadsDetails__TableContent",componentId:"sc-rbz8z5-1"})([""]),SegmentTitle$1=dt$1.h2.withConfig({displayName:"LeadsDetails__SegmentTitle",componentId:"sc-rbz8z5-2"})([""]),LeadsDetails$1=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),oa=reactExports.useRef(null),[aa,sa]=reactExports.useState({left:0,top:0}),{dispatch:la,state:{items:ca,additionalState:{popoverId:ua,popoverButtonRect:da,scrollbarsRef:pa}}}=useLeads(),ha=reactExports.useMemo(()=>ca.find(ma=>ma.id===ua),[ca,ua]);reactExports.useLayoutEffect(()=>{if(ua&&da&&oa.current&&pa){const{top:ma,height:va,bottom:xa}=da,{height:ya,width:Aa}=oa.current.getBoundingClientRect(),{top:Ca,bottom:Sa,left:wa}=document.querySelector(".depicter-leads-items-container").getBoundingClientRect(),ba=ma+va/2;let Ea=ba-Ca-ya/2,$a="top";const Ma=ba-Ca,Ia=Sa-ba;Ma<ya/2?Ea=ma-Ca:Ia<ya/2&&(Ea=Sa-xa,$a="bottom"),sa({left:da.left-wa-Aa-30,[$a]:Ea})}},[ua,da,pa]);const ga=reactExports.useCallback(ma=>{const{name:va,value:xa,type:ya}=ma;let Aa=xa;return ya==="email"?Aa=jsxRuntimeExports.jsx(SimpleLink,{href:`mailto:${xa}`,children:xa}):ya==="url"&&(Aa=jsxRuntimeExports.jsx(SimpleLink,{href:xa,target:"_blank",children:xa})),jsxRuntimeExports.jsxs("tr",{"data-type":va,children:[jsxRuntimeExports.jsx(TableTitle,{children:va}),jsxRuntimeExports.jsx(TableContent,{title:xa,children:Aa})]},va)},[]),fa=reactExports.useCallback(()=>{la(setLeadsPopoverId(null))},[la]);return!ua&&!ha?null:jsxRuntimeExports.jsxs("div",{className:`${na} depicter-leads-details`,ref:oa,style:aa,children:[jsxRuntimeExports.jsx(CloseButton$2,{onClick:fa}),jsxRuntimeExports.jsx(SegmentTitle$1,{children:ra("Lead details")}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx(TableTitle,{children:ra("Date Submitted")}),jsxRuntimeExports.jsx(TableContent,{children:ha.createdAt.split(" ")[0]})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx(TableTitle,{children:ra("Time Submitted")}),jsxRuntimeExports.jsx(TableContent,{children:ha.createdAt.split(" ")[1]})]}),ha.fields.map(ga)]})})]})},theme$1a=withTheme(scheme$q),LeadsDetails$2=dt$1(LeadsDetails$1).withConfig({displayName:"LeadsDetails",componentId:"sc-rbz8z5-3"})(["width:460px;position:absolute;padding:25px 30px;border-radius:10px;z-index:2;","{position:absolute;right:10px;top:10px;}table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;}","{margin-top:0;margin-bottom:10px;}","{padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text;}","{width:110px;padding:10px 0px;text-transform:capitalize;user-select:text;}"," ",""],CloseButton$2,SegmentTitle$1,TableContent,TableTitle,theme$1a.colors(ea=>lt$1(["background-color:",";","{color:",";}tr{","{color:",";}&[data-type='email']{","{color:",";}}}","{color:",";}"],ea.background,TableTitle,ea.title,TableContent,ea.content,TableContent,ea.email,SegmentTitle$1,ea.segmentTitle)),theme$1a.sizes(ea=>lt$1(["",",","{font-size:",";font-weight:",";line-height:",";}","{font-weight:",";font-size:",";line-height:",";}"],TableTitle,TableContent,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,SegmentTitle$1,ea.segmentTitle.fontWeight,ea.segmentTitle.fontSize,ea.segmentTitle.lineHeight))),Container$p=dt$1.div.withConfig({displayName:"Leads__Container",componentId:"sc-k9aty0-0"})([""]),Leads=ea=>{const{className:na}=ea,{state:{additionalState:{selectedItems:ra}}}=useLeads();return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(LeadsHeader$1,{}),jsxRuntimeExports.jsxs(Container$p,{className:"depicter-leads-items-container",children:[jsxRuntimeExports.jsx(LeadsDetails$2,{}),jsxRuntimeExports.jsx(LeadsList$1,{})]}),ra.length?jsxRuntimeExports.jsx(LeadsListControls$1,{}):null]})},Leads$1=dt$1(Leads).withConfig({displayName:"Leads",componentId:"sc-k9aty0-1"})(["display:flex;flex-direction:column;position:relative;","{position:relative;flex:1;}","{margin-bottom:10px;}"],Container$p,LeadsHeader$1),defaultColors$K={title:"#FFF",bg:"#070707",fieldName:"#AAA",fieldValue:"#FFF"},colors$K={dark:defaultColors$K},defaultSizes={backButton:{fontSize:"12px",lineHeight:"16px",fontWeight:"600"},title:{fontWeight:"700",fontSize:"25px",lineHeight:"34px"},currentLead:{fontWeight:"400",fontSize:"14px",lineHeight:"19px"},item:{fontSize:"14px",fontWeight:"400",lineHeight:"19px"}},sizes$K={default:defaultSizes},scheme$p=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$K,sizes:sizes$K},Symbol.toStringTag,{value:"Module"})),defaultColors$J={bg:"#070707",color:"#AAAAAA"},colors$J={dark:defaultColors$J},defaultSizing$J={count:{fontSize:"14px",lineHeight:"20px",fontWeight:"600"}},sizes$J={default:defaultSizing$J},scheme$o=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$J,sizes:sizes$J},Symbol.toStringTag,{value:"Module"})),SvgArrowLeft=ea=>reactExports.createElement("svg",{width:6,height:9,viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4.50067L0.000520683 4.50017L0 4.49966L4.63616 0L6 1.32359L2.72657 4.50017L6 7.67675L4.63616 9L0 4.50067Z"})),SvgArrowRight=ea=>reactExports.createElement("svg",{width:6,height:9,viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4.50067L5.99948 4.50017L6 4.49966L1.36384 0L0 1.32359L3.27343 4.50017L0 7.67675L1.36384 9L6 4.50067Z"})),CurrentIndex=dt$1.span.withConfig({displayName:"Pagination__CurrentIndex",componentId:"sc-1i4jar4-0"})([""]),PrevButton=dt$1(IconButton).withConfig({displayName:"Pagination__PrevButton",componentId:"sc-1i4jar4-1"})([""]),NextButton=dt$1(IconButton).withConfig({displayName:"Pagination__NextButton",componentId:"sc-1i4jar4-2"})([""]),Pagination=ea=>{const{className:na,active:ra,total:oa,content:aa,onChange:sa}=ea,{t:la}=useTranslation(),ca=()=>{sa?.(ra+1)},ua=()=>{sa?.(ra-1)};return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(PrevButton,{icon:jsxRuntimeExports.jsx(SvgArrowLeft,{}),disabled:ra===1,onClick:ua}),jsxRuntimeExports.jsx(CurrentIndex,{children:aa?la(aa,{currentIndex:ra,total:oa}):ra}),jsxRuntimeExports.jsx(NextButton,{icon:jsxRuntimeExports.jsx(SvgArrowRight,{}),disabled:ra===oa,onClick:ca})]})},theme$19=withTheme(scheme$o),Pagination$1=dt$1(Pagination).withConfig({displayName:"Pagination",componentId:"sc-1i4jar4-3"})(["display:flex;align-items:center;gap:1px;",",","{width:30px;height:35px;display:flex;align-items:center;justify-content:center;}","{height:35px;display:flex;align-items:center;justify-content:center;padding:8px 14px;}",",","{border-radius:0;}","{border-top-left-radius:20px;border-bottom-left-radius:20px;}","{border-top-right-radius:20px;border-bottom-right-radius:20px;}"," ",""],PrevButton,NextButton,CurrentIndex,PrevButton,NextButton,PrevButton,NextButton,theme$19.colors(ea=>lt$1(["",",",",","{background:",";}","{color:",";}"],PrevButton,NextButton,CurrentIndex,ea.bg,CurrentIndex,ea.color)),theme$19.sizes(ea=>lt$1(["","{font-size:",";line-height:",";font-weight:",";}"],CurrentIndex,ea.count.fontSize,ea.count.lineHeight,ea.count.fontWeight))),Header$4=dt$1.div.withConfig({displayName:"LeadsDetailsPage__Header",componentId:"sc-1sqjx60-0"})([""]),BackButton=dt$1(SimpleLink).withConfig({displayName:"LeadsDetailsPage__BackButton",componentId:"sc-1sqjx60-1"})([""]),SegmentTitle=dt$1.h2.withConfig({displayName:"LeadsDetailsPage__SegmentTitle",componentId:"sc-1sqjx60-2"})([""]),LeftContainer$2=dt$1.div.withConfig({displayName:"LeadsDetailsPage__LeftContainer",componentId:"sc-1sqjx60-3"})([""]),RightContainer$2=dt$1.div.withConfig({displayName:"LeadsDetailsPage__RightContainer",componentId:"sc-1sqjx60-4"})([""]),CurrentLeadText=dt$1(Label$6).withConfig({displayName:"LeadsDetailsPage__CurrentLeadText",componentId:"sc-1sqjx60-5"})([""]),Container$o=dt$1.div.withConfig({displayName:"LeadsDetailsPage__Container",componentId:"sc-1sqjx60-6"})([""]),FieldsContainer=dt$1.div.withConfig({displayName:"LeadsDetailsPage__FieldsContainer",componentId:"sc-1sqjx60-7"})([""]),MetaContainer=dt$1.div.withConfig({displayName:"LeadsDetailsPage__MetaContainer",componentId:"sc-1sqjx60-8"})([""]);dt$1.div.withConfig({displayName:"LeadsDetailsPage__Item",componentId:"sc-1sqjx60-9"})([""]);const ItemTitle=dt$1(Label$6).withConfig({displayName:"LeadsDetailsPage__ItemTitle",componentId:"sc-1sqjx60-10"})([""]),ItemValue=dt$1(Label$6).withConfig({displayName:"LeadsDetailsPage__ItemValue",componentId:"sc-1sqjx60-11"})([""]),LeadsDetails=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),oa=useOpenNotice("confirm",!0),{dispatch:aa,state:{items:sa,additionalState:{activeLeadId:la}}}=useLeads(),ca=reactExports.useMemo(()=>sa.find(Aa=>Aa.id===la),[sa,la]),ua=sa.findIndex(Aa=>Aa.id===la),[da,pa]=reactExports.useState(ua+1);reactExports.useEffect(()=>{pa(ua+1)},[ua]);const ha=reactExports.useCallback(()=>{const Aa=!!(sa.length-1);reactDomExports.unstable_batchedUpdates(()=>{if(Aa){const Ca=ua+1>=sa.length?sa[ua-1]:sa[ua+1];aa(setActiveLead(Ca.id))}else aa(setActiveRoute("list"));aa(deleteLeads([la]))})},[la,ua,aa,sa]),[ga]=useRequest(deleteLeads$1,{onSuccess:ha}),fa=reactExports.useCallback(()=>{aa(setActiveRoute("list"))},[aa]),ma=reactExports.useCallback(()=>(oa({title:ra("Deleting items"),content:ra("Are you sure you want to delete selected items?"),cancelLabel:ra("Cancel"),confirmLabel:ra("Confirm")}).then(Aa=>{Aa&&ga({ids:[la]})}),!1),[la,oa,ga,ra]),va=reactExports.useCallback(Aa=>{pa(Aa),aa(setActiveLead(sa[Aa-1].id))},[aa,sa]),xa=reactExports.useCallback(Aa=>{const{name:Ca,value:Sa,type:wa}=Aa;let ba=Sa;if(wa==="email")ba=jsxRuntimeExports.jsx(SimpleLink,{href:`mailto:${Sa}`,children:Sa});else if(wa==="url")ba=jsxRuntimeExports.jsx(SimpleLink,{href:Sa,target:"_blank",children:Sa});else if(Sa&&typeof Sa=="string"){const Ea=Sa.split(/\r?\n/);ba=Ea.map(($a,Ma)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"pre-wrap"},children:$a}),Ma<Ea.length-1&&jsxRuntimeExports.jsx("br",{})]},Ma))}return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx(ItemTitle,{children:toReadable(Ca)}),jsxRuntimeExports.jsx(ItemValue,{title:Sa,children:Sa?ba:"N/A"})]},Ca)},[]),ya=reactExports.useCallback(Aa=>{const Ca=new Map;for(let Sa=Aa.length-1;Sa>=0;Sa-=1){const wa=Aa[Sa];!Ca.has(wa.name)&&wa.value&&Ca.set(wa.name,wa)}return Array.from(Ca.values())},[]);return sa.length?jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(BackButton,{onClick:fa,icon:jsxRuntimeExports.jsx(SvgArrowLeft$1,{}),children:ra("Back to Leads")}),jsxRuntimeExports.jsxs(Header$4,{children:[jsxRuntimeExports.jsx(LeftContainer$2,{children:jsxRuntimeExports.jsx(SegmentTitle,{children:ra("Submission details")})}),jsxRuntimeExports.jsxs(RightContainer$2,{children:[jsxRuntimeExports.jsx(Pagination$1,{active:da,total:sa.length,onChange:va,content:"Lead {{currentIndex}} of {{total}}"}),jsxRuntimeExports.jsx(Menu,{direction:"bottom",align:"end",transition:!0,size:"medium",minWidth:"120px",menuButton:jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(SvgMore,{}),onClick:Aa=>Aa.stopPropagation()}),gap:5,children:jsxRuntimeExports.jsx(MenuItem,{size:"medium",onClick:ma,children:ra("Delete")})})]})]}),jsxRuntimeExports.jsxs(Container$o,{children:[jsxRuntimeExports.jsx(FieldsContainer,{children:(ca?.fields||[]).map(xa)}),jsxRuntimeExports.jsxs(MetaContainer,{children:[jsxRuntimeExports.jsx(ItemTitle,{children:"Date Submitted"}),jsxRuntimeExports.jsx(ItemValue,{children:ca.createdAt.split(" ")[0]}),jsxRuntimeExports.jsx(ItemTitle,{children:"Time Submitted"}),jsxRuntimeExports.jsx(ItemValue,{children:ca.createdAt.split(" ")[1]}),ya(ca?.metadata||[]).map(xa)]})]})]}):null},theme$18=withTheme(scheme$p),LeadsDetailsPage=dt$1(LeadsDetails).withConfig({displayName:"LeadsDetailsPage",componentId:"sc-1sqjx60-12"})(["padding-bottom:57px;","{padding:0;gap:3px;margin-bottom:4px;}","{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;}","{display:flex;align-items:center;gap:15px;> ","{width:auto;svg{fill:#fff !important;}}}","{margin-bottom:0;}","{display:flex;gap:15px;",",","{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;grid-auto-rows:min-content;align-items:start;column-gap:35px;row-gap:20px;padding:30px;border-radius:10px;overflow:hidden;}","{flex:1;min-width:0;}","{width:392px;}}","{max-width:100%;}",",","{white-space:normal;word-break:break-word;overflow-wrap:anywhere;min-width:0;overflow:hidden;}","{max-width:100%;text-overflow:ellipsis;white-space:nowrap;}","{min-width:0;}"," a{white-space:normal;word-break:break-all;overflow-wrap:anywhere;display:block;min-width:0;}","{margin:0;}"," ",""],BackButton,Header$4,RightContainer$2,IconButton,CurrentLeadText,Container$o,FieldsContainer,MetaContainer,FieldsContainer,MetaContainer,SimpleLink,ItemValue,ItemTitle,ItemTitle,ItemValue,ItemValue,SegmentTitle,theme$18.colors(ea=>lt$1(["","{color:",";}",",","{background-color:",";}","{color:",";}","{color:",";}"],SegmentTitle,ea.title,FieldsContainer,MetaContainer,ea.bg,ItemTitle,ea.fieldName,ItemValue,ea.fieldValue)),theme$18.sizes(ea=>lt$1(["","{font-size:",";line-height:",";font-weight:",";}","{font-weight:",";font-size:",";line-height:",";}","{font-weight:",";font-size:",";line-height:",";}",",","{font-size:",";line-height:",";font-weight:",";}"],BackButton,ea.backButton.fontSize,ea.backButton.lineHeight,ea.backButton.fontWeight,SegmentTitle,ea.title.fontWeight,ea.title.fontSize,ea.title.lineHeight,CurrentLeadText,ea.currentLead.fontWeight,ea.currentLead.fontSize,ea.currentLead.lineHeight,ItemValue,ItemTitle,ea.item.fontSize,ea.item.lineHeight,ea.item.fontWeight))),HashPreservingAdapter=({children:ea})=>{const na={location:{search:window.location.search},replace:({search:ra})=>{const{hash:oa,pathname:aa}=window.location;window.history.replaceState(null,"",`${aa}${ra??""}${oa}`)},push:({search:ra})=>{const{hash:oa,pathname:aa}=window.location;window.history.pushState(null,"",`${aa}${ra??""}${oa}`)}};return ea(na)},LeadsProvider=ea=>{const{children:na,initialState:ra}=ea,[oa,aa]=reactExports.useReducer(leadsReducer$1,merge$1({},leadsInitialState,ra));return jsxRuntimeExports.jsx(QueryParamProvider,{adapter:HashPreservingAdapter,children:jsxRuntimeExports.jsx(LeadsContext.Provider,{value:{state:oa,dispatch:aa},children:jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:oa.additionalState.activeRoute,children:[jsxRuntimeExports.jsx(ContentWrap$1,{index:"list",children:na}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"lead-detail",children:jsxRuntimeExports.jsx(LeadsDetailsPage,{})})]})})})},leadsInitialColumns=["relativeDate","date"],leadsColumnConfig={relativeDate:{order:1,size:140,orderName:"created_at"},date:{order:2,size:200,orderName:"created_at",label:i18next.t("Date Added")},email:{order:3},phone:{order:4}},LeadTitle=dt$1(Label$6).withConfig({displayName:"LeadsPanel__LeadTitle",componentId:"sc-ku85up-0"})([""]),Container$n=dt$1.div.withConfig({displayName:"LeadsPanel__Container",componentId:"sc-ku85up-1"})([""]),LeadsPanel=({className:ea})=>{const na=useSelector(getDocumentId),ra=useSelector(getHasFormElement),{t:oa}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Scrollbars,{children:jsxRuntimeExports.jsx(Container$n,{children:jsxRuntimeExports.jsxs(LeadsProvider,{initialState:{...leadsInitialState,params:{...leadsInitialState.params,sources:[na]},additionalState:{...leadsInitialState.additionalState,isSingleDocument:!0,axios:axios$5,initialColumns:leadsInitialColumns,columnsConfig:leadsColumnConfig,compactDetails:!1}},children:[jsxRuntimeExports.jsx(LeadTitle,{children:oa("Leads")}),!ra&&jsxRuntimeExports.jsx(Flag$1,{type:"info",className:"no-form-notice",children:oa("No forms found in this {{documentType}}. Add a form to start collecting leads.",{documentType:DocType.getLabel("document")})}),jsxRuntimeExports.jsx(Leads$1,{})]})})})})},theme$17=withTheme(scheme$A),LeadsPanel$1=dt$1(LeadsPanel).withConfig({displayName:"LeadsPanel",componentId:"sc-ku85up-2"})(["display:flex;flex-direction:column;align-items:center;height:100%;width:100%;.no-form-notice{margin-bottom:15px;}","{margin-bottom:15px;}","{width:100%;max-width:1200px;padding:0 15px;margin:80px auto 0 auto;position:relative;flex:1;height:calc(100% - 100px);}","{height:100%;display:flex;flex-direction:column;}","{flex:1;}"," ",""],LeadTitle,Container$n,ContentWrap$1,Leads$1,theme$17.colors(ea=>lt$1(["background-color:",";","{color:",";}"," > div{background-color:",";}",",","{background-color:",";}"," > *{background-color:",";}"],ea.background,LeadTitle,ea.title,LeadsColumn$1,ea.leads.column.bg,FieldsContainer,MetaContainer,ea.leads.detail.bg,Pagination$1,ea.leads.detail.pagination)),theme$17.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}"],LeadTitle,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight))),defaultColors$I={background:"#222222",iconColor:"#aaaaaa",selectedTab:{iconColor:"#4980F5",background:"#323232"}},colors$I={dark:defaultColors$I},defaultSizing$I={width:"55px",tab:{height:"57px"}},sizes$I={default:defaultSizing$I},scheme$n=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$I,sizes:sizes$I},Symbol.toStringTag,{value:"Module"})),tooltipOptions={group:"assetsPanel",place:"right"},Tab=ea=>{const{value:na,name:ra,icon:oa,...aa}=ea;return useDynamicTooltip(),jsxRuntimeExports.jsx(SimpleItem,{value:na,tooltip:{value:ra||"",...tooltipOptions},...aa,children:oa&&jsxRuntimeExports.jsx(oa,{})})},theme$16=withTheme(scheme$n),AssetsBarTab=dt$1(Tab).withConfig({displayName:"AssetsBarTab",componentId:"sc-1p8z5m3-0"})(["position:relative;display:flex;cursor:pointer;align-items:center;justify-content:space-around;transition:background 300ms;svg{display:block;transition:fill 300ms;}"," ",""],theme$16.colors((ea,na)=>lt$1(["background-color:",";svg{fill:",";}"],na.selected?ea.selectedTab.background:ea.background,na.selected?ea.selectedTab.iconColor:ea.iconColor)),({new:ea})=>ea&&lt$1(["&:before{content:'New';color:rgba(254,177,48,1);position:absolute;top:5px;right:5px;font-size:10px;}"])),AssetsBar=({className:ea,onChange:na,active:ra,children:oa})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Choose,{value:ra,onChange:na,children:oa})}),theme$15=withTheme(scheme$n),StyledAssetsBar=dt$1(AssetsBar).withConfig({displayName:"AssetsBar__StyledAssetsBar",componentId:"sc-ptsmon-0"})(["display:flex;flex-direction:column;height:100%;.space{flex:1;}","{width:100%;}"," ",""],AssetsBarTab,theme$15.colors(ea=>lt$1(["background:",";"],ea.background)),theme$15.sizes(ea=>lt$1(["width:",";","{height:",";}"],ea.width,AssetsBarTab,ea.tab.height))),defaultColors$H={background:"#323232",toggle:{background:"#363636",closedBackground:"#222",iconColor:"#AAAAAA"},contentTitle:{color:"#FFFFFF"}},colors$H={dark:defaultColors$H},defaultSizing$H={width:"410px",toggle:{width:"10px",height:"65px"},contentTitle:{fontSize:"14px",marginBottom:"12px",marginTop:"18px"},smallScreen:{width:"310px"}},sizes$H={default:defaultSizing$H},Scheme$g=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$H,sizes:sizes$H},Symbol.toStringTag,{value:"Module"})),ToggleButton=({className:ea,open:na,onClick:ra})=>{const oa=na?jsxRuntimeExports.jsx(SvgToggleArrowLeft,{}):jsxRuntimeExports.jsx(SvgToggleArrowRight,{});return jsxRuntimeExports.jsx("div",{className:ea,onClick:ra,children:oa})},theme$14=withTheme(Scheme$g),ToggleButton$1=dt$1(ToggleButton).withConfig({displayName:"ToggleButton",componentId:"sc-1bzr6ac-0"})(["position:absolute;top:50%;right:0;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transform:translate(100%,-50%);clip-path:polygon(0 0,100% 10%,100% 90%,0% 100%);> svg{margin-left:",";}"," ",""],ea=>ea.open?"-5px":"-2px",theme$14.colors((ea,{open:na})=>lt$1(["background-color:",";svg{fill:",";}"],na?ea.toggle.background:ea.toggle.closedBackground,ea.toggle.iconColor)),theme$14.sizes(ea=>lt$1(["width:",";height:",";"],ea.toggle.width,ea.toggle.height))),Container$m=dt$1.div.withConfig({displayName:"AssetsContent__Container",componentId:"sc-cxdsvd-0"})([""]),AssetsContent=({className:ea="",active:na,open:ra,children:oa,onClose:aa})=>jsxRuntimeExports.jsxs("div",{className:`${ea} ${ra?"isOpen":"isClosed"} depicter-assets-container`,children:[jsxRuntimeExports.jsx(Container$m,{children:jsxRuntimeExports.jsx(ContentSwitcher.Provider,{value:na,children:oa})}),jsxRuntimeExports.jsx(ToggleButton$1,{onClick:()=>aa?.(),open:ra})]}),theme$13=withTheme(Scheme$g),AssetsContent$1=dt$1(AssetsContent).withConfig({displayName:"AssetsContent",componentId:"sc-cxdsvd-1"})(["display:flex;position:relative;align-items:center;> ","{margin-left:1px;height:100%;overflow:hidden;}&.isClosed > ","{width:0;}"," ",""],Container$m,Container$m,theme$13.colors(ea=>lt$1(["> ","{background-color:",";}"],Container$m,ea.background)),theme$13.sizes(ea=>lt$1(["> ","{width:",";@media (max-width:1366px){width:",";}}"],Container$m,ea.width,ea.smallScreen.width))),DragLayerContainer=dt$1.div.withConfig({displayName:"AssetDragLayer__DragLayerContainer",componentId:"sc-1p3ze6o-0"})(["position:fixed;pointer-events:none;z-index:100;left:0;top:0;width:100%;height:100%;"]);function getItemStyles(ea,na,ra){if(!ea||!na)return{display:"none"};const{x:oa,y:aa}=na,sa=` translate(${oa}px, ${aa}px) scale(${ra})`;return{display:"inline-block",transform:sa,transformOrigin:"top left",WebkitTransform:sa}}const AssetDragLayer=()=>{const{isDragging:ea,item:na,initialOffset:ra,currentOffset:oa,targetIds:aa}=useDragLayer(ca=>({item:ca.getItem(),initialOffset:ca.getInitialSourceClientOffset(),currentOffset:ca.getSourceClientOffset(),isDragging:ca.isDragging(),targetIds:ca.getTargetIds()})),sa=useSelector(getAssetDragLayerVisibility),la=useSelector(getWorkspaceComputedZoom);return!na?.isAsset||!ea||!sa?null:jsxRuntimeExports.jsx(DragLayerContainer,{children:jsxRuntimeExports.jsx("div",{style:getItemStyles(ra,oa,aa.length?la:1),children:na.dragPreviewGenerator(!!aa.length)})})},useDragAsset=ea=>{const{assetData:na,dragPreviewGenerator:ra,onDrop:oa,dndType:aa=dragTypes.ASSET}=ea,[{isDragging:sa},la,ca]=useDrag({type:aa,item:{isAsset:!0,dragPreviewGenerator:ra,assetData:na},end:(ua,da)=>{const pa=da.getDropResult(),ha=da.getItem();ha&&pa&&oa&&oa(ha,pa)},collect:ua=>({isDragging:ua.isDragging()})});return reactExports.useEffect(()=>{ca(getEmptyImage(),{captureDraggingState:!0})},[ca]),{isDragging:sa,drag:la}},defaultColors$G={background:"rgba(0,0,0,0.34)",loadingAnimation:{frames:mt$1(["from{background-color:rgba(0,0,0,0.34);}to{background-color:rgba(0,0,0,0.6);}"]),options:"0.5s alternate infinite"},overlay:{background:"black",opacity:.5,hoverOpacity:.7},label:{textShadow:"2px 2px 10px black",color:"white"},hover:{border:"#4980F5"}},colors$G={dark:defaultColors$G},defaultSizing$G={borderRadius:"2px",overlay:{fontWeight:"bold"},label:{fontSize:"14px",fontWeight:"600"}},sizes$G={default:defaultSizing$G},Scheme$f=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$G,sizes:sizes$G},Symbol.toStringTag,{value:"Module"})),badgeData$1={position:{top:"5px",right:"5px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})},compactBadgeData={position:{top:"5px",right:"5px"},symbols:jsxRuntimeExports.jsx(ProCompact,{})},BaseAssetItem=reactExports.forwardRef((ea,na)=>{const{className:ra,badgeType:oa="pro",children:aa,assetData:sa,onDrop:la,onClick:ca,dragPreviewGenerator:ua,tier:da,dndType:pa,createOnClick:ha=!0,targetParent:ga}=ea,{tier:fa=da}=sa,ma=useUserTierAuthCallback(),va=useOpenUpgradeToPro(),xa=usePosthogCaptureCallback(),{drag:ya,isDragging:Aa}=useDragAsset({dndType:pa,assetData:sa,dragPreviewGenerator:ua,onDrop:(Sa,wa)=>{la?.(Sa,wa),xa("create_element_from_asset",{with:"drop",asset:sa.payload?.elementData?.type||sa.type,sourceType:sa.sourceType,title:sa.title})}}),Ca=useCreateElementFromAsset(sa,ga);return fa&&!ma(fa)?jsxRuntimeExports.jsx(WithBadge,{symbolsData:oa==="pro"?badgeData$1:compactBadgeData,children:jsxRuntimeExports.jsx("div",{ref:Sa=>{assignRef(Sa,na)},className:ra,onClick:()=>{va({source:"depicter_editor",medium:"assets",content:[sa.type,sa.sourceType,sa.title].filter(Sa=>!!Sa).join("_")})},children:aa})}):jsxRuntimeExports.jsx("div",{ref:Sa=>{ya(Sa),assignRef(Sa,na)},onClick:()=>{ca&&ca(sa),ha&&(Ca(),xa("create_element_from_asset",{with:"click",asset:sa.type,sourceType:sa.sourceType,title:sa.title}))},className:`${ra} ${Aa?"ms-is-dragging":""}`,children:aa})}),theme$12=withTheme(Scheme$f),BaseAssetItem$1=dt$1(BaseAssetItem).withConfig({displayName:"BaseAssetItem",componentId:"sc-nps66e-0"})(["position:relative;> *{position:relative;&:after{content:'';display:block;position:absolute;inset:0;cursor:pointer;transition:box-shadow 150ms ease-out;z-index:1;}}",""],theme$12.colors(ea=>lt$1(["&:hover > *::after{box-shadow:inset 0 0 0 2px ",";}"],ea.hover.border))),ImageDragPreview=ea=>{const{className:na,width:ra,height:oa,image:aa,sourceElement:sa,canDrop:la}=ea,ca={},ua=useCalcSafeSize(ra,oa,.8);return!la&&sa?.current?(ca.width=`${sa.current.offsetWidth}px`,ca.height=`${sa.current.offsetHeight}px`):(ca.width=`${ua.width}px`,ca.height=`${ua.height}px`),jsxRuntimeExports.jsx("div",{className:na,style:ca,children:jsxRuntimeExports.jsx(ImageBox$1,{src:aa,fitMode:"cover"})})},ImageDragPreview$1=dt$1(ImageDragPreview).withConfig({displayName:"ImageDragPreview",componentId:"sc-10qxgz8-0"})(["position:relative;transition:width 0.2s,height 0.2s;opacity:0.8;","{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;}"],ImageBox$1),defaultColors$F={background:"rgba(0,0,0,0.34)",loadingAnimation:{frames:mt$1(["from{background-color:rgba(0,0,0,0.34);}to{background-color:rgba(0,0,0,0.6);}"]),options:"0.5s alternate infinite"}},colors$F={dark:defaultColors$F},defaultSizing$F={borderRadius:"2px"},sizes$F={default:defaultSizing$F},Scheme$e=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$F,sizes:sizes$F},Symbol.toStringTag,{value:"Module"})),theme$11=withTheme(Scheme$e),ImageAssetItemView=dt$1(ImageBox$1).attrs({useAspect:!0,loadingType:"none"}).withConfig({displayName:"ImageAssetItemView",componentId:"sc-pgpk2-0"})(["position:relative;cursor:pointer;overflow:hidden;"," ",""],theme$11.colors(ea=>lt$1(["background:",";"],ea.background)),theme$11.sizes(ea=>lt$1(["border-radius:",";"],ea.borderRadius))),assetItemsTypes={},registerAssetItemComponent=(ea,na)=>{assetItemsTypes[ea]=na},getAssetItemComponentByType=ea=>assetItemsTypes[ea],ImageAssetItem=ea=>{const{assetData:{id:na,thumb:ra}}=ea;let{assetData:{width:oa,height:aa}}=ea;oa=oa??aa??100,aa=aa??oa;const sa=reactExports.useRef(null),la=getImageSrc(ra||na,"thumb"),ca=reactExports.useCallback(ua=>jsxRuntimeExports.jsx(ImageDragPreview$1,{sourceElement:sa,canDrop:ua,width:oa,height:aa,image:la}),[aa,la,oa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,ref:sa,dragPreviewGenerator:ca,children:jsxRuntimeExports.jsx(ImageAssetItemView,{src:la,width:oa,height:aa})})},StyledImageAssetItem=dt$1(ImageAssetItem).withConfig({displayName:"ImageAssetItem__StyledImageAssetItem",componentId:"sc-xddkzh-0"})(["&.ms-is-dragging > *{transition:none;opacity:0;}"]),StyledIconAssetItem$1=dt$1(ImageAssetItem).withConfig({displayName:"ImageAssetItem__StyledIconAssetItem",componentId:"sc-xddkzh-1"})(["","{padding:10px;}"," img{filter:invert(1);transform:scale(0.6);}&.ms-is-dragging "," img{filter:none;}&.ms-is-dragging > *{transition:none;opacity:0;}"],ImageAssetItemView,ImageAssetItemView,ImageAssetItemView);registerAssetItemComponent("icon",StyledIconAssetItem$1);registerAssetItemComponent("photo",StyledImageAssetItem);registerAssetItemComponent("image",StyledImageAssetItem);registerAssetItemComponent("vector",StyledImageAssetItem);const defaultColors$E={background:"rgba(0,0,0,0.34)",loadingAnimation:{frames:mt$1(["from{background-color:rgba(0,0,0,0.34);}to{background-color:rgba(0,0,0,0.6);}"]),options:"0.5s alternate infinite"}},colors$E={dark:defaultColors$E},defaultSizing$E={borderRadius:"2px"},sizes$E={default:defaultSizing$E},Scheme$d=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$E,sizes:sizes$E},Symbol.toStringTag,{value:"Module"})),VideoAssetItemView=ea=>{const{className:na,src:ra,poster:oa,fitMode:aa="contain"}=ea,[sa,la]=reactExports.useState(!!oa),ca=reactExports.useMemo(()=>({animationDelay:`${Math.round(Math.random()*1e3)}ms`}),[]),ua=reactExports.useRef(null),da=()=>{ua.current&&(ua.current.currentTime=0,ua.current.play().catch(()=>{}))},pa=()=>{ua.current&&ua.current.played&&ua.current.pause()};return jsxRuntimeExports.jsx("div",{className:`${na} ${sa?"ms-is-loading":""}`,style:ca,onMouseEnter:da,onMouseLeave:pa,children:jsxRuntimeExports.jsx(VideoBox$1,{fitMode:aa,src:ra,poster:oa?{src:oa,fitMode:aa,onLoad:()=>la(!1)}:void 0,preload:oa?"none":"metadata",ref:ua})})},theme$10=withTheme(Scheme$d),VideoAssetItemView$1=dt$1(VideoAssetItemView).withConfig({displayName:"VideoAssetItemView",componentId:"sc-1oegg3z-0"})(["position:relative;cursor:pointer;overflow:hidden;z-index:1;"," "," &::before{content:'';display:block;width:100%;padding-top:","%;}& > ","{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;transition:opacity 300ms;}&.ms-is-loading{& > ","{opacity:0;}}"],theme$10.colors(ea=>lt$1(["background:",";&.ms-is-loading{animation:"," ",";}"],ea.background,ea.loadingAnimation.frames,ea.loadingAnimation.options)),theme$10.sizes(ea=>lt$1(["border-radius:",";"],ea.borderRadius)),ea=>ea.height/ea.width*100,VideoBox$1,VideoBox$1),VideoAssetItem=ea=>{const{assetData:{id:na,width:ra=100,height:oa=100,thumb:aa}}=ea,sa=reactExports.useRef(null),la=aa&&getVideoStaticPreviewSrc(aa,"thumb"),ca=getVideoSrc(na,"thumb"),ua=reactExports.useCallback(da=>la?jsxRuntimeExports.jsx(ImageDragPreview$1,{sourceElement:sa,canDrop:da,width:ra,height:oa,image:la}):jsxRuntimeExports.jsx("video",{width:ra,height:oa,style:{backgroundColor:"black"},src:ca,preload:"metadata"}),[oa,la,ca,ra]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,ref:sa,dragPreviewGenerator:ua,children:jsxRuntimeExports.jsx(VideoAssetItemView$1,{poster:la,src:ca,width:ra,height:oa})})},VideoImageAssetItem=dt$1(VideoAssetItem).withConfig({displayName:"VideoAssetItem__VideoImageAssetItem",componentId:"sc-x88jpj-0"})(["&.ms-is-dragging > *{transition:none;opacity:0;}"]);registerAssetItemComponent("video",VideoImageAssetItem);const defaultColors$D={background:"rgba(0,0,0,0.35)"},colors$D={dark:defaultColors$D},defaultSizing$D={size:"115px",marginRight:"12px",marginBottom:"12px",smallScreen:{size:"129px"}},sizes$D={default:defaultSizing$D},Scheme$c=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$D,sizes:sizes$D},Symbol.toStringTag,{value:"Module"})),ShapeItemView=React.memo(({className:ea,content:na})=>jsxRuntimeExports.jsx("div",{className:ea,dangerouslySetInnerHTML:{__html:na}})),theme$$=withTheme(Scheme$c),ShapeItemView$1=dt$1(ShapeItemView).withConfig({displayName:"ShapeItemView",componentId:"sc-9asmxf-0"})(["cursor:pointer;display:inline-flex !important;align-items:center;justify-content:center;svg{overflow:visible;transition:300ms width,300ms height,300ms opacity;}"," ",""],theme$$.sizes(ea=>lt$1(["height:",";width:",";@media (max-width:1366px){height:",";width:",";}"],ea.size,ea.size,ea.smallScreen.size,ea.smallScreen.size)),theme$$.colors((ea,na)=>lt$1(["background:",";"," "," ",""],ea.background,na?.fill&&lt$1(["svg{fill:",";}"],na.fill),na?.stroke&&lt$1(["svg{stroke:",";}"],na.stroke),na?.strokeWidth&&lt$1(["svg{stroke-width:",";}"],na.strokeWidth)))),ShapeDragPreview=dt$1(ShapeItemView$1).withConfig({displayName:"DragPreview__ShapeDragPreview",componentId:"sc-g662o7-0"})(["display:inline-flex;background:transparent;& > svg{align-self:center;}",""],ea=>ea.canDrop&&lt$1(["width:auto;height:auto;svg{width:",";height:",";}"],`${ea.dropWidth}px`,`${ea.dropHeight}px`)),ShapeAssetItem=ea=>{const{assetData:na}=ea,{elementData:ra}=getAssetPayload(na),{previewOptions:oa={}}=na,aa=ra?.size?.default?.width,sa=ra?.size?.default?.height,la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(ShapeDragPreview,{...oa,canDrop:ca,dropWidth:aa?.value||0,dropHeight:sa?.value||0}),[sa,oa,aa]);return ra?jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(ShapeItemView$1,{...oa})}):null},StyledShapeAssetItem=dt$1(ShapeAssetItem).withConfig({displayName:"ShapeAssetItem__StyledShapeAssetItem",componentId:"sc-19dldgx-0"})(["&.ms-is-dragging{"," svg{opacity:0 !important;}}"],ShapeItemView$1);registerAssetItemComponent("shape",StyledShapeAssetItem);const defaultColors$C={background:"rgba(0,0,0,0.34)",loadingAnimation:{frames:mt$1(["from{background-color:rgba(0,0,0,0.34);}to{background-color:rgba(0,0,0,0.6);}"]),options:"0.5s alternate infinite"},overlay:{background:"black",opacity:.5,hoverOpacity:.7},label:{textShadow:"2px 2px 10px black",color:"white"}},colors$C={dark:defaultColors$C},defaultSizing$C={borderRadius:"2px",label:{fontSize:"14px",fontWeight:"600"},smallScreen:{label:{fontSize:"12px"}}},sizes$C={default:defaultSizing$C},Scheme$b=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$C,sizes:sizes$C},Symbol.toStringTag,{value:"Module"})),AssetWrapper=dt$1.div.withConfig({displayName:"KeywordItemView__AssetWrapper",componentId:"sc-1fwtuvt-0"})([""]),AssetItemTitle$1=dt$1.span.withConfig({displayName:"KeywordItemView__AssetItemTitle",componentId:"sc-1fwtuvt-1"})([""]),KeywordItemView=ea=>{const{title:na,backgroundImage:ra,className:oa,onClick:aa}=ea,[sa,la]=reactExports.useState(!!ra),ca=reactExports.useMemo(()=>({animationDelay:`${Math.round(Math.random()*1e3)}ms`}),[]);return jsxRuntimeExports.jsxs("div",{className:`${oa} ${sa?"ms-is-loading":""}`,onClick:aa,style:ca,children:[ra&&jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"contain",src:ra,onLoad:()=>la(!1)}),jsxRuntimeExports.jsx(AssetWrapper,{children:na&&jsxRuntimeExports.jsx(AssetItemTitle$1,{children:na})})]})},theme$_=withTheme(Scheme$b),KeywordItemView$1=dt$1(KeywordItemView).withConfig({displayName:"KeywordItemView",componentId:"sc-1fwtuvt-2"})(["position:relative;cursor:pointer;overflow:hidden;z-index:1;"," "," &::before{content:'';display:block;width:100%;padding-top:","%;}& > ","{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;transition:opacity 300ms;&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;transition:opacity 300ms;}}&.ms-is-loading{& > ","{opacity:0;}}& > ","::after{","}&:hover > ","::after{","}","{position:absolute;width:100%;height:100%;top:0;left:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;","{z-index:1;"," ","}}"],theme$_.colors(ea=>lt$1(["background:",";&.ms-is-loading{animation:"," ",";}"],ea.background,ea.loadingAnimation.frames,ea.loadingAnimation.options)),theme$_.sizes(ea=>lt$1(["border-radius:",";"],ea.borderRadius)),ea=>ea.height/ea.width*100,ImageBox$1,ImageBox$1,ImageBox$1,theme$_.colors(ea=>lt$1(["background:",";opacity:",";"],ea.overlay.background,ea.overlay.opacity)),ImageBox$1,theme$_.colors(ea=>lt$1(["opacity:",";"],ea.overlay.hoverOpacity)),AssetWrapper,AssetItemTitle$1,theme$_.colors(ea=>lt$1(["color:",";text-shadow:",";"],ea.label.color,ea.label.textShadow)),theme$_.sizes(ea=>lt$1(["font-size:",";font-weight:",";@media (max-width:1366px){font-size:",";}"],ea.label.fontSize,ea.label.fontWeight,ea.smallScreen.label.fontSize))),KeywordAssetItem=ea=>{const{onClick:na,className:ra,assetData:oa}=ea,{previewOptions:aa,title:sa}=oa,la=reactExports.useCallback(()=>{na?.(oa)},[na,oa]);if(!aa)return null;const{width:ca,height:ua,...da}=aa;return jsxRuntimeExports.jsx(KeywordItemView$1,{className:ra,onClick:la,title:sa,width:ca||150,height:ua||90,...da})},StyledKeywordAssetItem=dt$1(KeywordAssetItem).withConfig({displayName:"KeywordAssetItem__StyledKeywordAssetItem",componentId:"sc-pk6lgd-0"})([""]);registerAssetItemComponent("keyword",StyledKeywordAssetItem);const Button$3=({className:ea,children:na,styles:ra})=>jsxRuntimeExports.jsx("span",{className:ea,style:ra,children:na}),Button$4=dt$1(Button$3).withConfig({displayName:"Button",componentId:"sc-1dnovfw-0"})([""]),defaultColors$B={background:"rgba(0,0,0,0.35)"},colors$B={dark:defaultColors$B},defaultSizing$B={width:"179px",height:"110px",marginRight:"12px",marginBottom:"12px",smallScreen:{width:"129px",height:"100px"}},sizes$B={default:defaultSizing$B},Scheme$a=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$B,sizes:sizes$B},Symbol.toStringTag,{value:"Module"})),ButtonItemView=React.memo(ea=>{const{className:na,elementData:ra}=ea,oa={...useTypography(ra.styles?.typography),...useBorder(ra.styles?.border),...useCorner(ra.styles?.corner),...useBackgroundColor(ra.styles?.backgroundColor),...useSize(ra?.size)};return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(Button$4,{styles:oa,children:ra.options?.content})})}),theme$Z=withTheme(Scheme$a),ButtonItemView$1=dt$1(ButtonItemView).withConfig({displayName:"ButtonItemView",componentId:"sc-16n6lvw-0"})(["cursor:pointer;display:inline-flex;justify-content:center;align-items:center;span{display:flex;align-items:center;justify-content:center;transition:300ms opacity;","}&.ms-is-dragging{span{opacity:0;transition:none;}}"," ",""],ea=>lt$1(["color:"," !important;"],ea.itemViewOptions?.color),theme$Z.sizes(ea=>lt$1(["height:",";width:",";@media (max-width:1366px){height:",";width:",";}"],ea.height,ea.width,ea.smallScreen.height,ea.smallScreen.width)),theme$Z.colors(ea=>lt$1(["background:",";"],ea.background))),ButtonDragView=dt$1(ButtonItemView$1).withConfig({displayName:"DragPreview__ButtonDragView",componentId:"sc-8eudr-0"})(["background:transparent;",""],ea=>ea.canDrop&&lt$1(["span{color:"," !important;}"],ea.canDropTextColor)),ButtonAssetItem=ea=>{const{assetData:na}=ea,{dragMeta:ra,...oa}=na.previewOptions,{elementData:aa}=getAssetPayload(na),sa=reactExports.useCallback(la=>jsxRuntimeExports.jsx(ButtonDragView,{canDrop:la,canDropTextColor:ra.color,elementData:aa,itemViewOptions:oa}),[ra,aa,oa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:sa,children:jsxRuntimeExports.jsx(ButtonItemView$1,{elementData:aa,itemViewOptions:oa})})},StyledButtonAssetItem=dt$1(ButtonAssetItem).withConfig({displayName:"ButtonAssetItem__StyledButtonAssetItem",componentId:"sc-gzcydm-0"})(["&.ms-is-dragging{"," span{opacity:0;}}"],ButtonItemView$1);registerAssetItemComponent("button",StyledButtonAssetItem);const defaultColors$A={background:"rgba(0,0,0,0.34)",color:"#FFFFFF"},colors$A={dark:defaultColors$A},defaultSizing$A={title:{fontSize:"14px",fontWeight:"600",space:"15px"},smallScreen:{title:{fontSize:"12px",space:"8px"}}},sizes$A={default:defaultSizing$A},Scheme$9=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$A,sizes:sizes$A},Symbol.toStringTag,{value:"Module"})),AssetItemTitle=dt$1.span.withConfig({displayName:"ElementIconAssetItemView__AssetItemTitle",componentId:"sc-oaam9p-0"})([""]),AssetItemIcon=dt$1.div.withConfig({displayName:"ElementIconAssetItemView__AssetItemIcon",componentId:"sc-oaam9p-1"})([""]),Container$l=dt$1.div.withConfig({displayName:"ElementIconAssetItemView__Container",componentId:"sc-oaam9p-2"})([""]),ElementIconAssetItemView=ea=>{const{className:na,title:ra,icon:oa,onClick:aa}=ea;return jsxRuntimeExports.jsx("div",{className:na,onClick:aa,children:jsxRuntimeExports.jsxs(Container$l,{children:[jsxRuntimeExports.jsx(AssetItemIcon,{children:jsxRuntimeExports.jsx(ImageBox$1,{...oa,fitMode:"contain"})}),ra&&jsxRuntimeExports.jsx(AssetItemTitle,{children:ra})]})})},theme$Y=withTheme(Scheme$9),IconAssetItemView$1=dt$1(ElementIconAssetItemView).withConfig({displayName:"ElementIconAssetItemView",componentId:"sc-oaam9p-3"})(["position:relative;cursor:pointer;overflow:hidden;&::before{content:'';display:block;width:100%;padding-top:","%;}","{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;inset:0;}"," ",""],ea=>ea.height/ea.width*100,Container$l,theme$Y.colors(ea=>lt$1(["color:",";background-color:",";"],ea.color,ea.background)),theme$Y.sizes((ea,na)=>lt$1(["","{margin-top:",";}","{font-size:",";font-weight:",";@media (max-width:1366px){font-size:",";}}"],AssetItemIcon,na.iconAboveSpace,AssetItemTitle,ea.title.fontSize,ea.title.fontWeight,ea.smallScreen.title.fontSize))),ElementIconDragPreview=ea=>{const{className:na,sourceElement:ra,canDrop:oa,...aa}=ea,sa=useCalcSafeSize(aa.width,aa.height,.8),la={width:`${sa.width}px`,height:`${sa.height}px`};return!oa&&ra?.current&&(la.width=`${ra.current.offsetWidth}px`,la.height=`${ra.current.offsetHeight}px`),jsxRuntimeExports.jsx("div",{className:na,style:la,children:jsxRuntimeExports.jsx(IconAssetItemView$1,{...aa})})},IconDragPreview$1=dt$1(ElementIconDragPreview).withConfig({displayName:"ElementIconDragPreview",componentId:"sc-1tpxvp-0"})([""]),ElementAssetItem=ea=>{const{assetData:na}=ea,{previewOptions:ra,title:oa}=na,aa=reactExports.useRef(null),sa=useDispatch(),la=ra.icon?"icon":"photo",{width:ca,height:ua,backgroundImage:da}=ra,pa=reactExports.useCallback(ga=>la==="icon"?jsxRuntimeExports.jsx(IconDragPreview$1,{sourceElement:aa,...ra,title:oa}):da?jsxRuntimeExports.jsx(ImageDragPreview$1,{sourceElement:aa,canDrop:ga,width:ca,height:ua,image:da}):jsxRuntimeExports.jsx("div",{children:"Unable to create drag preview component."}),[da,ua,ra,la,oa,ca]),ha=ga=>{const fa=ga?.payload?.elementData?.type;fa&&["form"].includes(fa)&&sa(setAssetPanelTab(fa))};return jsxRuntimeExports.jsx(BaseAssetItem$1,{ref:aa,...ea,dragPreviewGenerator:pa,onClick:ha,children:la==="icon"?jsxRuntimeExports.jsx(IconAssetItemView$1,{...ra,title:oa}):jsxRuntimeExports.jsx(ImageAssetItemView,{src:getImageSrc(da||"","thumb"),width:ca,height:ua})})},StyledElementAssetItem=dt$1(ElementAssetItem).withConfig({displayName:"ElementAssetItem__StyledElementAssetItem",componentId:"sc-188sihf-0"})(["&.ms-is-dragging{opacity:0 !important;}"]);registerAssetItemComponent("element",StyledElementAssetItem);const defaultColors$z={background:"#191919",container:"rgba(46, 46, 46, 0.73)",title:"#FFF",color:"#898989",dynamicText:{color:"#898989"},dynamicLink:{button:{background:"#414141",color:"#FFFFFF"},link:{color:"#898989"}},dynamicDate:{color:"#898989"},dynamicTagList:{link:{color:"#898989",separator:"#898989"},button:{background:"#1F1F1F",color:"#888888"}},dynamicRating:{patternColor:"#898989",trackColor:"#FFFFFF"}},colors$z={dark:defaultColors$z},defaultSizing$z={height:"106px",title:{fontSize:"14px",fontWeight:"600",padding:"5px 0"},content:{fontSize:"14px",fontWeight:"400"},column:{100:{width:"370px",smallScreenWidth:"270px",padding:"6px 20px"},50:{width:"179px",smallScreenWidth:"129px",padding:"8px"}},dynamicText:{regular:{fontSize:"14px",fontWeight:"400",lineHeight:"19px"},large:{fontSize:"23px",fontWeight:"600",lineHeight:"32px"}},dynamicLink:{button:{fontSize:"13px",fontWeight:"400",borderRadius:"6px",padding:"10px 24px",smallScreen:{padding:"5px 10px"}}},dynamicMedia:{borderRadius:"2px"},dynamicDate:{fontSize:"15px",fontWeight:"600"},dynamicTagList:{link:{fontSize:"14px",fontWeight:"600",lineHeight:"19px"},button:{fontSize:"13px",fontWeight:"500",border:"5px"}}},sizes$z={default:defaultSizing$z},Scheme$8=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$z,sizes:sizes$z},Symbol.toStringTag,{value:"Module"})),Container$k=dt$1.div.withConfig({displayName:"BaseView__Container",componentId:"sc-c5cjtk-0"})([""]),Title$l=dt$1.span.withConfig({displayName:"BaseView__Title",componentId:"sc-c5cjtk-1"})([""]),DynamicSourceBaseAssetItemView=React.memo(ea=>{const{className:na,title:ra,children:oa}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Container$k,{children:oa}),jsxRuntimeExports.jsx(Title$l,{children:ra})]})}),theme$X=withTheme(Scheme$8),DynamicSourceBaseAssetItemView$1=dt$1(DynamicSourceBaseAssetItemView).withConfig({displayName:"BaseView",componentId:"sc-c5cjtk-2"})(["cursor:pointer;display:inline-flex;flex-direction:column;padding:5px;","{display:flex;justify-content:center;align-items:center;flex:1;max-height:65px;}","{text-align:center;}"," ",""],Container$k,Title$l,theme$X.colors(ea=>lt$1(["background:",";","{background-color:",";color:",";}","{color:",";}"],ea.background,Container$k,ea.container,ea.color,Title$l,ea.title)),theme$X.sizes((ea,{size:na=100})=>lt$1(["width:",";height:",";@media (max-width:1366px){width:",";}","{font-weight:",";font-size:",";padding:",";}","{padding:",";font-size:",";font-weight:",";}"],ea.column[na].width,ea.height,ea.column[na].smallScreenWidth,Title$l,ea.title.fontWeight,ea.title.fontSize,ea.title.padding,Container$k,ea.column[na].padding,ea.content.fontSize,ea.content.fontWeight))),Content$7=dt$1.span.withConfig({displayName:"DynamicTextAssetView__Content",componentId:"sc-1aq6yau-0"})([""]),DynamicTextItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,children:aa}=ea;return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:jsxRuntimeExports.jsx(Content$7,{children:aa})})}),theme$W=withTheme(Scheme$8),DynamicTextAssetView=dt$1(DynamicTextItemView).withConfig({displayName:"DynamicTextAssetView",componentId:"sc-1aq6yau-1"})(["","{","}"," ",""],Content$7,ea=>ea.multiline?lt$1(["overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]):lt$1(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),theme$W.colors(ea=>lt$1(["","{color:",";}"],Content$7,ea.dynamicText.color)),theme$W.sizes((ea,{textSize:na="regular"})=>lt$1(["","{font-weight:",";font-size:",";line-height:",";}"],Content$7,ea.dynamicText[na].fontWeight,ea.dynamicText[na].fontSize,ea.dynamicText[na].lineHeight))),DynamicTextItemDragView$2=dt$1(DynamicTextAssetView).withConfig({displayName:"DragPreview__DynamicTextItemDragView",componentId:"sc-1w8q6wa-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicTextItem$1=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),[oa,aa]=useRenderTemplateEngine(na.payload?.source,!1,"text"),sa=aa==="rendering"?`${ra("Loading")}...`:htmlDecode(oa),la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(DynamicTextItemDragView$2,{canDrop:ca,title:na.title,size:na.previewOptions?.size,multiline:na.previewOptions?.multiline,textSize:na.previewOptions?.textSize,children:sa}),[na.title,na.previewOptions,sa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(DynamicTextAssetView,{title:na.title,size:na.previewOptions?.size,multiline:na.previewOptions?.multiline,textSize:na.previewOptions?.textSize,children:sa})})},DynamicText=dt$1(DraggableDynamicTextItem$1).withConfig({displayName:"DynamicText",componentId:"sc-yh2bdw-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicTextAssetView),Button$2=dt$1.button.withConfig({displayName:"DynamicLinkAssetView__Button",componentId:"sc-1ddqoi9-0"})([""]),LinkVariant$1=dt$1.span.withConfig({displayName:"DynamicLinkAssetView__LinkVariant",componentId:"sc-1ddqoi9-1"})([""]),DynamicLinkItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,children:aa,variant:sa="button"}=ea,la=sa==="button";return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:la?jsxRuntimeExports.jsx(Button$2,{children:aa}):jsxRuntimeExports.jsx(LinkVariant$1,{children:aa})})}),theme$V=withTheme(Scheme$8),DynamicLinkAssetView=dt$1(DynamicLinkItemView).withConfig({displayName:"DynamicLinkAssetView",componentId:"sc-1ddqoi9-2"})(["","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;box-shadow:none;cursor:pointer;}","{text-decoration:underline;}"," ",""],Button$2,LinkVariant$1,theme$V.colors(ea=>lt$1(["","{background-color:",";color:",";}","{color:",";}"],Button$2,ea.dynamicLink.button.background,ea.dynamicLink.button.color,LinkVariant$1,ea.dynamicLink.link.color)),theme$V.sizes(ea=>lt$1(["","{font-weight:",";font-size:",";padding:",";border-radius:",";@media (max-width:1366px){padding:",";}}"],Button$2,ea.dynamicLink.button.fontWeight,ea.dynamicLink.button.fontSize,ea.dynamicLink.button.padding,ea.dynamicLink.button.borderRadius,ea.dynamicLink.button.smallScreen.padding))),DynamicTextItemDragView$1=dt$1(DynamicLinkAssetView).withConfig({displayName:"DragPreview__DynamicTextItemDragView",componentId:"sc-19bi2h0-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicLinkItem=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),oa=!!na.payload?.source,[aa,sa]=useRenderTemplateEngine(na.payload?.source||na.previewOptions?.buttonText,!oa,"text"),la=sa==="rendering"?`${ra("Loading")}...`:aa,ca=reactExports.useCallback(ua=>jsxRuntimeExports.jsx(DynamicTextItemDragView$1,{canDrop:ua,title:na.title,size:na.previewOptions?.size,variant:na.previewOptions?.variant,children:la}),[na.title,na.previewOptions,la]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:ca,children:jsxRuntimeExports.jsx(DynamicLinkAssetView,{title:na.title,size:na.previewOptions?.size,variant:na.previewOptions?.variant,children:la})})},DynamicLink=dt$1(DraggableDynamicLinkItem).withConfig({displayName:"DynamicLink",componentId:"sc-1gjbbyo-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicLinkAssetView),DynamicMediaItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,data:aa}=ea,sa=reactExports.useMemo(()=>typeof aa=="string"?aa:aa.src,[aa]);return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:jsxRuntimeExports.jsx(ImageBox$1,{src:sa,fitMode:"contain"})})}),theme$U=withTheme(Scheme$8),DynamicMediaAssetView=dt$1(DynamicMediaItemView).withConfig({displayName:"DynamicMediaAssetView",componentId:"sc-l0d929-0"})(["","{width:100%;height:100%;overflow:hidden;}",""],ImageBox$1,theme$U.sizes(ea=>lt$1([""," img{border-radius:",";}"],ImageBox$1,ea.dynamicMedia.borderRadius))),DynamicMediaItemDragView=dt$1(DynamicMediaAssetView).withConfig({displayName:"DragPreview__DynamicMediaItemDragView",componentId:"sc-1h3pfe1-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicTextItem=ea=>{const{assetData:na}=ea,[ra,oa]=useRenderTemplateEngine(na.payload?.source,!1,"image"),aa=reactExports.useCallback(sa=>jsxRuntimeExports.jsx(DynamicMediaItemDragView,{canDrop:sa,title:na.title,size:na.previewOptions?.size,data:ra,loading:oa==="rendering"}),[na.title,na.previewOptions,oa,ra]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:aa,children:jsxRuntimeExports.jsx(DynamicMediaAssetView,{title:na.title,size:na.previewOptions?.size,data:ra,loading:oa==="rendering"})})},DynamicMedia=dt$1(DraggableDynamicTextItem).withConfig({displayName:"DynamicMedia",componentId:"sc-1nahe54-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicMediaAssetView),Date$1=dt$1.span.withConfig({displayName:"DynamicDateAssetView__Date",componentId:"sc-a8dxwt-0"})([""]),DynamicDateItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,children:aa}=ea;return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:jsxRuntimeExports.jsx(Date$1,{children:aa})})}),theme$T=withTheme(Scheme$8),DynamicDateAssetView=dt$1(DynamicDateItemView).withConfig({displayName:"DynamicDateAssetView",componentId:"sc-a8dxwt-1"})(["","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"," ",""],Date$1,theme$T.colors(ea=>lt$1(["","{color:",";}"],Date$1,ea.dynamicDate.color)),theme$T.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],Date$1,ea.dynamicDate.fontSize,ea.dynamicDate.fontWeight))),DynamicDateItemDragView=dt$1(DynamicDateAssetView).withConfig({displayName:"DragPreview__DynamicDateItemDragView",componentId:"sc-gtq9ut-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicDateItem=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),[oa,aa]=useRenderTemplateEngine(na.payload?.source,!1),sa=aa==="rendering"?`${ra("Loading")}...`:formatDate$1(oa,{formatOptions:{year:"numeric",month:"long",day:"numeric"}}),la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(DynamicDateItemDragView,{canDrop:ca,title:na.title,size:na.previewOptions?.size,children:sa}),[na.title,na.previewOptions,sa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(DynamicDateAssetView,{title:na.title,size:na.previewOptions?.size,children:sa})})},DynamicDate=dt$1(DraggableDynamicDateItem).withConfig({displayName:"DynamicDate",componentId:"sc-8vlg6i-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicDateAssetView),Container$j=dt$1.div.withConfig({displayName:"DynamicTagListAssetView__Container",componentId:"sc-1ikcnla-0"})([""]),LinkVariant=dt$1.span.withConfig({displayName:"DynamicTagListAssetView__LinkVariant",componentId:"sc-1ikcnla-1"})([""]),ButtonVariant=dt$1.span.withConfig({displayName:"DynamicTagListAssetView__ButtonVariant",componentId:"sc-1ikcnla-2"})([""]),Separator$2=dt$1.span.withConfig({displayName:"DynamicTagListAssetView__Separator",componentId:"sc-1ikcnla-3"})([""]),DynamicTagListItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,data:aa,variant:sa}=ea,la=reactExports.useMemo(()=>typeof aa=="string"?[]:aa,[aa]),ca=useRenderTagsList(la,{tagComponent:sa==="button"?ButtonVariant:LinkVariant,separatorComponent:Separator$2,separator:sa==="button"?"":", ",limit:3,addMoreTag:!0});return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:ca?.length?jsxRuntimeExports.jsx(Container$j,{children:ca}):aa})}),theme$S=withTheme(Scheme$8),DynamicTagListAssetView=dt$1(DynamicTagListItemView).withConfig({displayName:"DynamicTagListAssetView",componentId:"sc-1ikcnla-4"})(["","{display:flex;flex-flow:row wrap;gap:3px;width:100%;max-height:55px;overflow:hidden;}","{text-decoration:underline;}","{padding:3px;}"," ",""],Container$j,LinkVariant,ButtonVariant,theme$S.colors(ea=>lt$1(["",",","{color:",";}","{background-color:",";color:",";}","{color:",";}"],LinkVariant,Container$j,ea.dynamicTagList.link.color,ButtonVariant,ea.dynamicTagList.button.background,ea.dynamicTagList.button.color,Separator$2,ea.dynamicTagList.link.separator)),theme$S.sizes(ea=>lt$1(["",",","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";border-radius:",";}"],LinkVariant,Container$j,ea.dynamicTagList.link.fontSize,ea.dynamicTagList.link.fontWeight,ea.dynamicTagList.link.lineHeight,ButtonVariant,ea.dynamicTagList.button.fontSize,ea.dynamicTagList.button.fontWeight,ea.dynamicTagList.button.border))),DynamicTagListItemDragView=dt$1(DynamicTagListAssetView).withConfig({displayName:"DragPreview__DynamicTagListItemDragView",componentId:"sc-1chawys-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicTagListItem=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),[oa,aa]=useRenderTemplateEngine(`${na.payload?.source}`,!1,"tags"),sa=aa==="rendering"?`${ra("Loading")}...`:oa,la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(DynamicTagListItemDragView,{canDrop:ca,title:na.title,size:na.previewOptions?.size,data:sa,variant:na.previewOptions?.variant}),[na.title,na.previewOptions,sa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(DynamicTagListAssetView,{title:na.title,size:na.previewOptions?.size,data:sa,variant:na.previewOptions?.variant})})},DynamicTagList=dt$1(DraggableDynamicTagListItem).withConfig({displayName:"DynamicTagList",componentId:"sc-1qhbjvc-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicTagListAssetView),Container$i=dt$1.div.withConfig({displayName:"DynamicRatingAssetView__Container",componentId:"sc-15d375a-0"})([""]),DynamicRatingItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,rating:aa}=ea;return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:jsxRuntimeExports.jsx(Container$i,{children:jsxRuntimeExports.jsx(RatingSymbols$1,{symbol:"rating-star",rate:aa})})})}),theme$R=withTheme(Scheme$8),DynamicRatingAssetView=dt$1(DynamicRatingItemView).withConfig({displayName:"DynamicRatingAssetView",componentId:"sc-15d375a-1"})(["","{width:100px;height:19px;}",""],Container$i,theme$R.colors(ea=>lt$1(["","{> div{> div:first-of-type{fill:",";}> div:last-of-type{fill:",";}}}"],RatingSymbols$1,ea.dynamicRating.patternColor,ea.dynamicRating.trackColor))),DynamicRatingItemDragView=dt$1(DynamicRatingAssetView).withConfig({displayName:"DragPreview__DynamicRatingItemDragView",componentId:"sc-zs34ho-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicRatingItem=ea=>{const{assetData:na}=ea,[ra,oa]=useRenderTemplateEngine(na.payload?.source,!1),aa=reactExports.useMemo(()=>oa==="rendering"?0:parseFloat(ra),[ra,oa]),sa=reactExports.useCallback(la=>jsxRuntimeExports.jsx(DynamicRatingItemDragView,{canDrop:la,title:na.title,size:na.previewOptions?.size,rating:aa}),[na.title,na.previewOptions,aa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:sa,children:jsxRuntimeExports.jsx(DynamicRatingAssetView,{title:na.title,size:na.previewOptions?.size,rating:aa})})},DynamicRating=dt$1(DraggableDynamicRatingItem).withConfig({displayName:"DynamicRating",componentId:"sc-s9vov3-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicRatingAssetView),DynamicStockStatusItemView=React.memo(ea=>{const{className:na,title:ra,size:oa,children:aa}=ea;return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:aa})}),DynamicStockStatusAssetView=dt$1(DynamicStockStatusItemView).withConfig({displayName:"DynamicStockStatusAssetView",componentId:"sc-kwhkw9-0"})([""]),DynamicStockStatusItemDragView=dt$1(DynamicStockStatusAssetView).withConfig({displayName:"DragPreview__DynamicStockStatusItemDragView",componentId:"sc-6jiacs-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicStockStatusItem=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),[oa,aa]=useRenderTemplateEngine(na.payload?.source,!1),sa=aa==="rendering"?`${ra("Loading")}...`:oa,la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(DynamicStockStatusItemDragView,{canDrop:ca,title:na.title,size:na.previewOptions?.size,children:sa}),[na.title,na.previewOptions,sa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(DynamicStockStatusAssetView,{title:na.title,size:na.previewOptions?.size,children:sa})})},DynamicStockStatus=dt$1(DraggableDynamicStockStatusItem).withConfig({displayName:"DynamicStockStatus",componentId:"sc-13qgkhz-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicStockStatusAssetView),Button$1=dt$1.button.withConfig({displayName:"DynamicAddToCartAssetView__Button",componentId:"sc-txxf6d-0"})([""]),DynamicAddToCart$1=React.memo(ea=>{const{className:na,title:ra,size:oa,children:aa}=ea;return jsxRuntimeExports.jsx(DynamicSourceBaseAssetItemView$1,{className:na,title:ra,size:oa,children:jsxRuntimeExports.jsx(Button$1,{children:aa})})}),theme$Q=withTheme(Scheme$8),DynamicAddToCartAssetView=dt$1(DynamicAddToCart$1).withConfig({displayName:"DynamicAddToCartAssetView",componentId:"sc-txxf6d-1"})(["","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;box-shadow:none;cursor:pointer;}"," ",""],Button$1,theme$Q.colors(ea=>lt$1(["","{background-color:",";color:",";}"],Button$1,ea.dynamicLink.button.background,ea.dynamicLink.button.color)),theme$Q.sizes(ea=>lt$1(["","{font-weight:",";font-size:",";padding:",";border-radius:",";@media (max-width:1366px){padding:",";}}"],Button$1,ea.dynamicLink.button.fontWeight,ea.dynamicLink.button.fontSize,ea.dynamicLink.button.padding,ea.dynamicLink.button.borderRadius,ea.dynamicLink.button.smallScreen.padding))),DynamicTextItemDragView=dt$1(DynamicAddToCartAssetView).withConfig({displayName:"DragPreview__DynamicTextItemDragView",componentId:"sc-urj06d-0"})(["background:transparent;> div{background-color:transparent !important;}> span{opacity:0;visibility:hidden;}"]),DraggableDynamicAddToCart=ea=>{const{assetData:na}=ea,{t:ra}=useTranslation(),oa=!!na.payload?.source,[aa,sa]=useRenderTemplateEngine(na.payload?.source||na.previewOptions?.buttonText,!oa,"text"),la=sa==="rendering"?`${ra("Loading")}...`:aa,ca=reactExports.useCallback(ua=>jsxRuntimeExports.jsx(DynamicTextItemDragView,{canDrop:ua,title:na.title,size:na.previewOptions?.size,variant:na.previewOptions?.variant,children:la}),[na.title,na.previewOptions,la]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:ca,children:jsxRuntimeExports.jsx(DynamicAddToCartAssetView,{title:na.title,size:na.previewOptions?.size,variant:na.previewOptions?.variant,children:la})})},DynamicAddToCart=dt$1(DraggableDynamicAddToCart).withConfig({displayName:"DynamicAddToCart",componentId:"sc-o4b4hy-0"})(["display:inline-flex;&.ms-is-dragging{","{> div > *{opacity:0;visibility:hidden;}}}"],DynamicAddToCartAssetView);registerAssetItemComponent("dynamicText",DynamicText);registerAssetItemComponent("dynamicLink",DynamicLink);registerAssetItemComponent("dynamicMedia",DynamicMedia);registerAssetItemComponent("dynamicDate",DynamicDate);registerAssetItemComponent("dynamicTagList",DynamicTagList);registerAssetItemComponent("dynamicRating",DynamicRating);registerAssetItemComponent("dynamicStockStatus",DynamicStockStatus);registerAssetItemComponent("dynamicAddToCart",DynamicAddToCart);registerAssetItemComponent("dynamicSaleBadge",DynamicText);const defaultColors$y={background:"rgba(0,0,0,0.35)"},colors$y={dark:defaultColors$y},defaultSizing$y={},sizes$y={default:defaultSizing$y},Scheme$7=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$y,sizes:sizes$y},Symbol.toStringTag,{value:"Module"})),SVGContainer=dt$1.div.withConfig({displayName:"SymbolItemView__SVGContainer",componentId:"sc-1l7usc3-0"})([""]),SymbolItemView=React.memo(({className:ea,elementData:na,itemViewOptions:ra})=>{const{options:oa}=na,{preventElementStyles:aa=!1}=ra,sa=useBorder(na.styles?.border),la=useSize(na?.size),ca=useCorner(na.styles?.corner),ua=useBackgroundColor(na.styles?.backgroundColor),da=aa?{}:{...sa,...la,...ca,...ua};return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(SVGContainer,{dangerouslySetInnerHTML:{__html:ra?.content||oa?.content},style:da})})}),theme$P=withTheme(Scheme$7),SymbolItemView$1=dt$1(SymbolItemView).withConfig({displayName:"SymbolItemView",componentId:"sc-1l7usc3-1"})(["cursor:pointer;display:inline-flex !important;align-items:center;justify-content:center;","{display:flex;align-items:center;justify-content:center;}svg{overflow:visible;transition:300ms width,300ms height,300ms opacity;}"," ",""],SVGContainer,ea=>lt$1(["width:",";height:",";@media (max-width:1366px){width:100%;}"],withUnit$1(ea.itemViewOptions.size.width),withUnit$1(ea.itemViewOptions.size.height)),theme$P.colors((ea,na)=>lt$1(["background:",";svg{fill:",";width:",";height:",";}"],ea.background,na.itemViewOptions.fill,withUnit$1(na.itemViewOptions.iconSize.width),withUnit$1(na.itemViewOptions.iconSize.height)))),SymbolDragPreview$1=dt$1(SymbolItemView$1).withConfig({displayName:"DragPreview__SymbolDragPreview",componentId:"sc-h4ad2e-0"})(["display:inline-flex;background:transparent;& > svg{align-self:center;}"," ",""],ea=>lt$1(["width:",";height:",";"],withUnit$1(ea.itemViewOptions.size.width),withUnit$1(ea.itemViewOptions.size.height)),ea=>ea.canDrop&&lt$1(["svg{path{fill:"," !important;}}"],ea.canDropColor)),SymbolAssetItem=ea=>{const{assetData:na}=ea,{previewOptions:ra}=na,{dragMeta:oa,...aa}=ra,{elementData:sa}=getAssetPayload(na),la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(SymbolDragPreview$1,{elementData:sa||{},itemViewOptions:aa,canDrop:ca,canDropColor:oa.color}),[sa,aa,oa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(SymbolItemView$1,{elementData:sa||{},itemViewOptions:aa})})},StyledSymbolAssetItem=dt$1(SymbolAssetItem).withConfig({displayName:"SymbolAssetItem__StyledSymbolAssetItem",componentId:"sc-14s9ex2-0"})(["&.ms-is-dragging{"," > div{opacity:0 !important;}}"],SymbolItemView$1);registerAssetItemComponent("symbol",StyledSymbolAssetItem);const defaultColors$x={background:"rgba(0,0,0,0.35)"},colors$x={dark:defaultColors$x},defaultSizing$x={size:"115px",smallScreen:{size:"129px"}},sizes$x={default:defaultSizing$x},Scheme$6=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$x,sizes:sizes$x},Symbol.toStringTag,{value:"Module"})),ImageContainer$1=dt$1.div.withConfig({displayName:"FrameItemView__ImageContainer",componentId:"sc-hrz3e9-0"})([""]),FrameItemView=React.memo(({className:ea,elementData:na,itemViewOptions:ra})=>{const{options:oa}=na,{frameSize:aa}=ra,sa={clipPath:`url(#${oa?.clipPath})`};return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(ImageContainer$1,{style:sa,children:jsxRuntimeExports.jsx(ImageBox$1,{src:FramePlaceHolder,width:aa.width,height:aa.height,fitMode:"cover"})})})}),theme$O=withTheme(Scheme$6),FrameItemView$1=dt$1(FrameItemView).withConfig({displayName:"FrameItemView",componentId:"sc-hrz3e9-1"})(["display:flex;align-items:center;justify-content:center;"," ",""],theme$O.sizes(ea=>lt$1(["height:",";width:",";@media (max-width:1366px){height:",";width:",";}"],ea.size,ea.size,ea.smallScreen.size,ea.smallScreen.size)),theme$O.colors(ea=>lt$1(["background:",";"],ea.background))),SymbolDragPreview=dt$1(FrameItemView$1).withConfig({displayName:"DragPreview__SymbolDragPreview",componentId:"sc-ezraf1-0"})(["display:inline-flex;background:transparent;"]),FrameAssetItem=ea=>{const{assetData:na}=ea,{previewOptions:ra}=na,{dragMeta:oa,...aa}=ra,{elementData:sa}=getAssetPayload(na),la=reactExports.useCallback(ca=>jsxRuntimeExports.jsx(SymbolDragPreview,{elementData:sa||{},canDrop:ca,canDropColor:oa.color,itemViewOptions:aa}),[sa,oa,aa]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:la,children:jsxRuntimeExports.jsx(FrameItemView$1,{elementData:sa||{},itemViewOptions:aa})})},StyledFrameAssetItem=dt$1(FrameAssetItem).withConfig({displayName:"FrameAssetItem__StyledFrameAssetItem",componentId:"sc-pbkkd5-0"})(["&.ms-is-dragging{"," > div{opacity:0 !important;}}"],FrameItemView$1);registerAssetItemComponent("frame",StyledFrameAssetItem);const getClosestFormSelector=getClosestSelectedElementByType("form"),FormElementAssetItem=ea=>{const na=useSelector(getClosestFormSelector);return jsxRuntimeExports.jsx(StyledElementAssetItem,{...ea,dndType:dragTypes.FORM_FIELD,targetParent:na,createOnClick:!!na})};registerAssetItemComponent("form-element",FormElementAssetItem);const defaultColors$w={background:"rgba(0,0,0,0.34)",icon:"#FFF",dropIcon:"#000"},colors$w={dark:defaultColors$w},defaultSizing$w={borderRadius:"2px"},sizes$w={default:defaultSizing$w},Scheme$5=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$w,sizes:sizes$w},Symbol.toStringTag,{value:"Module"})),IconItemView=React.memo(({className:ea,content:na})=>jsxRuntimeExports.jsx("div",{className:ea,dangerouslySetInnerHTML:{__html:na}})),theme$N=withTheme(Scheme$5),IconAssetItemView=dt$1(IconItemView).withConfig({displayName:"IconAssetItemView",componentId:"sc-1fr95in-0"})(["position:relative;cursor:pointer;overflow:hidden;padding:0;aspect-ratio:1;svg{width:100%;height:100%;}"," ",""],theme$N.colors(ea=>lt$1(["background:",";svg{color:",";}"],ea.background,ea.icon)),theme$N.sizes(ea=>lt$1(["border-radius:",";"],ea.borderRadius))),theme$M=withTheme(Scheme$5),IconDragPreview=dt$1(IconAssetItemView).withConfig({displayName:"IconDragPreview",componentId:"sc-w2vj6-0"})(["",""],theme$M.colors((ea,na)=>lt$1(["",""],na.canDrop&&lt$1(["svg{color:",";}"],ea.dropIcon)))),IconAssetItem=ea=>{const{assetData:{previewOptions:{content:na}={}}}=ea,ra=reactExports.useRef(null),oa=reactExports.useCallback(aa=>jsxRuntimeExports.jsx(IconDragPreview,{content:na,canDrop:aa}),[na]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,ref:ra,dragPreviewGenerator:oa,children:jsxRuntimeExports.jsx(IconAssetItemView,{content:na})})},StyledIconAssetItem=dt$1(IconAssetItem).withConfig({displayName:"IconAssetItem__StyledIconAssetItem",componentId:"sc-1r2mcbo-0"})(["","{padding:10px;}"," img{filter:invert(1);transform:scale(0.6);}&.ms-is-dragging "," img{filter:none;}&.ms-is-dragging > *{transition:none;opacity:0;}"],IconAssetItemView,IconAssetItemView,IconAssetItemView);registerAssetItemComponent("icon",StyledIconAssetItem);const SvgImages=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",...ea},reactExports.createElement("g",{id:"image",transform:"translate(-437 -620)"},reactExports.createElement("g",{id:"Rectangle_1678_1_",transform:"translate(437 620)"},reactExports.createElement("path",{id:"Path_1065","data-name":"Path 1065",d:"M3,0H16a3,3,0,0,1,3,3V16a3,3,0,0,1-3,3H3a3,3,0,0,1-3-3V3A3,3,0,0,1,3,0Z",fill:"none"}),reactExports.createElement("path",{id:"Path_1066","data-name":"Path 1066",d:"M16,19H3a3.009,3.009,0,0,1-3-3V3A3.009,3.009,0,0,1,3,0H16a3.009,3.009,0,0,1,3,3V16A3.009,3.009,0,0,1,16,19ZM3,1.5A1.5,1.5,0,0,0,1.5,3V16A1.5,1.5,0,0,0,3,17.5H16A1.5,1.5,0,0,0,17.5,16V3A1.5,1.5,0,0,0,16,1.5Z"})),reactExports.createElement("g",{id:"Group_418_1_",transform:"translate(327.664 445.246)"},reactExports.createElement("path",{id:"Polygon_1_1_",d:"M114.84,185.75l2.5,4h-5Z"}),reactExports.createElement("path",{id:"Polygon_2_1_",d:"M120.84,182.75l4.5,7h-9Z"}),reactExports.createElement("circle",{id:"Ellipse_59_1_",cx:2.5,cy:2.5,r:2.5,transform:"translate(114.34 178.75)"})))),SvgTexts=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16.5,height:19,viewBox:"0 0 16.5 19",...ea},reactExports.createElement("g",{id:"text",transform:"translate(-338.5 -620)"},reactExports.createElement("path",{id:"text-2_1_",d:"M16.28,0l.22,4.46h-.55a5.4,5.4,0,0,0-.43-1.68,2.892,2.892,0,0,0-1.2-1.2,4.451,4.451,0,0,0-1.97-.39H9.58V15.71a3.786,3.786,0,0,0,.39,2.19,2.228,2.228,0,0,0,1.7.59h.68V19H4.02v-.52h.7a2.038,2.038,0,0,0,1.77-.73,4.108,4.108,0,0,0,.32-2.05V1.19H4.44a6.808,6.808,0,0,0-1.96.2A2.712,2.712,0,0,0,1.19,2.41,4.044,4.044,0,0,0,.56,4.46H0L.23,0Z",transform:"translate(338.5 620)"}))),SvgShapes=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:18.889,viewBox:"0 0 19 18.889",...ea},reactExports.createElement("g",{id:"shape",transform:"translate(-636.998 -620)"},reactExports.createElement("rect",{id:"Rectangle_1695_1_",width:7,height:7,transform:"translate(647.998 621)"}),reactExports.createElement("path",{id:"Polygon_3_1_",d:"M4.89,0l4.5,8h-9Z",transform:"translate(636.998 620)"}),reactExports.createElement("circle",{id:"Ellipse_161_1_",cx:4,cy:4,r:4,transform:"translate(647.998 630)"}),reactExports.createElement("g",{id:"Rectangle_1696_1_",transform:"translate(637.998 636.475) rotate(-45)"},reactExports.createElement("path",{id:"Path_1067","data-name":"Path 1067",d:"M1,0H8A1,1,0,0,1,9,1H9A1,1,0,0,1,8,2H1A1,1,0,0,1,0,1H0A1,1,0,0,1,1,0Z",fill:"none"}),reactExports.createElement("path",{id:"Path_1068","data-name":"Path 1068",d:"M.29,1.71h0A.99.99,0,0,1,0,1,.967.967,0,0,1,.29.3.96.96,0,0,1,1,0H8A1,1,0,0,1,8,2H1A.99.99,0,0,1,.29,1.71ZM1,1Z"})),reactExports.createElement("g",{id:"Rectangle_1697_1_",transform:"translate(641.998 637.475) rotate(-45)"},reactExports.createElement("path",{id:"Path_1069","data-name":"Path 1069",d:"M1,0H3A1,1,0,0,1,4,1H4A1,1,0,0,1,3,2H1A1,1,0,0,1,0,1H0A1,1,0,0,1,1,0Z",fill:"none"}),reactExports.createElement("path",{id:"Path_1070","data-name":"Path 1070",d:"M.29,1.71h0A.99.99,0,0,1,0,1,.967.967,0,0,1,.29.3.96.96,0,0,1,1,0H3A1,1,0,0,1,3,2H1A.99.99,0,0,1,.29,1.71ZM1,1Z"})),reactExports.createElement("g",{id:"Rectangle_1698_1_",transform:"translate(636.998 632.475) rotate(-45)"},reactExports.createElement("path",{id:"Path_1071","data-name":"Path 1071",d:"M1,0H3A1,1,0,0,1,4,1H4A1,1,0,0,1,3,2H1A1,1,0,0,1,0,1H0A1,1,0,0,1,1,0Z",fill:"none"}),reactExports.createElement("path",{id:"Path_1072","data-name":"Path 1072",d:"M.29,1.71A1.123,1.123,0,0,1,0,1,.967.967,0,0,1,.29.3.96.96,0,0,1,1,0H3A1,1,0,0,1,4,1,.99.99,0,0,1,3,2H1A.99.99,0,0,1,.29,1.71ZM1,1Z"})))),SvgIcons=ea=>reactExports.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M0.540283 3.63782C-0.180054 2.80563 -0.180054 1.45636 0.540283 0.624146C1.26062 -0.208038 2.42847 -0.208038 3.1488 0.624146L4.0177 1.62805L4.88196 0.629547C5.60022 -0.200256 6.76465 -0.200256 7.48291 0.629547C8.20117 1.45932 8.20117 2.80466 7.48291 3.63443L4.00952 7.64737L0.540283 3.63782Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.1716 6.82843C10.9218 7.57858 11.9391 8 13 8C14.0609 8 15.0782 7.57858 15.8284 6.82843C16.5786 6.07828 17 5.06085 17 4C17 2.93915 16.5786 1.92172 15.8284 1.17157C15.0782 0.421417 14.0609 0 13 0C11.9391 0 10.9218 0.421417 10.1716 1.17157C9.42139 1.92172 9 2.93915 9 4C9 5.06085 9.42139 6.07828 10.1716 6.82843ZM12.0243 3.42426C11.9117 3.53677 11.7592 3.60001 11.6 3.60001C11.5137 3.60001 11.4292 3.58136 11.3521 3.54636C11.3169 3.5304 11.2832 3.51105 11.2516 3.48853C11.2247 3.46936 11.1993 3.44791 11.1758 3.42426C11.0632 3.31174 11 3.15912 11 3C11 2.84088 11.0632 2.68826 11.1758 2.57574C11.2882 2.46323 11.4409 2.39999 11.6 2.39999C11.7592 2.39999 11.9117 2.46323 12.0243 2.57574C12.1368 2.68826 12.2 2.84088 12.2 3C12.2 3.15912 12.1368 3.31174 12.0243 3.42426ZM14.8242 3.42426C14.7118 3.53677 14.5591 3.60001 14.4 3.60001C14.2408 3.60001 14.0883 3.53677 13.9757 3.42426C13.8632 3.31174 13.8 3.15912 13.8 3C13.8 2.84088 13.8632 2.68826 13.9757 2.57574C14.0883 2.46323 14.2408 2.39999 14.4 2.39999C14.5591 2.39999 14.7118 2.46323 14.8242 2.57574C14.9368 2.68826 15 2.84088 15 3C15 3.09528 14.9773 3.18823 14.9349 3.27167C14.9167 3.30746 14.895 3.34149 14.8699 3.3732C14.8557 3.39099 14.8405 3.40802 14.8242 3.42426ZM10.736 4.79999H15.264C15.0991 5.2688 14.7927 5.67484 14.3872 5.96207C13.9817 6.2493 13.4969 6.40356 13 6.40356C12.5031 6.40356 12.0183 6.2493 11.6128 5.96207C11.2073 5.67484 10.9009 5.2688 10.736 4.79999Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10C11.4478 10 11 10.4477 11 11H10C9.44775 11 9 11.4477 9 12V16C9 16.5523 9.44775 17 10 17H16C16.5522 17 17 16.5523 17 16V12C17 11.4477 16.5522 11 16 11H15C15 10.4477 14.5522 10 14 10H12ZM13 12C11.8954 12 11 12.8954 11 14C11 15.1046 11.8954 16 13 16C14.1046 16 15 15.1046 15 14C15 12.8954 14.1046 12 13 12Z"}),reactExports.createElement("path",{d:"M7.85779 8.06674C7.94727 8.1304 8 8.2308 8 8.33749V14.4125C8 14.4245 7.99939 14.4363 7.99805 14.4481C7.99939 14.4735 8 14.4992 8 14.525C8 15.3948 7.26257 16.1 6.35291 16.1C5.44324 16.1 4.70593 15.3948 4.70593 14.525C4.70593 13.6552 5.44324 12.95 6.35291 12.95C6.70288 12.95 7.02734 13.0544 7.29407 13.2323V10.5911L3.29407 11.7386V15.3125C3.29407 15.3245 3.29346 15.3364 3.29224 15.348C3.29346 15.3735 3.29407 15.3992 3.29407 15.425C3.29407 16.2949 2.55676 17 1.64709 17C0.737427 17 0 16.2949 0 15.425C0 14.5551 0.737427 13.85 1.64709 13.85C1.99695 13.85 2.32141 13.9543 2.58826 14.1323V9.6875C2.58826 9.53845 2.69043 9.40707 2.83972 9.36423L7.54565 8.01425C7.58813 8.00204 7.63208 7.99777 7.67517 8.00107C7.74036 8.00607 7.80383 8.02838 7.85779 8.06674Z"})),SvgButtons=ea=>reactExports.createElement("svg",{id:"button",xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",...ea},reactExports.createElement("path",{id:"Path_1086","data-name":"Path 1086",d:"M12,11H9.5V6.25a1.25,1.25,0,0,0-2.5,0v7.87l-.91-.91a1.708,1.708,0,0,0-2.42,0,1.292,1.292,0,0,0,0,1.82L7.1,18.46c.02.02.04.02.05.03A.989.989,0,0,0,8,19h6a3,3,0,0,0,3-3A5,5,0,0,0,12,11Z"}),reactExports.createElement("path",{id:"Union_26_2_",d:"M5,9H3A3,3,0,0,1,0,6V3A3,3,0,0,1,3,0H16a3,3,0,0,1,3,3V6a3,3,0,0,1-3,3H11V7.5h5A1.5,1.5,0,0,0,17.5,6V3A1.5,1.5,0,0,0,16,1.5H3A1.5,1.5,0,0,0,1.5,3V6A1.5,1.5,0,0,0,3,7.5H5Z"})),SvgVideos=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",...ea},reactExports.createElement("g",{id:"video",transform:"translate(-537 -620)"},reactExports.createElement("g",{id:"Rectangle_1780_1_",transform:"translate(537 620)"},reactExports.createElement("path",{id:"Path_1073","data-name":"Path 1073",d:"M3,0H16a3,3,0,0,1,3,3V16a3,3,0,0,1-3,3H3a3,3,0,0,1-3-3V3A3,3,0,0,1,3,0Z",fill:"none"}),reactExports.createElement("path",{id:"Path_1074","data-name":"Path 1074",d:"M16,19H3a3.009,3.009,0,0,1-3-3V3A3.009,3.009,0,0,1,3,0H16a3.009,3.009,0,0,1,3,3V16A3.009,3.009,0,0,1,16,19ZM3,1.5A1.5,1.5,0,0,0,1.5,3V16A1.5,1.5,0,0,0,3,17.5H16A1.5,1.5,0,0,0,17.5,16V3A1.5,1.5,0,0,0,16,1.5Z"})),reactExports.createElement("path",{id:"Rectangle_1781_1_",d:"M3.75,2.5h1.5A.755.755,0,0,1,6,3.25H6A.755.755,0,0,1,5.25,4H3.75A.755.755,0,0,1,3,3.25H3A.755.755,0,0,1,3.75,2.5Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Rectangle_1782_1_",d:"M3.75,15h1.5a.755.755,0,0,1,.75.75H6a.755.755,0,0,1-.75.75H3.75A.755.755,0,0,1,3,15.75H3A.755.755,0,0,1,3.75,15Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Rectangle_1783_1_",d:"M7.75,2.5h3.5a.755.755,0,0,1,.75.75h0a.755.755,0,0,1-.75.75H7.75A.755.755,0,0,1,7,3.25H7A.755.755,0,0,1,7.75,2.5Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Rectangle_1784_1_",d:"M7.75,15h3.5a.755.755,0,0,1,.75.75h0a.755.755,0,0,1-.75.75H7.75A.755.755,0,0,1,7,15.75H7A.755.755,0,0,1,7.75,15Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Rectangle_1785_1_",d:"M13.75,2.5h1.5a.755.755,0,0,1,.75.75h0a.755.755,0,0,1-.75.75h-1.5A.755.755,0,0,1,13,3.25h0A.755.755,0,0,1,13.75,2.5Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Rectangle_1786_1_",d:"M13.75,15h1.5a.755.755,0,0,1,.75.75h0a.755.755,0,0,1-.75.75h-1.5a.755.755,0,0,1-.75-.75h0A.755.755,0,0,1,13.75,15Z",transform:"translate(537 620)"}),reactExports.createElement("path",{id:"Polygon_2-2_1_",d:"M12.26,9.07a.5.5,0,0,1,.18.68.517.517,0,0,1-.18.18L7.75,12.56a.493.493,0,0,1-.68-.18A.451.451,0,0,1,7,12.13V6.87a.5.5,0,0,1,.5-.5.43.43,0,0,1,.25.07Z",transform:"translate(537 620)"}))),SvgControls=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20.521,height:20.522,viewBox:"0 0 20.521 20.522",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19819,8309h7l-3.5,4Zm9-9,4,3.5-4,3.5Zm-9,3.5a3.5,3.5,0,1,1,3.5,3.5A3.5,3.5,0,0,1,19819,8303.5Zm-6,0,4-3.5v7Zm6-5.5,3.5-4,3.5,4Z",transform:"translate(-19812.238 -8293.238)"})),SvgElements=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",...ea},reactExports.createElement("path",{d:"M9.5 5C10.0523 5 10.5 5.44772 10.5 6V8.5H13C13.5523 8.5 14 8.94772 14 9.5C14 10.0523 13.5523 10.5 13 10.5H10.5V13C10.5 13.5523 10.0523 14 9.5 14C8.94772 14 8.5 13.5523 8.5 13V10.5H6C5.44772 10.5 5 10.0523 5 9.5C5 8.94772 5.44772 8.5 6 8.5H8.5V6C8.5 5.44772 8.94772 5 9.5 5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3C0 1.34315 1.34315 0 3 0H16C17.6569 0 19 1.34315 19 3V16C19 17.6569 17.6569 19 16 19H3C1.34315 19 0 17.6569 0 16V3ZM3 1.5H16C16.8284 1.5 17.5 2.17157 17.5 3V16C17.5 16.8284 16.8284 17.5 16 17.5H3C2.17157 17.5 1.5 16.8284 1.5 16V3C1.5 2.17157 2.17157 1.5 3 1.5Z"})),SvgForm=ea=>reactExports.createElement("svg",{width:19,height:19,viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.5H16C16.8284 1.5 17.5 2.17157 17.5 3V12H19V3C19 1.34315 17.6569 0 16 0H3C1.34315 0 0 1.34315 0 3V16C0 17.6569 1.34315 19 3 19H11V17.5H3C2.17157 17.5 1.5 16.8284 1.5 16V3C1.5 2.17157 2.17157 1.5 3 1.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.5C3 3.22386 3.22386 3 3.5 3H10.5C10.7761 3 11 3.22386 11 3.5C11 3.77614 10.7761 4 10.5 4H3.5C3.22386 4 3 3.77614 3 3.5Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H15C15.5523 5 16 5.44772 16 6C16 6.55228 15.5523 7 15 7H4C3.44772 7 3 6.55228 3 6Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8C3.44772 8 3 8.44772 3 9V11C3 11.5523 3.44772 12 4 12H11V11.6C11 10.4954 11.8954 9.6 13 9.6H15C15.3643 9.6 15.7058 9.69739 16 9.86756V9C16 8.44772 15.5523 8 15 8H4Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7251 14.7604C18.1087 15.0095 18.0851 15.616 17.69 15.6633L15.6961 15.9019L14.8018 17.7986C14.6246 18.1745 14.0768 17.9905 13.9862 17.5247L13.011 12.5078C12.9345 12.1141 13.2697 11.8663 13.5938 12.0769L17.7251 14.7604Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 15C3 14.4477 3.44772 14 4 14H7C7.55228 14 8 14.4477 8 15C8 15.5523 7.55228 16 7 16H4C3.44772 16 3 15.5523 3 15Z"}),reactExports.createElement("rect",{x:15.1909,y:16.1191,width:1.12286,height:3.51965,rx:.56143,transform:"rotate(-37.1214 15.1909 16.1191)"})),DataSourceTab=ea=>{const na=useSelector(getActiveSectionDataSourceType);if(!na)return null;const ra=getDataSourceAssetBarData(na);return jsxRuntimeExports.jsx(AssetsBarTab,{...ea,name:ra.tooltip,icon:ra.icon})},theme$L=withTheme(scheme$n),DataSourceTab$1=dt$1(DataSourceTab).withConfig({displayName:"DataSourceTab",componentId:"sc-9d3vly-0"})(["position:relative;&:after{content:'';position:absolute;top:calc(50% - 7px);left:calc(50% + 7px);width:7px;height:7px;background:#ff504a;border-radius:50%;border:1px solid #444444;transform:translate(-50%,-50%);}",""],theme$L.colors((ea,na)=>lt$1(["",""],na.selected&&lt$1(["&:not(.depicter-selected-item) svg{fill:",";}"],ea.iconColor)))),dynamicSourceAssets={tester:({type:ea})=>getDataSourcesType().includes(ea),handler:getDynamicSourceAssets},actionsMap=["wp-photos","wp-videos","wp-vectors","photos","icons","videos","vectors","elements"],wpAssetsHandler={tester:({type:ea})=>actionsMap.includes(ea),handler:getWPPluginAssets},handlers$1=[wpAssetsHandler,dynamicSourceAssets],getAssets=ea=>handlers$1.find(na=>na.tester(ea))?.handler(ea)||{};var lib={exports:{}},masonry={exports:{}},outlayer={exports:{}},evEmitter$1={exports:{}},evEmitter=evEmitter$1.exports,hasRequiredEvEmitter;function requireEvEmitter(){return hasRequiredEvEmitter||(hasRequiredEvEmitter=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra():na.EvEmitter=ra()})(typeof window<"u"?window:evEmitter,function(){function na(){}var ra=na.prototype;return ra.on=function(oa,aa){if(!(!oa||!aa)){var sa=this._events=this._events||{},la=sa[oa]=sa[oa]||[];return la.indexOf(aa)==-1&&la.push(aa),this}},ra.once=function(oa,aa){if(!(!oa||!aa)){this.on(oa,aa);var sa=this._onceEvents=this._onceEvents||{},la=sa[oa]=sa[oa]||{};return la[aa]=!0,this}},ra.off=function(oa,aa){var sa=this._events&&this._events[oa];if(!(!sa||!sa.length)){var la=sa.indexOf(aa);return la!=-1&&sa.splice(la,1),this}},ra.emitEvent=function(oa,aa){var sa=this._events&&this._events[oa];if(!(!sa||!sa.length)){sa=sa.slice(0),aa=aa||[];for(var la=this._onceEvents&&this._onceEvents[oa],ca=0;ca<sa.length;ca++){var ua=sa[ca],da=la&&la[ua];da&&(this.off(oa,ua),delete la[ua]),ua.apply(this,aa)}return this}},ra.allOff=function(){delete this._events,delete this._onceEvents},na})}(evEmitter$1)),evEmitter$1.exports}var getSize={exports:{}};/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */var hasRequiredGetSize;function requireGetSize(){return hasRequiredGetSize||(hasRequiredGetSize=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra():na.getSize=ra()})(window,function(){function ra(fa){var ma=parseFloat(fa),va=fa.indexOf("%")==-1&&!isNaN(ma);return va&&ma}function oa(){}var aa=typeof console>"u"?oa:function(fa){console.error(fa)},sa=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],la=sa.length;function ca(){for(var fa={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},ma=0;ma<la;ma++){var va=sa[ma];fa[va]=0}return fa}function ua(fa){var ma=getComputedStyle(fa);return ma||aa("Style returned "+ma+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),ma}var da=!1,pa;function ha(){if(!da){da=!0;var fa=document.createElement("div");fa.style.width="200px",fa.style.padding="1px 2px 3px 4px",fa.style.borderStyle="solid",fa.style.borderWidth="1px 2px 3px 4px",fa.style.boxSizing="border-box";var ma=document.body||document.documentElement;ma.appendChild(fa);var va=ua(fa);pa=Math.round(ra(va.width))==200,ga.isBoxSizeOuter=pa,ma.removeChild(fa)}}function ga(fa){if(ha(),typeof fa=="string"&&(fa=document.querySelector(fa)),!(!fa||typeof fa!="object"||!fa.nodeType)){var ma=ua(fa);if(ma.display=="none")return ca();var va={};va.width=fa.offsetWidth,va.height=fa.offsetHeight;for(var xa=va.isBorderBox=ma.boxSizing=="border-box",ya=0;ya<la;ya++){var Aa=sa[ya],Ca=ma[Aa],Sa=parseFloat(Ca);va[Aa]=isNaN(Sa)?0:Sa}var wa=va.paddingLeft+va.paddingRight,ba=va.paddingTop+va.paddingBottom,Ea=va.marginLeft+va.marginRight,$a=va.marginTop+va.marginBottom,Ma=va.borderLeftWidth+va.borderRightWidth,Ia=va.borderTopWidth+va.borderBottomWidth,Oa=xa&&pa,Da=ra(ma.width);Da!==!1&&(va.width=Da+(Oa?0:wa+Ma));var Ta=ra(ma.height);return Ta!==!1&&(va.height=Ta+(Oa?0:ba+Ia)),va.innerWidth=va.width-(wa+Ma),va.innerHeight=va.height-(ba+Ia),va.outerWidth=va.width+Ea,va.outerHeight=va.height+$a,va}}return ga})}(getSize)),getSize.exports}var utils$1={exports:{}},matchesSelector={exports:{}},hasRequiredMatchesSelector;function requireMatchesSelector(){return hasRequiredMatchesSelector||(hasRequiredMatchesSelector=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra():na.matchesSelector=ra()})(window,function(){var ra=function(){var oa=window.Element.prototype;if(oa.matches)return"matches";if(oa.matchesSelector)return"matchesSelector";for(var aa=["webkit","moz","ms","o"],sa=0;sa<aa.length;sa++){var la=aa[sa],ca=la+"MatchesSelector";if(oa[ca])return ca}}();return function(aa,sa){return aa[ra](sa)}})}(matchesSelector)),matchesSelector.exports}var hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra(na,requireMatchesSelector()):na.fizzyUIUtils=ra(na,na.matchesSelector)})(window,function(ra,oa){var aa={};aa.extend=function(ca,ua){for(var da in ua)ca[da]=ua[da];return ca},aa.modulo=function(ca,ua){return(ca%ua+ua)%ua};var sa=Array.prototype.slice;aa.makeArray=function(ca){if(Array.isArray(ca))return ca;if(ca==null)return[];var ua=typeof ca=="object"&&typeof ca.length=="number";return ua?sa.call(ca):[ca]},aa.removeFrom=function(ca,ua){var da=ca.indexOf(ua);da!=-1&&ca.splice(da,1)},aa.getParent=function(ca,ua){for(;ca.parentNode&&ca!=document.body;)if(ca=ca.parentNode,oa(ca,ua))return ca},aa.getQueryElement=function(ca){return typeof ca=="string"?document.querySelector(ca):ca},aa.handleEvent=function(ca){var ua="on"+ca.type;this[ua]&&this[ua](ca)},aa.filterFindElements=function(ca,ua){ca=aa.makeArray(ca);var da=[];return ca.forEach(function(pa){if(pa instanceof HTMLElement){if(!ua){da.push(pa);return}oa(pa,ua)&&da.push(pa);for(var ha=pa.querySelectorAll(ua),ga=0;ga<ha.length;ga++)da.push(ha[ga])}}),da},aa.debounceMethod=function(ca,ua,da){da=da||100;var pa=ca.prototype[ua],ha=ua+"Timeout";ca.prototype[ua]=function(){var ga=this[ha];clearTimeout(ga);var fa=arguments,ma=this;this[ha]=setTimeout(function(){pa.apply(ma,fa),delete ma[ha]},da)}},aa.docReady=function(ca){var ua=document.readyState;ua=="complete"||ua=="interactive"?setTimeout(ca):document.addEventListener("DOMContentLoaded",ca)},aa.toDashed=function(ca){return ca.replace(/(.)([A-Z])/g,function(ua,da,pa){return da+"-"+pa}).toLowerCase()};var la=ra.console;return aa.htmlInit=function(ca,ua){aa.docReady(function(){var da=aa.toDashed(ua),pa="data-"+da,ha=document.querySelectorAll("["+pa+"]"),ga=document.querySelectorAll(".js-"+da),fa=aa.makeArray(ha).concat(aa.makeArray(ga)),ma=pa+"-options",va=ra.jQuery;fa.forEach(function(xa){var ya=xa.getAttribute(pa)||xa.getAttribute(ma),Aa;try{Aa=ya&&JSON.parse(ya)}catch(Sa){la&&la.error("Error parsing "+pa+" on "+xa.className+": "+Sa);return}var Ca=new ca(xa,Aa);va&&va.data(xa,ua,Ca)})})},aa})}(utils$1)),utils$1.exports}var item={exports:{}},hasRequiredItem;function requireItem(){return hasRequiredItem||(hasRequiredItem=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra(requireEvEmitter(),requireGetSize()):(na.Outlayer={},na.Outlayer.Item=ra(na.EvEmitter,na.getSize))})(window,function(ra,oa){function aa(xa){for(var ya in xa)return!1;return ya=null,!0}var sa=document.documentElement.style,la=typeof sa.transition=="string"?"transition":"WebkitTransition",ca=typeof sa.transform=="string"?"transform":"WebkitTransform",ua={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[la],da={transform:ca,transition:la,transitionDuration:la+"Duration",transitionProperty:la+"Property",transitionDelay:la+"Delay"};function pa(xa,ya){xa&&(this.element=xa,this.layout=ya,this.position={x:0,y:0},this._create())}var ha=pa.prototype=Object.create(ra.prototype);ha.constructor=pa,ha._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},ha.handleEvent=function(xa){var ya="on"+xa.type;this[ya]&&this[ya](xa)},ha.getSize=function(){this.size=oa(this.element)},ha.css=function(xa){var ya=this.element.style;for(var Aa in xa){var Ca=da[Aa]||Aa;ya[Ca]=xa[Aa]}},ha.getPosition=function(){var xa=getComputedStyle(this.element),ya=this.layout._getOption("originLeft"),Aa=this.layout._getOption("originTop"),Ca=xa[ya?"left":"right"],Sa=xa[Aa?"top":"bottom"],wa=parseFloat(Ca),ba=parseFloat(Sa),Ea=this.layout.size;Ca.indexOf("%")!=-1&&(wa=wa/100*Ea.width),Sa.indexOf("%")!=-1&&(ba=ba/100*Ea.height),wa=isNaN(wa)?0:wa,ba=isNaN(ba)?0:ba,wa-=ya?Ea.paddingLeft:Ea.paddingRight,ba-=Aa?Ea.paddingTop:Ea.paddingBottom,this.position.x=wa,this.position.y=ba},ha.layoutPosition=function(){var xa=this.layout.size,ya={},Aa=this.layout._getOption("originLeft"),Ca=this.layout._getOption("originTop"),Sa=Aa?"paddingLeft":"paddingRight",wa=Aa?"left":"right",ba=Aa?"right":"left",Ea=this.position.x+xa[Sa];ya[wa]=this.getXValue(Ea),ya[ba]="";var $a=Ca?"paddingTop":"paddingBottom",Ma=Ca?"top":"bottom",Ia=Ca?"bottom":"top",Oa=this.position.y+xa[$a];ya[Ma]=this.getYValue(Oa),ya[Ia]="",this.css(ya),this.emitEvent("layout",[this])},ha.getXValue=function(xa){var ya=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!ya?xa/this.layout.size.width*100+"%":xa+"px"},ha.getYValue=function(xa){var ya=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&ya?xa/this.layout.size.height*100+"%":xa+"px"},ha._transitionTo=function(xa,ya){this.getPosition();var Aa=this.position.x,Ca=this.position.y,Sa=xa==this.position.x&&ya==this.position.y;if(this.setPosition(xa,ya),Sa&&!this.isTransitioning){this.layoutPosition();return}var wa=xa-Aa,ba=ya-Ca,Ea={};Ea.transform=this.getTranslate(wa,ba),this.transition({to:Ea,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},ha.getTranslate=function(xa,ya){var Aa=this.layout._getOption("originLeft"),Ca=this.layout._getOption("originTop");return xa=Aa?xa:-xa,ya=Ca?ya:-ya,"translate3d("+xa+"px, "+ya+"px, 0)"},ha.goTo=function(xa,ya){this.setPosition(xa,ya),this.layoutPosition()},ha.moveTo=ha._transitionTo,ha.setPosition=function(xa,ya){this.position.x=parseFloat(xa),this.position.y=parseFloat(ya)},ha._nonTransition=function(xa){this.css(xa.to),xa.isCleaning&&this._removeStyles(xa.to);for(var ya in xa.onTransitionEnd)xa.onTransitionEnd[ya].call(this)},ha.transition=function(xa){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(xa);return}var ya=this._transn;for(var Aa in xa.onTransitionEnd)ya.onEnd[Aa]=xa.onTransitionEnd[Aa];for(Aa in xa.to)ya.ingProperties[Aa]=!0,xa.isCleaning&&(ya.clean[Aa]=!0);xa.from&&(this.css(xa.from),this.element.offsetHeight),this.enableTransition(xa.to),this.css(xa.to),this.isTransitioning=!0};function ga(xa){return xa.replace(/([A-Z])/g,function(ya){return"-"+ya.toLowerCase()})}var fa="opacity,"+ga(ca);ha.enableTransition=function(){if(!this.isTransitioning){var xa=this.layout.options.transitionDuration;xa=typeof xa=="number"?xa+"ms":xa,this.css({transitionProperty:fa,transitionDuration:xa,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(ua,this,!1)}},ha.onwebkitTransitionEnd=function(xa){this.ontransitionend(xa)},ha.onotransitionend=function(xa){this.ontransitionend(xa)};var ma={"-webkit-transform":"transform"};ha.ontransitionend=function(xa){if(xa.target===this.element){var ya=this._transn,Aa=ma[xa.propertyName]||xa.propertyName;if(delete ya.ingProperties[Aa],aa(ya.ingProperties)&&this.disableTransition(),Aa in ya.clean&&(this.element.style[xa.propertyName]="",delete ya.clean[Aa]),Aa in ya.onEnd){var Ca=ya.onEnd[Aa];Ca.call(this),delete ya.onEnd[Aa]}this.emitEvent("transitionEnd",[this])}},ha.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(ua,this,!1),this.isTransitioning=!1},ha._removeStyles=function(xa){var ya={};for(var Aa in xa)ya[Aa]="";this.css(ya)};var va={transitionProperty:"",transitionDuration:"",transitionDelay:""};return ha.removeTransitionStyles=function(){this.css(va)},ha.stagger=function(xa){xa=isNaN(xa)?0:xa,this.staggerDelay=xa+"ms"},ha.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},ha.remove=function(){if(!la||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},ha.reveal=function(){delete this.isHidden,this.css({display:""});var xa=this.layout.options,ya={},Aa=this.getHideRevealTransitionEndProperty("visibleStyle");ya[Aa]=this.onRevealTransitionEnd,this.transition({from:xa.hiddenStyle,to:xa.visibleStyle,isCleaning:!0,onTransitionEnd:ya})},ha.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},ha.getHideRevealTransitionEndProperty=function(xa){var ya=this.layout.options[xa];if(ya.opacity)return"opacity";for(var Aa in ya)return Aa},ha.hide=function(){this.isHidden=!0,this.css({display:""});var xa=this.layout.options,ya={},Aa=this.getHideRevealTransitionEndProperty("hiddenStyle");ya[Aa]=this.onHideTransitionEnd,this.transition({from:xa.visibleStyle,to:xa.hiddenStyle,isCleaning:!0,onTransitionEnd:ya})},ha.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},ha.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},pa})}(item)),item.exports}/*!
 * Outlayer v2.1.1
 * the brains and guts of a layout library
 * MIT license
 */var hasRequiredOutlayer;function requireOutlayer(){return hasRequiredOutlayer||(hasRequiredOutlayer=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra(na,requireEvEmitter(),requireGetSize(),requireUtils$1(),requireItem()):na.Outlayer=ra(na,na.EvEmitter,na.getSize,na.fizzyUIUtils,na.Outlayer.Item)})(window,function(ra,oa,aa,sa,la){var ca=ra.console,ua=ra.jQuery,da=function(){},pa=0,ha={};function ga(ya,Aa){var Ca=sa.getQueryElement(ya);if(!Ca){ca&&ca.error("Bad element for "+this.constructor.namespace+": "+(Ca||ya));return}this.element=Ca,ua&&(this.$element=ua(this.element)),this.options=sa.extend({},this.constructor.defaults),this.option(Aa);var Sa=++pa;this.element.outlayerGUID=Sa,ha[Sa]=this,this._create();var wa=this._getOption("initLayout");wa&&this.layout()}ga.namespace="outlayer",ga.Item=la,ga.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var fa=ga.prototype;sa.extend(fa,oa.prototype),fa.option=function(ya){sa.extend(this.options,ya)},fa._getOption=function(ya){var Aa=this.constructor.compatOptions[ya];return Aa&&this.options[Aa]!==void 0?this.options[Aa]:this.options[ya]},ga.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},fa._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),sa.extend(this.element.style,this.options.containerStyle);var ya=this._getOption("resize");ya&&this.bindResize()},fa.reloadItems=function(){this.items=this._itemize(this.element.children)},fa._itemize=function(ya){for(var Aa=this._filterFindItemElements(ya),Ca=this.constructor.Item,Sa=[],wa=0;wa<Aa.length;wa++){var ba=Aa[wa],Ea=new Ca(ba,this);Sa.push(Ea)}return Sa},fa._filterFindItemElements=function(ya){return sa.filterFindElements(ya,this.options.itemSelector)},fa.getItemElements=function(){return this.items.map(function(ya){return ya.element})},fa.layout=function(){this._resetLayout(),this._manageStamps();var ya=this._getOption("layoutInstant"),Aa=ya!==void 0?ya:!this._isLayoutInited;this.layoutItems(this.items,Aa),this._isLayoutInited=!0},fa._init=fa.layout,fa._resetLayout=function(){this.getSize()},fa.getSize=function(){this.size=aa(this.element)},fa._getMeasurement=function(ya,Aa){var Ca=this.options[ya],Sa;Ca?(typeof Ca=="string"?Sa=this.element.querySelector(Ca):Ca instanceof HTMLElement&&(Sa=Ca),this[ya]=Sa?aa(Sa)[Aa]:Ca):this[ya]=0},fa.layoutItems=function(ya,Aa){ya=this._getItemsForLayout(ya),this._layoutItems(ya,Aa),this._postLayout()},fa._getItemsForLayout=function(ya){return ya.filter(function(Aa){return!Aa.isIgnored})},fa._layoutItems=function(ya,Aa){if(this._emitCompleteOnItems("layout",ya),!(!ya||!ya.length)){var Ca=[];ya.forEach(function(Sa){var wa=this._getItemLayoutPosition(Sa);wa.item=Sa,wa.isInstant=Aa||Sa.isLayoutInstant,Ca.push(wa)},this),this._processLayoutQueue(Ca)}},fa._getItemLayoutPosition=function(){return{x:0,y:0}},fa._processLayoutQueue=function(ya){this.updateStagger(),ya.forEach(function(Aa,Ca){this._positionItem(Aa.item,Aa.x,Aa.y,Aa.isInstant,Ca)},this)},fa.updateStagger=function(){var ya=this.options.stagger;if(ya==null){this.stagger=0;return}return this.stagger=xa(ya),this.stagger},fa._positionItem=function(ya,Aa,Ca,Sa,wa){Sa?ya.goTo(Aa,Ca):(ya.stagger(wa*this.stagger),ya.moveTo(Aa,Ca))},fa._postLayout=function(){this.resizeContainer()},fa.resizeContainer=function(){var ya=this._getOption("resizeContainer");if(ya){var Aa=this._getContainerSize();Aa&&(this._setContainerMeasure(Aa.width,!0),this._setContainerMeasure(Aa.height,!1))}},fa._getContainerSize=da,fa._setContainerMeasure=function(ya,Aa){if(ya!==void 0){var Ca=this.size;Ca.isBorderBox&&(ya+=Aa?Ca.paddingLeft+Ca.paddingRight+Ca.borderLeftWidth+Ca.borderRightWidth:Ca.paddingBottom+Ca.paddingTop+Ca.borderTopWidth+Ca.borderBottomWidth),ya=Math.max(ya,0),this.element.style[Aa?"width":"height"]=ya+"px"}},fa._emitCompleteOnItems=function(ya,Aa){var Ca=this;function Sa(){Ca.dispatchEvent(ya+"Complete",null,[Aa])}var wa=Aa.length;if(!Aa||!wa){Sa();return}var ba=0;function Ea(){ba++,ba==wa&&Sa()}Aa.forEach(function($a){$a.once(ya,Ea)})},fa.dispatchEvent=function(ya,Aa,Ca){var Sa=Aa?[Aa].concat(Ca):Ca;if(this.emitEvent(ya,Sa),ua)if(this.$element=this.$element||ua(this.element),Aa){var wa=ua.Event(Aa);wa.type=ya,this.$element.trigger(wa,Ca)}else this.$element.trigger(ya,Ca)},fa.ignore=function(ya){var Aa=this.getItem(ya);Aa&&(Aa.isIgnored=!0)},fa.unignore=function(ya){var Aa=this.getItem(ya);Aa&&delete Aa.isIgnored},fa.stamp=function(ya){ya=this._find(ya),ya&&(this.stamps=this.stamps.concat(ya),ya.forEach(this.ignore,this))},fa.unstamp=function(ya){ya=this._find(ya),ya&&ya.forEach(function(Aa){sa.removeFrom(this.stamps,Aa),this.unignore(Aa)},this)},fa._find=function(ya){if(ya)return typeof ya=="string"&&(ya=this.element.querySelectorAll(ya)),ya=sa.makeArray(ya),ya},fa._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},fa._getBoundingRect=function(){var ya=this.element.getBoundingClientRect(),Aa=this.size;this._boundingRect={left:ya.left+Aa.paddingLeft+Aa.borderLeftWidth,top:ya.top+Aa.paddingTop+Aa.borderTopWidth,right:ya.right-(Aa.paddingRight+Aa.borderRightWidth),bottom:ya.bottom-(Aa.paddingBottom+Aa.borderBottomWidth)}},fa._manageStamp=da,fa._getElementOffset=function(ya){var Aa=ya.getBoundingClientRect(),Ca=this._boundingRect,Sa=aa(ya),wa={left:Aa.left-Ca.left-Sa.marginLeft,top:Aa.top-Ca.top-Sa.marginTop,right:Ca.right-Aa.right-Sa.marginRight,bottom:Ca.bottom-Aa.bottom-Sa.marginBottom};return wa},fa.handleEvent=sa.handleEvent,fa.bindResize=function(){ra.addEventListener("resize",this),this.isResizeBound=!0},fa.unbindResize=function(){ra.removeEventListener("resize",this),this.isResizeBound=!1},fa.onresize=function(){this.resize()},sa.debounceMethod(ga,"onresize",100),fa.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},fa.needsResizeLayout=function(){var ya=aa(this.element),Aa=this.size&&ya;return Aa&&ya.innerWidth!==this.size.innerWidth},fa.addItems=function(ya){var Aa=this._itemize(ya);return Aa.length&&(this.items=this.items.concat(Aa)),Aa},fa.appended=function(ya){var Aa=this.addItems(ya);Aa.length&&(this.layoutItems(Aa,!0),this.reveal(Aa))},fa.prepended=function(ya){var Aa=this._itemize(ya);if(Aa.length){var Ca=this.items.slice(0);this.items=Aa.concat(Ca),this._resetLayout(),this._manageStamps(),this.layoutItems(Aa,!0),this.reveal(Aa),this.layoutItems(Ca)}},fa.reveal=function(ya){if(this._emitCompleteOnItems("reveal",ya),!(!ya||!ya.length)){var Aa=this.updateStagger();ya.forEach(function(Ca,Sa){Ca.stagger(Sa*Aa),Ca.reveal()})}},fa.hide=function(ya){if(this._emitCompleteOnItems("hide",ya),!(!ya||!ya.length)){var Aa=this.updateStagger();ya.forEach(function(Ca,Sa){Ca.stagger(Sa*Aa),Ca.hide()})}},fa.revealItemElements=function(ya){var Aa=this.getItems(ya);this.reveal(Aa)},fa.hideItemElements=function(ya){var Aa=this.getItems(ya);this.hide(Aa)},fa.getItem=function(ya){for(var Aa=0;Aa<this.items.length;Aa++){var Ca=this.items[Aa];if(Ca.element==ya)return Ca}},fa.getItems=function(ya){ya=sa.makeArray(ya);var Aa=[];return ya.forEach(function(Ca){var Sa=this.getItem(Ca);Sa&&Aa.push(Sa)},this),Aa},fa.remove=function(ya){var Aa=this.getItems(ya);this._emitCompleteOnItems("remove",Aa),!(!Aa||!Aa.length)&&Aa.forEach(function(Ca){Ca.remove(),sa.removeFrom(this.items,Ca)},this)},fa.destroy=function(){var ya=this.element.style;ya.height="",ya.position="",ya.width="",this.items.forEach(function(Ca){Ca.destroy()}),this.unbindResize();var Aa=this.element.outlayerGUID;delete ha[Aa],delete this.element.outlayerGUID,ua&&ua.removeData(this.element,this.constructor.namespace)},ga.data=function(ya){ya=sa.getQueryElement(ya);var Aa=ya&&ya.outlayerGUID;return Aa&&ha[Aa]},ga.create=function(ya,Aa){var Ca=ma(ga);return Ca.defaults=sa.extend({},ga.defaults),sa.extend(Ca.defaults,Aa),Ca.compatOptions=sa.extend({},ga.compatOptions),Ca.namespace=ya,Ca.data=ga.data,Ca.Item=ma(la),sa.htmlInit(Ca,ya),ua&&ua.bridget&&ua.bridget(ya,Ca),Ca};function ma(ya){function Aa(){ya.apply(this,arguments)}return Aa.prototype=Object.create(ya.prototype),Aa.prototype.constructor=Aa,Aa}var va={ms:1,s:1e3};function xa(ya){if(typeof ya=="number")return ya;var Aa=ya.match(/(^\d*\.?\d*)(\w*)/),Ca=Aa&&Aa[1],Sa=Aa&&Aa[2];if(!Ca.length)return 0;Ca=parseFloat(Ca);var wa=va[Sa]||1;return Ca*wa}return ga.Item=la,ga})}(outlayer)),outlayer.exports}/*!
 * Masonry v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */var hasRequiredMasonry;function requireMasonry(){return hasRequiredMasonry||(hasRequiredMasonry=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra(requireOutlayer(),requireGetSize()):na.Masonry=ra(na.Outlayer,na.getSize)})(window,function(ra,oa){var aa=ra.create("masonry");aa.compatOptions.fitWidth="isFitWidth";var sa=aa.prototype;return sa._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var la=0;la<this.cols;la++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},sa.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var la=this.items[0],ca=la&&la.element;this.columnWidth=ca&&oa(ca).outerWidth||this.containerWidth}var ua=this.columnWidth+=this.gutter,da=this.containerWidth+this.gutter,pa=da/ua,ha=ua-da%ua,ga=ha&&ha<1?"round":"floor";pa=Math[ga](pa),this.cols=Math.max(pa,1)},sa.getContainerWidth=function(){var la=this._getOption("fitWidth"),ca=la?this.element.parentNode:this.element,ua=oa(ca);this.containerWidth=ua&&ua.innerWidth},sa._getItemLayoutPosition=function(la){la.getSize();var ca=la.size.outerWidth%this.columnWidth,ua=ca&&ca<1?"round":"ceil",da=Math[ua](la.size.outerWidth/this.columnWidth);da=Math.min(da,this.cols);for(var pa=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",ha=this[pa](da,la),ga={x:this.columnWidth*ha.col,y:ha.y},fa=ha.y+la.size.outerHeight,ma=da+ha.col,va=ha.col;va<ma;va++)this.colYs[va]=fa;return ga},sa._getTopColPosition=function(la){var ca=this._getTopColGroup(la),ua=Math.min.apply(Math,ca);return{col:ca.indexOf(ua),y:ua}},sa._getTopColGroup=function(la){if(la<2)return this.colYs;for(var ca=[],ua=this.cols+1-la,da=0;da<ua;da++)ca[da]=this._getColGroupY(da,la);return ca},sa._getColGroupY=function(la,ca){if(ca<2)return this.colYs[la];var ua=this.colYs.slice(la,la+ca);return Math.max.apply(Math,ua)},sa._getHorizontalColPosition=function(la,ca){var ua=this.horizontalColIndex%this.cols,da=la>1&&ua+la>this.cols;ua=da?0:ua;var pa=ca.size.outerWidth&&ca.size.outerHeight;return this.horizontalColIndex=pa?ua+la:this.horizontalColIndex,{col:ua,y:this._getColGroupY(ua,la)}},sa._manageStamp=function(la){var ca=oa(la),ua=this._getElementOffset(la),da=this._getOption("originLeft"),pa=da?ua.left:ua.right,ha=pa+ca.outerWidth,ga=Math.floor(pa/this.columnWidth);ga=Math.max(0,ga);var fa=Math.floor(ha/this.columnWidth);fa-=ha%this.columnWidth?0:1,fa=Math.min(this.cols-1,fa);for(var ma=this._getOption("originTop"),va=(ma?ua.top:ua.bottom)+ca.outerHeight,xa=ga;xa<=fa;xa++)this.colYs[xa]=Math.max(va,this.colYs[xa])},sa._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var la={height:this.maxY};return this._getOption("fitWidth")&&(la.width=this._getContainerFitWidth()),la},sa._getContainerFitWidth=function(){for(var la=0,ca=this.cols;--ca&&this.colYs[ca]===0;)la++;return(this.cols-la)*this.columnWidth-this.gutter},sa.needsResizeLayout=function(){var la=this.containerWidth;return this.getContainerWidth(),la!=this.containerWidth},aa})}(masonry)),masonry.exports}var imagesloaded$1={exports:{}};/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */var imagesloaded=imagesloaded$1.exports,hasRequiredImagesloaded;function requireImagesloaded(){return hasRequiredImagesloaded||(hasRequiredImagesloaded=1,function(ea){(function(na,ra){ea.exports?ea.exports=ra(na,requireEvEmitter()):na.imagesLoaded=ra(na,na.EvEmitter)})(typeof window<"u"?window:imagesloaded,function(ra,oa){var aa=ra.jQuery,sa=ra.console;function la(fa,ma){for(var va in ma)fa[va]=ma[va];return fa}var ca=Array.prototype.slice;function ua(fa){if(Array.isArray(fa))return fa;var ma=typeof fa=="object"&&typeof fa.length=="number";return ma?ca.call(fa):[fa]}function da(fa,ma,va){if(!(this instanceof da))return new da(fa,ma,va);var xa=fa;if(typeof fa=="string"&&(xa=document.querySelectorAll(fa)),!xa){sa.error("Bad element for imagesLoaded "+(xa||fa));return}this.elements=ua(xa),this.options=la({},this.options),typeof ma=="function"?va=ma:la(this.options,ma),va&&this.on("always",va),this.getImages(),aa&&(this.jqDeferred=new aa.Deferred),setTimeout(this.check.bind(this))}da.prototype=Object.create(oa.prototype),da.prototype.options={},da.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},da.prototype.addElementImages=function(fa){fa.nodeName=="IMG"&&this.addImage(fa),this.options.background===!0&&this.addElementBackgroundImages(fa);var ma=fa.nodeType;if(!(!ma||!pa[ma])){for(var va=fa.querySelectorAll("img"),xa=0;xa<va.length;xa++){var ya=va[xa];this.addImage(ya)}if(typeof this.options.background=="string"){var Aa=fa.querySelectorAll(this.options.background);for(xa=0;xa<Aa.length;xa++){var Ca=Aa[xa];this.addElementBackgroundImages(Ca)}}}};var pa={1:!0,9:!0,11:!0};da.prototype.addElementBackgroundImages=function(fa){var ma=getComputedStyle(fa);if(ma)for(var va=/url\((['"])?(.*?)\1\)/gi,xa=va.exec(ma.backgroundImage);xa!==null;){var ya=xa&&xa[2];ya&&this.addBackground(ya,fa),xa=va.exec(ma.backgroundImage)}},da.prototype.addImage=function(fa){var ma=new ha(fa);this.images.push(ma)},da.prototype.addBackground=function(fa,ma){var va=new ga(fa,ma);this.images.push(va)},da.prototype.check=function(){var fa=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function ma(va,xa,ya){setTimeout(function(){fa.progress(va,xa,ya)})}this.images.forEach(function(va){va.once("progress",ma),va.check()})},da.prototype.progress=function(fa,ma,va){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!fa.isLoaded,this.emitEvent("progress",[this,fa,ma]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,fa),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&sa&&sa.log("progress: "+va,fa,ma)},da.prototype.complete=function(){var fa=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(fa,[this]),this.emitEvent("always",[this]),this.jqDeferred){var ma=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[ma](this)}};function ha(fa){this.img=fa}ha.prototype=Object.create(oa.prototype),ha.prototype.check=function(){var fa=this.getIsImageComplete();if(fa){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,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.src},ha.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},ha.prototype.confirm=function(fa,ma){this.isLoaded=fa,this.emitEvent("progress",[this,this.img,ma])},ha.prototype.handleEvent=function(fa){var ma="on"+fa.type;this[ma]&&this[ma](fa)},ha.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},ha.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},ha.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function ga(fa,ma){this.url=fa,this.element=ma,this.img=new Image}return ga.prototype=Object.create(ha.prototype),ga.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var fa=this.getIsImageComplete();fa&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},ga.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},ga.prototype.confirm=function(fa,ma){this.isLoaded=fa,this.emitEvent("progress",[this,this.element,ma])},da.makeJQueryPlugin=function(fa){fa=fa||ra.jQuery,fa&&(aa=fa,aa.fn.imagesLoaded=function(ma,va){var xa=new da(this,ma,va);return xa.jqDeferred.promise(aa(this))})},da.makeJQueryPlugin(),da})}(imagesloaded$1)),imagesloaded$1.exports}var assign_1,hasRequiredAssign;function requireAssign(){if(hasRequiredAssign)return assign_1;hasRequiredAssign=1;var ea=require_assignValue(),na=require_copyObject(),ra=require_createAssigner(),oa=requireIsArrayLike(),aa=require_isPrototype(),sa=requireKeys(),la=Object.prototype,ca=la.hasOwnProperty,ua=ra(function(da,pa){if(aa(pa)||oa(pa)){na(pa,sa(pa),da);return}for(var ha in pa)ca.call(pa,ha)&&ea(da,ha,pa[ha])});return assign_1=ua,assign_1}var collectionUtils={exports:{}},hasRequiredCollectionUtils;function requireCollectionUtils(){if(hasRequiredCollectionUtils)return collectionUtils.exports;hasRequiredCollectionUtils=1;var ea=collectionUtils.exports={};return ea.forEach=function(na,ra){for(var oa=0;oa<na.length;oa++){var aa=ra(na[oa]);if(aa)return aa}},collectionUtils.exports}var elementUtils,hasRequiredElementUtils;function requireElementUtils(){return hasRequiredElementUtils||(hasRequiredElementUtils=1,elementUtils=function(ea){var na=ea.stateHandler.getState;function ra(la){var ca=na(la);return ca&&!!ca.isDetectable}function oa(la){na(la).isDetectable=!0}function aa(la){return!!na(la).busy}function sa(la,ca){na(la).busy=!!ca}return{isDetectable:ra,markAsDetectable:oa,isBusy:aa,markBusy:sa}}),elementUtils}var listenerHandler,hasRequiredListenerHandler;function requireListenerHandler(){return hasRequiredListenerHandler||(hasRequiredListenerHandler=1,listenerHandler=function(ea){var na={};function ra(la){var ca=ea.get(la);return ca===void 0?[]:na[ca]||[]}function oa(la,ca){var ua=ea.get(la);na[ua]||(na[ua]=[]),na[ua].push(ca)}function aa(la,ca){for(var ua=ra(la),da=0,pa=ua.length;da<pa;++da)if(ua[da]===ca){ua.splice(da,1);break}}function sa(la){var ca=ra(la);ca&&(ca.length=0)}return{get:ra,add:oa,removeListener:aa,removeAllListeners:sa}}),listenerHandler}var idGenerator,hasRequiredIdGenerator;function requireIdGenerator(){return hasRequiredIdGenerator||(hasRequiredIdGenerator=1,idGenerator=function(){var ea=1;function na(){return ea++}return{generate:na}}),idGenerator}var idHandler,hasRequiredIdHandler;function requireIdHandler(){return hasRequiredIdHandler||(hasRequiredIdHandler=1,idHandler=function(ea){var na=ea.idGenerator,ra=ea.stateHandler.getState;function oa(sa){var la=ra(sa);return la&&la.id!==void 0?la.id:null}function aa(sa){var la=ra(sa);if(!la)throw new Error("setId required the element to have a resize detection state.");var ca=na.generate();return la.id=ca,ca}return{get:oa,set:aa}}),idHandler}var reporter,hasRequiredReporter;function requireReporter(){return hasRequiredReporter||(hasRequiredReporter=1,reporter=function(ea){function na(){}var ra={log:na,warn:na,error:na};if(!ea&&window.console){var oa=function(aa,sa){aa[sa]=function(){var ca=console[sa];if(ca.apply)ca.apply(console,arguments);else for(var ua=0;ua<arguments.length;ua++)ca(arguments[ua])}};oa(ra,"log"),oa(ra,"warn"),oa(ra,"error")}return ra}),reporter}var browserDetector={exports:{}},hasRequiredBrowserDetector;function requireBrowserDetector(){if(hasRequiredBrowserDetector)return browserDetector.exports;hasRequiredBrowserDetector=1;var ea=browserDetector.exports={};return ea.isIE=function(na){function ra(){var aa=navigator.userAgent.toLowerCase();return aa.indexOf("msie")!==-1||aa.indexOf("trident")!==-1||aa.indexOf(" edge/")!==-1}if(!ra())return!1;if(!na)return!0;var oa=function(){var aa,sa=3,la=document.createElement("div"),ca=la.getElementsByTagName("i");do la.innerHTML="<!--[if gt IE "+ ++sa+"]><i></i><![endif]-->";while(ca[0]);return sa>4?sa:aa}();return na===oa},ea.isLegacyOpera=function(){return!!window.opera},browserDetector.exports}var utils={exports:{}},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils.exports;hasRequiredUtils=1;var ea=utils.exports={};ea.getOption=na;function na(ra,oa,aa){var sa=ra[oa];return sa==null&&aa!==void 0?aa:sa}return utils.exports}var batchProcessor,hasRequiredBatchProcessor;function requireBatchProcessor(){if(hasRequiredBatchProcessor)return batchProcessor;hasRequiredBatchProcessor=1;var ea=requireUtils();batchProcessor=function(oa){oa=oa||{};var aa=oa.reporter,sa=ea.getOption(oa,"async",!0),la=ea.getOption(oa,"auto",!0);la&&!sa&&(aa&&aa.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),sa=!0);var ca=na(),ua,da=!1;function pa(xa,ya){!da&&la&&sa&&ca.size()===0&&fa(),ca.add(xa,ya)}function ha(){for(da=!0;ca.size();){var xa=ca;ca=na(),xa.process()}da=!1}function ga(xa){da||(xa===void 0&&(xa=sa),ua&&(ma(ua),ua=null),xa?fa():ha())}function fa(){ua=va(ha)}function ma(xa){var ya=clearTimeout;return ya(xa)}function va(xa){var ya=function(Aa){return setTimeout(Aa,0)};return ya(xa)}return{add:pa,force:ga}};function na(){var ra={},oa=0,aa=0,sa=0;function la(da,pa){pa||(pa=da,da=0),da>aa?aa=da:da<sa&&(sa=da),ra[da]||(ra[da]=[]),ra[da].push(pa),oa++}function ca(){for(var da=sa;da<=aa;da++)for(var pa=ra[da],ha=0;ha<pa.length;ha++){var ga=pa[ha];ga()}}function ua(){return oa}return{add:la,process:ca,size:ua}}return batchProcessor}var stateHandler,hasRequiredStateHandler;function requireStateHandler(){if(hasRequiredStateHandler)return stateHandler;hasRequiredStateHandler=1;var ea="_erd";function na(aa){return aa[ea]={},ra(aa)}function ra(aa){return aa[ea]}function oa(aa){delete aa[ea]}return stateHandler={initState:na,getState:ra,cleanState:oa},stateHandler}var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1;var ea=requireBrowserDetector();return object=function(na){na=na||{};var ra=na.reporter,oa=na.batchProcessor,aa=na.stateHandler.getState;if(!ra)throw new Error("Missing required dependency: reporter.");function sa(pa,ha){function ga(){ha(pa)}if(ea.isIE(8))aa(pa).object={proxy:ga},pa.attachEvent("onresize",ga);else{var fa=ua(pa);if(!fa)throw new Error("Element is not detectable by this strategy.");fa.contentDocument.defaultView.addEventListener("resize",ga)}}function la(pa){var ha=na.important?" !important; ":"; ";return(pa.join(ha)+ha).trim()}function ca(pa,ha,ga){ga||(ga=ha,ha=pa,pa=null),pa=pa||{},pa.debug;function fa(ma,va){var xa=la(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),ya=!1,Aa=window.getComputedStyle(ma),Ca=ma.offsetWidth,Sa=ma.offsetHeight;aa(ma).startSize={width:Ca,height:Sa};function wa(){function ba(){if(Aa.position==="static"){ma.style.setProperty("position","relative",pa.important?"important":"");var Ma=function(Ia,Oa,Da,Ta){function _a(Na){return Na.replace(/[^-\d\.]/g,"")}var La=Da[Ta];La!=="auto"&&_a(La)!=="0"&&(Ia.warn("An element that is positioned static has style."+Ta+"="+La+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Ta+" will be set to 0. Element: ",Oa),Oa.style.setProperty(Ta,"0",pa.important?"important":""))};Ma(ra,ma,Aa,"top"),Ma(ra,ma,Aa,"right"),Ma(ra,ma,Aa,"bottom"),Ma(ra,ma,Aa,"left")}}function Ea(){ya||ba();function Ma(Oa,Da){if(!Oa.contentDocument){var Ta=aa(Oa);Ta.checkForObjectDocumentTimeoutId&&window.clearTimeout(Ta.checkForObjectDocumentTimeoutId),Ta.checkForObjectDocumentTimeoutId=setTimeout(function(){Ta.checkForObjectDocumentTimeoutId=0,Ma(Oa,Da)},100);return}Da(Oa.contentDocument)}var Ia=this;Ma(Ia,function(Da){va(ma)})}Aa.position!==""&&(ba(),ya=!0);var $a=document.createElement("object");$a.style.cssText=xa,$a.tabIndex=-1,$a.type="text/html",$a.setAttribute("aria-hidden","true"),$a.onload=Ea,ea.isIE()||($a.data="about:blank"),aa(ma)&&(ma.appendChild($a),aa(ma).object=$a,ea.isIE()&&($a.data="about:blank"))}oa?oa.add(wa):wa()}ea.isIE(8)?ga(ha):fa(ha,ga)}function ua(pa){return aa(pa).object}function da(pa){if(aa(pa)){var ha=ua(pa);ha&&(ea.isIE(8)?pa.detachEvent("onresize",ha.proxy):pa.removeChild(ha),aa(pa).checkForObjectDocumentTimeoutId&&window.clearTimeout(aa(pa).checkForObjectDocumentTimeoutId),delete aa(pa).object)}}return{makeDetectable:ca,addListener:sa,uninstall:da}},object}var scroll,hasRequiredScroll;function requireScroll(){if(hasRequiredScroll)return scroll;hasRequiredScroll=1;var ea=requireCollectionUtils().forEach;return scroll=function(na){na=na||{};var ra=na.reporter,oa=na.batchProcessor,aa=na.stateHandler.getState;na.stateHandler.hasState;var sa=na.idHandler;if(!oa)throw new Error("Missing required dependency: batchProcessor");if(!ra)throw new Error("Missing required dependency: reporter.");var la=ha(),ca="erd_scroll_detection_scrollbar_style",ua="erd_scroll_detection_container";function da(wa){ga(wa,ca,ua)}da(window.document);function pa(wa){var ba=na.important?" !important; ":"; ";return(wa.join(ba)+ba).trim()}function ha(){var wa=500,ba=500,Ea=document.createElement("div");Ea.style.cssText=pa(["position: absolute","width: "+wa*2+"px","height: "+ba*2+"px","visibility: hidden","margin: 0","padding: 0"]);var $a=document.createElement("div");$a.style.cssText=pa(["position: absolute","width: "+wa+"px","height: "+ba+"px","overflow: scroll","visibility: none","top: "+-500*3+"px","left: "+-500*3+"px","visibility: hidden","margin: 0","padding: 0"]),$a.appendChild(Ea),document.body.insertBefore($a,document.body.firstChild);var Ma=wa-$a.clientWidth,Ia=ba-$a.clientHeight;return document.body.removeChild($a),{width:Ma,height:Ia}}function ga(wa,ba,Ea){function $a(Da,Ta){Ta=Ta||function(La){wa.head.appendChild(La)};var _a=wa.createElement("style");return _a.innerHTML=Da,_a.id=ba,Ta(_a),_a}if(!wa.getElementById(ba)){var Ma=Ea+"_animation",Ia=Ea+"_animation_active",Oa=`/* Created by the element-resize-detector library. */
`;Oa+="."+Ea+" > div::-webkit-scrollbar { "+pa(["display: none"])+` }

`,Oa+="."+Ia+" { "+pa(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Ma,"animation-name: "+Ma])+` }
`,Oa+="@-webkit-keyframes "+Ma+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,Oa+="@keyframes "+Ma+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",$a(Oa)}}function fa(wa){wa.className+=" "+ua+"_animation_active"}function ma(wa,ba,Ea){if(wa.addEventListener)wa.addEventListener(ba,Ea);else if(wa.attachEvent)wa.attachEvent("on"+ba,Ea);else return ra.error("[scroll] Don't know how to add event listeners.")}function va(wa,ba,Ea){if(wa.removeEventListener)wa.removeEventListener(ba,Ea);else if(wa.detachEvent)wa.detachEvent("on"+ba,Ea);else return ra.error("[scroll] Don't know how to remove event listeners.")}function xa(wa){return aa(wa).container.childNodes[0].childNodes[0].childNodes[0]}function ya(wa){return aa(wa).container.childNodes[0].childNodes[0].childNodes[1]}function Aa(wa,ba){var Ea=aa(wa).listeners;if(!Ea.push)throw new Error("Cannot add listener to an element that is not detectable.");aa(wa).listeners.push(ba)}function Ca(wa,ba,Ea){Ea||(Ea=ba,ba=wa,wa=null),wa=wa||{};function $a(){if(wa.debug){var Ya=Array.prototype.slice.call(arguments);if(Ya.unshift(sa.get(ba),"Scroll: "),ra.log.apply)ra.log.apply(null,Ya);else for(var rl=0;rl<Ya.length;rl++)ra.log(Ya[rl])}}function Ma(Ya){function rl(sl){var dl=sl.getRootNode&&sl.getRootNode().contains(sl);return sl===sl.ownerDocument.body||sl.ownerDocument.body.contains(sl)||dl}return!rl(Ya)||window.getComputedStyle(Ya)===null}function Ia(Ya){var rl=aa(Ya).container.childNodes[0],sl=window.getComputedStyle(rl);return!sl.width||sl.width.indexOf("px")===-1}function Oa(){var Ya=window.getComputedStyle(ba),rl={};return rl.position=Ya.position,rl.width=ba.offsetWidth,rl.height=ba.offsetHeight,rl.top=Ya.top,rl.right=Ya.right,rl.bottom=Ya.bottom,rl.left=Ya.left,rl.widthCSS=Ya.width,rl.heightCSS=Ya.height,rl}function Da(){var Ya=Oa();aa(ba).startSize={width:Ya.width,height:Ya.height},$a("Element start size",aa(ba).startSize)}function Ta(){aa(ba).listeners=[]}function _a(){if($a("storeStyle invoked."),!aa(ba)){$a("Aborting because element has been uninstalled");return}var Ya=Oa();aa(ba).style=Ya}function La(Ya,rl,sl){aa(Ya).lastWidth=rl,aa(Ya).lastHeight=sl}function Na(Ya){return xa(Ya).childNodes[0]}function za(){return 2*la.width+1}function Fa(){return 2*la.height+1}function Ha(Ya){return Ya+10+za()}function Va(Ya){return Ya+10+Fa()}function Ua(Ya){return Ya*2+za()}function Qa(Ya){return Ya*2+Fa()}function Wa(Ya,rl,sl){var dl=xa(Ya),pl=ya(Ya),ml=Ha(rl),Rl=Va(sl),Tl=Ua(rl),Il=Qa(sl);dl.scrollLeft=ml,dl.scrollTop=Rl,pl.scrollLeft=Tl,pl.scrollTop=Il}function Za(){var Ya=aa(ba).container;if(!Ya){Ya=document.createElement("div"),Ya.className=ua,Ya.style.cssText=pa(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),aa(ba).container=Ya,fa(Ya),ba.appendChild(Ya);var rl=function(){aa(ba).onRendered&&aa(ba).onRendered()};ma(Ya,"animationstart",rl),aa(ba).onAnimationStart=rl}return Ya}function Xa(){function Ya(){var Sl=aa(ba).style;if(Sl.position==="static"){ba.style.setProperty("position","relative",wa.important?"important":"");var $l=function(Bl,Ul,ec,Kl){function rc(Ll){return Ll.replace(/[^-\d\.]/g,"")}var wl=ec[Kl];wl!=="auto"&&rc(wl)!=="0"&&(Bl.warn("An element that is positioned static has style."+Kl+"="+wl+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Kl+" will be set to 0. Element: ",Ul),Ul.style[Kl]=0)};$l(ra,ba,Sl,"top"),$l(ra,ba,Sl,"right"),$l(ra,ba,Sl,"bottom"),$l(ra,ba,Sl,"left")}}function rl(Sl,$l,Bl,Ul){return Sl=Sl?Sl+"px":"0",$l=$l?$l+"px":"0",Bl=Bl?Bl+"px":"0",Ul=Ul?Ul+"px":"0",["left: "+Sl,"top: "+$l,"right: "+Ul,"bottom: "+Bl]}if($a("Injecting elements"),!aa(ba)){$a("Aborting because element has been uninstalled");return}Ya();var sl=aa(ba).container;sl||(sl=Za());var dl=la.width,pl=la.height,ml=pa(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Rl=pa(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(rl(-(1+dl),-(1+pl),-pl,-dl))),Tl=pa(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Il=pa(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Ol=pa(["position: absolute","left: 0","top: 0"]),Fl=pa(["position: absolute","width: 200%","height: 200%"]),Vl=document.createElement("div"),Wl=document.createElement("div"),vl=document.createElement("div"),kl=document.createElement("div"),zl=document.createElement("div"),Al=document.createElement("div");Vl.dir="ltr",Vl.style.cssText=ml,Vl.className=ua,Wl.className=ua,Wl.style.cssText=Rl,vl.style.cssText=Tl,kl.style.cssText=Ol,zl.style.cssText=Il,Al.style.cssText=Fl,vl.appendChild(kl),zl.appendChild(Al),Wl.appendChild(vl),Wl.appendChild(zl),Vl.appendChild(Wl),sl.appendChild(Vl);function gl(){var Sl=aa(ba);Sl&&Sl.onExpand?Sl.onExpand():$a("Aborting expand scroll handler: element has been uninstalled")}function xl(){var Sl=aa(ba);Sl&&Sl.onShrink?Sl.onShrink():$a("Aborting shrink scroll handler: element has been uninstalled")}ma(vl,"scroll",gl),ma(zl,"scroll",xl),aa(ba).onExpandScroll=gl,aa(ba).onShrinkScroll=xl}function tl(){function Ya(Tl,Il,Ol){var Fl=Na(Tl),Vl=Ha(Il),Wl=Va(Ol);Fl.style.setProperty("width",Vl+"px",wa.important?"important":""),Fl.style.setProperty("height",Wl+"px",wa.important?"important":"")}function rl(Tl){var Il=ba.offsetWidth,Ol=ba.offsetHeight,Fl=Il!==aa(ba).lastWidth||Ol!==aa(ba).lastHeight;$a("Storing current size",Il,Ol),La(ba,Il,Ol),oa.add(0,function(){if(Fl){if(!aa(ba)){$a("Aborting because element has been uninstalled");return}if(!sl()){$a("Aborting because element container has not been initialized");return}if(wa.debug){var Wl=ba.offsetWidth,vl=ba.offsetHeight;(Wl!==Il||vl!==Ol)&&ra.warn(sa.get(ba),"Scroll: Size changed before updating detector elements.")}Ya(ba,Il,Ol)}}),oa.add(1,function(){if(!aa(ba)){$a("Aborting because element has been uninstalled");return}if(!sl()){$a("Aborting because element container has not been initialized");return}Wa(ba,Il,Ol)}),Fl&&Tl&&oa.add(2,function(){if(!aa(ba)){$a("Aborting because element has been uninstalled");return}if(!sl()){$a("Aborting because element container has not been initialized");return}Tl()})}function sl(){return!!aa(ba).container}function dl(){function Tl(){return aa(ba).lastNotifiedWidth===void 0}$a("notifyListenersIfNeeded invoked");var Il=aa(ba);if(Tl()&&Il.lastWidth===Il.startSize.width&&Il.lastHeight===Il.startSize.height)return $a("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(Il.lastWidth===Il.lastNotifiedWidth&&Il.lastHeight===Il.lastNotifiedHeight)return $a("Not notifying: Size already notified");$a("Current size not notified, notifying..."),Il.lastNotifiedWidth=Il.lastWidth,Il.lastNotifiedHeight=Il.lastHeight,ea(aa(ba).listeners,function(Ol){Ol(ba)})}function pl(){if($a("startanimation triggered."),Ia(ba)){$a("Ignoring since element is still unrendered...");return}$a("Element rendered.");var Tl=xa(ba),Il=ya(ba);(Tl.scrollLeft===0||Tl.scrollTop===0||Il.scrollLeft===0||Il.scrollTop===0)&&($a("Scrollbars out of sync. Updating detector elements..."),rl(dl))}function ml(){if($a("Scroll detected."),Ia(ba)){$a("Scroll event fired while unrendered. Ignoring...");return}rl(dl)}if($a("registerListenersAndPositionElements invoked."),!aa(ba)){$a("Aborting because element has been uninstalled");return}aa(ba).onRendered=pl,aa(ba).onExpand=ml,aa(ba).onShrink=ml;var Rl=aa(ba).style;Ya(ba,Rl.width,Rl.height)}function il(){if($a("finalizeDomMutation invoked."),!aa(ba)){$a("Aborting because element has been uninstalled");return}var Ya=aa(ba).style;La(ba,Ya.width,Ya.height),Wa(ba,Ya.width,Ya.height)}function Ja(){Ea(ba)}function nl(){$a("Installing..."),Ta(),Da(),oa.add(0,_a),oa.add(1,Xa),oa.add(2,tl),oa.add(3,il),oa.add(4,Ja)}$a("Making detectable..."),Ma(ba)?($a("Element is detached"),Za(),$a("Waiting until element is attached..."),aa(ba).onRendered=function(){$a("Element is now attached"),nl()}):nl()}function Sa(wa){var ba=aa(wa);ba&&(ba.onExpandScroll&&va(xa(wa),"scroll",ba.onExpandScroll),ba.onShrinkScroll&&va(ya(wa),"scroll",ba.onShrinkScroll),ba.onAnimationStart&&va(ba.container,"animationstart",ba.onAnimationStart),ba.container&&wa.removeChild(ba.container))}return{makeDetectable:Ca,addListener:Aa,uninstall:Sa,initDocument:da}},scroll}var elementResizeDetector,hasRequiredElementResizeDetector;function requireElementResizeDetector(){if(hasRequiredElementResizeDetector)return elementResizeDetector;hasRequiredElementResizeDetector=1;var ea=requireCollectionUtils().forEach,na=requireElementUtils(),ra=requireListenerHandler(),oa=requireIdGenerator(),aa=requireIdHandler(),sa=requireReporter(),la=requireBrowserDetector(),ca=requireBatchProcessor(),ua=requireStateHandler(),da=requireObject(),pa=requireScroll();function ha(va){return Array.isArray(va)||va.length!==void 0}function ga(va){if(Array.isArray(va))return va;var xa=[];return ea(va,function(ya){xa.push(ya)}),xa}function fa(va){return va&&va.nodeType===1}elementResizeDetector=function(va){va=va||{};var xa;if(va.idHandler)xa={get:function(za){return va.idHandler.get(za,!0)},set:va.idHandler.set};else{var ya=oa(),Aa=aa({idGenerator:ya,stateHandler:ua});xa=Aa}var Ca=va.reporter;if(!Ca){var Sa=Ca===!1;Ca=sa(Sa)}var wa=ma(va,"batchProcessor",ca({reporter:Ca})),ba={};ba.callOnAdd=!!ma(va,"callOnAdd",!0),ba.debug=!!ma(va,"debug",!1);var Ea=ra(xa),$a=na({stateHandler:ua}),Ma,Ia=ma(va,"strategy","object"),Oa=ma(va,"important",!1),Da={reporter:Ca,batchProcessor:wa,stateHandler:ua,idHandler:xa,important:Oa};if(Ia==="scroll"&&(la.isLegacyOpera()?(Ca.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),Ia="object"):la.isIE(9)&&(Ca.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),Ia="object")),Ia==="scroll")Ma=pa(Da);else if(Ia==="object")Ma=da(Da);else throw new Error("Invalid strategy name: "+Ia);var Ta={};function _a(za,Fa,Ha){function Va(tl){var il=Ea.get(tl);ea(il,function(nl){nl(tl)})}function Ua(tl,il,Ja){Ea.add(il,Ja),tl&&Ja(il)}if(Ha||(Ha=Fa,Fa=za,za={}),!Fa)throw new Error("At least one element required.");if(!Ha)throw new Error("Listener required.");if(fa(Fa))Fa=[Fa];else if(ha(Fa))Fa=ga(Fa);else return Ca.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var Qa=0,Wa=ma(za,"callOnAdd",ba.callOnAdd),Za=ma(za,"onReady",function(){}),Xa=ma(za,"debug",ba.debug);ea(Fa,function(il){ua.getState(il)||(ua.initState(il),xa.set(il));var Ja=xa.get(il);if(Xa&&Ca.log("Attaching listener to element",Ja,il),!$a.isDetectable(il)){if(Xa&&Ca.log(Ja,"Not detectable."),$a.isBusy(il)){Xa&&Ca.log(Ja,"System busy making it detectable"),Ua(Wa,il,Ha),Ta[Ja]=Ta[Ja]||[],Ta[Ja].push(function(){Qa++,Qa===Fa.length&&Za()});return}return Xa&&Ca.log(Ja,"Making detectable..."),$a.markBusy(il,!0),Ma.makeDetectable({debug:Xa,important:Oa},il,function(Ya){if(Xa&&Ca.log(Ja,"onElementDetectable"),ua.getState(Ya)){$a.markAsDetectable(Ya),$a.markBusy(Ya,!1),Ma.addListener(Ya,Va),Ua(Wa,Ya,Ha);var rl=ua.getState(Ya);if(rl&&rl.startSize){var sl=Ya.offsetWidth,dl=Ya.offsetHeight;(rl.startSize.width!==sl||rl.startSize.height!==dl)&&Va(Ya)}Ta[Ja]&&ea(Ta[Ja],function(pl){pl()})}else Xa&&Ca.log(Ja,"Element uninstalled before being detectable.");delete Ta[Ja],Qa++,Qa===Fa.length&&Za()})}Xa&&Ca.log(Ja,"Already detecable, adding listener."),Ua(Wa,il,Ha),Qa++}),Qa===Fa.length&&Za()}function La(za){if(!za)return Ca.error("At least one element is required.");if(fa(za))za=[za];else if(ha(za))za=ga(za);else return Ca.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");ea(za,function(Fa){Ea.removeAllListeners(Fa),Ma.uninstall(Fa),ua.cleanState(Fa)})}function Na(za){Ma.initDocument&&Ma.initDocument(za)}return{listenTo:_a,removeListener:Ea.removeListener,removeAllListeners:Ea.removeAllListeners,uninstall:La,initDocument:Na}};function ma(va,xa,ya){var Aa=va[xa];return Aa==null&&ya!==void 0?ya:Aa}return elementResizeDetector}var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function ea(na){var ra=na==null?0:na.length;return ra?na[ra-1]:void 0}return last_1=ea,last_1}var _baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function ea(na,ra,oa){var aa=-1,sa=na.length;ra<0&&(ra=-ra>sa?0:sa+ra),oa=oa>sa?sa:oa,oa<0&&(oa+=sa),sa=ra>oa?0:oa-ra>>>0,ra>>>=0;for(var la=Array(sa);++aa<sa;)la[aa]=na[aa+ra];return la}return _baseSlice=ea,_baseSlice}var _parent,hasRequired_parent;function require_parent(){if(hasRequired_parent)return _parent;hasRequired_parent=1;var ea=require_baseGet(),na=require_baseSlice();function ra(oa,aa){return aa.length<2?oa:ea(oa,na(aa,0,-1))}return _parent=ra,_parent}var _baseUnset,hasRequired_baseUnset;function require_baseUnset(){if(hasRequired_baseUnset)return _baseUnset;hasRequired_baseUnset=1;var ea=require_castPath(),na=requireLast(),ra=require_parent(),oa=require_toKey();function aa(sa,la){return la=ea(la,sa),sa=ra(sa,la),sa==null||delete sa[oa(na(la))]}return _baseUnset=aa,_baseUnset}var _customOmitClone,hasRequired_customOmitClone;function require_customOmitClone(){if(hasRequired_customOmitClone)return _customOmitClone;hasRequired_customOmitClone=1;var ea=requireIsPlainObject();function na(ra){return ea(ra)?void 0:ra}return _customOmitClone=na,_customOmitClone}var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var ea=require_Symbol(),na=requireIsArguments(),ra=requireIsArray(),oa=ea?ea.isConcatSpreadable:void 0;function aa(sa){return ra(sa)||na(sa)||!!(oa&&sa&&sa[oa])}return _isFlattenable=aa,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var ea=require_arrayPush(),na=require_isFlattenable();function ra(oa,aa,sa,la,ca){var ua=-1,da=oa.length;for(sa||(sa=na),ca||(ca=[]);++ua<da;){var pa=oa[ua];aa>0&&sa(pa)?aa>1?ra(pa,aa-1,sa,la,ca):ea(ca,pa):la||(ca[ca.length]=pa)}return ca}return _baseFlatten=ra,_baseFlatten}var flatten_1,hasRequiredFlatten;function requireFlatten(){if(hasRequiredFlatten)return flatten_1;hasRequiredFlatten=1;var ea=require_baseFlatten();function na(ra){var oa=ra==null?0:ra.length;return oa?ea(ra,1):[]}return flatten_1=na,flatten_1}var _flatRest,hasRequired_flatRest;function require_flatRest(){if(hasRequired_flatRest)return _flatRest;hasRequired_flatRest=1;var ea=requireFlatten(),na=require_overRest(),ra=require_setToString();function oa(aa){return ra(na(aa,void 0,ea),aa+"")}return _flatRest=oa,_flatRest}var omit_1,hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit_1;hasRequiredOmit=1;var ea=require_arrayMap(),na=require_baseClone(),ra=require_baseUnset(),oa=require_castPath(),aa=require_copyObject(),sa=require_customOmitClone(),la=require_flatRest(),ca=require_getAllKeysIn(),ua=1,da=2,pa=4,ha=la(function(ga,fa){var ma={};if(ga==null)return ma;var va=!1;fa=ea(fa,function(ya){return ya=oa(ya,ga),va||(va=ya.length>1),ya}),aa(ga,ca(ga),ma),va&&(ma=na(ma,ua|da|pa,sa));for(var xa=fa.length;xa--;)ra(ma,fa[xa]);return ma});return omit_1=ha,omit_1}var factory_1,hasRequiredFactory;function requireFactory(){if(hasRequiredFactory)return factory_1;hasRequiredFactory=1;var ea=requireObjectAssign(),na={};function ra(la,ca,ua,da,pa,ha,ga,fa){if(!la){var ma;if(ca===void 0)ma=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var va=[ua,da,pa,ha,ga,fa],xa=0;ma=new Error(ca.replace(/%s/g,function(){return va[xa++]})),ma.name="Invariant Violation"}throw ma.framesToPop=1,ma}}var oa="mixins";function aa(la){return la}function sa(la,ca,ua){var da=[],pa={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},ha={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},ga={displayName:function(Ia,Oa){Ia.displayName=Oa},mixins:function(Ia,Oa){if(Oa)for(var Da=0;Da<Oa.length;Da++)ma(Ia,Oa[Da])},childContextTypes:function(Ia,Oa){Ia.childContextTypes=ea({},Ia.childContextTypes,Oa)},contextTypes:function(Ia,Oa){Ia.contextTypes=ea({},Ia.contextTypes,Oa)},getDefaultProps:function(Ia,Oa){Ia.getDefaultProps?Ia.getDefaultProps=ya(Ia.getDefaultProps,Oa):Ia.getDefaultProps=Oa},propTypes:function(Ia,Oa){Ia.propTypes=ea({},Ia.propTypes,Oa)},statics:function(Ia,Oa){va(Ia,Oa)},autobind:function(){}};function fa(Ia,Oa){var Da=pa.hasOwnProperty(Oa)?pa[Oa]:null;Ea.hasOwnProperty(Oa)&&ra(Da==="OVERRIDE_BASE","ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",Oa),Ia&&ra(Da==="DEFINE_MANY"||Da==="DEFINE_MANY_MERGED","ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",Oa)}function ma(Ia,Oa){if(Oa){ra(typeof Oa!="function","ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),ra(!ca(Oa),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var Da=Ia.prototype,Ta=Da.__reactAutoBindPairs;Oa.hasOwnProperty(oa)&&ga.mixins(Ia,Oa.mixins);for(var _a in Oa)if(Oa.hasOwnProperty(_a)&&_a!==oa){var La=Oa[_a],Na=Da.hasOwnProperty(_a);if(fa(Na,_a),ga.hasOwnProperty(_a))ga[_a](Ia,La);else{var za=pa.hasOwnProperty(_a),Fa=typeof La=="function",Ha=Fa&&!za&&!Na&&Oa.autobind!==!1;if(Ha)Ta.push(_a,La),Da[_a]=La;else if(Na){var Va=pa[_a];ra(za&&(Va==="DEFINE_MANY_MERGED"||Va==="DEFINE_MANY"),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",Va,_a),Va==="DEFINE_MANY_MERGED"?Da[_a]=ya(Da[_a],La):Va==="DEFINE_MANY"&&(Da[_a]=Aa(Da[_a],La))}else Da[_a]=La}}}}function va(Ia,Oa){if(Oa)for(var Da in Oa){var Ta=Oa[Da];if(Oa.hasOwnProperty(Da)){var _a=Da in ga;ra(!_a,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',Da);var La=Da in Ia;if(La){var Na=ha.hasOwnProperty(Da)?ha[Da]:null;ra(Na==="DEFINE_MANY_MERGED","ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",Da),Ia[Da]=ya(Ia[Da],Ta);return}Ia[Da]=Ta}}}function xa(Ia,Oa){ra(Ia&&Oa&&typeof Ia=="object"&&typeof Oa=="object","mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var Da in Oa)Oa.hasOwnProperty(Da)&&(ra(Ia[Da]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",Da),Ia[Da]=Oa[Da]);return Ia}function ya(Ia,Oa){return function(){var Ta=Ia.apply(this,arguments),_a=Oa.apply(this,arguments);if(Ta==null)return _a;if(_a==null)return Ta;var La={};return xa(La,Ta),xa(La,_a),La}}function Aa(Ia,Oa){return function(){Ia.apply(this,arguments),Oa.apply(this,arguments)}}function Ca(Ia,Oa){var Da=Oa.bind(Ia);return Da}function Sa(Ia){for(var Oa=Ia.__reactAutoBindPairs,Da=0;Da<Oa.length;Da+=2){var Ta=Oa[Da],_a=Oa[Da+1];Ia[Ta]=Ca(Ia,_a)}}var wa={componentDidMount:function(){this.__isMounted=!0}},ba={componentWillUnmount:function(){this.__isMounted=!1}},Ea={replaceState:function(Ia,Oa){this.updater.enqueueReplaceState(this,Ia,Oa)},isMounted:function(){return!!this.__isMounted}},$a=function(){};ea($a.prototype,la.prototype,Ea);function Ma(Ia){var Oa=function(Ta,_a,La){this.__reactAutoBindPairs.length&&Sa(this),this.props=Ta,this.context=_a,this.refs=na,this.updater=La||ua,this.state=null;var Na=this.getInitialState?this.getInitialState():null;ra(typeof Na=="object"&&!Array.isArray(Na),"%s.getInitialState(): must return an object or null",Oa.displayName||"ReactCompositeComponent"),this.state=Na};Oa.prototype=new $a,Oa.prototype.constructor=Oa,Oa.prototype.__reactAutoBindPairs=[],da.forEach(ma.bind(null,Oa)),ma(Oa,wa),ma(Oa,Ia),ma(Oa,ba),Oa.getDefaultProps&&(Oa.defaultProps=Oa.getDefaultProps()),ra(Oa.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var Da in pa)Oa.prototype[Da]||(Oa.prototype[Da]=null);return Oa}return Ma}return factory_1=sa,factory_1}var createReactClass,hasRequiredCreateReactClass;function requireCreateReactClass(){if(hasRequiredCreateReactClass)return createReactClass;hasRequiredCreateReactClass=1;var ea=requireReact(),na=requireFactory();if(typeof ea>"u")throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var ra=new ea.Component().updater;return createReactClass=na(ea.Component,ea.isValidElement,ra),createReactClass}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib.exports;hasRequiredLib=1;var ea=typeof window<"u",na=ea?window.Masonry||requireMasonry():null,ra=ea?requireImagesloaded():null,oa=requireAssign(),aa=requireElementResizeDetector(),sa=requireDebounce(),la=requireOmit(),ca=requirePropTypes(),ua=requireReact(),da=requireCreateReactClass(),pa={enableResizableChildren:ca.bool,disableImagesLoaded:ca.bool,onImagesLoaded:ca.func,updateOnEachImageLoad:ca.bool,options:ca.object,imagesLoadedOptions:ca.object,elementType:ca.string,onLayoutComplete:ca.func,onRemoveComplete:ca.func},ha=da({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:pa,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(ga){(!this.masonry||ga)&&(this.masonry=new na(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var ga=this.masonryContainer,fa=this.props.options.itemSelector?ga.querySelectorAll(this.props.options.itemSelector):ga.children;return Array.prototype.slice.call(fa)},diffDomChildren:function(){var ga=!1,fa=this.latestKnownDomChildren.filter(function(wa){return!!wa.parentNode});fa.length!==this.latestKnownDomChildren.length&&(ga=!0);var ma=this.getCurrentDomChildren(),va=fa.filter(function(wa){return!~ma.indexOf(wa)}),xa=ma.filter(function(wa){return!~fa.indexOf(wa)}),ya=0,Aa=xa.filter(function(wa){var ba=ya===ma.indexOf(wa);return ba&&ya++,ba}),Ca=xa.filter(function(wa){return Aa.indexOf(wa)===-1}),Sa=[];return va.length===0&&(Sa=fa.filter(function(wa,ba){return ba!==ma.indexOf(wa)})),this.latestKnownDomChildren=ma,{old:fa,new:ma,removed:va,appended:Ca,prepended:Aa,moved:Sa,forceItemReload:ga}},performLayout:function(){var ga=this.diffDomChildren(),fa=ga.forceItemReload||ga.moved.length>0;ga.removed.length>0&&(this.props.enableResizableChildren&&ga.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(ga.removed),fa=!0),ga.appended.length>0&&(this.masonry.appended(ga.appended),ga.prepended.length===0&&(fa=!0),this.props.enableResizableChildren&&ga.appended.forEach(this.listenToElementResize,this)),ga.prepended.length>0&&(this.masonry.prepended(ga.prepended),this.props.enableResizableChildren&&ga.prepended.forEach(this.listenToElementResize,this)),fa&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var ga=this.props.updateOnEachImageLoad?"progress":"always",fa=sa(function(va){this.props.onImagesLoaded&&this.props.onImagesLoaded(va),this.masonry.layout()}.bind(this),100),ma=ra(this.masonryContainer,this.props.imagesLoadedOptions).on(ga,fa);this.imagesLoadedCancelRef=function(){ma.off(ga,fa),fa.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=aa({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(ga){this.erd.listenTo(ga,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(ga){this.masonryContainer=ga},render:function(){var ga=la(this.props,Object.keys(pa));return ua.createElement(this.props.elementType,oa({},ga,{ref:this.setRef}),this.props.children)}});return lib.exports=ha,lib.exports.default=ha,lib.exports}var libExports=requireLib();const MasonryComponent=getDefaultExportFromCjs(libExports),Masonry=dt$1(MasonryComponent).withConfig({displayName:"Masonry",componentId:"sc-1r4wxjq-0"})([""]),defaultColors$v={},colors$v={dark:defaultColors$v},defaultSizing$v={gutterSize:"12px"},sizes$v={default:defaultSizing$v},Scheme$4=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$v,sizes:sizes$v},Symbol.toStringTag,{value:"Module"})),defaultColors$u={button:{background:"rgba(0, 0, 0, 0.5)"},wrapper:{background:"rgba(54, 54, 54, 0.9)",title:"#FFFFFF",subtitle:"#D7D7D7"}},colors$u={dark:defaultColors$u},defaultSizing$u={button:{size:"16px",border:"2px"},wrapper:{width:"200px",border:"5px",padding:"15px",title:{fontSize:"14px",fontWeight:"bold"}}},sizes$u={default:defaultSizing$u},Scheme$3=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$u,sizes:sizes$u},Symbol.toStringTag,{value:"Module"})),AssetItemInfoButton=({className:ea,onClick:na})=>jsxRuntimeExports.jsx(SolidButton,{className:ea,color:"transparent",size:"small",icon:jsxRuntimeExports.jsx(SvgMoreSmall,{}),onClick:na}),theme$K=withTheme(Scheme$3),AssetItemInfoButton$1=dt$1(AssetItemInfoButton).withConfig({displayName:"AssetItemInfoButton",componentId:"sc-x297m9-0"})(["position:relative;display:flex;align-items:center;justify-content:center;padding:0;z-index:2;"," ",""],theme$K.colors(ea=>lt$1(["background:",";&:hover{background:",";}"],ea.button.background,ea.button.background)),theme$K.sizes(ea=>lt$1(["width:",";height:",";border-radius:",";"],ea.button.size,ea.button.size,ea.button.border))),Title$k=dt$1(Label$6).withConfig({displayName:"AssetItemInfoWrapper__Title",componentId:"sc-14gnokl-0"})([""]),AuthorName=dt$1.a.withConfig({displayName:"AssetItemInfoWrapper__AuthorName",componentId:"sc-14gnokl-1"})([""]),AssetItemInfoWrapper=({className:ea,title:na,author:ra,authorUrl:oa,source:aa})=>{const{t:sa}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[na&&jsxRuntimeExports.jsx(Title$k,{children:capitalize(na)}),jsxRuntimeExports.jsxs(Label$6,{display:"block",children:[sa("by"),jsxRuntimeExports.jsx(AuthorName,{href:`${oa}?utm_source=depicter_wp&utm_medium=referral`,target:"_blank",children:ra})]}),jsxRuntimeExports.jsx(Label$6,{display:"block",children:`${sa("from")} ${capitalize(aa)}`})]})},theme$J=withTheme(Scheme$3),AssetItemInfoWrapper$1=dt$1(AssetItemInfoWrapper).withConfig({displayName:"AssetItemInfoWrapper",componentId:"sc-14gnokl-2"})(["backdrop-filter:blur(10px);> *:last-of-type{margin-bottom:0;}","{margin-bottom:10px;}","{font-size:12px;font-weight:400;}","{display:inline-block;margin-bottom:5px;font-weight:600;margin-left:5px;text-decoration:none;}"," ",""],Title$k,Label$6,AuthorName,theme$J.colors(ea=>lt$1(["background:",";","{color:",";}","{color:",";}","{color:",";}"],ea.wrapper.background,Title$k,ea.wrapper.title,Label$6,ea.wrapper.subtitle,AuthorName,ea.wrapper.title)),theme$J.sizes(ea=>lt$1(["width:",";border-radius:",";padding:",";","{font-size:",";font-weight:",";}"],ea.wrapper.width,ea.wrapper.border,ea.wrapper.padding,Title$k,ea.wrapper.title.fontSize,ea.wrapper.title.fontWeight))),AssetItemInfo=({className:ea,source:na,title:ra,author:oa,authorUrl:aa})=>{const[sa,la]=reactExports.useState(!1),ca=document.querySelector(".depicter-assets-container");return jsxRuntimeExports.jsx(Popover$3,{open:sa,className:ea,onOutsideClick:()=>la(!1),handler:jsxRuntimeExports.jsx(AssetItemInfoButton$1,{onClick:ua=>{ua.stopPropagation(),la(!sa)}}),viewportContainer:ca,inViewportOptions:{yPlacement:"bottom",xPlacement:"insideRight",fallbackXPlacement:"center"},children:jsxRuntimeExports.jsx(AssetItemInfoWrapper$1,{source:na,title:ra,author:oa,authorUrl:aa})})},AssetItemInfo$1=dt$1(AssetItemInfo).withConfig({displayName:"AssetItemInfo",componentId:"sc-1cllffj-0"})(["","{padding:0;width:auto;background:transparent;}"],PopoverWrapper$1),FilteringContext=reactExports.createContext({setFilter:()=>{},updateFilter:()=>{},filter:{},clearFilter:()=>{}}),useAssetsFiltering=()=>reactExports.useContext(FilteringContext),AssetsFiltering=({children:ea})=>{const[na,ra]=reactExports.useState({}),oa=reactExports.useCallback(()=>{ra({})},[]),aa=reactExports.useCallback(sa=>{ra(la=>({...la,...sa}))},[]);return jsxRuntimeExports.jsx(FilteringContext.Provider,{value:{filter:na,setFilter:ra,clearFilter:oa,updateFilter:aa},children:ea})},AssetItemHolder=({className:ea,assetData:na,tier:ra,badgeType:oa,onDrop:aa,onClick:sa})=>{const la=getAssetItemComponentByType(na.type),{filter:ca}=useAssetsFiltering(),ua=reactExports.useMemo(()=>ca?{...na,previewOptions:{...na.previewOptions,filter:ca}}:na,[na,ca]);return la?jsxRuntimeExports.jsxs("div",{className:ea,children:[["photo","video"].includes(na.type)&&["unsplash","pixabay","pexels"].includes(na?.sourceType)&&jsxRuntimeExports.jsx(AssetItemInfo$1,{source:na?.sourceType,title:na.title,author:na.author,authorUrl:na.authorUrl}),jsxRuntimeExports.jsx(la,{tier:ra,badgeType:oa,assetData:ua,onDrop:aa,onClick:sa})]}):null},AssetItemHolder$1=dt$1(AssetItemHolder).withConfig({displayName:"AssetItemHolder",componentId:"sc-himp92-0"})(["position:relative;","{position:absolute;right:5px;bottom:5px;}"],AssetItemInfo$1),AssetsList=React.memo(ea=>{const{className:na,items:ra,columns:oa,layout:aa,onItemClick:sa,onItemDrop:la,tier:ca,badgeType:ua,noTierItems:da=0}=ea,pa=reactExports.useContext(et$1);let ha;const ga=ra.map((ma,va)=>{const xa=typeof da=="function"?!da(ma.id):va>da-1;return jsxRuntimeExports.jsx(AssetItemHolder$1,{tier:xa?ca:void 0,badgeType:ua,assetData:ma,onDrop:la,onClick:sa},ma.id)}),fa=reactExports.useMemo(()=>({transitionDuration:0,resize:!1,gutter:parseInt(sizes$v[pa?.sizes].gutterSize,10)}),[pa?.sizes]);return oa===1||aa==="grid"?ha=ga:aa==="masonry"&&(ha=jsxRuntimeExports.jsx(Masonry,{options:fa,disableImagesLoaded:!0,updateOnEachImageLoad:!1,enableResizableChildren:!0,children:ga})),jsxRuntimeExports.jsx("div",{className:na,children:ha})}),theme$I=withTheme(Scheme$4),AssetsList$1=dt$1(AssetsList).withConfig({displayName:"AssetsList",componentId:"sc-1tbkj5b-0"})([""," ",""],theme$I.sizes((ea,na)=>lt$1(["","{width:370px;@media (max-width:1366px){width:270px;}","{width:calc(100% / "," - ("," / ","));margin-bottom:",";}}"],Masonry,AssetItemHolder$1,na.columns,ea.gutterSize,na.columns,ea.gutterSize)),ea=>ea.layout==="grid"&&lt$1(["display:grid;grid-template-columns:repeat(",",1fr);@media (max-width:1366px){","}",""],ea.columns,ea.smallScreenColumns&&lt$1(["grid-template-columns:repeat(",",1fr);"],ea.smallScreenColumns),theme$I.sizes(na=>lt$1(["grid-gap:",";"],na.gutterSize)))),RemoteAssetsList=ea=>{const{className:na,perpage:ra=20,children:oa,columns:aa=2,layout:sa="grid",searchable:la,assetType:ca="photos",hideChildrenOnSearch:ua=!1,tier:da,badgeType:pa,noTierItems:ha,onSearch:ga,onItemDrop:fa,onItemClick:ma,additionalParams:va,scrollMode:xa="infinite"}=ea,ya=useSelector(getRemoteContentStatus(ca)),Aa=useDispatch(),{t:Ca}=useTranslation(),[{items:Sa,page:wa,search:ba,hasMore:Ea,noResult:$a,blockedAccess:Ma},Ia]=reactExports.useState({items:[],page:1,search:"",hasMore:!1,noResult:!1,blockedAccess:!1}),[Oa,Da]=reactExports.useState(0),[Ta,_a]=reactExports.useState(!0),La=reactExports.useCallback(Va=>{Va.trim()!==ba&&(_a(!0),Ia({search:Va,items:[],page:1,hasMore:!1,noResult:!1,blockedAccess:!1}),ga&&ga(Va))},[ga,ba]);reactExports.useEffect(()=>{ya==="outdated"&&Da(Date.now())},[ya]),reactExports.useEffect(()=>{const Va={type:ca,s:ba,page:wa,perpage:ra,...va};let Ua=!1;return axios$5.request(getAssets(Va)).then(({data:Qa})=>{Ua||(Ia({items:ya==="outdated"?[...Qa.hits]:[...Sa,...Qa.hits],hasMore:Qa.hasMore,page:wa,search:ba,noResult:!1,blockedAccess:!1}),_a(!1)),Aa(updateRemoteAssetsContentStatus({contentType:ca,status:"updated"}))}).catch(Qa=>{if(!Ua){const Wa=!Sa.length,Za=Qa?.response?.status===503;Ia({items:Sa.length?Sa:[],hasMore:!1,page:wa,search:ba,noResult:Wa,blockedAccess:Za}),_a(!1)}Aa(updateRemoteAssetsContentStatus({contentType:ca,status:"updated"}))}),()=>{Ua=!0}},[wa,ra,ba,ca,Oa]);const Na=()=>{Ia({page:wa+1,items:Sa,hasMore:Ea,search:ba,noResult:$a,blockedAccess:Ma})},za=reactExports.useCallback(Va=>{Va.type==="keyword"&&Va.title&&La(Va.title),ma?.(Va)},[ma,La]),Fa=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!(ba&&ua)&&oa,jsxRuntimeExports.jsx(AssetsList$1,{tier:da,badgeType:pa,noTierItems:ha,layout:sa,columns:aa,items:Sa,onItemClick:za,onItemDrop:fa})]});let Ha=xa==="none"?jsxRuntimeExports.jsx(LoadingSplash$1,{visible:Ta,children:Fa}):xa==="scroll"?jsxRuntimeExports.jsx(LoadingSplash$1,{visible:Ta,children:jsxRuntimeExports.jsx(Scrollbars,{children:Fa})}):jsxRuntimeExports.jsx(LoadingSplash$1,{visible:Ta,children:jsxRuntimeExports.jsx(InfiniteScroll$1,{dataLength:Sa.length,next:Na,hasMore:Ea,loader:jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),children:Fa})});return Ma?Ha=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!(ba&&ua)&&oa,jsxRuntimeExports.jsx(AccessBlockedNotice$1,{iconWidth:"56px",iconHeight:"56px"})]}):$a&&(Ha=jsxRuntimeExports.jsx(NoAssetsFound$1,{children:Ca("Sorry, we couldn't find any items here.")})),jsxRuntimeExports.jsxs("div",{className:na,children:[la&&jsxRuntimeExports.jsx(SearchBar$1,{value:ba,throttleSearch:1e3,onSearch:La,searchPlaceholder:Ca("Search...")}),Ha]})},RemoteAssetsList$1=dt$1(RemoteAssetsList).withConfig({displayName:"RemoteAssetsList",componentId:"sc-rbso4j-0"})(["display:flex;flex-direction:column;padding-left:20px;height:100%;","{margin-right:20px;}",",","{width:calc(100% - 20px);}","{padding:0 20px;@media (max-width:1366px){padding:0;}}","{display:block;text-align:center;margin:10px 0px;}","{margin-top:30px;}"],AssetsList$1,SearchBar$1,AccessBlockedNotice$1,AccessBlockedNotice$1,DotSpinner$1,AccessBlockedNotice$1),getAssetTypeFromWPMedia=(ea,na)=>ea==="video"?"video":na.includes("svg")?"vector":"photo",mimTypeMaps={photos:["image/jpeg","image/png","image/gif","image/webp"],vectors:["image/svg+xml"],videos:["video"]},AssetUploadButton=ea=>{const{t:na}=useTranslation(),{className:ra,assetType:oa,title:aa}=ea,sa=useCreateElementFromAsset(),la=useDispatch(),ca=useUserTierAuthCallback();if(oa==="videos"&&!ca(Tiers.LEGACY_FREE))return null;const ua=()=>{if(window.wp){const{wp:da}=window,pa=da.media({title:aa,button:{text:na("Insert")},library:{type:mimTypeMaps[oa]},multiple:!0}).open().on("select",()=>{pa.state().get("selection").forEach(ga=>{const{id:fa,width:ma,height:va,type:xa,subtype:ya}=ga.attributes;sa({id:fa.toString(10),width:ma,height:va,type:getAssetTypeFromWPMedia(xa,ya)})}),la(updateRemoteAssetsContentStatus({contentType:`wp-${oa}`,status:"outdated"}))})}};return jsxRuntimeExports.jsx(OutlineButton$1,{className:ra,size:"small",onClick:ua,icon:jsxRuntimeExports.jsx(Icon$4,{shape:SvgUpload}),children:na("Upload")})},AssetUploadButton$1=dt$1(AssetUploadButton).withConfig({displayName:"AssetUploadButton",componentId:"sc-kwltv6-0"})(["","{display:none;}column-gap:0;@media (max-width:1366px){padding:7px;","{display:block;svg{margin-right:0;}}span{display:none;}}"],Icon$4,Icon$4),defaultImageElementData={children:[],type:"image",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:300,unit:"px"},height:{value:300,unit:"px"}}},cropData:{default:{mediaSize:{width:300,height:300},focalPoint:{x:.5,y:.5}}}},frameItemAssetContents=[{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_2"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_3"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_4"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_5"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_6"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_7"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_8"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_9"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_10"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_11"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_12"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_13"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_14"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_15"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_16"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_17"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_18"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_19"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_20"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_21"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_22"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_23"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_24"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_25"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_26"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_27"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_28"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_29"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_30"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_31"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_32"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_33"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_34"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_35"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_36"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{options:{clipPath:"dpc_frame_37"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:242,unit:"px"},height:{value:383,unit:"px"}}},options:{clipPath:"dpc_frame_38"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:50,height:79}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:218,unit:"px"}}},options:{clipPath:"dpc_frame_39"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:80,height:55}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:369,unit:"px"}}},options:{clipPath:"dpc_frame_40"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:67}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:277,unit:"px"},height:{value:383,unit:"px"}}},options:{clipPath:"dpc_frame_41"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:50,height:69}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:383,unit:"px"},height:{value:309,unit:"px"}}},options:{clipPath:"dpc_frame_42"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:56}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:352,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_43"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:64,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_44"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:262,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_45"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:48,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_46"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_47"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_48"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_49"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_50"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_51"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:267,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_52"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:49,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_53"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:345,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_54"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:63,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:384,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_55"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:70,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:320,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_56"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:58,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:320,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_57"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:58,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:313,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_58"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:57,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:193,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_59"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:35,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:217,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_60"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:40,height:70}}},{id:nanoid$1(),tier:Tiers.PRO,type:"frame",payload:{elementData:deepmerge(defaultImageElementData,{size:{default:{width:{value:347,unit:"px"},height:{value:384,unit:"px"}}},options:{clipPath:"dpc_frame_61"}})},previewOptions:{dragMeta:{positionRefine:{x:20,y:5.5}},frameSize:{width:63,height:70}}}],AssetsPanelInnerContainer=dt$1.div.withConfig({displayName:"ScrollableContent__AssetsPanelInnerContainer",componentId:"sc-rtk2az-0"})(["width:100%;padding:0 20px;"]),ScrollableContent=({children:ea})=>jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,children:jsxRuntimeExports.jsx(AssetsPanelInnerContainer,{children:ea})}),ScrollableContent$1=dt$1(ScrollableContent).withConfig({displayName:"ScrollableContent",componentId:"sc-rtk2az-1"})([""]),imageTabItems=[{name:i18next.t("Stock Photos"),value:"stockImages"},{name:i18next.t("My Photos"),value:"libImages"},{name:i18next.t("Masks"),value:"frames"}],ToolbarContainer$2=dt$1.div.withConfig({displayName:"Images__ToolbarContainer",componentId:"sc-bw17mn-0"})([""]),isFree=ea=>ea.toString().charCodeAt(ea.length-1)%4===0,Images=({className:ea})=>{const[na,ra]=reactExports.useState("stockImages"),{t:oa}=useTranslation();return jsxRuntimeExports.jsxs(ContentWrap$1,{className:ea,index:"images",children:[jsxRuntimeExports.jsxs(ToolbarContainer$2,{children:[jsxRuntimeExports.jsx(Tabs$1,{items:imageTabItems,value:na,onChange:ra}),jsxRuntimeExports.jsx(AssetUploadButton$1,{title:oa("Upload or insert a photo"),assetType:"photos"})]}),jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:na,children:[jsxRuntimeExports.jsx(ContentWrap$1,{index:"stockImages",children:jsxRuntimeExports.jsx(RemoteAssetsList$1,{tier:Tiers.EARLY,noTierItems:isFree,assetType:"photos",searchable:!0,columns:2,layout:"masonry"})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"libImages",children:jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"wp-photos",searchable:!0,columns:2,layout:"masonry"})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"frames",children:jsxRuntimeExports.jsxs(ScrollableContent$1,{children:[jsxRuntimeExports.jsx(LabelWithIcon$1,{icon:CircleInfoIcon,variant:"boxed",iconLocation:"before",children:oa("Use masks to create masked photos. Simply create a mask and drop your desired photo onto it.")}),jsxRuntimeExports.jsx(AssetsList$1,{layout:"grid",columns:3,smallScreenColumns:2,items:frameItemAssetContents})]})})]})]})},ImagesAssetTabContent=dt$1(Images).withConfig({displayName:"Images",componentId:"sc-bw17mn-1"})(["height:100%;width:100%;","{margin-bottom:10px;}","{display:flex;align-items:center;justify-content:space-between;margin-top:20px;margin-bottom:4px;padding:0 20px;}","{height:calc(100% - 55px);width:100%;}","{> div:nth-of-type(3){span{position:relative;&:before{content:'New';color:rgba(254,177,48,1);position:absolute;top:-5px;right:-25px;font-size:10px;}}}}"],LabelWithIcon$1,ToolbarContainer$2,ContentWrap$1,Tabs$1),defaultColors$t={color:"#FFFFFF",background:"rgba(0,0,0,0.35)",preview:{color:"#000000"}},colors$t={dark:defaultColors$t},defaultSizing$t={padding:"0 20px",height:"62px",marginButton:"12px",marginRight:"20px",borderRadius:"2px"},sizes$t={default:defaultSizing$t},Scheme$2=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$t,sizes:sizes$t},Symbol.toStringTag,{value:"Module"})),TextItemView=React.memo(ea=>{const{className:na,elementData:ra}=ea,oa={...useTypography(ra.styles?.typography)};return jsxRuntimeExports.jsx("div",{className:na,style:oa,children:jsxRuntimeExports.jsx("span",{children:ra.options?.content})})}),theme$H=withTheme(Scheme$2),TextItemView$1=dt$1(TextItemView).withConfig({displayName:"TextItemView",componentId:"sc-mo1hlt-0"})(["cursor:pointer;display:flex;& > span{align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"," ",""],theme$H.colors(ea=>lt$1(["color:"," !important;background:",";"],ea.color,ea.background)),theme$H.sizes(ea=>lt$1(["height:",";padding:",";margin-bottom:",";margin-right:",";border-radius:",";"],ea.height,ea.padding,ea.marginButton,ea.marginRight,ea.borderRadius))),TextItemDragView=dt$1(TextItemView$1).withConfig({displayName:"DragPreview__TextItemDragView",componentId:"sc-721jhq-0"})(["display:inline-flex;background:none;& > span{align-self:center;}",";"],ea=>ea.canDrop&&`color: ${ea.canDropTextColor}`),DraggableTextItem=ea=>{const{assetData:na}=ea,{elementData:ra}=getAssetPayload(na);if(!ra)throw new Error("The given text asset data does not contain the element data");const{dragMeta:oa}=na?.previewOptions||{},aa=reactExports.useCallback(sa=>jsxRuntimeExports.jsx(TextItemDragView,{elementData:ra,canDrop:sa,canDropTextColor:oa?.textColor||"#000"}),[oa,ra]);return jsxRuntimeExports.jsx(BaseAssetItem$1,{...ea,dragPreviewGenerator:aa,children:jsxRuntimeExports.jsx(TextItemView$1,{elementData:ra})})},TextAssetItem=dt$1(DraggableTextItem).withConfig({displayName:"TextAssetItem",componentId:"sc-pcn105-0"})(["transition:300ms color;&.ms-is-dragging span{transition:none;color:transparent;}"]),theme$G=withTheme(Scheme$g),ContentTitle=dt$1.h4.withConfig({displayName:"ContentTitle",componentId:"sc-jn5shy-0"})(["font-weight:400;"," ",""],theme$G.colors(ea=>lt$1(["color:",";"],ea.contentTitle.color)),theme$G.sizes(ea=>lt$1(["font-size:",";margin-bottom:",";margin-top:",";"],ea.contentTitle.fontSize,ea.contentTitle.marginBottom,ea.contentTitle.marginTop))),additionalParams={category:"typography"},Texts=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"texts",children:jsxRuntimeExports.jsxs(RemoteAssetsList$1,{assetType:"elements",additionalParams,searchable:!0,hideChildrenOnSearch:!0,children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Drag or click to add a text")}),textItemAssetContent.map(ra=>jsxRuntimeExports.jsx(TextAssetItem,{assetData:ra},ra.id)),jsxRuntimeExports.jsx(ContentTitle,{children:na("Combination styles")})]})})},TextsAssetTabContent=dt$1(Texts).withConfig({displayName:"Texts",componentId:"sc-15o29p5-0"})(["height:100%;width:100%;"," ",":first-child{margin-top:8px;}"],RemoteAssetsList$1,ContentTitle),videoTabItems=[{name:i18next.t("Videos"),value:"videos"},{name:i18next.t("My Videos"),value:"libVideos"}],ToolbarContainer$1=dt$1.div.withConfig({displayName:"Videos__ToolbarContainer",componentId:"sc-1gdh5qc-0"})([""]),Templates$1=({className:ea})=>{const{t:na}=useTranslation(),[ra,oa]=reactExports.useState("videos");return jsxRuntimeExports.jsxs(ContentWrap$1,{className:ea,index:"videos",children:[jsxRuntimeExports.jsxs(ToolbarContainer$1,{children:[jsxRuntimeExports.jsx(Tabs$1,{items:videoTabItems,value:ra,onChange:oa}),jsxRuntimeExports.jsx(AssetUploadButton$1,{title:na("Upload or insert a video"),assetType:"videos"})]}),jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:ra,children:[jsxRuntimeExports.jsx(ContentWrap$1,{index:"videos",children:jsxRuntimeExports.jsxs(RemoteAssetsList$1,{assetType:"videos",tier:Tiers.EARLY,searchable:!0,hideChildrenOnSearch:!0,columns:2,layout:"grid",children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Embed video")}),jsxRuntimeExports.jsx(AssetsList$1,{items:videoItemAssetContents,columns:2,layout:"grid"}),jsxRuntimeExports.jsx(ContentTitle,{children:na("Stock videos")})]})}),jsxRuntimeExports.jsxs(ContentWrap$1,{index:"libVideos",children:[!useUserTierAuth(Tiers.PRO)&&jsxRuntimeExports.jsx(LabelWithIcon$1,{icon:CircleInfoIcon,variant:"boxed",iconLocation:"before",className:"upgrade-notice",children:jsxRuntimeExports.jsxs("div",{children:[na("Adding videos to your content requires a Pro plan. Upgrade now to access our extensive video library and upload your own videos."),jsxRuntimeExports.jsx(UpgradeButton$1,{size:"tiny",source:"depicter_editor",medium:"videos_section",content:"upgrade_notice",style:{marginTop:"10px"}})]})}),jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"wp-videos",tier:Tiers.LEGACY_FREE,searchable:!0,columns:2,layout:"masonry"})]})]})]})},VideosAssetTabContent=dt$1(Templates$1).withConfig({displayName:"Videos",componentId:"sc-1gdh5qc-1"})(["height:100%;width:100%;","{display:flex;align-items:center;justify-content:space-between;margin-top:20px;margin-bottom:4px;padding:0 20px;}.upgrade-notice{margin:10px 20px 0 20px;}","{height:calc(100% - 55px);width:100%;}"],ToolbarContainer$1,ContentWrap$1),defaultShapeElementData={children:[],type:"shape",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:150,unit:"px"},height:{value:150,unit:"px"}}},styles:{backgroundColor:{default:"#AAAAAA"}}},defaultSvgElementData={children:[],type:"svg",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:150,unit:"px"},height:{value:150,unit:"px"}}},styles:{svg:{default:{fill:"#AAA"}}}},shapeItemAssetContent=[{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{},options:{}})},previewOptions:{content:'<svg width="61" height="61"> <rect height="100%" width="100%" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{corner:{default:{topLeft:{value:15,unit:"px"},topRight:{value:15,unit:"px"},bottomRight:{value:15,unit:"px"},bottomLeft:{value:15,unit:"px"},link:!0}}},options:{}})},previewOptions:{content:'<svg width="61" height="61"><rect height="100%" width="100%" rx="15" ry="15" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}}},options:{}})},previewOptions:{content:'<svg width="61" height="61"><rect height="100%" width="100%" rx="50%" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{type:"svg",size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 87" overflow="visible"><path d="M50 0l50 86.984H0zm0 0"  /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 87"><path d="M50 0l50 86.984H0zm0 0" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none" overflow="visible"><path d="M0 50L50 0l50 50-50 50zm0 0" /></svg>'}})},previewOptions:{content:'<svg width="60" height="60" viewBox="0 0 100 100"><path d="M0 50L50 0l50 50-50 50zm0 0" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 95" preserveAspectRatio="none" overflow="visible"><path d="M50 0l50 36.27-19.098 58.683H19.098L0 36.27zm0 0"  /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 95"><path d="M50 0l50 36.27-19.098 58.683H19.098L0 36.27zm0 0" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 86" preserveAspectRatio="none" overflow="visible"><path d="M75 0l25 42.992-25 42.992H25L0 42.992 25 0zm0 0" /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 86"><path d="M75 0l25 42.992-25 42.992H25L0 42.992 25 0zm0 0" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none" overflow="visible"><path d="M70.71 0L100 29.29v41.42L70.71 100H29.29L0 70.71V29.29L29.29 0zm0 0"/></svg>'}})},previewOptions:{content:'<svg width="61" height="61" viewBox="0 0 100 100"><path d="M70.71 0L100 29.29v41.42L70.71 100H29.29L0 70.71V29.29L29.29 0zm0 0"/></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{type:"svg",styles:{},options:{content:'<svg width="100%" height="100%" viewBox="0 0 1000 951.061" preserveAspectRatio="none"><path d="M500.006 0l154.51 313.086L1000 363.274 749.933 606.98l59.09 344.081-309.018-162.444-309.033 162.444 59.029-344.081-250-243.705 345.482-50.2z" /></svg>'}})},previewOptions:{content:'<svg width="64" height="61" viewBox="0 0 1000 951.061" ><path d="M500.006 0l154.51 313.086L1000 363.274 749.933 606.98l59.09 344.081-309.018-162.444-309.033 162.444 59.029-344.081-250-243.705 345.482-50.2z" /></svg>',fill:"#AAAAAA"}},{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{backgroundColor:{default:"transparent"},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#AAAAAA",link:!0,enable:!0,style:"solid"}}},options:{}})},previewOptions:{content:'<svg width="61" height="61"> <rect height="100%" width="100%" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{corner:{default:{topLeft:{value:15,unit:"px"},topRight:{value:15,unit:"px"},bottomRight:{value:15,unit:"px"},bottomLeft:{value:15,unit:"px"},link:!0}},backgroundColor:{default:"transparent"},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#AAAAAA",link:!0,enable:!0,style:"solid"}}},options:{}})},previewOptions:{content:'<svg width="61" height="61"><rect height="100%" width="100%" rx="15" ry="15" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",payload:{elementData:deepmerge(defaultShapeElementData,{styles:{corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}},backgroundColor:{default:"transparent"},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#AAAAAA",link:!0,enable:!0,style:"solid"}}},options:{}})},previewOptions:{content:'<svg width="61" height="61"><rect height="100%" width="100%" rx="50%" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{svg:{default:{fill:"transparent",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}}},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 87" preserveAspectRatio="none" overflow="visible"><path d="M50 0l50 86.984H0zm0 0"  /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 87"><path d="M50 0l50 86.984H0zm0 0" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{styles:{svg:{default:{fill:"transparent",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}}},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none" overflow="visible"><path d="M0 50L50 0l50 50-50 50zm0 0" /></svg>'}})},previewOptions:{content:'<svg width="60" height="60" viewBox="0 0 100 100"><path d="M0 50L50 0l50 50-50 50zm0 0" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{svg:{default:{fill:"transparent",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}}},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 95" preserveAspectRatio="none" overflow="visible"><path d="M50 0l50 36.27-19.098 58.683H19.098L0 36.27zm0 0"  /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 95"><path d="M50 0l50 36.27-19.098 58.683H19.098L0 36.27zm0 0" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{size:{default:{width:{value:150,unit:"px"},height:{value:130,unit:"px"}}},styles:{svg:{default:{fill:"transparent",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}}},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 86" preserveAspectRatio="none" overflow="visible"><path d="M75 0l25 42.992-25 42.992H25L0 42.992 25 0zm0 0" /></svg>'}})},previewOptions:{content:'<svg width="61" height="53" viewBox="0 0 100 86"><path d="M75 0l25 42.992-25 42.992H25L0 42.992 25 0zm0 0" /></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultSvgElementData,{styles:{svg:{default:{fill:"transparent",stroke:"#AAA",strokeWidth:{value:3,unit:"px"}}}},options:{content:'<svg width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none" overflow="visible"><path d="M70.71 0L100 29.29v41.42L70.71 100H29.29L0 70.71V29.29L29.29 0zm0 0"/></svg>'}})},previewOptions:{content:'<svg width="61" height="61" viewBox="0 0 100 100"><path d="M70.71 0L100 29.29v41.42L70.71 100H29.29L0 70.71V29.29L29.29 0zm0 0"/></svg>',fill:"transparent",stroke:"#AAAAAA",strokeWidth:"3px"}},{id:nanoid$1(),type:"shape",tier:Tiers.EARLY,payload:{elementData:deepmerge(defaultShapeElementData,{styles:{},options:{},size:{default:{width:{value:150,unit:"px"},height:{value:3,unit:"px"}}}})},previewOptions:{content:'<svg width="61" height="2"><rect height="100%" width="100%"/></svg>',fill:"#AAAAAA"}}],ToolbarContainer=dt$1.div.withConfig({displayName:"Shapes__ToolbarContainer",componentId:"sc-f7o3ud-0"})([""]),shapesTabItems=[{name:i18next.t("Shapes"),value:"customShapes"},{name:i18next.t("Stock Vectors"),value:"stockShapes"},{name:i18next.t("My Vectors"),value:"libraryShapes"}],Shapes=({className:ea})=>{const[na,ra]=reactExports.useState("customShapes"),{t:oa}=useTranslation(),aa=useOpenSettings("generalSettings");return jsxRuntimeExports.jsxs(ContentWrap$1,{className:ea,index:"shapes",children:[jsxRuntimeExports.jsxs(ToolbarContainer,{children:[jsxRuntimeExports.jsx(Tabs$1,{items:shapesTabItems,value:na,onChange:ra}),jsxRuntimeExports.jsx(AssetUploadButton$1,{title:oa("Upload or insert a vector image"),assetType:"vectors"})]}),jsxRuntimeExports.jsx(ToolbarContainer,{children:!editorEnv.integrations.unfilteredUploadAllowed&&jsxRuntimeExports.jsx(LabelWithIcon$1,{icon:CircleInfoIcon,variant:"boxed",iconLocation:"before",children:jsxRuntimeExports.jsx(Trans,{t:oa,children:jsxRuntimeExports.jsxs("p",{children:["Uploads of SVG files are disabled by default. Enable it from the"," ",jsxRuntimeExports.jsx("a",{onClick:aa,href:"#",rel:"noreferrer",children:"settings page."})]})})})}),jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:na,children:[jsxRuntimeExports.jsx(ContentWrap$1,{index:"customShapes",children:jsxRuntimeExports.jsx(ScrollableContent$1,{children:jsxRuntimeExports.jsx(AssetsList$1,{layout:"grid",columns:3,smallScreenColumns:2,items:shapeItemAssetContent})})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"stockShapes",children:jsxRuntimeExports.jsx(RemoteAssetsList$1,{tier:Tiers.EARLY,assetType:"vectors",columns:2,layout:"masonry",searchable:!0})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"libraryShapes",children:jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"wp-vectors",searchable:!0,columns:2,layout:"masonry"})})]})]})},ShapesAssetTabContent=dt$1(Shapes).withConfig({displayName:"Shapes",componentId:"sc-f7o3ud-1"})(["height:100%;width:100%;","{display:flex;align-items:center;justify-content:space-between;margin-top:20px;margin-bottom:4px;padding:0 20px;}","{height:calc(100% - 55px);width:100%;}@media (max-width:1366px){"," > div{padding:0 5px;}}"],ToolbarContainer,ContentWrap$1,Tabs$1),prepareIconAssets=({items:ea,set:na,perpage:ra,page:oa,category:aa,search:sa})=>{let la=ea.filter(ua=>ua.setPrefix===na);la=la.filter(ua=>ua.category===aa||aa==="all"),la=la.filter(ua=>{if(sa&&sa.trim()!==""){const da=sa.toLowerCase().trim();return ua.tags&&ua.tags.some(pa=>typeof pa=="string"&&pa.toLowerCase().includes(da))}return!0});const ca=la.slice((oa-1)*ra,oa*ra).map(ua=>{const{body:da,tags:pa,category:ha,type:ga,...fa}=ua;return{...fa,type:ga,previewOptions:{content:da}}});return{items:ca,hasMore:la.length>oa*ra,noResult:ca.length===0}},IconsAssetsList=ea=>{const{className:na,children:ra,columns:oa,searchable:aa,tier:sa,badgeType:la,onItemDrop:ca,onItemClick:ua,chunkSize:da}=ea,{t:pa}=useTranslation(),ha=reactExports.useRef([]),[{items:ga,page:fa,search:ma,hasMore:va,noResult:xa},ya]=reactExports.useState({items:[],page:1,search:"",hasMore:!1,noResult:!1}),[Aa,Ca]=reactExports.useState(!0),{filter:{category:Sa="all",iconSet:wa="material-symbols-light"}}=useAssetsFiltering(),ba=reactExports.useCallback(Ma=>{Ma.trim()!==ma&&ya(Ia=>({...Ia,search:Ma}))},[ma]);reactExports.useEffect(()=>{(async()=>{Ca(!0);try{const Ia=await __vitePreload(()=>import("./assets/icons-wnYyNBXs.js"),[],import.meta.url);ha.current=Ia.default;const Oa=prepareIconAssets({items:ha.current,set:wa,perpage:da,page:1,category:Sa,search:ma});ya({items:Oa.items,page:1,search:ma,hasMore:Oa.hasMore,noResult:Oa.noResult})}catch(Ia){console.error("Failed to load icons data:",Ia),ya(Oa=>({...Oa,noResult:!0}))}finally{Ca(!1)}})()},[Sa,da,wa,ma]);const Ea=reactExports.useCallback(()=>{const Ma=prepareIconAssets({items:ha.current,set:wa,perpage:da,page:fa+1,category:Sa,search:ma});ya(Ia=>({items:[...Ia.items,...Ma.items],page:fa+1,hasMore:Ma.hasMore,search:ma,noResult:Ma.noResult}))},[Sa,da,wa,fa,ma]),$a=reactExports.useCallback(Ma=>{ua?.(Ma)},[ua]);return jsxRuntimeExports.jsxs("div",{className:na,children:[aa&&jsxRuntimeExports.jsx(SearchBar$1,{value:ma,throttleSearch:0,onSearch:ba,searchPlaceholder:pa("Search...")}),jsxRuntimeExports.jsx(LoadingSplash$1,{visible:Aa,fadeMode:"off",children:jsxRuntimeExports.jsxs(InfiniteScroll$1,{dataLength:ga.length,next:Ea,hasMore:va,loader:jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),children:[ra,xa?jsxRuntimeExports.jsx(NoAssetsFound$1,{children:pa("Sorry, we couldn't find any items here.")}):jsxRuntimeExports.jsx(AssetsList$1,{tier:sa,badgeType:la,layout:"grid",columns:oa,items:ga,onItemClick:$a,onItemDrop:ca})]})})]})},IconsAssetsList$1=dt$1(IconsAssetsList).withConfig({displayName:"IconsAssetsList",componentId:"sc-vefl4v-0"})(["display:flex;flex-direction:column;padding-left:20px;height:100%;","{margin-right:20px;}","{width:calc(100% - 20px);}","{display:block;text-align:center;margin:10px 0px;}"],AssetsList$1,SearchBar$1,DotSpinner$1),iconSets=[{name:i18next.t("Material icons"),value:"material-symbols-light"},{name:i18next.t("Line icons"),value:"line-md"}],materialIconsCategories=[{name:i18next.t("All"),value:"all"},{name:i18next.t("Regular"),value:""},{name:i18next.t("Rounded"),value:"rounded"},{name:i18next.t("Outlined"),value:"outline"},{name:i18next.t("Sharp"),value:"sharp"}],IconStylesFilter=({className:ea})=>{const{filter:{category:na="all",iconSet:ra="material-symbols-light"},updateFilter:oa}=useAssetsFiltering(),aa=la=>{oa({category:la})},sa=la=>{oa({iconSet:la,category:"all"})};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"text",items:iconSets,onChange:sa,value:ra}),ra==="material-symbols-light"&&jsxRuntimeExports.jsx(Tabs$1,{variant:"text",items:materialIconsCategories,onChange:aa,value:na})]})},IconStylesFilter$1=dt$1(IconStylesFilter).withConfig({displayName:"IconStylesFilter",componentId:"sc-16p1478-0"})(["display:flex;flex-direction:column;gap:10px;"]),Templates=({className:ea})=>jsxRuntimeExports.jsx(AssetsFiltering,{children:jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"icons",children:jsxRuntimeExports.jsx(IconsAssetsList$1,{columns:5,searchable:!0,tier:Tiers.PRO,badgeType:"proCompact",chunkSize:30,children:jsxRuntimeExports.jsx(IconStylesFilter$1,{})})})}),IconsAssetTabContent=dt$1(Templates).withConfig({displayName:"Icons",componentId:"sc-1l74uca-0"})(["height:100%;width:100%;","{height:calc(100% - 55px);width:100%;}","{display:flex;margin-bottom:10px;margin-right:20px;}"],ContentWrap$1,IconStylesFilter$1),defaultButtonElementAssetData={children:[],type:"button",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:110,unit:"px"},height:{value:40,unit:"px"}}},styles:{typography:{default:{font:"Open Sans",fontSize:13,fontVariant:500,align:"center"}}},options:{content:i18next.t("Click Here")}},buttonItemAssetContents=[{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#FFF"},color:"#FFF"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"#4980F5"},typography:{default:{color:"#FFF"}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFF"}}}}})}},{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#FFF"},color:"#FFF"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"#4980F5"},typography:{default:{color:"#FFF"}},corner:{default:{topLeft:{value:6,unit:"px"},topRight:{value:6,unit:"px"},bottomRight:{value:6,unit:"px"},bottomLeft:{value:6,unit:"px"},link:!0}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFF"}}}}})}},{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#FFF"},color:"#FFF"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"#4980F5"},typography:{default:{color:"#FFF"}},corner:{default:{topLeft:{value:20,unit:"px"},topRight:{value:20,unit:"px"},bottomRight:{value:20,unit:"px"},bottomLeft:{value:20,unit:"px"},link:!0}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFF"}}}}})}},{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#000"},color:"#fff"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#707070",link:!0,enable:!0,style:"solid"}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFFFFF"}},border:{default:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},color:"#707070",enable:!1}}}}})}},{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#000"},color:"#fff"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#707070",link:!0,enable:!0,style:"solid"}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFFFFF"}},border:{default:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},color:"#707070",enable:!1}}}}})}},{id:nanoid$1(),type:"button",previewOptions:{dragMeta:{positionRefine:{x:34,y:34},color:"#000"},color:"#fff"},payload:{elementData:deepmerge(defaultButtonElementAssetData,{styles:{backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},corner:{default:{topLeft:{value:20,unit:"px"},topRight:{value:20,unit:"px"},bottomRight:{value:20,unit:"px"},bottomLeft:{value:20,unit:"px"},link:!0}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#707070",link:!0,enable:!0,style:"solid"}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFFFFF"}},border:{default:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},color:"#707070",enable:!1}}}}})}}],Buttons=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"buttons",children:jsxRuntimeExports.jsxs(ScrollableContent$1,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Drag or click to create a button")}),jsxRuntimeExports.jsx(AssetsList$1,{items:buttonItemAssetContents,columns:2,layout:"grid"})]})})},ButtonsAssetTabContent=dt$1(Buttons).withConfig({displayName:"Buttons",componentId:"sc-lt3tal-0"})(["height:100%;width:100%;","{width:100%;&:first-of-type{margin-top:8px;}}"],ContentTitle),defaultSymbolElementData$2={children:[],type:"symbol",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",wrap:DocType.type!=="carousel",size:{default:{width:{value:60,unit:"px"},height:{value:60,unit:"px"}}}},navigationArrowsAssetContent=[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.458"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:29,unit:"px"},height:{value:25,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.457"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:29,unit:"px"},height:{value:25,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.458" style="transform: rotate(90deg)"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:29,unit:"px"},height:{value:25,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.457" style="transform: rotate(90deg)"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:29,unit:"px"},height:{value:25,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.458"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:13,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.457"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:13,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.458" style="transform: rotate(90deg)"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:13,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.457" style="transform:rotate(90deg)"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:13,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044"><path  d="M0,7,9,0V5H30V9H9v5Z" transform="translate(0.814 1.022)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:31,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044"><path d="M21,9H0V5H21V0l9,7-9,7Z" transform="translate(0.5 1.022)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:31,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044" style="transform:rotate(90deg)"><path  d="M0,7,9,0V5H30V9H9v5Z" transform="translate(0.814 1.022)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:31,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044" style="transform:rotate(90deg)"><path d="M21,9H0V5H21V0l9,7-9,7Z" transform="translate(0.5 1.022)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:31,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="26px" viewBox="0 0 16.971 25.459"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="26px" viewBox="0 0 16.973 25.459"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="26px" viewBox="0 0 16.971 25.459" style="transform:rotate(90deg)"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="26px" viewBox="0 0 16.973 25.459" style="transform:rotate(90deg)"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:16,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871" style="transform: rotate(90deg)"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871" style="transform: rotate(90deg)"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871" style="transform: rotate(90deg)"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871" style="transform: rotate(90deg)"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:13,unit:"px"},height:{value:21,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21"><path id="arrow_7R" d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:13,unit:"px"},height:{value:21,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="transform: rotate(90deg)"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:13,unit:"px"},height:{value:21,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="position:relative; right:-1px;transform: rotate(90deg)"><path id="arrow_7R" d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:13,unit:"px"},height:{value:21,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21"><path  d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="transform: rotate(90deg)"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="position:relative; right:-1px;transform: rotate(90deg)"><path  d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.556 26.871" style="transform: rotate(90deg)"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="8px" height="14px" viewBox="0 0 15.557 26.871" style="transform: rotate(90deg)"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:8,unit:"px"},height:{value:14,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="15px" height="26px" viewBox="0 0 15.556 26.871" ><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:15,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="15px" height="26px" viewBox="0 0 15.557 26.871"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:15,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="15px" height="26px" viewBox="0 0 15.556 26.871" style="transform: rotate(90deg)"><path id="arrow_10L" d="M0,13.438H0L13.436,0l2.12,2.12L4.24,13.437,15.557,24.752l-2.121,2.12Z" transform="translate(0 -0.001)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:15,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="15px" height="26px" viewBox="0 0 15.557 26.871" style="transform: rotate(90deg)"><path id="arrow_10R" d="M0,24.752,11.317,13.437,0,2.121,2.121,0,15.557,13.435h0l0,0L2.122,26.872Z" transform="translate(-0.001 -0.001)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:15,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459" style="transform: rotate(90deg)"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459" style="transform: rotate(90deg)"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="16px" viewBox="0 0 13 21"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="16px" viewBox="0 0 13 21"><path d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="16px" viewBox="0 0 13 21" style="transform: rotate(90deg)"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$2,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="16px" viewBox="0 0 13 21" style="transform: rotate(90deg)"><path d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:10,unit:"px"},height:{value:16,unit:"px"}}}}],defaultCloseButtonElementData=ea=>({children:[],type:"symbol",locked:!1,visible:{default:!0},section:ea,parent:ea,keepAspectRatio:!0,wrap:!0,size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}}}),closeButtonAssetContents=ea=>[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}},corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}},corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:3,unit:"px"},right:{value:3,unit:"px"},bottom:{value:3,unit:"px"},left:{value:3,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}},corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#656565",link:!0,enable:!0,style:"solid"}},corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"},corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"},corner:{default:{topLeft:{value:50,unit:"%"},topRight:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"},corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="26px" height="26px" viewBox="0 0 26 26"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.27972 18.3046L11.5816 13.0027L6.27972 7.70075L7.69393 6.28653L12.9959 11.5885L18.3019 6.28239L19.7175 7.69798L14.4114 13.004L19.7134 18.306L18.2992 19.7202L12.9972 14.4183L7.69531 19.7202L6.27972 18.3046Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultCloseButtonElementData(ea),{size:{default:{width:{value:30,unit:"px"},height:{value:30,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"#AAA"},corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}}},actions:{[nanoid$1()]:{type:"close",trigger:"click",label:i18next.t("Close {{document}}",{document:DocType.getLabel("document")})}},options:{content:'<svg width="18px" height="18px" viewBox="0 0 18 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.69556 12.1848L6.87892 9.00147L3.69556 5.81811L5.81688 3.69679L9.00024 6.88015L12.1795 3.70094L14.3022 5.82364L11.1229 9.00285L14.3022 12.1821L12.1808 14.3034L9.00162 11.1242L5.81826 14.3075L3.69556 12.1848Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#000",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:18,unit:"px"},height:{value:18,unit:"px"}}}}],defaultSymbolElementData$1={children:[],type:"symbol",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",wrap:!0,actions:{[nanoid$1()]:{type:"scrollTo",trigger:"click",label:i18next.t("Scroll to"),options:{type:"below",to:""}}}},scrollIndicatorsAssetContent=[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:67,unit:"px"},height:{value:67,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="23px" height="37px" viewBox="0 0 22 36"><path d="M.5 25.5v-14a11 11 0 0122 0v14a11 11 0 01-22 0zm2-14v14a9 9 0 1018 0v-14a9 9 0 10-18 0zm8 3.5v-4a1.5 1.5 0 113 0v4a1.5 1.5 0 11-3 0z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:23,unit:"px"},height:{value:37,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:57,unit:"px"},height:{value:57,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="13px" height="27px" viewBox="0 0 15 27"><path d="M6.568 26.878L6.445 27 .437 20.99a1.5 1.5 0 012.119-2.12l2.512 2.511V1.5a1.5 1.5 0 113 0v19.881l2.512-2.513a1.5 1.5 0 012.119 2.12l-6.01 6.01z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:13,unit:"px"},height:{value:27,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:59,unit:"px"},height:{value:59,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="22px" height="54px" viewBox="0 0 21 54"><path d="M11.281 54.078a1 1 0 01-.83-.286l-4.24-4.241a.994.994 0 010-1.412l.709-.708a.994.994 0 011.412 0l1.449 1.45v-6.88a1.5 1.5 0 113 0v6.876l1.449-1.448a.994.994 0 011.412 0l.709.708a1 1 0 010 1.412l-4.246 4.241a.985.985 0 01-.7.294 1.041 1.041 0 01-.124-.006zm-1.5-17.077a1.5 1.5 0 111.5 1.5 1.5 1.5 0 01-1.5-1.5zm-9.281-16v-10a10.5 10.5 0 0121 0v10a10.5 10.5 0 01-21 0zm2-10v10a8.5 8.5 0 1017 0v-10a8.5 8.5 0 10-17 0zm7 0v-3a1.5 1.5 0 013 0v3a1.5 1.5 0 01-3 0z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:22,unit:"px"},height:{value:54,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:52,unit:"px"},height:{value:52,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="22px" height="16px" viewBox="0 0 22 15"><path d="M11.316 14.849h0L.709 4.244 4.246.707l7.072 7.071L18.39.707l3.537 3.537L11.322 14.85z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:22,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:54,unit:"px"},height:{value:54,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="24px" height="16px" viewBox="0 0 25 15"><path d="M12.021 14.147L9.9 12.027 0 2.127 2.121.006l9.9 9.9 9.9-9.9 2.121 2.116-9.9 9.9z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:24,unit:"px"},height:{value:16,unit:"px"}}}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultSymbolElementData$1,{size:{default:{width:{value:26,unit:"px"},height:{value:26,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#656565"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},options:{content:'<svg width="15px" height="7px" viewBox="0 0 22 15"><path d="M11.316 14.849h0L.709 4.244 4.246.707l7.072 7.071L18.39.707l3.537 3.537L11.322 14.85z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:15,unit:"px"},height:{value:7,unit:"px"}}}}],defaultBulletElementData={children:[],type:"bullet",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",wrap:!0,size:{default:{width:"auto",height:"auto"}},styles:{}},navigationBulletsAssetContent=[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 37 9"><g><path data-name="Path 1514" d="M4.5.001a4.5 4.5 0 11-4.5 4.5 4.5 4.5 0 014.5-4.5z"/><path data-name="Path 1513" d="M28 4.501a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5zm-14 0a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5z" opacity=".5"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:39,unit:"px"},height:{value:9,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:0,unit:"px"},topLeft:{value:0,unit:"px"},bottomRight:{value:0,unit:"px"},bottomLeft:{value:0,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 39 9"><path data-name="Path 1516" d="M0 0h9v9H0z"/><path data-name="Path 1515" d="M30 9V0h9v9zM15 9V0h9v9z" opacity="0.5"/></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:39,unit:"px"},height:{value:9,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:6,unit:"px"},height:{value:6,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 36 6"><g><path data-name="Path 1518" d="M3 0a3 3 0 11-3 3 3 3 0 013-3z"/><path data-name="Path 1517" d="M30 3a3 3 0 113 3 3 3 0 01-3-3zM15 3a3 3 0 113 3 3 3 0 01-3-3z" opacity=".5"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:36,unit:"px"},height:{value:6,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}},activeOutline:!0}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 35 9"><g><path data-name="Path 1519" d="M26 4.501a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5zm-13 0a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5z" opacity=".5"/><path data-name="Path 1521" d="M4.5 9.001a4.5 4.5 0 114.5-4.5 4.5 4.5 0 01-4.5 4.5zm0-7a2.5 2.5 0 102.5 2.5 2.5 2.5 0 00-2.5-2.5z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:35,unit:"px"},height:{value:9,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}},outline:!0}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 35 9"><path data-name="Path 1526" d="M4.5.498a4.5 4.5 0 11-4.5 4.5 4.5 4.5 0 014.5-4.5z" /><path data-name="Path 1527" d="M26 4.998a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5zm2 0a2.5 2.5 0 102.5-2.5 2.5 2.5 0 00-2.5 2.5zm-15 0a4.5 4.5 0 114.5 4.5 4.5 4.5 0 01-4.5-4.5zm2 0a2.5 2.5 0 102.5-2.5 2.5 2.5 0 00-2.5 2.5z" opacity="0.5"/></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:35,unit:"px"},height:{value:10,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:15,unit:"px"},height:{value:6,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:3,unit:"px"},topLeft:{value:3,unit:"px"},bottomRight:{value:3,unit:"px"},bottomLeft:{value:3,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 53 6"><g><path data-name="Path 1529" d="M3 .001h9a3 3 0 010 6H3a3 3 0 010-6z"/><path data-name="Path 1528" d="M41 6.001a3 3 0 110-6h9a3 3 0 110 6zm-19 0a3 3 0 110-6h9a3 3 0 110 6z" opacity=".5"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:53,unit:"px"},height:{value:6,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:20,unit:"px"},height:{value:3,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:0,unit:"px"},topLeft:{value:0,unit:"px"},bottomRight:{value:0,unit:"px"},bottomLeft:{value:0,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 70 3"><g><path data-name="Path 1532" d="M0 0h20v3H0z"/><path data-name="Path 1533" d="M50 3V0h20v3zM25 3V0h20v3z" opacity=".5"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:70,unit:"px"},height:{value:3,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultBulletElementData,{size:{},styles:{},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:0,unit:"px"},topLeft:{value:0,unit:"px"},bottomRight:{value:0,unit:"px"},bottomLeft:{value:0,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}},outline:!0}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 39 9"><path data-name="Path 1536" d="M0 0h9v9H0z" /><path data-name="Path 1534" d="M24 9h-9V0h9zm-7-2h5V2h-5z" opacity="0.5"/><path data-name="Path 1535" d="M39 9h-9V0h9zm-7-2h5V2h-5z" opacity="0.5"/></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:39,unit:"px"},height:{value:9,unit:"px"}},preventElementStyles:!0}}],defaultLineTimerElementData={children:[],type:"lineTimer",locked:!1,section:"foreground",parent:"foreground",visible:{default:!0},wrap:!0,styles:{}},lineTimersAssetContent=[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultLineTimerElementData,{size:{default:{width:{value:100,unit:"%"},height:{value:7,unit:"px"}}},styles:{backgroundColor:{default:"rgba(0,0,0,0.5)"}},options:{lineTimer:{styles:{color:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 56 7"><g ><path data-name="bg bar" opacity=".3" d="M0 0h56v7H0z"/><path d="M0 0h20v7H0z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:56,unit:"px"},height:{value:7,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultLineTimerElementData,{size:{default:{width:{value:100,unit:"%"},height:{value:3,unit:"px"}}},styles:{backgroundColor:{default:"rgba(0,0,0,0.5)"}},options:{lineTimer:{styles:{color:{default:"rgba(0,0,0,1)"}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 56 3"><g><path data-name="bg bar" opacity=".3" d="M0 0h56v3H0z"/><path d="M0 0h20v3H0z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:56,unit:"px"},height:{value:3,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultLineTimerElementData,{size:{default:{width:{value:100,unit:"%"},height:{value:7,unit:"px"}}},styles:{backgroundColor:{default:"rgba(0,0,0,0.5)"},corner:{default:{topRight:{value:3,unit:"px"},topLeft:{value:3,unit:"px"},bottomRight:{value:3,unit:"px"},bottomLeft:{value:3,unit:"px"}}}},options:{lineTimer:{styles:{color:{default:"rgba(0,0,0,1)"},corner:{default:{value:{topRight:{value:3,unit:"px"},topLeft:{value:3,unit:"px"},bottomRight:{value:3,unit:"px"},bottomLeft:{value:3,unit:"px"}}}}}}}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 56 7"><g><rect data-name="bg bar" width="56" height="7" rx="2" opacity=".3"/><rect width="20" height="7" rx="2"/></g></svg>',fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:56,unit:"px"},height:{value:7,unit:"px"}},preventElementStyles:!0}}],defaultPlayAndPauseElementData={children:[],type:"playAndPause",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",wrap:!0,size:{default:{width:"auto",height:"auto"}},styles:{}},playAndPausesAssetContent=[{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},backgroundColor:{default:"#000"}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="10" height="16"> <path data-name="1-1" d="M10 8 0 0v16Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 110 40"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.9995 0C17.2996 0 14.6804 0.52884 12.2148 1.57183C9.83327 2.57921 7.69444 4.02139 5.85769 5.85828C4.02098 7.69515 2.57895 9.83414 1.57165 12.2158C0.52878 14.6816 0 17.3009 0 20.0009C0 22.701 0.52878 25.3202 1.57165 27.7859C2.57894 30.1675 4.02097 32.3064 5.85769 34.1432C7.69442 35.9799 9.83325 37.422 12.2148 38.4293C14.6804 39.4722 17.2996 40.001 19.9995 40.001C22.6995 40.001 25.3187 39.4722 27.7845 38.4293C30.1661 37.422 32.305 35.9799 34.1419 34.1432C35.9787 32.3064 37.4209 30.1675 38.4282 27.7859C39.4712 25.3202 40 22.7009 40 20.0009C40 17.3009 39.4712 14.6817 38.4282 12.2158C37.4208 9.83416 35.9787 7.69518 34.1419 5.85828C32.305 4.0214 30.1661 2.57923 27.7845 1.57183C25.3187 0.52884 22.6995 0 19.9995 0ZM16.9999 28.0011V12.0007L26.9997 20.0009L16.9999 28.0011Z" /><path fill-rule="evenodd" clip-rule="evenodd" d="M89.9998 40.0005C87.2998 40.0005 84.6806 39.4717 82.2149 38.4288C79.8334 37.4215 77.6945 35.9795 75.8578 34.1427C74.021 32.306 72.579 30.1671 71.5717 27.7856C70.5288 25.3199 70 22.7007 70 20.0007C70 17.3007 70.5288 14.6815 71.5717 12.2157C72.579 9.83402 74.021 7.69506 75.8578 5.85821C77.6945 4.02134 79.8334 2.57918 82.2149 1.57181C84.6806 0.52883 87.2998 0 89.9998 0C92.6998 0 95.319 0.52883 97.7847 1.57181C100.166 2.57918 102.305 4.02134 104.142 5.85821C105.979 7.69506 107.421 9.83402 108.428 12.2157C109.471 14.6815 110 17.3007 110 20.0007C110 22.7007 109.471 25.3199 108.428 27.7856C107.421 30.1671 105.979 32.306 104.142 34.1427C102.305 35.9795 100.166 37.4215 97.7847 38.4288C95.319 39.4717 92.6998 40.0005 89.9998 40.0005ZM91.9996 11.9997V27.9999H96.0001V11.9997H91.9996ZM84.0004 11.9997V27.9999H88V11.9997H84.0004Z" /></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:110,unit:"px"},height:{value:40,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#000"}}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="10" height="16"> <path data-name="1-1" d="M10 8 0 0v16Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 110 40"><path data-name="Path 1537" d="M20 40a20 20 0 1120-20 20.023 20.023 0 01-20 20zm0-37a17 17 0 1017 17A17.019 17.019 0 0020 3z" /><path data-name="Path 1421" d="M27 20.001l-10-8v16z" /><g><path data-name="Path 1538" d="M90 40a20 20 0 1120-20 20.023 20.023 0 01-20 20zm0-37a17 17 0 1017 17A17.019 17.019 0 0090 3z" /><path data-name="Path 1543" d="M92 28V12h4v16zm-8 0V12h4v16z"  /></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:110,unit:"px"},height:{value:40,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:46,unit:"px"},height:{value:46,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="13" height="21"><path data-name="2-1" d="M12.037 9.722a1 1 0 0 1 0 1.556L1.629 19.685A1 1 0 0 1 0 18.907V2.093a1 1 0 0 1 1.628-.778Z"/></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 82 21"><g><path d="M79.002 21.001a1 1 0 01-1-1v-19a1 1 0 011-1h2a1 1 0 011 1v19a1 1 0 01-1 1zm-8 0a1 1 0 01-1-1v-19a1 1 0 011-1h2a1 1 0 011 1v19a1 1 0 01-1 1zM12.037 9.724a1 1 0 010 1.556L1.629 19.687A1 1 0 010 18.909V2.095a1 1 0 011.628-.778z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:82,unit:"px"},height:{value:21,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:46,unit:"px"},height:{value:46,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg  width="11.998" height="16.003"><path d="M7.998 14.001v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z"/></svg>',playIcon:'<svg width="11" height="18"><path data-name="3-1" d="M10.054 8.226a1 1 0 0 1 0 1.548l-8.421 6.89A1 1 0 0 1 0 15.89V2.11a1 1 0 0 1 1.633-.774Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 81 16"><g><path d="M10.054 7.228a1 1 0 010 1.548l-8.421 6.89A1 1 0 010 14.892V1.112A1 1 0 011.633.338zM77.002 14.001v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:81,unit:"px"},height:{value:16,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#000"}},options:{content:'<svg  width="11.998" height="16.003"><path d="M7.998 14.001v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z"/></svg>',playIcon:'<svg width="11" height="18"><path data-name="3-1" d="M10.054 8.226a1 1 0 0 1 0 1.548l-8.421 6.89A1 1 0 0 1 0 15.89V2.11a1 1 0 0 1 1.633-.774Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 110 40"><g><path d="M32 40H8a8.009 8.009 0 01-8-8V8a8.009 8.009 0 018-8h24a8.009 8.009 0 018 8v24a8.009 8.009 0 01-8 8zM17 12.107a1.006 1.006 0 00-1 1v13.78a1 1 0 001 1 .98.98 0 00.628-.228l8.421-6.889a1 1 0 000-1.548l-8.421-6.89a.983.983 0 00-.623-.223zM102 40H78a8.009 8.009 0 01-8-8V8a8.009 8.009 0 018-8h24a8.009 8.009 0 018 8v24a8.009 8.009 0 01-8 8zm-9-27a1 1 0 00-1 1v14a1 1 0 001 1h2a1 1 0 001-1V14a1 1 0 00-1-1zm-8 0a1 1 0 00-1 1v14a1 1 0 001 1h2a1 1 0 001-1V14a1 1 0 00-1-1z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:110,unit:"px"},height:{value:40,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#000"}}},options:{content:'<svg  width="11.998" height="16.003"><path d="M7.998 14.001v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z"/></svg>',playIcon:'<svg width="11" height="18"><path data-name="3-1" d="M10.054 8.226a1 1 0 0 1 0 1.548l-8.421 6.89A1 1 0 0 1 0 15.89V2.11a1 1 0 0 1 1.633-.774Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 113 43"><path data-name="Path 1539" d="M33.5 43h-24A9.511 9.511 0 010 33.5v-24A9.511 9.511 0 019.5 0h24A9.511 9.511 0 0143 9.5v24a9.511 9.511 0 01-9.5 9.5zM9.5 3A6.508 6.508 0 003 9.5v24A6.508 6.508 0 009.5 40h24a6.508 6.508 0 006.5-6.5v-24A6.508 6.508 0 0033.5 3z" /><path data-name="Polygon 70" d="M27.554 20.726a1 1 0 01.141 1.407.939.939 0 01-.141.141l-8.421 6.89a1 1 0 01-1.633-.774V14.61a1 1 0 011.633-.774z" /><g><path data-name="Path 1541" d="M103.5 43h-24a9.511 9.511 0 01-9.5-9.5v-24A9.511 9.511 0 0179.5 0h24a9.511 9.511 0 019.5 9.5v24a9.511 9.511 0 01-9.5 9.5zm-24-40A6.508 6.508 0 0073 9.5v24a6.508 6.508 0 006.5 6.5h24a6.508 6.508 0 006.5-6.5v-24a6.508 6.508 0 00-6.5-6.5z" /><path data-name="Union 105" d="M94.5 30.5a1 1 0 01-1-1v-14a1 1 0 011-1h2a1 1 0 011 1v14a1 1 0 01-1 1zm-8 0a1 1 0 01-1-1v-14a1 1 0 011-1h2a1 1 0 011 1v14a1 1 0 01-1 1z" /></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:113,unit:"px"},height:{value:43,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#000"}}},options:{content:'<svg  width="11.998" height="16.003"><path d="M7.998 14.001v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z"/></svg>',playIcon:'<svg width="11" height="18"><path data-name="3-1" d="M10.054 8.226a1 1 0 0 1 0 1.548l-8.421 6.89A1 1 0 0 1 0 15.89V2.11a1 1 0 0 1 1.633-.774Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 113 43"><path data-name="Path 1540" d="M21.5 43A21.5 21.5 0 1143 21.5 21.525 21.525 0 0121.5 43zm0-40A18.5 18.5 0 1040 21.5 18.521 18.521 0 0021.5 3z" /><path data-name="Polygon 71" d="M27.554 20.726a1 1 0 01.141 1.407.939.939 0 01-.141.141l-8.421 6.89a1 1 0 01-1.633-.774V14.61a1 1 0 011.633-.774z" /><g><path data-name="Path 1542" d="M91.5 43A21.5 21.5 0 11113 21.5 21.525 21.525 0 0191.5 43zm0-40A18.5 18.5 0 10110 21.5 18.521 18.521 0 0091.5 3z" /><path data-name="Union 106" d="M93.5 27.5v-12a2 2 0 014 0v12a2 2 0 01-4 0zm-8 0v-12a2 2 0 014 0v12a2 2 0 01-4 0z" /></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:113,unit:"px"},height:{value:43,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},backgroundColor:{default:"#000"}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="10" height="16"> <path data-name="1-1" d="M10 8 0 0v16Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 108 36"><g><path d="M36.002 36h-36V0h36v36zm-21-26v16l10-8-10-8zM108.002 36h-36V0h36v36zm-16-26v16h4V10h-4zm-7 0v16h4V10h-4z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:108,unit:"px"},height:{value:36,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:51,unit:"px"},height:{value:51,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="10" height="16"> <path data-name="1-1" d="M10 8 0 0v16Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 79 16"><path data-name="Path 1421" d="M10 8.001l-10-8v16z" /><g ><path data-name="Rectangle 5322" d="M67 0h4v16h-4z"/><path data-name="Rectangle 5323" d="M75 0h4v16h-4z"/></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:79,unit:"px"},height:{value:16,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{elementData:deepmerge(defaultPlayAndPauseElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:0,unit:"px"},topLeft:{value:0,unit:"px"},bottomRight:{value:0,unit:"px"},bottomLeft:{value:0,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#000"}}},options:{content:'<svg width="12" height="16"><g><path data-name="Rectangle 5322" d="M0 0h4v16H0z"/><path data-name="Rectangle 5323" d="M8 0h4v16H8z"/></g></svg>',playIcon:'<svg width="10" height="16"> <path data-name="1-1" d="M10 8 0 0v16Z" /></svg>'}})},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},content:'<svg viewBox="0 0 108 36"><g data-name="Rectangle 5337" fill="none" stroke="#656565" stroke-width="3"><path stroke="none" d="M0 0h36v36H0z"/><path d="M1.5 1.5h33v33h-33z"/></g><path data-name="Path 1421" d="M25 18.001l-10-8v16z" /><g><g data-name="Rectangle 5338" fill="none" stroke="#707070" stroke-width="3"><path stroke="none" d="M72 0h36v36H72z"/><path d="M73.5 1.5h33v33h-33z"/></g><path data-name="Union 104" d="M92 26.001v-16h4v16zm-7 0v-16h4v16z" /></g></svg>',fill:"#AAAAAA",size:{width:{value:180,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:108,unit:"px"},height:{value:36,unit:"px"}},preventElementStyles:!0}}],setControlsAssetContent=[{id:nanoid$1(),type:"symbol",payload:{groupData:[deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"ml",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.458"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}}),deepmerge(defaultBulletElementData,{position:{default:{x:{value:0,unit:"px"},y:{value:30,unit:"px"},origin:"bc",autoOrigin:!1}},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}}),deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"mr",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="29px" height="25px" viewBox="0 0 29.729 25.457"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})]},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},fill:"#AAAAAA",content:'<svg><g><path data-name="Path 1552" d="M129.246 15.561l4.863-4.864H118.5v-3h15.609l-4.863-4.869 2.119-2.119 8.484 8.486h0l-8.484 8.486zM.5 9.198h0L8.986.712l2.119 2.124L6.24 7.7h15.609v3H6.24l4.865 4.864-2.119 2.119zm57.352 0a3 3 0 113 3 3 3 0 01-3-3.005z" /><path data-name="Union 107" d="M77.848 9.195a3 3 0 113 3 3 3 0 01-3-3zm-10 0a3 3 0 113 3 3 3 0 01-3-3z" opacity=".5"/></g></svg>',size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:141,unit:"px"},height:{value:18,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{groupData:[deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"ml",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044"><path  d="M0,7,9,0V5H30V9H9v5Z" transform="translate(0.814 1.022)" /></svg>'}}),deepmerge(defaultBulletElementData,{position:{default:{x:{value:0,unit:"px"},y:{value:30,unit:"px"},origin:"bc",autoOrigin:!1}},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}}),deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"mr",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="31px" height="16px" viewBox="0 0 31.314 16.044"><path d="M21,9H0V5H21V0l9,7-9,7Z" transform="translate(0.5 1.022)" /></svg>'}})]},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},fill:"#AAAAAA",content:'<svg><g><path data-name="Path 1556" d="M131.223 7.268h-16.852v-3h16.852V.001L139 5.78l-7.777 5.779zM0 5.779L7.777 0v4.267h16.852v3H7.777v4.291zm55 0a2.5 2.5 0 112.5 2.5 2.5 2.5 0 01-2.5-2.5z"/><path data-name="Path 1557" d="M79 5.78a2.5 2.5 0 112.5 2.5 2.5 2.5 0 01-2.5-2.5zm-12 0a2.5 2.5 0 112.5 2.5 2.5 2.5 0 01-2.5-2.5z" opacity=".5"/></g></svg>',size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:140,unit:"px"},height:{value:12,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{groupData:[deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"ml",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.458"><path d="M0,12.023H0L12.02,0l2.829,2.829L7.655,10.022H28.522v4H7.656l7.193,7.194L12.02,24.044Z" transform="translate(0.707 0.707)"/></svg>'}}),deepmerge(defaultBulletElementData,{position:{default:{x:{value:0,unit:"px"},y:{value:30,unit:"px"},origin:"bc",autoOrigin:!1}},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}},outline:!0}}}),deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"mr",autoOrigin:!1}},size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAAAAA"}},corner:{default:{topRight:{value:50,unit:"%"},topLeft:{value:50,unit:"%"},bottomRight:{value:50,unit:"%"},bottomLeft:{value:50,unit:"%"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="13px" viewBox="0 0 29.729 25.457"><path d="M13.672,21.215l7.193-7.194H0v-4H20.866L13.673,2.829,16.5,0l12.02,12.02h0L16.5,24.043Z" transform="translate(0.5 0.707)" /></svg>'}})]},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},fill:"#AAAAAA",content:'<svg><path data-name="Path 1561" d="M9 15.658l5.658-5.653 1.414 1.414-3.285 3.286H23v2H12.867l3.2 3.2-1.414 1.415zm113.928 4.243l3.205-3.2H116v-2h10.217l-3.287-3.286 1.414-1.414 5.658 5.653-5.658 5.653z" /><path data-name="Path 1560" d="M108 15.498a15.5 15.5 0 1115.5 15.5 15.517 15.517 0 01-15.5-15.5zm2 0a13.5 13.5 0 1013.5-13.5 13.515 13.515 0 00-13.5 13.5zm-110 0a15.5 15.5 0 1115.5 15.5A15.517 15.517 0 010 15.498zm2 0a13.5 13.5 0 1013.5-13.5A13.515 13.515 0 002 15.498zm79 5.5a3 3 0 01-3-3v-2a3 3 0 013-3h2a3 3 0 013 3v2a3 3 0 01-3 3zm-1-5v2a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 00-1-1h-2a1 1 0 00-1 1zm-11 5a3.005 3.005 0 01-3-3v-2a3.005 3.005 0 013-3h2a3 3 0 013 3v2a3 3 0 01-3 3zm-1-5v2a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 00-1-1h-2a1 1 0 00-1 1zm-11 5a3 3 0 01-3-3v-2a3 3 0 013-3h2a3 3 0 013 3v2a3 3 0 01-3 3z" /></svg>',size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:139,unit:"px"},height:{value:31,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{groupData:[deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"ml",autoOrigin:!1}},size:{default:{width:{value:51,unit:"px"},height:{value:51,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="position:relative; left:-1px;"><path id="arrow_7L" d="M664.412,346.507l13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}}),deepmerge(defaultBulletElementData,{position:{default:{x:{value:0,unit:"px"},y:{value:30,unit:"px"},origin:"bc",autoOrigin:!1}},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}}),deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"mr",autoOrigin:!1}},size:{default:{width:{value:51,unit:"px"},height:{value:51,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="13px" height="21px" viewBox="0 0 13 21" style="position:relative; right:-1px;"><path id="arrow_7R" d="M677.412,346.507l-13-10.5v21Z" transform="translate(-664.412 -336.007)"/></svg>'}})]},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},fill:"#AAAAAA",content:'<svg ><g><path data-name="Path 1559" d="M111.221.002L119 5.779l-7.779 5.778zM0 5.782L7.779 0v11.561zm46 .222a3 3 0 113 3 3 3 0 01-3-3.002z"/><path data-name="Path 1558" d="M68.005 6.004a3 3 0 113 3 3 3 0 01-3-3zm-11 0a3 3 0 113 3 3 3 0 01-3.004-3z" opacity=".5"/></g></svg>',size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:119,unit:"px"},height:{value:11,unit:"px"}},preventElementStyles:!0}},{id:nanoid$1(),type:"symbol",payload:{groupData:[deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"ml",autoOrigin:!1}},size:{default:{width:{value:50,unit:"px"},height:{value:50,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="16px" height="25px" viewBox="0 0 16.971 25.459" style="position:relative; left:-1px;"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}}),deepmerge(defaultBulletElementData,{position:{default:{x:{value:0,unit:"px"},y:{value:30,unit:"px"},origin:"bc",autoOrigin:!1}},options:{bullet:{styles:{color:{default:"rgba(0,0,0,0.5)"},activeColor:{default:"rgba(0,0,0,1)"},size:{default:{width:{value:9,unit:"px"},height:{value:9,unit:"px"}}},space:{default:{right:{value:5,unit:"px"}}},corner:{default:{topRight:{value:5,unit:"px"},topLeft:{value:5,unit:"px"},bottomRight:{value:5,unit:"px"},bottomLeft:{value:5,unit:"px"}}}},hover:{activeColor:{default:"rgba(0,0,0,1)"}}}}}),deepmerge(defaultSymbolElementData$2,{position:{default:{x:{value:20,unit:"px"},y:{value:0,unit:"px"},origin:"mr",autoOrigin:!1}},size:{default:{width:{value:50,unit:"px"},height:{value:50,unit:"px"}}},styles:{svg:{default:{fill:"#000"}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="16px" height="25px" viewBox="0 0 16.973 25.459" style="position:relative; right:-1px;"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})]},previewOptions:{dragMeta:{positionRefine:{},color:"#000"},fill:"#AAAAAA",content:'<svg><g><path data-name="Path 1555" d="M108.893 15.563l6.369-6.365-6.369-6.365 2.121-2.121 8.486 8.481h0l-8.486 8.486zM.5 9.198h0L8.986.712l2.121 2.121-6.365 6.365 6.365 6.365-2.121 2.122zm47-.49a3 3 0 113 3 3 3 0 01-3-2.999z" stroke="rgba(0,0,0,0)"/><path data-name="Union 109" d="M67.5 8.709a3 3 0 113.008 3 3.009 3.009 0 01-3.008-3zm-9.992 0a3 3 0 113 3 3.006 3.006 0 01-3.008-3z" opacity=".5"/></g></svg>',size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:120,unit:"px"},height:{value:18,unit:"px"}},preventElementStyles:!0}}],defaultCircleTimerElementData={children:[],type:"dpcCircleTimer",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{}},circleTimerItemAssetContent=[{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCircleTimerElementData,{options:{showSymbol:!0,changeStatusOnClick:!0}})},previewOptions:{content:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 37C29.3888 37 37 29.3888 37 20C37 10.6112 29.3888 3 20 3C10.6112 3 3 10.6112 3 20C3 29.3888 10.6112 37 20 37ZM40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20Z" fill="#474747"/><path d="M36.9999 20C36.9999 25.4345 34.4499 30.2733 30.4811 33.3854L32.3302 35.7468C32.8416 35.3464 33.3315 34.9226 33.7987 34.4774C34.0466 34.241 34.2885 33.9983 34.5241 33.7495C36.6825 31.4695 38.2838 28.7024 39.1809 25.6647C39.727 23.8157 39.9995 21.9091 39.9999 20.004C40.0003 17.7962 39.6352 15.5904 38.9067 13.4784C37.9479 10.6987 36.3934 8.17934 34.3684 6.08792C34.2118 5.92625 34.0526 5.76721 33.8907 5.61088C33.1814 4.92615 32.4194 4.29187 31.6095 3.71453C28.2204 1.2985 24.162 0 19.9999 0V3C29.3887 3 36.9999 10.6112 36.9999 20Z" fill="#AAAAAA"/><path d="M17 12.0008L26.9999 20.0009L17 28.001V12.0008Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}}},{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCircleTimerElementData,{options:{showSymbol:!0,lineCap:!0,changeStatusOnClick:!0}})},previewOptions:{content:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 35C28.2843 35 35 28.2843 35 20C35 11.7157 28.2843 5 20 5C11.7157 5 5 11.7157 5 20C5 28.2843 11.7157 35 20 35ZM40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20Z" fill="#474747"/><path d="M20.3634 4.99634C19.0461 4.92545 17.9999 3.83491 17.9999 2.5C17.9999 1.11929 19.1192 0 20.4999 0C20.5931 0 20.6851 0.00510231 20.7757 0.0150429C24.8109 0.171589 28.7069 1.54629 31.9489 3.9616C32.6334 4.47154 33.2818 5.02269 33.8911 5.61088C34.0567 5.7708 34.2195 5.93356 34.3796 6.09907C36.4829 8.27483 38.0753 10.9104 39.0199 13.815C40.3002 17.7522 40.3271 21.9896 39.097 25.9428C38.1842 28.8759 36.6127 31.5453 34.5193 33.755C34.2854 34.0018 34.0452 34.2427 33.7991 34.4774C33.2776 34.9744 32.7279 35.4445 32.1518 35.8852L32.1478 35.88C31.7078 36.266 31.1312 36.5 30.4999 36.5C29.1192 36.5 27.9999 35.3807 27.9999 34C27.9999 33.1308 28.4434 32.3653 29.1165 31.9173L29.1144 31.9145C32.6927 29.1731 35.0003 24.856 35.0003 20C35.0003 11.837 28.4798 5.19702 20.3632 5.00431L20.3634 4.99634Z" fill="#AAAAAA"/><path d="M17 12.0008L26.9999 20.0009L17 28.001V12.0008Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}}},{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCircleTimerElementData,{options:{showSymbol:!1}})},previewOptions:{content:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 34C27.732 34 34 27.732 34 20C34 12.268 27.732 6 20 6C12.268 6 6 12.268 6 20C6 27.732 12.268 34 20 34ZM40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20Z" fill="#474747"/><path fill-rule="evenodd" clip-rule="evenodd" d="M28.6316 31.0233C31.9 28.4604 34 24.4754 34 20C34 12.268 27.732 6 20 6V0C24.1621 0 28.2205 1.2985 31.6096 3.71453C32.4195 4.29187 33.1815 4.92615 33.8908 5.61088C34.0527 5.76721 34.212 5.92625 34.3685 6.08792C36.3935 8.17934 37.948 10.6987 38.9068 13.4784C39.6354 15.5904 40.0004 17.7962 40 20.004C39.9996 21.9091 39.7271 23.8157 39.181 25.6647C38.2839 28.7024 36.6826 31.4695 34.5242 33.7495C34.2886 33.9983 34.0467 34.241 33.7988 34.4774C33.3317 34.9226 32.8417 35.3464 32.3303 35.7468L28.6316 31.0233Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}}},{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCircleTimerElementData,{options:{showSymbol:!1,lineCap:!0}})},previewOptions:{content:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 33C27.1797 33 33 27.1797 33 20C33 12.8203 27.1797 7 20 7C12.8203 7 7 12.8203 7 20C7 27.1797 12.8203 33 20 33ZM40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20Z" fill="#474747"/><path d="M20.5 7C20.5335 7 20.567 6.99953 20.6003 6.99859L20.5996 7.01377C27.5008 7.32729 32.9996 13.0216 32.9996 20.0002C32.9996 24.4639 30.7499 28.4021 27.3226 30.7429L27.33 30.7537C26.5198 31.3948 26 32.3867 26 33.5C26 35.433 27.567 37 29.5 37C30.143 37 30.7455 36.8266 31.2633 36.524L31.2646 36.5259C31.2742 36.5194 31.2838 36.5128 31.2934 36.5063C31.4427 36.417 31.5848 36.3169 31.7186 36.2071C32.4528 35.6762 33.1474 35.0981 33.7984 34.4775C34.03 34.2568 34.2562 34.0305 34.477 33.799C36.3739 31.8087 37.8509 29.4373 38.7993 26.8244C39.5931 24.6378 39.9944 22.3435 39.9996 20.045L39.9996 20.0002L39.9995 19.9479C39.9948 18.1328 39.743 16.316 39.2423 14.5486C38.3429 11.3739 36.6762 8.48496 34.4064 6.12773C34.2368 5.95164 34.064 5.77865 33.8881 5.60885C33.4234 5.16035 32.9357 4.7332 32.4263 4.32929C29.1386 1.72218 25.1142 0.215142 20.9227 0.0214844L20.9225 0.0252407C20.784 0.00857564 20.643 0 20.5 0C18.567 0 17 1.567 17 3.5C17 5.433 18.567 7 20.5 7Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:84,unit:"px"},height:{value:84,unit:"px"}},iconSize:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}}}],defaultStoriesProgressBarElementData={children:[],type:"dpcStoriesProgressBar",locked:!1,section:"foreground",parent:"foreground",wrap:!0,visible:{default:!0},size:{default:{width:{value:100,unit:"%"},height:{value:5,unit:"px"}}},styles:{}},storiesProgressBarItemAssetContent=[{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultStoriesProgressBarElementData,{})},previewOptions:{content:'<svg xmlns="http://www.w3.org/2000/svg" width="121" height="3" viewBox="0 0 121 3" fill="none"><path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M46 0H25V3H46V0ZM71 0H50V3H71V0ZM75 0H96V3H75V0ZM121 0H100V3H121V0Z" fill="#AAAAAA"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 0H0V3H21V0ZM32 0H25V3H32V0Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:121,unit:"px"},height:{value:3,unit:"px"}}}},{id:nanoid$1(),type:"symbol",tier:Tiers.PRO,payload:{elementData:deepmerge(defaultStoriesProgressBarElementData,{innerStyles:{"dpc-progress-bar":{corner:{default:{topLeft:{value:8,unit:"px"},topRight:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"},link:!0}}}}})},previewOptions:{content:'<svg xmlns="http://www.w3.org/2000/svg" width="121" height="5" viewBox="0 0 121 5" fill="none"><path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd" d="M27.5 0C26.1193 0 25 1.11929 25 2.5C25 3.88071 26.1193 5 27.5 5H43.5C44.8807 5 46 3.88071 46 2.5C46 1.11929 44.8807 0 43.5 0H27.5ZM52.5 0C51.1193 0 50 1.11929 50 2.5C50 3.88071 51.1193 5 52.5 5H68.5C69.8807 5 71 3.88071 71 2.5C71 1.11929 69.8807 0 68.5 0H52.5ZM75 2.5C75 1.11929 76.1193 0 77.5 0H93.5C94.8807 0 96 1.11929 96 2.5C96 3.88071 94.8807 5 93.5 5H77.5C76.1193 5 75 3.88071 75 2.5ZM102.5 0C101.119 0 100 1.11929 100 2.5C100 3.88071 101.119 5 102.5 5H118.5C119.881 5 121 3.88071 121 2.5C121 1.11929 119.881 0 118.5 0H102.5Z" fill="#AAAAAA"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 0C1.11929 0 0 1.11929 0 2.5C0 3.88071 1.11929 5 2.5 5H18.5C19.8807 5 21 3.88071 21 2.5C21 1.11929 19.8807 0 18.5 0H2.5ZM27.5 0C26.1193 0 25 1.11929 25 2.5C25 3.88071 26.1193 5 27.5 5H29.5C30.8807 5 32 3.88071 32 2.5C32 1.11929 30.8807 0 29.5 0H27.5Z" fill="#AAAAAA"/></svg>',dragMeta:{positionRefine:{x:24,y:15},color:"#000"},fill:"#AAAAAA",size:{width:{value:179,unit:"px"},height:{value:62,unit:"px"}},iconSize:{width:{value:121,unit:"px"},height:{value:5,unit:"px"}}}}],SolidArrows="data:image/svg+xml,%3csvg%20width='59'%20height='29'%20viewBox='0%200%2059%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='29'%20rx='5.67376'%20transform='matrix(-1%200%200%201%2059%200)'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M49.5278%2014.4787L49.5278%2014.4805L43.6985%2021L41.7092%2018.774L45.5445%2014.4787L41.7092%2010.178L43.6985%207.95013L49.5278%2014.4769L49.5278%2014.4787Z'%20fill='%23212121'/%3e%3crect%20width='28'%20height='29'%20rx='5.67376'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.47223%2014.4787L9.47223%2014.4805L15.3015%2021L17.2908%2018.774L13.4555%2014.4787L17.2908%2010.178L15.3015%207.95013L9.47223%2014.4769L9.47223%2014.4787Z'%20fill='%23212121'/%3e%3c/svg%3e",OutlineArrows="data:image/svg+xml,%3csvg%20width='59'%20height='29'%20viewBox='0%200%2059%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='-1'%20y='1'%20width='26'%20height='27'%20rx='4.67376'%20transform='matrix(-1%200%200%201%2057%200)'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M49.5278%2014.4787L49.5278%2014.4805L43.6985%2021L41.7092%2018.774L45.5445%2014.4787L41.7092%2010.178L43.6985%207.95013L49.5278%2014.4769L49.5278%2014.4787Z'%20fill='%23AAAAAA'/%3e%3crect%20x='1'%20y='1'%20width='26'%20height='27'%20rx='4.67376'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.47223%2014.4787L9.47223%2014.4805L15.3015%2021L17.2908%2018.774L13.4555%2014.4787L17.2908%2010.178L15.3015%207.95013L9.47223%2014.4769L9.47223%2014.4787Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",VerticalSolidArrows="data:image/svg+xml,%3csvg%20width='59'%20height='29'%20viewBox='0%200%2059%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='31'%20width='28'%20height='29'%20rx='5.67376'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M45.0036%2019L45.0054%2019L51.5%2013.0354L49.2825%2011L45.0036%2014.9243L40.7193%2011L38.5%2013.0354L45.0018%2019L45.0036%2019Z'%20fill='%23212121'/%3e%3crect%20width='28'%20height='29'%20rx='5.67376'%20transform='matrix(-1%200%200%201%2028%200)'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.214%2010L14.2158%2010L20.7104%2015.9646L18.4929%2018L14.214%2014.0757L9.92978%2018L7.71045%2015.9646L14.2122%2010L14.214%2010Z'%20fill='%23212121'/%3e%3c/svg%3e",VerticalOutlineArrows="data:image/svg+xml,%3csvg%20width='59'%20height='29'%20viewBox='0%200%2059%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='-1'%20y='1'%20width='26'%20height='27'%20rx='4.67376'%20transform='matrix(-1%200%200%201%2026%200)'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9787%2010.1815L13.9805%2010.1815L20.5%2016.0108L18.274%2018L13.9787%2014.1648L9.67798%2018L7.45013%2016.0108L13.9769%2010.1815L13.9787%2010.1815Z'%20fill='%23AAAAAA'/%3e%3crect%20x='32'%20y='1'%20width='26'%20height='27'%20rx='4.67376'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M44.9787%2019.3185L44.9805%2019.3185L51.5%2013.4892L49.274%2011.5L44.9787%2015.3352L40.678%2011.5L38.4501%2013.4892L44.9769%2019.3185L44.9787%2019.3185Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",defaultSymbolElementData={children:[],type:"symbol",locked:!1,visible:{default:!0},section:"foreground",size:{default:{width:{value:60,unit:"px"},height:{value:60,unit:"px"}}}},defaultGroupElementData={type:"group",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",autoLayout:{enable:!0,mode:{default:"flex"},gap:{default:5},direction:{default:"row"}},position:{default:{origin:"br",autoOrigin:!0,x:{value:50,unit:"px"},y:{value:20,unit:"px"}}},size:{default:{width:"auto",height:"auto"}}},solidArrows$1={id:nanoid$1(),type:"element",title:i18next.t("Solid arrows"),payload:{groupData:[{group:deepmerge(defaultGroupElementData,{}),children:[deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}}),deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})]}]},previewOptions:{width:179,height:110,icon:{src:SolidArrows,width:"59px",height:"29px"},iconSpace:"11px"}},outlineArrows$1={id:nanoid$1(),type:"element",title:i18next.t("Outline arrows"),payload:{groupData:[{group:deepmerge(defaultGroupElementData,{}),children:[deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}}),deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})]}]},previewOptions:{width:179,height:110,icon:{src:OutlineArrows,width:"59px",height:"29px"},iconSpace:"11px"}},verticalSolidArrows={id:nanoid$1(),type:"element",title:i18next.t("Vertical Solid arrows"),payload:{groupData:[{group:deepmerge(defaultGroupElementData,{}),children:[deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459" style="transform: rotate(90deg)"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}}),deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459" style="transform: rotate(90deg)"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})]}]},previewOptions:{width:179,height:110,icon:{src:VerticalSolidArrows,width:"59px",height:"29px"},iconSpace:"11px"}},verticalOutlineArrows={id:nanoid$1(),type:"element",title:i18next.t("Vertical Outline arrows"),payload:{groupData:[{group:deepmerge(defaultGroupElementData,{}),children:[deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"previous",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.971 25.459" style="transform: rotate(90deg)"><path id="arrow_4L" d="M0,12.024H0L12.02,0l3.536,3.536L7.069,12.023l8.487,8.487L12.02,24.044Z" transform="translate(0.707 0.707)" /></svg>'}}),deepmerge(defaultSymbolElementData,{size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#000"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},border:{default:{enable:!0,link:!0,style:"solid",top:{value:2,unit:"px"},right:{value:2,unit:"px"},bottom:{value:2,unit:"px"},left:{value:2,unit:"px"},color:"#AAA"}},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},actions:{[nanoid$1()]:{type:"gotoSection",trigger:"click",label:i18next.t("Go to {{section}}",{section:DocType.getLabel("section")}),options:{type:"next",to:""}}},options:{content:'<svg width="10px" height="18px" viewBox="0 0 16.973 25.459" style="transform: rotate(90deg)"><path id="arrow_4R" d="M0,20.509l8.488-8.487L0,3.536,3.536,0,15.557,12.021l0,0h0L3.535,24.044Z" transform="translate(0.708 0.707)" /></svg>'}})]}]},previewOptions:{width:179,height:110,icon:{src:VerticalOutlineArrows,width:"59px",height:"29px"},iconSpace:"11px"}},navigationSetArrowsAssetContent=[solidArrows$1,outlineArrows$1,verticalSolidArrows,verticalOutlineArrows],defaultGroups=[{id:"controls-set",label:i18next.t("Controls set"),items:setControlsAssetContent,columns:2,smallScreenColumns:1},{id:"navigation-arrows",label:i18next.t("Navigation arrows"),items:navigationArrowsAssetContent,columns:4,smallScreenColumns:3},{id:"navigation-set-arrows",label:i18next.t("Navigation Set arrows"),items:navigationSetArrowsAssetContent,columns:2,smallScreenColumns:2},{id:"navigation-bullets",label:i18next.t("Navigation bullets"),items:navigationBulletsAssetContent,columns:4,smallScreenColumns:3},{id:"circle-timer",label:i18next.t("Circle Timer"),items:circleTimerItemAssetContent,columns:4,smallScreenColumns:3},{id:"stories-progressbar",label:i18next.t("Stories Progressbar"),items:storiesProgressBarItemAssetContent,columns:2,smallScreenColumns:1},{id:"line-timer",label:i18next.t("Line timer"),items:lineTimersAssetContent,columns:4,smallScreenColumns:3},{id:"play-pause",label:i18next.t("Slideshow play and pause"),items:playAndPausesAssetContent,columns:2},{id:"scroll-indicator",label:i18next.t("Scroll down indicator"),items:scrollIndicatorsAssetContent,columns:4,smallScreenColumns:3}],popupGroups=[{id:"close-buttons",label:i18next.t("Close buttons"),items:closeButtonAssetContents("foreground"),columns:4,smallScreenColumns:3}],Controls=({className:ea})=>{const{t:na}=useTranslation(),ra=useSelector(getDocumentType),{activePanel:oa}=useActivePanel(),aa=useSelector(getSectionsWithType("teaser")),sa=oa==="teaser",la=ra==="popup"||ra==="banner-bar",ca=reactExports.useMemo(()=>{if(sa)return[{id:"teaser-close-buttons",label:i18next.t("Close buttons"),items:closeButtonAssetContents(aa[0].id),columns:4,smallScreenColumns:3}];if(la){const ua=[...defaultGroups];return ua.splice(1,0,...popupGroups),ua}return defaultGroups},[la,sa,aa]);return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"controls",children:jsxRuntimeExports.jsx(ScrollableContent$1,{children:ca.map(ua=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na(ua.label)}),jsxRuntimeExports.jsx(AssetsList$1,{items:ua.items,columns:ua.columns,smallScreenColumns:ua.smallScreenColumns,layout:"grid"})]},ua.id))})})},ControlsAssetTabContent=dt$1(Controls).withConfig({displayName:"Controls",componentId:"sc-1cb3nwq-0"})(["height:100%;width:100%;","{width:100%;&:first-of-type{margin-top:8px;}}"],ContentTitle),iframe="data:image/svg+xml,%3csvg%20width='59'%20height='45'%20viewBox='0%200%2059%2045'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%204C1%202.34315%202.34315%201%204%201H55C56.6569%201%2058%202.34315%2058%204V41C58%2042.6569%2056.6569%2044%2055%2044H4C2.34315%2044%201%2042.6569%201%2041V4Z'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%2026.7185L13.0007%2026.7178L13%2026.7172L19.7181%2020L20.7783%2021.0602L15.1201%2026.718L20.7783%2032.3755L19.7176%2033.4356L13%2026.7185Z'%20fill='%23AAAAAA'/%3e%3crect%20x='30.2484'%20y='18.5215'%20width='2'%20height='14.9481'%20transform='rotate(15%2030.2484%2018.5215)'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M37.5004%2032.3755L43.1582%2026.7181L37.5%2021.0602L38.5602%2020L45.2783%2026.7172L45.2778%2026.7176L45.2787%2026.7185L38.5606%2033.4356L37.5004%2032.3755Z'%20fill='%23AAAAAA'/%3e%3crect%20x='1'%20y='8'%20width='57'%20height='2'%20fill='%23AAAAAA'/%3e%3crect%20x='4'%20y='4'%20width='2'%20height='2'%20rx='1'%20fill='%23AAAAAA'/%3e%3crect%20x='7'%20y='4'%20width='2'%20height='2'%20rx='1'%20fill='%23AAAAAA'/%3e%3crect%20x='10'%20y='4'%20width='2'%20height='2'%20rx='1'%20fill='%23AAAAAA'/%3e%3c/svg%3e",shortcode="data:image/svg+xml,%3csvg%20width='55'%20height='41'%20viewBox='0%200%2055%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%204C1%202.34315%202.34315%201%204%201H51C52.6569%201%2054%202.34315%2054%204V37C54%2038.6569%2052.6569%2040%2051%2040H4C2.34315%2040%201%2038.6569%201%2037V4Z'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cmask%20id='path-2-inside-1_3791_19609'%20fill='white'%3e%3cpath%20d='M16%2012H21V29H16V12Z'/%3e%3c/mask%3e%3cpath%20d='M16%2012V10H14V12H16ZM16%2029H14V31H16V29ZM16%2014H21V10H16V14ZM21%2027H16V31H21V27ZM18%2029V12H14V29H18Z'%20fill='%23AAAAAA'%20mask='url(%23path-2-inside-1_3791_19609)'/%3e%3crect%20x='28.5'%20y='13'%20width='2'%20height='14.9481'%20transform='rotate(15%2028.5%2013)'%20fill='%23AAAAAA'/%3e%3cmask%20id='path-5-inside-2_3791_19609'%20fill='white'%3e%3cpath%20d='M34%2012H39V29H34V12Z'/%3e%3c/mask%3e%3cpath%20d='M39%2012H41V10H39V12ZM39%2029V31H41V29H39ZM34%2014H39V10H34V14ZM37%2012V29H41V12H37ZM39%2027H34V31H39V27Z'%20fill='%23AAAAAA'%20mask='url(%23path-5-inside-2_3791_19609)'/%3e%3c/svg%3e",formIcon="data:image/svg+xml,%3csvg%20width='55'%20height='41'%20viewBox='0%200%2055%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%204C1%202.34315%202.34315%201%204%201H51C52.6569%201%2054%202.34315%2054%204V37C54%2038.6569%2052.6569%2040%2051%2040H4C2.34315%2040%201%2038.6569%201%2037V4Z'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%207C6%205.89543%206.89543%205%208%205H35C36.1046%205%2037%205.89543%2037%207V8C37%209.10457%2036.1046%2010%2035%2010H8C6.89543%2010%206%209.10457%206%208V7Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2014C6%2012.8954%206.89543%2012%208%2012H35C36.1046%2012%2037%2012.8954%2037%2014V15C37%2016.1046%2036.1046%2017%2035%2017H8C6.89543%2017%206%2016.1046%206%2015V14Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2034.5C6%2033.6716%206.67157%2033%207.5%2033H17.5C18.3284%2033%2019%2033.6716%2019%2034.5C19%2035.3284%2018.3284%2036%2017.5%2036H7.5C6.67157%2036%206%2035.3284%206%2034.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%2021C6%2019.8954%206.89543%2019%208%2019H47C48.1046%2019%2049%2019.8954%2049%2021V28C49%2029.1046%2048.1046%2030%2047%2030H8C6.89543%2030%206%2029.1046%206%2028V21Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",couponIcon="data:image/svg+xml,%3csvg%20width='55'%20height='35'%20viewBox='0%200%2055%2035'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-inside-1_4185_19195'%20fill='white'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.8406%200L16.2783%204.74831L10.716%200H4C1.79086%200%200%201.79086%200%204V31C0%2033.2091%201.79086%2035%204%2035H10.2886L16.2783%2029.8868L22.268%2035H51C53.2091%2035%2055%2033.2091%2055%2031V4C55%201.79086%2053.2091%200%2051%200H21.8406Z'/%3e%3c/mask%3e%3cpath%20d='M16.2783%204.74831L14.9798%206.26944L16.2783%207.37794L17.5768%206.26944L16.2783%204.74831ZM21.8406%200V-2H21.1031L20.5421%20-1.52113L21.8406%200ZM10.716%200L12.0145%20-1.52113L11.4536%20-2H10.716V0ZM10.2886%2035V37H11.0262L11.5871%2036.5211L10.2886%2035ZM16.2783%2029.8868L17.5768%2028.3657L16.2783%2027.2572L14.9798%2028.3657L16.2783%2029.8868ZM22.268%2035L20.9695%2036.5211L21.5305%2037H22.268V35ZM17.5768%206.26944L23.1392%201.52113L20.5421%20-1.52113L14.9798%203.22719L17.5768%206.26944ZM9.41748%201.52113L14.9798%206.26944L17.5768%203.22719L12.0145%20-1.52113L9.41748%201.52113ZM4%202H10.716V-2H4V2ZM2%204C2%202.89543%202.89543%202%204%202V-2C0.686292%20-2%20-2%200.686291%20-2%204H2ZM2%2031V4H-2V31H2ZM4%2033C2.89543%2033%202%2032.1046%202%2031H-2C-2%2034.3137%200.686289%2037%204%2037V33ZM10.2886%2033H4V37H10.2886V33ZM11.5871%2036.5211L17.5768%2031.408L14.9798%2028.3657L8.99008%2033.4789L11.5871%2036.5211ZM14.9798%2031.408L20.9695%2036.5211L23.5666%2033.4789L17.5768%2028.3657L14.9798%2031.408ZM51%2033H22.268V37H51V33ZM53%2031C53%2032.1046%2052.1046%2033%2051%2033V37C54.3137%2037%2057%2034.3137%2057%2031H53ZM53%204V31H57V4H53ZM51%202C52.1046%202%2053%202.89543%2053%204H57C57%200.686291%2054.3137%20-2%2051%20-2V2ZM21.8406%202H51V-2H21.8406V2Z'%20fill='%23AAAAAA'%20mask='url(%23path-1-inside-1_4185_19195)'/%3e%3cline%20x1='16'%20y1='6'%20x2='16'%20y2='28'%20stroke='%23AAAAAA'%20stroke-width='2'%20stroke-dasharray='5%203'/%3e%3cpath%20d='M30.6468%2015.2578C32.6395%2015.2513%2034.2646%2013.6156%2034.2581%2011.6229C34.2515%209.63016%2032.6158%208.00509%2030.6231%208.0116C28.6304%208.01811%2027.0053%209.65384%2027.0118%2011.6465C27.0184%2013.6393%2028.6411%2015.2644%2030.6468%2015.2578ZM30.6295%209.95255C31.5611%209.94951%2032.3141%2010.6976%2032.3171%2011.6292C32.3202%2012.5609%2031.5721%2013.3138%2030.6404%2013.3169C29.7088%2013.3199%2028.9558%2012.5719%2028.9528%2011.6402C28.9497%2010.7085%2029.6978%209.9556%2030.6295%209.95255Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M41.4112%2018.7421C39.4185%2018.7486%2037.7934%2020.3843%2037.7999%2022.377C37.8064%2024.3697%2039.4422%2025.9948%2041.4349%2025.9883C43.4276%2025.9818%2045.0527%2024.3461%2045.0461%2022.3533C45.0396%2020.3606%2043.4039%2018.7356%2041.4112%2018.7421ZM41.4285%2024.0473C40.4969%2024.0504%2039.7439%2023.3023%2039.7409%2022.3707C39.7378%2021.439%2040.4859%2020.6861%2041.4175%2020.683C42.3492%2020.68%2043.1022%2021.428%2043.1052%2022.3597C43.1082%2023.2913%2042.3602%2024.0443%2041.4285%2024.0473Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M28.0519%2025.0369C28.2466%2025.2303%2028.4928%2025.3201%2028.7386%2025.3193C28.9845%2025.3185%2029.23%2025.2271%2029.4235%2025.0324L44.0105%2010.3498C44.3845%209.97331%2044.3824%209.35221%2044.006%208.97818C43.6295%208.60416%2043.0084%208.60619%2042.6344%208.98266L28.0474%2023.6653C27.6604%2024.0418%2027.6624%2024.65%2028.0519%2025.0369Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",lottie="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='400'%20height='400'%20fill='none'%20id='lottiefiles-logo'%3e%3cclipPath%20id='a'%3e%3cpath%20d='M0%200h400v400H0z'%3e%3c/path%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%2300ddb3'%20d='M298.783%200H101.217C45.317%200%200%2045.317%200%20101.217v197.566C0%20354.683%2045.316%20400%20101.217%20400h197.566C354.683%20400%20400%20354.683%20400%20298.783V101.217C400%2045.317%20354.683%200%20298.783%200z'%3e%3c/path%3e%3cpath%20fill='%23fff'%20d='M304.035%2089.598c-68.951%200-94.382%2049.158-114.885%2088.663l-13.486%2025.248c-21.74%2041.899-37.964%2067.35-79.781%2067.35a19.756%2019.756%200%200%200-13.995%205.784%2019.769%2019.769%200%200%200-4.291%2021.56%2019.758%2019.758%200%200%200%2010.713%2010.702%2019.756%2019.756%200%200%200%207.573%201.499c68.951%200%2094.382-49.158%20114.885-88.663l13.405-25.248c21.74-41.899%2037.964-67.35%2079.781-67.35a19.763%2019.763%200%200%200%2018.286-12.201%2019.77%2019.77%200%200%200-4.291-21.56%2019.763%2019.763%200%200%200-13.995-5.784z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",hoverSwitchIcon="data:image/svg+xml,%3csvg%20width='61'%20height='43'%20viewBox='0%200%2061%2043'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='14.5'%20y='1.5'%20width='45'%20height='34'%20rx='4.5'%20stroke='%23888888'%20stroke-width='3'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.8027%203H6C4.34315%203%203%204.34315%203%206V31C3%2032.6569%204.34315%2034%206%2034H10.8027C11.5982%2035.3751%2012.9237%2036.4053%2014.5%2036.811C14.0206%2036.9344%2013.518%2037%2013%2037H6C2.68629%2037%200%2034.3137%200%2031V6C0%202.68629%202.68629%200%206%200H13C13.518%200%2014.0206%200.0656296%2014.5%200.189026C12.9237%200.594726%2011.5982%201.62486%2010.8027%203Z'%20fill='%23414141'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.0358%2019.8184L35.0717%2026.7369H27L31.0358%2019.8184Z'%20fill='%23888888'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M39.1344%2015.7822L46.053%2026.7366H32.2158L39.1344%2015.7822Z'%20fill='%23888888'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M34.4083%2015.342C36.1596%2015.342%2037.5793%2013.9223%2037.5793%2012.171C37.5793%2010.4197%2036.1596%209%2034.4083%209C32.657%209%2031.2373%2010.4197%2031.2373%2012.171C31.2373%2013.9223%2032.657%2015.342%2034.4083%2015.342Z'%20fill='%23888888'/%3e%3cpath%20d='M49%2026.1364C49%2025.7013%2049.5171%2025.4738%2049.8378%2025.7677L59.159%2034.3094C59.4802%2034.6037%2059.2975%2035.1395%2058.8634%2035.1762L55.3933%2035.4699C55.048%2035.4991%2054.8364%2035.8624%2054.9813%2036.1772L57.4968%2041.6405C57.6132%2041.8934%2057.5006%2042.1927%2057.2464%2042.3062L56.1505%2042.7952C55.8975%2042.9082%2055.6008%2042.7938%2055.4891%2042.5402L53.0423%2036.9847C52.9035%2036.6696%2052.4951%2036.5858%2052.2434%2036.8209L49.8413%2039.0643C49.5217%2039.3628%2049%2039.1362%2049%2038.6989V26.1364Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",name="data:image/svg+xml,%3csvg%20width='66'%20height='13'%20viewBox='0%200%2066%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203C7%204.65685%205.65685%206%204%206C2.34315%206%201%204.65685%201%203C1%201.34315%202.34315%200%204%200C5.65685%200%207%201.34315%207%203Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M3.2%207C1.43269%207%200%208.34315%200%2010V13H8V10C8%208.34315%206.56731%207%204.8%207H3.2Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M19.5%205C18.6716%205%2018%205.67157%2018%206.5C18%207.32843%2018.6716%208%2019.5%208H40.5C41.3284%208%2042%207.32843%2042%206.5C42%205.67157%2041.3284%205%2040.5%205H19.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%203C13%201.34315%2014.3431%200%2016%200H63C64.6569%200%2066%201.34315%2066%203V10C66%2011.6569%2064.6569%2013%2063%2013H16C14.3431%2013%2013%2011.6569%2013%2010V3ZM16%202H63C63.5523%202%2064%202.44772%2064%203V10C64%2010.5523%2063.5523%2011%2063%2011H16C15.4477%2011%2015%2010.5523%2015%2010V3C15%202.44772%2015.4477%202%2016%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",address="data:image/svg+xml,%3csvg%20width='68'%20height='13'%20viewBox='0%200%2068%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%200C2.22222%200%200%202.16216%200%204.86487C0%208.21622%201.88889%2011.1892%204.72222%2012.9189C4.88889%2013.027%205.11111%2013.027%205.33333%2012.9189C8.11111%2011.1351%2010%208.21622%2010%204.86487C10%202.16216%207.77778%200%205%200ZM5%207.02703C3.77778%207.02703%202.77778%206.05405%202.77778%204.86487C2.77778%203.67568%203.77778%202.7027%205%202.7027C6.22222%202.7027%207.22222%203.67568%207.22222%204.86487C7.22222%206.05405%206.22222%207.02703%205%207.02703Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M21.5%205C20.6716%205%2020%205.67157%2020%206.5C20%207.32843%2020.6716%208%2021.5%208H42.5C43.3284%208%2044%207.32843%2044%206.5C44%205.67157%2043.3284%205%2042.5%205H21.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%203C15%201.34315%2016.3431%200%2018%200H65C66.6569%200%2068%201.34315%2068%203V10C68%2011.6569%2066.6569%2013%2065%2013H18C16.3431%2013%2015%2011.6569%2015%2010V3ZM18%202H65C65.5523%202%2066%202.44772%2066%203V10C66%2010.5523%2065.5523%2011%2065%2011H18C17.4477%2011%2017%2010.5523%2017%2010V3C17%202.44772%2017.4477%202%2018%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",email="data:image/svg+xml,%3csvg%20width='73'%20height='13'%20viewBox='0%200%2073%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%200H2.5C1.125%200%200%201.3%200%202.88889V10.1111C0%2011.7%201.125%2013%202.5%2013H12.5C13.875%2013%2015%2011.7%2015%2010.1111V2.88889C15%201.3%2013.875%200%2012.5%200ZM13.5%204.18889L8.5625%208.01667C8.25%208.23333%207.875%208.37778%207.5%208.37778C7.125%208.37778%206.75%208.23333%206.4375%208.01667L1.5%204.18889C1.25%203.97222%201.1875%203.53889%201.375%203.17778C1.5625%202.88889%201.9375%202.81667%202.25%203.03333L7.1875%206.86111C7.375%207.00556%207.6875%207.00556%207.875%206.86111L12.8125%203.03333C13.125%202.81667%2013.5%202.88889%2013.6875%203.25C13.8125%203.53889%2013.75%203.97222%2013.5%204.18889Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M26.5%205C25.6716%205%2025%205.67157%2025%206.5C25%207.32843%2025.6716%208%2026.5%208H47.5C48.3284%208%2049%207.32843%2049%206.5C49%205.67157%2048.3284%205%2047.5%205H26.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20%203C20%201.34315%2021.3431%200%2023%200H70C71.6569%200%2073%201.34315%2073%203V10C73%2011.6569%2071.6569%2013%2070%2013H23C21.3431%2013%2020%2011.6569%2020%2010V3ZM23%202H70C70.5523%202%2071%202.44772%2071%203V10C71%2010.5523%2070.5523%2011%2070%2011H23C22.4477%2011%2022%2010.5523%2022%2010V3C22%202.44772%2022.4477%202%2023%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",checkbox="data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%202H6C3.79086%202%202%203.79086%202%206V15C2%2017.2091%203.79086%2019%206%2019H15C17.2091%2019%2019%2017.2091%2019%2015V6C19%203.79086%2017.2091%202%2015%202ZM6%200C2.68629%200%200%202.68629%200%206V15C0%2018.3137%202.68629%2021%206%2021H15C18.3137%2021%2021%2018.3137%2021%2015V6C21%202.68629%2018.3137%200%2015%200H6Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M15.4245%206.41448C14.9708%205.9608%2014.2353%205.9608%2013.7816%206.41448L8.85426%2011.3418L7.21204%209.69957C6.75839%209.24592%206.02289%209.24592%205.56924%209.69957C5.11559%2010.1532%205.11559%2010.8887%205.56924%2011.3424L8.01124%2013.7844C8.01826%2013.7918%208.0254%2013.7991%208.03265%2013.8063C8.41815%2014.1918%209.00717%2014.2498%209.45384%2013.9802C9.53295%2013.9324%209.6076%2013.8745%209.67586%2013.8062C9.67902%2013.803%209.68216%2013.7999%209.68527%2013.7967L15.4245%208.05743C15.8782%207.60374%2015.8782%206.86817%2015.4245%206.41448Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",custom="data:image/svg+xml,%3csvg%20width='57'%20height='18'%20viewBox='0%200%2057%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.0486%2011.0488C11.6644%2011.0372%2011.2904%2010.9864%2010.9304%2010.9004C10.8571%2010.9891%2010.7775%2011.0742%2010.6916%2011.1551L4.6566%2016.8364C3.54558%2017.8823%201.79706%2017.8295%200.751156%2016.7185C-0.294743%2015.6075%20-0.241954%2013.859%200.869066%2012.8131L6.90408%207.13184L6.9226%207.11456C6.75557%206.55973%206.67381%205.96925%206.69224%205.35893C6.7842%202.31285%209.33737%20-0.0893704%2012.3821%200.0025526C13.1615%200.0260826%2013.9118%200.207987%2014.6088%200.544854L10.3859%204.52029L13.2262%207.53747L17.3991%203.61045C17.6462%204.27789%2017.76%204.97775%2017.7385%205.6924C17.6465%208.73848%2015.0933%2011.1408%2012.0486%2011.0488ZM11.1297%2016.4804C12.2139%2016.2985%2013.1009%2015.5351%2013.459%2014.5218H18.6297H53.6297C54.182%2014.5218%2054.6297%2014.0741%2054.6297%2013.5218V6.52184C54.6297%205.96956%2054.182%205.52184%2053.6297%205.52184H21.6297V4.52184C21.6297%204.17121%2021.5696%203.83462%2021.459%203.52184H53.6297C55.2866%203.52184%2056.6297%204.86499%2056.6297%206.52184V13.5218C56.6297%2015.1787%2055.2866%2016.5218%2053.6297%2016.5218H11.6297C11.4594%2016.5218%2011.2923%2016.5076%2011.1297%2016.4804ZM20.6297%2010.0218C20.6297%209.19342%2021.3013%208.52184%2022.1297%208.52184H43.1297C43.9582%208.52184%2044.6297%209.19342%2044.6297%2010.0218C44.6297%2010.8503%2043.9582%2011.5218%2043.1297%2011.5218H22.1297C21.3013%2011.5218%2020.6297%2010.8503%2020.6297%2010.0218Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",message="data:image/svg+xml,%3csvg%20width='52'%20height='36'%20viewBox='0%200%2052%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%206C6.44772%206%206%206.44772%206%207C6%207.55228%206.44771%208%207%208H45C45.5523%208%2046%207.55228%2046%207C46%206.44772%2045.5523%206%2045%206H7ZM7%2011C6.44772%2011%206%2011.4477%206%2012C6%2012.5523%206.44771%2013%207%2013H42C42.5523%2013%2043%2012.5523%2043%2012C43%2011.4477%2042.5523%2011%2042%2011H7ZM6%2017C6%2016.4477%206.44772%2016%207%2016H45C45.5523%2016%2046%2016.4477%2046%2017C46%2017.5523%2045.5523%2018%2045%2018H7C6.44771%2018%206%2017.5523%206%2017ZM7%2021C6.44772%2021%206%2021.4477%206%2022C6%2022.5523%206.44772%2023%207%2023H23C23.5523%2023%2024%2022.5523%2024%2022C24%2021.4477%2023.5523%2021%2023%2021H7Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M43.8547%2031.1701L47.3072%2031.3069L47.1704%2027.8544L43.8547%2031.1701Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%204C0%201.79086%201.79086%200%204%200H48C50.2091%200%2052%201.79086%2052%204V32C52%2034.2091%2050.2091%2036%2048%2036H4C1.79086%2036%200%2034.2091%200%2032V4ZM4%202H48C49.1046%202%2050%202.89543%2050%204V32C50%2033.1046%2049.1046%2034%2048%2034H4C2.89543%2034%202%2033.1046%202%2032V4C2%202.89543%202.89543%202%204%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",phone="data:image/svg+xml,%3csvg%20width='71'%20height='13'%20viewBox='0%200%2071%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.9797%209.82632L12.3894%2012.3857C12.3064%2012.7475%2011.9884%2013.0007%2011.616%2013.0007C5.21016%2013.0001%200%207.78999%200%201.38394C0%201.01171%200.253119%200.693313%200.614961%200.610794L3.17434%200.020462C3.54707%20-0.0659169%203.92793%200.12756%204.08281%200.48054L5.26398%203.23542C5.40206%203.55992%205.30893%203.93798%205.03598%204.16091L3.66895%205.25855C4.53172%207.01609%205.9607%208.44507%207.71875%209.30835L8.83797%207.94234C9.05856%207.66863%209.43947%207.57392%209.76396%207.71446L12.5188%208.89537C12.8502%209.06968%2013.066%209.45562%2012.9797%209.82632Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M24.5%205C23.6716%205%2023%205.67157%2023%206.5C23%207.32843%2023.6716%208%2024.5%208H45.5C46.3284%208%2047%207.32843%2047%206.5C47%205.67157%2046.3284%205%2045.5%205H24.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%203C18%201.34315%2019.3431%200%2021%200H68C69.6569%200%2071%201.34315%2071%203V10C71%2011.6569%2069.6569%2013%2068%2013H21C19.3431%2013%2018%2011.6569%2018%2010V3ZM21%202H68C68.5523%202%2069%202.44772%2069%203V10C69%2010.5523%2068.5523%2011%2068%2011H21C20.4477%2011%2020%2010.5523%2020%2010V3C20%202.44772%2020.4477%202%2021%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",submit="data:image/svg+xml,%3csvg%20width='80'%20height='25'%20viewBox='0%200%2080%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%2012.5C1.5%206.42487%206.42487%201.5%2012.5%201.5H67.5C73.5751%201.5%2078.5%206.42487%2078.5%2012.5C78.5%2018.5751%2073.5751%2023.5%2067.5%2023.5H12.5C6.42487%2023.5%201.5%2018.5751%201.5%2012.5Z'%20stroke='%23AAAAAA'%20stroke-width='3'/%3e%3cpath%20d='M23.1445%2015.1201C23.3496%2014.8076%2023.4521%2014.4398%2023.4521%2014.0166C23.4521%2013.6423%2023.3822%2013.3298%2023.2422%2013.0791C23.1022%2012.8252%2022.902%2012.6055%2022.6416%2012.4199C22.3844%2012.2311%2022.0736%2012.0505%2021.709%2011.8779C21.4095%2011.7347%2021.1589%2011.6094%2020.957%2011.502C20.7585%2011.3945%2020.6087%2011.2839%2020.5078%2011.1699C20.4102%2011.0527%2020.3613%2010.9095%2020.3613%2010.7402C20.3613%2010.597%2020.3955%2010.4717%2020.4639%2010.3643C20.5322%2010.2536%2020.6331%2010.1689%2020.7666%2010.1104C20.9001%2010.0485%2021.0612%2010.0176%2021.25%2010.0176C21.5202%2010.0176%2021.7855%2010.055%2022.0459%2010.1299C22.3063%2010.2015%2022.6009%2010.304%2022.9297%2010.4375L23.418%209.26074C23.0501%209.09798%2022.6969%208.97428%2022.3584%208.88965C22.0231%208.80176%2021.6699%208.75781%2021.2988%208.75781C20.804%208.75781%2020.3743%208.83919%2020.0098%209.00195C19.6484%209.16146%2019.3701%209.39258%2019.1748%209.69531C18.9795%209.99805%2018.8818%2010.3626%2018.8818%2010.7891C18.8818%2011.1146%2018.9372%2011.3945%2019.0479%2011.6289C19.1618%2011.86%2019.3066%2012.057%2019.4824%2012.2197C19.6582%2012.3825%2019.8438%2012.5208%2020.0391%2012.6348C20.2344%2012.7454%2020.415%2012.8398%2020.5811%2012.918C20.8447%2013.0449%2021.0807%2013.1637%2021.2891%2013.2744C21.5007%2013.3851%2021.6667%2013.5039%2021.7871%2013.6309C21.9076%2013.7578%2021.9678%2013.9108%2021.9678%2014.0898C21.9678%2014.2363%2021.9336%2014.3665%2021.8652%2014.4805C21.7969%2014.5944%2021.6862%2014.6839%2021.5332%2014.749C21.3835%2014.8141%2021.1849%2014.8467%2020.9375%2014.8467C20.5794%2014.8467%2020.2181%2014.7865%2019.8535%2014.666C19.4889%2014.5456%2019.1374%2014.4105%2018.7988%2014.2607V15.667C18.9941%2015.7614%2019.1992%2015.8411%2019.4141%2015.9062C19.6322%2015.9681%2019.8584%2016.0153%2020.0928%2016.0479C20.3304%2016.0804%2020.5729%2016.0967%2020.8203%2016.0967C21.3802%2016.0967%2021.8555%2016.012%2022.2461%2015.8428C22.64%2015.6735%2022.9395%2015.4326%2023.1445%2015.1201Z'%20fill='white'/%3e%3cpath%20d='M31.5566%208.85938V13.4785C31.5566%2013.9701%2031.4476%2014.4144%2031.2295%2014.8115C31.0146%2015.2054%2030.6875%2015.5179%2030.248%2015.749C29.8118%2015.9801%2029.2617%2016.0957%2028.5977%2016.0957C27.6536%2016.0957%2026.9342%2015.8548%2026.4395%2015.373C25.9447%2014.8913%2025.6973%2014.2533%2025.6973%2013.459V8.85938H27.2061V13.2295C27.2061%2013.8187%2027.3265%2014.2321%2027.5674%2014.4697C27.8083%2014.7074%2028.1647%2014.8262%2028.6367%2014.8262C28.9688%2014.8262%2029.2373%2014.7692%2029.4424%2014.6553C29.6507%2014.5413%2029.8037%2014.3656%2029.9014%2014.1279C29.999%2013.8903%2030.0479%2013.5876%2030.0479%2013.2197V8.85938H31.5566Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M36.5264%208.85938H34.3047V15.998H36.9756C37.516%2015.998%2037.9814%2015.9167%2038.3721%2015.7539C38.766%2015.5879%2039.0687%2015.3503%2039.2803%2015.041C39.4919%2014.7318%2039.5977%2014.3607%2039.5977%2013.9277C39.5977%2013.5534%2039.5391%2013.2539%2039.4219%2013.0293C39.3079%2012.8014%2039.1549%2012.6289%2038.9629%2012.5117C38.7708%2012.3913%2038.556%2012.3066%2038.3184%2012.2578V12.209C38.5527%2012.1667%2038.7513%2012.0755%2038.9141%2011.9355C39.0768%2011.7956%2039.2005%2011.6165%2039.2852%2011.3984C39.373%2011.1803%2039.417%2010.9362%2039.417%2010.666C39.417%209.99544%2039.1729%209.52669%2038.6846%209.25977C38.1963%208.99284%2037.4769%208.85938%2036.5264%208.85938ZM36.6973%2011.6865H35.8184V10.0996H36.6143C37.0472%2010.0996%2037.363%2010.1598%2037.5615%2010.2803C37.7633%2010.3975%2037.8643%2010.5928%2037.8643%2010.8662C37.8643%2011.1364%2037.7796%2011.3415%2037.6104%2011.4814C37.4411%2011.6182%2037.1367%2011.6865%2036.6973%2011.6865ZM35.8184%2014.748V12.8877H36.7559C37.0781%2012.8877%2037.3304%2012.9251%2037.5127%2013C37.6982%2013.0749%2037.8301%2013.179%2037.9082%2013.3125C37.9863%2013.446%2038.0254%2013.6006%2038.0254%2013.7764C38.0254%2014.0726%2037.9359%2014.3086%2037.7568%2014.4844C37.5778%2014.6602%2037.2604%2014.748%2036.8047%2014.748H35.8184Z'%20fill='white'/%3e%3cpath%20d='M45.0459%2015.998L43.3271%2010.3975H43.2832L43.3125%2011.0029C43.3288%2011.2699%2043.3434%2011.5547%2043.3564%2011.8574C43.3695%2012.1602%2043.376%2012.4336%2043.376%2012.6777V15.998H42.0234V8.85938H44.084L45.7734%2014.3184H45.8027L47.5947%208.85938H49.6553V15.998H48.2441V12.6191C48.2441%2012.3945%2048.2474%2012.1357%2048.2539%2011.8428C48.2637%2011.5498%2048.2751%2011.2715%2048.2881%2011.0078L48.3174%2010.4072H48.2734L46.4326%2015.998H45.0459Z'%20fill='white'/%3e%3cpath%20d='M52.457%208.85938V15.998H53.9707V8.85938H52.457Z'%20fill='white'/%3e%3cpath%20d='M58.0078%2015.998H59.5215V10.1191H61.46V8.85938H56.0693V10.1191H58.0078V15.998Z'%20fill='white'/%3e%3c/svg%3e",formMessage="data:image/svg+xml,%3csvg%20width='91'%20height='11'%20viewBox='0%200%2091%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='15.771'%20y='4'%20width='24'%20height='3'%20rx='1.5'%20fill='%23AAAAAA'/%3e%3crect%20x='66.771'%20y='4'%20width='24'%20height='3'%20rx='1.5'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M50.771%201C50.771%200.447715%2051.2187%200%2051.771%200H60.771C61.3233%200%2061.771%200.447715%2061.771%201V10C61.771%2010.5523%2061.3233%2011%2060.771%2011H51.771C51.2187%2011%2050.771%2010.5523%2050.771%2010V1ZM55.271%202C55.271%201.44772%2055.7187%201%2056.271%201C56.8233%201%2057.271%201.44772%2057.271%202V6C57.271%206.55228%2056.8233%207%2056.271%207C55.7187%207%2055.271%206.55228%2055.271%206V2ZM56.271%208C55.7187%208%2055.271%208.44771%2055.271%209C55.271%209.55229%2055.7187%2010%2056.271%2010C56.8233%2010%2057.271%209.55229%2057.271%209C57.271%208.44771%2056.8233%208%2056.271%208Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.5%200C2.46243%200%200%202.46243%200%205.5C0%208.53757%202.46243%2011%205.5%2011C8.53757%2011%2011%208.53757%2011%205.5C11%202.46243%208.53757%200%205.5%200ZM7.59654%202.49949C7.9841%202.10608%208.61245%202.10608%209%202.4995C9.38755%202.89291%209.38755%203.53076%209%203.92418L4.80669%208.69767L4.79865%208.70592C4.74033%208.76512%204.67657%208.81541%204.60899%208.85679C4.22743%209.09059%203.72427%209.04034%203.39497%208.70606C3.38877%208.69977%203.38267%208.69341%203.37667%208.687L1.29064%206.56941C0.90312%206.17603%200.90312%205.53824%201.29064%205.14485C1.67816%204.75147%202.30645%204.75147%202.69397%205.14485L4.09681%206.56891L7.59654%202.49949Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",website="data:image/svg+xml,%3csvg%20width='71'%20height='13'%20viewBox='0%200%2071%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.5%205C23.6716%205%2023%205.67157%2023%206.5C23%207.32843%2023.6716%208%2024.5%208H45.5C46.3284%208%2047%207.32843%2047%206.5C47%205.67157%2046.3284%205%2045.5%205H24.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%203C18%201.34315%2019.3431%200%2021%200H68C69.6569%200%2071%201.34315%2071%203V10C71%2011.6569%2069.6569%2013%2068%2013H21C19.3431%2013%2018%2011.6569%2018%2010V3ZM21%202H68C68.5523%202%2069%202.44772%2069%203V10C69%2010.5523%2068.5523%2011%2068%2011H21C20.4477%2011%2020%2010.5523%2020%2010V3C20%202.44772%2020.4477%202%2021%202Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%2013C10.0899%2013%2013%2010.0899%2013%206.5C13%202.91016%2010.0899%201.20081e-05%206.50002%200C6.50001%200%206.50003%200%206.50002%200C2.91017%200%200%202.91015%200%206.5C0%2010.0899%202.91015%2013%206.5%2013ZM4.96965%201.57577C3.07656%202.16346%201.65074%203.81277%201.38828%205.82759H3.5331C3.66925%204.31192%204.16387%202.85522%204.96965%201.57577ZM8.0304%201.57579C8.83617%202.85523%209.33079%204.31192%209.46694%205.82759H11.6117C11.3493%203.81279%209.92346%202.16349%208.0304%201.57579ZM8.11581%205.82759C7.95993%204.3379%207.40092%202.91892%206.50002%201.72372C5.59912%202.91892%205.04012%204.3379%204.88424%205.82759H8.11581ZM4.88424%207.17241H8.11581C7.95993%208.6621%207.40092%2010.0811%206.50002%2011.2763C5.59912%2010.0811%205.04012%208.6621%204.88424%207.17241ZM3.5331%207.17241H1.38828C1.65074%209.18723%203.07656%2010.8365%204.96966%2011.4242C4.16388%2010.1448%203.66925%208.68808%203.5331%207.17241ZM8.0304%2011.4242C8.83617%2010.1448%209.33079%208.68808%209.46694%207.17241H11.6117C11.3493%209.18721%209.92346%2010.8365%208.0304%2011.4242Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",hidden="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='73'%20height='13'%20viewBox='0%200%2073%2013'%20fill='none'%3e%3cpath%20d='M26.5%205C25.6716%205%2025%205.67157%2025%206.5C25%207.32843%2025.6716%208%2026.5%208H47.5C48.3284%208%2049%207.32843%2049%206.5C49%205.67157%2048.3284%205%2047.5%205H26.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20%203C20%201.34315%2021.3431%200%2023%200H70C71.6569%200%2073%201.34315%2073%203V10C73%2011.6569%2071.6569%2013%2070%2013H23C21.3431%2013%2020%2011.6569%2020%2010V3ZM23%202H70C70.5523%202%2071%202.44772%2071%203V10C71%2010.5523%2070.5523%2011%2070%2011H23C22.4477%2011%2022%2010.5523%2022%2010V3C22%202.44772%2022.4477%202%2023%202Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M1.26229%200.258243C1.59962%20-0.0861866%202.14672%20-0.0859756%202.48418%200.258243L3.64346%201.44241C4.78055%200.779716%206.09628%200.400626%207.49899%200.40059C11.0667%200.40059%2014.0751%202.84827%2015%206.18937C14.5447%207.8336%2013.5834%209.25933%2012.3007%2010.2855L13.4832%2011.4934C13.8207%2011.838%2013.8206%2012.3967%2013.4832%2012.7415C13.1458%2013.0862%2012.5988%2013.0862%2012.2613%2012.7415L10.786%2011.2344C9.78687%2011.7098%208.67383%2011.9782%207.49899%2011.9782C3.93281%2011.9781%200.925262%209.53039%200%206.18937C0.398066%204.75156%201.18169%203.4786%202.2297%202.49557L1.26229%201.50739C0.924819%201.16268%200.924819%200.602953%201.26229%200.258243ZM3.45261%203.74472C2.72973%204.40604%202.16315%205.2425%201.81668%206.18834C2.67776%208.54027%204.89959%2010.2121%207.49899%2010.2122C8.185%2010.2122%208.84393%2010.0935%209.45907%209.87905L8.47751%208.87643C8.17429%209.00352%207.843%209.07549%207.49495%209.07551C6.06329%209.07551%204.90286%207.89%204.90272%206.42765C4.90272%206.07209%204.97117%205.73273%205.0956%205.42297L3.45261%203.74472ZM7.49899%202.16549C6.57867%202.16552%205.70596%202.37525%204.92393%202.75035L6.24882%204.10368C6.61846%203.89644%207.04353%203.77979%207.49495%203.77979C8.92661%203.77989%2010.0872%204.96524%2010.0872%206.42765C10.0871%206.88843%209.97073%207.32109%209.76808%207.69846L11.0667%209.02497C12.0183%208.31668%2012.7618%207.33399%2013.1813%206.18834C12.3201%203.83766%2010.0995%202.16549%207.49899%202.16549Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",defaultInputElementData$1={children:[],type:"form:input",locked:!1,visible:{default:!0},wrap:!0},defaultHiddenInputElementData={children:[],type:"hiddenInput",locked:!1,visible:{default:!0},wrap:!0},formNameElementData=deepmerge(defaultInputElementData$1,{options:{type:"text",label:i18next.t("Name"),showLabel:!0,attributes:{name:"name",autoComplete:"name"}}}),formEmailElementData=deepmerge(defaultInputElementData$1,{options:{type:"email",label:i18next.t("Email"),showLabel:!0,attributes:{name:"email",required:!0}}}),formMessageElementData=deepmerge(defaultTextElementData$2,{type:"form:message",options:{errorTextColor:"#FF0000",showSuccessMessage:!0}}),formHiddenInputElementData={id:nanoid$1(),type:"form-element",title:i18next.t("Hidden Input"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultHiddenInputElementData,{options:{name:"hiddenInput"}})},previewOptions:{width:179,height:110,icon:{src:hidden,width:"73px",height:"13px"},iconAboveSpace:"20px"}},formSubmitElementData=deepmerge(defaultButtonElementAssetData,{type:"form:submit",options:{type:"submit",content:i18next.t("Submit")},styles:{backgroundColor:{default:"#4980F5"},typography:{default:{color:"#FFF"}},hover:{backgroundColor:{default:"#222222"},typography:{default:{color:"#FFF"}}},corner:{default:{topLeft:{value:6,unit:"px"},topRight:{value:6,unit:"px"},bottomRight:{value:6,unit:"px"},bottomLeft:{value:6,unit:"px"},link:!0}}}}),customElementsAssetContents$1=[{id:nanoid$1(),type:"form-element",title:i18next.t("Name"),payload:{elementData:formNameElementData},previewOptions:{width:179,height:110,icon:{src:name,width:"66px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Email"),payload:{elementData:formEmailElementData},previewOptions:{width:179,height:110,icon:{src:email,width:"73px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("First Name"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"text",label:i18next.t("First Name"),showLabel:!0,attributes:{name:"first-name",autoComplete:"given-name"}}})},previewOptions:{width:179,height:110,icon:{src:name,width:"66px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Last Name"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"text",label:i18next.t("Last Name"),showLabel:!0,attributes:{name:"last-name",autoComplete:"family-name"}}})},previewOptions:{width:179,height:110,icon:{src:name,width:"66px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Phone Number"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"tel",label:i18next.t("Phone number"),showLabel:!0,attributes:{name:"phone",autoComplete:"tel"}}})},previewOptions:{width:179,height:110,icon:{src:phone,width:"71px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Message"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"textarea",inputHeight:150,label:i18next.t("Message"),showLabel:!0,attributes:{name:"message"},isCustom:!0}})},previewOptions:{width:179,height:110,icon:{src:message,width:"52px",height:"36px"},iconAboveSpace:"12px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Address"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"text",label:i18next.t("Address"),showLabel:!0,attributes:{name:"address",autoComplete:"address"}}})},previewOptions:{width:179,height:110,icon:{src:address,width:"68px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Website"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"url",label:i18next.t("Website"),showLabel:!0,attributes:{name:"website",autoComplete:"url"}}})},previewOptions:{width:179,height:110,icon:{src:website,width:"71px",height:"13px"},iconAboveSpace:"22px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Custom Input"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"text",label:i18next.t("Custom Input"),showLabel:!0,attributes:{name:"custom"},isCustom:!0}})},previewOptions:{width:179,height:110,icon:{src:custom,width:"57px",height:"18px"},iconAboveSpace:"20px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Checkbox"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultInputElementData$1,{options:{type:"checkbox",label:i18next.t("Checkbox"),isCustom:!0,showLabel:!0,attributes:{name:"checkbox"}}})},previewOptions:{width:179,height:110,icon:{src:checkbox,width:"21px",height:"21px"},iconAboveSpace:"12px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Submit Button"),payload:{elementData:formSubmitElementData},previewOptions:{width:179,height:110,icon:{src:submit,width:"80px",height:"25px"},iconAboveSpace:"12px"}},{id:nanoid$1(),type:"form-element",title:i18next.t("Form Message"),payload:{elementData:formMessageElementData},previewOptions:{width:179,height:110,icon:{src:formMessage,width:"91px",height:"11px"},iconAboveSpace:"12px"}},formHiddenInputElementData],defaultCustomElementData={children:[],locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:721,unit:"px"},height:{value:426,unit:"px"}}}},defaultLottieElementData={children:[],type:"dpcLottie",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:300,unit:"px"},height:{value:300,unit:"px"}}}},defaultFormElementData={children:[],type:"form",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:"auto",height:"auto"}},styles:{backgroundColor:{default:"#f5f5f5"}}},customElementsAssetContents=[{id:nanoid$1(),type:"element",title:i18next.t("iFrame"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCustomElementData,{type:"dpcIframe",size:{default:{width:{value:710,unit:"px"},height:{value:400,unit:"px"}}},styles:{backgroundColor:{default:"#000000"}},options:{src:"https://example.com"}})},sourceType:"IframeElement",previewOptions:{width:179,height:110,icon:{src:iframe,width:"47.2px",height:"36px"},iconSpace:"12px"}},{id:nanoid$1(),type:"element",title:i18next.t("Lottie Animation"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultLottieElementData,{options:{}})},sourceType:"LottieFile",previewOptions:{width:179,height:110,icon:{src:lottie,width:"36px",height:"36px"},iconSpace:"12px"}},{id:nanoid$1(),type:"element",title:i18next.t("Shortcode"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCustomElementData,{type:"wpShortcode",size:{default:{width:{value:400,unit:"px"},height:{value:400,unit:"px"}}},styles:{},options:{}})},sourceType:"Shortcode",previewOptions:{width:179,height:110,icon:{src:shortcode,width:"55px",height:"41px"},iconSpace:"12px"}},{id:nanoid$1(),type:"element",title:i18next.t("Coupon Box"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCustomElementData,{type:"dpcCouponBox",options:{coupon:"SALE20",buttonLabel:"Copy",copiedLabel:"Copied!",showButton:!0},size:{default:{width:{value:200,unit:"px"},height:{value:52,unit:"px"}}}})},previewOptions:{width:179,height:110,icon:{src:couponIcon,width:"55px",height:"35px"},iconSpace:"12px"}},{id:nanoid$1(),type:"element",title:i18next.t("Hover Switch Image"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultCustomElementData,{type:"hoverSwitchImage",options:{},size:{default:{width:{value:350,unit:"px"},height:{value:426,unit:"px"}}}})},previewOptions:{width:179,height:110,icon:{src:hoverSwitchIcon,width:"61px",height:"43px"},iconSpace:"12px"}}],formElements=[{id:nanoid$1(),type:"element",title:i18next.t("Form"),payload:{groupData:[{group:deepmerge(defaultFormElementData,{options:{}}),children:[formNameElementData,formEmailElementData,formSubmitElementData,formMessageElementData]}]},previewOptions:{width:179,height:110,icon:{src:formIcon,width:"36px",height:"36px"},iconSpace:"12px"}}],countdownElements={category:"countdown"},counterElements={category:"counter"},beforeAfterElements={category:"before-after"},Elements=({className:ea})=>{const{t:na}=useTranslation(),ra=useSelector(getDocumentType),oa=useSelector(getActiveSectionType);return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"elements",children:jsxRuntimeExports.jsxs(Scrollbars,{children:[jsxRuntimeExports.jsxs(AssetsPanelInnerContainer,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Custom Elements")}),jsxRuntimeExports.jsx(AssetsList$1,{items:customElementsAssetContents,columns:2,layout:"grid"})]}),ra!=="survey"&&oa!=="teaser"&&jsxRuntimeExports.jsxs(AssetsPanelInnerContainer,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Forms")}),jsxRuntimeExports.jsx(AssetsList$1,{items:formElements,columns:2,layout:"grid"})]}),jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"elements",additionalParams:countdownElements,scrollMode:"none",children:jsxRuntimeExports.jsx(ContentTitle,{children:na("Countdown timers")})}),jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"elements",additionalParams:counterElements,scrollMode:"none",children:jsxRuntimeExports.jsx(ContentTitle,{children:na("Number counters")})}),jsxRuntimeExports.jsx(RemoteAssetsList$1,{assetType:"elements",additionalParams:beforeAfterElements,scrollMode:"none",children:jsxRuntimeExports.jsx(ContentTitle,{children:na("Before after")})})]})})},ElementsAssetTabContent=dt$1(Elements).withConfig({displayName:"Elements",componentId:"sc-doly5n-0"})(["height:100%;width:100%;display:flex;flex-direction:column;","{height:auto;min-height:100px;&:last-child{margin-bottom:20px;}}"],RemoteAssetsList$1),FormAssetItems=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"form",children:jsxRuntimeExports.jsx(Scrollbars,{children:jsxRuntimeExports.jsxs(AssetsPanelInnerContainer,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Form")}),jsxRuntimeExports.jsx(AssetsList$1,{items:customElementsAssetContents$1,columns:2,layout:"grid"})]})})})},FormsAssetTabContent=dt$1(FormAssetItems).withConfig({displayName:"Form",componentId:"sc-hx86b6-0"})(["height:100%;width:100%;display:flex;flex-direction:column;","{margin-bottom:20px;}"],AssetsPanelInnerContainer),defaultColors$s={icon:{background:"#6A6A6A",color:"#FFFFFF"},expanded:{icon:{background:"#222222",color:"#FFFFFF"}},title:{color:"#FFFFFF"}},colors$s={dark:defaultColors$s},defaultSizing$s={title:{fontSize:"14px",marginBottom:"12px",marginTop:"18px"}},sizes$s={default:defaultSizing$s},Scheme$1=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$s,sizes:sizes$s},Symbol.toStringTag,{value:"Module"})),HolderArea=dt$1.div.withConfig({displayName:"CollapseAbleContent__HolderArea",componentId:"sc-4rmvm4-0"})([""]),Container$h=dt$1.div.withConfig({displayName:"CollapseAbleContent__Container",componentId:"sc-4rmvm4-1"})([""]),ContentWrapper$1=dt$1.div.withConfig({displayName:"CollapseAbleContent__ContentWrapper",componentId:"sc-4rmvm4-2"})([""]),Title$j=dt$1.div.withConfig({displayName:"CollapseAbleContent__Title",componentId:"sc-4rmvm4-3"})([""]),CollapseAbleContent=ea=>{const{className:na,title:ra,expandedByDefault:oa,children:aa}=ea,sa=reactExports.useRef(null),la=reactExports.useRef(!0),[ca,ua]=reactExports.useState(oa||!1),[da,pa]=reactExports.useState(0);reactExports.useLayoutEffect(()=>{la.current&&sa.current&&(pa(sa.current.offsetHeight),la.current=!1)},[]);const ha=reactExports.useCallback(ma=>{ma&&assignRef(ma,sa)},[sa]),ga=reactExports.useMemo(()=>la.current&&ca?{height:"auto"}:{height:`${ca?da:0}px`},[da,ca]),fa=reactExports.useCallback(()=>{ua(!ca)},[ca]);return jsxRuntimeExports.jsxs("div",{className:`${na} ${ca?"dp-is-expanded":""}`,children:[jsxRuntimeExports.jsx(HolderArea,{onClick:fa,children:jsxRuntimeExports.jsxs(Title$j,{children:[jsxRuntimeExports.jsx(Icon$4,{shape:SvgChevronDown}),ra]})}),jsxRuntimeExports.jsx(Container$h,{style:ga,children:jsxRuntimeExports.jsx(ContentWrapper$1,{ref:ha,children:aa})})]})},theme$F=withTheme(Scheme$1),CollapseAbleContent$1=dt$1(CollapseAbleContent).withConfig({displayName:"CollapseAbleContent",componentId:"sc-4rmvm4-4"})(["","{cursor:pointer;","{display:flex;align-items:center;font-weight:400;}","{fill:currentColor;width:21px;height:21px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin-right:5px;transform:rotate(-90deg);transition:all 0.3s ease-out;}}&.dp-is-expanded{","{","{transform:rotate(0deg);}}}","{overflow:hidden;transition:height 0.3s ease-out;}"," ",""],HolderArea,Title$j,Icon$4,HolderArea,Icon$4,Container$h,theme$F.colors(ea=>lt$1(["","{","{background:",";fill ","}}","{color:","}&.dp-is-expanded{","{","{background:",";fill ","}}}"],HolderArea,Icon$4,ea.icon.background,ea.icon.color,Title$j,ea.title.color,HolderArea,Icon$4,ea.expanded.icon.background,ea.expanded.icon.color)),theme$F.sizes(ea=>lt$1(["","{font-size:",";margin-bottom:",";margin-top:",";}"],Title$j,ea.title.fontSize,ea.title.marginBottom,ea.title.marginTop))),DynamicSourceAssetsList=React.memo(ea=>{const{className:na,items:ra}=ea,oa=ra.map(aa=>jsxRuntimeExports.jsx(AssetItemHolder$1,{assetData:aa},aa.id));return jsxRuntimeExports.jsx("div",{className:na,children:oa})}),DynamicSourceAssetsList$1=dt$1(DynamicSourceAssetsList).withConfig({displayName:"DynamicSourceAssetsList",componentId:"sc-p5xf1g-0"})(["display:flex;flex-flow:row wrap;gap:12px;","{display:inline-flex;}"],AssetItemHolder$1),DynamicSourceAssetsGroup=ea=>{const{className:na,items:ra,title:oa}=ea;return jsxRuntimeExports.jsx(CollapseAbleContent$1,{className:na,title:oa,expandedByDefault:!0,children:jsxRuntimeExports.jsx(DynamicSourceAssetsList$1,{items:ra})})},DynamicSourceAssetsGroup$1=dt$1(DynamicSourceAssetsGroup).withConfig({displayName:"DynamicSourceAssetsGroup",componentId:"sc-dp0yha-0"})([""]),RemoteDynamicSourceAssetList=ea=>{const{className:na,type:ra,additionalParams:oa,children:aa}=ea,[sa,la]=reactExports.useState(!0),{t:ca}=useTranslation(),[{items:ua,noResult:da,blockedAccess:pa},ha]=reactExports.useState({items:[],noResult:!1,blockedAccess:!1});reactExports.useEffect(()=>{const ma={type:ra,...oa};axios$5.request(getAssets(ma)).then(({data:va})=>{ha({items:[...va.hits],noResult:!1,blockedAccess:!1}),la(!1)}).catch(va=>{const xa=va?.response?.status===503;ha(ya=>({items:ya.items.length?ya.items:[],noResult:!ya.items.length,blockedAccess:xa})),la(!1)})},[oa,ra]);const ga=reactExports.useCallback(ma=>jsxRuntimeExports.jsx(DynamicSourceAssetsGroup$1,{...ma},ma.id),[]);let fa=jsxRuntimeExports.jsx(LoadingSplash$1,{visible:sa,children:jsxRuntimeExports.jsx(ScrollableContent$1,{children:ua.map(ga)})});return pa?fa=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[aa,jsxRuntimeExports.jsx(AccessBlockedNotice$1,{iconWidth:"56px",iconHeight:"56px"})]}):da&&(fa=jsxRuntimeExports.jsx(NoAssetsFound$1,{children:ca("Sorry, we couldn't find any items here.")})),jsxRuntimeExports.jsx("div",{className:na,children:fa})},RemoteDynamicSourceAsset=dt$1(RemoteDynamicSourceAssetList).withConfig({displayName:"RemoteDynamicSourceAsset",componentId:"sc-1jtczfl-0"})(["display:flex;flex-direction:column;height:100%;"]),DataSource=({className:ea})=>{const{type:na,params:ra}=useSelector(getActiveSectionDataSourceConfig)||{};return na?jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"dataSource",children:jsxRuntimeExports.jsx(RemoteDynamicSourceAsset,{type:na,additionalParams:ra})}):null},DataSourceAssetTabContent=dt$1(DataSource).withConfig({displayName:"DataSource",componentId:"sc-ib5uqf-0"})(["height:100%;width:100%;"]),ErrorMessage$1="data:image/svg+xml,%3csvg%20width='109'%20height='33'%20viewBox='0%200%20109%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='107'%20height='31'%20rx='6'%20fill='%23AAAAAA'%20fill-opacity='0.15'/%3e%3crect%20x='1'%20y='1'%20width='107'%20height='31'%20rx='6'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.0229%208.75C20.2531%207.41667%2018.3286%207.41667%2017.5588%208.75L9.76459%2022.25C8.99478%2023.5833%209.95704%2025.25%2011.4966%2025.25H27.0851C28.6247%2025.25%2029.5869%2023.5833%2028.8171%2022.25L21.0229%208.75ZM19.4937%2011.5C20.3221%2011.5%2020.9937%2012.1716%2020.9937%2013V18C20.9937%2018.8284%2020.3221%2019.5%2019.4937%2019.5C18.6652%2019.5%2017.9937%2018.8284%2017.9937%2018V13C17.9937%2012.1716%2018.6652%2011.5%2019.4937%2011.5ZM19.4937%2020.5C20.3221%2020.5%2020.9937%2021.1716%2020.9937%2022C20.9937%2022.8284%2020.3221%2023.5%2019.4937%2023.5C18.6652%2023.5%2017.9937%2022.8284%2017.9937%2022C17.9937%2021.1716%2018.6652%2020.5%2019.4937%2020.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M96.7896%2014.8262C96.8794%2014.8262%2096.9829%2014.832%2097.1001%2014.8438C97.2212%2014.8516%2097.3188%2014.8633%2097.3931%2014.8789L97.2583%2016.5547C97.1997%2016.5352%2097.1157%2016.5215%2097.0063%2016.5137C96.9009%2016.502%2096.8091%2016.4961%2096.731%2016.4961C96.5005%2016.4961%2096.2759%2016.5254%2096.0571%2016.584C95.8423%2016.6426%2095.6489%2016.7383%2095.4771%2016.8711C95.3052%2017%2095.1685%2017.1719%2095.0669%2017.3867C94.9692%2017.5977%2094.9204%2017.8574%2094.9204%2018.166V21.5H93.1333V14.9492H94.4868L94.7505%2016.0508H94.8384C94.9673%2015.8281%2095.1274%2015.625%2095.3188%2015.4414C95.5142%2015.2539%2095.7349%2015.1055%2095.981%2014.9961C96.231%2014.8828%2096.5005%2014.8262%2096.7896%2014.8262Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M91.8967%2018.2129C91.8967%2018.7598%2091.8225%2019.2441%2091.6741%2019.666C91.5295%2020.0879%2091.3167%2020.4453%2091.0354%2020.7383C90.7581%2021.0273%2090.4221%2021.2461%2090.0276%2021.3945C89.637%2021.543%2089.1956%2021.6172%2088.7034%2021.6172C88.2424%2021.6172%2087.8186%2021.543%2087.4319%2021.3945C87.0491%2021.2461%2086.7151%2021.0273%2086.4299%2020.7383C86.1487%2020.4453%2085.9299%2020.0879%2085.7737%2019.666C85.6213%2019.2441%2085.5452%2018.7598%2085.5452%2018.2129C85.5452%2017.4863%2085.6741%2016.8711%2085.9319%2016.3672C86.1897%2015.8633%2086.5569%2015.4805%2087.0334%2015.2188C87.51%2014.957%2088.0784%2014.8262%2088.7385%2014.8262C89.3518%2014.8262%2089.8948%2014.957%2090.3674%2015.2188C90.844%2015.4805%2091.217%2015.8633%2091.4866%2016.3672C91.76%2016.8711%2091.8967%2017.4863%2091.8967%2018.2129ZM87.3674%2018.2129C87.3674%2018.6426%2087.4143%2019.0039%2087.5081%2019.2969C87.6018%2019.5898%2087.7483%2019.8105%2087.9475%2019.959C88.1467%2020.1074%2088.4065%2020.1816%2088.7268%2020.1816C89.0432%2020.1816%2089.2991%2020.1074%2089.4944%2019.959C89.6936%2019.8105%2089.8381%2019.5898%2089.928%2019.2969C90.0217%2019.0039%2090.0686%2018.6426%2090.0686%2018.2129C90.0686%2017.7793%2090.0217%2017.4199%2089.928%2017.1348C89.8381%2016.8457%2089.6936%2016.6289%2089.4944%2016.4844C89.2952%2016.3398%2089.0354%2016.2676%2088.7151%2016.2676C88.2424%2016.2676%2087.8987%2016.4297%2087.6838%2016.7539C87.4729%2017.0781%2087.3674%2017.5645%2087.3674%2018.2129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M84.3906%2014.8262C84.4805%2014.8262%2084.584%2014.832%2084.7012%2014.8438C84.8223%2014.8516%2084.9199%2014.8633%2084.9941%2014.8789L84.8594%2016.5547C84.8008%2016.5352%2084.7168%2016.5215%2084.6074%2016.5137C84.502%2016.502%2084.4102%2016.4961%2084.332%2016.4961C84.1016%2016.4961%2083.877%2016.5254%2083.6582%2016.584C83.4434%2016.6426%2083.25%2016.7383%2083.0781%2016.8711C82.9062%2017%2082.7695%2017.1719%2082.668%2017.3867C82.5703%2017.5977%2082.5215%2017.8574%2082.5215%2018.166V21.5H80.7344V14.9492H82.0879L82.3516%2016.0508H82.4395C82.5684%2015.8281%2082.7285%2015.625%2082.9199%2015.4414C83.1152%2015.2539%2083.3359%2015.1055%2083.582%2014.9961C83.832%2014.8828%2084.1016%2014.8262%2084.3906%2014.8262Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M79.1814%2014.8262C79.2712%2014.8262%2079.3748%2014.832%2079.4919%2014.8438C79.613%2014.8516%2079.7107%2014.8633%2079.7849%2014.8789L79.6501%2016.5547C79.5916%2016.5352%2079.5076%2016.5215%2079.3982%2016.5137C79.2927%2016.502%2079.2009%2016.4961%2079.1228%2016.4961C78.8923%2016.4961%2078.6677%2016.5254%2078.449%2016.584C78.2341%2016.6426%2078.0408%2016.7383%2077.8689%2016.8711C77.697%2017%2077.5603%2017.1719%2077.4587%2017.3867C77.3611%2017.5977%2077.3123%2017.8574%2077.3123%2018.166V21.5H75.5251V14.9492H76.8787L77.1423%2016.0508H77.2302C77.3591%2015.8281%2077.5193%2015.625%2077.7107%2015.4414C77.906%2015.2539%2078.1267%2015.1055%2078.3728%2014.9961C78.6228%2014.8828%2078.8923%2014.8262%2079.1814%2014.8262Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M71.3765%2014.8262C71.9819%2014.8262%2072.5034%2014.9434%2072.9409%2015.1777C73.3784%2015.4082%2073.7163%2015.7441%2073.9546%2016.1855C74.1929%2016.627%2074.312%2017.166%2074.312%2017.8027V18.6699H70.0874C70.1069%2019.1738%2070.2573%2019.5703%2070.5386%2019.8594C70.8237%2020.1445%2071.2183%2020.2871%2071.7222%2020.2871C72.1401%2020.2871%2072.5229%2020.2441%2072.8706%2020.1582C73.2183%2020.0723%2073.5757%2019.9434%2073.9429%2019.7715V21.1543C73.6187%2021.3145%2073.2788%2021.4316%2072.9233%2021.5059C72.5718%2021.5801%2072.144%2021.6172%2071.6401%2021.6172C70.9839%2021.6172%2070.4019%2021.4961%2069.894%2021.2539C69.3901%2021.0117%2068.9937%2020.6426%2068.7046%2020.1465C68.4194%2019.6504%2068.2769%2019.0254%2068.2769%2018.2715C68.2769%2017.5059%2068.4058%2016.8691%2068.6636%2016.3613C68.9253%2015.8496%2069.2886%2015.4668%2069.7534%2015.2129C70.2183%2014.9551%2070.7593%2014.8262%2071.3765%2014.8262ZM71.3882%2016.0977C71.0405%2016.0977%2070.7515%2016.209%2070.521%2016.4316C70.2944%2016.6543%2070.1636%2017.0039%2070.1284%2017.4805H72.6362C72.6323%2017.2148%2072.5835%2016.9785%2072.4897%2016.7715C72.3999%2016.5645%2072.2632%2016.4004%2072.0796%2016.2793C71.8999%2016.1582%2071.6694%2016.0977%2071.3882%2016.0977Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M64.1045%2018.6582H62.6748L62.376%2012.9336H64.4033L64.1045%2018.6582ZM62.3525%2020.6621C62.3525%2020.2949%2062.4521%2020.0371%2062.6514%2019.8887C62.8545%2019.7402%2063.0986%2019.666%2063.3838%2019.666C63.6611%2019.666%2063.8994%2019.7402%2064.0986%2019.8887C64.3018%2020.0371%2064.4033%2020.2949%2064.4033%2020.6621C64.4033%2021.0137%2064.3018%2021.2676%2064.0986%2021.4238C63.8994%2021.5801%2063.6611%2021.6582%2063.3838%2021.6582C63.0986%2021.6582%2062.8545%2021.5801%2062.6514%2021.4238C62.4521%2021.2676%2062.3525%2021.0137%2062.3525%2020.6621Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M61.45%2019.5547C61.45%2020%2061.3445%2020.377%2061.1335%2020.6855C60.9265%2020.9902%2060.616%2021.2227%2060.2019%2021.3828C59.7878%2021.5391%2059.2722%2021.6172%2058.655%2021.6172C58.198%2021.6172%2057.8054%2021.5879%2057.4773%2021.5293C57.1531%2021.4707%2056.825%2021.373%2056.4929%2021.2363V19.7598C56.8484%2019.9199%2057.2292%2020.0527%2057.6355%2020.1582C58.0457%2020.2598%2058.405%2020.3105%2058.7136%2020.3105C59.0613%2020.3105%2059.3093%2020.2598%2059.4578%2020.1582C59.6101%2020.0527%2059.6863%2019.916%2059.6863%2019.748C59.6863%2019.6387%2059.655%2019.541%2059.5925%2019.4551C59.5339%2019.3652%2059.405%2019.2656%2059.2058%2019.1562C59.0066%2019.043%2058.6941%2018.8965%2058.2683%2018.7168C57.8582%2018.5449%2057.5203%2018.3711%2057.2546%2018.1953C56.9929%2018.0195%2056.7976%2017.8125%2056.6687%2017.5742C56.5437%2017.332%2056.4812%2017.0254%2056.4812%2016.6543C56.4812%2016.0488%2056.7156%2015.5938%2057.1843%2015.2891C57.657%2014.9805%2058.2878%2014.8262%2059.0769%2014.8262C59.4832%2014.8262%2059.8699%2014.8672%2060.2371%2014.9492C60.6082%2015.0312%2060.989%2015.1621%2061.3796%2015.3418L60.8406%2016.6309C60.5164%2016.4902%2060.2097%2016.375%2059.9207%2016.2852C59.6355%2016.1953%2059.3445%2016.1504%2059.0476%2016.1504C58.7859%2016.1504%2058.5886%2016.1855%2058.4558%2016.2559C58.323%2016.3262%2058.2566%2016.4336%2058.2566%2016.5781C58.2566%2016.6836%2058.2898%2016.7773%2058.3562%2016.8594C58.4265%2016.9414%2058.5593%2017.0332%2058.7546%2017.1348C58.9539%2017.2324%2059.2449%2017.3594%2059.6277%2017.5156C59.9988%2017.668%2060.321%2017.8281%2060.5945%2017.9961C60.8679%2018.1602%2061.0789%2018.3652%2061.2273%2018.6113C61.3757%2018.8535%2061.45%2019.168%2061.45%2019.5547Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M53.1704%2014.8262C53.9087%2014.8262%2054.5044%2015.1133%2054.9575%2015.6875C55.4146%2016.2617%2055.6431%2017.1035%2055.6431%2018.2129C55.6431%2018.9551%2055.5356%2019.5801%2055.3208%2020.0879C55.106%2020.5918%2054.8091%2020.9727%2054.4302%2021.2305C54.0513%2021.4883%2053.6157%2021.6172%2053.1235%2021.6172C52.8071%2021.6172%2052.5356%2021.5781%2052.3091%2021.5C52.0825%2021.418%2051.8892%2021.3145%2051.729%2021.1895C51.5688%2021.0605%2051.4302%2020.9238%2051.313%2020.7793H51.2192C51.2505%2020.9355%2051.2739%2021.0957%2051.2896%2021.2598C51.3052%2021.4238%2051.313%2021.584%2051.313%2021.7402V24.3828H49.5259V14.9492H50.979L51.231%2015.7988H51.313C51.4302%2015.623%2051.5728%2015.4609%2051.7407%2015.3125C51.9087%2015.1641%2052.1099%2015.0469%2052.3442%2014.9609C52.5825%2014.8711%2052.8579%2014.8262%2053.1704%2014.8262ZM52.5962%2016.2559C52.2837%2016.2559%2052.0356%2016.3203%2051.8521%2016.4492C51.6685%2016.5781%2051.5337%2016.7715%2051.4478%2017.0293C51.3657%2017.2871%2051.3208%2017.6133%2051.313%2018.0078V18.2012C51.313%2018.623%2051.3521%2018.9805%2051.4302%2019.2734C51.5122%2019.5664%2051.647%2019.7891%2051.8345%2019.9414C52.0259%2020.0938%2052.2876%2020.1699%2052.6196%2020.1699C52.8931%2020.1699%2053.1177%2020.0938%2053.2935%2019.9414C53.4692%2019.7891%2053.6001%2019.5664%2053.686%2019.2734C53.7759%2018.9766%2053.8208%2018.6152%2053.8208%2018.1895C53.8208%2017.5488%2053.7212%2017.0664%2053.522%2016.7422C53.3228%2016.418%2053.0142%2016.2559%2052.5962%2016.2559Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M48.2893%2018.2129C48.2893%2018.7598%2048.2151%2019.2441%2048.0667%2019.666C47.9221%2020.0879%2047.7092%2020.4453%2047.428%2020.7383C47.1506%2021.0273%2046.8147%2021.2461%2046.4202%2021.3945C46.0295%2021.543%2045.5881%2021.6172%2045.0959%2021.6172C44.635%2021.6172%2044.2112%2021.543%2043.8245%2021.3945C43.4417%2021.2461%2043.1077%2021.0273%2042.8225%2020.7383C42.5413%2020.4453%2042.3225%2020.0879%2042.1663%2019.666C42.0139%2019.2441%2041.9377%2018.7598%2041.9377%2018.2129C41.9377%2017.4863%2042.0667%2016.8711%2042.3245%2016.3672C42.5823%2015.8633%2042.9495%2015.4805%2043.426%2015.2188C43.9026%2014.957%2044.4709%2014.8262%2045.1311%2014.8262C45.7444%2014.8262%2046.2874%2014.957%2046.76%2015.2188C47.2366%2015.4805%2047.6096%2015.8633%2047.8792%2016.3672C48.1526%2016.8711%2048.2893%2017.4863%2048.2893%2018.2129ZM43.76%2018.2129C43.76%2018.6426%2043.8069%2019.0039%2043.9006%2019.2969C43.9944%2019.5898%2044.1409%2019.8105%2044.3401%2019.959C44.5393%2020.1074%2044.7991%2020.1816%2045.1194%2020.1816C45.4358%2020.1816%2045.6917%2020.1074%2045.887%2019.959C46.0862%2019.8105%2046.2307%2019.5898%2046.3206%2019.2969C46.4143%2019.0039%2046.4612%2018.6426%2046.4612%2018.2129C46.4612%2017.7793%2046.4143%2017.4199%2046.3206%2017.1348C46.2307%2016.8457%2046.0862%2016.6289%2045.887%2016.4844C45.6877%2016.3398%2045.428%2016.2676%2045.1077%2016.2676C44.635%2016.2676%2044.2913%2016.4297%2044.0764%2016.7539C43.8655%2017.0781%2043.76%2017.5645%2043.76%2018.2129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M40.9414%2017.2051C40.9414%2017.8652%2040.8594%2018.4668%2040.6953%2019.0098C40.5312%2019.5488%2040.2812%2020.0137%2039.9453%2020.4043C39.6133%2020.7949%2039.1914%2021.0957%2038.6797%2021.3066C38.168%2021.5137%2037.5625%2021.6172%2036.8633%2021.6172C36.1641%2021.6172%2035.5586%2021.5137%2035.0469%2021.3066C34.5352%2021.0957%2034.1113%2020.7949%2033.7754%2020.4043C33.4434%2020.0137%2033.1953%2019.5469%2033.0312%2019.0039C32.8672%2018.4609%2032.7852%2017.8574%2032.7852%2017.1934C32.7852%2016.3066%2032.9297%2015.5352%2033.2188%2014.8789C33.5117%2014.2188%2033.9609%2013.707%2034.5664%2013.3438C35.1719%2012.9805%2035.9414%2012.7988%2036.875%2012.7988C37.8047%2012.7988%2038.5684%2012.9805%2039.166%2013.3438C39.7676%2013.707%2040.2129%2014.2188%2040.502%2014.8789C40.7949%2015.5391%2040.9414%2016.3145%2040.9414%2017.2051ZM34.6895%2017.2051C34.6895%2017.8027%2034.7637%2018.3184%2034.9121%2018.752C35.0645%2019.1816%2035.3008%2019.5137%2035.6211%2019.748C35.9414%2019.9785%2036.3555%2020.0938%2036.8633%2020.0938C37.3789%2020.0938%2037.7969%2019.9785%2038.1172%2019.748C38.4375%2019.5137%2038.6699%2019.1816%2038.8145%2018.752C38.9629%2018.3184%2039.0371%2017.8027%2039.0371%2017.2051C39.0371%2016.3066%2038.8691%2015.5996%2038.5332%2015.084C38.1973%2014.5684%2037.6445%2014.3105%2036.875%2014.3105C36.3633%2014.3105%2035.9453%2014.4277%2035.6211%2014.6621C35.3008%2014.8926%2035.0645%2015.2246%2034.9121%2015.6582C34.7637%2016.0879%2034.6895%2016.6035%2034.6895%2017.2051Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",Input="data:image/svg+xml,%3csvg%20width='53'%20height='13'%20viewBox='0%200%2053%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.5%205C5.67157%205%205%205.67157%205%206.5C5%207.32843%205.67157%208%206.5%208H27.5C28.3284%208%2029%207.32843%2029%206.5C29%205.67157%2028.3284%205%2027.5%205H6.5Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%203C0%201.34315%201.34315%200%203%200H50C51.6569%200%2053%201.34315%2053%203V10C53%2011.6569%2051.6569%2013%2050%2013H3C1.34315%2013%200%2011.6569%200%2010V3ZM3%202H50C50.5523%202%2051%202.44772%2051%203V10C51%2010.5523%2050.5523%2011%2050%2011H3C2.44772%2011%202%2010.5523%202%2010V3C2%202.44772%202.44772%202%203%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",MultipleChoice="data:image/svg+xml,%3csvg%20width='58'%20height='38'%20viewBox='0%200%2058%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.75'%20y='0.75'%20width='56.5'%20height='36.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20d='M17%2020C17%2019.4477%2017.4477%2019%2018%2019H52C52.5523%2019%2053%2019.4477%2053%2020C53%2020.5523%2052.5523%2021%2052%2021H18C17.4477%2021%2017%2020.5523%2017%2020Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M17%2030C17%2029.4477%2017.4477%2029%2018%2029H52C52.5523%2029%2053%2029.4477%2053%2030C53%2030.5523%2052.5523%2031%2052%2031H18C17.4477%2031%2017%2030.5523%2017%2030Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M17%2010C17%209.44772%2017.4477%209%2018%209H52C52.5523%209%2053%209.44772%2053%2010C53%2010.5523%2052.5523%2011%2052%2011H18C17.4477%2011%2017%2010.5523%2017%2010Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13%206H6V13H13V6ZM11.0588%207.16861C11.2741%206.9438%2011.6232%206.9438%2011.8385%207.16861C12.0538%207.39342%2012.0538%207.7579%2011.8385%207.98271L9.11483%2010.8266L9.11036%2010.8313C9.07796%2010.8651%209.04254%2010.8939%209.005%2010.9175C8.79302%2011.0511%208.51348%2011.0224%208.33054%2010.8314L8.32037%2010.8205L7.16147%209.61045C6.94618%209.38566%206.94618%209.02121%207.16147%208.79642C7.37676%208.57163%207.72581%208.57163%207.9411%208.79642L8.72045%209.61017L11.0588%207.16861Z'%20fill='%23AAAAAA'/%3e%3crect%20x='6.75'%20y='16.75'%20width='5.5'%20height='5.5'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3crect%20x='6.75'%20y='26.75'%20width='5.5'%20height='5.5'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3c/svg%3e",MultipleMediaChoice="data:image/svg+xml,%3csvg%20width='112'%20height='37'%20viewBox='0%200%20112%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.9355%2014.9677L15.871%2020H10L12.9355%2014.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.6453%2012.0322L24.6776%2020H14.613L19.6453%2012.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.6614%2011.6129C16.9353%2011.6129%2017.9679%2010.5803%2017.9679%209.30645C17.9679%208.03263%2016.9353%207%2015.6614%207C14.3876%207%2013.355%208.03263%2013.355%209.30645C13.355%2010.5803%2014.3876%2011.6129%2015.6614%2011.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M14%2030C14%2029.4477%2014.4477%2029%2015%2029H27C27.5523%2029%2028%2029.4477%2028%2030C28%2030.5523%2027.5523%2031%2027%2031H15C14.4477%2031%2014%2030.5523%2014%2030Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%2026H4V33H11V26ZM9.05882%2028.1686C9.27413%2027.9438%209.62321%2027.9438%209.83852%2028.1686C10.0538%2028.3934%2010.0538%2028.7579%209.83852%2028.9827L7.11483%2031.8266L7.11036%2031.8313C7.07796%2031.8651%207.04254%2031.8939%207.005%2031.9175C6.79302%2032.0511%206.51348%2032.0224%206.33054%2031.8314L6.32037%2031.8205L5.16147%2030.6105C4.94618%2030.3857%204.94618%2030.0212%205.16147%2029.7964C5.37676%2029.5716%205.72581%2029.5716%205.9411%2029.7964L6.72045%2030.6102L9.05882%2028.1686Z'%20fill='%23AAAAAA'/%3e%3crect%20x='39.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M51.9355%2015.9677L54.871%2021H49L51.9355%2015.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M58.6453%2013.0322L63.6776%2021H53.613L58.6453%2013.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M54.6614%2012.6129C55.9353%2012.6129%2056.9679%2011.5803%2056.9679%2010.3065C56.9679%209.03263%2055.9353%208%2054.6614%208C53.3876%208%2052.355%209.03263%2052.355%2010.3065C52.355%2011.5803%2053.3876%2012.6129%2054.6614%2012.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M53%2030C53%2029.4477%2053.4477%2029%2054%2029H66C66.5523%2029%2067%2029.4477%2067%2030C67%2030.5523%2066.5523%2031%2066%2031H54C53.4477%2031%2053%2030.5523%2053%2030Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M50%2026H43V33H50V26ZM48.0588%2028.1686C48.2741%2027.9438%2048.6232%2027.9438%2048.8385%2028.1686C49.0538%2028.3934%2049.0538%2028.7579%2048.8385%2028.9827L46.1148%2031.8266L46.1104%2031.8313C46.078%2031.8651%2046.0425%2031.8939%2046.005%2031.9175C45.793%2032.0511%2045.5135%2032.0224%2045.3305%2031.8314L45.3204%2031.8205L44.1615%2030.6105C43.9462%2030.3857%2043.9462%2030.0212%2044.1615%2029.7964C44.3768%2029.5716%2044.7258%2029.5716%2044.9411%2029.7964L45.7205%2030.6102L48.0588%2028.1686Z'%20fill='%23AAAAAA'/%3e%3crect%20x='78.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M90.9355%2015.9677L93.871%2021H88L90.9355%2015.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M97.6453%2013.0322L102.678%2021H92.613L97.6453%2013.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M93.6614%2012.6129C94.9353%2012.6129%2095.9679%2011.5803%2095.9679%2010.3065C95.9679%209.03263%2094.9353%208%2093.6614%208C92.3876%208%2091.355%209.03263%2091.355%2010.3065C91.355%2011.5803%2092.3876%2012.6129%2093.6614%2012.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M92%2030C92%2029.4477%2092.4477%2029%2093%2029H105C105.552%2029%20106%2029.4477%20106%2030C106%2030.5523%20105.552%2031%20105%2031H93C92.4477%2031%2092%2030.5523%2092%2030Z'%20fill='%23AAAAAA'/%3e%3crect%20x='82.75'%20y='26.75'%20width='5.5'%20height='5.5'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3c/svg%3e",NextOutlineButton="data:image/svg+xml,%3csvg%20width='67'%20height='29'%20viewBox='0%200%2067%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='65'%20height='27'%20rx='4.67376'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20d='M39.4844%2017.6934C39.6797%2017.6934%2039.8691%2017.6738%2040.0527%2017.6348C40.2402%2017.5957%2040.4258%2017.5469%2040.6094%2017.4883V18.8184C40.418%2018.9043%2040.1797%2018.9746%2039.8945%2019.0293C39.6133%2019.0879%2039.3047%2019.1172%2038.9688%2019.1172C38.5781%2019.1172%2038.2266%2019.0547%2037.9141%2018.9297C37.6055%2018.8008%2037.3613%2018.5801%2037.1816%2018.2676C37.0059%2017.9512%2036.918%2017.5117%2036.918%2016.9492V13.791H36.0625V13.0352L37.0469%2012.4375L37.5625%2011.0547H38.7051V12.4492H40.5391V13.791H38.7051V16.9492C38.7051%2017.1992%2038.7754%2017.3867%2038.916%2017.5117C39.0605%2017.6328%2039.25%2017.6934%2039.4844%2017.6934Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M31.1289%2015.6543L29.0195%2012.4492H31.0469L32.3184%2014.5352L33.6016%2012.4492H35.6289L33.4961%2015.6543L35.7285%2019H33.6953L32.3184%2016.7559L30.9355%2019H28.9082L31.1289%2015.6543Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M25.3984%2012.3262C26.0039%2012.3262%2026.5254%2012.4434%2026.9629%2012.6777C27.4004%2012.9082%2027.7383%2013.2441%2027.9766%2013.6855C28.2148%2014.127%2028.334%2014.666%2028.334%2015.3027V16.1699H24.1094C24.1289%2016.6738%2024.2793%2017.0703%2024.5605%2017.3594C24.8457%2017.6445%2025.2402%2017.7871%2025.7441%2017.7871C26.1621%2017.7871%2026.5449%2017.7441%2026.8926%2017.6582C27.2402%2017.5723%2027.5977%2017.4434%2027.9648%2017.2715V18.6543C27.6406%2018.8145%2027.3008%2018.9316%2026.9453%2019.0059C26.5938%2019.0801%2026.166%2019.1172%2025.6621%2019.1172C25.0059%2019.1172%2024.4238%2018.9961%2023.916%2018.7539C23.4121%2018.5117%2023.0156%2018.1426%2022.7266%2017.6465C22.4414%2017.1504%2022.2988%2016.5254%2022.2988%2015.7715C22.2988%2015.0059%2022.4277%2014.3691%2022.6855%2013.8613C22.9473%2013.3496%2023.3105%2012.9668%2023.7754%2012.7129C24.2402%2012.4551%2024.7812%2012.3262%2025.3984%2012.3262ZM25.4102%2013.5977C25.0625%2013.5977%2024.7734%2013.709%2024.543%2013.9316C24.3164%2014.1543%2024.1855%2014.5039%2024.1504%2014.9805H26.6582C26.6543%2014.7148%2026.6055%2014.4785%2026.5117%2014.2715C26.4219%2014.0645%2026.2852%2013.9004%2026.1016%2013.7793C25.9219%2013.6582%2025.6914%2013.5977%2025.4102%2013.5977Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M20.6758%2019H18.3672L14.6406%2012.5195H14.5879C14.6035%2012.7891%2014.6172%2013.0605%2014.6289%2013.334C14.6406%2013.6074%2014.6523%2013.8809%2014.6641%2014.1543C14.6758%2014.4238%2014.6875%2014.6953%2014.6992%2014.9688V19H13.0762V10.4336H15.3672L19.0879%2016.8496H19.1289C19.1211%2016.584%2019.1113%2016.3203%2019.0996%2016.0586C19.0879%2015.7969%2019.0762%2015.5352%2019.0645%2015.2734C19.0566%2015.0117%2019.0488%2014.75%2019.041%2014.4883V10.4336H20.6758V19Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.3185%2014.4781L55.3185%2014.4796L50.2348%2020L48.5%2018.1151L51.8447%2014.4781L48.5%2010.8365L50.2348%208.95013L55.3185%2014.4766L55.3185%2014.4781Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",NextSolidButton="data:image/svg+xml,%3csvg%20width='67'%20height='29'%20viewBox='0%200%2067%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='67'%20height='29'%20rx='5.67376'%20fill='%23AAAAAA'/%3e%3cpath%20d='M39.4844%2017.6934C39.6797%2017.6934%2039.8691%2017.6738%2040.0527%2017.6348C40.2402%2017.5957%2040.4258%2017.5469%2040.6094%2017.4883V18.8184C40.418%2018.9043%2040.1797%2018.9746%2039.8945%2019.0293C39.6133%2019.0879%2039.3047%2019.1172%2038.9688%2019.1172C38.5781%2019.1172%2038.2266%2019.0547%2037.9141%2018.9297C37.6055%2018.8008%2037.3613%2018.5801%2037.1816%2018.2676C37.0059%2017.9512%2036.918%2017.5117%2036.918%2016.9492V13.791H36.0625V13.0352L37.0469%2012.4375L37.5625%2011.0547H38.7051V12.4492H40.5391V13.791H38.7051V16.9492C38.7051%2017.1992%2038.7754%2017.3867%2038.916%2017.5117C39.0605%2017.6328%2039.25%2017.6934%2039.4844%2017.6934Z'%20fill='%23212121'/%3e%3cpath%20d='M31.1289%2015.6543L29.0195%2012.4492H31.0469L32.3184%2014.5352L33.6016%2012.4492H35.6289L33.4961%2015.6543L35.7285%2019H33.6953L32.3184%2016.7559L30.9355%2019H28.9082L31.1289%2015.6543Z'%20fill='%23212121'/%3e%3cpath%20d='M25.3984%2012.3262C26.0039%2012.3262%2026.5254%2012.4434%2026.9629%2012.6777C27.4004%2012.9082%2027.7383%2013.2441%2027.9766%2013.6855C28.2148%2014.127%2028.334%2014.666%2028.334%2015.3027V16.1699H24.1094C24.1289%2016.6738%2024.2793%2017.0703%2024.5605%2017.3594C24.8457%2017.6445%2025.2402%2017.7871%2025.7441%2017.7871C26.1621%2017.7871%2026.5449%2017.7441%2026.8926%2017.6582C27.2402%2017.5723%2027.5977%2017.4434%2027.9648%2017.2715V18.6543C27.6406%2018.8145%2027.3008%2018.9316%2026.9453%2019.0059C26.5938%2019.0801%2026.166%2019.1172%2025.6621%2019.1172C25.0059%2019.1172%2024.4238%2018.9961%2023.916%2018.7539C23.4121%2018.5117%2023.0156%2018.1426%2022.7266%2017.6465C22.4414%2017.1504%2022.2988%2016.5254%2022.2988%2015.7715C22.2988%2015.0059%2022.4277%2014.3691%2022.6855%2013.8613C22.9473%2013.3496%2023.3105%2012.9668%2023.7754%2012.7129C24.2402%2012.4551%2024.7812%2012.3262%2025.3984%2012.3262ZM25.4102%2013.5977C25.0625%2013.5977%2024.7734%2013.709%2024.543%2013.9316C24.3164%2014.1543%2024.1855%2014.5039%2024.1504%2014.9805H26.6582C26.6543%2014.7148%2026.6055%2014.4785%2026.5117%2014.2715C26.4219%2014.0645%2026.2852%2013.9004%2026.1016%2013.7793C25.9219%2013.6582%2025.6914%2013.5977%2025.4102%2013.5977Z'%20fill='%23212121'/%3e%3cpath%20d='M20.6758%2019H18.3672L14.6406%2012.5195H14.5879C14.6035%2012.7891%2014.6172%2013.0605%2014.6289%2013.334C14.6406%2013.6074%2014.6523%2013.8809%2014.6641%2014.1543C14.6758%2014.4238%2014.6875%2014.6953%2014.6992%2014.9688V19H13.0762V10.4336H15.3672L19.0879%2016.8496H19.1289C19.1211%2016.584%2019.1113%2016.3203%2019.0996%2016.0586C19.0879%2015.7969%2019.0762%2015.5352%2019.0645%2015.2734C19.0566%2015.0117%2019.0488%2014.75%2019.041%2014.4883V10.4336H20.6758V19Z'%20fill='%23212121'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M55.3185%2014.4781L55.3185%2014.4796L50.2348%2020L48.5%2018.1151L51.8447%2014.4781L48.5%2010.8365L50.2348%208.95013L55.3185%2014.4766L55.3185%2014.4781Z'%20fill='%23212121'/%3e%3c/svg%3e",OpinionScale="data:image/svg+xml,%3csvg%20width='138'%20height='39'%20viewBox='0%200%20138%2039'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.84375%2013V6.5752H1.89844V12.1035H4.62744V13H0.84375ZM11.4434%209.77881C11.4434%2010.2739%2011.3804%2010.7251%2011.2544%2011.1323C11.1313%2011.5366%2010.9453%2011.8853%2010.6963%2012.1782C10.4473%2012.4683%2010.1353%2012.6924%209.76025%2012.8506C9.38525%2013.0088%208.9458%2013.0879%208.44189%2013.0879C7.9292%2013.0879%207.48389%2013.0088%207.10596%2012.8506C6.73096%2012.6924%206.41895%2012.4668%206.16992%2012.1738C5.92383%2011.8809%205.73926%2011.5308%205.61621%2011.1235C5.49316%2010.7163%205.43164%2010.2651%205.43164%209.77002C5.43164%209.10791%205.54004%208.53076%205.75684%208.03857C5.97656%207.54346%206.30908%207.15967%206.75439%206.88721C7.20264%206.61182%207.76807%206.47412%208.45068%206.47412C9.11865%206.47412%209.67383%206.61035%2010.1162%206.88281C10.5586%207.15527%2010.8896%207.53906%2011.1094%208.03418C11.332%208.52637%2011.4434%209.10791%2011.4434%209.77881ZM6.53906%209.77881C6.53906%2010.2739%206.60645%2010.7031%206.74121%2011.0664C6.87598%2011.4268%207.08252%2011.7051%207.36084%2011.9014C7.64209%2012.0947%208.00244%2012.1914%208.44189%2012.1914C8.88428%2012.1914%209.24463%2012.0947%209.52295%2011.9014C9.80127%2011.7051%2010.0063%2011.4268%2010.1382%2011.0664C10.27%2010.7031%2010.3359%2010.2739%2010.3359%209.77881C10.3359%209.02588%2010.1851%208.43701%209.8833%208.01221C9.58447%207.58447%209.10693%207.37061%208.45068%207.37061C8.01123%207.37061%207.64941%207.46729%207.36523%207.66064C7.08398%207.854%206.87598%208.13086%206.74121%208.49121C6.60645%208.84863%206.53906%209.27783%206.53906%209.77881ZM20.4214%206.5752L18.7427%2013H17.5913L16.519%209.15039C16.4927%209.05664%2016.4634%208.94531%2016.4312%208.81641C16.3989%208.6875%2016.3667%208.55566%2016.3345%208.4209C16.3052%208.28613%2016.2788%208.16309%2016.2554%208.05176C16.2349%207.9375%2016.2202%207.84961%2016.2114%207.78809C16.2056%207.84961%2016.1924%207.93604%2016.1719%208.04736C16.1514%208.15869%2016.1265%208.28174%2016.0972%208.4165C16.0708%208.54834%2016.0415%208.68018%2016.0093%208.81201C15.9771%208.94092%2015.9478%209.05518%2015.9214%209.15479L14.8667%2013H13.7197L12.0454%206.5752H13.1045L14.0317%2010.3413C14.061%2010.4614%2014.0903%2010.5918%2014.1196%2010.7324C14.1519%2010.8701%2014.1812%2011.0093%2014.2075%2011.1499C14.2368%2011.2905%2014.2632%2011.4282%2014.2866%2011.563C14.3101%2011.6948%2014.3291%2011.8149%2014.3438%2011.9233C14.3584%2011.812%2014.3774%2011.689%2014.4009%2011.5542C14.4243%2011.4165%2014.4492%2011.2773%2014.4756%2011.1367C14.5049%2010.9932%2014.5342%2010.8555%2014.5635%2010.7236C14.5957%2010.5918%2014.6279%2010.4731%2014.6602%2010.3677L15.7061%206.5752H16.7344L17.8022%2010.3809C17.8345%2010.4893%2017.8652%2010.6108%2017.8945%2010.7456C17.9268%2010.8804%2017.9575%2011.0181%2017.9868%2011.1587C18.0161%2011.2993%2018.0425%2011.4355%2018.0659%2011.5674C18.0894%2011.6992%2018.1084%2011.8179%2018.123%2011.9233C18.1436%2011.7798%2018.1699%2011.6157%2018.2021%2011.4312C18.2344%2011.2466%2018.271%2011.0591%2018.312%2010.8687C18.353%2010.6782%2018.394%2010.5024%2018.4351%2010.3413L19.3579%206.5752H20.4214Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M120.094%2013H119.044V10.0996H116.082V13H115.027V6.5752H116.082V9.20312H119.044V6.5752H120.094V13ZM121.795%2013V6.5752H122.85V13H121.795ZM127.139%209.51074H129.538V12.7363C129.201%2012.8477%20128.853%2012.9341%20128.492%2012.9956C128.132%2013.0571%20127.728%2013.0879%20127.279%2013.0879C126.626%2013.0879%20126.072%2012.959%20125.618%2012.7012C125.167%2012.4404%20124.824%2012.064%20124.59%2011.5718C124.355%2011.0767%20124.238%2010.4805%20124.238%209.7832C124.238%209.1123%20124.369%208.53076%20124.629%208.03857C124.89%207.54346%20125.27%207.16113%20125.768%206.8916C126.266%206.61914%20126.869%206.48291%20127.578%206.48291C127.927%206.48291%20128.264%206.51807%20128.589%206.58838C128.917%206.65576%20129.217%206.74951%20129.49%206.86963L129.121%207.73975C128.904%207.63721%20128.661%207.55078%20128.391%207.48047C128.122%207.41016%20127.842%207.375%20127.552%207.375C127.092%207.375%20126.695%207.47461%20126.361%207.67383C126.03%207.87305%20125.775%208.1543%20125.596%208.51758C125.417%208.87793%20125.328%209.3042%20125.328%209.79639C125.328%2010.2739%20125.4%2010.6929%20125.543%2011.0532C125.687%2011.4136%20125.911%2011.6948%20126.216%2011.897C126.523%2012.0962%20126.92%2012.1958%20127.407%2012.1958C127.65%2012.1958%20127.856%2012.1826%20128.026%2012.1562C128.196%2012.1299%20128.353%2012.1006%20128.497%2012.0684V10.4116H127.139V9.51074ZM136.143%2013H135.093V10.0996H132.131V13H131.076V6.5752H132.131V9.20312H135.093V6.5752H136.143V13Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3%2021C1.34315%2021%200%2022.3431%200%2024V35.229C0%2036.8859%201.34315%2038.229%203%2038.229H14.229C15.8859%2038.229%2017.229%2036.8859%2017.229%2035.229V24C17.229%2022.3431%2015.8859%2021%2014.229%2021H3ZM8.2334%2035H9.84668V25.0059H8.50684L5.54004%2027.3301L6.34668%2028.3486L7.49512%2027.4326C7.65006%2027.3005%207.7959%2027.1729%207.93262%2027.0498C8.07389%2026.9268%208.19238%2026.8128%208.28809%2026.708C8.27441%2026.8949%208.26302%2027.0908%208.25391%2027.2959L8.24023%2027.9248C8.23568%2028.139%208.2334%2028.3532%208.2334%2028.5674V35Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M23%2021C21.3431%2021%2020%2022.3431%2020%2024V35.229C20%2036.8859%2021.3431%2038.229%2023%2038.229H34.229C35.8859%2038.229%2037.229%2036.8859%2037.229%2035.229V24C37.229%2022.3431%2035.8859%2021%2034.229%2021H23ZM25.123%2035H31.8906V33.5918H27.1602V33.5166L28.8896%2031.8281C29.4365%2031.3086%2029.9082%2030.8278%2030.3047%2030.3857C30.7012%2029.9391%2031.0065%2029.488%2031.2207%2029.0322C31.4349%2028.5765%2031.542%2028.0798%2031.542%2027.542C31.542%2027.0088%2031.4167%2026.5417%2031.166%2026.1406C30.9199%2025.7396%2030.5667%2025.4274%2030.1064%2025.2041C29.6462%2024.9762%2029.0993%2024.8623%2028.4658%2024.8623C27.9645%2024.8623%2027.5179%2024.9215%2027.126%2025.04C26.734%2025.154%2026.3786%2025.3089%2026.0596%2025.5049C25.7451%2025.7008%2025.4489%2025.9173%2025.1709%2026.1543L26.0527%2027.2139C26.4447%2026.8994%2026.8229%2026.6579%2027.1875%2026.4893C27.5566%2026.3161%2027.9577%2026.2295%2028.3906%2026.2295C28.8464%2026.2295%2029.2132%2026.3548%2029.4912%2026.6055C29.7692%2026.8516%2029.9082%2027.2161%2029.9082%2027.6992C29.9082%2028.0911%2029.8285%2028.4535%2029.6689%2028.7861C29.514%2029.1188%2029.2747%2029.472%2028.9512%2029.8457C28.6276%2030.2148%2028.2152%2030.6546%2027.7139%2031.165L25.123%2033.79V35Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M43%2021C41.3431%2021%2040%2022.3431%2040%2024V35.229C40%2036.8859%2041.3431%2038.229%2043%2038.229H54.229C55.8859%2038.229%2057.229%2036.8859%2057.229%2035.229V24C57.229%2022.3431%2055.8859%2021%2054.229%2021H43ZM51.2344%2028.4648C51.4167%2028.1322%2051.5078%2027.7402%2051.5078%2027.2891C51.5078%2026.5508%2051.2298%2025.9629%2050.6738%2025.5254C50.1178%2025.0833%2049.3271%2024.8623%2048.3018%2024.8623C47.6045%2024.8623%2046.9938%2024.9603%2046.4697%2025.1562C45.9456%2025.3522%2045.4945%2025.5915%2045.1162%2025.874L45.8887%2026.9883C46.0983%2026.8516%2046.3193%2026.724%2046.5518%2026.6055C46.7842%2026.487%2047.0371%2026.389%2047.3105%2026.3115C47.5885%2026.234%2047.8962%2026.1953%2048.2334%2026.1953C48.7803%2026.1953%2049.1927%2026.3161%2049.4707%2026.5576C49.7487%2026.7946%2049.8877%2027.1273%2049.8877%2027.5557C49.8877%2027.8838%2049.8079%2028.1709%2049.6484%2028.417C49.4935%2028.6631%2049.2406%2028.8568%2048.8896%2028.998C48.5387%2029.1348%2048.0739%2029.2031%2047.4951%2029.2031H46.6064V30.4951H47.4883C48.0944%2030.4951%2048.5889%2030.5521%2048.9717%2030.666C49.359%2030.7799%2049.6439%2030.9508%2049.8262%2031.1787C50.013%2031.4066%2050.1064%2031.6982%2050.1064%2032.0537C50.1064%2032.6051%2049.9287%2033.0381%2049.5732%2033.3525C49.2178%2033.6624%2048.623%2033.8174%2047.7891%2033.8174C47.3607%2033.8174%2046.9072%2033.7604%2046.4287%2033.6465C45.9502%2033.5326%2045.499%2033.3708%2045.0752%2033.1611V34.5898C45.4899%2034.7812%2045.9274%2034.9202%2046.3877%2035.0068C46.8525%2035.0934%2047.3561%2035.1367%2047.8984%2035.1367C48.8008%2035.1367%2049.5391%2035.0068%2050.1133%2034.7471C50.6875%2034.4873%2051.1136%2034.1318%2051.3916%2033.6807C51.6696%2033.2249%2051.8086%2032.7077%2051.8086%2032.1289C51.8086%2031.4681%2051.6035%2030.9372%2051.1934%2030.5361C50.7878%2030.1351%2050.1862%2029.8844%2049.3887%2029.7842V29.7363C49.8034%2029.6452%2050.168%2029.4948%2050.4824%2029.2852C50.8014%2029.071%2051.0521%2028.7975%2051.2344%2028.4648Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M63%2021C61.3431%2021%2060%2022.3431%2060%2024V35.229C60%2036.8859%2061.3431%2038.229%2063%2038.229H74.229C75.8859%2038.229%2077.229%2036.8859%2077.229%2035.229V24C77.229%2022.3431%2075.8859%2021%2074.229%2021H63ZM70.8994%2032.8057H72.2529V31.4727H70.8994V24.9785H69.334L64.7676%2031.5889V32.8057H69.3135V35H70.8994V32.8057ZM69.3135%2028.9912V31.4727H66.2578L68.7188%2027.9043C68.8372%2027.7266%2068.9489%2027.5443%2069.0537%2027.3574C69.1585%2027.166%2069.2542%2026.9792%2069.3408%2026.7969H69.3955C69.391%2026.9062%2069.3841%2027.0452%2069.375%2027.2139C69.3659%2027.3779%2069.3568%2027.5579%2069.3477%2027.7539C69.3385%2027.9499%2069.3294%2028.1549%2069.3203%2028.3691C69.3158%2028.5788%2069.3135%2028.7861%2069.3135%2028.9912Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M83%2021C81.3431%2021%2080%2022.3431%2080%2024V35.229C80%2036.8859%2081.3431%2038.229%2083%2038.229H94.229C95.8859%2038.229%2097.229%2036.8859%2097.229%2035.229V24C97.229%2022.3431%2095.8859%2021%2094.229%2021H83ZM90.2158%2029.1006C89.7282%2028.8682%2089.1631%2028.752%2088.5205%2028.752C88.1833%2028.752%2087.9007%2028.7702%2087.6729%2028.8066C87.445%2028.8385%2087.249%2028.8727%2087.085%2028.9092L87.3037%2026.4209H91.084V25.0059H85.8887L85.5127%2029.8936L86.2168%2030.3105C86.4219%2030.2559%2086.6771%2030.2057%2086.9824%2030.1602C87.2923%2030.11%2087.584%2030.085%2087.8574%2030.085C88.6367%2030.085%2089.2087%2030.2422%2089.5732%2030.5566C89.9424%2030.8665%2090.127%2031.3086%2090.127%2031.8828C90.127%2032.3158%2090.0358%2032.6735%2089.8535%2032.9561C89.6758%2033.2386%2089.4206%2033.4482%2089.0879%2033.585C88.7552%2033.7217%2088.3564%2033.79%2087.8916%2033.79C87.4541%2033.79%2086.9961%2033.7308%2086.5176%2033.6123C86.0391%2033.4893%2085.6289%2033.332%2085.2871%2033.1406V34.5898C85.6152%2034.7721%2086.0049%2034.9089%2086.4561%2035C86.9118%2035.0911%2087.4017%2035.1367%2087.9258%2035.1367C88.7507%2035.1367%2089.4502%2035%2090.0244%2034.7266C90.5986%2034.4531%2091.0339%2034.0635%2091.3301%2033.5576C91.6263%2033.0472%2091.7744%2032.4411%2091.7744%2031.7393C91.7744%2031.0967%2091.6377%2030.5544%2091.3643%2030.1123C91.0908%2029.6657%2090.708%2029.3285%2090.2158%2029.1006Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M103%2021C101.343%2021%20100%2022.3431%20100%2024V35.229C100%2036.8859%20101.343%2038.229%20103%2038.229H114.229C115.886%2038.229%20117.229%2036.8859%20117.229%2035.229V24C117.229%2022.3431%20115.886%2021%20114.229%2021H103ZM105.26%2029.0049C105.178%2029.5745%20105.137%2030.1533%20105.137%2030.7412C105.137%2031.4795%20105.226%2032.1243%20105.403%2032.6758C105.581%2033.2227%20105.829%2033.6784%20106.148%2034.043C106.467%2034.4076%20106.839%2034.681%20107.263%2034.8633C107.691%2035.0456%20108.154%2035.1367%20108.65%2035.1367C109.325%2035.1367%20109.906%2035%20110.394%2034.7266C110.886%2034.4531%20111.264%2034.0612%20111.528%2033.5508C111.797%2033.0404%20111.932%2032.432%20111.932%2031.7256C111.932%2031.0693%20111.813%2030.5111%20111.576%2030.0508C111.344%2029.5905%20111.011%2029.2396%20110.578%2028.998C110.145%2028.752%20109.637%2028.6289%20109.054%2028.6289C108.662%2028.6289%20108.318%2028.6836%20108.021%2028.793C107.725%2028.8978%20107.475%2029.0391%20107.27%2029.2168C107.064%2029.3945%20106.894%2029.5973%20106.757%2029.8252H106.675C106.707%2029.1188%20106.823%2028.4922%20107.023%2027.9453C107.224%2027.3939%20107.559%2026.9609%20108.028%2026.6465C108.498%2026.3275%20109.152%2026.168%20109.99%2026.168C110.2%2026.168%20110.41%2026.1816%20110.619%2026.209C110.833%2026.2363%20111.029%2026.2751%20111.207%2026.3252V24.9922C111.043%2024.9512%20110.836%2024.9215%20110.585%2024.9033C110.334%2024.8851%20110.109%2024.876%20109.908%2024.876C109.133%2024.876%20108.47%2024.9854%20107.919%2025.2041C107.368%2025.4183%20106.91%2025.7145%20106.545%2026.0928C106.185%2026.471%20105.902%2026.9085%20105.697%2027.4053C105.492%2027.902%20105.346%2028.4352%20105.26%2029.0049ZM109.874%2033.3047C109.56%2033.6419%20109.143%2033.8105%20108.623%2033.8105C108.313%2033.8105%20108.042%2033.7422%20107.81%2033.6055C107.577%2033.4688%20107.383%2033.2887%20107.229%2033.0654C107.074%2032.8376%20106.957%2032.5892%20106.88%2032.3203C106.802%2032.0514%20106.764%2031.7848%20106.764%2031.5205C106.764%2031.2607%20106.841%2031.0055%20106.996%2030.7549C107.156%2030.5042%20107.379%2030.2969%20107.666%2030.1328C107.953%2029.9688%20108.288%2029.8867%20108.671%2029.8867C109.231%2029.8867%20109.651%2030.0531%20109.929%2030.3857C110.211%2030.7184%20110.353%2031.1696%20110.353%2031.7393C110.353%2032.4411%20110.193%2032.9629%20109.874%2033.3047Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M123%2021C121.343%2021%20120%2022.3431%20120%2024V35.229C120%2036.8859%20121.343%2038.229%20123%2038.229H134.229C135.886%2038.229%20137.229%2036.8859%20137.229%2035.229V24C137.229%2022.3431%20135.886%2021%20134.229%2021H123ZM130.188%2026.4141L126.265%2035H127.994L131.918%2026.1064V25.0059H125V26.4141H130.188Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",PrevOutlineButton="data:image/svg+xml,%3csvg%20width='67'%20height='29'%20viewBox='0%200%2067%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='65'%20height='27'%20rx='4.67376'%20stroke='%23AAAAAA'%20stroke-width='2'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.1815%2014.4781L13.1815%2014.4796L18.2652%2020L20%2018.1151L16.6553%2014.4781L20%2010.8365L18.2652%208.95013L13.1815%2014.4766L13.1815%2014.4781Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M49.6172%2019L47.1211%2012.4492H48.9902L50.2559%2016.1816C50.3262%2016.4004%2050.3809%2016.6309%2050.4199%2016.873C50.4629%2017.1152%2050.4922%2017.332%2050.5078%2017.5234H50.5547C50.5664%2017.3164%2050.5938%2017.0957%2050.6367%2016.8613C50.6836%2016.627%2050.7441%2016.4004%2050.8184%2016.1816L52.0781%2012.4492H53.9473L51.4512%2019H49.6172Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M43.6699%2012.3262C44.2754%2012.3262%2044.7969%2012.4434%2045.2344%2012.6777C45.6719%2012.9082%2046.0098%2013.2441%2046.248%2013.6855C46.4863%2014.127%2046.6055%2014.666%2046.6055%2015.3027V16.1699H42.3809C42.4004%2016.6738%2042.5508%2017.0703%2042.832%2017.3594C43.1172%2017.6445%2043.5117%2017.7871%2044.0156%2017.7871C44.4336%2017.7871%2044.8164%2017.7441%2045.1641%2017.6582C45.5117%2017.5723%2045.8691%2017.4434%2046.2363%2017.2715V18.6543C45.9121%2018.8145%2045.5723%2018.9316%2045.2168%2019.0059C44.8652%2019.0801%2044.4375%2019.1172%2043.9336%2019.1172C43.2773%2019.1172%2042.6953%2018.9961%2042.1875%2018.7539C41.6836%2018.5117%2041.2871%2018.1426%2040.998%2017.6465C40.7129%2017.1504%2040.5703%2016.5254%2040.5703%2015.7715C40.5703%2015.0059%2040.6992%2014.3691%2040.957%2013.8613C41.2188%2013.3496%2041.582%2012.9668%2042.0469%2012.7129C42.5117%2012.4551%2043.0527%2012.3262%2043.6699%2012.3262ZM43.6816%2013.5977C43.334%2013.5977%2043.0449%2013.709%2042.8145%2013.9316C42.5879%2014.1543%2042.457%2014.5039%2042.4219%2014.9805H44.9297C44.9258%2014.7148%2044.877%2014.4785%2044.7832%2014.2715C44.6934%2014.0645%2044.5566%2013.9004%2044.373%2013.7793C44.1934%2013.6582%2043.9629%2013.5977%2043.6816%2013.5977Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M39.1758%2012.3262C39.2656%2012.3262%2039.3691%2012.332%2039.4863%2012.3438C39.6074%2012.3516%2039.7051%2012.3633%2039.7793%2012.3789L39.6445%2014.0547C39.5859%2014.0352%2039.502%2014.0215%2039.3926%2014.0137C39.2871%2014.002%2039.1953%2013.9961%2039.1172%2013.9961C38.8867%2013.9961%2038.6621%2014.0254%2038.4434%2014.084C38.2285%2014.1426%2038.0352%2014.2383%2037.8633%2014.3711C37.6914%2014.5%2037.5547%2014.6719%2037.4531%2014.8867C37.3555%2015.0977%2037.3066%2015.3574%2037.3066%2015.666V19H35.5195V12.4492H36.873L37.1367%2013.5508H37.2246C37.3535%2013.3281%2037.5137%2013.125%2037.7051%2012.9414C37.9004%2012.7539%2038.1211%2012.6055%2038.3672%2012.4961C38.6172%2012.3828%2038.8867%2012.3262%2039.1758%2012.3262Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M30.8613%2010.4336C31.9668%2010.4336%2032.7734%2010.6719%2033.2812%2011.1484C33.7891%2011.6211%2034.043%2012.2734%2034.043%2013.1055C34.043%2013.4805%2033.9863%2013.8398%2033.873%2014.1836C33.7598%2014.5234%2033.5742%2014.8262%2033.3164%2015.0918C33.0625%2015.3574%2032.7227%2015.5684%2032.2969%2015.7246C31.8711%2015.877%2031.3457%2015.9531%2030.7207%2015.9531H29.9414V19H28.125V10.4336H30.8613ZM30.7676%2011.9219H29.9414V14.4648H30.5391C30.8789%2014.4648%2031.1738%2014.4199%2031.4238%2014.3301C31.6738%2014.2402%2031.8672%2014.0996%2032.0039%2013.9082C32.1406%2013.7168%2032.209%2013.4707%2032.209%2013.1699C32.209%2012.748%2032.0918%2012.4355%2031.8574%2012.2324C31.623%2012.0254%2031.2598%2011.9219%2030.7676%2011.9219Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",PrevSolidButton="data:image/svg+xml,%3csvg%20width='67'%20height='29'%20viewBox='0%200%2067%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='67'%20height='29'%20rx='5.67376'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.1815%2014.4781L13.1815%2014.4796L18.2652%2020L20%2018.1151L16.6553%2014.4781L20%2010.8365L18.2652%208.95013L13.1815%2014.4766L13.1815%2014.4781Z'%20fill='%23212121'/%3e%3cpath%20d='M49.6172%2019L47.1211%2012.4492H48.9902L50.2559%2016.1816C50.3262%2016.4004%2050.3809%2016.6309%2050.4199%2016.873C50.4629%2017.1152%2050.4922%2017.332%2050.5078%2017.5234H50.5547C50.5664%2017.3164%2050.5938%2017.0957%2050.6367%2016.8613C50.6836%2016.627%2050.7441%2016.4004%2050.8184%2016.1816L52.0781%2012.4492H53.9473L51.4512%2019H49.6172Z'%20fill='%23212121'/%3e%3cpath%20d='M43.6699%2012.3262C44.2754%2012.3262%2044.7969%2012.4434%2045.2344%2012.6777C45.6719%2012.9082%2046.0098%2013.2441%2046.248%2013.6855C46.4863%2014.127%2046.6055%2014.666%2046.6055%2015.3027V16.1699H42.3809C42.4004%2016.6738%2042.5508%2017.0703%2042.832%2017.3594C43.1172%2017.6445%2043.5117%2017.7871%2044.0156%2017.7871C44.4336%2017.7871%2044.8164%2017.7441%2045.1641%2017.6582C45.5117%2017.5723%2045.8691%2017.4434%2046.2363%2017.2715V18.6543C45.9121%2018.8145%2045.5723%2018.9316%2045.2168%2019.0059C44.8652%2019.0801%2044.4375%2019.1172%2043.9336%2019.1172C43.2773%2019.1172%2042.6953%2018.9961%2042.1875%2018.7539C41.6836%2018.5117%2041.2871%2018.1426%2040.998%2017.6465C40.7129%2017.1504%2040.5703%2016.5254%2040.5703%2015.7715C40.5703%2015.0059%2040.6992%2014.3691%2040.957%2013.8613C41.2188%2013.3496%2041.582%2012.9668%2042.0469%2012.7129C42.5117%2012.4551%2043.0527%2012.3262%2043.6699%2012.3262ZM43.6816%2013.5977C43.334%2013.5977%2043.0449%2013.709%2042.8145%2013.9316C42.5879%2014.1543%2042.457%2014.5039%2042.4219%2014.9805H44.9297C44.9258%2014.7148%2044.877%2014.4785%2044.7832%2014.2715C44.6934%2014.0645%2044.5566%2013.9004%2044.373%2013.7793C44.1934%2013.6582%2043.9629%2013.5977%2043.6816%2013.5977Z'%20fill='%23212121'/%3e%3cpath%20d='M39.1758%2012.3262C39.2656%2012.3262%2039.3691%2012.332%2039.4863%2012.3438C39.6074%2012.3516%2039.7051%2012.3633%2039.7793%2012.3789L39.6445%2014.0547C39.5859%2014.0352%2039.502%2014.0215%2039.3926%2014.0137C39.2871%2014.002%2039.1953%2013.9961%2039.1172%2013.9961C38.8867%2013.9961%2038.6621%2014.0254%2038.4434%2014.084C38.2285%2014.1426%2038.0352%2014.2383%2037.8633%2014.3711C37.6914%2014.5%2037.5547%2014.6719%2037.4531%2014.8867C37.3555%2015.0977%2037.3066%2015.3574%2037.3066%2015.666V19H35.5195V12.4492H36.873L37.1367%2013.5508H37.2246C37.3535%2013.3281%2037.5137%2013.125%2037.7051%2012.9414C37.9004%2012.7539%2038.1211%2012.6055%2038.3672%2012.4961C38.6172%2012.3828%2038.8867%2012.3262%2039.1758%2012.3262Z'%20fill='%23212121'/%3e%3cpath%20d='M30.8613%2010.4336C31.9668%2010.4336%2032.7734%2010.6719%2033.2812%2011.1484C33.7891%2011.6211%2034.043%2012.2734%2034.043%2013.1055C34.043%2013.4805%2033.9863%2013.8398%2033.873%2014.1836C33.7598%2014.5234%2033.5742%2014.8262%2033.3164%2015.0918C33.0625%2015.3574%2032.7227%2015.5684%2032.2969%2015.7246C31.8711%2015.877%2031.3457%2015.9531%2030.7207%2015.9531H29.9414V19H28.125V10.4336H30.8613ZM30.7676%2011.9219H29.9414V14.4648H30.5391C30.8789%2014.4648%2031.1738%2014.4199%2031.4238%2014.3301C31.6738%2014.2402%2031.8672%2014.0996%2032.0039%2013.9082C32.1406%2013.7168%2032.209%2013.4707%2032.209%2013.1699C32.209%2012.748%2032.0918%2012.4355%2031.8574%2012.2324C31.623%2012.0254%2031.2598%2011.9219%2030.7676%2011.9219Z'%20fill='%23212121'/%3e%3c/svg%3e",ProgressIndicator="data:image/svg+xml,%3csvg%20width='86'%20height='7'%20viewBox='0%200%2086%207'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20opacity='0.3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%201C0%200.447715%200.447715%200%201%200H85C85.5523%200%2086%200.447715%2086%201V6C86%206.55228%2085.5523%207%2085%207H1C0.447716%207%200%206.55228%200%206V1Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%201C0%200.447715%200.447715%200%201%200H43C43.5523%200%2044%200.447715%2044%201V6C44%206.55228%2043.5523%207%2043%207H0.999999C0.447714%207%200%206.55228%200%206V1Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",SingleChoice="data:image/svg+xml,%3csvg%20width='58'%20height='38'%20viewBox='0%200%2058%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.75'%20y='0.75'%20width='56.5'%20height='36.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20d='M17%2020C17%2019.4477%2017.4477%2019%2018%2019H52C52.5523%2019%2053%2019.4477%2053%2020C53%2020.5523%2052.5523%2021%2052%2021H18C17.4477%2021%2017%2020.5523%2017%2020Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M17%2030C17%2029.4477%2017.4477%2029%2018%2029H52C52.5523%2029%2053%2029.4477%2053%2030C53%2030.5523%2052.5523%2031%2052%2031H18C17.4477%2031%2017%2030.5523%2017%2030Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M17%2010C17%209.44772%2017.4477%209%2018%209H52C52.5523%209%2053%209.44772%2053%2010C53%2010.5523%2052.5523%2011%2052%2011H18C17.4477%2011%2017%2010.5523%2017%2010Z'%20fill='%23AAAAAA'/%3e%3crect%20x='6.75'%20y='6.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3crect%20x='8'%20y='8'%20width='3'%20height='3'%20rx='1.5'%20fill='%23AAAAAA'/%3e%3crect%20x='6.75'%20y='16.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3crect%20x='6.75'%20y='26.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3c/svg%3e",SingleMediaChoice="data:image/svg+xml,%3csvg%20width='112'%20height='37'%20viewBox='0%200%20112%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.9355%2014.9677L15.871%2020H10L12.9355%2014.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.6453%2012.0322L24.6776%2020H14.613L19.6453%2012.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.6614%2011.6129C16.9353%2011.6129%2017.9679%2010.5803%2017.9679%209.30645C17.9679%208.03263%2016.9353%207%2015.6614%207C14.3876%207%2013.355%208.03263%2013.355%209.30645C13.355%2010.5803%2014.3876%2011.6129%2015.6614%2011.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M14%2030C14%2029.4477%2014.4477%2029%2015%2029H27C27.5523%2029%2028%2029.4477%2028%2030C28%2030.5523%2027.5523%2031%2027%2031H15C14.4477%2031%2014%2030.5523%2014%2030Z'%20fill='%23AAAAAA'/%3e%3crect%20x='4.75'%20y='26.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3crect%20x='6'%20y='28'%20width='3'%20height='3'%20rx='1.5'%20fill='%23AAAAAA'/%3e%3crect%20x='39.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M51.9355%2015.9677L54.871%2021H49L51.9355%2015.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M58.6453%2013.0322L63.6776%2021H53.613L58.6453%2013.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M54.6614%2012.6129C55.9353%2012.6129%2056.9679%2011.5803%2056.9679%2010.3065C56.9679%209.03263%2055.9353%208%2054.6614%208C53.3876%208%2052.355%209.03263%2052.355%2010.3065C52.355%2011.5803%2053.3876%2012.6129%2054.6614%2012.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M53%2030C53%2029.4477%2053.4477%2029%2054%2029H66C66.5523%2029%2067%2029.4477%2067%2030C67%2030.5523%2066.5523%2031%2066%2031H54C53.4477%2031%2053%2030.5523%2053%2030Z'%20fill='%23AAAAAA'/%3e%3crect%20x='43.75'%20y='26.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3crect%20x='78.75'%20y='0.75'%20width='32.5'%20height='35.5'%20rx='3.25'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M90.9355%2015.9677L93.871%2021H88L90.9355%2015.9677Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M97.6453%2013.0322L102.678%2021H92.613L97.6453%2013.0322Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M93.6614%2012.6129C94.9353%2012.6129%2095.9679%2011.5803%2095.9679%2010.3065C95.9679%209.03263%2094.9353%208%2093.6614%208C92.3876%208%2091.355%209.03263%2091.355%2010.3065C91.355%2011.5803%2092.3876%2012.6129%2093.6614%2012.6129Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M92%2030C92%2029.4477%2092.4477%2029%2093%2029H105C105.552%2029%20106%2029.4477%20106%2030C106%2030.5523%20105.552%2031%20105%2031H93C92.4477%2031%2092%2030.5523%2092%2030Z'%20fill='%23AAAAAA'/%3e%3crect%20x='82.75'%20y='26.75'%20width='5.5'%20height='5.5'%20rx='2.75'%20stroke='%23AAAAAA'%20stroke-width='1.5'/%3e%3c/svg%3e",SubmitButton="data:image/svg+xml,%3csvg%20width='67'%20height='29'%20viewBox='0%200%2067%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='67'%20height='29'%20rx='5.67376'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.5515%2012.0039V9.88281H26.7644V19H28.1296L28.4285%2018.2793H28.5515C28.7234%2018.4941%2028.948%2018.6875%2029.2253%2018.8594C29.5027%2019.0312%2029.8816%2019.1172%2030.3621%2019.1172C30.8621%2019.1172%2031.3015%2018.9902%2031.6804%2018.7363C32.0593%2018.4785%2032.3542%2018.0977%2032.5652%2017.5938C32.7761%2017.0859%2032.8816%2016.459%2032.8816%2015.7129C32.8816%2014.6035%2032.6531%2013.7617%2032.196%2013.1875C31.739%2012.6133%2031.1433%2012.3262%2030.4089%2012.3262C29.9363%2012.3262%2029.5515%2012.4219%2029.2546%2012.6133C28.9578%2012.8008%2028.7234%2013.0293%2028.5515%2013.2988H28.4812C28.5007%2013.166%2028.5164%2012.9785%2028.5281%2012.7363C28.5437%2012.4941%2028.5515%2012.25%2028.5515%2012.0039ZM29.0906%2013.9492C29.2742%2013.8203%2029.5222%2013.7559%2029.8347%2013.7559C30.2136%2013.7559%2030.5125%2013.918%2030.7312%2014.2422C30.95%2014.5664%2031.0593%2015.0488%2031.0593%2015.6895C31.0593%2016.3301%2030.95%2016.8203%2030.7312%2017.1602C30.5164%2017.5%2030.2253%2017.6699%2029.8582%2017.6699C29.3621%2017.6699%2029.0203%2017.502%2028.8328%2017.166C28.6453%2016.8262%2028.5515%2016.3379%2028.5515%2015.7012V15.5078C28.5593%2015.1133%2028.6042%2014.7871%2028.6863%2014.5293C28.7722%2014.2715%2028.907%2014.0781%2029.0906%2013.9492ZM47.9343%2019V12.4492H46.1472V19H47.9343ZM47.7292%2010.0703C47.5378%209.94531%2047.3093%209.88281%2047.0437%209.88281C46.7742%209.88281%2046.5437%209.94531%2046.3523%2010.0703C46.1648%2010.1914%2046.071%2010.4199%2046.071%2010.7559C46.071%2011.0879%2046.1648%2011.3184%2046.3523%2011.4473C46.5437%2011.5723%2046.7742%2011.6348%2047.0437%2011.6348C47.3093%2011.6348%2047.5378%2011.5723%2047.7292%2011.4473C47.9207%2011.3184%2048.0164%2011.0879%2048.0164%2010.7559C48.0164%2010.4199%2047.9207%2010.1914%2047.7292%2010.0703ZM53.1433%2017.6348C52.9597%2017.6738%2052.7703%2017.6934%2052.575%2017.6934C52.3406%2017.6934%2052.1511%2017.6328%2052.0066%2017.5117C51.866%2017.3867%2051.7957%2017.1992%2051.7957%2016.9492V13.791H53.6296V12.4492H51.7957V11.0547H50.6531L50.1375%2012.4375L49.1531%2013.0352V13.791H50.0085V16.9492C50.0085%2017.5117%2050.0964%2017.9512%2050.2722%2018.2676C50.4519%2018.5801%2050.696%2018.8008%2051.0046%2018.9297C51.3171%2019.0547%2051.6687%2019.1172%2052.0593%2019.1172C52.3953%2019.1172%2052.7039%2019.0879%2052.9851%2019.0293C53.2703%2018.9746%2053.5085%2018.9043%2053.7%2018.8184V17.4883C53.5164%2017.5469%2053.3308%2017.5957%2053.1433%2017.6348ZM42.0515%2012.3262C42.7937%2012.3262%2043.3542%2012.5176%2043.7332%2012.9004C44.116%2013.2793%2044.3074%2013.8887%2044.3074%2014.7285V19H42.5144V15.1738C42.5144%2014.7051%2042.4343%2014.3516%2042.2742%2014.1133C42.114%2013.875%2041.866%2013.7559%2041.53%2013.7559C41.0574%2013.7559%2040.7214%2013.9258%2040.5222%2014.2656C40.323%2014.6016%2040.2234%2015.084%2040.2234%2015.7129V19H38.4363V15.1738C38.4363%2014.8613%2038.4011%2014.5996%2038.3308%2014.3887C38.2605%2014.1777%2038.1531%2014.0195%2038.0085%2013.9141C37.864%2013.8086%2037.6785%2013.7559%2037.4519%2013.7559C37.1199%2013.7559%2036.8582%2013.8398%2036.6667%2014.0078C36.4792%2014.1719%2036.3445%2014.416%2036.2625%2014.7402C36.1843%2015.0605%2036.1453%2015.4531%2036.1453%2015.918V19H34.3582V12.4492H35.7234L35.9636%2013.2871H36.0632C36.196%2013.0605%2036.3621%2012.877%2036.5613%2012.7363C36.7644%2012.5957%2036.9871%2012.4922%2037.2292%2012.4258C37.4714%2012.3594%2037.7175%2012.3262%2037.9675%2012.3262C38.448%2012.3262%2038.8542%2012.4043%2039.1863%2012.5605C39.5222%2012.7168%2039.78%2012.959%2039.9597%2013.2871H40.1179C40.3132%2012.9512%2040.5886%2012.707%2040.9441%2012.5547C41.3035%2012.4023%2041.6726%2012.3262%2042.0515%2012.3262ZM24.8894%2012.4492V19H23.5183L23.2781%2018.1621H23.1843C23.0437%2018.3848%2022.8679%2018.5664%2022.657%2018.707C22.446%2018.8477%2022.2136%2018.9512%2021.9597%2019.0176C21.7058%2019.084%2021.4421%2019.1172%2021.1687%2019.1172C20.7%2019.1172%2020.2917%2019.0352%2019.9441%2018.8711C19.5964%2018.7031%2019.325%2018.4434%2019.1296%2018.0918C18.9382%2017.7402%2018.8425%2017.2832%2018.8425%2016.7207V12.4492H20.6296V16.2754C20.6296%2016.7441%2020.7136%2017.0977%2020.8816%2017.3359C21.0496%2017.5742%2021.3171%2017.6934%2021.6843%2017.6934C22.0476%2017.6934%2022.3328%2017.6113%2022.5398%2017.4473C22.7468%2017.2793%2022.8914%2017.0352%2022.9734%2016.7148C23.0593%2016.3906%2023.1023%2015.9961%2023.1023%2015.5312V12.4492H24.8894ZM17.0964%2017.9453C17.3425%2017.5703%2017.4656%2017.1289%2017.4656%2016.6211C17.4656%2016.1719%2017.3816%2015.7969%2017.2136%2015.4961C17.0457%2015.1914%2016.8054%2014.9277%2016.4929%2014.7051C16.1843%2014.4785%2015.8113%2014.2617%2015.3738%2014.0547C15.0144%2013.8828%2014.7136%2013.7324%2014.4714%2013.6035C14.2332%2013.4746%2014.0535%2013.3418%2013.9324%2013.2051C13.8152%2013.0645%2013.7566%2012.8926%2013.7566%2012.6895C13.7566%2012.5176%2013.7976%2012.3672%2013.8796%2012.2383C13.9617%2012.1055%2014.0828%2012.0039%2014.2429%2011.9336C14.4031%2011.8594%2014.5964%2011.8223%2014.823%2011.8223C15.1472%2011.8223%2015.4656%2011.8672%2015.7781%2011.957C16.0906%2012.043%2016.4441%2012.166%2016.8386%2012.3262L17.4246%2010.9141C16.9832%2010.7188%2016.5593%2010.5703%2016.1531%2010.4688C15.7507%2010.3633%2015.3269%2010.3105%2014.8816%2010.3105C14.2878%2010.3105%2013.7722%2010.4082%2013.3347%2010.6035C12.9011%2010.7949%2012.5671%2011.0723%2012.3328%2011.4355C12.0984%2011.7988%2011.9812%2012.2363%2011.9812%2012.748C11.9812%2013.1387%2012.0476%2013.4746%2012.1804%2013.7559C12.3171%2014.0332%2012.491%2014.2695%2012.7019%2014.4648C12.9128%2014.6602%2013.1355%2014.8262%2013.3699%2014.9629C13.6042%2015.0957%2013.821%2015.209%2014.0203%2015.3027C14.3367%2015.4551%2014.6199%2015.5977%2014.8699%2015.7305C15.1238%2015.8633%2015.323%2016.0059%2015.4675%2016.1582C15.6121%2016.3105%2015.6843%2016.4941%2015.6843%2016.709C15.6843%2016.8848%2015.6433%2017.041%2015.5613%2017.1777C15.4792%2017.3145%2015.3464%2017.4219%2015.1628%2017.5C14.9832%2017.5781%2014.7449%2017.6172%2014.448%2017.6172C14.0183%2017.6172%2013.5847%2017.5449%2013.1472%2017.4004C12.7097%2017.2559%2012.2878%2017.0938%2011.8816%2016.9141V18.6016C12.116%2018.7148%2012.3621%2018.8105%2012.6199%2018.8887C12.8816%2018.9629%2013.1531%2019.0195%2013.4343%2019.0586C13.7195%2019.0977%2014.0105%2019.1172%2014.3074%2019.1172C14.9792%2019.1172%2015.5496%2019.0156%2016.0183%2018.8125C16.491%2018.6094%2016.8503%2018.3203%2017.0964%2017.9453Z'%20fill='%23212121'/%3e%3c/svg%3e",TextArea="data:image/svg+xml,%3csvg%20width='52'%20height='36'%20viewBox='0%200%2052%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%206C6.44772%206%206%206.44772%206%207C6%207.55228%206.44771%208%207%208H45C45.5523%208%2046%207.55228%2046%207C46%206.44772%2045.5523%206%2045%206H7ZM7%2011C6.44772%2011%206%2011.4477%206%2012C6%2012.5523%206.44771%2013%207%2013H42C42.5523%2013%2043%2012.5523%2043%2012C43%2011.4477%2042.5523%2011%2042%2011H7ZM6%2017C6%2016.4477%206.44772%2016%207%2016H45C45.5523%2016%2046%2016.4477%2046%2017C46%2017.5523%2045.5523%2018%2045%2018H7C6.44771%2018%206%2017.5523%206%2017ZM7%2021C6.44772%2021%206%2021.4477%206%2022C6%2022.5523%206.44772%2023%207%2023H23C23.5523%2023%2024%2022.5523%2024%2022C24%2021.4477%2023.5523%2021%2023%2021H7Z'%20fill='%23AAAAAA'/%3e%3cpath%20d='M43.8547%2031.1701L47.3072%2031.3069L47.1704%2027.8544L43.8547%2031.1701Z'%20fill='%23AAAAAA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%204C0%201.79086%201.79086%200%204%200H48C50.2091%200%2052%201.79086%2052%204V32C52%2034.2091%2050.2091%2036%2048%2036H4C1.79086%2036%200%2034.2091%200%2032V4ZM4%202H48C49.1046%202%2050%202.89543%2050%204V32C50%2033.1046%2049.1046%2034%2048%2034H4C2.89543%2034%202%2033.1046%202%2032V4C2%202.89543%202.89543%202%204%202Z'%20fill='%23AAAAAA'/%3e%3c/svg%3e",defaultChoiceElementData={children:[],type:"dpcChoice",locked:!1,visible:{default:!0},wrap:!0,size:{default:{width:{value:600,unit:"px"},height:"auto"}},options:{name:`Choice ${Math.floor(Math.random()*100)}`}},defaultMediaChoiceElementData={children:[],type:"dpcMediaChoice",locked:!1,visible:{default:!0},wrap:!0,size:{default:{height:"auto",width:{value:600,unit:"px"}}},options:{name:`Media Choice ${Math.floor(Math.random()*100)}`}},defaultInputElementData={children:[],type:"survey:input",locked:!1,visible:{default:!0},wrap:!0},defaultOpinionScaleElementData={children:[],type:"dpcOpinionScale",keepAspectRatio:!1,locked:!1,visible:{default:!0},wrap:!0,size:{default:{height:"auto",width:{value:600,unit:"px"}}},options:{name:`Opinion Scale ${Math.floor(Math.random()*100)}`,displayLabels:!0}},defaultErrorMessageElementData={children:[],type:"survey:errorMessage",locked:!1,visible:{default:!0},wrap:!0,size:{default:{height:"auto",width:{value:600,unit:"px"}}},styles:{backgroundColor:{default:"#FFEEED"},padding:getPaddingValue(17),corner:getCornerValue(8),typography:{default:{color:"#000000",font:"Open Sans",fontVariant:"400",fontSize:16}}}},defaultButtonElementData={children:[],type:"button",locked:!1,visible:{default:!0},wrap:!0,section:"foreground",parent:"foreground",options:{showIcon:!0},size:{default:{width:{value:100,unit:"px"},height:{value:41,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:getCornerValue(8),typography:{default:{color:"#FFF",font:"Open Sans",fontVariant:"700",fontSize:17,align:"center"}},hover:{svg:{default:{fill:"#FFF"}}}}},defaultSubmitButtonElementData={children:[],type:"survey:submit",locked:!1,visible:{default:!0},section:"foreground",parent:"foreground",wrap:!0,styles:{backgroundColor:{default:"#4980F5"},corner:getCornerValue(8),typography:{default:{color:"#FFF",font:"Open Sans",fontVariant:"500",fontSize:18,align:"center"}}}},defaultProgressIndicatorElementData={children:[],type:"dpcProgressIndicator",locked:!1,section:"foreground",parent:"foreground",visible:{default:!0},wrap:!0,styles:{backgroundColor:{default:"#D7D7D7"}},size:{default:{height:{value:5,unit:"px"},width:{value:100,unit:"%"}}}},singleChoiceElement={id:nanoid$1(),type:"element",tier:Tiers.PRO,title:i18next.t("Single choice"),payload:{elementData:deepmerge(defaultChoiceElementData,{options:{}})},previewOptions:{width:179,height:110,icon:{src:SingleChoice,width:"58px",height:"38px"},iconSpace:"5px"}},multipleChoiceElement={id:nanoid$1(),type:"element",tier:Tiers.PRO,title:i18next.t("Multiple choice"),payload:{elementData:deepmerge(defaultChoiceElementData,{options:{type:"multiple"}})},previewOptions:{width:179,height:110,icon:{src:MultipleChoice,width:"58px",height:"38px"},iconSpace:"5px"}},singleMediaChoiceElement={id:nanoid$1(),type:"element",tier:Tiers.PRO,title:i18next.t("Single photo Choice"),payload:{elementData:deepmerge(defaultMediaChoiceElementData,{options:{}})},previewOptions:{width:179,height:110,icon:{src:SingleMediaChoice,width:"112px",height:"37px"},iconSpace:"7px"}},multipleMediaChoiceElement={id:nanoid$1(),type:"element",tier:Tiers.PRO,title:i18next.t("Mullti photo Choice"),payload:{elementData:deepmerge(defaultMediaChoiceElementData,{options:{type:"multiple"}})},previewOptions:{width:179,height:110,icon:{src:MultipleMediaChoice,width:"112px",height:"37px"},iconSpace:"7px"}},inputElement={id:nanoid$1(),type:"element",title:i18next.t("Text Input"),payload:{elementData:deepmerge(defaultInputElementData,{size:{default:{width:{value:600,unit:"px"},height:"auto"}},options:{type:"text",label:i18next.t("Input"),showLabel:!1,placeholder:"Enter your answer here",attributes:{name:"surveyInput"},isCustom:!0}})},previewOptions:{width:179,height:110,icon:{src:Input,width:"53px",height:"18px"},iconSpace:"15px"}},textareaElement={id:nanoid$1(),type:"element",title:i18next.t("Text area"),payload:{elementData:deepmerge(defaultInputElementData,{size:{default:{width:{value:600,unit:"px"},height:"auto"}},options:{type:"textarea",label:i18next.t("Text Area"),showLabel:!1,attributes:{name:"Text Area"},placeholder:"Enter your answer here",isCustom:!0}})},previewOptions:{width:179,height:110,icon:{src:TextArea,width:"52px",height:"36px"},iconSpace:"10px"}},opinionScaleElement={id:nanoid$1(),type:"element",title:i18next.t("Opinion scale"),tier:Tiers.PRO,payload:{elementData:deepmerge(defaultOpinionScaleElementData,{})},previewOptions:{width:179,height:110,icon:{src:OpinionScale,width:"137px",height:"38px"},iconSpace:"12px"}},errorMessageElement={id:nanoid$1(),type:"element",title:i18next.t("Error message"),payload:{elementData:deepmerge(defaultErrorMessageElementData,{options:{content:i18next.t("Please select a field to proceed.")}})},previewOptions:{width:179,height:110,icon:{src:ErrorMessage$1,width:"105px",height:"29px"},iconSpace:"11px"}},submitButtonElement={id:nanoid$1(),type:"element",title:i18next.t("Submit Button"),payload:{elementData:deepmerge(defaultSubmitButtonElementData,{size:{default:{width:{value:109,unit:"px"},height:{value:52,unit:"px"}}},options:{content:i18next.t("Submit")}})},previewOptions:{width:179,height:110,icon:{src:SubmitButton,width:"67px",height:"29px"},iconSpace:"11px"}},progressIndicator={id:nanoid$1(),type:"element",title:i18next.t("Progress indicator"),payload:{elementData:deepmerge(defaultProgressIndicatorElementData,{})},previewOptions:{width:179,height:110,icon:{src:ProgressIndicator,width:"86px",height:"7px"},iconSpace:"19px"}},prevSolidButton={id:nanoid$1(),type:"element",title:i18next.t("Prev button"),payload:{elementData:deepmerge({...defaultButtonElementData,type:"survey:prev"},{styles:{backgroundColor:{default:"#4980F5"}},options:{content:i18next.t("Prev"),showIcon:!0,iconId:"@MtIckeyboard_arrow_left",iconContent:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="18"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>',loadedContentId:"@MtIckeyboard_arrow_left"}})},previewOptions:{width:179,height:110,icon:{src:PrevSolidButton,width:"67px",height:"29px"},iconSpace:"19px"}},nextSolidButton={id:nanoid$1(),type:"element",title:i18next.t("Next/Submit button"),payload:{elementData:deepmerge({...defaultButtonElementData,type:"survey:next"},{styles:{backgroundColor:{default:"#4980F5"}},options:{content:i18next.t("Next"),toggleToSubmit:!0,showIcon:!0,iconId:"@MtIcchevron_right",iconAlign:"right",iconContent:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>',loadedContentId:"@MtIcchevron_right"}})},previewOptions:{width:179,height:110,icon:{src:NextSolidButton,width:"67px",height:"29px"},iconSpace:"19px"}},prevOutlineButton={id:nanoid$1(),type:"element",title:i18next.t("Prev button"),payload:{elementData:deepmerge({...defaultButtonElementData,type:"survey:prev"},{styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},border:getBorderValue(2,"#000"),hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}},typography:{default:{color:"#FFF"}}}},options:{content:i18next.t("Prev"),showIcon:!0,iconId:"@MtIckeyboard_arrow_left",iconContent:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>',loadedContentId:"@MtIckeyboard_arrow_left"}})},previewOptions:{width:179,height:110,icon:{src:PrevOutlineButton,width:"67px",height:"29px"},iconSpace:"0px"}},nextOutlineButton={id:nanoid$1(),type:"element",title:i18next.t("Next/Submit button"),payload:{elementData:deepmerge({...defaultButtonElementData,type:"survey:next"},{styles:{svg:{default:{fill:"#000"}},backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},border:getBorderValue(2,"#000"),hover:{backgroundColor:{default:"#000"},typography:{default:{color:"#FFF"}},svg:{default:{fill:"#FFF"}}}},options:{content:i18next.t("Next"),showIcon:!0,toggleToSubmit:!0,iconId:"@MtIcchevron_right",iconAlign:"right",iconContent:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>',loadedContentId:"@MtIcchevron_right"}})},previewOptions:{width:179,height:110,icon:{src:NextOutlineButton,width:"67px",height:"29px"},iconSpace:"19px"}},solidArrows={id:nanoid$1(),type:"element",title:i18next.t("Solid arrows"),payload:{groupData:[{group:defaultGroupElementData,children:[deepmerge(prevSolidButton.payload?.elementData,{parent:void 0,size:{default:{width:{value:40,unit:"px"},height:{value:40,unit:"px"}}},styles:{svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},options:{iconOnly:!0}}),deepmerge(nextSolidButton.payload?.elementData,{parent:void 0,size:{default:{width:"auto",height:{value:40,unit:"px"}}},styles:{padding:{default:{top:{value:0,unit:"px"},right:{value:8,unit:"px"},bottom:{value:0,unit:"px"},left:{value:8,unit:"px"}}},svg:{default:{fill:"#FFF"}},corner:{default:{topRight:{value:8,unit:"px"},topLeft:{value:8,unit:"px"},bottomRight:{value:8,unit:"px"},bottomLeft:{value:8,unit:"px"}}},backgroundColor:{default:"#4980F5"},hover:{backgroundColor:{default:"#000"},svg:{default:{fill:"#FFF"}}}},options:{iconOnly:!0}})]}]},previewOptions:{width:179,height:110,icon:{src:SolidArrows,width:"59px",height:"29px"},iconSpace:"11px"}},outlineArrows=cloneDeep(solidArrows);outlineArrows.id=nanoid$1();outlineArrows.title=i18next.t("Outline arrows");outlineArrows.payload.groupData[0].children=outlineArrows.payload.groupData[0].children.map(ea=>deepmerge(ea,{styles:{backgroundColor:{default:"transparent"},typography:{default:{color:"#000"}},svg:{default:{fill:"#000"}},border:getBorderValue(2,"#000"),hover:{backgroundColor:{default:"#000"},typography:{default:{color:"#FFF"}},svg:{default:{fill:"#FFF"}}}}}));outlineArrows.previewOptions.icon.src=OutlineArrows;const surveyElements=[inputElement,textareaElement,singleChoiceElement,multipleChoiceElement,singleMediaChoiceElement,multipleMediaChoiceElement,opinionScaleElement,progressIndicator,errorMessageElement,{...formHiddenInputElementData,type:"element",payload:{...formHiddenInputElementData.payload,size:{default:{width:{value:150,unit:"px"},height:{value:40,unit:"px"}}}}}],actionButtons=[solidArrows,outlineArrows,prevSolidButton,nextSolidButton,prevOutlineButton,nextOutlineButton,submitButtonElement],Survey=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx(ContentWrap$1,{className:ea,index:"survey",children:jsxRuntimeExports.jsxs(ScrollableContent$1,{children:[jsxRuntimeExports.jsx(ContentTitle,{children:na("Title, Subtitle & Description")}),textItemAssetContent.map(ra=>jsxRuntimeExports.jsx(TextAssetItem,{assetData:ra},ra.id)),jsxRuntimeExports.jsx(ContentTitle,{children:na("Essentials")}),jsxRuntimeExports.jsx(AssetsList$1,{items:surveyElements,columns:2,layout:"grid"}),jsxRuntimeExports.jsx(ContentTitle,{children:na("Actions")}),jsxRuntimeExports.jsx(AssetsList$1,{items:actionButtons,columns:2,layout:"grid"})]})})},SurveyAssetTabContent=dt$1(Survey).withConfig({displayName:"Survey",componentId:"sc-1i1wimr-0"})(["height:100%;width:100%;"," > div{margin-right:0;}","{margin-bottom:35px;}"],TextAssetItem,AssetsPanelInnerContainer),assetsPanelMap=new Map;assetsPanelMap.set("images",{name:i18next.t("Photos"),icon:SvgImages,tabComponent:AssetsBarTab,content:ImagesAssetTabContent});assetsPanelMap.set("texts",{name:i18next.t("Texts"),icon:SvgTexts,tabComponent:AssetsBarTab,content:TextsAssetTabContent});assetsPanelMap.set("videos",{name:i18next.t("Videos"),icon:SvgVideos,tabComponent:AssetsBarTab,content:VideosAssetTabContent});assetsPanelMap.set("shapes",{name:i18next.t("Shapes and Vectors"),icon:SvgShapes,tabComponent:AssetsBarTab,content:ShapesAssetTabContent});assetsPanelMap.set("icons",{name:i18next.t("Icons"),icon:SvgIcons,tabComponent:AssetsBarTab,content:IconsAssetTabContent});assetsPanelMap.set("buttons",{name:i18next.t("Buttons"),icon:SvgButtons,tabComponent:AssetsBarTab,content:ButtonsAssetTabContent});assetsPanelMap.set("controls",{name:i18next.t("Controls"),icon:SvgControls,tabComponent:AssetsBarTab,content:ControlsAssetTabContent});assetsPanelMap.set("elements",{name:i18next.t("Elements"),icon:SvgElements,tabComponent:AssetsBarTab,content:ElementsAssetTabContent});assetsPanelMap.set("form",{name:i18next.t("Form"),icon:SvgForm,tabComponent:AssetsBarTab,content:FormsAssetTabContent});assetsPanelMap.set("dataSource",{tabComponent:DataSourceTab$1,content:DataSourceAssetTabContent});assetsPanelMap.set("survey",{name:i18next.t("Survey"),icon:SvgForm,tabComponent:AssetsBarTab,content:SurveyAssetTabContent});const defaultAssetPanelTypes=Array.from(assetsPanelMap.keys()).filter(ea=>!["dataSource","form","survey"].includes(ea)),AssetsPanel=({className:ea})=>{const na=useSelector(getAssetPanelActiveTab),ra=useSelector(getActiveSectionAssetTabs(defaultAssetPanelTypes)),[oa,aa]=reactExports.useState(!0),sa=useDispatch(),la=reactExports.useRef([]),ca=usePosthogCaptureCallback(),ua=reactExports.useCallback(ga=>{const{tabComponent:fa,...ma}=assetsPanelMap.get(ga);return jsxRuntimeExports.jsx(fa,{value:ga,...ma},ga)},[]),da=reactExports.useCallback(ga=>{const{content:fa}=assetsPanelMap.get(ga);return jsxRuntimeExports.jsx(fa,{},ga)},[]),pa=()=>{aa(!oa)},ha=reactExports.useCallback(ga=>{sa(setAssetPanelTab(ga))},[sa]);return reactExports.useEffect(()=>{if(na==="prev"){const ga=la.current[la.current.length-2];sa(setAssetPanelTab(ga||ra[0])),ca("open_asset_panel",{tab:ga||ra[0]})}else{la.current=[...without$2(la.current,na),na].filter(fa=>ra.includes(fa));const ga=la.current[la.current.length-1];sa(setAssetPanelTab(ga||ra[0])),ca("open_asset_panel",{tab:ga||ra[0]})}},[na,sa,ra,ca]),jsxRuntimeExports.jsxs("div",{className:`${ea} depicter-keep-element-selection`,children:[jsxRuntimeExports.jsx(AssetDragLayer,{}),jsxRuntimeExports.jsx(StyledAssetsBar,{active:na,onChange:ha,children:ra.map(ua)}),jsxRuntimeExports.jsx(AssetsContent$1,{active:na,open:oa,onClose:pa,children:ra.map(da)}),jsxRuntimeExports.jsx(Tooltip$1,{id:"assetsPanel",effect:"solid",inverted:!0})]})},AssetsPanel$1=dt$1(AssetsPanel).withConfig({displayName:"AssetsPanel",componentId:"sc-ec3aj8-0"})(["display:flex;"]),editorRoutes=[{index:!0,element:jsxRuntimeExports.jsx(Navigate,{to:"/sections",replace:!0})},{path:"sections",element:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AssetsPanel$1,{}),jsxRuntimeExports.jsx(Workspace$1,{})]})},...DocType.is(["popup"])?[{path:"teaser",element:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AssetsPanel$1,{}),jsxRuntimeExports.jsx(Workspace$1,{})]})}]:[],{path:"options",element:jsxRuntimeExports.jsx(DocumentOptionsSection,{})},...DocType.is(["popup","banner-bar"])?[{path:"displayRules",element:jsxRuntimeExports.jsx(DisplayRulesSection$1,{})}]:[],{path:"integrations",element:jsxRuntimeExports.jsx(IntegrationsSection,{})},{path:"revisions",element:jsxRuntimeExports.jsx(RevisionsSection$1,{})},{path:"leads",element:jsxRuntimeExports.jsx(LeadsPanel$1,{})}],SwitchMode=({className:ea,value:na})=>{const{t:ra}=useTranslation(),oa=usePosthogCaptureCallback(),aa=reactExports.useMemo(()=>({sections:DocType.getLabel("sections",!0),teaser:ra("Teaser"),options:ra("Options"),displayRules:ra("Display Rules"),integrations:ra("Integrations"),revisions:ra("History"),leads:ra("Leads")}),[ra]),sa=reactExports.useMemo(()=>editorRoutes.filter(fa=>fa.path).filter(fa=>["revisions"].includes(na)?!0:fa.path!=="revisions").map(fa=>({value:fa.path,label:aa[fa.path]})),[aa,na]),la=reactExports.useCallback(fa=>jsxRuntimeExports.jsx(SwitchModeTab,{value:fa.value,children:fa.label},fa.value),[]),ca=useOpenNotice("confirm"),[{isChanged:ua,lastHistory:da},pa]=useDisplayRules(),{navigate:ha}=useNavigation(),ga=async fa=>{if(na==="displayRules"&&fa!=="displayRules"&&ua)if(await ca({title:ra("Unsaved Changes"),content:ra("Your changes are not saved. Do you want to continue without saving?"),cancelLabel:ra("Return"),confirmLabel:ra("Discard changes")}))pa({type:"discardData",payload:da});else return;ha(`/${fa}`),oa("switch_mode",{tab:fa})};return jsxRuntimeExports.jsx(Choose,{className:ea,onChange:ga,value:na,children:sa.map(la)})},StyledSwitchMode=dt$1(SwitchMode).withConfig({displayName:"SwitchMode__StyledSwitchMode",componentId:"sc-1i9tvrg-0"})(["height:100%;display:flex;"]),LeftContainer$1=dt$1.div.withConfig({displayName:"header__LeftContainer",componentId:"sc-1wiya94-0"})([""]),RightContainer$1=dt$1.div.withConfig({displayName:"header__RightContainer",componentId:"sc-1wiya94-1"})([""]),CenterContainer=dt$1.div.withConfig({displayName:"header__CenterContainer",componentId:"sc-1wiya94-2"})([""]),WordpressButton=dt$1.div.withConfig({displayName:"header__WordpressButton",componentId:"sc-1wiya94-3"})([""]),Header$2=({className:ea})=>{const{t:na}=useTranslation(),{activePanel:ra}=useActivePanel(),oa=useSelector(getDocumentName),aa=useSelector(getDocumentType),sa=useDispatch(),la=useUserTierAuth(Tiers.PRO),{largeIcon:ca,name:ua}=getDocumentTypeMeta(aa),da=ha=>{ha&&sa(renameDocument(ha.trim()))},pa=useOpenPreview();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(LeftContainer$1,{children:[jsxRuntimeExports.jsx(Logo$1,{}),jsxRuntimeExports.jsx(Splitter,{}),jsxRuntimeExports.jsx(WordpressButton,{children:jsxRuntimeExports.jsx(IconButton,{tooltip:{content:na("Back to WordPress"),options:{id:"assetsPanel",place:"bottom"}},icon:jsxRuntimeExports.jsx(SvgWordPress,{}),href:editorEnv.dashboardURL})}),jsxRuntimeExports.jsx(StyledSwitchMode,{value:ra})]}),jsxRuntimeExports.jsxs(CenterContainer,{children:[jsxRuntimeExports.jsx(IconWithTooltip$1,{tooltip:{content:ua,options:{id:"workspace",place:"top"}},shape:ca}),jsxRuntimeExports.jsx(RenameDocument$1,{value:oa,onChange:da}),jsxRuntimeExports.jsx(SavingIndicator$1,{})]}),jsxRuntimeExports.jsxs(RightContainer$1,{children:[!la&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UpgradeButton$1,{}),jsxRuntimeExports.jsx(Splitter,{})]}),jsxRuntimeExports.jsx(StyledButtonsBar,{}),jsxRuntimeExports.jsx(Splitter,{}),jsxRuntimeExports.jsx(PublishPopover$1,{}),jsxRuntimeExports.jsx(StyledPreviewButton,{onClick:pa})]})]})},theme$E=withTheme(scheme$15),Header$3=dt$1(Header$2).withConfig({displayName:"header",componentId:"sc-1wiya94-4"})(["display:flex;justify-content:space-between;position:relative;flex-shrink:0;",",",",","{display:flex;align-items:center;}","{","{margin:0 15px;}}","{width:55px;}","{","{margin:15px;&:focus{box-shadow:none;outline:none;}}}","{@media (max-width:1550px){display:none;}@media (max-width:1800px){position:relative;left:initial;top:initial;transform:initial;}position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);","{display:flex;align-items:center;margin-right:5px;img{width:14px;height:14px;}}}","{pointer-events:auto;}","{position:absolute;right:0;transform:translateX(100%);}","{margin-left:10px;}","{margin-right:5px;}","{margin-right:20px;}"," ",""],LeftContainer$1,CenterContainer,RightContainer$1,RightContainer$1,Splitter,Logo$1,WordpressButton,IconButton,CenterContainer,IconWithTooltip$1,RenameDocument$1,SavingIndicator$1,UpgradeButton$1,PublishPopover$1,StyledPreviewButton,theme$E.colors(ea=>lt$1(["border-bottom:solid ",";background-color:",";","{background-color:",";}","{color:",";.unsavedSign{color:",";}input{color:",";}}"],ea.borderBottom,ea.background,Splitter,ea.splitter.color,RenameDocument$1,ea.rename.color,ea.rename.unsaved,ea.rename.color)),theme$E.sizes(ea=>lt$1(["height:",";border-bottom-width:",";","{font-size:",";input{font-size:",";}}"],ea.height,ea.borderBottom,RenameDocument$1,ea.rename.fontSize,ea.rename.fontSize))),DataSourcesManager=()=>{const ea=useSelector(getActiveSection),na=useSelector(getActiveSectionDataSourceType),ra=useSelector(getActiveSectionDataSourceParams,equal),oa=useDispatch(),aa=useSelector(getFirstSectionWithDataSourceType),sa=useSelector(getDocumentType);return reactExports.useEffect(()=>{if(!na)return;const la=getDataSourceHandler(na),ca=getDataSourceHasIntegrations(na);if(!la||!ca)return;const ua=la(ra,ea);if(ua){oa(addSectionsDataSourcesData({id:ea,status:"loading"}));try{ua().then(da=>{oa(addSectionsDataSourcesData({id:ea,status:"loaded",data:da}))})}catch{oa(addSectionsDataSourcesData({id:ea,status:"failed"}))}}},[na,ra,oa,ea]),reactExports.useEffect(()=>{if(aa&&["slider","custom"].includes(sa)){const la=getDataSourceDocumentType(aa);oa(updateDocumentType(la))}else if(!aa){const{detachedDataSourceDocumentType:la}=getDocumentTypeMeta(sa);oa(updateDocumentType(la||sa))}},[sa,aa,oa]),null},ContentCreatorModalContent=({className:ea})=>{const{t:na}=useTranslation(),{activeModal:{id:ra,options:oa={dataObject:{}}},closeModal:aa}=useModal(),sa=JSON.stringify(oa.dataObject,null,2),la=reactExports.useCallback(()=>{aa(ra)},[ra,aa]),ca=()=>{copy(sa||"")};return jsxRuntimeExports.jsxs("div",{className:`${ea} depicter-keep-element-selection`,children:[oa?.additionalInfo,jsxRuntimeExports.jsx(StyledSyntaxHighlighter,{mode:"json",width:"500px",height:"350px",value:sa,readOnly:!0}),jsxRuntimeExports.jsx(SolidButton,{size:"small",onClick:ca,children:na("Copy to clipboard")}),jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:la,children:na("Close")})]})},ContentCreatorModalContent$1=dt$1(ContentCreatorModalContent).withConfig({displayName:"ContentCreatorModal",componentId:"sc-o6o6ik-0"})(["padding:35px;","{margin-bottom:20px;}",",","{display:inline-block;margin-right:5px;}"],StyledSyntaxHighlighter,SolidButton,OutlineButton$1),defaultColors$r={background:"rgba(54, 54, 54, 1)",shadow:"rgba(0, 0, 0, 0.25)"},colors$r={dark:defaultColors$r},defaultSizing$r={width:"338px",padding:"40px 35px 20px 35px"},sizes$r={default:defaultSizing$r},scheme$m=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$r,sizes:sizes$r},Symbol.toStringTag,{value:"Module"})),CreateDocumentButton=dt$1(SolidButton).withConfig({displayName:"CreateDocumentModal__CreateDocumentButton",componentId:"sc-xuvcf5-0"})([""]),CreateDocumentModal=({className:ea})=>{const{t:na}=useTranslation(),{activeModal:ra,closeModal:oa}=useModal(),aa=reactExports.useCallback(()=>{oa(ra.id)},[ra.id,oa]);return useMousetrap([{keys:["enter"],callback:aa}]),jsxRuntimeExports.jsxs(Modal$1,{className:ea,index:"createDocument",closeButton:!1,clickOverlayClose:!1,escClose:!1,children:[jsxRuntimeExports.jsx(OCManager,{optionControls:DocType.options.newDocumentOptions,fieldsetComponent:Fieldset$1}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(CreateDocumentButton,{size:"medium",onClick:()=>aa(),children:na("Create {{document}}",{document:DocType.getLabel("document",!0)})}),jsxRuntimeExports.jsx(SimpleLink,{href:editorEnv.dashboardURL,target:"_self",children:na("back to dashboard")}),jsxRuntimeExports.jsx(Tooltip$1,{id:"createDocumentModal",effect:"solid",inverted:!0})]})},theme$D=withTheme(scheme$m),CreateDocumentModal$1=dt$1(CreateDocumentModal).withConfig({displayName:"CreateDocumentModal",componentId:"sc-xuvcf5-1"})(["border:none;","{margin-left:-15px;margin-right:-15px;}","{width:calc(100% + 70px);margin:15px -35px;}","{margin:auto;margin-top:10px;width:100%;text-align:center;display:block;text-transform:uppercase;color:#aaa;}","{width:100%;text-transform:uppercase;margin-top:30px;}"," ",""],OCManager,Divider,SimpleLink,CreateDocumentButton,theme$D.colors(ea=>lt$1(["background:",";box-shadow:2px 10px 25px ",";"],ea.background,ea.shadow)),theme$D.sizes(ea=>lt$1(["width:"," !important;padding:",";"],ea.width,ea.padding))),SessionExpireModalContent=({className:ea})=>{const{t:na}=useTranslation(),ra=()=>{window.location.reload()};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Label$6,{children:na("Your sessions has been expired. please reload the page and try once again")}),jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:ra,children:na("Reload")})]})},SessionExpireModalContent$1=dt$1(SessionExpireModalContent).withConfig({displayName:"SessionExpire",componentId:"sc-nkh5le-0"})(["padding:30px;","{font-size:13px;margin-bottom:15px;}","{margin-left:auto;}"],Label$6,OutlineButton$1),EditorSessionExpireModal=()=>{const ea=useDispatch(),na=useSelector(getDocumentName),ra=useSelector(getDocumentSlug),oa=useSelector(getDocumentLastPublishTime),aa=useSelector(getDocumentLastSaveDraftTime);return reactExports.useEffect(()=>{ea(saveRestoreData({name:na,slug:ra,publishedAt:oa,modifiedAt:aa}))},[ea,na,ra,oa,aa]),jsxRuntimeExports.jsx(SessionExpireModalContent$1,{})},EditorSessionExpireModal$1=dt$1(EditorSessionExpireModal).withConfig({displayName:"EditorSessionExpireModal",componentId:"sc-68wnd2-0"})([""]),defaultColors$q={notice:{background:"rgba(7, 7, 7, 0.7)",color:"#FFF"},title:{color:"#FFF"},subHeading:{color:"#FFF"},content:{color:"#FFF"}},colors$q={dark:defaultColors$q},defaultSizing$q={notice:{padding:"8px 14px",fontSize:"12px",border:"5px"},title:{fontSize:"26px",fontWeight:"bold"},subHeading:{fontSize:"14px",fontWeight:"600"},content:{fontSize:"14px",fontWeight:"400"}},sizes$q={default:defaultSizing$q},scheme$l=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$q,sizes:sizes$q},Symbol.toStringTag,{value:"Module"})),subscribeImage=""+new URL("assets/subscribe.jpg",import.meta.url).href,successImage="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%3e%3cg%20id='success'%20transform='translate(0.065%200.374)'%3e%3ccircle%20id='Ellipse_82'%20data-name='Ellipse%2082'%20cx='39'%20cy='39'%20r='39'%20transform='translate(-0.065%20-0.374)'%20fill='%2301d06f'/%3e%3cg%20id='Group_283'%20data-name='Group%20283'%20transform='translate(39.456%2022.304)%20rotate(30)'%3e%3crect%20id='Rectangle_795'%20data-name='Rectangle%20795'%20width='25.861'%20height='6.085'%20rx='3'%20transform='translate(13.691%200)%20rotate(90)'%20fill='%23fff'/%3e%3crect%20id='Rectangle_797'%20data-name='Rectangle%20797'%20width='6.085'%20height='13.691'%20rx='3'%20transform='translate(13.691%2021.297)%20rotate(90)'%20fill='%23fff'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",axios$4=Axios.create({headers:{"X-DEPICTER-CSRF":browserEnv.csrfToken}}),emailPattern=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,eightCharPass="(?=.*[a-z])(?=.*[0-9]).{8,16}",ImageContainer=dt$1.div.withConfig({displayName:"SubscribeModal__ImageContainer",componentId:"sc-1arh65g-0"})([""]),UnsubscribedContainer=dt$1.div.withConfig({displayName:"SubscribeModal__UnsubscribedContainer",componentId:"sc-1arh65g-1"})([""]),SubscribedContainer=dt$1.div.withConfig({displayName:"SubscribeModal__SubscribedContainer",componentId:"sc-1arh65g-2"})([""]),Notice=dt$1(Label$6).withConfig({displayName:"SubscribeModal__Notice",componentId:"sc-1arh65g-3"})([""]),Title$i=dt$1(Label$6).withConfig({displayName:"SubscribeModal__Title",componentId:"sc-1arh65g-4"})([""]),SubHeading=dt$1(Label$6).withConfig({displayName:"SubscribeModal__SubHeading",componentId:"sc-1arh65g-5"})([""]),Content$6=dt$1(Label$6).withConfig({displayName:"SubscribeModal__Content",componentId:"sc-1arh65g-6"})([""]),SubscribeModalContent=({className:ea,onRemindMeLayer:na,remindMeLaterLabel:ra})=>{const[oa,aa]=reactExports.useState(!1),[sa,la]=reactExports.useState({name:"",email:browserEnv.user.email}),[ca,ua]=reactExports.useState(!1),[da,pa]=reactExports.useState(""),{t:ha}=useTranslation(),{activeModal:ga,closeModal:fa}=useModal(),ma=reactExports.useCallback(()=>{ua(!0),axios$4.request(addSubscribe(sa)).then(()=>{aa(!0)}).catch(ya=>{ya.response&&pa(ya.response.data.errors)}).finally(()=>{ua(!1)})},[sa]),va=reactExports.useCallback(()=>{fa(ga.id)},[ga.id,fa]),xa=reactExports.useCallback(()=>{va(),na?.()},[va,na]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(ImageContainer,{children:[jsxRuntimeExports.jsx(ImageBox$1,{src:subscribeImage,width:"400px",height:"444px"}),jsxRuntimeExports.jsx(Notice,{children:ha("*We value your privacy and we never share your information with any third parties. Also, You will be able to unsubscribe from the list at anytime.")})]}),oa?jsxRuntimeExports.jsxs(SubscribedContainer,{children:[jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"cover",src:successImage,width:"80px",height:"80px"}),jsxRuntimeExports.jsx(Title$i,{children:ha("Thank you!")}),jsxRuntimeExports.jsx(SubHeading,{children:ha("You have subscribed to the newsletter successfully.")}),jsxRuntimeExports.jsx(SolidButton,{size:"medium",onClick:va,children:ha("Close")})]}):jsxRuntimeExports.jsxs(UnsubscribedContainer,{children:[jsxRuntimeExports.jsx(Title$i,{children:ha("Stay Tuned")}),jsxRuntimeExports.jsx(SubHeading,{children:ha("Would like to be part of the early users special community?")}),jsxRuntimeExports.jsx(Content$6,{children:ha("Subscribe to the newsletter to get access to templates, tutorials and unmissable offers before anyone else.")}),jsxRuntimeExports.jsx(Label$6,{children:ha("Name")}),jsxRuntimeExports.jsx(Input$2,{type:"text",variant:"medium",onChange:ya=>la({...sa,name:ya})}),jsxRuntimeExports.jsx(Label$6,{children:ha("Your email address")}),jsxRuntimeExports.jsx(Input$2,{pattern:emailPattern,type:"email",variant:"medium",value:sa.email,validationOn:"blur",onChange:ya=>la({...sa,email:ya})}),da&&jsxRuntimeExports.jsx(Flag$1,{title:da,type:"warning"}),jsxRuntimeExports.jsx(SolidButton,{size:"medium",loading:ca,onClick:ma,children:ha("Subscribe")}),jsxRuntimeExports.jsx(OutlineButton$1,{size:"medium",onClick:xa,children:ra||ha("Remind me later")})]})]})},theme$C=withTheme(scheme$l),SubscribeModal=dt$1(SubscribeModalContent).withConfig({displayName:"SubscribeModal",componentId:"sc-1arh65g-7"})(["display:flex;align-items:center;justify-content:center;","{position:relative;}","{display:flex;flex-flow:column wrap;padding:40px;max-width:400px;","{margin-bottom:10px;}}","{display:flex;flex-flow:column wrap;padding:40px;align-items:center;max-width:400px;","{margin-bottom:20px;}","{text-align:center;margin-bottom:125px;}","{width:100%;}}","{position:absolute;right:20px;left:20px;bottom:20px;margin-bottom:0;font-style:italic;}","{margin-bottom:10px;}","{margin-bottom:10px;}","{margin-bottom:20px;}","{margin-bottom:10px;}"," ",""],ImageContainer,UnsubscribedContainer,SolidButton,SubscribedContainer,ImageBox$1,SubHeading,SolidButton,Notice,Title$i,SubHeading,Content$6,Input$2,theme$C.colors(ea=>lt$1(["","{background:",";color:",";}","{color:",";}","{color:",";}","{color:",";}"],Notice,ea.notice.background,ea.notice.color,Title$i,ea.title.color,SubHeading,ea.subHeading.color,Content$6,ea.content.color)),theme$C.sizes(ea=>lt$1(["","{font-size:",";border-radius:",";padding:",";}","{font-size:",";font-weight:",";}","{font-size:",";font-weight:",";}","{font-size:",";font-weight:",";}"],Notice,ea.notice.fontSize,ea.notice.border,ea.notice.padding,Title$i,ea.title.fontSize,ea.title.fontWeight,SubHeading,ea.subHeading.fontSize,ea.subHeading.fontWeight,Content$6,ea.content.fontSize,ea.content.fontWeight))),EditorSubscribeModal=()=>{const ea=useTrack(),na=reactExports.useCallback(()=>{ea(resetSubscribeTriggers)},[ea]);return jsxRuntimeExports.jsx(SubscribeModal,{onRemindMeLayer:na})},defaultColors$p={background:"#222",color:"#aaa",titleColor:"#FFFFFF",preBackground:"#070707",preBorderColor:"#6A6A6A"},colors$p={dark:defaultColors$p},defaultSizing$p={padding:"20px",width:"500px"},sizes$p={default:defaultSizing$p},scheme$k=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$p,sizes:sizes$p},Symbol.toStringTag,{value:"Module"})),ErrorTitle=dt$1.h3.withConfig({displayName:"ErrorMessageModal__ErrorTitle",componentId:"sc-1mee06x-0"})(["flex-basis:100%;margin-top:5px;"]),ErrorMessage=dt$1.p.withConfig({displayName:"ErrorMessageModal__ErrorMessage",componentId:"sc-1mee06x-1"})(["flex-basis:100%;margin:0;margin-bottom:10px;","{font:inherit;white-space:pre-wrap;}"],SimpleLink),ErrorDetails=dt$1.pre.withConfig({displayName:"ErrorMessageModal__ErrorDetails",componentId:"sc-1mee06x-2"})(["flex-basis:100%;padding:15px;overflow:auto;max-width:100%;"]),ErrorContext=dt$1.textarea.attrs({readOnly:!0}).withConfig({displayName:"ErrorMessageModal__ErrorContext",componentId:"sc-1mee06x-3"})(["margin-top:10px;padding:15px;flex-basis:100%;color:inherit;font:inherit;height:160px;"]),ErrorLink=dt$1(LabelWithIcon$1).attrs({iconLocation:"before",icon:SvgInfo}).withConfig({displayName:"ErrorMessageModal__ErrorLink",componentId:"sc-1mee06x-4"})(["flex-basis:100%;margin:0;font:inherit;margin-bottom:15px;","{margin-top:1px;margin-right:7px;}","{font:inherit;white-space:pre-wrap;}svg{circle,path{fill:#7361e8;}rect{fill:white;}}"],IconHolder$1,SimpleLink),ErrorMessageModalContent=({className:ea})=>{const{activeModal:na,closeModal:ra}=useModal(),{t:oa}=useTranslation(),[aa,sa]=reactExports.useState(!1),{showClose:la=!0,axiosError:ca,link:ua,type:da,errCode:pa}=na.options;let{title:ha=oa("An error has occurred"),message:ga,detail:fa,context:ma}=na.options||{};if(pa===void 0){const xa=ca.message==="Network Error";xa&&(ha=oa("Network Connection Error")),ga=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[xa&&oa("Unable to connect to the server. Please check your connection and if the problem remains,"),!xa&&oa("An unknown error has occurred. Please try again and if the problem remains,"),jsxRuntimeExports.jsx(SimpleLink,{href:"mailto:help@depicter.com",target:"_blank",children:oa(" share the error details with our support team.")})]}),ma={message:ca.message,code:ca.code,name:ca.name,response:{...ca?.response},config:{...ca?.config}},fa=void 0}const va=reactExports.useCallback(()=>{ra(na?.id)},[na,ra]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[ha&&jsxRuntimeExports.jsx(ErrorTitle,{children:ha}),ga&&jsxRuntimeExports.jsx(ErrorMessage,{children:ga}),fa&&jsxRuntimeExports.jsxs(ErrorDetails,{children:[`#${da}:${pa}`,jsxRuntimeExports.jsx("br",{}),fa]}),aa&&jsxRuntimeExports.jsx(ErrorContext,{value:JSON.stringify(ma),readOnly:!0}),ua&&jsxRuntimeExports.jsxs(ErrorLink,{children:[oa("To learn about possible solutions check"),jsxRuntimeExports.jsx(SimpleLink,{href:ua,target:"_blank",children:oa(" this page.")})]}),la&&jsxRuntimeExports.jsx(OutlineButton$1,{onClick:va,size:"small",children:oa("Close")}),ma&&!aa&&jsxRuntimeExports.jsx(OutlineButton$1,{onClick:()=>sa(!0),size:"small",children:oa("Error details")})]})},theme$B=withTheme(scheme$k),ErrorMessageModalContent$1=dt$1(ErrorMessageModalContent).withConfig({displayName:"ErrorMessageModal",componentId:"sc-1mee06x-5"})(["display:flex;flex-wrap:wrap;padding:20px;","{margin-right:10px;}",",","{border-radius:5px;}","{margin-bottom:10px;}"," ",""],OutlineButton$1,ErrorDetails,ErrorContext,ErrorContext,theme$B.colors(ea=>lt$1(["color:",";background-color:",";",",","{background:",";border:solid 1px ",";}","{color:",";}"],ea.color,ea.background,ErrorDetails,ErrorContext,ea.preBackground,ea.preBorderColor,ErrorTitle,ea.titleColor)),theme$B.sizes(ea=>lt$1(["padding:",";width:",";"],ea.padding,ea.width))),defaultColors$o={header:{background:"#070707",title:"#FFFFFF"},changelog:{title:"#FFFFFF",releaseDate:"#6A6A6A",new:"#01D06F",improved:"#7361E8",fixed:"#FF504A",type:"#FFF",border:"#464646"},showMore:"#AAAAAA"},colors$o={dark:defaultColors$o},defaultSizing$o={header:{title:{fontSize:"16px",fontWeight:"600"}},changelog:{title:{fontSize:"18px",fontWeight:"600",letterSpacing:"-0.36px"},releaseDate:{fontSize:"18px",fontWeight:"600",letterSpacing:"-0.36px"},type:{fontSize:"15px",fontWeight:"600",border:"6px"}},showMore:{fontSize:"14px",fontWeight:"400"}},sizes$o={default:defaultSizing$o},scheme$j=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$o,sizes:sizes$o},Symbol.toStringTag,{value:"Module"})),ChangelogHeader=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Label$6,{children:na("What’s New")})})},theme$A=withTheme(scheme$j),ChangelogHeader$1=dt$1(ChangelogHeader).withConfig({displayName:"ChangelogHeader",componentId:"sc-z5uq7l-0"})(["padding:24px 30px 18px 30px;","{margin-bottom:0;}"," ",""],Label$6,theme$A.colors(ea=>lt$1(["background:",";","{color:",";}"],ea.header.background,Label$6,ea.header.title)),theme$A.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],Label$6,ea.header.title.fontSize,ea.header.title.fontWeight))),axios$3=Axios.create({headers:{"X-DEPICTER-CSRF":browserEnv.csrfToken}}),protocols=["http","https","mailto","tel"];function uriTransformer(ea){const na=(ea||"").trim(),ra=na.charAt(0);if(ra==="#"||ra==="/")return na;const oa=na.indexOf(":");if(oa===-1)return na;let aa=-1;for(;++aa<protocols.length;){const sa=protocols[aa];if(oa===sa.length&&na.slice(0,sa.length).toLowerCase()===sa)return na}return aa=na.indexOf("?"),aa!==-1&&oa>aa||(aa=na.indexOf("#"),aa!==-1&&oa>aa)?na:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var isBuffer$2,hasRequiredIsBuffer$1;function requireIsBuffer$1(){return hasRequiredIsBuffer$1||(hasRequiredIsBuffer$1=1,isBuffer$2=function(na){return na!=null&&na.constructor!=null&&typeof na.constructor.isBuffer=="function"&&na.constructor.isBuffer(na)}),isBuffer$2}var isBufferExports$1=requireIsBuffer$1();const bufferLike=getDefaultExportFromCjs(isBufferExports$1);function stringifyPosition(ea){return!ea||typeof ea!="object"?"":"position"in ea||"type"in ea?position$1(ea.position):"start"in ea||"end"in ea?position$1(ea):"line"in ea||"column"in ea?point$2(ea):""}function point$2(ea){return index(ea&&ea.line)+":"+index(ea&&ea.column)}function position$1(ea){return point$2(ea&&ea.start)+"-"+point$2(ea&&ea.end)}function index(ea){return ea&&typeof ea=="number"?ea:1}class VFileMessage extends Error{constructor(na,ra,oa){const aa=[null,null];let sa={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof ra=="string"&&(oa=ra,ra=void 0),typeof oa=="string"){const la=oa.indexOf(":");la===-1?aa[1]=oa:(aa[0]=oa.slice(0,la),aa[1]=oa.slice(la+1))}ra&&("type"in ra||"position"in ra?ra.position&&(sa=ra.position):"start"in ra||"end"in ra?sa=ra:("line"in ra||"column"in ra)&&(sa.start=ra)),this.name=stringifyPosition(ra)||"1:1",this.message=typeof na=="object"?na.message:na,this.stack="",typeof na=="object"&&na.stack&&(this.stack=na.stack),this.reason=this.message,this.fatal,this.line=sa.start.line,this.column=sa.start.column,this.position=sa,this.source=aa[0],this.ruleId=aa[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.fatal=null;VFileMessage.prototype.column=null;VFileMessage.prototype.line=null;VFileMessage.prototype.source=null;VFileMessage.prototype.ruleId=null;VFileMessage.prototype.position=null;const path$1={basename:basename$1,dirname:dirname$1,extname:extname$1,join:join$1,sep:"/"};function basename$1(ea,na){if(na!==void 0&&typeof na!="string")throw new TypeError('"ext" argument must be a string');assertPath$3(ea);let ra=0,oa=-1,aa=ea.length,sa;if(na===void 0||na.length===0||na.length>ea.length){for(;aa--;)if(ea.charCodeAt(aa)===47){if(sa){ra=aa+1;break}}else oa<0&&(sa=!0,oa=aa+1);return oa<0?"":ea.slice(ra,oa)}if(na===ea)return"";let la=-1,ca=na.length-1;for(;aa--;)if(ea.charCodeAt(aa)===47){if(sa){ra=aa+1;break}}else la<0&&(sa=!0,la=aa+1),ca>-1&&(ea.charCodeAt(aa)===na.charCodeAt(ca--)?ca<0&&(oa=aa):(ca=-1,oa=la));return ra===oa?oa=la:oa<0&&(oa=ea.length),ea.slice(ra,oa)}function dirname$1(ea){if(assertPath$3(ea),ea.length===0)return".";let na=-1,ra=ea.length,oa;for(;--ra;)if(ea.charCodeAt(ra)===47){if(oa){na=ra;break}}else oa||(oa=!0);return na<0?ea.charCodeAt(0)===47?"/":".":na===1&&ea.charCodeAt(0)===47?"//":ea.slice(0,na)}function extname$1(ea){assertPath$3(ea);let na=ea.length,ra=-1,oa=0,aa=-1,sa=0,la;for(;na--;){const ca=ea.charCodeAt(na);if(ca===47){if(la){oa=na+1;break}continue}ra<0&&(la=!0,ra=na+1),ca===46?aa<0?aa=na:sa!==1&&(sa=1):aa>-1&&(sa=-1)}return aa<0||ra<0||sa===0||sa===1&&aa===ra-1&&aa===oa+1?"":ea.slice(aa,ra)}function join$1(...ea){let na=-1,ra;for(;++na<ea.length;)assertPath$3(ea[na]),ea[na]&&(ra=ra===void 0?ea[na]:ra+"/"+ea[na]);return ra===void 0?".":normalize$2(ra)}function normalize$2(ea){assertPath$3(ea);const na=ea.charCodeAt(0)===47;let ra=normalizeString$1(ea,!na);return ra.length===0&&!na&&(ra="."),ra.length>0&&ea.charCodeAt(ea.length-1)===47&&(ra+="/"),na?"/"+ra:ra}function normalizeString$1(ea,na){let ra="",oa=0,aa=-1,sa=0,la=-1,ca,ua;for(;++la<=ea.length;){if(la<ea.length)ca=ea.charCodeAt(la);else{if(ca===47)break;ca=47}if(ca===47){if(!(aa===la-1||sa===1))if(aa!==la-1&&sa===2){if(ra.length<2||oa!==2||ra.charCodeAt(ra.length-1)!==46||ra.charCodeAt(ra.length-2)!==46){if(ra.length>2){if(ua=ra.lastIndexOf("/"),ua!==ra.length-1){ua<0?(ra="",oa=0):(ra=ra.slice(0,ua),oa=ra.length-1-ra.lastIndexOf("/")),aa=la,sa=0;continue}}else if(ra.length>0){ra="",oa=0,aa=la,sa=0;continue}}na&&(ra=ra.length>0?ra+"/..":"..",oa=2)}else ra.length>0?ra+="/"+ea.slice(aa+1,la):ra=ea.slice(aa+1,la),oa=la-aa-1;aa=la,sa=0}else ca===46&&sa>-1?sa++:sa=-1}return ra}function assertPath$3(ea){if(typeof ea!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ea))}const proc$1={cwd:cwd$1};function cwd$1(){return"/"}function isUrl$1(ea){return ea!==null&&typeof ea=="object"&&ea.href&&ea.origin}function urlToPath$1(ea){if(typeof ea=="string")ea=new URL(ea);else if(!isUrl$1(ea)){const na=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+ea+"`");throw na.code="ERR_INVALID_ARG_TYPE",na}if(ea.protocol!=="file:"){const na=new TypeError("The URL must be of scheme file");throw na.code="ERR_INVALID_URL_SCHEME",na}return getPathFromURLPosix$1(ea)}function getPathFromURLPosix$1(ea){if(ea.hostname!==""){const oa=new TypeError('File URL host must be "localhost" or empty on darwin');throw oa.code="ERR_INVALID_FILE_URL_HOST",oa}const na=ea.pathname;let ra=-1;for(;++ra<na.length;)if(na.charCodeAt(ra)===37&&na.charCodeAt(ra+1)===50){const oa=na.charCodeAt(ra+2);if(oa===70||oa===102){const aa=new TypeError("File URL path must not include encoded / characters");throw aa.code="ERR_INVALID_FILE_URL_PATH",aa}}return decodeURIComponent(na)}const order$1=["history","path","basename","stem","extname","dirname"];let VFile$1=class{constructor(na){let ra;na?typeof na=="string"||buffer$1(na)?ra={value:na}:isUrl$1(na)?ra={path:na}:ra=na:ra={},this.data={},this.messages=[],this.history=[],this.cwd=proc$1.cwd(),this.value,this.stored,this.result,this.map;let oa=-1;for(;++oa<order$1.length;){const sa=order$1[oa];sa in ra&&ra[sa]!==void 0&&ra[sa]!==null&&(this[sa]=sa==="history"?[...ra[sa]]:ra[sa])}let aa;for(aa in ra)order$1.includes(aa)||(this[aa]=ra[aa])}get path(){return this.history[this.history.length-1]}set path(na){isUrl$1(na)&&(na=urlToPath$1(na)),assertNonEmpty$1(na,"path"),this.path!==na&&this.history.push(na)}get dirname(){return typeof this.path=="string"?path$1.dirname(this.path):void 0}set dirname(na){assertPath$2(this.basename,"dirname"),this.path=path$1.join(na||"",this.basename)}get basename(){return typeof this.path=="string"?path$1.basename(this.path):void 0}set basename(na){assertNonEmpty$1(na,"basename"),assertPart$1(na,"basename"),this.path=path$1.join(this.dirname||"",na)}get extname(){return typeof this.path=="string"?path$1.extname(this.path):void 0}set extname(na){if(assertPart$1(na,"extname"),assertPath$2(this.dirname,"extname"),na){if(na.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(na.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=path$1.join(this.dirname,this.stem+(na||""))}get stem(){return typeof this.path=="string"?path$1.basename(this.path,this.extname):void 0}set stem(na){assertNonEmpty$1(na,"stem"),assertPart$1(na,"stem"),this.path=path$1.join(this.dirname||"",na+(this.extname||""))}toString(na){return(this.value||"").toString(na||void 0)}message(na,ra,oa){const aa=new VFileMessage(na,ra,oa);return this.path&&(aa.name=this.path+":"+aa.name,aa.file=this.path),aa.fatal=!1,this.messages.push(aa),aa}info(na,ra,oa){const aa=this.message(na,ra,oa);return aa.fatal=null,aa}fail(na,ra,oa){const aa=this.message(na,ra,oa);throw aa.fatal=!0,aa}};function assertPart$1(ea,na){if(ea&&ea.includes(path$1.sep))throw new Error("`"+na+"` cannot be a path: did not expect `"+path$1.sep+"`")}function assertNonEmpty$1(ea,na){if(!ea)throw new Error("`"+na+"` cannot be empty")}function assertPath$2(ea,na){if(!ea)throw new Error("Setting `"+na+"` requires `path` to be set too")}function buffer$1(ea){return bufferLike(ea)}function bail(ea){if(ea)throw ea}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var isBuffer$1,hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,isBuffer$1=function(na){return na!=null&&na.constructor!=null&&typeof na.constructor.isBuffer=="function"&&na.constructor.isBuffer(na)}),isBuffer$1}var isBufferExports=requireIsBuffer();const isBuffer=getDefaultExportFromCjs(isBufferExports);var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var ea=Object.prototype.hasOwnProperty,na=Object.prototype.toString,ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,aa=function(da){return typeof Array.isArray=="function"?Array.isArray(da):na.call(da)==="[object Array]"},sa=function(da){if(!da||na.call(da)!=="[object Object]")return!1;var pa=ea.call(da,"constructor"),ha=da.constructor&&da.constructor.prototype&&ea.call(da.constructor.prototype,"isPrototypeOf");if(da.constructor&&!pa&&!ha)return!1;var ga;for(ga in da);return typeof ga>"u"||ea.call(da,ga)},la=function(da,pa){ra&&pa.name==="__proto__"?ra(da,pa.name,{enumerable:!0,configurable:!0,value:pa.newValue,writable:!0}):da[pa.name]=pa.newValue},ca=function(da,pa){if(pa==="__proto__")if(ea.call(da,pa)){if(oa)return oa(da,pa).value}else return;return da[pa]};return extend$1=function ua(){var da,pa,ha,ga,fa,ma,va=arguments[0],xa=1,ya=arguments.length,Aa=!1;for(typeof va=="boolean"&&(Aa=va,va=arguments[1]||{},xa=2),(va==null||typeof va!="object"&&typeof va!="function")&&(va={});xa<ya;++xa)if(da=arguments[xa],da!=null)for(pa in da)ha=ca(va,pa),ga=ca(da,pa),va!==ga&&(Aa&&ga&&(sa(ga)||(fa=aa(ga)))?(fa?(fa=!1,ma=ha&&aa(ha)?ha:[]):ma=ha&&sa(ha)?ha:{},la(va,{name:pa,newValue:ua(Aa,ma,ga)})):typeof ga<"u"&&la(va,{name:pa,newValue:ga}));return va},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(ea){if(typeof ea!="object"||ea===null)return!1;const na=Object.getPrototypeOf(ea);return(na===null||na===Object.prototype||Object.getPrototypeOf(na)===null)&&!(Symbol.toStringTag in ea)&&!(Symbol.iterator in ea)}function trough(){const ea=[],na={run:ra,use:oa};return na;function ra(...aa){let sa=-1;const la=aa.pop();if(typeof la!="function")throw new TypeError("Expected function as last argument, not "+la);ca(null,...aa);function ca(ua,...da){const pa=ea[++sa];let ha=-1;if(ua){la(ua);return}for(;++ha<aa.length;)(da[ha]===null||da[ha]===void 0)&&(da[ha]=aa[ha]);aa=da,pa?wrap$1(pa,ca)(...da):la(null,...da)}}function oa(aa){if(typeof aa!="function")throw new TypeError("Expected `middelware` to be a function, not "+aa);return ea.push(aa),na}}function wrap$1(ea,na){let ra;return oa;function oa(...la){const ca=ea.length>la.length;let ua;ca&&la.push(aa);try{ua=ea.apply(this,la)}catch(da){const pa=da;if(ca&&ra)throw pa;return aa(pa)}ca||(ua&&ua.then&&typeof ua.then=="function"?ua.then(sa,aa):ua instanceof Error?aa(ua):sa(ua))}function aa(la,...ca){ra||(ra=!0,na(la,...ca))}function sa(la){aa(null,la)}}const path={basename,dirname,extname,join,sep:"/"};function basename(ea,na){if(na!==void 0&&typeof na!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(ea);let ra=0,oa=-1,aa=ea.length,sa;if(na===void 0||na.length===0||na.length>ea.length){for(;aa--;)if(ea.charCodeAt(aa)===47){if(sa){ra=aa+1;break}}else oa<0&&(sa=!0,oa=aa+1);return oa<0?"":ea.slice(ra,oa)}if(na===ea)return"";let la=-1,ca=na.length-1;for(;aa--;)if(ea.charCodeAt(aa)===47){if(sa){ra=aa+1;break}}else la<0&&(sa=!0,la=aa+1),ca>-1&&(ea.charCodeAt(aa)===na.charCodeAt(ca--)?ca<0&&(oa=aa):(ca=-1,oa=la));return ra===oa?oa=la:oa<0&&(oa=ea.length),ea.slice(ra,oa)}function dirname(ea){if(assertPath$1(ea),ea.length===0)return".";let na=-1,ra=ea.length,oa;for(;--ra;)if(ea.charCodeAt(ra)===47){if(oa){na=ra;break}}else oa||(oa=!0);return na<0?ea.charCodeAt(0)===47?"/":".":na===1&&ea.charCodeAt(0)===47?"//":ea.slice(0,na)}function extname(ea){assertPath$1(ea);let na=ea.length,ra=-1,oa=0,aa=-1,sa=0,la;for(;na--;){const ca=ea.charCodeAt(na);if(ca===47){if(la){oa=na+1;break}continue}ra<0&&(la=!0,ra=na+1),ca===46?aa<0?aa=na:sa!==1&&(sa=1):aa>-1&&(sa=-1)}return aa<0||ra<0||sa===0||sa===1&&aa===ra-1&&aa===oa+1?"":ea.slice(aa,ra)}function join(...ea){let na=-1,ra;for(;++na<ea.length;)assertPath$1(ea[na]),ea[na]&&(ra=ra===void 0?ea[na]:ra+"/"+ea[na]);return ra===void 0?".":normalize$1(ra)}function normalize$1(ea){assertPath$1(ea);const na=ea.charCodeAt(0)===47;let ra=normalizeString(ea,!na);return ra.length===0&&!na&&(ra="."),ra.length>0&&ea.charCodeAt(ea.length-1)===47&&(ra+="/"),na?"/"+ra:ra}function normalizeString(ea,na){let ra="",oa=0,aa=-1,sa=0,la=-1,ca,ua;for(;++la<=ea.length;){if(la<ea.length)ca=ea.charCodeAt(la);else{if(ca===47)break;ca=47}if(ca===47){if(!(aa===la-1||sa===1))if(aa!==la-1&&sa===2){if(ra.length<2||oa!==2||ra.charCodeAt(ra.length-1)!==46||ra.charCodeAt(ra.length-2)!==46){if(ra.length>2){if(ua=ra.lastIndexOf("/"),ua!==ra.length-1){ua<0?(ra="",oa=0):(ra=ra.slice(0,ua),oa=ra.length-1-ra.lastIndexOf("/")),aa=la,sa=0;continue}}else if(ra.length>0){ra="",oa=0,aa=la,sa=0;continue}}na&&(ra=ra.length>0?ra+"/..":"..",oa=2)}else ra.length>0?ra+="/"+ea.slice(aa+1,la):ra=ea.slice(aa+1,la),oa=la-aa-1;aa=la,sa=0}else ca===46&&sa>-1?sa++:sa=-1}return ra}function assertPath$1(ea){if(typeof ea!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ea))}const proc={cwd};function cwd(){return"/"}function isUrl(ea){return ea!==null&&typeof ea=="object"&&ea.href&&ea.origin}function urlToPath(ea){if(typeof ea=="string")ea=new URL(ea);else if(!isUrl(ea)){const na=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+ea+"`");throw na.code="ERR_INVALID_ARG_TYPE",na}if(ea.protocol!=="file:"){const na=new TypeError("The URL must be of scheme file");throw na.code="ERR_INVALID_URL_SCHEME",na}return getPathFromURLPosix(ea)}function getPathFromURLPosix(ea){if(ea.hostname!==""){const oa=new TypeError('File URL host must be "localhost" or empty on darwin');throw oa.code="ERR_INVALID_FILE_URL_HOST",oa}const na=ea.pathname;let ra=-1;for(;++ra<na.length;)if(na.charCodeAt(ra)===37&&na.charCodeAt(ra+1)===50){const oa=na.charCodeAt(ra+2);if(oa===70||oa===102){const aa=new TypeError("File URL path must not include encoded / characters");throw aa.code="ERR_INVALID_FILE_URL_PATH",aa}}return decodeURIComponent(na)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(na){let ra;na?typeof na=="string"||buffer(na)?ra={value:na}:isUrl(na)?ra={path:na}:ra=na:ra={},this.data={},this.messages=[],this.history=[],this.cwd=proc.cwd(),this.value,this.stored,this.result,this.map;let oa=-1;for(;++oa<order.length;){const sa=order[oa];sa in ra&&ra[sa]!==void 0&&ra[sa]!==null&&(this[sa]=sa==="history"?[...ra[sa]]:ra[sa])}let aa;for(aa in ra)order.includes(aa)||(this[aa]=ra[aa])}get path(){return this.history[this.history.length-1]}set path(na){isUrl(na)&&(na=urlToPath(na)),assertNonEmpty(na,"path"),this.path!==na&&this.history.push(na)}get dirname(){return typeof this.path=="string"?path.dirname(this.path):void 0}set dirname(na){assertPath(this.basename,"dirname"),this.path=path.join(na||"",this.basename)}get basename(){return typeof this.path=="string"?path.basename(this.path):void 0}set basename(na){assertNonEmpty(na,"basename"),assertPart(na,"basename"),this.path=path.join(this.dirname||"",na)}get extname(){return typeof this.path=="string"?path.extname(this.path):void 0}set extname(na){if(assertPart(na,"extname"),assertPath(this.dirname,"extname"),na){if(na.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(na.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=path.join(this.dirname,this.stem+(na||""))}get stem(){return typeof this.path=="string"?path.basename(this.path,this.extname):void 0}set stem(na){assertNonEmpty(na,"stem"),assertPart(na,"stem"),this.path=path.join(this.dirname||"",na+(this.extname||""))}toString(na){return(this.value||"").toString(na||void 0)}message(na,ra,oa){const aa=new VFileMessage(na,ra,oa);return this.path&&(aa.name=this.path+":"+aa.name,aa.file=this.path),aa.fatal=!1,this.messages.push(aa),aa}info(na,ra,oa){const aa=this.message(na,ra,oa);return aa.fatal=null,aa}fail(na,ra,oa){const aa=this.message(na,ra,oa);throw aa.fatal=!0,aa}}function assertPart(ea,na){if(ea&&ea.includes(path.sep))throw new Error("`"+na+"` cannot be a path: did not expect `"+path.sep+"`")}function assertNonEmpty(ea,na){if(!ea)throw new Error("`"+na+"` cannot be empty")}function assertPath(ea,na){if(!ea)throw new Error("Setting `"+na+"` requires `path` to be set too")}function buffer(ea){return isBuffer(ea)}const unified=base().freeze(),own$6={}.hasOwnProperty;function base(){const ea=trough(),na=[];let ra={},oa,aa=-1;return sa.data=la,sa.Parser=void 0,sa.Compiler=void 0,sa.freeze=ca,sa.attachers=na,sa.use=ua,sa.parse=da,sa.stringify=pa,sa.run=ha,sa.runSync=ga,sa.process=fa,sa.processSync=ma,sa;function sa(){const va=base();let xa=-1;for(;++xa<na.length;)va.use(...na[xa]);return va.data(extend(!0,{},ra)),va}function la(va,xa){return typeof va=="string"?arguments.length===2?(assertUnfrozen("data",oa),ra[va]=xa,sa):own$6.call(ra,va)&&ra[va]||null:va?(assertUnfrozen("data",oa),ra=va,sa):ra}function ca(){if(oa)return sa;for(;++aa<na.length;){const[va,...xa]=na[aa];if(xa[0]===!1)continue;xa[0]===!0&&(xa[0]=void 0);const ya=va.call(sa,...xa);typeof ya=="function"&&ea.use(ya)}return oa=!0,aa=Number.POSITIVE_INFINITY,sa}function ua(va,...xa){let ya;if(assertUnfrozen("use",oa),va!=null)if(typeof va=="function")wa(va,...xa);else if(typeof va=="object")Array.isArray(va)?Sa(va):Ca(va);else throw new TypeError("Expected usable value, not `"+va+"`");return ya&&(ra.settings=Object.assign(ra.settings||{},ya)),sa;function Aa(ba){if(typeof ba=="function")wa(ba);else if(typeof ba=="object")if(Array.isArray(ba)){const[Ea,...$a]=ba;wa(Ea,...$a)}else Ca(ba);else throw new TypeError("Expected usable value, not `"+ba+"`")}function Ca(ba){Sa(ba.plugins),ba.settings&&(ya=Object.assign(ya||{},ba.settings))}function Sa(ba){let Ea=-1;if(ba!=null)if(Array.isArray(ba))for(;++Ea<ba.length;){const $a=ba[Ea];Aa($a)}else throw new TypeError("Expected a list of plugins, not `"+ba+"`")}function wa(ba,Ea){let $a=-1,Ma;for(;++$a<na.length;)if(na[$a][0]===ba){Ma=na[$a];break}Ma?(isPlainObject(Ma[1])&&isPlainObject(Ea)&&(Ea=extend(!0,Ma[1],Ea)),Ma[1]=Ea):na.push([...arguments])}}function da(va){sa.freeze();const xa=vfile(va),ya=sa.Parser;return assertParser("parse",ya),newable(ya,"parse")?new ya(String(xa),xa).parse():ya(String(xa),xa)}function pa(va,xa){sa.freeze();const ya=vfile(xa),Aa=sa.Compiler;return assertCompiler("stringify",Aa),assertNode(va),newable(Aa,"compile")?new Aa(va,ya).compile():Aa(va,ya)}function ha(va,xa,ya){if(assertNode(va),sa.freeze(),!ya&&typeof xa=="function"&&(ya=xa,xa=void 0),!ya)return new Promise(Aa);Aa(null,ya);function Aa(Ca,Sa){ea.run(va,vfile(xa),wa);function wa(ba,Ea,$a){Ea=Ea||va,ba?Sa(ba):Ca?Ca(Ea):ya(null,Ea,$a)}}}function ga(va,xa){let ya,Aa;return sa.run(va,xa,Ca),assertDone("runSync","run",Aa),ya;function Ca(Sa,wa){bail(Sa),ya=wa,Aa=!0}}function fa(va,xa){if(sa.freeze(),assertParser("process",sa.Parser),assertCompiler("process",sa.Compiler),!xa)return new Promise(ya);ya(null,xa);function ya(Aa,Ca){const Sa=vfile(va);sa.run(sa.parse(Sa),Sa,(ba,Ea,$a)=>{if(ba||!Ea||!$a)wa(ba);else{const Ma=sa.stringify(Ea,$a);Ma==null||(looksLikeAVFileValue(Ma)?$a.value=Ma:$a.result=Ma),wa(ba,$a)}});function wa(ba,Ea){ba||!Ea?Ca(ba):Aa?Aa(Ea):xa(null,Ea)}}}function ma(va){let xa;sa.freeze(),assertParser("processSync",sa.Parser),assertCompiler("processSync",sa.Compiler);const ya=vfile(va);return sa.process(ya,Aa),assertDone("processSync","process",xa),ya;function Aa(Ca){xa=!0,bail(Ca)}}}function newable(ea,na){return typeof ea=="function"&&ea.prototype&&(keys(ea.prototype)||na in ea.prototype)}function keys(ea){let na;for(na in ea)if(own$6.call(ea,na))return!0;return!1}function assertParser(ea,na){if(typeof na!="function")throw new TypeError("Cannot `"+ea+"` without `Parser`")}function assertCompiler(ea,na){if(typeof na!="function")throw new TypeError("Cannot `"+ea+"` without `Compiler`")}function assertUnfrozen(ea,na){if(na)throw new Error("Cannot call `"+ea+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(ea){if(!isPlainObject(ea)||typeof ea.type!="string")throw new TypeError("Expected node, got `"+ea+"`")}function assertDone(ea,na,ra){if(!ra)throw new Error("`"+ea+"` finished async. Use `"+na+"` instead")}function vfile(ea){return looksLikeAVFile(ea)?ea:new VFile(ea)}function looksLikeAVFile(ea){return!!(ea&&typeof ea=="object"&&"message"in ea&&"messages"in ea)}function looksLikeAVFileValue(ea){return typeof ea=="string"||isBuffer(ea)}const emptyOptions={};function toString(ea,na){const ra=emptyOptions,oa=typeof ra.includeImageAlt=="boolean"?ra.includeImageAlt:!0,aa=typeof ra.includeHtml=="boolean"?ra.includeHtml:!0;return one$1(ea,oa,aa)}function one$1(ea,na,ra){if(node(ea)){if("value"in ea)return ea.type==="html"&&!ra?"":ea.value;if(na&&"alt"in ea&&ea.alt)return ea.alt;if("children"in ea)return all$1(ea.children,na,ra)}return Array.isArray(ea)?all$1(ea,na,ra):""}function all$1(ea,na,ra){const oa=[];let aa=-1;for(;++aa<ea.length;)oa[aa]=one$1(ea[aa],na,ra);return oa.join("")}function node(ea){return!!(ea&&typeof ea=="object")}function splice(ea,na,ra,oa){const aa=ea.length;let sa=0,la;if(na<0?na=-na>aa?0:aa+na:na=na>aa?aa:na,ra=ra>0?ra:0,oa.length<1e4)la=Array.from(oa),la.unshift(na,ra),ea.splice(...la);else for(ra&&ea.splice(na,ra);sa<oa.length;)la=oa.slice(sa,sa+1e4),la.unshift(na,0),ea.splice(...la),sa+=1e4,na+=1e4}function push(ea,na){return ea.length>0?(splice(ea,ea.length,0,na),ea):na}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(ea){const na={};let ra=-1;for(;++ra<ea.length;)syntaxExtension(na,ea[ra]);return na}function syntaxExtension(ea,na){let ra;for(ra in na){const aa=(hasOwnProperty.call(ea,ra)?ea[ra]:void 0)||(ea[ra]={}),sa=na[ra];let la;if(sa)for(la in sa){hasOwnProperty.call(aa,la)||(aa[la]=[]);const ca=sa[la];constructs(aa[la],Array.isArray(ca)?ca:ca?[ca]:[])}}}function constructs(ea,na){let ra=-1;const oa=[];for(;++ra<na.length;)(na[ra].add==="after"?ea:oa).push(na[ra]);splice(ea,0,0,oa)}const unicodePunctuationRegex=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(ea){return ea!==null&&(ea<32||ea===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(ea){return ea!==null&&ea<-2}function markdownLineEndingOrSpace(ea){return ea!==null&&(ea<0||ea===32)}function markdownSpace(ea){return ea===-2||ea===-1||ea===32}const unicodePunctuation=regexCheck(unicodePunctuationRegex),unicodeWhitespace=regexCheck(/\s/);function regexCheck(ea){return na;function na(ra){return ra!==null&&ea.test(String.fromCharCode(ra))}}function factorySpace(ea,na,ra,oa){const aa=oa?oa-1:Number.POSITIVE_INFINITY;let sa=0;return la;function la(ua){return markdownSpace(ua)?(ea.enter(ra),ca(ua)):na(ua)}function ca(ua){return markdownSpace(ua)&&sa++<aa?(ea.consume(ua),ca):(ea.exit(ra),na(ua))}}const content$1={tokenize:initializeContent};function initializeContent(ea){const na=ea.attempt(this.parser.constructs.contentInitial,oa,aa);let ra;return na;function oa(ca){if(ca===null){ea.consume(ca);return}return ea.enter("lineEnding"),ea.consume(ca),ea.exit("lineEnding"),factorySpace(ea,na,"linePrefix")}function aa(ca){return ea.enter("paragraph"),sa(ca)}function sa(ca){const ua=ea.enter("chunkText",{contentType:"text",previous:ra});return ra&&(ra.next=ua),ra=ua,la(ca)}function la(ca){if(ca===null){ea.exit("chunkText"),ea.exit("paragraph"),ea.consume(ca);return}return markdownLineEnding(ca)?(ea.consume(ca),ea.exit("chunkText"),sa):(ea.consume(ca),la)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(ea){const na=this,ra=[];let oa=0,aa,sa,la;return ca;function ca(Ca){if(oa<ra.length){const Sa=ra[oa];return na.containerState=Sa[1],ea.attempt(Sa[0].continuation,ua,da)(Ca)}return da(Ca)}function ua(Ca){if(oa++,na.containerState._closeFlow){na.containerState._closeFlow=void 0,aa&&Aa();const Sa=na.events.length;let wa=Sa,ba;for(;wa--;)if(na.events[wa][0]==="exit"&&na.events[wa][1].type==="chunkFlow"){ba=na.events[wa][1].end;break}ya(oa);let Ea=Sa;for(;Ea<na.events.length;)na.events[Ea][1].end=Object.assign({},ba),Ea++;return splice(na.events,wa+1,0,na.events.slice(Sa)),na.events.length=Ea,da(Ca)}return ca(Ca)}function da(Ca){if(oa===ra.length){if(!aa)return ga(Ca);if(aa.currentConstruct&&aa.currentConstruct.concrete)return ma(Ca);na.interrupt=!!(aa.currentConstruct&&!aa._gfmTableDynamicInterruptHack)}return na.containerState={},ea.check(containerConstruct,pa,ha)(Ca)}function pa(Ca){return aa&&Aa(),ya(oa),ga(Ca)}function ha(Ca){return na.parser.lazy[na.now().line]=oa!==ra.length,la=na.now().offset,ma(Ca)}function ga(Ca){return na.containerState={},ea.attempt(containerConstruct,fa,ma)(Ca)}function fa(Ca){return oa++,ra.push([na.currentConstruct,na.containerState]),ga(Ca)}function ma(Ca){if(Ca===null){aa&&Aa(),ya(0),ea.consume(Ca);return}return aa=aa||na.parser.flow(na.now()),ea.enter("chunkFlow",{contentType:"flow",previous:sa,_tokenizer:aa}),va(Ca)}function va(Ca){if(Ca===null){xa(ea.exit("chunkFlow"),!0),ya(0),ea.consume(Ca);return}return markdownLineEnding(Ca)?(ea.consume(Ca),xa(ea.exit("chunkFlow")),oa=0,na.interrupt=void 0,ca):(ea.consume(Ca),va)}function xa(Ca,Sa){const wa=na.sliceStream(Ca);if(Sa&&wa.push(null),Ca.previous=sa,sa&&(sa.next=Ca),sa=Ca,aa.defineSkip(Ca.start),aa.write(wa),na.parser.lazy[Ca.start.line]){let ba=aa.events.length;for(;ba--;)if(aa.events[ba][1].start.offset<la&&(!aa.events[ba][1].end||aa.events[ba][1].end.offset>la))return;const Ea=na.events.length;let $a=Ea,Ma,Ia;for(;$a--;)if(na.events[$a][0]==="exit"&&na.events[$a][1].type==="chunkFlow"){if(Ma){Ia=na.events[$a][1].end;break}Ma=!0}for(ya(oa),ba=Ea;ba<na.events.length;)na.events[ba][1].end=Object.assign({},Ia),ba++;splice(na.events,$a+1,0,na.events.slice(Ea)),na.events.length=ba}}function ya(Ca){let Sa=ra.length;for(;Sa-- >Ca;){const wa=ra[Sa];na.containerState=wa[1],wa[0].exit.call(na,ea)}ra.length=Ca}function Aa(){aa.write([null]),sa=void 0,aa=void 0,na.containerState._closeFlow=void 0}}function tokenizeContainer(ea,na,ra){return factorySpace(ea,ea.attempt(this.parser.constructs.document,na,ra),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(ea){if(ea===null||markdownLineEndingOrSpace(ea)||unicodeWhitespace(ea))return 1;if(unicodePunctuation(ea))return 2}function resolveAll(ea,na,ra){const oa=[];let aa=-1;for(;++aa<ea.length;){const sa=ea[aa].resolveAll;sa&&!oa.includes(sa)&&(na=sa(na,ra),oa.push(sa))}return na}const attention={name:"attention",tokenize:tokenizeAttention,resolveAll:resolveAllAttention};function resolveAllAttention(ea,na){let ra=-1,oa,aa,sa,la,ca,ua,da,pa;for(;++ra<ea.length;)if(ea[ra][0]==="enter"&&ea[ra][1].type==="attentionSequence"&&ea[ra][1]._close){for(oa=ra;oa--;)if(ea[oa][0]==="exit"&&ea[oa][1].type==="attentionSequence"&&ea[oa][1]._open&&na.sliceSerialize(ea[oa][1]).charCodeAt(0)===na.sliceSerialize(ea[ra][1]).charCodeAt(0)){if((ea[oa][1]._close||ea[ra][1]._open)&&(ea[ra][1].end.offset-ea[ra][1].start.offset)%3&&!((ea[oa][1].end.offset-ea[oa][1].start.offset+ea[ra][1].end.offset-ea[ra][1].start.offset)%3))continue;ua=ea[oa][1].end.offset-ea[oa][1].start.offset>1&&ea[ra][1].end.offset-ea[ra][1].start.offset>1?2:1;const ha=Object.assign({},ea[oa][1].end),ga=Object.assign({},ea[ra][1].start);movePoint(ha,-ua),movePoint(ga,ua),la={type:ua>1?"strongSequence":"emphasisSequence",start:ha,end:Object.assign({},ea[oa][1].end)},ca={type:ua>1?"strongSequence":"emphasisSequence",start:Object.assign({},ea[ra][1].start),end:ga},sa={type:ua>1?"strongText":"emphasisText",start:Object.assign({},ea[oa][1].end),end:Object.assign({},ea[ra][1].start)},aa={type:ua>1?"strong":"emphasis",start:Object.assign({},la.start),end:Object.assign({},ca.end)},ea[oa][1].end=Object.assign({},la.start),ea[ra][1].start=Object.assign({},ca.end),da=[],ea[oa][1].end.offset-ea[oa][1].start.offset&&(da=push(da,[["enter",ea[oa][1],na],["exit",ea[oa][1],na]])),da=push(da,[["enter",aa,na],["enter",la,na],["exit",la,na],["enter",sa,na]]),da=push(da,resolveAll(na.parser.constructs.insideSpan.null,ea.slice(oa+1,ra),na)),da=push(da,[["exit",sa,na],["enter",ca,na],["exit",ca,na],["exit",aa,na]]),ea[ra][1].end.offset-ea[ra][1].start.offset?(pa=2,da=push(da,[["enter",ea[ra][1],na],["exit",ea[ra][1],na]])):pa=0,splice(ea,oa-1,ra-oa+3,da),ra=oa+da.length-pa-2;break}}for(ra=-1;++ra<ea.length;)ea[ra][1].type==="attentionSequence"&&(ea[ra][1].type="data");return ea}function tokenizeAttention(ea,na){const ra=this.parser.constructs.attentionMarkers.null,oa=this.previous,aa=classifyCharacter(oa);let sa;return la;function la(ua){return sa=ua,ea.enter("attentionSequence"),ca(ua)}function ca(ua){if(ua===sa)return ea.consume(ua),ca;const da=ea.exit("attentionSequence"),pa=classifyCharacter(ua),ha=!pa||pa===2&&aa||ra.includes(ua),ga=!aa||aa===2&&pa||ra.includes(oa);return da._open=!!(sa===42?ha:ha&&(aa||!ga)),da._close=!!(sa===42?ga:ga&&(pa||!ha)),na(ua)}}function movePoint(ea,na){ea.column+=na,ea.offset+=na,ea._bufferIndex+=na}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(ea,na,ra){let oa=0;return aa;function aa(fa){return ea.enter("autolink"),ea.enter("autolinkMarker"),ea.consume(fa),ea.exit("autolinkMarker"),ea.enter("autolinkProtocol"),sa}function sa(fa){return asciiAlpha(fa)?(ea.consume(fa),la):da(fa)}function la(fa){return fa===43||fa===45||fa===46||asciiAlphanumeric(fa)?(oa=1,ca(fa)):da(fa)}function ca(fa){return fa===58?(ea.consume(fa),oa=0,ua):(fa===43||fa===45||fa===46||asciiAlphanumeric(fa))&&oa++<32?(ea.consume(fa),ca):(oa=0,da(fa))}function ua(fa){return fa===62?(ea.exit("autolinkProtocol"),ea.enter("autolinkMarker"),ea.consume(fa),ea.exit("autolinkMarker"),ea.exit("autolink"),na):fa===null||fa===32||fa===60||asciiControl(fa)?ra(fa):(ea.consume(fa),ua)}function da(fa){return fa===64?(ea.consume(fa),pa):asciiAtext(fa)?(ea.consume(fa),da):ra(fa)}function pa(fa){return asciiAlphanumeric(fa)?ha(fa):ra(fa)}function ha(fa){return fa===46?(ea.consume(fa),oa=0,pa):fa===62?(ea.exit("autolinkProtocol").type="autolinkEmail",ea.enter("autolinkMarker"),ea.consume(fa),ea.exit("autolinkMarker"),ea.exit("autolink"),na):ga(fa)}function ga(fa){if((fa===45||asciiAlphanumeric(fa))&&oa++<63){const ma=fa===45?ga:ha;return ea.consume(fa),ma}return ra(fa)}}const blankLine={tokenize:tokenizeBlankLine,partial:!0};function tokenizeBlankLine(ea,na,ra){return oa;function oa(sa){return markdownSpace(sa)?factorySpace(ea,aa,"linePrefix")(sa):aa(sa)}function aa(sa){return sa===null||markdownLineEnding(sa)?na(sa):ra(sa)}}const blockQuote={name:"blockQuote",tokenize:tokenizeBlockQuoteStart,continuation:{tokenize:tokenizeBlockQuoteContinuation},exit};function tokenizeBlockQuoteStart(ea,na,ra){const oa=this;return aa;function aa(la){if(la===62){const ca=oa.containerState;return ca.open||(ea.enter("blockQuote",{_container:!0}),ca.open=!0),ea.enter("blockQuotePrefix"),ea.enter("blockQuoteMarker"),ea.consume(la),ea.exit("blockQuoteMarker"),sa}return ra(la)}function sa(la){return markdownSpace(la)?(ea.enter("blockQuotePrefixWhitespace"),ea.consume(la),ea.exit("blockQuotePrefixWhitespace"),ea.exit("blockQuotePrefix"),na):(ea.exit("blockQuotePrefix"),na(la))}}function tokenizeBlockQuoteContinuation(ea,na,ra){const oa=this;return aa;function aa(la){return markdownSpace(la)?factorySpace(ea,sa,"linePrefix",oa.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(la):sa(la)}function sa(la){return ea.attempt(blockQuote,na,ra)(la)}}function exit(ea){ea.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(ea,na,ra){return oa;function oa(sa){return ea.enter("characterEscape"),ea.enter("escapeMarker"),ea.consume(sa),ea.exit("escapeMarker"),aa}function aa(sa){return asciiPunctuation(sa)?(ea.enter("characterEscapeValue"),ea.consume(sa),ea.exit("characterEscapeValue"),ea.exit("characterEscape"),na):ra(sa)}}const element=document.createElement("i");function decodeNamedCharacterReference(ea){const na="&"+ea+";";element.innerHTML=na;const ra=element.textContent;return ra.charCodeAt(ra.length-1)===59&&ea!=="semi"||ra===na?!1:ra}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(ea,na,ra){const oa=this;let aa=0,sa,la;return ca;function ca(ha){return ea.enter("characterReference"),ea.enter("characterReferenceMarker"),ea.consume(ha),ea.exit("characterReferenceMarker"),ua}function ua(ha){return ha===35?(ea.enter("characterReferenceMarkerNumeric"),ea.consume(ha),ea.exit("characterReferenceMarkerNumeric"),da):(ea.enter("characterReferenceValue"),sa=31,la=asciiAlphanumeric,pa(ha))}function da(ha){return ha===88||ha===120?(ea.enter("characterReferenceMarkerHexadecimal"),ea.consume(ha),ea.exit("characterReferenceMarkerHexadecimal"),ea.enter("characterReferenceValue"),sa=6,la=asciiHexDigit,pa):(ea.enter("characterReferenceValue"),sa=7,la=asciiDigit,pa(ha))}function pa(ha){if(ha===59&&aa){const ga=ea.exit("characterReferenceValue");return la===asciiAlphanumeric&&!decodeNamedCharacterReference(oa.sliceSerialize(ga))?ra(ha):(ea.enter("characterReferenceMarker"),ea.consume(ha),ea.exit("characterReferenceMarker"),ea.exit("characterReference"),na)}return la(ha)&&aa++<sa?(ea.consume(ha),pa):ra(ha)}}const nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0},codeFenced={name:"codeFenced",tokenize:tokenizeCodeFenced,concrete:!0};function tokenizeCodeFenced(ea,na,ra){const oa=this,aa={tokenize:wa,partial:!0};let sa=0,la=0,ca;return ua;function ua(ba){return da(ba)}function da(ba){const Ea=oa.events[oa.events.length-1];return sa=Ea&&Ea[1].type==="linePrefix"?Ea[2].sliceSerialize(Ea[1],!0).length:0,ca=ba,ea.enter("codeFenced"),ea.enter("codeFencedFence"),ea.enter("codeFencedFenceSequence"),pa(ba)}function pa(ba){return ba===ca?(la++,ea.consume(ba),pa):la<3?ra(ba):(ea.exit("codeFencedFenceSequence"),markdownSpace(ba)?factorySpace(ea,ha,"whitespace")(ba):ha(ba))}function ha(ba){return ba===null||markdownLineEnding(ba)?(ea.exit("codeFencedFence"),oa.interrupt?na(ba):ea.check(nonLazyContinuation,va,Sa)(ba)):(ea.enter("codeFencedFenceInfo"),ea.enter("chunkString",{contentType:"string"}),ga(ba))}function ga(ba){return ba===null||markdownLineEnding(ba)?(ea.exit("chunkString"),ea.exit("codeFencedFenceInfo"),ha(ba)):markdownSpace(ba)?(ea.exit("chunkString"),ea.exit("codeFencedFenceInfo"),factorySpace(ea,fa,"whitespace")(ba)):ba===96&&ba===ca?ra(ba):(ea.consume(ba),ga)}function fa(ba){return ba===null||markdownLineEnding(ba)?ha(ba):(ea.enter("codeFencedFenceMeta"),ea.enter("chunkString",{contentType:"string"}),ma(ba))}function ma(ba){return ba===null||markdownLineEnding(ba)?(ea.exit("chunkString"),ea.exit("codeFencedFenceMeta"),ha(ba)):ba===96&&ba===ca?ra(ba):(ea.consume(ba),ma)}function va(ba){return ea.attempt(aa,Sa,xa)(ba)}function xa(ba){return ea.enter("lineEnding"),ea.consume(ba),ea.exit("lineEnding"),ya}function ya(ba){return sa>0&&markdownSpace(ba)?factorySpace(ea,Aa,"linePrefix",sa+1)(ba):Aa(ba)}function Aa(ba){return ba===null||markdownLineEnding(ba)?ea.check(nonLazyContinuation,va,Sa)(ba):(ea.enter("codeFlowValue"),Ca(ba))}function Ca(ba){return ba===null||markdownLineEnding(ba)?(ea.exit("codeFlowValue"),Aa(ba)):(ea.consume(ba),Ca)}function Sa(ba){return ea.exit("codeFenced"),na(ba)}function wa(ba,Ea,$a){let Ma=0;return Ia;function Ia(La){return ba.enter("lineEnding"),ba.consume(La),ba.exit("lineEnding"),Oa}function Oa(La){return ba.enter("codeFencedFence"),markdownSpace(La)?factorySpace(ba,Da,"linePrefix",oa.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(La):Da(La)}function Da(La){return La===ca?(ba.enter("codeFencedFenceSequence"),Ta(La)):$a(La)}function Ta(La){return La===ca?(Ma++,ba.consume(La),Ta):Ma>=la?(ba.exit("codeFencedFenceSequence"),markdownSpace(La)?factorySpace(ba,_a,"whitespace")(La):_a(La)):$a(La)}function _a(La){return La===null||markdownLineEnding(La)?(ba.exit("codeFencedFence"),Ea(La)):$a(La)}}}function tokenizeNonLazyContinuation(ea,na,ra){const oa=this;return aa;function aa(la){return la===null?ra(la):(ea.enter("lineEnding"),ea.consume(la),ea.exit("lineEnding"),sa)}function sa(la){return oa.parser.lazy[oa.now().line]?ra(la):na(la)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={tokenize:tokenizeFurtherStart,partial:!0};function tokenizeCodeIndented(ea,na,ra){const oa=this;return aa;function aa(da){return ea.enter("codeIndented"),factorySpace(ea,sa,"linePrefix",5)(da)}function sa(da){const pa=oa.events[oa.events.length-1];return pa&&pa[1].type==="linePrefix"&&pa[2].sliceSerialize(pa[1],!0).length>=4?la(da):ra(da)}function la(da){return da===null?ua(da):markdownLineEnding(da)?ea.attempt(furtherStart,la,ua)(da):(ea.enter("codeFlowValue"),ca(da))}function ca(da){return da===null||markdownLineEnding(da)?(ea.exit("codeFlowValue"),la(da)):(ea.consume(da),ca)}function ua(da){return ea.exit("codeIndented"),na(da)}}function tokenizeFurtherStart(ea,na,ra){const oa=this;return aa;function aa(la){return oa.parser.lazy[oa.now().line]?ra(la):markdownLineEnding(la)?(ea.enter("lineEnding"),ea.consume(la),ea.exit("lineEnding"),aa):factorySpace(ea,sa,"linePrefix",5)(la)}function sa(la){const ca=oa.events[oa.events.length-1];return ca&&ca[1].type==="linePrefix"&&ca[2].sliceSerialize(ca[1],!0).length>=4?na(la):markdownLineEnding(la)?aa(la):ra(la)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous};function resolveCodeText(ea){let na=ea.length-4,ra=3,oa,aa;if((ea[ra][1].type==="lineEnding"||ea[ra][1].type==="space")&&(ea[na][1].type==="lineEnding"||ea[na][1].type==="space")){for(oa=ra;++oa<na;)if(ea[oa][1].type==="codeTextData"){ea[ra][1].type="codeTextPadding",ea[na][1].type="codeTextPadding",ra+=2,na-=2;break}}for(oa=ra-1,na++;++oa<=na;)aa===void 0?oa!==na&&ea[oa][1].type!=="lineEnding"&&(aa=oa):(oa===na||ea[oa][1].type==="lineEnding")&&(ea[aa][1].type="codeTextData",oa!==aa+2&&(ea[aa][1].end=ea[oa-1][1].end,ea.splice(aa+2,oa-aa-2),na-=oa-aa-2,oa=aa+2),aa=void 0);return ea}function previous(ea){return ea!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(ea,na,ra){let oa=0,aa,sa;return la;function la(ha){return ea.enter("codeText"),ea.enter("codeTextSequence"),ca(ha)}function ca(ha){return ha===96?(ea.consume(ha),oa++,ca):(ea.exit("codeTextSequence"),ua(ha))}function ua(ha){return ha===null?ra(ha):ha===32?(ea.enter("space"),ea.consume(ha),ea.exit("space"),ua):ha===96?(sa=ea.enter("codeTextSequence"),aa=0,pa(ha)):markdownLineEnding(ha)?(ea.enter("lineEnding"),ea.consume(ha),ea.exit("lineEnding"),ua):(ea.enter("codeTextData"),da(ha))}function da(ha){return ha===null||ha===32||ha===96||markdownLineEnding(ha)?(ea.exit("codeTextData"),ua(ha)):(ea.consume(ha),da)}function pa(ha){return ha===96?(ea.consume(ha),aa++,pa):aa===oa?(ea.exit("codeTextSequence"),ea.exit("codeText"),na(ha)):(sa.type="codeTextData",da(ha))}}function subtokenize(ea){const na={};let ra=-1,oa,aa,sa,la,ca,ua,da;for(;++ra<ea.length;){for(;ra in na;)ra=na[ra];if(oa=ea[ra],ra&&oa[1].type==="chunkFlow"&&ea[ra-1][1].type==="listItemPrefix"&&(ua=oa[1]._tokenizer.events,sa=0,sa<ua.length&&ua[sa][1].type==="lineEndingBlank"&&(sa+=2),sa<ua.length&&ua[sa][1].type==="content"))for(;++sa<ua.length&&ua[sa][1].type!=="content";)ua[sa][1].type==="chunkText"&&(ua[sa][1]._isInFirstContentOfListItem=!0,sa++);if(oa[0]==="enter")oa[1].contentType&&(Object.assign(na,subcontent(ea,ra)),ra=na[ra],da=!0);else if(oa[1]._container){for(sa=ra,aa=void 0;sa--&&(la=ea[sa],la[1].type==="lineEnding"||la[1].type==="lineEndingBlank");)la[0]==="enter"&&(aa&&(ea[aa][1].type="lineEndingBlank"),la[1].type="lineEnding",aa=sa);aa&&(oa[1].end=Object.assign({},ea[aa][1].start),ca=ea.slice(aa,ra),ca.unshift(oa),splice(ea,aa,ra-aa+1,ca))}}return!da}function subcontent(ea,na){const ra=ea[na][1],oa=ea[na][2];let aa=na-1;const sa=[],la=ra._tokenizer||oa.parser[ra.contentType](ra.start),ca=la.events,ua=[],da={};let pa,ha,ga=-1,fa=ra,ma=0,va=0;const xa=[va];for(;fa;){for(;ea[++aa][1]!==fa;);sa.push(aa),fa._tokenizer||(pa=oa.sliceStream(fa),fa.next||pa.push(null),ha&&la.defineSkip(fa.start),fa._isInFirstContentOfListItem&&(la._gfmTasklistFirstContentOfListItem=!0),la.write(pa),fa._isInFirstContentOfListItem&&(la._gfmTasklistFirstContentOfListItem=void 0)),ha=fa,fa=fa.next}for(fa=ra;++ga<ca.length;)ca[ga][0]==="exit"&&ca[ga-1][0]==="enter"&&ca[ga][1].type===ca[ga-1][1].type&&ca[ga][1].start.line!==ca[ga][1].end.line&&(va=ga+1,xa.push(va),fa._tokenizer=void 0,fa.previous=void 0,fa=fa.next);for(la.events=[],fa?(fa._tokenizer=void 0,fa.previous=void 0):xa.pop(),ga=xa.length;ga--;){const ya=ca.slice(xa[ga],xa[ga+1]),Aa=sa.pop();ua.unshift([Aa,Aa+ya.length-1]),splice(ea,Aa,2,ya)}for(ga=-1;++ga<ua.length;)da[ma+ua[ga][0]]=ma+ua[ga][1],ma+=ua[ga][1]-ua[ga][0]-1;return da}const content={tokenize:tokenizeContent,resolve:resolveContent},continuationConstruct={tokenize:tokenizeContinuation,partial:!0};function resolveContent(ea){return subtokenize(ea),ea}function tokenizeContent(ea,na){let ra;return oa;function oa(ca){return ea.enter("content"),ra=ea.enter("chunkContent",{contentType:"content"}),aa(ca)}function aa(ca){return ca===null?sa(ca):markdownLineEnding(ca)?ea.check(continuationConstruct,la,sa)(ca):(ea.consume(ca),aa)}function sa(ca){return ea.exit("chunkContent"),ea.exit("content"),na(ca)}function la(ca){return ea.consume(ca),ea.exit("chunkContent"),ra.next=ea.enter("chunkContent",{contentType:"content",previous:ra}),ra=ra.next,aa}}function tokenizeContinuation(ea,na,ra){const oa=this;return aa;function aa(la){return ea.exit("chunkContent"),ea.enter("lineEnding"),ea.consume(la),ea.exit("lineEnding"),factorySpace(ea,sa,"linePrefix")}function sa(la){if(la===null||markdownLineEnding(la))return ra(la);const ca=oa.events[oa.events.length-1];return!oa.parser.constructs.disable.null.includes("codeIndented")&&ca&&ca[1].type==="linePrefix"&&ca[2].sliceSerialize(ca[1],!0).length>=4?na(la):ea.interrupt(oa.parser.constructs.flow,ra,na)(la)}}function factoryDestination(ea,na,ra,oa,aa,sa,la,ca,ua){const da=ua||Number.POSITIVE_INFINITY;let pa=0;return ha;function ha(ya){return ya===60?(ea.enter(oa),ea.enter(aa),ea.enter(sa),ea.consume(ya),ea.exit(sa),ga):ya===null||ya===32||ya===41||asciiControl(ya)?ra(ya):(ea.enter(oa),ea.enter(la),ea.enter(ca),ea.enter("chunkString",{contentType:"string"}),va(ya))}function ga(ya){return ya===62?(ea.enter(sa),ea.consume(ya),ea.exit(sa),ea.exit(aa),ea.exit(oa),na):(ea.enter(ca),ea.enter("chunkString",{contentType:"string"}),fa(ya))}function fa(ya){return ya===62?(ea.exit("chunkString"),ea.exit(ca),ga(ya)):ya===null||ya===60||markdownLineEnding(ya)?ra(ya):(ea.consume(ya),ya===92?ma:fa)}function ma(ya){return ya===60||ya===62||ya===92?(ea.consume(ya),fa):fa(ya)}function va(ya){return!pa&&(ya===null||ya===41||markdownLineEndingOrSpace(ya))?(ea.exit("chunkString"),ea.exit(ca),ea.exit(la),ea.exit(oa),na(ya)):pa<da&&ya===40?(ea.consume(ya),pa++,va):ya===41?(ea.consume(ya),pa--,va):ya===null||ya===32||ya===40||asciiControl(ya)?ra(ya):(ea.consume(ya),ya===92?xa:va)}function xa(ya){return ya===40||ya===41||ya===92?(ea.consume(ya),va):va(ya)}}function factoryLabel(ea,na,ra,oa,aa,sa){const la=this;let ca=0,ua;return da;function da(fa){return ea.enter(oa),ea.enter(aa),ea.consume(fa),ea.exit(aa),ea.enter(sa),pa}function pa(fa){return ca>999||fa===null||fa===91||fa===93&&!ua||fa===94&&!ca&&"_hiddenFootnoteSupport"in la.parser.constructs?ra(fa):fa===93?(ea.exit(sa),ea.enter(aa),ea.consume(fa),ea.exit(aa),ea.exit(oa),na):markdownLineEnding(fa)?(ea.enter("lineEnding"),ea.consume(fa),ea.exit("lineEnding"),pa):(ea.enter("chunkString",{contentType:"string"}),ha(fa))}function ha(fa){return fa===null||fa===91||fa===93||markdownLineEnding(fa)||ca++>999?(ea.exit("chunkString"),pa(fa)):(ea.consume(fa),ua||(ua=!markdownSpace(fa)),fa===92?ga:ha)}function ga(fa){return fa===91||fa===92||fa===93?(ea.consume(fa),ca++,ha):ha(fa)}}function factoryTitle(ea,na,ra,oa,aa,sa){let la;return ca;function ca(ga){return ga===34||ga===39||ga===40?(ea.enter(oa),ea.enter(aa),ea.consume(ga),ea.exit(aa),la=ga===40?41:ga,ua):ra(ga)}function ua(ga){return ga===la?(ea.enter(aa),ea.consume(ga),ea.exit(aa),ea.exit(oa),na):(ea.enter(sa),da(ga))}function da(ga){return ga===la?(ea.exit(sa),ua(la)):ga===null?ra(ga):markdownLineEnding(ga)?(ea.enter("lineEnding"),ea.consume(ga),ea.exit("lineEnding"),factorySpace(ea,da,"linePrefix")):(ea.enter("chunkString",{contentType:"string"}),pa(ga))}function pa(ga){return ga===la||ga===null||markdownLineEnding(ga)?(ea.exit("chunkString"),da(ga)):(ea.consume(ga),ga===92?ha:pa)}function ha(ga){return ga===la||ga===92?(ea.consume(ga),pa):pa(ga)}}function factoryWhitespace(ea,na){let ra;return oa;function oa(aa){return markdownLineEnding(aa)?(ea.enter("lineEnding"),ea.consume(aa),ea.exit("lineEnding"),ra=!0,oa):markdownSpace(aa)?factorySpace(ea,oa,ra?"linePrefix":"lineSuffix")(aa):na(aa)}}function normalizeIdentifier(ea){return ea.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const definition={name:"definition",tokenize:tokenizeDefinition},titleBefore={tokenize:tokenizeTitleBefore,partial:!0};function tokenizeDefinition(ea,na,ra){const oa=this;let aa;return sa;function sa(fa){return ea.enter("definition"),la(fa)}function la(fa){return factoryLabel.call(oa,ea,ca,ra,"definitionLabel","definitionLabelMarker","definitionLabelString")(fa)}function ca(fa){return aa=normalizeIdentifier(oa.sliceSerialize(oa.events[oa.events.length-1][1]).slice(1,-1)),fa===58?(ea.enter("definitionMarker"),ea.consume(fa),ea.exit("definitionMarker"),ua):ra(fa)}function ua(fa){return markdownLineEndingOrSpace(fa)?factoryWhitespace(ea,da)(fa):da(fa)}function da(fa){return factoryDestination(ea,pa,ra,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(fa)}function pa(fa){return ea.attempt(titleBefore,ha,ha)(fa)}function ha(fa){return markdownSpace(fa)?factorySpace(ea,ga,"whitespace")(fa):ga(fa)}function ga(fa){return fa===null||markdownLineEnding(fa)?(ea.exit("definition"),oa.parser.defined.push(aa),na(fa)):ra(fa)}}function tokenizeTitleBefore(ea,na,ra){return oa;function oa(ca){return markdownLineEndingOrSpace(ca)?factoryWhitespace(ea,aa)(ca):ra(ca)}function aa(ca){return factoryTitle(ea,sa,ra,"definitionTitle","definitionTitleMarker","definitionTitleString")(ca)}function sa(ca){return markdownSpace(ca)?factorySpace(ea,la,"whitespace")(ca):la(ca)}function la(ca){return ca===null||markdownLineEnding(ca)?na(ca):ra(ca)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(ea,na,ra){return oa;function oa(sa){return ea.enter("hardBreakEscape"),ea.consume(sa),aa}function aa(sa){return markdownLineEnding(sa)?(ea.exit("hardBreakEscape"),na(sa)):ra(sa)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(ea,na){let ra=ea.length-2,oa=3,aa,sa;return ea[oa][1].type==="whitespace"&&(oa+=2),ra-2>oa&&ea[ra][1].type==="whitespace"&&(ra-=2),ea[ra][1].type==="atxHeadingSequence"&&(oa===ra-1||ra-4>oa&&ea[ra-2][1].type==="whitespace")&&(ra-=oa+1===ra?2:4),ra>oa&&(aa={type:"atxHeadingText",start:ea[oa][1].start,end:ea[ra][1].end},sa={type:"chunkText",start:ea[oa][1].start,end:ea[ra][1].end,contentType:"text"},splice(ea,oa,ra-oa+1,[["enter",aa,na],["enter",sa,na],["exit",sa,na],["exit",aa,na]])),ea}function tokenizeHeadingAtx(ea,na,ra){let oa=0;return aa;function aa(pa){return ea.enter("atxHeading"),sa(pa)}function sa(pa){return ea.enter("atxHeadingSequence"),la(pa)}function la(pa){return pa===35&&oa++<6?(ea.consume(pa),la):pa===null||markdownLineEndingOrSpace(pa)?(ea.exit("atxHeadingSequence"),ca(pa)):ra(pa)}function ca(pa){return pa===35?(ea.enter("atxHeadingSequence"),ua(pa)):pa===null||markdownLineEnding(pa)?(ea.exit("atxHeading"),na(pa)):markdownSpace(pa)?factorySpace(ea,ca,"whitespace")(pa):(ea.enter("atxHeadingText"),da(pa))}function ua(pa){return pa===35?(ea.consume(pa),ua):(ea.exit("atxHeadingSequence"),ca(pa))}function da(pa){return pa===null||pa===35||markdownLineEndingOrSpace(pa)?(ea.exit("atxHeadingText"),ca(pa)):(ea.consume(pa),da)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},blankLineBefore={tokenize:tokenizeBlankLineBefore,partial:!0},nonLazyContinuationStart={tokenize:tokenizeNonLazyContinuationStart,partial:!0};function resolveToHtmlFlow(ea){let na=ea.length;for(;na--&&!(ea[na][0]==="enter"&&ea[na][1].type==="htmlFlow"););return na>1&&ea[na-2][1].type==="linePrefix"&&(ea[na][1].start=ea[na-2][1].start,ea[na+1][1].start=ea[na-2][1].start,ea.splice(na-2,2)),ea}function tokenizeHtmlFlow(ea,na,ra){const oa=this;let aa,sa,la,ca,ua;return da;function da(Wa){return pa(Wa)}function pa(Wa){return ea.enter("htmlFlow"),ea.enter("htmlFlowData"),ea.consume(Wa),ha}function ha(Wa){return Wa===33?(ea.consume(Wa),ga):Wa===47?(ea.consume(Wa),sa=!0,va):Wa===63?(ea.consume(Wa),aa=3,oa.interrupt?na:Va):asciiAlpha(Wa)?(ea.consume(Wa),la=String.fromCharCode(Wa),xa):ra(Wa)}function ga(Wa){return Wa===45?(ea.consume(Wa),aa=2,fa):Wa===91?(ea.consume(Wa),aa=5,ca=0,ma):asciiAlpha(Wa)?(ea.consume(Wa),aa=4,oa.interrupt?na:Va):ra(Wa)}function fa(Wa){return Wa===45?(ea.consume(Wa),oa.interrupt?na:Va):ra(Wa)}function ma(Wa){const Za="CDATA[";return Wa===Za.charCodeAt(ca++)?(ea.consume(Wa),ca===Za.length?oa.interrupt?na:Da:ma):ra(Wa)}function va(Wa){return asciiAlpha(Wa)?(ea.consume(Wa),la=String.fromCharCode(Wa),xa):ra(Wa)}function xa(Wa){if(Wa===null||Wa===47||Wa===62||markdownLineEndingOrSpace(Wa)){const Za=Wa===47,Xa=la.toLowerCase();return!Za&&!sa&&htmlRawNames.includes(Xa)?(aa=1,oa.interrupt?na(Wa):Da(Wa)):htmlBlockNames.includes(la.toLowerCase())?(aa=6,Za?(ea.consume(Wa),ya):oa.interrupt?na(Wa):Da(Wa)):(aa=7,oa.interrupt&&!oa.parser.lazy[oa.now().line]?ra(Wa):sa?Aa(Wa):Ca(Wa))}return Wa===45||asciiAlphanumeric(Wa)?(ea.consume(Wa),la+=String.fromCharCode(Wa),xa):ra(Wa)}function ya(Wa){return Wa===62?(ea.consume(Wa),oa.interrupt?na:Da):ra(Wa)}function Aa(Wa){return markdownSpace(Wa)?(ea.consume(Wa),Aa):Ia(Wa)}function Ca(Wa){return Wa===47?(ea.consume(Wa),Ia):Wa===58||Wa===95||asciiAlpha(Wa)?(ea.consume(Wa),Sa):markdownSpace(Wa)?(ea.consume(Wa),Ca):Ia(Wa)}function Sa(Wa){return Wa===45||Wa===46||Wa===58||Wa===95||asciiAlphanumeric(Wa)?(ea.consume(Wa),Sa):wa(Wa)}function wa(Wa){return Wa===61?(ea.consume(Wa),ba):markdownSpace(Wa)?(ea.consume(Wa),wa):Ca(Wa)}function ba(Wa){return Wa===null||Wa===60||Wa===61||Wa===62||Wa===96?ra(Wa):Wa===34||Wa===39?(ea.consume(Wa),ua=Wa,Ea):markdownSpace(Wa)?(ea.consume(Wa),ba):$a(Wa)}function Ea(Wa){return Wa===ua?(ea.consume(Wa),ua=null,Ma):Wa===null||markdownLineEnding(Wa)?ra(Wa):(ea.consume(Wa),Ea)}function $a(Wa){return Wa===null||Wa===34||Wa===39||Wa===47||Wa===60||Wa===61||Wa===62||Wa===96||markdownLineEndingOrSpace(Wa)?wa(Wa):(ea.consume(Wa),$a)}function Ma(Wa){return Wa===47||Wa===62||markdownSpace(Wa)?Ca(Wa):ra(Wa)}function Ia(Wa){return Wa===62?(ea.consume(Wa),Oa):ra(Wa)}function Oa(Wa){return Wa===null||markdownLineEnding(Wa)?Da(Wa):markdownSpace(Wa)?(ea.consume(Wa),Oa):ra(Wa)}function Da(Wa){return Wa===45&&aa===2?(ea.consume(Wa),Na):Wa===60&&aa===1?(ea.consume(Wa),za):Wa===62&&aa===4?(ea.consume(Wa),Ua):Wa===63&&aa===3?(ea.consume(Wa),Va):Wa===93&&aa===5?(ea.consume(Wa),Ha):markdownLineEnding(Wa)&&(aa===6||aa===7)?(ea.exit("htmlFlowData"),ea.check(blankLineBefore,Qa,Ta)(Wa)):Wa===null||markdownLineEnding(Wa)?(ea.exit("htmlFlowData"),Ta(Wa)):(ea.consume(Wa),Da)}function Ta(Wa){return ea.check(nonLazyContinuationStart,_a,Qa)(Wa)}function _a(Wa){return ea.enter("lineEnding"),ea.consume(Wa),ea.exit("lineEnding"),La}function La(Wa){return Wa===null||markdownLineEnding(Wa)?Ta(Wa):(ea.enter("htmlFlowData"),Da(Wa))}function Na(Wa){return Wa===45?(ea.consume(Wa),Va):Da(Wa)}function za(Wa){return Wa===47?(ea.consume(Wa),la="",Fa):Da(Wa)}function Fa(Wa){if(Wa===62){const Za=la.toLowerCase();return htmlRawNames.includes(Za)?(ea.consume(Wa),Ua):Da(Wa)}return asciiAlpha(Wa)&&la.length<8?(ea.consume(Wa),la+=String.fromCharCode(Wa),Fa):Da(Wa)}function Ha(Wa){return Wa===93?(ea.consume(Wa),Va):Da(Wa)}function Va(Wa){return Wa===62?(ea.consume(Wa),Ua):Wa===45&&aa===2?(ea.consume(Wa),Va):Da(Wa)}function Ua(Wa){return Wa===null||markdownLineEnding(Wa)?(ea.exit("htmlFlowData"),Qa(Wa)):(ea.consume(Wa),Ua)}function Qa(Wa){return ea.exit("htmlFlow"),na(Wa)}}function tokenizeNonLazyContinuationStart(ea,na,ra){const oa=this;return aa;function aa(la){return markdownLineEnding(la)?(ea.enter("lineEnding"),ea.consume(la),ea.exit("lineEnding"),sa):ra(la)}function sa(la){return oa.parser.lazy[oa.now().line]?ra(la):na(la)}}function tokenizeBlankLineBefore(ea,na,ra){return oa;function oa(aa){return ea.enter("lineEnding"),ea.consume(aa),ea.exit("lineEnding"),ea.attempt(blankLine,na,ra)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(ea,na,ra){const oa=this;let aa,sa,la;return ca;function ca(Va){return ea.enter("htmlText"),ea.enter("htmlTextData"),ea.consume(Va),ua}function ua(Va){return Va===33?(ea.consume(Va),da):Va===47?(ea.consume(Va),wa):Va===63?(ea.consume(Va),Ca):asciiAlpha(Va)?(ea.consume(Va),$a):ra(Va)}function da(Va){return Va===45?(ea.consume(Va),pa):Va===91?(ea.consume(Va),sa=0,ma):asciiAlpha(Va)?(ea.consume(Va),Aa):ra(Va)}function pa(Va){return Va===45?(ea.consume(Va),fa):ra(Va)}function ha(Va){return Va===null?ra(Va):Va===45?(ea.consume(Va),ga):markdownLineEnding(Va)?(la=ha,za(Va)):(ea.consume(Va),ha)}function ga(Va){return Va===45?(ea.consume(Va),fa):ha(Va)}function fa(Va){return Va===62?Na(Va):Va===45?ga(Va):ha(Va)}function ma(Va){const Ua="CDATA[";return Va===Ua.charCodeAt(sa++)?(ea.consume(Va),sa===Ua.length?va:ma):ra(Va)}function va(Va){return Va===null?ra(Va):Va===93?(ea.consume(Va),xa):markdownLineEnding(Va)?(la=va,za(Va)):(ea.consume(Va),va)}function xa(Va){return Va===93?(ea.consume(Va),ya):va(Va)}function ya(Va){return Va===62?Na(Va):Va===93?(ea.consume(Va),ya):va(Va)}function Aa(Va){return Va===null||Va===62?Na(Va):markdownLineEnding(Va)?(la=Aa,za(Va)):(ea.consume(Va),Aa)}function Ca(Va){return Va===null?ra(Va):Va===63?(ea.consume(Va),Sa):markdownLineEnding(Va)?(la=Ca,za(Va)):(ea.consume(Va),Ca)}function Sa(Va){return Va===62?Na(Va):Ca(Va)}function wa(Va){return asciiAlpha(Va)?(ea.consume(Va),ba):ra(Va)}function ba(Va){return Va===45||asciiAlphanumeric(Va)?(ea.consume(Va),ba):Ea(Va)}function Ea(Va){return markdownLineEnding(Va)?(la=Ea,za(Va)):markdownSpace(Va)?(ea.consume(Va),Ea):Na(Va)}function $a(Va){return Va===45||asciiAlphanumeric(Va)?(ea.consume(Va),$a):Va===47||Va===62||markdownLineEndingOrSpace(Va)?Ma(Va):ra(Va)}function Ma(Va){return Va===47?(ea.consume(Va),Na):Va===58||Va===95||asciiAlpha(Va)?(ea.consume(Va),Ia):markdownLineEnding(Va)?(la=Ma,za(Va)):markdownSpace(Va)?(ea.consume(Va),Ma):Na(Va)}function Ia(Va){return Va===45||Va===46||Va===58||Va===95||asciiAlphanumeric(Va)?(ea.consume(Va),Ia):Oa(Va)}function Oa(Va){return Va===61?(ea.consume(Va),Da):markdownLineEnding(Va)?(la=Oa,za(Va)):markdownSpace(Va)?(ea.consume(Va),Oa):Ma(Va)}function Da(Va){return Va===null||Va===60||Va===61||Va===62||Va===96?ra(Va):Va===34||Va===39?(ea.consume(Va),aa=Va,Ta):markdownLineEnding(Va)?(la=Da,za(Va)):markdownSpace(Va)?(ea.consume(Va),Da):(ea.consume(Va),_a)}function Ta(Va){return Va===aa?(ea.consume(Va),aa=void 0,La):Va===null?ra(Va):markdownLineEnding(Va)?(la=Ta,za(Va)):(ea.consume(Va),Ta)}function _a(Va){return Va===null||Va===34||Va===39||Va===60||Va===61||Va===96?ra(Va):Va===47||Va===62||markdownLineEndingOrSpace(Va)?Ma(Va):(ea.consume(Va),_a)}function La(Va){return Va===47||Va===62||markdownLineEndingOrSpace(Va)?Ma(Va):ra(Va)}function Na(Va){return Va===62?(ea.consume(Va),ea.exit("htmlTextData"),ea.exit("htmlText"),na):ra(Va)}function za(Va){return ea.exit("htmlTextData"),ea.enter("lineEnding"),ea.consume(Va),ea.exit("lineEnding"),Fa}function Fa(Va){return markdownSpace(Va)?factorySpace(ea,Ha,"linePrefix",oa.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Va):Ha(Va)}function Ha(Va){return ea.enter("htmlTextData"),la(Va)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(ea){let na=-1;for(;++na<ea.length;){const ra=ea[na][1];(ra.type==="labelImage"||ra.type==="labelLink"||ra.type==="labelEnd")&&(ea.splice(na+1,ra.type==="labelImage"?4:2),ra.type="data",na++)}return ea}function resolveToLabelEnd(ea,na){let ra=ea.length,oa=0,aa,sa,la,ca;for(;ra--;)if(aa=ea[ra][1],sa){if(aa.type==="link"||aa.type==="labelLink"&&aa._inactive)break;ea[ra][0]==="enter"&&aa.type==="labelLink"&&(aa._inactive=!0)}else if(la){if(ea[ra][0]==="enter"&&(aa.type==="labelImage"||aa.type==="labelLink")&&!aa._balanced&&(sa=ra,aa.type!=="labelLink")){oa=2;break}}else aa.type==="labelEnd"&&(la=ra);const ua={type:ea[sa][1].type==="labelLink"?"link":"image",start:Object.assign({},ea[sa][1].start),end:Object.assign({},ea[ea.length-1][1].end)},da={type:"label",start:Object.assign({},ea[sa][1].start),end:Object.assign({},ea[la][1].end)},pa={type:"labelText",start:Object.assign({},ea[sa+oa+2][1].end),end:Object.assign({},ea[la-2][1].start)};return ca=[["enter",ua,na],["enter",da,na]],ca=push(ca,ea.slice(sa+1,sa+oa+3)),ca=push(ca,[["enter",pa,na]]),ca=push(ca,resolveAll(na.parser.constructs.insideSpan.null,ea.slice(sa+oa+4,la-3),na)),ca=push(ca,[["exit",pa,na],ea[la-2],ea[la-1],["exit",da,na]]),ca=push(ca,ea.slice(la+1)),ca=push(ca,[["exit",ua,na]]),splice(ea,sa,ea.length,ca),ea}function tokenizeLabelEnd(ea,na,ra){const oa=this;let aa=oa.events.length,sa,la;for(;aa--;)if((oa.events[aa][1].type==="labelImage"||oa.events[aa][1].type==="labelLink")&&!oa.events[aa][1]._balanced){sa=oa.events[aa][1];break}return ca;function ca(ga){return sa?sa._inactive?ha(ga):(la=oa.parser.defined.includes(normalizeIdentifier(oa.sliceSerialize({start:sa.end,end:oa.now()}))),ea.enter("labelEnd"),ea.enter("labelMarker"),ea.consume(ga),ea.exit("labelMarker"),ea.exit("labelEnd"),ua):ra(ga)}function ua(ga){return ga===40?ea.attempt(resourceConstruct,pa,la?pa:ha)(ga):ga===91?ea.attempt(referenceFullConstruct,pa,la?da:ha)(ga):la?pa(ga):ha(ga)}function da(ga){return ea.attempt(referenceCollapsedConstruct,pa,ha)(ga)}function pa(ga){return na(ga)}function ha(ga){return sa._balanced=!0,ra(ga)}}function tokenizeResource(ea,na,ra){return oa;function oa(ha){return ea.enter("resource"),ea.enter("resourceMarker"),ea.consume(ha),ea.exit("resourceMarker"),aa}function aa(ha){return markdownLineEndingOrSpace(ha)?factoryWhitespace(ea,sa)(ha):sa(ha)}function sa(ha){return ha===41?pa(ha):factoryDestination(ea,la,ca,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ha)}function la(ha){return markdownLineEndingOrSpace(ha)?factoryWhitespace(ea,ua)(ha):pa(ha)}function ca(ha){return ra(ha)}function ua(ha){return ha===34||ha===39||ha===40?factoryTitle(ea,da,ra,"resourceTitle","resourceTitleMarker","resourceTitleString")(ha):pa(ha)}function da(ha){return markdownLineEndingOrSpace(ha)?factoryWhitespace(ea,pa)(ha):pa(ha)}function pa(ha){return ha===41?(ea.enter("resourceMarker"),ea.consume(ha),ea.exit("resourceMarker"),ea.exit("resource"),na):ra(ha)}}function tokenizeReferenceFull(ea,na,ra){const oa=this;return aa;function aa(ca){return factoryLabel.call(oa,ea,sa,la,"reference","referenceMarker","referenceString")(ca)}function sa(ca){return oa.parser.defined.includes(normalizeIdentifier(oa.sliceSerialize(oa.events[oa.events.length-1][1]).slice(1,-1)))?na(ca):ra(ca)}function la(ca){return ra(ca)}}function tokenizeReferenceCollapsed(ea,na,ra){return oa;function oa(sa){return ea.enter("reference"),ea.enter("referenceMarker"),ea.consume(sa),ea.exit("referenceMarker"),aa}function aa(sa){return sa===93?(ea.enter("referenceMarker"),ea.consume(sa),ea.exit("referenceMarker"),ea.exit("reference"),na):ra(sa)}}const labelStartImage={name:"labelStartImage",tokenize:tokenizeLabelStartImage,resolveAll:labelEnd.resolveAll};function tokenizeLabelStartImage(ea,na,ra){const oa=this;return aa;function aa(ca){return ea.enter("labelImage"),ea.enter("labelImageMarker"),ea.consume(ca),ea.exit("labelImageMarker"),sa}function sa(ca){return ca===91?(ea.enter("labelMarker"),ea.consume(ca),ea.exit("labelMarker"),ea.exit("labelImage"),la):ra(ca)}function la(ca){return ca===94&&"_hiddenFootnoteSupport"in oa.parser.constructs?ra(ca):na(ca)}}const labelStartLink={name:"labelStartLink",tokenize:tokenizeLabelStartLink,resolveAll:labelEnd.resolveAll};function tokenizeLabelStartLink(ea,na,ra){const oa=this;return aa;function aa(la){return ea.enter("labelLink"),ea.enter("labelMarker"),ea.consume(la),ea.exit("labelMarker"),ea.exit("labelLink"),sa}function sa(la){return la===94&&"_hiddenFootnoteSupport"in oa.parser.constructs?ra(la):na(la)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(ea,na){return ra;function ra(oa){return ea.enter("lineEnding"),ea.consume(oa),ea.exit("lineEnding"),factorySpace(ea,na,"linePrefix")}}const thematicBreak$1={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(ea,na,ra){let oa=0,aa;return sa;function sa(da){return ea.enter("thematicBreak"),la(da)}function la(da){return aa=da,ca(da)}function ca(da){return da===aa?(ea.enter("thematicBreakSequence"),ua(da)):oa>=3&&(da===null||markdownLineEnding(da))?(ea.exit("thematicBreak"),na(da)):ra(da)}function ua(da){return da===aa?(ea.consume(da),oa++,ua):(ea.exit("thematicBreakSequence"),markdownSpace(da)?factorySpace(ea,ca,"whitespace")(da):ca(da))}}const list$2={name:"list",tokenize:tokenizeListStart,continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd},listItemPrefixWhitespaceConstruct={tokenize:tokenizeListItemPrefixWhitespace,partial:!0},indentConstruct={tokenize:tokenizeIndent,partial:!0};function tokenizeListStart(ea,na,ra){const oa=this,aa=oa.events[oa.events.length-1];let sa=aa&&aa[1].type==="linePrefix"?aa[2].sliceSerialize(aa[1],!0).length:0,la=0;return ca;function ca(fa){const ma=oa.containerState.type||(fa===42||fa===43||fa===45?"listUnordered":"listOrdered");if(ma==="listUnordered"?!oa.containerState.marker||fa===oa.containerState.marker:asciiDigit(fa)){if(oa.containerState.type||(oa.containerState.type=ma,ea.enter(ma,{_container:!0})),ma==="listUnordered")return ea.enter("listItemPrefix"),fa===42||fa===45?ea.check(thematicBreak$1,ra,da)(fa):da(fa);if(!oa.interrupt||fa===49)return ea.enter("listItemPrefix"),ea.enter("listItemValue"),ua(fa)}return ra(fa)}function ua(fa){return asciiDigit(fa)&&++la<10?(ea.consume(fa),ua):(!oa.interrupt||la<2)&&(oa.containerState.marker?fa===oa.containerState.marker:fa===41||fa===46)?(ea.exit("listItemValue"),da(fa)):ra(fa)}function da(fa){return ea.enter("listItemMarker"),ea.consume(fa),ea.exit("listItemMarker"),oa.containerState.marker=oa.containerState.marker||fa,ea.check(blankLine,oa.interrupt?ra:pa,ea.attempt(listItemPrefixWhitespaceConstruct,ga,ha))}function pa(fa){return oa.containerState.initialBlankLine=!0,sa++,ga(fa)}function ha(fa){return markdownSpace(fa)?(ea.enter("listItemPrefixWhitespace"),ea.consume(fa),ea.exit("listItemPrefixWhitespace"),ga):ra(fa)}function ga(fa){return oa.containerState.size=sa+oa.sliceSerialize(ea.exit("listItemPrefix"),!0).length,na(fa)}}function tokenizeListContinuation(ea,na,ra){const oa=this;return oa.containerState._closeFlow=void 0,ea.check(blankLine,aa,sa);function aa(ca){return oa.containerState.furtherBlankLines=oa.containerState.furtherBlankLines||oa.containerState.initialBlankLine,factorySpace(ea,na,"listItemIndent",oa.containerState.size+1)(ca)}function sa(ca){return oa.containerState.furtherBlankLines||!markdownSpace(ca)?(oa.containerState.furtherBlankLines=void 0,oa.containerState.initialBlankLine=void 0,la(ca)):(oa.containerState.furtherBlankLines=void 0,oa.containerState.initialBlankLine=void 0,ea.attempt(indentConstruct,na,la)(ca))}function la(ca){return oa.containerState._closeFlow=!0,oa.interrupt=void 0,factorySpace(ea,ea.attempt(list$2,na,ra),"linePrefix",oa.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ca)}}function tokenizeIndent(ea,na,ra){const oa=this;return factorySpace(ea,aa,"listItemIndent",oa.containerState.size+1);function aa(sa){const la=oa.events[oa.events.length-1];return la&&la[1].type==="listItemIndent"&&la[2].sliceSerialize(la[1],!0).length===oa.containerState.size?na(sa):ra(sa)}}function tokenizeListEnd(ea){ea.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(ea,na,ra){const oa=this;return factorySpace(ea,aa,"listItemPrefixWhitespace",oa.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function aa(sa){const la=oa.events[oa.events.length-1];return!markdownSpace(sa)&&la&&la[1].type==="listItemPrefixWhitespace"?na(sa):ra(sa)}}const setextUnderline={name:"setextUnderline",tokenize:tokenizeSetextUnderline,resolveTo:resolveToSetextUnderline};function resolveToSetextUnderline(ea,na){let ra=ea.length,oa,aa,sa;for(;ra--;)if(ea[ra][0]==="enter"){if(ea[ra][1].type==="content"){oa=ra;break}ea[ra][1].type==="paragraph"&&(aa=ra)}else ea[ra][1].type==="content"&&ea.splice(ra,1),!sa&&ea[ra][1].type==="definition"&&(sa=ra);const la={type:"setextHeading",start:Object.assign({},ea[aa][1].start),end:Object.assign({},ea[ea.length-1][1].end)};return ea[aa][1].type="setextHeadingText",sa?(ea.splice(aa,0,["enter",la,na]),ea.splice(sa+1,0,["exit",ea[oa][1],na]),ea[oa][1].end=Object.assign({},ea[sa][1].end)):ea[oa][1]=la,ea.push(["exit",la,na]),ea}function tokenizeSetextUnderline(ea,na,ra){const oa=this;let aa;return sa;function sa(da){let pa=oa.events.length,ha;for(;pa--;)if(oa.events[pa][1].type!=="lineEnding"&&oa.events[pa][1].type!=="linePrefix"&&oa.events[pa][1].type!=="content"){ha=oa.events[pa][1].type==="paragraph";break}return!oa.parser.lazy[oa.now().line]&&(oa.interrupt||ha)?(ea.enter("setextHeadingLine"),aa=da,la(da)):ra(da)}function la(da){return ea.enter("setextHeadingLineSequence"),ca(da)}function ca(da){return da===aa?(ea.consume(da),ca):(ea.exit("setextHeadingLineSequence"),markdownSpace(da)?factorySpace(ea,ua,"lineSuffix")(da):ua(da))}function ua(da){return da===null||markdownLineEnding(da)?(ea.exit("setextHeadingLine"),na(da)):ra(da)}}const flow$1={tokenize:initializeFlow};function initializeFlow(ea){const na=this,ra=ea.attempt(blankLine,oa,ea.attempt(this.parser.constructs.flowInitial,aa,factorySpace(ea,ea.attempt(this.parser.constructs.flow,aa,ea.attempt(content,aa)),"linePrefix")));return ra;function oa(sa){if(sa===null){ea.consume(sa);return}return ea.enter("lineEndingBlank"),ea.consume(sa),ea.exit("lineEndingBlank"),na.currentConstruct=void 0,ra}function aa(sa){if(sa===null){ea.consume(sa);return}return ea.enter("lineEnding"),ea.consume(sa),ea.exit("lineEnding"),na.currentConstruct=void 0,ra}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$2=initializeFactory("text");function initializeFactory(ea){return{tokenize:na,resolveAll:createResolver(ea==="text"?resolveAllLineSuffixes:void 0)};function na(ra){const oa=this,aa=this.parser.constructs[ea],sa=ra.attempt(aa,la,ca);return la;function la(pa){return da(pa)?sa(pa):ca(pa)}function ca(pa){if(pa===null){ra.consume(pa);return}return ra.enter("data"),ra.consume(pa),ua}function ua(pa){return da(pa)?(ra.exit("data"),sa(pa)):(ra.consume(pa),ua)}function da(pa){if(pa===null)return!0;const ha=aa[pa];let ga=-1;if(ha)for(;++ga<ha.length;){const fa=ha[ga];if(!fa.previous||fa.previous.call(oa,oa.previous))return!0}return!1}}}function createResolver(ea){return na;function na(ra,oa){let aa=-1,sa;for(;++aa<=ra.length;)sa===void 0?ra[aa]&&ra[aa][1].type==="data"&&(sa=aa,aa++):(!ra[aa]||ra[aa][1].type!=="data")&&(aa!==sa+2&&(ra[sa][1].end=ra[aa-1][1].end,ra.splice(sa+2,aa-sa-2),aa=sa+2),sa=void 0);return ea?ea(ra,oa):ra}}function resolveAllLineSuffixes(ea,na){let ra=0;for(;++ra<=ea.length;)if((ra===ea.length||ea[ra][1].type==="lineEnding")&&ea[ra-1][1].type==="data"){const oa=ea[ra-1][1],aa=na.sliceStream(oa);let sa=aa.length,la=-1,ca=0,ua;for(;sa--;){const da=aa[sa];if(typeof da=="string"){for(la=da.length;da.charCodeAt(la-1)===32;)ca++,la--;if(la)break;la=-1}else if(da===-2)ua=!0,ca++;else if(da!==-1){sa++;break}}if(ca){const da={type:ra===ea.length||ua||ca<2?"lineSuffix":"hardBreakTrailing",start:{line:oa.end.line,column:oa.end.column-ca,offset:oa.end.offset-ca,_index:oa.start._index+sa,_bufferIndex:sa?la:oa.start._bufferIndex+la},end:Object.assign({},oa.end)};oa.end=Object.assign({},da.start),oa.start.offset===oa.end.offset?Object.assign(oa,da):(ea.splice(ra,0,["enter",da,na],["exit",da,na]),ra+=2)}ra++}return ea}function createTokenizer(ea,na,ra){let oa=Object.assign(ra?Object.assign({},ra):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const aa={},sa=[];let la=[],ca=[];const ua={consume:Aa,enter:Ca,exit:Sa,attempt:Ea(wa),check:Ea(ba),interrupt:Ea(ba,{interrupt:!0})},da={previous:null,code:null,containerState:{},events:[],parser:ea,sliceStream:fa,sliceSerialize:ga,now:ma,defineSkip:va,write:ha};let pa=na.tokenize.call(da,ua);return na.resolveAll&&sa.push(na),da;function ha(Oa){return la=push(la,Oa),xa(),la[la.length-1]!==null?[]:($a(na,0),da.events=resolveAll(sa,da.events,da),da.events)}function ga(Oa,Da){return serializeChunks(fa(Oa),Da)}function fa(Oa){return sliceChunks(la,Oa)}function ma(){const{line:Oa,column:Da,offset:Ta,_index:_a,_bufferIndex:La}=oa;return{line:Oa,column:Da,offset:Ta,_index:_a,_bufferIndex:La}}function va(Oa){aa[Oa.line]=Oa.column,Ia()}function xa(){let Oa;for(;oa._index<la.length;){const Da=la[oa._index];if(typeof Da=="string")for(Oa=oa._index,oa._bufferIndex<0&&(oa._bufferIndex=0);oa._index===Oa&&oa._bufferIndex<Da.length;)ya(Da.charCodeAt(oa._bufferIndex));else ya(Da)}}function ya(Oa){pa=pa(Oa)}function Aa(Oa){markdownLineEnding(Oa)?(oa.line++,oa.column=1,oa.offset+=Oa===-3?2:1,Ia()):Oa!==-1&&(oa.column++,oa.offset++),oa._bufferIndex<0?oa._index++:(oa._bufferIndex++,oa._bufferIndex===la[oa._index].length&&(oa._bufferIndex=-1,oa._index++)),da.previous=Oa}function Ca(Oa,Da){const Ta=Da||{};return Ta.type=Oa,Ta.start=ma(),da.events.push(["enter",Ta,da]),ca.push(Ta),Ta}function Sa(Oa){const Da=ca.pop();return Da.end=ma(),da.events.push(["exit",Da,da]),Da}function wa(Oa,Da){$a(Oa,Da.from)}function ba(Oa,Da){Da.restore()}function Ea(Oa,Da){return Ta;function Ta(_a,La,Na){let za,Fa,Ha,Va;return Array.isArray(_a)?Qa(_a):"tokenize"in _a?Qa([_a]):Ua(_a);function Ua(tl){return il;function il(Ja){const nl=Ja!==null&&tl[Ja],Ya=Ja!==null&&tl.null,rl=[...Array.isArray(nl)?nl:nl?[nl]:[],...Array.isArray(Ya)?Ya:Ya?[Ya]:[]];return Qa(rl)(Ja)}}function Qa(tl){return za=tl,Fa=0,tl.length===0?Na:Wa(tl[Fa])}function Wa(tl){return il;function il(Ja){return Va=Ma(),Ha=tl,tl.partial||(da.currentConstruct=tl),tl.name&&da.parser.constructs.disable.null.includes(tl.name)?Xa():tl.tokenize.call(Da?Object.assign(Object.create(da),Da):da,ua,Za,Xa)(Ja)}}function Za(tl){return Oa(Ha,Va),La}function Xa(tl){return Va.restore(),++Fa<za.length?Wa(za[Fa]):Na}}}function $a(Oa,Da){Oa.resolveAll&&!sa.includes(Oa)&&sa.push(Oa),Oa.resolve&&splice(da.events,Da,da.events.length-Da,Oa.resolve(da.events.slice(Da),da)),Oa.resolveTo&&(da.events=Oa.resolveTo(da.events,da))}function Ma(){const Oa=ma(),Da=da.previous,Ta=da.currentConstruct,_a=da.events.length,La=Array.from(ca);return{restore:Na,from:_a};function Na(){oa=Oa,da.previous=Da,da.currentConstruct=Ta,da.events.length=_a,ca=La,Ia()}}function Ia(){oa.line in aa&&oa.column<2&&(oa.column=aa[oa.line],oa.offset+=aa[oa.line]-1)}}function sliceChunks(ea,na){const ra=na.start._index,oa=na.start._bufferIndex,aa=na.end._index,sa=na.end._bufferIndex;let la;if(ra===aa)la=[ea[ra].slice(oa,sa)];else{if(la=ea.slice(ra,aa),oa>-1){const ca=la[0];typeof ca=="string"?la[0]=ca.slice(oa):la.shift()}sa>0&&la.push(ea[aa].slice(0,sa))}return la}function serializeChunks(ea,na){let ra=-1;const oa=[];let aa;for(;++ra<ea.length;){const sa=ea[ra];let la;if(typeof sa=="string")la=sa;else switch(sa){case-5:{la="\r";break}case-4:{la=`
`;break}case-3:{la=`\r
`;break}case-2:{la=na?" ":"	";break}case-1:{if(!na&&aa)continue;la=" ";break}default:la=String.fromCharCode(sa)}aa=sa===-2,oa.push(la)}return oa.join("")}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$1,45:[setextUnderline,thematicBreak$1],60:htmlFlow,61:setextUnderline,95:thematicBreak$1,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$1={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$1},Symbol.toStringTag,{value:"Module"}));function parse(ea){const ra=combineExtensions([defaultConstructs,...(ea||{}).extensions||[]]),oa={defined:[],lazy:{},constructs:ra,content:aa(content$1),document:aa(document$2),flow:aa(flow$1),string:aa(string$1),text:aa(text$2)};return oa;function aa(sa){return la;function la(ca){return createTokenizer(oa,sa,ca)}}}const search=/[\0\t\n\r]/g;function preprocess(){let ea=1,na="",ra=!0,oa;return aa;function aa(sa,la,ca){const ua=[];let da,pa,ha,ga,fa;for(sa=na+sa.toString(la),ha=0,na="",ra&&(sa.charCodeAt(0)===65279&&ha++,ra=void 0);ha<sa.length;){if(search.lastIndex=ha,da=search.exec(sa),ga=da&&da.index!==void 0?da.index:sa.length,fa=sa.charCodeAt(ga),!da){na=sa.slice(ha);break}if(fa===10&&ha===ga&&oa)ua.push(-3),oa=void 0;else switch(oa&&(ua.push(-5),oa=void 0),ha<ga&&(ua.push(sa.slice(ha,ga)),ea+=ga-ha),fa){case 0:{ua.push(65533),ea++;break}case 9:{for(pa=Math.ceil(ea/4)*4,ua.push(-2);ea++<pa;)ua.push(-1);break}case 10:{ua.push(-4),ea=1;break}default:oa=!0,ea=1}ha=ga+1}return ca&&(oa&&ua.push(-5),na&&ua.push(na),ua.push(null)),ua}}function postprocess(ea){for(;!subtokenize(ea););return ea}function decodeNumericCharacterReference(ea,na){const ra=Number.parseInt(ea,na);return ra<9||ra===11||ra>13&&ra<32||ra>126&&ra<160||ra>55295&&ra<57344||ra>64975&&ra<65008||(ra&65535)===65535||(ra&65535)===65534||ra>1114111?"�":String.fromCharCode(ra)}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(ea){return ea.replace(characterEscapeOrReference,decode)}function decode(ea,na,ra){if(na)return na;if(ra.charCodeAt(0)===35){const aa=ra.charCodeAt(1),sa=aa===120||aa===88;return decodeNumericCharacterReference(ra.slice(sa?2:1),sa?16:10)}return decodeNamedCharacterReference(ra)||ea}const own$5={}.hasOwnProperty,fromMarkdown=function(ea,na,ra){return typeof na!="string"&&(ra=na,na=void 0),compiler(ra)(postprocess(parse(ra).document().write(preprocess()(ea,na,!0))))};function compiler(ea){const na={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:ca(Fl),autolinkProtocol:Oa,autolinkEmail:Oa,atxHeading:ca(Rl),blockQuote:ca(rl),characterEscape:Oa,characterReference:Oa,codeFenced:ca(sl),codeFencedFenceInfo:ua,codeFencedFenceMeta:ua,codeIndented:ca(sl,ua),codeText:ca(dl,ua),codeTextData:Oa,data:Oa,codeFlowValue:Oa,definition:ca(pl),definitionDestinationString:ua,definitionLabelString:ua,definitionTitleString:ua,emphasis:ca(ml),hardBreakEscape:ca(Tl),hardBreakTrailing:ca(Tl),htmlFlow:ca(Il,ua),htmlFlowData:Oa,htmlText:ca(Il,ua),htmlTextData:Oa,image:ca(Ol),label:ua,link:ca(Fl),listItem:ca(Wl),listItemValue:ma,listOrdered:ca(Vl,fa),listUnordered:ca(Vl),paragraph:ca(vl),reference:Xa,referenceString:ua,resourceDestinationString:ua,resourceTitleString:ua,setextHeading:ca(Rl),strong:ca(kl),thematicBreak:ca(Al)},exit:{atxHeading:pa(),atxHeadingSequence:Ea,autolink:pa(),autolinkEmail:Ya,autolinkProtocol:nl,blockQuote:pa(),characterEscapeValue:Da,characterReferenceMarkerHexadecimal:il,characterReferenceMarkerNumeric:il,characterReferenceValue:Ja,codeFenced:pa(Aa),codeFencedFence:ya,codeFencedFenceInfo:va,codeFencedFenceMeta:xa,codeFlowValue:Da,codeIndented:pa(Ca),codeText:pa(za),codeTextData:Da,data:Da,definition:pa(),definitionDestinationString:ba,definitionLabelString:Sa,definitionTitleString:wa,emphasis:pa(),hardBreakEscape:pa(_a),hardBreakTrailing:pa(_a),htmlFlow:pa(La),htmlFlowData:Da,htmlText:pa(Na),htmlTextData:Da,image:pa(Ha),label:Ua,labelText:Va,lineEnding:Ta,link:pa(Fa),listItem:pa(),listOrdered:pa(),listUnordered:pa(),paragraph:pa(),referenceString:tl,resourceDestinationString:Qa,resourceTitleString:Wa,resource:Za,setextHeading:pa(Ia),setextHeadingLineSequence:Ma,setextHeadingText:$a,strong:pa(),thematicBreak:pa()}};configure(na,(ea||{}).mdastExtensions||[]);const ra={};return oa;function oa(gl){let xl={type:"root",children:[]};const Sl={stack:[xl],tokenStack:[],config:na,enter:da,exit:ha,buffer:ua,resume:ga,setData:sa,getData:la},$l=[];let Bl=-1;for(;++Bl<gl.length;)if(gl[Bl][1].type==="listOrdered"||gl[Bl][1].type==="listUnordered")if(gl[Bl][0]==="enter")$l.push(Bl);else{const Ul=$l.pop();Bl=aa(gl,Ul,Bl)}for(Bl=-1;++Bl<gl.length;){const Ul=na[gl[Bl][0]];own$5.call(Ul,gl[Bl][1].type)&&Ul[gl[Bl][1].type].call(Object.assign({sliceSerialize:gl[Bl][2].sliceSerialize},Sl),gl[Bl][1])}if(Sl.tokenStack.length>0){const Ul=Sl.tokenStack[Sl.tokenStack.length-1];(Ul[1]||defaultOnError).call(Sl,void 0,Ul[0])}for(xl.position={start:point$1(gl.length>0?gl[0][1].start:{line:1,column:1,offset:0}),end:point$1(gl.length>0?gl[gl.length-2][1].end:{line:1,column:1,offset:0})},Bl=-1;++Bl<na.transforms.length;)xl=na.transforms[Bl](xl)||xl;return xl}function aa(gl,xl,Sl){let $l=xl-1,Bl=-1,Ul=!1,ec,Kl,rc,wl;for(;++$l<=Sl;){const Ll=gl[$l];if(Ll[1].type==="listUnordered"||Ll[1].type==="listOrdered"||Ll[1].type==="blockQuote"?(Ll[0]==="enter"?Bl++:Bl--,wl=void 0):Ll[1].type==="lineEndingBlank"?Ll[0]==="enter"&&(ec&&!wl&&!Bl&&!rc&&(rc=$l),wl=void 0):Ll[1].type==="linePrefix"||Ll[1].type==="listItemValue"||Ll[1].type==="listItemMarker"||Ll[1].type==="listItemPrefix"||Ll[1].type==="listItemPrefixWhitespace"||(wl=void 0),!Bl&&Ll[0]==="enter"&&Ll[1].type==="listItemPrefix"||Bl===-1&&Ll[0]==="exit"&&(Ll[1].type==="listUnordered"||Ll[1].type==="listOrdered")){if(ec){let ic=$l;for(Kl=void 0;ic--;){const Yl=gl[ic];if(Yl[1].type==="lineEnding"||Yl[1].type==="lineEndingBlank"){if(Yl[0]==="exit")continue;Kl&&(gl[Kl][1].type="lineEndingBlank",Ul=!0),Yl[1].type="lineEnding",Kl=ic}else if(!(Yl[1].type==="linePrefix"||Yl[1].type==="blockQuotePrefix"||Yl[1].type==="blockQuotePrefixWhitespace"||Yl[1].type==="blockQuoteMarker"||Yl[1].type==="listItemIndent"))break}rc&&(!Kl||rc<Kl)&&(ec._spread=!0),ec.end=Object.assign({},Kl?gl[Kl][1].start:Ll[1].end),gl.splice(Kl||$l,0,["exit",ec,Ll[2]]),$l++,Sl++}Ll[1].type==="listItemPrefix"&&(ec={type:"listItem",_spread:!1,start:Object.assign({},Ll[1].start),end:void 0},gl.splice($l,0,["enter",ec,Ll[2]]),$l++,Sl++,rc=void 0,wl=!0)}}return gl[xl][1]._spread=Ul,Sl}function sa(gl,xl){ra[gl]=xl}function la(gl){return ra[gl]}function ca(gl,xl){return Sl;function Sl($l){da.call(this,gl($l),$l),xl&&xl.call(this,$l)}}function ua(){this.stack.push({type:"fragment",children:[]})}function da(gl,xl,Sl){return this.stack[this.stack.length-1].children.push(gl),this.stack.push(gl),this.tokenStack.push([xl,Sl]),gl.position={start:point$1(xl.start)},gl}function pa(gl){return xl;function xl(Sl){gl&&gl.call(this,Sl),ha.call(this,Sl)}}function ha(gl,xl){const Sl=this.stack.pop(),$l=this.tokenStack.pop();if($l)$l[0].type!==gl.type&&(xl?xl.call(this,gl,$l[0]):($l[1]||defaultOnError).call(this,gl,$l[0]));else throw new Error("Cannot close `"+gl.type+"` ("+stringifyPosition({start:gl.start,end:gl.end})+"): it’s not open");return Sl.position.end=point$1(gl.end),Sl}function ga(){return toString(this.stack.pop())}function fa(){sa("expectingFirstListItemValue",!0)}function ma(gl){if(la("expectingFirstListItemValue")){const xl=this.stack[this.stack.length-2];xl.start=Number.parseInt(this.sliceSerialize(gl),10),sa("expectingFirstListItemValue")}}function va(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.lang=gl}function xa(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.meta=gl}function ya(){la("flowCodeInside")||(this.buffer(),sa("flowCodeInside",!0))}function Aa(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.value=gl.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),sa("flowCodeInside")}function Ca(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.value=gl.replace(/(\r?\n|\r)$/g,"")}function Sa(gl){const xl=this.resume(),Sl=this.stack[this.stack.length-1];Sl.label=xl,Sl.identifier=normalizeIdentifier(this.sliceSerialize(gl)).toLowerCase()}function wa(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.title=gl}function ba(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.url=gl}function Ea(gl){const xl=this.stack[this.stack.length-1];if(!xl.depth){const Sl=this.sliceSerialize(gl).length;xl.depth=Sl}}function $a(){sa("setextHeadingSlurpLineEnding",!0)}function Ma(gl){const xl=this.stack[this.stack.length-1];xl.depth=this.sliceSerialize(gl).charCodeAt(0)===61?1:2}function Ia(){sa("setextHeadingSlurpLineEnding")}function Oa(gl){const xl=this.stack[this.stack.length-1];let Sl=xl.children[xl.children.length-1];(!Sl||Sl.type!=="text")&&(Sl=zl(),Sl.position={start:point$1(gl.start)},xl.children.push(Sl)),this.stack.push(Sl)}function Da(gl){const xl=this.stack.pop();xl.value+=this.sliceSerialize(gl),xl.position.end=point$1(gl.end)}function Ta(gl){const xl=this.stack[this.stack.length-1];if(la("atHardBreak")){const Sl=xl.children[xl.children.length-1];Sl.position.end=point$1(gl.end),sa("atHardBreak");return}!la("setextHeadingSlurpLineEnding")&&na.canContainEols.includes(xl.type)&&(Oa.call(this,gl),Da.call(this,gl))}function _a(){sa("atHardBreak",!0)}function La(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.value=gl}function Na(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.value=gl}function za(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.value=gl}function Fa(){const gl=this.stack[this.stack.length-1];if(la("inReference")){const xl=la("referenceType")||"shortcut";gl.type+="Reference",gl.referenceType=xl,delete gl.url,delete gl.title}else delete gl.identifier,delete gl.label;sa("referenceType")}function Ha(){const gl=this.stack[this.stack.length-1];if(la("inReference")){const xl=la("referenceType")||"shortcut";gl.type+="Reference",gl.referenceType=xl,delete gl.url,delete gl.title}else delete gl.identifier,delete gl.label;sa("referenceType")}function Va(gl){const xl=this.sliceSerialize(gl),Sl=this.stack[this.stack.length-2];Sl.label=decodeString(xl),Sl.identifier=normalizeIdentifier(xl).toLowerCase()}function Ua(){const gl=this.stack[this.stack.length-1],xl=this.resume(),Sl=this.stack[this.stack.length-1];if(sa("inReference",!0),Sl.type==="link"){const $l=gl.children;Sl.children=$l}else Sl.alt=xl}function Qa(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.url=gl}function Wa(){const gl=this.resume(),xl=this.stack[this.stack.length-1];xl.title=gl}function Za(){sa("inReference")}function Xa(){sa("referenceType","collapsed")}function tl(gl){const xl=this.resume(),Sl=this.stack[this.stack.length-1];Sl.label=xl,Sl.identifier=normalizeIdentifier(this.sliceSerialize(gl)).toLowerCase(),sa("referenceType","full")}function il(gl){sa("characterReferenceType",gl.type)}function Ja(gl){const xl=this.sliceSerialize(gl),Sl=la("characterReferenceType");let $l;Sl?($l=decodeNumericCharacterReference(xl,Sl==="characterReferenceMarkerNumeric"?10:16),sa("characterReferenceType")):$l=decodeNamedCharacterReference(xl);const Bl=this.stack.pop();Bl.value+=$l,Bl.position.end=point$1(gl.end)}function nl(gl){Da.call(this,gl);const xl=this.stack[this.stack.length-1];xl.url=this.sliceSerialize(gl)}function Ya(gl){Da.call(this,gl);const xl=this.stack[this.stack.length-1];xl.url="mailto:"+this.sliceSerialize(gl)}function rl(){return{type:"blockquote",children:[]}}function sl(){return{type:"code",lang:null,meta:null,value:""}}function dl(){return{type:"inlineCode",value:""}}function pl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ml(){return{type:"emphasis",children:[]}}function Rl(){return{type:"heading",depth:void 0,children:[]}}function Tl(){return{type:"break"}}function Il(){return{type:"html",value:""}}function Ol(){return{type:"image",title:null,url:"",alt:null}}function Fl(){return{type:"link",title:null,url:"",children:[]}}function Vl(gl){return{type:"list",ordered:gl.type==="listOrdered",start:null,spread:gl._spread,children:[]}}function Wl(gl){return{type:"listItem",spread:gl._spread,checked:null,children:[]}}function vl(){return{type:"paragraph",children:[]}}function kl(){return{type:"strong",children:[]}}function zl(){return{type:"text",value:""}}function Al(){return{type:"thematicBreak"}}}function point$1(ea){return{line:ea.line,column:ea.column,offset:ea.offset}}function configure(ea,na){let ra=-1;for(;++ra<na.length;){const oa=na[ra];Array.isArray(oa)?configure(ea,oa):extension(ea,oa)}}function extension(ea,na){let ra;for(ra in na)if(own$5.call(na,ra)){if(ra==="canContainEols"){const oa=na[ra];oa&&ea[ra].push(...oa)}else if(ra==="transforms"){const oa=na[ra];oa&&ea[ra].push(...oa)}else if(ra==="enter"||ra==="exit"){const oa=na[ra];oa&&Object.assign(ea[ra],oa)}}}function defaultOnError(ea,na){throw ea?new Error("Cannot close `"+ea.type+"` ("+stringifyPosition({start:ea.start,end:ea.end})+"): a different token (`"+na.type+"`, "+stringifyPosition({start:na.start,end:na.end})+") is open"):new Error("Cannot close document, a token (`"+na.type+"`, "+stringifyPosition({start:na.start,end:na.end})+") is still open")}function remarkParse(ea){Object.assign(this,{Parser:ra=>{const oa=this.data("settings");return fromMarkdown(ra,Object.assign({},oa,ea,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function blockquote(ea,na){const ra={type:"element",tagName:"blockquote",properties:{},children:ea.wrap(ea.all(na),!0)};return ea.patch(na,ra),ea.applyData(na,ra)}function hardBreak(ea,na){const ra={type:"element",tagName:"br",properties:{},children:[]};return ea.patch(na,ra),[ea.applyData(na,ra),{type:"text",value:`
`}]}function code(ea,na){const ra=na.value?na.value+`
`:"",oa=na.lang?na.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,aa={};oa&&(aa.className=["language-"+oa]);let sa={type:"element",tagName:"code",properties:aa,children:[{type:"text",value:ra}]};return na.meta&&(sa.data={meta:na.meta}),ea.patch(na,sa),sa=ea.applyData(na,sa),sa={type:"element",tagName:"pre",properties:{},children:[sa]},ea.patch(na,sa),sa}function strikethrough(ea,na){const ra={type:"element",tagName:"del",properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}function emphasis(ea,na){const ra={type:"element",tagName:"em",properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}function normalizeUri(ea){const na=[];let ra=-1,oa=0,aa=0;for(;++ra<ea.length;){const sa=ea.charCodeAt(ra);let la="";if(sa===37&&asciiAlphanumeric(ea.charCodeAt(ra+1))&&asciiAlphanumeric(ea.charCodeAt(ra+2)))aa=2;else if(sa<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(sa))||(la=String.fromCharCode(sa));else if(sa>55295&&sa<57344){const ca=ea.charCodeAt(ra+1);sa<56320&&ca>56319&&ca<57344?(la=String.fromCharCode(sa,ca),aa=1):la="�"}else la=String.fromCharCode(sa);la&&(na.push(ea.slice(oa,ra),encodeURIComponent(la)),oa=ra+aa+1,la=""),aa&&(ra+=aa,aa=0)}return na.join("")+ea.slice(oa)}function footnoteReference(ea,na){const ra=String(na.identifier).toUpperCase(),oa=normalizeUri(ra.toLowerCase()),aa=ea.footnoteOrder.indexOf(ra);let sa;aa===-1?(ea.footnoteOrder.push(ra),ea.footnoteCounts[ra]=1,sa=ea.footnoteOrder.length):(ea.footnoteCounts[ra]++,sa=aa+1);const la=ea.footnoteCounts[ra],ca={type:"element",tagName:"a",properties:{href:"#"+ea.clobberPrefix+"fn-"+oa,id:ea.clobberPrefix+"fnref-"+oa+(la>1?"-"+la:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(sa)}]};ea.patch(na,ca);const ua={type:"element",tagName:"sup",properties:{},children:[ca]};return ea.patch(na,ua),ea.applyData(na,ua)}function footnote(ea,na){const ra=ea.footnoteById;let oa=1;for(;oa in ra;)oa++;const aa=String(oa);return ra[aa]={type:"footnoteDefinition",identifier:aa,children:[{type:"paragraph",children:na.children}],position:na.position},footnoteReference(ea,{type:"footnoteReference",identifier:aa,position:na.position})}function heading(ea,na){const ra={type:"element",tagName:"h"+na.depth,properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}function html$2(ea,na){if(ea.dangerous){const ra={type:"raw",value:na.value};return ea.patch(na,ra),ea.applyData(na,ra)}return null}function revert(ea,na){const ra=na.referenceType;let oa="]";if(ra==="collapsed"?oa+="[]":ra==="full"&&(oa+="["+(na.label||na.identifier)+"]"),na.type==="imageReference")return{type:"text",value:"!["+na.alt+oa};const aa=ea.all(na),sa=aa[0];sa&&sa.type==="text"?sa.value="["+sa.value:aa.unshift({type:"text",value:"["});const la=aa[aa.length-1];return la&&la.type==="text"?la.value+=oa:aa.push({type:"text",value:oa}),aa}function imageReference(ea,na){const ra=ea.definition(na.identifier);if(!ra)return revert(ea,na);const oa={src:normalizeUri(ra.url||""),alt:na.alt};ra.title!==null&&ra.title!==void 0&&(oa.title=ra.title);const aa={type:"element",tagName:"img",properties:oa,children:[]};return ea.patch(na,aa),ea.applyData(na,aa)}function image(ea,na){const ra={src:normalizeUri(na.url)};na.alt!==null&&na.alt!==void 0&&(ra.alt=na.alt),na.title!==null&&na.title!==void 0&&(ra.title=na.title);const oa={type:"element",tagName:"img",properties:ra,children:[]};return ea.patch(na,oa),ea.applyData(na,oa)}function inlineCode(ea,na){const ra={type:"text",value:na.value.replace(/\r?\n|\r/g," ")};ea.patch(na,ra);const oa={type:"element",tagName:"code",properties:{},children:[ra]};return ea.patch(na,oa),ea.applyData(na,oa)}function linkReference(ea,na){const ra=ea.definition(na.identifier);if(!ra)return revert(ea,na);const oa={href:normalizeUri(ra.url||"")};ra.title!==null&&ra.title!==void 0&&(oa.title=ra.title);const aa={type:"element",tagName:"a",properties:oa,children:ea.all(na)};return ea.patch(na,aa),ea.applyData(na,aa)}function link(ea,na){const ra={href:normalizeUri(na.url)};na.title!==null&&na.title!==void 0&&(ra.title=na.title);const oa={type:"element",tagName:"a",properties:ra,children:ea.all(na)};return ea.patch(na,oa),ea.applyData(na,oa)}function listItem(ea,na,ra){const oa=ea.all(na),aa=ra?listLoose(ra):listItemLoose(na),sa={},la=[];if(typeof na.checked=="boolean"){const pa=oa[0];let ha;pa&&pa.type==="element"&&pa.tagName==="p"?ha=pa:(ha={type:"element",tagName:"p",properties:{},children:[]},oa.unshift(ha)),ha.children.length>0&&ha.children.unshift({type:"text",value:" "}),ha.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:na.checked,disabled:!0},children:[]}),sa.className=["task-list-item"]}let ca=-1;for(;++ca<oa.length;){const pa=oa[ca];(aa||ca!==0||pa.type!=="element"||pa.tagName!=="p")&&la.push({type:"text",value:`
`}),pa.type==="element"&&pa.tagName==="p"&&!aa?la.push(...pa.children):la.push(pa)}const ua=oa[oa.length-1];ua&&(aa||ua.type!=="element"||ua.tagName!=="p")&&la.push({type:"text",value:`
`});const da={type:"element",tagName:"li",properties:sa,children:la};return ea.patch(na,da),ea.applyData(na,da)}function listLoose(ea){let na=!1;if(ea.type==="list"){na=ea.spread||!1;const ra=ea.children;let oa=-1;for(;!na&&++oa<ra.length;)na=listItemLoose(ra[oa])}return na}function listItemLoose(ea){const na=ea.spread;return na??ea.children.length>1}function list$1(ea,na){const ra={},oa=ea.all(na);let aa=-1;for(typeof na.start=="number"&&na.start!==1&&(ra.start=na.start);++aa<oa.length;){const la=oa[aa];if(la.type==="element"&&la.tagName==="li"&&la.properties&&Array.isArray(la.properties.className)&&la.properties.className.includes("task-list-item")){ra.className=["contains-task-list"];break}}const sa={type:"element",tagName:na.ordered?"ol":"ul",properties:ra,children:ea.wrap(oa,!0)};return ea.patch(na,sa),ea.applyData(na,sa)}function paragraph(ea,na){const ra={type:"element",tagName:"p",properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}function root(ea,na){const ra={type:"root",children:ea.wrap(ea.all(na))};return ea.patch(na,ra),ea.applyData(na,ra)}function strong(ea,na){const ra={type:"element",tagName:"strong",properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}const pointStart=point("start"),pointEnd=point("end");function position(ea){return{start:pointStart(ea),end:pointEnd(ea)}}function point(ea){return na;function na(ra){const oa=ra&&ra.position&&ra.position[ea]||{};return{line:oa.line||null,column:oa.column||null,offset:oa.offset>-1?oa.offset:null}}}function table(ea,na){const ra=ea.all(na),oa=ra.shift(),aa=[];if(oa){const la={type:"element",tagName:"thead",properties:{},children:ea.wrap([oa],!0)};ea.patch(na.children[0],la),aa.push(la)}if(ra.length>0){const la={type:"element",tagName:"tbody",properties:{},children:ea.wrap(ra,!0)},ca=pointStart(na.children[1]),ua=pointEnd(na.children[na.children.length-1]);ca.line&&ua.line&&(la.position={start:ca,end:ua}),aa.push(la)}const sa={type:"element",tagName:"table",properties:{},children:ea.wrap(aa,!0)};return ea.patch(na,sa),ea.applyData(na,sa)}function tableRow(ea,na,ra){const oa=ra?ra.children:void 0,sa=(oa?oa.indexOf(na):1)===0?"th":"td",la=ra&&ra.type==="table"?ra.align:void 0,ca=la?la.length:na.children.length;let ua=-1;const da=[];for(;++ua<ca;){const ha=na.children[ua],ga={},fa=la?la[ua]:void 0;fa&&(ga.align=fa);let ma={type:"element",tagName:sa,properties:ga,children:[]};ha&&(ma.children=ea.all(ha),ea.patch(ha,ma),ma=ea.applyData(na,ma)),da.push(ma)}const pa={type:"element",tagName:"tr",properties:{},children:ea.wrap(da,!0)};return ea.patch(na,pa),ea.applyData(na,pa)}function tableCell(ea,na){const ra={type:"element",tagName:"td",properties:{},children:ea.all(na)};return ea.patch(na,ra),ea.applyData(na,ra)}const tab=9,space=32;function trimLines(ea){const na=String(ea),ra=/\r?\n|\r/g;let oa=ra.exec(na),aa=0;const sa=[];for(;oa;)sa.push(trimLine(na.slice(aa,oa.index),aa>0,!0),oa[0]),aa=oa.index+oa[0].length,oa=ra.exec(na);return sa.push(trimLine(na.slice(aa),aa>0,!1)),sa.join("")}function trimLine(ea,na,ra){let oa=0,aa=ea.length;if(na){let sa=ea.codePointAt(oa);for(;sa===tab||sa===space;)oa++,sa=ea.codePointAt(oa)}if(ra){let sa=ea.codePointAt(aa-1);for(;sa===tab||sa===space;)aa--,sa=ea.codePointAt(aa-1)}return aa>oa?ea.slice(oa,aa):""}function text(ea,na){const ra={type:"text",value:trimLines(String(na.value))};return ea.patch(na,ra),ea.applyData(na,ra)}function thematicBreak(ea,na){const ra={type:"element",tagName:"hr",properties:{},children:[]};return ea.patch(na,ra),ea.applyData(na,ra)}const handlers={blockquote,break:hardBreak,code,delete:strikethrough,emphasis,footnoteReference,footnote,heading,html:html$2,imageReference,image,inlineCode,linkReference,link,listItem,list:list$1,paragraph,root,strong,table,tableCell,tableRow,text,thematicBreak,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){return null}const convert=function(ea){if(ea==null)return ok;if(typeof ea=="string")return typeFactory(ea);if(typeof ea=="object")return Array.isArray(ea)?anyFactory(ea):propsFactory(ea);if(typeof ea=="function")return castFactory(ea);throw new Error("Expected function, string, or object as test")};function anyFactory(ea){const na=[];let ra=-1;for(;++ra<ea.length;)na[ra]=convert(ea[ra]);return castFactory(oa);function oa(...aa){let sa=-1;for(;++sa<na.length;)if(na[sa].call(this,...aa))return!0;return!1}}function propsFactory(ea){return castFactory(na);function na(ra){let oa;for(oa in ea)if(ra[oa]!==ea[oa])return!1;return!0}}function typeFactory(ea){return castFactory(na);function na(ra){return ra&&ra.type===ea}}function castFactory(ea){return na;function na(ra,...oa){return!!(ra&&typeof ra=="object"&&"type"in ra&&ea.call(this,ra,...oa))}}function ok(){return!0}function color(ea){return ea}const CONTINUE=!0,EXIT=!1,SKIP="skip",visitParents=function(ea,na,ra,oa){typeof na=="function"&&typeof ra!="function"&&(oa=ra,ra=na,na=null);const aa=convert(na),sa=oa?-1:1;la(ea,void 0,[])();function la(ca,ua,da){const pa=ca&&typeof ca=="object"?ca:{};if(typeof pa.type=="string"){const ga=typeof pa.tagName=="string"?pa.tagName:typeof pa.name=="string"?pa.name:void 0;Object.defineProperty(ha,"name",{value:"node ("+(ca.type+(ga?"<"+ga+">":""))+")"})}return ha;function ha(){let ga=[],fa,ma,va;if((!na||aa(ca,ua,da[da.length-1]||null))&&(ga=toResult(ra(ca,da)),ga[0]===EXIT))return ga;if(ca.children&&ga[0]!==SKIP)for(ma=(oa?ca.children.length:-1)+sa,va=da.concat(ca);ma>-1&&ma<ca.children.length;){if(fa=la(ca.children[ma],ma,va)(),fa[0]===EXIT)return fa;ma=typeof fa[1]=="number"?fa[1]:ma+sa}return ga}}};function toResult(ea){return Array.isArray(ea)?ea:typeof ea=="number"?[CONTINUE,ea]:[ea]}const visit$1=function(ea,na,ra,oa){typeof na=="function"&&typeof ra!="function"&&(oa=ra,ra=na,na=null),visitParents(ea,na,aa,oa);function aa(sa,la){const ca=la[la.length-1];return ra(sa,ca?ca.children.indexOf(sa):null,ca)}};function generated(ea){return!ea||!ea.position||!ea.position.start||!ea.position.start.line||!ea.position.start.column||!ea.position.end||!ea.position.end.line||!ea.position.end.column}const own$4={}.hasOwnProperty;function definitions(ea){const na=Object.create(null);if(!ea||!ea.type)throw new Error("mdast-util-definitions expected node");return visit$1(ea,"definition",oa=>{const aa=clean(oa.identifier);aa&&!own$4.call(na,aa)&&(na[aa]=oa)}),ra;function ra(oa){const aa=clean(oa);return aa&&own$4.call(na,aa)?na[aa]:null}}function clean(ea){return String(ea||"").toUpperCase()}const own$3={}.hasOwnProperty;function createState(ea,na){const ra=na||{},oa=ra.allowDangerousHtml||!1,aa={};return la.dangerous=oa,la.clobberPrefix=ra.clobberPrefix===void 0||ra.clobberPrefix===null?"user-content-":ra.clobberPrefix,la.footnoteLabel=ra.footnoteLabel||"Footnotes",la.footnoteLabelTagName=ra.footnoteLabelTagName||"h2",la.footnoteLabelProperties=ra.footnoteLabelProperties||{className:["sr-only"]},la.footnoteBackLabel=ra.footnoteBackLabel||"Back to content",la.unknownHandler=ra.unknownHandler,la.passThrough=ra.passThrough,la.handlers={...handlers,...ra.handlers},la.definition=definitions(ea),la.footnoteById=aa,la.footnoteOrder=[],la.footnoteCounts={},la.patch=patch,la.applyData=applyData,la.one=ca,la.all=ua,la.wrap=wrap,la.augment=sa,visit$1(ea,"footnoteDefinition",da=>{const pa=String(da.identifier).toUpperCase();own$3.call(aa,pa)||(aa[pa]=da)}),la;function sa(da,pa){if(da&&"data"in da&&da.data){const ha=da.data;ha.hName&&(pa.type!=="element"&&(pa={type:"element",tagName:"",properties:{},children:[]}),pa.tagName=ha.hName),pa.type==="element"&&ha.hProperties&&(pa.properties={...pa.properties,...ha.hProperties}),"children"in pa&&pa.children&&ha.hChildren&&(pa.children=ha.hChildren)}if(da){const ha="type"in da?da:{position:da};generated(ha)||(pa.position={start:pointStart(ha),end:pointEnd(ha)})}return pa}function la(da,pa,ha,ga){return Array.isArray(ha)&&(ga=ha,ha={}),sa(da,{type:"element",tagName:pa,properties:ha||{},children:ga||[]})}function ca(da,pa){return one(la,da,pa)}function ua(da){return all(la,da)}}function patch(ea,na){ea.position&&(na.position=position(ea))}function applyData(ea,na){let ra=na;if(ea&&ea.data){const oa=ea.data.hName,aa=ea.data.hChildren,sa=ea.data.hProperties;typeof oa=="string"&&(ra.type==="element"?ra.tagName=oa:ra={type:"element",tagName:oa,properties:{},children:[]}),ra.type==="element"&&sa&&(ra.properties={...ra.properties,...sa}),"children"in ra&&ra.children&&aa!==null&&aa!==void 0&&(ra.children=aa)}return ra}function one(ea,na,ra){const oa=na&&na.type;if(!oa)throw new Error("Expected node, got `"+na+"`");return own$3.call(ea.handlers,oa)?ea.handlers[oa](ea,na,ra):ea.passThrough&&ea.passThrough.includes(oa)?"children"in na?{...na,children:all(ea,na)}:na:ea.unknownHandler?ea.unknownHandler(ea,na,ra):defaultUnknownHandler(ea,na)}function all(ea,na){const ra=[];if("children"in na){const oa=na.children;let aa=-1;for(;++aa<oa.length;){const sa=one(ea,oa[aa],na);if(sa){if(aa&&oa[aa-1].type==="break"&&(!Array.isArray(sa)&&sa.type==="text"&&(sa.value=sa.value.replace(/^\s+/,"")),!Array.isArray(sa)&&sa.type==="element")){const la=sa.children[0];la&&la.type==="text"&&(la.value=la.value.replace(/^\s+/,""))}Array.isArray(sa)?ra.push(...sa):ra.push(sa)}}}return ra}function defaultUnknownHandler(ea,na){const ra=na.data||{},oa="value"in na&&!(own$3.call(ra,"hProperties")||own$3.call(ra,"hChildren"))?{type:"text",value:na.value}:{type:"element",tagName:"div",properties:{},children:all(ea,na)};return ea.patch(na,oa),ea.applyData(na,oa)}function wrap(ea,na){const ra=[];let oa=-1;for(na&&ra.push({type:"text",value:`
`});++oa<ea.length;)oa&&ra.push({type:"text",value:`
`}),ra.push(ea[oa]);return na&&ea.length>0&&ra.push({type:"text",value:`
`}),ra}function footer(ea){const na=[];let ra=-1;for(;++ra<ea.footnoteOrder.length;){const oa=ea.footnoteById[ea.footnoteOrder[ra]];if(!oa)continue;const aa=ea.all(oa),sa=String(oa.identifier).toUpperCase(),la=normalizeUri(sa.toLowerCase());let ca=0;const ua=[];for(;++ca<=ea.footnoteCounts[sa];){const ha={type:"element",tagName:"a",properties:{href:"#"+ea.clobberPrefix+"fnref-"+la+(ca>1?"-"+ca:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:ea.footnoteBackLabel},children:[{type:"text",value:"↩"}]};ca>1&&ha.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(ca)}]}),ua.length>0&&ua.push({type:"text",value:" "}),ua.push(ha)}const da=aa[aa.length-1];if(da&&da.type==="element"&&da.tagName==="p"){const ha=da.children[da.children.length-1];ha&&ha.type==="text"?ha.value+=" ":da.children.push({type:"text",value:" "}),da.children.push(...ua)}else aa.push(...ua);const pa={type:"element",tagName:"li",properties:{id:ea.clobberPrefix+"fn-"+la},children:ea.wrap(aa,!0)};ea.patch(oa,pa),na.push(pa)}if(na.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:ea.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(ea.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:ea.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:ea.wrap(na,!0)},{type:"text",value:`
`}]}}function toHast(ea,na){const ra=createState(ea,na),oa=ra.one(ea,null),aa=footer(ra);return aa&&oa.children.push({type:"text",value:`
`},aa),Array.isArray(oa)?{type:"root",children:oa}:oa}const remarkRehype=function(ea,na){return ea&&"run"in ea?bridge(ea,na):mutate(ea||na)};function bridge(ea,na){return(ra,oa,aa)=>{ea.run(toHast(ra,na),oa,sa=>{aa(sa)})}}function mutate(ea){return na=>toHast(na,ea)}class Schema{constructor(na,ra,oa){this.property=na,this.normal=ra,oa&&(this.space=oa)}}Schema.prototype.property={};Schema.prototype.normal={};Schema.prototype.space=null;function merge(ea,na){const ra={},oa={};let aa=-1;for(;++aa<ea.length;)Object.assign(ra,ea[aa].property),Object.assign(oa,ea[aa].normal);return new Schema(ra,oa,na)}function normalize(ea){return ea.toLowerCase()}class Info{constructor(na,ra){this.property=na,this.attribute=ra}}Info.prototype.space=null;Info.prototype.boolean=!1;Info.prototype.booleanish=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.number=!1;Info.prototype.commaSeparated=!1;Info.prototype.spaceSeparated=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.mustUseProperty=!1;Info.prototype.defined=!1;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(na,ra,oa,aa){let sa=-1;if(super(na,ra),mark(this,"space",aa),typeof oa=="number")for(;++sa<checks.length;){const la=checks[sa];mark(this,checks[sa],(oa&types[la])===types[la])}}}DefinedInfo.prototype.defined=!0;function mark(ea,na,ra){ra&&(ea[na]=ra)}const own$2={}.hasOwnProperty;function create(ea){const na={},ra={};let oa;for(oa in ea.properties)if(own$2.call(ea.properties,oa)){const aa=ea.properties[oa],sa=new DefinedInfo(oa,ea.transform(ea.attributes||{},oa),aa,ea.space);ea.mustUseProperty&&ea.mustUseProperty.includes(oa)&&(sa.mustUseProperty=!0),na[oa]=sa,ra[normalize(oa)]=oa,ra[normalize(sa.attribute)]=oa}return new Schema(na,ra,ea.space)}const xlink=create({space:"xlink",transform(ea,na){return"xlink:"+na.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xml=create({space:"xml",transform(ea,na){return"xml:"+na.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(ea,na){return na in ea?ea[na]:na}function caseInsensitiveTransform(ea,na){return caseSensitiveTransform(ea,na.toLowerCase())}const xmlns=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),aria=create({transform(ea,na){return na==="role"?na:"aria-"+na.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null}}),html$1=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:boolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null}}),svg$1=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g;function find(ea,na){const ra=normalize(na);let oa=na,aa=Info;if(ra in ea.normal)return ea.property[ea.normal[ra]];if(ra.length>4&&ra.slice(0,4)==="data"&&valid.test(na)){if(na.charAt(4)==="-"){const sa=na.slice(5).replace(dash,camelcase);oa="data"+sa.charAt(0).toUpperCase()+sa.slice(1)}else{const sa=na.slice(4);if(!dash.test(sa)){let la=sa.replace(cap,kebab);la.charAt(0)!=="-"&&(la="-"+la),na="data"+la}}aa=DefinedInfo}return new aa(oa,na)}function kebab(ea){return"-"+ea.toLowerCase()}function camelcase(ea){return ea.charAt(1).toUpperCase()}const hastToReact={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},html=merge([xml,xlink,xmlns,aria,html$1],"html"),svg=merge([xml,xlink,xmlns,aria,svg$1],"svg"),visit=function(ea,na,ra,oa){visitParents(ea,na,aa,oa);function aa(sa,la){const ca=la[la.length-1];return ra(sa,ca?ca.children.indexOf(sa):null,ca)}};function rehypeFilter(ea){if(ea.allowedElements&&ea.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(ea.allowedElements||ea.disallowedElements||ea.allowElement)return na=>{visit(na,"element",(ra,oa,aa)=>{const sa=aa;let la;if(ea.allowedElements?la=!ea.allowedElements.includes(ra.tagName):ea.disallowedElements&&(la=ea.disallowedElements.includes(ra.tagName)),!la&&ea.allowElement&&typeof oa=="number"&&(la=!ea.allowElement(ra,oa,sa)),la&&typeof oa=="number")return ea.unwrapDisallowed&&ra.children?sa.children.splice(oa,1,...ra.children):sa.children.splice(oa,1),oa})}}var reactIs={exports:{}},reactIs_production_min={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var ea=Symbol.for("react.element"),na=Symbol.for("react.portal"),ra=Symbol.for("react.fragment"),oa=Symbol.for("react.strict_mode"),aa=Symbol.for("react.profiler"),sa=Symbol.for("react.provider"),la=Symbol.for("react.context"),ca=Symbol.for("react.server_context"),ua=Symbol.for("react.forward_ref"),da=Symbol.for("react.suspense"),pa=Symbol.for("react.suspense_list"),ha=Symbol.for("react.memo"),ga=Symbol.for("react.lazy"),fa=Symbol.for("react.offscreen"),ma;ma=Symbol.for("react.module.reference");function va(xa){if(typeof xa=="object"&&xa!==null){var ya=xa.$$typeof;switch(ya){case ea:switch(xa=xa.type,xa){case ra:case aa:case oa:case da:case pa:return xa;default:switch(xa=xa&&xa.$$typeof,xa){case ca:case la:case ua:case ga:case ha:case sa:return xa;default:return ya}}case na:return ya}}}return reactIs_production_min.ContextConsumer=la,reactIs_production_min.ContextProvider=sa,reactIs_production_min.Element=ea,reactIs_production_min.ForwardRef=ua,reactIs_production_min.Fragment=ra,reactIs_production_min.Lazy=ga,reactIs_production_min.Memo=ha,reactIs_production_min.Portal=na,reactIs_production_min.Profiler=aa,reactIs_production_min.StrictMode=oa,reactIs_production_min.Suspense=da,reactIs_production_min.SuspenseList=pa,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(xa){return va(xa)===la},reactIs_production_min.isContextProvider=function(xa){return va(xa)===sa},reactIs_production_min.isElement=function(xa){return typeof xa=="object"&&xa!==null&&xa.$$typeof===ea},reactIs_production_min.isForwardRef=function(xa){return va(xa)===ua},reactIs_production_min.isFragment=function(xa){return va(xa)===ra},reactIs_production_min.isLazy=function(xa){return va(xa)===ga},reactIs_production_min.isMemo=function(xa){return va(xa)===ha},reactIs_production_min.isPortal=function(xa){return va(xa)===na},reactIs_production_min.isProfiler=function(xa){return va(xa)===aa},reactIs_production_min.isStrictMode=function(xa){return va(xa)===oa},reactIs_production_min.isSuspense=function(xa){return va(xa)===da},reactIs_production_min.isSuspenseList=function(xa){return va(xa)===pa},reactIs_production_min.isValidElementType=function(xa){return typeof xa=="string"||typeof xa=="function"||xa===ra||xa===aa||xa===oa||xa===da||xa===pa||xa===fa||typeof xa=="object"&&xa!==null&&(xa.$$typeof===ga||xa.$$typeof===ha||xa.$$typeof===sa||xa.$$typeof===la||xa.$$typeof===ua||xa.$$typeof===ma||xa.getModuleId!==void 0)},reactIs_production_min.typeOf=va,reactIs_production_min}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_production_min()),reactIs.exports}var reactIsExports=requireReactIs();const ReactIs=getDefaultExportFromCjs(reactIsExports);function whitespace(ea){const na=ea&&typeof ea=="object"&&ea.type==="text"?ea.value||"":ea;return typeof na=="string"&&na.replace(/[ \t\n\f\r]/g,"")===""}function stringify$1(ea){return ea.join(" ").trim()}function stringify(ea,na){const ra={};return(ea[ea.length-1]===""?[...ea,""]:ea).join((ra.padRight?" ":"")+","+(ra.padLeft===!1?"":" ")).trim()}var styleToObject={exports:{}},inlineStyleParser,hasRequiredInlineStyleParser;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var ea=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,na=/\n/g,ra=/^\s*/,oa=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,aa=/^:\s*/,sa=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,la=/^[;\s]*/,ca=/^\s+|\s+$/g,ua=`
`,da="/",pa="*",ha="",ga="comment",fa="declaration";inlineStyleParser=function(va,xa){if(typeof va!="string")throw new TypeError("First argument must be a string");if(!va)return[];xa=xa||{};var ya=1,Aa=1;function Ca(Ta){var _a=Ta.match(na);_a&&(ya+=_a.length);var La=Ta.lastIndexOf(ua);Aa=~La?Ta.length-La:Aa+Ta.length}function Sa(){var Ta={line:ya,column:Aa};return function(_a){return _a.position=new wa(Ta),$a(),_a}}function wa(Ta){this.start=Ta,this.end={line:ya,column:Aa},this.source=xa.source}wa.prototype.content=va;function ba(Ta){var _a=new Error(xa.source+":"+ya+":"+Aa+": "+Ta);if(_a.reason=Ta,_a.filename=xa.source,_a.line=ya,_a.column=Aa,_a.source=va,!xa.silent)throw _a}function Ea(Ta){var _a=Ta.exec(va);if(_a){var La=_a[0];return Ca(La),va=va.slice(La.length),_a}}function $a(){Ea(ra)}function Ma(Ta){var _a;for(Ta=Ta||[];_a=Ia();)_a!==!1&&Ta.push(_a);return Ta}function Ia(){var Ta=Sa();if(!(da!=va.charAt(0)||pa!=va.charAt(1))){for(var _a=2;ha!=va.charAt(_a)&&(pa!=va.charAt(_a)||da!=va.charAt(_a+1));)++_a;if(_a+=2,ha===va.charAt(_a-1))return ba("End of comment missing");var La=va.slice(2,_a-2);return Aa+=2,Ca(La),va=va.slice(_a),Aa+=2,Ta({type:ga,comment:La})}}function Oa(){var Ta=Sa(),_a=Ea(oa);if(_a){if(Ia(),!Ea(aa))return ba("property missing ':'");var La=Ea(sa),Na=Ta({type:fa,property:ma(_a[0].replace(ea,ha)),value:La?ma(La[0].replace(ea,ha)):ha});return Ea(la),Na}}function Da(){var Ta=[];Ma(Ta);for(var _a;_a=Oa();)_a!==!1&&(Ta.push(_a),Ma(Ta));return Ta}return $a(),Da()};function ma(va){return va?va.replace(ca,ha):ha}return inlineStyleParser}var hasRequiredStyleToObject;function requireStyleToObject(){if(hasRequiredStyleToObject)return styleToObject.exports;hasRequiredStyleToObject=1;var ea=requireInlineStyleParser();function na(ra,oa){var aa=null;if(!ra||typeof ra!="string")return aa;for(var sa,la=ea(ra),ca=typeof oa=="function",ua,da,pa=0,ha=la.length;pa<ha;pa++)sa=la[pa],ua=sa.property,da=sa.value,ca?oa(ua,da,sa):da&&(aa||(aa={}),aa[ua]=da);return aa}return styleToObject.exports=na,styleToObject.exports.default=na,styleToObject.exports}var styleToObjectExports=requireStyleToObject();const StyleToObject=getDefaultExportFromCjs(styleToObjectExports),own$1={}.hasOwnProperty,tableElements=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(ea,na){const ra=[];let oa=-1,aa;for(;++oa<na.children.length;)aa=na.children[oa],aa.type==="element"?ra.push(toReact(ea,aa,oa,na)):aa.type==="text"?(na.type!=="element"||!tableElements.has(na.tagName)||!whitespace(aa))&&ra.push(aa.value):aa.type==="raw"&&!ea.options.skipHtml&&ra.push(aa.value);return ra}function toReact(ea,na,ra,oa){const aa=ea.options,sa=aa.transformLinkUri===void 0?uriTransformer:aa.transformLinkUri,la=ea.schema,ca=na.tagName,ua={};let da=la,pa;if(la.space==="html"&&ca==="svg"&&(da=svg,ea.schema=da),na.properties)for(pa in na.properties)own$1.call(na.properties,pa)&&addProperty(ua,pa,na.properties[pa],ea);(ca==="ol"||ca==="ul")&&ea.listDepth++;const ha=childrenToReact(ea,na);(ca==="ol"||ca==="ul")&&ea.listDepth--,ea.schema=la;const ga=na.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},fa=aa.components&&own$1.call(aa.components,ca)?aa.components[ca]:ca,ma=typeof fa=="string"||fa===React.Fragment;if(!ReactIs.isValidElementType(fa))throw new TypeError(`Component for name \`${ca}\` not defined or is not renderable`);if(ua.key=ra,ca==="a"&&aa.linkTarget&&(ua.target=typeof aa.linkTarget=="function"?aa.linkTarget(String(ua.href||""),na.children,typeof ua.title=="string"?ua.title:null):aa.linkTarget),ca==="a"&&sa&&(ua.href=sa(String(ua.href||""),na.children,typeof ua.title=="string"?ua.title:null)),!ma&&ca==="code"&&oa.type==="element"&&oa.tagName!=="pre"&&(ua.inline=!0),!ma&&(ca==="h1"||ca==="h2"||ca==="h3"||ca==="h4"||ca==="h5"||ca==="h6")&&(ua.level=Number.parseInt(ca.charAt(1),10)),ca==="img"&&aa.transformImageUri&&(ua.src=aa.transformImageUri(String(ua.src||""),String(ua.alt||""),typeof ua.title=="string"?ua.title:null)),!ma&&ca==="li"&&oa.type==="element"){const va=getInputElement(na);ua.checked=va&&va.properties?!!va.properties.checked:null,ua.index=getElementsBeforeCount(oa,na),ua.ordered=oa.tagName==="ol"}return!ma&&(ca==="ol"||ca==="ul")&&(ua.ordered=ca==="ol",ua.depth=ea.listDepth),(ca==="td"||ca==="th")&&(ua.align&&(ua.style||(ua.style={}),ua.style.textAlign=ua.align,delete ua.align),ma||(ua.isHeader=ca==="th")),!ma&&ca==="tr"&&oa.type==="element"&&(ua.isHeader=oa.tagName==="thead"),aa.sourcePos&&(ua["data-sourcepos"]=flattenPosition(ga)),!ma&&aa.rawSourcePos&&(ua.sourcePosition=na.position),!ma&&aa.includeElementIndex&&(ua.index=getElementsBeforeCount(oa,na),ua.siblingCount=getElementsBeforeCount(oa)),ma||(ua.node=na),ha.length>0?React.createElement(fa,ua,ha):React.createElement(fa,ua)}function getInputElement(ea){let na=-1;for(;++na<ea.children.length;){const ra=ea.children[na];if(ra.type==="element"&&ra.tagName==="input")return ra}return null}function getElementsBeforeCount(ea,na){let ra=-1,oa=0;for(;++ra<ea.children.length&&ea.children[ra]!==na;)ea.children[ra].type==="element"&&oa++;return oa}function addProperty(ea,na,ra,oa){const aa=find(oa.schema,na);let sa=ra;sa==null||sa!==sa||(Array.isArray(sa)&&(sa=aa.commaSeparated?stringify(sa):stringify$1(sa)),aa.property==="style"&&typeof sa=="string"&&(sa=parseStyle(sa)),aa.space&&aa.property?ea[own$1.call(hastToReact,aa.property)?hastToReact[aa.property]:aa.property]=sa:aa.attribute&&(ea[aa.attribute]=sa))}function parseStyle(ea){const na={};try{StyleToObject(ea,ra)}catch{}return na;function ra(oa,aa){const sa=oa.slice(0,4)==="-ms-"?`ms-${oa.slice(4)}`:oa;na[sa.replace(/-([a-z])/g,styleReplacer)]=aa}}function styleReplacer(ea,na){return na.toUpperCase()}function flattenPosition(ea){return[ea.start.line,":",ea.start.column,"-",ea.end.line,":",ea.end.column].map(String).join("")}const own={}.hasOwnProperty,changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",deprecated={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(ea){for(const sa in deprecated)if(own.call(deprecated,sa)&&own.call(ea,sa)){const la=deprecated[sa];console.warn(`[react-markdown] Warning: please ${la.to?`use \`${la.to}\` instead of`:"remove"} \`${sa}\` (see <${changelog}#${la.id}> for more info)`),delete deprecated[sa]}const na=unified().use(remarkParse).use(ea.remarkPlugins||[]).use(remarkRehype,{...ea.remarkRehypeOptions,allowDangerousHtml:!0}).use(ea.rehypePlugins||[]).use(rehypeFilter,ea),ra=new VFile$1;typeof ea.children=="string"?ra.value=ea.children:ea.children!==void 0&&ea.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${ea.children}\`)`);const oa=na.runSync(na.parse(ra),ra);if(oa.type!=="root")throw new TypeError("Expected a `root` node");let aa=React.createElement(React.Fragment,{},childrenToReact({options:ea,schema:html,listDepth:0},oa));return ea.className&&(aa=React.createElement("div",{className:ea.className},aa)),aa}ReactMarkdown.propTypes={children:PropTypes.string,className:PropTypes.string,allowElement:PropTypes.func,allowedElements:PropTypes.arrayOf(PropTypes.string),disallowedElements:PropTypes.arrayOf(PropTypes.string),unwrapDisallowed:PropTypes.bool,remarkPlugins:PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.object,PropTypes.func,PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.bool,PropTypes.string,PropTypes.object,PropTypes.func,PropTypes.arrayOf(PropTypes.any)]))])),rehypePlugins:PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.object,PropTypes.func,PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.bool,PropTypes.string,PropTypes.object,PropTypes.func,PropTypes.arrayOf(PropTypes.any)]))])),sourcePos:PropTypes.bool,rawSourcePos:PropTypes.bool,skipHtml:PropTypes.bool,includeElementIndex:PropTypes.bool,transformLinkUri:PropTypes.oneOfType([PropTypes.func,PropTypes.bool]),linkTarget:PropTypes.oneOfType([PropTypes.func,PropTypes.string]),transformImageUri:PropTypes.func,components:PropTypes.object};const ChangelogType=dt$1.span.withConfig({displayName:"ChangelogItem__ChangelogType",componentId:"sc-poc5vn-0"})([""]),ChangelogItem=({className:ea,type:na,content:ra})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ChangelogType,{children:na}),jsxRuntimeExports.jsx(ReactMarkdown,{children:ra})]}),theme$z=withTheme(scheme$j),ChangelogItem$1=dt$1(ChangelogItem).withConfig({displayName:"ChangelogItem",componentId:"sc-poc5vn-1"})(["","{display:inline-block;text-transform:capitalize;padding:4px 8px;}"," ",""],ChangelogType,theme$z.colors((ea,{type:na})=>lt$1(["","{background:",";color:",";}"],ChangelogType,ea.changelog[na],ea.changelog.type)),theme$z.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";border-radius:",";}"],ChangelogType,ea.changelog.type.fontSize,ea.changelog.type.fontWeight,ea.changelog.type.border))),Title$h=dt$1(Label$6).withConfig({displayName:"ChangelogWrapper__Title",componentId:"sc-1ni3l8c-0"})([""]),ReleaseDate=dt$1.span.withConfig({displayName:"ChangelogWrapper__ReleaseDate",componentId:"sc-1ni3l8c-1"})([""]),Header$1=dt$1.div.withConfig({displayName:"ChangelogWrapper__Header",componentId:"sc-1ni3l8c-2"})([""]),ChangelogWrapper=({className:ea,title:na,releaseDate:ra,changelog:oa})=>{const aa=sa=>jsxRuntimeExports.jsx(ChangelogItem$1,{...sa},sa.type);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(Header$1,{children:[jsxRuntimeExports.jsx(Title$h,{children:na}),jsxRuntimeExports.jsx(ReleaseDate,{children:`- ${ra}`})]}),oa.map(aa)]})},theme$y=withTheme(scheme$j),ChangelogWrapper$1=dt$1(ChangelogWrapper).withConfig({displayName:"ChangelogWrapper",componentId:"sc-1ni3l8c-3"})(["padding:30px;","{display:flex;align-items:center;margin-bottom:15px;}","{margin-bottom:0;margin-right:5px;}","{margin-bottom:20px;&:last-child{margin-bottom:0;}}"," ",""],Header$1,Title$h,ChangelogItem$1,theme$y.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$h,ea.changelog.title,ReleaseDate,ea.changelog.releaseDate)),theme$y.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";letter-spacing:",";}","{font-size:",";font-weight:",";letter-spacing:",";}"],Title$h,ea.changelog.title.fontSize,ea.changelog.title.fontWeight,ea.changelog.title.letterSpacing,ReleaseDate,ea.changelog.releaseDate.fontSize,ea.changelog.releaseDate.fontWeight,ea.changelog.releaseDate.letterSpacing))),errorLinks=new Map;errorLinks.set("RequestException_60","https://depicter.helpscoutdocs.com/article/262-403-error");const useOpenErrorModal=(ea="error")=>{const{addToModalsStack:na}=useModal();return reactExports.useCallback((ra,oa)=>{const aa=`${ra?.type||"NoType"}_${ra?.errCode||"NoCode"}`,sa=errorLinks.get(aa);na([{id:ea,options:{...ra,link:sa,axiosError:oa}}])},[na,ea])},useAxiosErrorHandler=(ea,na=!0,ra,oa,aa)=>{const{addToModalsStack:sa}=useModal(),{addToast:la}=useToast(),ca=useOpenErrorModal();reactExports.useEffect(()=>{const ua=ea.interceptors.request.use(pa=>pa,pa=>(pa.config?.skipErrorHandling||na&&la({type:"error",title:pa.name,message:pa.message}),Promise.reject(pa))),da=ea.interceptors.response.use(pa=>pa,pa=>{if(pa.config?.skipErrorHandling||aa?.some(ha=>ha(pa)))return Promise.reject(pa);if(pa?.response?.status===401)sa([{id:"sessionExpire"}]);else if(pa?.response?.status===500){const ha=pa.response?.data?.errors;ha?.message?.includes("reached your limit")&&ha?.message?.includes("free plan")&&sa([{id:"limitedPublish"}])}else na&&!Axios.isCancel(pa)&&(la({type:"error",title:pa.name,message:pa.message}),ca(pa?.response?.data?.errors,pa));return Promise.reject(pa)});return()=>{ea.interceptors.request.eject(ua),ea.interceptors.request.eject(da)}},[ea.interceptors.request,ea.interceptors.response,na,ea,ra,la,oa,sa,ca,aa])},ShowMore=dt$1(Label$6).withConfig({displayName:"ChangelogList__ShowMore",componentId:"sc-18xtvci-0"})([""]),Container$g=dt$1.div.withConfig({displayName:"ChangelogList__Container",componentId:"sc-18xtvci-1"})([""]),ChangelogList=({className:ea,from:na,to:ra})=>{const{t:oa}=useTranslation(),[aa,sa]=reactExports.useState(!0),[la,ca]=reactExports.useState([]),[ua,da]=reactExports.useState(void 0),[pa,ha]=reactExports.useState(!0),[ga,fa]=reactExports.useState(!1),[ma,va]=reactExports.useState(na),[xa]=reactExports.useState(ra),ya=reactExports.useMemo(()=>({from:ma,to:xa,page:ua}),[ma,xa,ua]);reactExports.useEffect(()=>{const wa=Axios.CancelToken.source();return(async()=>{try{const{data:{hasMore:Ea,hits:$a}}=await axios$3.request({...getChangelogs(ya),cancelToken:wa.token});ca(Ma=>uniqBy([...Ma,...$a],"version")),ha(Ea),sa(!1)}catch{console.log("Previous request was cancelled.")}})(),()=>wa.cancel()},[ya]);const Aa=reactExports.useCallback(()=>{da((ua||0)+1)},[ua]),Ca=reactExports.useCallback(()=>{fa(!0),va(void 0),ha(!0)},[]),Sa=wa=>jsxRuntimeExports.jsx(ChangelogWrapper$1,{...wa},wa.version);return useAxiosErrorHandler(axios$3,!1),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(LoadingSplash$1,{visible:aa,overlay:!1,children:jsxRuntimeExports.jsx(InfiniteScroll$1,{dataLength:la.length,hasMore:pa,next:Aa,loader:jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),children:jsxRuntimeExports.jsxs(Container$g,{children:[la.map(Sa),!ga&&jsxRuntimeExports.jsxs(ShowMore,{display:"block",children:[oa("Missed an update?"),jsxRuntimeExports.jsx(SimpleLink,{onClick:Ca,children:oa("See all changes.")})]})]})})})})},theme$x=withTheme(scheme$j),ChangelogList$1=dt$1(ChangelogList).withConfig({displayName:"ChangelogList",componentId:"sc-18xtvci-2"})(["ul{list-style:initial;margin-left:12px;}","{&:last-of-type{border-bottom:none;}}","{display:flex;margin:0 30px;padding:15px 0 25px 0;}"," ","{display:flex;align-items:center;justify-content:center;margin:20px;}"," ",""],ChangelogWrapper$1,ShowMore,InfiniteScroll$1,DotSpinner$1,theme$x.colors(ea=>lt$1(["","{border-bottom:1px dashed ",";}","{border-top:1px solid ",";color:",";}"],ChangelogWrapper$1,ea.changelog.border,ShowMore,ea.changelog.border,ea.showMore)),theme$x.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],ShowMore,ea.showMore.fontSize,ea.showMore.fontWeight))),Container$f=dt$1.div.withConfig({displayName:"Changelog__Container",componentId:"sc-135os3p-0"})([""]),ChangelogModalContent=({className:ea})=>{const{activeModal:{options:na}}=useModal();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ChangelogHeader$1,{}),jsxRuntimeExports.jsx(Container$f,{children:jsxRuntimeExports.jsx(ChangelogList$1,{from:na?.from,to:na?.to})})]})},ChangelogModal=dt$1(ChangelogModalContent).withConfig({displayName:"Changelog",componentId:"sc-135os3p-1"})(["width:610px;height:75vh;display:flex;flex-direction:column;max-height:830px;","{flex:1;}","{height:100%;}"],Container$f,ChangelogList$1),axios$2=Axios.create({headers:{"X-DEPICTER-CSRF":browserEnv.csrfToken}}),defaultColors$n={color:"#FFF",icon:{background:"#070707",color:"#FFFFFF",hover:{background:"#FFFFFF",color:"#070707"}}},colors$n={dark:defaultColors$n},defaultSizing$n={width:"550px",padding:"20px"},sizes$n={default:defaultSizing$n},scheme$i=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$n,sizes:sizes$n},Symbol.toStringTag,{value:"Module"})),feedbackTypes=[{value:"bugReport",label:"Report a bug"},{value:"futureSuggest",label:"Feature suggestion"}],feedbackCategories=[{value:"editSlideElements",label:"Creating/Editing elements on slides"},{value:"createSlide",label:"Creating new slide"},{value:"assetPanelSearch",label:"Searching for assets in left panel"},{value:"animation",label:"Using animations"},{value:"preview",label:"Previewing changes"},{value:"upload",label:"Uploading assets (image, video, etc.)"},{value:"publish",label:"Publishing/Saving slider"},{value:"customize",label:"Customizing slider"},{value:"other",label:"Other"}],Title$g=dt$1(Label$6).withConfig({displayName:"Feedback__Title",componentId:"sc-qfgwax-0"})([""]),ButtonsWrapper$1=dt$1.div.withConfig({displayName:"Feedback__ButtonsWrapper",componentId:"sc-qfgwax-1"})([""]),ControlContainer=dt$1.div.withConfig({displayName:"Feedback__ControlContainer",componentId:"sc-qfgwax-2"})([""]),FeedbackModalContent=({className:ea})=>{const{t:na}=useTranslation(),[ra,oa]=reactExports.useState(!1),[aa,sa]=reactExports.useState(""),{activeModal:la,closeModal:ca}=useModal(),[ua,da]=reactExports.useState({issueType:"bugReport",issueRelatesTo:"editSlideElements",userDescription:"",userEmail:browserEnv.user.email}),pa=()=>{ca(la.id)},ha=()=>{if(ua.issueType==="futureSuggest"&&!ua.userDescription){sa(na("Please provide us some details about your feature request."));return}oa(!0),axios$2.request(sendFeedback(ua)).then(()=>{ca(la.id)}).catch(ga=>{ga.response&&sa(ga.response.data.errors)}).finally(()=>{oa(!1)})};return useAxiosErrorHandler(axios$2,!1),jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Title$g,{children:na("Send us feedback")}),jsxRuntimeExports.jsxs(ControlContainer,{children:[jsxRuntimeExports.jsx(Label$6,{children:na("Choose a subject")}),jsxRuntimeExports.jsx(Select$1,{options:feedbackTypes,value:ua.issueType,onChange:ga=>{da({...ua,issueType:ga})}})]}),jsxRuntimeExports.jsxs(ControlContainer,{children:[jsxRuntimeExports.jsx(Label$6,{children:na("Related to")}),jsxRuntimeExports.jsx(Select$1,{options:feedbackCategories,value:ua.issueRelatesTo,onChange:ga=>da({...ua,issueRelatesTo:ga})})]}),jsxRuntimeExports.jsxs(ControlContainer,{children:[jsxRuntimeExports.jsx(Label$6,{children:na("Provide us the details")}),jsxRuntimeExports.jsx(Input$2,{inputType:"textArea",width:"100%",placeholder:na(`Please include 
- A description of the issue 
- Steps to reproduce (if possible) 
- What results are expected`),value:ua.userDescription,onChange:ga=>da({...ua,userDescription:ga})})]}),jsxRuntimeExports.jsxs(ControlContainer,{children:[jsxRuntimeExports.jsx(Label$6,{children:na("Email Address")}),jsxRuntimeExports.jsx(Input$2,{placeholder:na("Your email address"),pattern:emailPattern,width:"100%",variant:"medium",validationOn:"blur",type:"email",value:ua.userEmail,onChange:ga=>da({...ua,userEmail:ga})})]}),aa&&jsxRuntimeExports.jsx(Flag$1,{title:aa,type:"warning"}),jsxRuntimeExports.jsxs(ButtonsWrapper$1,{children:[jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:pa,children:na("Cancel")}),jsxRuntimeExports.jsx(SolidButton,{size:"small",onClick:ha,loading:ra,children:na("Send")})]})]})},theme$w=withTheme(scheme$i),FeedbackModalContent$1=dt$1(FeedbackModalContent).withConfig({displayName:"Feedback",componentId:"sc-qfgwax-3"})(["","{font-weight:bold;font-size:14px;margin-bottom:15px;}","{display:flex;flex-flow:column;margin-bottom:10px;}","{input{width:100%;}textarea{height:160px;}}","{margin-top:20px;display:flex;align-items:center;justify-content:flex-end;> ","{margin-right:10px;}}","{width:350px;}"," ",""],Title$g,ControlContainer,Input$2,ButtonsWrapper$1,OutlineButton$1,Select$1,theme$w.colors(ea=>lt$1(["color:",";","{color:",";}"],ea.color,Title$g,ea.color)),theme$w.sizes(ea=>lt$1(["width:",";padding:",";"],ea.width,ea.padding))),defaultColors$m={toolbar:{background:"#222222",color:"#AAAAAA"},preview:{background:"#2F2F2F",close:"#FFF",shadow:"rgba(0, 0, 0, 0.5)"}},colors$m={dark:defaultColors$m},defaultSizing$m={toolbar:{padding:"9px 20px",border:"5px",fontSize:"15px"}},sizes$m={default:defaultSizing$m},scheme$h=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$m,sizes:sizes$m},Symbol.toStringTag,{value:"Module"})),LeftContainer=dt$1.div.withConfig({displayName:"PreviewHeader__LeftContainer",componentId:"sc-yh07i6-0"})([""]),RightContainer=dt$1.div.withConfig({displayName:"PreviewHeader__RightContainer",componentId:"sc-yh07i6-1"})([""]),PreviewHeader=({className:ea,title:na,breakpoint:ra,url:oa,showOpenInNewTabButton:aa,documentType:sa,extraButtons:la,onReplay:ca,onChange:ua,iFrameRef:da})=>{const{t:pa}=useTranslation(),ha=reactExports.useCallback(()=>{window.open(oa,"_blank")},[oa]),ga=fa=>jsxRuntimeExports.jsx(fa,{});return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(LeftContainer,{children:[jsxRuntimeExports.jsx("span",{children:na}),jsxRuntimeExports.jsx(DisplayExtensionControls$1,{iFrameRef:da,onReplay:ca,documentType:sa}),aa&&jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:ha,children:pa("Open in new tab")}),la?.map(ga)]}),jsxRuntimeExports.jsx(ResponsiveSwitch$1,{value:ra,onChange:fa=>ua&&ua(fa),tooltip:{group:"previewModal",place:"bottom"}}),jsxRuntimeExports.jsx(RightContainer,{})]})},theme$v=withTheme(scheme$h),PreviewHeader$1=dt$1(PreviewHeader).withConfig({displayName:"PreviewHeader",componentId:"sc-yh07i6-2"})(["display:flex;align-items:center;justify-content:center;","{display:flex;align-items:center;flex:1;> span{margin-right:10px;}}","{flex:1;}",",","{text-transform:uppercase;margin-right:5px;}"," ",""],LeftContainer,RightContainer,SolidButton,OutlineButton$1,theme$v.colors(ea=>lt$1(["background:",";","{> span{color:",";}}"],ea.toolbar.background,LeftContainer,ea.toolbar.color)),theme$v.sizes(ea=>lt$1(["padding:",";border-radius:"," "," 0px 0px;","{> span{font-size:",";}}"],ea.toolbar.padding,ea.toolbar.border,ea.toolbar.border,LeftContainer,ea.toolbar.fontSize))),PreviewContainer=dt$1.div.withConfig({displayName:"PreviewModal__PreviewContainer",componentId:"sc-17tjo2g-0"})([""]),PreviewModal=({className:ea})=>{const{activeModal:{options:na}}=useModal(),{title:ra="",url:oa="",breakpoint:aa="default",showOpenInNewTabButton:sa=!0,breakpointBoxes:la=[{name:"mobile",width:767,height:800},{name:"tablet",width:1024,height:768},{name:"default"}],extraButtons:ca=[],backgroundPreviewSrc:ua,documentType:da="custom"}=na||{},[pa,ha]=reactExports.useState(!0),[ga,fa]=reactExports.useState(aa),ma=la.find(ba=>ba.name===ga),[va,xa]=reactExports.useState({width:ma?.width,height:ma?.height}),ya=reactExports.useRef(null),Aa=reactExports.useCallback(()=>{ha(!0),ya.current?.setAttribute("src",oa)},[oa]),Ca=reactExports.useCallback(ba=>{const Ea=la.find($a=>$a.name===ba);xa({width:Ea?.width,height:Ea?.height}),fa(ba)},[la]),Sa=reactExports.useCallback((ba,Ea)=>{xa({width:ba,height:Ea})},[]),wa=reactExports.useCallback(()=>{ha(!1)},[]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(PreviewHeader$1,{title:ra,url:oa,breakpoint:ga,showOpenInNewTabButton:sa,extraButtons:ca,onChange:Ca,onReplay:Aa,iFrameRef:ya.current,documentType:da}),jsxRuntimeExports.jsx(LoadingSplash$1,{visible:pa,overlay:!0,children:jsxRuntimeExports.jsx(PreviewContainer,{children:jsxRuntimeExports.jsx(ResizableIframe$1,{ref:ya,src:oa,title:"Document Preview",width:va?.width,height:va?.height,breakpointBoxes:la,onBreakpointChange:fa,onResize:Sa,onLoad:wa,backgroundFrameSrc:ua})})}),jsxRuntimeExports.jsx(Tooltip$1,{id:"previewModal",effect:"solid",inverted:!0})]})},theme$u=withTheme(scheme$h),PreviewModalContent=dt$1(PreviewModal).withConfig({displayName:"PreviewModal",componentId:"sc-17tjo2g-1"})(["display:flex;flex-direction:column;width:90vw;height:90vh;","{height:100%;overflow:hidden;}","{padding:21px 41px 41px 21px;}","{> div:first-of-type{z-index:9999;}}",""],PreviewContainer,ResizableIframe$1,LoadingSplash$1,theme$u.colors(ea=>lt$1(["box-shadow:2px 10px 75px ",";","{background-color:",";}"],ea.preview.shadow,LoadingSplash$1,ea.preview.background))),defaultColors$l={title:"#FFFFFF",icon:{background:"#070707",color:"#FFFFFF",hover:{background:"#FFFFFF",color:"#070707"}},video:{background:"#000000"},caption:"#FFFFFF"},colors$l={dark:defaultColors$l},defaultSizing$l={title:{fontSize:"22px",fontWeight:"600"},caption:{fontSize:"15px",fontWeight:"400"}},sizes$l={default:defaultSizing$l},scheme$g=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$l,sizes:sizes$l},Symbol.toStringTag,{value:"Module"})),Title$f=dt$1(Label$6).withConfig({displayName:"OnboardingVideo__Title",componentId:"sc-thnb4x-0"})([""]),Caption=dt$1(Label$6).withConfig({displayName:"OnboardingVideo__Caption",componentId:"sc-thnb4x-1"})([""]),VideoContainer=dt$1.div.withConfig({displayName:"OnboardingVideo__VideoContainer",componentId:"sc-thnb4x-2"})([""]),OnboardingVideoModalContent=({className:ea})=>{const[na,ra]=reactExports.useState(!0),{t:oa}=useTranslation(),{activeModal:{options:aa}}=useModal();reactExports.useEffect(()=>{localStorage.setItem("dpIsNewUser","0")},[]);const sa=reactExports.useCallback(()=>{ra(!1)},[]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Title$f,{children:oa("Welcome to Depicter")}),jsxRuntimeExports.jsx(LoadingSplash$1,{visible:na,overlay:!0,children:jsxRuntimeExports.jsx(VideoContainer,{children:jsxRuntimeExports.jsx("iframe",{width:"865",height:"470",src:aa?.embedVideoUrl,title:oa("Onboarding Video"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",onLoad:sa,allowFullScreen:!0})})}),jsxRuntimeExports.jsx(Caption,{children:oa("Let’s see how to create an awesome slider!")})]})},theme$t=withTheme(scheme$g),OnboardingVideoModalContent$1=dt$1(OnboardingVideoModalContent).withConfig({displayName:"OnboardingVideo",componentId:"sc-thnb4x-3"})(["width:865px;display:flex;flex-direction:column;","{text-align:center;margin-bottom:0;padding:23px;}","{height:470px;}","{text-align:center;margin-bottom:0;padding:24px;}"," ",""],Title$f,VideoContainer,Caption,theme$t.colors(ea=>lt$1(["","{color:",";}","{background:",";}","{color:",";}"],Title$f,ea.title,VideoContainer,ea.video.background,Caption,ea.caption)),theme$t.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}","{font-size:",";font-weight:",";}"],Title$f,ea.title.fontSize,ea.title.fontWeight,Caption,ea.caption.fontSize,ea.caption.fontWeight))),getUTMParams=ea=>Object.entries(ea).map(([na,ra])=>`utm_${na}=${encodeURIComponent(ra)}`).join("&"),getActivationLink=ea=>`${browserEnv.activationLink}?refresh=${browserEnv.tokens.refreshToken}&access=${browserEnv.tokens.accessToken}&return_to=${encodeURIComponent(window.location.href)}${ea?`&${getUTMParams(ea)}`:""}`,getPurchaseLink=ea=>`${browserEnv.purchaseLink}?refresh=${browserEnv.tokens.refreshToken}&access=${browserEnv.tokens.accessToken}&return_to=${encodeURIComponent(window.location.href)}${ea?`&${getUTMParams(ea)}`:""}`,bgImage=""+new URL("assets/bg.png",import.meta.url).href,aiIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.543%2014.7357C17.4124%2014.0054%2018.1069%2013.0894%2018.5754%2012.0552C19.0439%2011.0209%2019.2744%209.89476%2019.25%208.75961C19.1641%204.83141%2016.0179%201.59242%2012.0966%201.38617C11.0848%201.3311%2010.0723%201.47992%209.11915%201.82378C8.16602%202.16764%207.29171%202.69953%206.54814%203.38787C5.80457%204.0762%205.20691%204.90695%204.79065%205.83076C4.3744%206.75458%204.14804%207.75262%204.12501%208.76562L2.19571%2012.4764C2.18798%2012.4919%202.18024%2012.5073%202.17337%2012.5228C2.03505%2012.8452%202.02519%2013.2083%202.14581%2013.5377C2.26643%2013.8671%202.5084%2014.138%202.82219%2014.2948L2.84368%2014.3043L4.81251%2015.2058V17.875C4.81251%2018.2397%204.95737%2018.5894%205.21524%2018.8473C5.4731%2019.1051%205.82283%2019.25%206.18751%2019.25H10.3125C10.4948%2019.25%2010.6697%2019.1776%2010.7986%2019.0486C10.9276%2018.9197%2011%2018.7448%2011%2018.5625C11%2018.3802%2010.9276%2018.2053%2010.7986%2018.0764C10.6697%2017.9474%2010.4948%2017.875%2010.3125%2017.875H6.18751V14.7649C6.18761%2014.6331%206.14983%2014.5041%206.07868%2014.3932C6.00753%2014.2823%205.906%2014.1941%205.78618%2014.1393L3.43751%2013.0625L5.42009%209.25203C5.47176%209.15519%205.49919%209.04726%205.50001%208.9375C5.49981%207.53529%205.97589%206.1746%206.85024%205.07838C7.72459%203.98216%208.94536%203.21543%2010.3125%202.90383V4.24359C9.8538%204.40577%209.46719%204.72489%209.22101%205.14455C8.97483%205.56421%208.88494%206.05738%208.96721%206.53691C9.04948%207.01644%209.29863%207.45144%209.67062%207.76504C10.0426%208.07864%2010.5135%208.25064%2011%208.25064C11.4865%208.25064%2011.9574%208.07864%2012.3294%207.76504C12.7014%207.45144%2012.9505%207.01644%2013.0328%206.53691C13.1151%206.05738%2013.0252%205.56421%2012.779%205.14455C12.5328%204.72489%2012.1462%204.40577%2011.6875%204.24359V2.75C11.7992%202.75%2011.9109%202.75%2012.0227%202.75859C13.2418%202.82843%2014.4134%203.25618%2015.3907%203.98835C16.3681%204.72052%2017.1078%205.7246%2017.5175%206.875H15.8125C15.7117%206.87496%2015.612%206.89712%2015.5207%206.93989C15.4293%206.98266%2015.3485%207.045%2015.284%207.1225L13.0917%209.75391C12.6345%209.58354%2012.1318%209.58035%2011.6724%209.74491C11.2131%209.90947%2010.8268%2010.2312%2010.5817%2010.6531C10.3367%2011.075%2010.2488%2011.57%2010.3335%2012.0506C10.4183%2012.5311%2010.6702%2012.9661%2011.0448%2013.2788C11.4194%2013.5914%2011.8925%2013.7616%2012.3804%2013.7591C12.8683%2013.7565%2013.3396%2013.5816%2013.711%2013.2651C14.0823%2012.9486%2014.3298%2012.5109%2014.4096%2012.0296C14.4894%2011.5482%2014.3964%2011.0542%2014.147%2010.6348L16.1348%208.25H17.8355C17.8561%208.42875%2017.8687%208.60922%2017.8733%208.79141C17.8947%209.77611%2017.6816%2010.7518%2017.2516%2011.6379C16.8215%2012.524%2016.1869%2013.2951%2015.4%2013.8875C15.3031%2013.9602%2015.227%2014.0572%2015.1796%2014.1687C15.1323%2014.2803%2015.1152%2014.4023%2015.1302%2014.5226L15.8177%2020.0226C15.8386%2020.1886%2015.9193%2020.3413%2016.0448%2020.4521C16.1703%2020.5628%2016.3318%2020.624%2016.4991%2020.6241C16.5279%2020.6241%2016.5566%2020.6224%2016.5851%2020.619C16.6747%2020.6078%2016.7612%2020.5791%2016.8398%2020.5345C16.9183%2020.4899%2016.9872%2020.4303%2017.0427%2020.359C17.0982%2020.2877%2017.139%2020.2062%2017.163%2020.1192C17.187%2020.0321%2017.1935%2019.9412%2017.1824%2019.8516L16.543%2014.7357ZM11%206.875C10.864%206.875%2010.7311%206.83468%2010.6181%206.75914C10.505%206.68359%2010.4169%206.57622%2010.3648%206.4506C10.3128%206.32497%2010.2992%206.18674%2010.3257%206.05338C10.3522%205.92001%2010.4177%205.79751%2010.5139%205.70136C10.61%205.60522%2010.7325%205.53974%2010.8659%205.51321C10.9992%205.48668%2011.1375%205.5003%2011.2631%205.55233C11.3887%205.60437%2011.4961%205.69249%2011.5716%205.80555C11.6472%205.9186%2011.6875%206.05153%2011.6875%206.1875C11.6875%206.36984%2011.6151%206.5447%2011.4861%206.67364C11.3572%206.80257%2011.1823%206.875%2011%206.875ZM12.375%2012.375C12.239%2012.375%2012.1061%2012.3347%2011.9931%2012.2591C11.88%2012.1836%2011.7919%2012.0762%2011.7398%2011.9506C11.6878%2011.825%2011.6742%2011.6867%2011.7007%2011.5534C11.7272%2011.42%2011.7927%2011.2975%2011.8889%2011.2014C11.985%2011.1052%2012.1075%2011.0397%2012.2409%2011.0132C12.3742%2010.9867%2012.5125%2011.0003%2012.6381%2011.0523C12.7637%2011.1044%2012.8711%2011.1925%2012.9466%2011.3055C13.0222%2011.4186%2013.0625%2011.5515%2013.0625%2011.6875C13.0625%2011.8698%2012.9901%2012.0447%2012.8611%2012.1736C12.7322%2012.3026%2012.5573%2012.375%2012.375%2012.375Z'%20fill='%2301D06F'/%3e%3c/svg%3e",animationIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.76413%205.29847C7.70021%205.23462%207.6495%205.1588%207.61491%205.07534C7.58031%204.99187%207.5625%204.90241%207.5625%204.81206C7.5625%204.72172%207.58031%204.63225%207.61491%204.54879C7.6495%204.46533%207.70021%204.38951%207.76413%204.32566L10.5141%201.57566C10.578%201.51174%2010.6538%201.46103%2010.7373%201.42643C10.8207%201.39183%2010.9102%201.37402%2011.0005%201.37402C11.0909%201.37402%2011.1804%201.39183%2011.2638%201.42643C11.3473%201.46103%2011.4231%201.51174%2011.4869%201.57566L14.2369%204.32566C14.3659%204.45466%2014.4384%204.62963%2014.4384%204.81206C14.4384%204.9945%2014.3659%205.16947%2014.2369%205.29847C14.1079%205.42747%2013.933%205.49995%2013.7505%205.49995C13.5681%205.49995%2013.3931%205.42747%2013.2641%205.29847L11.688%203.72152V8.24956C11.688%208.4319%2011.6156%208.60677%2011.4867%208.7357C11.3577%208.86463%2011.1829%208.93706%2011.0005%208.93706C10.8182%208.93706%2010.6433%208.86463%2010.5144%208.7357C10.3855%208.60677%2010.313%208.4319%2010.313%208.24956V3.72152L8.73695%205.29847C8.6731%205.36239%208.59727%205.4131%208.51381%205.4477C8.43035%205.4823%208.34089%205.5001%208.25054%205.5001C8.16019%205.5001%208.07073%205.4823%207.98727%205.4477C7.90381%205.4131%207.82798%205.36239%207.76413%205.29847ZM13.2641%2016.7007L11.688%2018.2776V13.7496C11.688%2013.5672%2011.6156%2013.3924%2011.4867%2013.2634C11.3577%2013.1345%2011.1829%2013.0621%2011.0005%2013.0621C10.8182%2013.0621%2010.6433%2013.1345%2010.5144%2013.2634C10.3855%2013.3924%2010.313%2013.5672%2010.313%2013.7496V18.2776L8.73695%2016.7007C8.60794%2016.5717%208.43298%2016.4992%208.25054%2016.4992C8.0681%2016.4992%207.89314%2016.5717%207.76413%2016.7007C7.63513%2016.8297%207.56266%2017.0046%207.56266%2017.1871C7.56266%2017.3695%207.63513%2017.5445%207.76413%2017.6735L10.5141%2020.4235C10.578%2020.4874%2010.6538%2020.5381%2010.7373%2020.5727C10.8207%2020.6073%2010.9102%2020.6251%2011.0005%2020.6251C11.0909%2020.6251%2011.1804%2020.6073%2011.2638%2020.5727C11.3473%2020.5381%2011.4231%2020.4874%2011.4869%2020.4235L14.2369%2017.6735C14.3659%2017.5445%2014.4384%2017.3695%2014.4384%2017.1871C14.4384%2017.0046%2014.3659%2016.8297%2014.2369%2016.7007C14.1079%2016.5717%2013.933%2016.4992%2013.7505%2016.4992C13.5681%2016.4992%2013.3931%2016.5717%2013.2641%2016.7007ZM20.4244%2010.5132L17.6744%207.76316C17.5454%207.63415%2017.3705%207.56168%2017.188%207.56168C17.0056%207.56168%2016.8306%207.63415%2016.7016%207.76316C16.5726%207.89216%2016.5002%208.06713%2016.5002%208.24956C16.5002%208.432%2016.5726%208.60697%2016.7016%208.73597L18.2786%2010.3121H13.7505C13.5682%2010.3121%2013.3933%2010.3845%2013.2644%2010.5134C13.1355%2010.6424%2013.063%2010.8172%2013.063%2010.9996C13.063%2011.1819%2013.1355%2011.3568%2013.2644%2011.4857C13.3933%2011.6146%2013.5682%2011.6871%2013.7505%2011.6871H18.2786L16.7016%2013.2632C16.5726%2013.3922%2016.5002%2013.5671%2016.5002%2013.7496C16.5002%2013.932%2016.5726%2014.107%2016.7016%2014.236C16.8306%2014.365%2017.0056%2014.4374%2017.188%2014.4374C17.3705%2014.4374%2017.5454%2014.365%2017.6744%2014.236L20.4244%2011.486C20.4884%2011.4221%2020.5391%2011.3463%2020.5737%2011.2628C20.6083%2011.1794%2020.6261%2011.0899%2020.6261%2010.9996C20.6261%2010.9092%2020.6083%2010.8198%2020.5737%2010.7363C20.5391%2010.6528%2020.4884%2010.577%2020.4244%2010.5132ZM3.72249%2011.6871H8.25054C8.43288%2011.6871%208.60774%2011.6146%208.73668%2011.4857C8.86561%2011.3568%208.93804%2011.1819%208.93804%2010.9996C8.93804%2010.8172%208.86561%2010.6424%208.73668%2010.5134C8.60774%2010.3845%208.43288%2010.3121%208.25054%2010.3121H3.72249L5.29945%208.73597C5.42845%208.60697%205.50092%208.432%205.50092%208.24956C5.50092%208.06713%205.42845%207.89216%205.29945%207.76316C5.17044%207.63415%204.99548%207.56168%204.81304%207.56168C4.6306%207.56168%204.45564%207.63415%204.32663%207.76316L1.57663%2010.5132C1.51271%2010.577%201.462%2010.6528%201.42741%2010.7363C1.39281%2010.8198%201.375%2010.9092%201.375%2010.9996C1.375%2011.0899%201.39281%2011.1794%201.42741%2011.2628C1.462%2011.3463%201.51271%2011.4221%201.57663%2011.486L4.32663%2014.236C4.45564%2014.365%204.6306%2014.4374%204.81304%2014.4374C4.99548%2014.4374%205.17044%2014.365%205.29945%2014.236C5.42845%2014.107%205.50092%2013.932%205.50092%2013.7496C5.50092%2013.5671%205.42845%2013.3922%205.29945%2013.2632L3.72249%2011.6871Z'%20fill='%2301D06F'/%3e%3c/svg%3e",audienceIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0762%2013.5713C10.9976%2012.9578%2011.6972%2012.0642%2012.0714%2011.0224C12.4456%209.98063%2012.4747%208.84609%2012.1542%207.78654C11.8338%206.727%2011.1809%205.7987%2010.2921%205.13892C9.40326%204.47914%208.3257%204.12291%207.21876%204.12291C6.11182%204.12291%205.03427%204.47914%204.14544%205.13892C3.25662%205.7987%202.60371%206.727%202.28328%207.78654C1.96284%208.84609%201.99189%209.98063%202.36613%2011.0224C2.74036%2012.0642%203.43992%2012.9578%204.36134%2013.5713C2.69458%2014.1856%201.27112%2015.3223%200.303372%2016.812C0.25251%2016.8875%200.217182%2016.9725%200.19944%2017.0619C0.181698%2017.1512%200.181897%2017.2432%200.200024%2017.3325C0.218152%2017.4218%200.253847%2017.5066%200.305034%2017.582C0.356221%2017.6574%200.42188%2017.7218%200.498194%2017.7716C0.574508%2017.8214%200.659954%2017.8555%200.749566%2017.8719C0.839178%2017.8884%200.931168%2017.8869%201.02019%2017.8675C1.10921%2017.8481%201.19349%2017.8112%201.26812%2017.7589C1.34275%2017.7066%201.40626%2017.6401%201.45493%2017.563C2.07918%2016.6029%202.93337%2015.814%203.93993%2015.2678C4.9465%2014.7216%206.07356%2014.4356%207.21876%2014.4356C8.36396%2014.4356%209.49102%2014.7216%2010.4976%2015.2678C11.5042%2015.814%2012.3584%2016.6029%2012.9826%2017.563C13.0834%2017.7129%2013.2392%2017.8171%2013.4162%2017.853C13.5932%2017.889%2013.7773%2017.8538%2013.9286%2017.7551C14.0799%2017.6564%2014.1863%2017.5022%2014.2247%2017.3257C14.2632%2017.1492%2014.2307%2016.9646%2014.1342%2016.812C13.1664%2015.3223%2011.7429%2014.1856%2010.0762%2013.5713ZM3.43751%209.28125C3.43751%208.53339%203.65928%207.80233%204.07477%207.1805C4.49026%206.55868%205.08081%206.07403%205.77174%205.78783C6.46267%205.50164%207.22296%205.42676%207.95645%205.57266C8.68994%205.71856%209.36369%206.07869%209.89251%206.6075C10.4213%207.13632%2010.7815%207.81008%2010.9274%208.54357C11.0733%209.27706%2010.9984%2010.0373%2010.7122%2010.7283C10.426%2011.4192%209.94134%2012.0098%209.31951%2012.4252C8.69769%2012.8407%207.96662%2013.0625%207.21876%2013.0625C6.21626%2013.0614%205.25515%2012.6626%204.54627%2011.9537C3.83739%2011.2449%203.43865%2010.2838%203.43751%209.28125ZM21.4964%2017.7633C21.3437%2017.8629%2021.1577%2017.8977%2020.9793%2017.8602C20.8009%2017.8226%2020.6447%2017.7157%2020.5451%2017.563C19.9216%2016.6024%2019.0675%2015.8131%2018.0607%2015.2671C17.054%2014.7212%2015.9265%2014.436%2014.7813%2014.4375C14.5989%2014.4375%2014.4241%2014.3651%2014.2951%2014.2361C14.1662%2014.1072%2014.0938%2013.9323%2014.0938%2013.75C14.0938%2013.5677%2014.1662%2013.3928%2014.2951%2013.2639C14.4241%2013.1349%2014.5989%2013.0625%2014.7813%2013.0625C15.3381%2013.062%2015.888%2012.9385%2016.3916%2012.7008C16.8951%2012.4631%2017.34%2012.1172%2017.6944%2011.6877C18.0488%2011.2581%2018.3039%2010.7556%2018.4416%2010.2161C18.5792%209.6765%2018.596%209.11319%2018.4908%208.56638C18.3855%208.01957%2018.1607%207.50277%2017.8326%207.05289C17.5044%206.60301%2017.0809%206.23116%2016.5924%205.96392C16.1039%205.69668%2015.5623%205.54063%2015.0065%205.50693C14.4507%205.47324%2013.8943%205.56272%2013.377%205.76899C13.2927%205.80544%2013.2019%205.82463%2013.1101%205.8254C13.0182%205.82618%2012.9271%205.80853%2012.8421%205.77351C12.7572%205.73848%2012.6802%205.68678%2012.6155%205.62147C12.5509%205.55616%2012.5%205.47856%2012.4659%205.39326C12.4318%205.30795%2012.4151%205.21667%2012.4169%205.12481C12.4186%205.03295%2012.4388%204.94238%2012.4761%204.85844C12.5135%204.7745%2012.5673%204.69889%2012.6343%204.63609C12.7014%204.57329%2012.7804%204.52458%2012.8666%204.49281C14.0503%204.02072%2015.367%204.00373%2016.5625%204.44512C17.7581%204.88652%2018.7478%205.75503%2019.3408%206.88309C19.9337%208.01116%2020.0879%209.31886%2019.7736%2010.5539C19.4593%2011.789%2018.6988%2012.8639%2017.6387%2013.5713C19.3054%2014.1856%2020.7289%2015.3223%2021.6967%2016.812C21.7962%2016.9647%2021.8311%2017.1507%2021.7935%2017.3291C21.756%2017.5075%2021.6491%2017.6637%2021.4964%2017.7633Z'%20fill='%2301D06F'/%3e%3c/svg%3e",parallaxIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.375%201.375H9.625C8.1668%201.37659%206.76878%201.95657%205.73767%202.98767C4.70657%204.01878%204.12659%205.4168%204.125%206.875V15.125C4.12659%2016.5832%204.70657%2017.9812%205.73767%2019.0123C6.76878%2020.0434%208.1668%2020.6234%209.625%2020.625H12.375C13.8332%2020.6234%2015.2312%2020.0434%2016.2623%2019.0123C17.2934%2017.9812%2017.8734%2016.5832%2017.875%2015.125V6.875C17.8734%205.4168%2017.2934%204.01878%2016.2623%202.98767C15.2312%201.95657%2013.8332%201.37659%2012.375%201.375ZM16.5%2015.125C16.4989%2016.2187%2016.0639%2017.2672%2015.2906%2018.0406C14.5172%2018.8139%2013.4687%2019.2489%2012.375%2019.25H9.625C8.53133%2019.2489%207.48278%2018.8139%206.70944%2018.0406C5.9361%2017.2672%205.50114%2016.2187%205.5%2015.125V6.875C5.50114%205.78133%205.9361%204.73278%206.70944%203.95944C7.48278%203.1861%208.53133%202.75114%209.625%202.75H12.375C13.4687%202.75114%2014.5172%203.1861%2015.2906%203.95944C16.0639%204.73278%2016.4989%205.78133%2016.5%206.875V15.125ZM11.6875%207.15945V14.8405L12.5761%2013.9511C12.7051%2013.8221%2012.8801%2013.7496%2013.0625%2013.7496C13.2449%2013.7496%2013.4199%2013.8221%2013.5489%2013.9511C13.6779%2014.0801%2013.7504%2014.2551%2013.7504%2014.4375C13.7504%2014.6199%2013.6779%2014.7949%2013.5489%2014.9239L11.4864%2016.9864C11.4226%2017.0503%2011.3467%2017.101%2011.2633%2017.1356C11.1798%2017.1702%2011.0903%2017.188%2011%2017.188C10.9097%2017.188%2010.8202%2017.1702%2010.7367%2017.1356C10.6533%2017.101%2010.5774%2017.0503%2010.5136%2016.9864L8.45109%2014.9239C8.32209%2014.7949%208.24962%2014.6199%208.24962%2014.4375C8.24962%2014.2551%208.32209%2014.0801%208.45109%2013.9511C8.5801%2013.8221%208.75506%2013.7496%208.9375%2013.7496C9.11994%2013.7496%209.2949%2013.8221%209.42391%2013.9511L10.3125%2014.8405V7.15945L9.42391%208.04891C9.2949%208.17791%209.11994%208.25038%208.9375%208.25038C8.75506%208.25038%208.5801%208.17791%208.45109%208.04891C8.32209%207.9199%208.24962%207.74494%208.24962%207.5625C8.24962%207.38006%208.32209%207.2051%208.45109%207.07609L10.5136%205.01359C10.5774%204.94967%2010.6533%204.89896%2010.7367%204.86437C10.8202%204.82977%2010.9097%204.81196%2011%204.81196C11.0903%204.81196%2011.1798%204.82977%2011.2633%204.86437C11.3467%204.89896%2011.4226%204.94967%2011.4864%205.01359L13.5489%207.07609C13.6128%207.13997%2013.6635%207.2158%2013.698%207.29926C13.7326%207.38272%2013.7504%207.47217%2013.7504%207.5625C13.7504%207.65283%2013.7326%207.74228%2013.698%207.82574C13.6635%207.9092%2013.6128%207.98503%2013.5489%208.04891C13.485%208.11278%2013.4092%208.16345%2013.3257%208.19802C13.2423%208.23259%2013.1528%208.25038%2013.0625%208.25038C12.9722%208.25038%2012.8827%208.23259%2012.7993%208.19802C12.7158%208.16345%2012.64%208.11278%2012.5761%208.04891L11.6875%207.15945Z'%20fill='%2301D06F'/%3e%3c/svg%3e",shopIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.7777%205.05914C19.7131%204.98191%2019.6324%204.9198%2019.5412%204.87718C19.4501%204.83456%2019.3506%204.81248%2019.25%204.8125H5.38656L4.86406%201.93961C4.83528%201.7812%204.75182%201.63791%204.62822%201.53473C4.50463%201.43155%204.34874%201.37502%204.18773%201.375H2.0625C1.88016%201.375%201.7053%201.44743%201.57636%201.57636C1.44743%201.7053%201.375%201.88016%201.375%202.0625C1.375%202.24484%201.44743%202.4197%201.57636%202.54864C1.7053%202.67757%201.88016%202.75%202.0625%202.75H3.60938L5.80594%2014.8062C5.87064%2015.1637%206.02865%2015.4978%206.26398%2015.7747C5.93918%2016.0781%205.70475%2016.4655%205.58668%2016.8939C5.4686%2017.3224%205.47151%2017.7752%205.59507%2018.2022C5.71863%2018.6291%205.95802%2019.0134%206.28669%2019.3126C6.61537%2019.6118%207.02048%2019.8141%207.4571%2019.8971C7.89373%2019.9801%208.34482%2019.9406%208.76034%2019.7828C9.17586%2019.6251%209.53959%2019.3554%209.81118%2019.0036C10.0828%2018.6518%2010.2516%2018.2316%2010.299%2017.7897C10.3464%2017.3478%2010.2704%2016.9014%2010.0796%2016.5H13.9829C13.8291%2016.822%2013.7495%2017.1744%2013.75%2017.5313C13.75%2018.0072%2013.8911%2018.4724%2014.1555%2018.8681C14.4199%2019.2638%2014.7957%2019.5722%2015.2354%2019.7543C15.6751%2019.9365%2016.1589%2019.9841%2016.6257%2019.8913C17.0925%2019.7984%2017.5212%2019.5692%2017.8577%2019.2327C18.1942%2018.8962%2018.4234%2018.4675%2018.5163%2018.0007C18.6091%2017.5339%2018.5615%2017.0501%2018.3793%2016.6104C18.1972%2016.1707%2017.8888%2015.7949%2017.4931%2015.5305C17.0974%2015.2661%2016.6322%2015.125%2016.1563%2015.125H7.83492C7.67392%2015.125%207.51803%2015.0684%207.39443%2014.9653C7.27084%2014.8621%207.18737%2014.7188%207.15859%2014.5604L6.88617%2013.0625H16.8549C17.3379%2013.0624%2017.8056%2012.8928%2018.1764%2012.5833C18.5472%2012.2738%2018.7976%2011.8439%2018.8839%2011.3687L19.9289%205.62289C19.9466%205.52358%2019.9422%205.4216%2019.9161%205.32417C19.8899%205.22674%2019.8427%205.13626%2019.7777%205.05914ZM8.9375%2017.5313C8.9375%2017.7352%208.87702%2017.9346%208.7637%2018.1042C8.65039%2018.2738%208.48933%2018.4059%208.30089%2018.484C8.11246%2018.5621%207.90511%2018.5825%207.70506%2018.5427C7.50502%2018.5029%207.32127%2018.4047%207.17705%2018.2605C7.03282%2018.1162%206.93461%2017.9325%206.89482%2017.7324C6.85502%2017.5324%206.87545%2017.325%206.9535%2017.1366C7.03155%2016.9482%207.16373%2016.7871%207.33332%2016.6738C7.50291%2016.5605%207.70229%2016.5%207.90625%2016.5C8.17976%2016.5%208.44206%2016.6087%208.63545%2016.802C8.82885%2016.9954%208.9375%2017.2577%208.9375%2017.5313ZM17.1875%2017.5313C17.1875%2017.7352%2017.127%2017.9346%2017.0137%2018.1042C16.9004%2018.2738%2016.7393%2018.4059%2016.5509%2018.484C16.3625%2018.5621%2016.1551%2018.5825%2015.9551%2018.5427C15.755%2018.5029%2015.5713%2018.4047%2015.427%2018.2605C15.2828%2018.1162%2015.1846%2017.9325%2015.1448%2017.7324C15.105%2017.5324%2015.1254%2017.325%2015.2035%2017.1366C15.2816%2016.9482%2015.4137%2016.7871%2015.5833%2016.6738C15.7529%2016.5605%2015.9523%2016.5%2016.1563%2016.5C16.4298%2016.5%2016.6921%2016.6087%2016.8855%2016.802C17.0789%2016.9954%2017.1875%2017.2577%2017.1875%2017.5313ZM17.5313%2011.1229C17.5024%2011.2817%2017.4186%2011.4254%2017.2944%2011.5286C17.1703%2011.6318%2017.0138%2011.6881%2016.8523%2011.6875H6.63609L5.63664%206.1875H18.4259L17.5313%2011.1229Z'%20fill='%2301D06F'/%3e%3c/svg%3e",slidersIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.50984%2012.6809C9.44708%2012.5866%209.36199%2012.5093%209.26214%2012.4558C9.16229%2012.4023%209.05077%2012.3743%208.93749%2012.3743C8.82422%2012.3743%208.7127%2012.4023%208.61284%2012.4558C8.51299%2012.5093%208.42791%2012.5866%208.36515%2012.6809L6.57335%2015.3699L5.7346%2014.0654C5.67235%2013.9685%205.58678%2013.8889%205.48572%2013.8337C5.38467%2013.7785%205.27138%2013.7496%205.15624%2013.7496C5.04111%2013.7496%204.92781%2013.7785%204.82676%2013.8337C4.72571%2013.8889%204.64013%2013.9685%204.57788%2014.0654L1.48413%2018.8779C1.41728%2018.9818%201.37964%2019.1017%201.37517%2019.2252C1.37071%2019.3486%201.39959%2019.471%201.45877%2019.5794C1.51795%2019.6878%201.60524%2019.7783%201.71148%2019.8413C1.81772%2019.9043%201.93897%2019.9375%202.06249%2019.9375H13.0625C13.187%2019.9376%2013.3092%2019.9039%2013.416%2019.8399C13.5228%2019.776%2013.6103%2019.6842%2013.669%2019.5745C13.7278%2019.4647%2013.7557%2019.3411%2013.7496%2019.2167C13.7436%2019.0924%2013.7039%2018.972%2013.6348%2018.8684L9.50984%2012.6809ZM3.32148%2018.5625L5.15624%2015.7085L5.98382%2016.9976C6.04554%2017.0937%206.13023%2017.1729%206.23024%2017.228C6.33024%2017.2832%206.44241%2017.3126%206.55662%2017.3135C6.67082%2017.3144%206.78346%2017.2869%206.88435%2017.2334C6.98525%2017.1799%207.07123%2017.1021%207.13452%2017.007L8.93921%2014.3026L11.7777%2018.5625H3.32148ZM18.3605%207.07609L13.548%202.26359C13.4192%202.13491%2013.2446%202.06258%2013.0625%202.0625H4.81249C4.44782%202.0625%204.09808%202.20737%203.84022%202.46523C3.58236%202.72309%203.43749%203.07283%203.43749%203.4375V11C3.43749%2011.1823%203.50993%2011.3572%203.63886%2011.4861C3.76779%2011.6151%203.94266%2011.6875%204.12499%2011.6875C4.30733%2011.6875%204.4822%2011.6151%204.61113%2011.4861C4.74006%2011.3572%204.81249%2011.1823%204.81249%2011V3.4375H12.375V7.5625C12.375%207.74484%2012.4474%207.9197%2012.5764%208.04864C12.7053%208.17757%2012.8802%208.25%2013.0625%208.25H17.1875V18.5625H16.5C16.3177%2018.5625%2016.1428%2018.6349%2016.0139%2018.7639C15.8849%2018.8928%2015.8125%2019.0677%2015.8125%2019.25C15.8125%2019.4323%2015.8849%2019.6072%2016.0139%2019.7361C16.1428%2019.8651%2016.3177%2019.9375%2016.5%2019.9375H17.1875C17.5522%2019.9375%2017.9019%2019.7926%2018.1598%2019.5348C18.4176%2019.2769%2018.5625%2018.9272%2018.5625%2018.5625V7.5625C18.5626%207.47219%2018.5448%207.38275%2018.5103%207.29929C18.4758%207.21583%2018.4252%207.13999%2018.3614%207.07609H18.3605ZM13.75%204.40945L16.2155%206.875H13.75V4.40945Z'%20fill='%2301D06F'/%3e%3c/svg%3e",supportIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3499%204.69734C16.5275%203.86665%2015.5493%203.20634%2014.4713%202.75422C13.3934%202.30209%2012.2368%202.06703%2011.0679%202.0625H11C8.62963%202.0625%206.35634%203.00413%204.68023%204.68023C3.00413%206.35634%202.0625%208.62963%202.0625%2011V15.8125C2.0625%2016.3595%202.2798%2016.8841%202.66659%2017.2709C3.05339%2017.6577%203.57799%2017.875%204.125%2017.875H5.5C6.04701%2017.875%206.57161%2017.6577%206.95841%2017.2709C7.3452%2016.8841%207.5625%2016.3595%207.5625%2015.8125V12.375C7.5625%2011.828%207.3452%2011.3034%206.95841%2010.9166C6.57161%2010.5298%206.04701%2010.3125%205.5%2010.3125H3.46844C3.60102%208.87901%204.13947%207.513%205.02066%206.37459C5.90186%205.23618%207.08929%204.37253%208.44379%203.88486C9.79829%203.39719%2011.2637%203.30572%2012.6684%203.62115C14.073%203.93659%2015.3586%204.64587%2016.3745%205.66586C17.6162%206.91393%2018.38%208.55857%2018.5324%2010.3125H16.5C15.953%2010.3125%2015.4284%2010.5298%2015.0416%2010.9166C14.6548%2011.3034%2014.4375%2011.828%2014.4375%2012.375V15.8125C14.4375%2016.3595%2014.6548%2016.8841%2015.0416%2017.2709C15.4284%2017.6577%2015.953%2017.875%2016.5%2017.875H18.5625C18.5625%2018.422%2018.3452%2018.9466%2017.9584%2019.3334C17.5716%2019.7202%2017.047%2019.9375%2016.5%2019.9375H11.6875C11.5052%2019.9375%2011.3303%2020.0099%2011.2014%2020.1389C11.0724%2020.2678%2011%2020.4427%2011%2020.625C11%2020.8073%2011.0724%2020.9822%2011.2014%2021.1111C11.3303%2021.2401%2011.5052%2021.3125%2011.6875%2021.3125H16.5C17.4117%2021.3125%2018.286%2020.9503%2018.9307%2020.3057C19.5753%2019.661%2019.9375%2018.7867%2019.9375%2017.875V11C19.942%209.83088%2019.7157%208.67237%2019.2717%207.59085C18.8277%206.50933%2018.1746%205.52604%2017.3499%204.69734ZM5.5%2011.6875C5.68234%2011.6875%205.8572%2011.7599%205.98614%2011.8889C6.11507%2012.0178%206.1875%2012.1927%206.1875%2012.375V15.8125C6.1875%2015.9948%206.11507%2016.1697%205.98614%2016.2986C5.8572%2016.4276%205.68234%2016.5%205.5%2016.5H4.125C3.94266%2016.5%203.7678%2016.4276%203.63886%2016.2986C3.50993%2016.1697%203.4375%2015.9948%203.4375%2015.8125V11.6875H5.5ZM16.5%2016.5C16.3177%2016.5%2016.1428%2016.4276%2016.0139%2016.2986C15.8849%2016.1697%2015.8125%2015.9948%2015.8125%2015.8125V12.375C15.8125%2012.1927%2015.8849%2012.0178%2016.0139%2011.8889C16.1428%2011.7599%2016.3177%2011.6875%2016.5%2011.6875H18.5625V16.5H16.5Z'%20fill='%2301D06F'/%3e%3c/svg%3e",templatesIcon="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.8125%206.1875H3.4375C3.07283%206.1875%202.72309%206.33237%202.46523%206.59023C2.20737%206.84809%202.0625%207.19783%202.0625%207.5625V17.1875C2.0625%2017.5522%202.20737%2017.9019%202.46523%2018.1598C2.72309%2018.4176%203.07283%2018.5625%203.4375%2018.5625H15.8125C16.1772%2018.5625%2016.5269%2018.4176%2016.7848%2018.1598C17.0426%2017.9019%2017.1875%2017.5522%2017.1875%2017.1875V7.5625C17.1875%207.19783%2017.0426%206.84809%2016.7848%206.59023C16.5269%206.33237%2016.1772%206.1875%2015.8125%206.1875ZM15.8125%2017.1875H3.4375V7.5625H15.8125V17.1875ZM19.9375%204.8125V15.125C19.9375%2015.3073%2019.8651%2015.4822%2019.7361%2015.6111C19.6072%2015.7401%2019.4323%2015.8125%2019.25%2015.8125C19.0677%2015.8125%2018.8928%2015.7401%2018.7639%2015.6111C18.6349%2015.4822%2018.5625%2015.3073%2018.5625%2015.125V4.8125H5.5C5.31766%204.8125%205.1428%204.74007%205.01386%204.61114C4.88493%204.4822%204.8125%204.30734%204.8125%204.125C4.8125%203.94266%204.88493%203.7678%205.01386%203.63886C5.1428%203.50993%205.31766%203.4375%205.5%203.4375H18.5625C18.9272%203.4375%2019.2769%203.58237%2019.5348%203.84023C19.7926%204.09809%2019.9375%204.44783%2019.9375%204.8125Z'%20fill='%2301D06F'/%3e%3c/svg%3e",defaultColors$k={title:"#FFFFFF",content:"#FFFFFF",icon:{background:"#070707",color:"#FFFFFF"}},colors$k={dark:defaultColors$k},defaultSizing$k={title:{fontSize:"38px",fontWeight:"bold"},content:{fontSize:"17px",fontWeight:"400"}},sizes$k={default:defaultSizing$k},scheme$f=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$k,sizes:sizes$k},Symbol.toStringTag,{value:"Module"})),axios$1=Axios.create({headers:{"X-DEPICTER-CSRF":browserEnv.csrfToken}}),getPlans=(ea="15760")=>({url:"https://api.my.depicter.com/mx/v1/plans",method:"get",params:{product:ea}}),defaultPricing={originalPrice:49,discountedPrice:39,currencySymbol:"$",period:"year",hasDiscount:!0,discountPercent:20,discountAmount:10},usePricing=(ea="15760")=>{const[na,ra]=reactExports.useState(defaultPricing);return reactExports.useEffect(()=>{axios$1.request(getPlans(ea)).then(oa=>{const aa=oa.data[ea];if(aa){const sa=aa.price,la=aa.priceTotalDiscounted||aa.priceCouponDiscounted||aa.salePrice||aa.price,ca=la<sa,ua=ca?aa.saleDiscountPercent||aa.couponDiscountPercent||0:void 0,da=ca?aa.totalDiscount||aa.saleDiscountAmount||aa.couponDiscountAmount||0:void 0;ra({originalPrice:sa,discountedPrice:la,currencySymbol:aa.currencySymbol||"$",period:aa.period||"year",hasDiscount:ca,discountPercent:ua,discountAmount:da})}}).catch(()=>{ra(defaultPricing)})},[ea]),na},Container$e=dt$1.div.withConfig({displayName:"UpgradePro__Container",componentId:"sc-hec18e-0"})([""]),Content$5=dt$1.div.withConfig({displayName:"UpgradePro__Content",componentId:"sc-hec18e-1"})([""]),ButtonsContainer$1=dt$1.div.withConfig({displayName:"UpgradePro__ButtonsContainer",componentId:"sc-hec18e-2"})([""]),Title$e=dt$1(Label$6).withConfig({displayName:"UpgradePro__Title",componentId:"sc-hec18e-3"})([""]),Desc$3=dt$1(Label$6).withConfig({displayName:"UpgradePro__Desc",componentId:"sc-hec18e-4"})([""]),SectionTitle=dt$1(Label$6).withConfig({displayName:"UpgradePro__SectionTitle",componentId:"sc-hec18e-5"})([""]),List=dt$1.div.withConfig({displayName:"UpgradePro__List",componentId:"sc-hec18e-6"})([""]),ListItem=dt$1(LabelWithIcon$1).withConfig({displayName:"UpgradePro__ListItem",componentId:"sc-hec18e-7"})([""]),UpgradeProModal=({className:ea,onUpgradeClick:na})=>{const{t:ra}=useTranslation(),{activeModal:{options:oa}}=useModal(),aa=usePricing(),sa=aa.hasDiscount?`${aa.currencySymbol}${aa.discountedPrice}/${aa.period}`:`${aa.currencySymbol}${aa.originalPrice}/${aa.period}`;return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(Container$e,{children:[jsxRuntimeExports.jsxs(Content$5,{children:[jsxRuntimeExports.jsx(Title$e,{children:ra("Unlock Unlimited Creativity")}),jsxRuntimeExports.jsx(Desc$3,{children:ra("Upgrade to Depicter Pro and access powerful tools to boost engagement, conversions, and design freedom.")}),jsxRuntimeExports.jsx(SectionTitle,{children:ra("Why Go Pro?")}),jsxRuntimeExports.jsxs(List,{children:[jsxRuntimeExports.jsx(ListItem,{icon:aiIcon,iconLocation:"before",children:ra("AI Builders: AI Slider & AI Popup creation")}),jsxRuntimeExports.jsx(ListItem,{icon:templatesIcon,iconLocation:"before",children:ra("Pro Templates: 1,000+ premium templates")}),jsxRuntimeExports.jsx(ListItem,{icon:parallaxIcon,iconLocation:"before",children:ra("Carousels, Survey, and more")}),jsxRuntimeExports.jsx(ListItem,{icon:slidersIcon,iconLocation:"before",children:ra("Videos and Pro elements")}),jsxRuntimeExports.jsx(ListItem,{icon:shopIcon,iconLocation:"before",children:ra("Woocommerce")}),jsxRuntimeExports.jsx(ListItem,{icon:audienceIcon,iconLocation:"before",children:ra("Advanced visitor targeting")}),jsxRuntimeExports.jsx(ListItem,{icon:animationIcon,iconLocation:"before",children:ra("Integrations")}),jsxRuntimeExports.jsx(ListItem,{icon:supportIcon,iconLocation:"before",children:ra("7/24 Premium support")})]})]}),jsxRuntimeExports.jsxs(ButtonsContainer$1,{children:[jsxRuntimeExports.jsxs(UpgradeButton$1,{href:getPurchaseLink(oa),size:"large",target:"_self",onClick:na,children:[ra("Upgrade Now — From")," ",sa]}),jsxRuntimeExports.jsx(OutlineButton$1,{href:getActivationLink(oa),target:"_self",size:"large",children:ra("I have a subscription")})]})]}),jsxRuntimeExports.jsx(ImageBox$1,{width:"1080px",height:"710px",fitMode:"cover",src:bgImage})]})},theme$s=withTheme(scheme$f),UpgradeProModal$1=dt$1(UpgradeProModal).withConfig({displayName:"UpgradePro",componentId:"sc-hec18e-8"})(["width:1080px;display:flex;line-height:1.5;","{position:absolute;z-index:1;width:483px;top:0;bottom:0;left:0;padding:36px;flex:auto;display:flex;flex-direction:column;justify-content:space-between;background-color:rgba(0,0,0,0.08);backdrop-filter:blur(84px);box-shadow:0 4px 24px 0 rgba(0,0,0,0.25);}","{flex-shrink:0;}","{margin-bottom:15px;}","{margin-bottom:20px;}","{margin-top:20px;margin-bottom:10px;}","{margin-top:0;display:flex;flex-direction:column;gap:5px;}",",","{width:100%;border-width:3px !important;}","{margin-bottom:10px;img{width:16px;}}"," ",""],Container$e,ImageBox$1,Title$e,Desc$3,SectionTitle,List,UpgradeButton$1,OutlineButton$1,UpgradeButton$1,theme$s.colors(ea=>lt$1(["","{color:",";}",",",",","{color:",";}"],Label$6,ea.title,Desc$3,SectionTitle,ListItem,ea.content)),theme$s.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}",",",",","{font-size:",";font-weight:",";}"],Label$6,ea.title.fontSize,ea.title.fontWeight,Desc$3,SectionTitle,ListItem,ea.content.fontSize,ea.content.fontWeight))),defaultColors$j={title:"#FFF",desc:"#FFF"},colors$j={dark:defaultColors$j},defaultSizing$j={size:{width:"340px",height:"330px"},title:{fontSize:"25px",fontWeight:"bold",lineHeight:"34px"},desc:{fontSize:"12px",fontWeight:"600",lineHeight:"17px"}},sizes$j={default:defaultSizing$j},schema$3=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$j,sizes:sizes$j},Symbol.toStringTag,{value:"Module"})),ActivatingIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='136'%20height='136'%20viewBox='0%200%20136%20136'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20x1='0.5'%20x2='0.5'%20y2='1'%20gradientUnits='objectBoundingBox'%3e%3cstop%20offset='0'%20stop-color='%23ef0'/%3e%3cstop%20offset='1'%20stop-color='%23ffd500'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='Group_1595'%20data-name='Group%201595'%20transform='translate(-899%20-373)'%3e%3ccircle%20id='Ellipse_82'%20data-name='Ellipse%2082'%20cx='68'%20cy='68'%20r='68'%20transform='translate(899%20373)'%20opacity='0.1'/%3e%3ccircle%20id='Ellipse_82-2'%20data-name='Ellipse%2082'%20cx='54'%20cy='54'%20r='54'%20transform='translate(913%20387)'%20opacity='0.3'/%3e%3ccircle%20id='Ellipse_82-3'%20data-name='Ellipse%2082'%20cx='39'%20cy='39'%20r='39'%20transform='translate(928%20402)'/%3e%3cg%20id='logo'%20transform='translate(941.218%20418.57)'%3e%3cpath%20id='Rectangle_779'%20data-name='Rectangle%20779'%20d='M553.717,188.133,566.9,174.954h0l22.386,22.386h0l-22.474,22.474h0l-13.091-13.092A13.144,13.144,0,0,1,553.717,188.133Z'%20transform='translate(-537.718%20-174.954)'%20fill='%23265fff'/%3e%3cpath%20id='Rectangle_780'%20data-name='Rectangle%20780'%20d='M477.83,181.682l6.728-6.728h0l22.386,22.386h0L484.47,219.814h0l-6.64-6.64A22.268,22.268,0,0,1,477.83,181.682Z'%20transform='translate(-471.308%20-174.954)'%20fill='%23ffd300'/%3e%3cpath%20id='Intersection_22'%20data-name='Intersection%2022'%20d='M553.26,250.145a12.99,12.99,0,0,1,0-18.37h0l5.325-5.325,14.422,14.422-14.51,14.51Z'%20transform='translate(-537.37%20-218.486)'%20fill='%23ffe980'/%3e%3c/g%3e%3cg%20id='Rectangle_5909'%20data-name='Rectangle%205909'%20transform='translate(943%20473)'%20fill='rgba(180,102,44,0.25)'%20stroke='%23e5bb4f'%20stroke-width='1'%3e%3crect%20width='48'%20height='20'%20rx='8'%20stroke='none'/%3e%3crect%20x='0.5'%20y='0.5'%20width='47'%20height='19'%20rx='7.5'%20fill='none'/%3e%3c/g%3e%3cpath%20id='Headline_4'%20data-name='Headline%204'%20d='M.392,0V-.242L1.219-.3V-7.369L.392-7.423v-.242H3.309A4.477,4.477,0,0,1,4.4-7.538a3.083,3.083,0,0,1,.905.381,1.794,1.794,0,0,1,.631.682,2.059,2.059,0,0,1,.228.986,2.368,2.368,0,0,1-.175.929,2.019,2.019,0,0,1-.47.693A2.511,2.511,0,0,1,4.81-3.4a3.809,3.809,0,0,1-.881.269,5.585,5.585,0,0,1-.986.083q-.113,0-.349-.011V-.3l.827.054V0Zm2.2-3.368q.188.016.381.016,1.762,0,1.762-2.148a2.929,2.929,0,0,0-.118-.889,1.272,1.272,0,0,0-.341-.569,1.363,1.363,0,0,0-.494-.29,2,2,0,0,0-.62-.089,4.113,4.113,0,0,0-.569.043ZM6.816,0V-.242L7.643-.3V-7.369l-.827-.054v-.242H9.679a5.2,5.2,0,0,1,1.077.1,2.891,2.891,0,0,1,.859.322,1.54,1.54,0,0,1,.585.594,1.8,1.8,0,0,1,.207.884,1.758,1.758,0,0,1-.618,1.431,3.291,3.291,0,0,1-1.67.663v.011a2.062,2.062,0,0,1,.781.145,1.46,1.46,0,0,1,.526.357,2.653,2.653,0,0,1,.373.561q.118.236.336.722t.432.862a1.811,1.811,0,0,0,.36.473.917.917,0,0,0,.317.2,1.057,1.057,0,0,0,.3.038V0h-.892A3.2,3.2,0,0,1,12-.051a1.112,1.112,0,0,1-.47-.244,1.761,1.761,0,0,1-.416-.534q-.183-.341-.623-1.426-.064-.161-.185-.416a3.112,3.112,0,0,0-.209-.387,3.419,3.419,0,0,0-.209-.277.775.775,0,0,0-.247-.207A.6.6,0,0,0,9.378-3.6q-.236,0-.36.005V-.3l.827.054V0Zm2.2-3.9q.059.005.22.005a1.674,1.674,0,0,0,1.345-.465,2.119,2.119,0,0,0,.389-1.388,2.442,2.442,0,0,0-.11-.784,1.126,1.126,0,0,0-.314-.5,1.228,1.228,0,0,0-.451-.252,1.938,1.938,0,0,0-.564-.075,3.816,3.816,0,0,0-.516.043Zm4.759.1a5.007,5.007,0,0,1,.4-2.02A3.487,3.487,0,0,1,15.343-7.3a2.956,2.956,0,0,1,1.775-.556,3.073,3.073,0,0,1,2.441,1.069,4.128,4.128,0,0,1,.927,2.8,5.923,5.923,0,0,1-.126,1.23,4.653,4.653,0,0,1-.395,1.131,3.807,3.807,0,0,1-.653.935,2.8,2.8,0,0,1-.943.636A3.1,3.1,0,0,1,17.15.188a3.027,3.027,0,0,1-2.473-1.1A4.427,4.427,0,0,1,13.777-3.808Zm1.439-.118a8.005,8.005,0,0,0,.209,1.909,3.413,3.413,0,0,0,.647,1.38,1.317,1.317,0,0,0,1.045.529,1.569,1.569,0,0,0,1.415-1.047,6.374,6.374,0,0,0,.513-2.782,5.757,5.757,0,0,0-.5-2.712,1.54,1.54,0,0,0-1.394-.908,1.411,1.411,0,0,0-.594.129,1.577,1.577,0,0,0-.529.414,2.635,2.635,0,0,0-.424.7,4.657,4.657,0,0,0-.282,1.029A8.091,8.091,0,0,0,15.216-3.926Z'%20transform='translate(964%20487)'%20fill='%23fff'/%3e%3cpath%20id='gem'%20d='M-1150.983,1522.788h2.948l2.343,7.229-.02.026Zm3.81,0h2.368l-.008-.009h.042l-.008.009h2.354l-2.373,7.187-.032.042Zm5.609,0h2.948l-5.323,7.187Zm1.523-.783h-1.523l0-.009h-2.348l2.668-3,.058.065v0l2.59,2.907-.023.031Zm-7.313-3h2.349l0-.009h2.948l.023.031-2.591,2.909-.057.065Zm-2.188,3h-1.44l-.017-.023,2.6-2.917.058-.066,2.669,3h-2.363l0,.008Z'%20transform='translate(2100%20-1041)'%20fill='url(%23linear-gradient)'/%3e%3c/g%3e%3c/svg%3e",API_PATH="http://localhost:9003/mock-kit",axios=Axios.create({baseURL:API_PATH,timeout:15e3}),activation=ea=>({url:"/activation.json",method:"get",params:ea}),Title$d=dt$1(Label$6).withConfig({displayName:"ActivatingContent__Title",componentId:"sc-n8375e-0"})([""]),Desc$2=dt$1(Label$6).withConfig({displayName:"ActivatingContent__Desc",componentId:"sc-n8375e-1"})([""]),ActivatingContent=ea=>{const{className:na,onStatusChange:ra}=ea,{t:oa}=useTranslation(),{activeModal:{options:aa}}=useModal(),sa=reactExports.useCallback(async ua=>{const{data:{success:da}}=await axios.request(activation(ua));return da},[]),{token:la,domain:ca}=aa;return reactExports.useEffect(()=>{sa({domain:ca,token:la}).then(ua=>{ra(ua?"success":"failed")}).catch(()=>ra("failed"))},[sa,ca,ra,la]),jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Icon$4,{shape:ActivatingIcon}),jsxRuntimeExports.jsx(Title$d,{children:oa("Activating to Depicter Pro")}),jsxRuntimeExports.jsx(Desc$2,{children:oa("Please do not close this tab")}),jsxRuntimeExports.jsx(DotSpinner$1,{size:"medium"})]})},theme$r=withTheme(schema$3),ActivatingContent$1=dt$1(ActivatingContent).withConfig({displayName:"ActivatingContent",componentId:"sc-n8375e-2"})(["justify-content:center;display:flex;flex-flow:column wrap;align-items:center;padding:20px 75px;","{text-align:center;margin-bottom:10px;}","{text-align:center;margin-bottom:17px;}","{display:flex;margin-top:-50px;}"," ",";"],Title$d,Desc$2,Icon$4,theme$r.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$d,ea.title,Desc$2,ea.desc)),theme$r.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$d,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Desc$2,ea.desc.fontSize,ea.desc.fontWeight,ea.desc.lineHeight))),SuccessIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='87.062'%20height='72.597'%20viewBox='0%200%2087.062%2072.597'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='0.278'%20cy='0.309'%20r='0.724'%20gradientUnits='objectBoundingBox'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff14d'/%3e%3c/radialGradient%3e%3c/defs%3e%3cg%20id='Group_1598'%20data-name='Group%201598'%20transform='translate(-914%20-430)'%3e%3cpath%20id='Polygon_76'%20data-name='Polygon%2076'%20d='M6.75,0,9.079,4.421,13.5,6.75,9.079,9.079,6.75,13.5,4.421,9.079,0,6.75,4.421,4.421Z'%20transform='translate(916.25%20472.702)'%20fill='%23fffed6'/%3e%3cpath%20id='Polygon_78'%20data-name='Polygon%2078'%20d='M2.25,0l.776,1.474L4.5,2.25l-1.474.776L2.25,4.5,1.474,3.026,0,2.25l1.474-.776Z'%20transform='translate(914%20444.202)'%20fill='%23fff'/%3e%3cpath%20id='Polygon_79'%20data-name='Polygon%2079'%20d='M3.5,0,4.707,2.293,7,3.5,4.707,4.707,3.5,7,2.293,4.707,0,3.5,2.293,2.293Z'%20transform='translate(994.062%20486.202)'%20fill='%23fff'/%3e%3ccircle%20id='Ellipse_283'%20data-name='Ellipse%20283'%20cx='1'%20cy='1'%20r='1'%20transform='translate(989%20430)'%20fill='url(%23radial-gradient)'/%3e%3ccircle%20id='Ellipse_285'%20data-name='Ellipse%20285'%20cx='1'%20cy='1'%20r='1'%20transform='translate(931%20433)'%20fill='url(%23radial-gradient)'/%3e%3cg%20id='diamond'%20transform='translate(921%20430.452)'%3e%3cpath%20id='Path_1620'%20data-name='Path%201620'%20d='M40.134,17H58.061L24,61.818Z'%20transform='translate(15.061%209.512)'%20fill='%23daa633'/%3e%3cpath%20id='Path_1621'%20data-name='Path%201621'%20d='M5,26.512,22.927,5V26.512Z'%20transform='translate(0%200)'%20fill='%23fbffb1'/%3e%3cpath%20id='Path_1622'%20data-name='Path%201622'%20d='M33,5V26.512H50.927Z'%20transform='translate(22.196%200)'%20fill='%23f1cb4b'/%3e%3cpath%20id='Path_1623'%20data-name='Path%201623'%20d='M15,26.512,31.127,71.6,47.269,26.512ZM15,5H31.134L15,26.512ZM31.134,5,47.269,26.512V5Z'%20transform='translate(7.927%200)'%20fill='%23f3d346'/%3e%3cpath%20id='Path_1624'%20data-name='Path%201624'%20d='M47.269,26.512H15L31.134,5Zm0,0,8.964-3.585L65.2,26.512,56.232,30.1Z'%20transform='translate(7.927%200)'%20fill='%23edb831'/%3e%3cg%20id='Group_1593'%20data-name='Group%201593'%20transform='translate(5%2022.927)'%3e%3cpath%20id='Path_1625'%20data-name='Path%201625'%20d='M22.927,18.585H5L39.054,63.67Zm0,0L39.061,15,55.2,18.585,39.061,22.171Z'%20transform='translate(-5%20-15)'%20fill='%23fff96e'/%3e%3c/g%3e%3cpath%20id='Path_1626'%20data-name='Path%201626'%20d='M5,18.585,13.964,15l8.964,3.585-8.964,3.585Z'%20transform='translate(0%207.927)'%20fill='%23fff'/%3e%3c/g%3e%3cg%20id='diamond-2'%20data-name='diamond'%20transform='translate(920.939%20431)'%20opacity='0.12'%3e%3cpath%20id='Path_1620-2'%20data-name='Path%201620'%20d='M40.134,17H58.061L24,61.818Z'%20transform='translate(15.061%209.512)'%20fill='%23f3f63a'/%3e%3cpath%20id='Path_1621-2'%20data-name='Path%201621'%20d='M5,26.512,22.927,5V26.512Z'%20transform='translate(0%200)'%20fill='%23f3f63a'/%3e%3cpath%20id='Path_1622-2'%20data-name='Path%201622'%20d='M33,5V26.512H50.927Z'%20transform='translate(22.196%200)'%20fill='%23f3f63a'/%3e%3cpath%20id='Path_1623-2'%20data-name='Path%201623'%20d='M15,26.512,31.127,71.6,47.269,26.512ZM15,5H31.134L15,26.512ZM31.134,5,47.269,26.512V5Z'%20transform='translate(7.927%200)'%20fill='%23f3f63a'/%3e%3cpath%20id='Path_1624-2'%20data-name='Path%201624'%20d='M47.269,26.512H15L31.134,5Zm0,0,8.964-3.585L65.2,26.512,56.232,30.1Z'%20transform='translate(7.927%200)'%20fill='%23f3f63a'/%3e%3cg%20id='Group_1593-2'%20data-name='Group%201593'%20transform='translate(5%2022.927)'%3e%3cpath%20id='Path_1625-2'%20data-name='Path%201625'%20d='M22.927,18.585H5L39.054,63.67Zm0,0L39.061,15,55.2,18.585,39.061,22.171Z'%20transform='translate(-5%20-15)'%20fill='%23f3f63a'/%3e%3c/g%3e%3cpath%20id='Path_1626-2'%20data-name='Path%201626'%20d='M5,18.585,13.964,15l8.964,3.585-8.964,3.585Z'%20transform='translate(0%207.927)'%20fill='%23f3f63a'/%3e%3c/g%3e%3cpath%20id='Polygon_77'%20data-name='Polygon%2077'%20d='M5.125,0,6.893,3.357,10.25,5.125,6.893,6.893,5.125,10.25,3.357,6.893,0,5.125,3.357,3.357Z'%20transform='translate(990%20451.452)'%20fill='%23fff'/%3e%3c/g%3e%3c/svg%3e",Title$c=dt$1(Label$6).withConfig({displayName:"SuccessContent__Title",componentId:"sc-qfeh0p-0"})([""]),Desc$1=dt$1(Label$6).withConfig({displayName:"SuccessContent__Desc",componentId:"sc-qfeh0p-1"})([""]),SuccessContent=ea=>{const{className:na}=ea,{t:ra}=useTranslation(),{closeModal:oa}=useModal(),aa=reactExports.useCallback(()=>{oa("activation")},[oa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Icon$4,{shape:SuccessIcon}),jsxRuntimeExports.jsx(Title$c,{children:ra("Congratulations!")}),jsxRuntimeExports.jsx(Desc$1,{children:ra("Now you have access to all Depicter premium features.")}),jsxRuntimeExports.jsx(SolidButton,{size:"medium",onClick:aa,children:ra("Let's Start!")})]})},theme$q=withTheme(schema$3),SuccessContent$1=dt$1(SuccessContent).withConfig({displayName:"SuccessContent",componentId:"sc-qfeh0p-2"})(["justify-content:center;display:flex;flex-flow:column wrap;align-items:center;padding:20px 40px;","{text-align:center;margin-bottom:10px;}","{text-align:center;margin-bottom:17px;}","{display:flex;}"," ",";"],Title$c,Desc$1,Icon$4,theme$q.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$c,ea.title,Desc$1,ea.desc)),theme$q.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$c,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Desc$1,ea.desc.fontSize,ea.desc.fontWeight,ea.desc.lineHeight))),WarningIcon="data:image/svg+xml;base64, ",Title$b=dt$1(Label$6).withConfig({displayName:"FailedContent__Title",componentId:"sc-yc4nkp-0"})([""]),Desc=dt$1(Label$6).withConfig({displayName:"FailedContent__Desc",componentId:"sc-yc4nkp-1"})([""]),FailedContent=ea=>{const{className:na,error:ra}=ea,{t:oa}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(Icon$4,{shape:WarningIcon}),jsxRuntimeExports.jsx(Title$b,{children:oa("Oops!")}),jsxRuntimeExports.jsxs(Desc,{children:[oa("An issue has occurred while activating this website. Please try again, and if the problem remains "),jsxRuntimeExports.jsx(SimpleLink,{href:"mailto:help@depicter.com",target:"_blank",children:oa("contact us.")})]}),ra&&jsxRuntimeExports.jsx("pre",{children:ra})]})},theme$p=withTheme(schema$3),FailedContent$1=dt$1(FailedContent).withConfig({displayName:"FailedContent",componentId:"sc-yc4nkp-2"})(["justify-content:center;display:flex;flex-flow:column wrap;align-items:center;padding:20px 50px;","{text-align:center;margin-bottom:10px;}","{text-align:center;margin-bottom:17px;}","{display:flex;margin-bottom:10px;}pre{max-width:630px;white-space:normal;}"," ",";"],Title$b,Desc,Icon$4,theme$p.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$b,ea.title,Desc,ea.desc)),theme$p.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$b,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Desc,ea.desc.fontSize,ea.desc.fontWeight,ea.desc.lineHeight))),ActivationModal=ea=>{const{className:na,onActivationDone:ra}=ea,{activeModal:{id:oa,options:aa={initialStatus:"activating"}}}=useModal(),[sa,la]=reactExports.useState(aa.initialStatus);return reactExports.useEffect(()=>{sa==="success"&&oa==="activation"&&ra?.()},[sa,ra,oa]),reactExports.useEffect(()=>{sa!==aa.initialStatus&&la(aa.initialStatus)},[aa.initialStatus,sa]),jsxRuntimeExports.jsx(Modal$1,{className:na,index:"activation",escClose:sa!=="activating",clickOverlayClose:!1,closeButton:sa==="failed"?CloseButton$2:!1,children:jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:sa,children:[jsxRuntimeExports.jsx(ContentWrap$1,{index:"activating",children:jsxRuntimeExports.jsx(ActivatingContent$1,{onStatusChange:la})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"success",children:jsxRuntimeExports.jsx(SuccessContent$1,{})}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"failed",children:jsxRuntimeExports.jsx(FailedContent$1,{error:aa?.errorMessage})})]})})},theme$o=withTheme(schema$3),ActivationModal$1=dt$1(ActivationModal).withConfig({displayName:"ActivationModal",componentId:"sc-1by5dfa-0"})(["","{display:flex;align-items:center;justify-content:center;}",";"],ContentWrap$1,theme$o.sizes(ea=>lt$1(["","{min-width:",";min-height:",";}"],ContentWrap$1,ea.size.width,ea.size.height))),defaultColors$i={background:"#363636",border:"#000",backdrop:"rgba(68, 68, 68, 0.9)",closeButton:{background:"#000",icon:"#FFF",hover:{background:"#FFF",icon:"#000"}},symbolArea:"#0037D1",title:{color:"#FFFFFF"},google:{background:"#6A6A6A",color:"#FFF",hover:{background:"#7C7C7C"}},separator:"#6A6A6A",content:"#FFF"},colors$i={dark:defaultColors$i},defaultSizing$i={title:{fontSize:"26px",fontWeight:700,lineHeight:"35px"},navigator:{fontSize:"15px",fontWeight:700,lineHeight:"20px"},content:{fontSize:"12px",fontWeight:400,lineHeight:"15px"}},sizes$i={default:defaultSizing$i},scheme$e=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$i,sizes:sizes$i},Symbol.toStringTag,{value:"Module"})),SvgClose=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:13,viewBox:"0 0 13 13",fill:"none",...ea},reactExports.createElement("g",{id:"Frame",clipPath:"url(#clip0_210_562)"},reactExports.createElement("g",{id:"Group 1758"},reactExports.createElement("path",{id:"Ellipse 392",d:"M6.5 13C10.0899 13 13 10.0899 13 6.5C13 2.91015 10.0899 0 6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13Z"}),reactExports.createElement("g",{id:"small close"},reactExports.createElement("path",{id:"Rectangle 928",d:"M9.29143 10.0711L9.99854 9.36401L3.63457 3.00005L2.92747 3.70716L9.29143 10.0711Z"}),reactExports.createElement("path",{id:"Rectangle 929",d:"M10.0001 3.70711L9.29297 3L2.92901 9.36396L3.63611 10.0711L10.0001 3.70711Z"})))),reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"clip0_210_562"},reactExports.createElement("rect",{width:13,height:13})))),theme$n=withTheme(scheme$e),CloseButton=dt$1(IconButton).attrs({icon:jsxRuntimeExports.jsx(SvgClose,{})}).withConfig({displayName:"CloseButton",componentId:"sc-1getv27-0"})(["",""],theme$n.colors(ea=>lt$1(["svg > g > path{fill:",";}svg > g > g path{fill:",";}&:hover{svg > g > path{fill:",";}svg > g > g path{fill:",";}}"],ea.closeButton.background,ea.closeButton.icon,ea.closeButton.hover.background,ea.closeButton.hover.icon))),LoginSymbol="data:image/svg+xml,%3csvg%20width='400'%20height='700'%20viewBox='0%200%20400%20700'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_0_1'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='400'%20height='700'%3e%3cpath%20d='M0%209.99998C0%204.47713%204.47715%200%2010%200H400V700H9.99999C4.47714%20700%200%20695.523%200%20690V9.99998Z'%20fill='%23265FFF'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_0_1)'%3e%3cpath%20opacity='0.15'%20d='M179.232%20648.043L106%20573.237L198.816%20478.426L291.996%20573.609L219.128%20648.043C213.838%20653.447%20206.662%20656.483%20199.18%20656.483C191.698%20656.483%20184.522%20653.447%20179.232%20648.043V648.043Z'%20fill='url(%23paint0_linear_0_1)'/%3e%3cpath%20opacity='0.5'%20d='M133.899%20690.11L106.005%20661.616L198.82%20566.805L292%20661.988L264.469%20690.11C247.155%20707.797%20223.671%20717.733%20199.184%20717.733C174.698%20717.733%20151.214%20707.797%20133.899%20690.11Z'%20fill='url(%23paint1_linear_0_1)'/%3e%3c/g%3e%3cg%20clip-path='url(%23clip0_0_1)'%3e%3cpath%20d='M176.224%20286.391C175.328%20286.391%20174.434%20286.303%20173.556%20286.127C172.704%20285.957%20171.871%20285.705%20171.071%20285.374C170.283%20285.048%20169.53%20284.648%20168.821%20284.179C168.118%20283.715%20167.462%20283.185%20166.862%20282.599C166.262%20282.012%20165.72%20281.37%20165.245%20280.682C164.766%20279.989%20164.358%20279.253%20164.025%20278.482C163.685%20277.699%20163.427%20276.885%20163.253%20276.051C163.073%20275.193%20162.983%20274.319%20162.983%20273.442C162.983%20272.566%20163.073%20271.691%20163.253%20270.832C163.427%20269.999%20163.685%20269.185%20164.025%20268.402C164.357%20267.631%20164.766%20266.894%20165.245%20266.202C165.72%20265.514%20166.262%20264.872%20166.862%20264.286C167.462%20263.699%20168.118%20263.169%20168.822%20262.704C169.53%20262.236%20170.283%20261.836%20171.071%20261.511C171.871%20261.179%20172.704%20260.926%20173.556%20260.756C174.434%20260.581%20175.328%20260.492%20176.224%20260.492C177.12%20260.492%20178.014%20260.581%20178.892%20260.756C179.744%20260.926%20180.577%20261.179%20181.377%20261.511C182.165%20261.837%20182.918%20262.237%20183.626%20262.705C184.329%20263.17%20184.986%20263.699%20185.586%20264.286C186.186%20264.873%20186.727%20265.514%20187.202%20266.202C187.681%20266.895%20188.09%20267.632%20188.423%20268.402C188.762%20269.186%20189.02%20270%20189.194%20270.833C189.373%20271.692%20189.463%20272.566%20189.463%20273.443C189.463%20274.319%20189.373%20275.193%20189.194%20276.052C189.185%20276.1%20189.174%20276.147%20189.163%20276.196H180.957V276.197H169.542L169.543%20276.199L169.544%20276.202C169.727%20276.624%20169.95%20277.027%20170.212%20277.407C170.473%20277.783%20170.77%20278.134%20171.098%20278.456C171.427%20278.778%20171.786%20279.067%20172.171%20279.322C172.559%20279.578%20172.971%20279.797%20173.402%20279.976C174.295%20280.345%20175.255%20280.535%20176.224%20280.533C177.193%20280.535%20178.153%20280.345%20179.046%20279.976C179.477%20279.797%20179.889%20279.578%20180.277%20279.322C180.53%20279.155%20180.772%20278.972%20181.002%20278.775H188.293C187.985%20279.44%20187.62%20280.078%20187.202%20280.683C186.727%20281.37%20186.186%20282.012%20185.586%20282.599C184.986%20283.186%20184.329%20283.715%20183.626%20284.18C182.918%20284.648%20182.165%20285.048%20181.378%20285.374C180.577%20285.706%20179.744%20285.958%20178.892%20286.128C178.014%20286.303%20177.12%20286.391%20176.224%20286.391V286.391ZM176.224%20266.352C175.254%20266.35%20174.295%20266.54%20173.402%20266.909C172.971%20267.088%20172.559%20267.307%20172.171%20267.564C171.786%20267.817%20171.426%20268.107%20171.098%20268.428C170.77%20268.75%20170.473%20269.101%20170.212%20269.477C169.951%20269.857%20169.727%20270.261%20169.544%20270.683C169.529%20270.718%20169.511%20270.761%20169.493%20270.806H182.955C182.951%20270.796%20182.947%20270.786%20182.943%20270.776L182.937%20270.762C182.926%20270.736%20182.915%20270.709%20182.903%20270.683C182.721%20270.261%20182.497%20269.857%20182.235%20269.477C181.975%20269.101%20181.678%20268.75%20181.349%20268.428C181.021%20268.107%20180.662%20267.817%20180.277%20267.564C179.889%20267.307%20179.477%20267.088%20179.046%20266.909C178.153%20266.539%20177.193%20266.35%20176.224%20266.352V266.352Z'%20fill='white'/%3e%3cpath%20d='M192.336%20296V275.191C192.256%20274.611%20192.216%20274.027%20192.216%20273.442C192.216%20272.566%20192.306%20271.691%20192.486%20270.832C192.66%20269.999%20192.918%20269.185%20193.257%20268.402C193.59%20267.632%20193.999%20266.895%20194.478%20266.202C194.953%20265.514%20195.494%20264.873%20196.095%20264.286C196.695%20263.699%20197.351%20263.169%20198.054%20262.704C198.762%20262.236%20199.516%20261.836%20200.303%20261.51C201.104%20261.179%20201.936%20260.926%20202.788%20260.756C203.666%20260.581%20204.56%20260.492%20205.456%20260.492C206.353%20260.492%20207.247%20260.581%20208.125%20260.756C208.977%20260.926%20209.809%20261.179%20210.61%20261.51C211.397%20261.836%20212.15%20262.236%20212.859%20262.704C213.562%20263.169%20214.218%20263.699%20214.818%20264.286C215.419%20264.873%20215.96%20265.514%20216.435%20266.202C216.914%20266.895%20217.322%20267.632%20217.655%20268.402C217.994%20269.185%20218.253%20269.999%20218.427%20270.832C218.606%20271.691%20218.696%20272.566%20218.695%20273.442C218.696%20274.319%20218.606%20275.193%20218.427%20276.052C218.253%20276.885%20217.994%20277.699%20217.655%20278.482C217.322%20279.252%20216.913%20279.989%20216.435%20280.682C215.96%20281.37%20215.418%20282.012%20214.818%20282.599C214.218%20283.185%20213.562%20283.715%20212.859%20284.18C212.15%20284.648%20211.397%20285.048%20210.61%20285.374C209.809%20285.705%20208.977%20285.957%20208.125%20286.128C207.247%20286.303%20206.353%20286.391%20205.456%20286.391C204.56%20286.391%20203.666%20286.303%20202.788%20286.128C201.936%20285.957%20201.104%20285.705%20200.303%20285.374C199.616%20285.089%20198.955%20284.749%20198.327%20284.355V296H192.336ZM202.755%20266.909C202.323%20267.087%20201.911%20267.307%20201.523%20267.563C201.138%20267.818%20200.778%20268.108%20200.45%20268.429C200.121%20268.75%20199.825%20269.102%20199.565%20269.478C199.303%20269.857%20199.079%20270.261%20198.896%20270.682C198.519%20271.555%20198.325%20272.494%20198.327%20273.442C198.325%20274.39%20198.519%20275.329%20198.896%20276.202C199.079%20276.624%20199.303%20277.027%20199.565%20277.406C199.825%20277.783%20200.121%20278.134%20200.45%20278.455C200.779%20278.777%20201.138%20279.067%20201.523%20279.322C201.911%20279.578%20202.323%20279.797%20202.755%20279.975C203.647%20280.345%20204.607%20280.534%20205.576%20280.533C206.545%20280.534%20207.505%20280.345%20208.397%20279.975C208.828%20279.796%20209.241%20279.578%20209.629%20279.322C210.014%20279.067%20210.373%20278.777%20210.702%20278.455C211.03%20278.134%20211.327%20277.783%20211.587%20277.406C211.849%20277.027%20212.073%20276.623%20212.255%20276.202C212.633%20275.329%20212.827%20274.39%20212.825%20273.442C212.827%20272.494%20212.633%20271.556%20212.255%20270.682C212.073%20270.261%20211.849%20269.857%20211.587%20269.478C211.327%20269.101%20211.03%20268.75%20210.702%20268.429C210.373%20268.107%20210.014%20267.817%20209.629%20267.563C209.241%20267.307%20208.829%20267.088%20208.397%20266.909C207.505%20266.54%20206.545%20266.35%20205.576%20266.352C204.607%20266.35%20203.647%20266.54%20202.755%20266.909V266.909Z'%20fill='white'/%3e%3cpath%20d='M224.805%20258.501C226.923%20258.501%20228.639%20256.822%20228.639%20254.751C228.639%20252.68%20226.923%20251.001%20224.805%20251.001C222.688%20251.001%20220.971%20252.68%20220.971%20254.751C220.971%20256.822%20222.688%20258.501%20224.805%20258.501Z'%20fill='white'/%3e%3cpath%20d='M227.567%20260.492H221.577V286.39H227.567V260.492Z'%20fill='white'/%3e%3cpath%20d='M300.832%20286.39V269.75C300.832%20269.123%20300.897%20268.498%20301.025%20267.884C301.149%20267.288%20301.334%20266.706%20301.576%20266.147C301.815%20265.596%20302.107%20265.069%20302.449%20264.574C302.788%20264.082%20303.176%20263.623%20303.605%20263.203C304.034%20262.784%20304.503%20262.405%20305.006%20262.073C305.512%20261.738%20306.05%20261.453%20306.613%20261.219C307.186%20260.983%20307.781%20260.803%20308.39%20260.68C309.018%20260.555%20309.657%20260.492%20310.298%20260.492H317.008V266.316H309.938C309.522%20266.315%20309.109%20266.396%20308.726%20266.555C308.355%20266.708%20308.019%20266.93%20307.735%20267.208C307.451%20267.485%20307.224%20267.814%20307.068%20268.176C306.906%20268.551%20306.823%20268.955%20306.823%20269.362V286.39H300.832Z'%20fill='white'/%3e%3cpath%20d='M144.917%20286.128C144.065%20285.957%20143.233%20285.705%20142.432%20285.374C141.645%20285.048%20140.891%20284.648%20140.183%20284.18C139.48%20283.715%20138.823%20283.185%20138.223%20282.598C137.623%20282.012%20137.082%20281.37%20136.606%20280.682C136.127%20279.989%20135.719%20279.252%20135.386%20278.482C135.047%20277.699%20134.788%20276.885%20134.614%20276.052C134.435%20275.193%20134.344%20274.319%20134.345%20273.442C134.344%20272.566%20134.435%20271.691%20134.614%20270.832C134.788%20269.999%20135.047%20269.185%20135.386%20268.402C135.719%20267.632%20136.128%20266.895%20136.607%20266.202C137.082%20265.514%20137.623%20264.872%20138.223%20264.286C138.823%20263.699%20139.48%20263.169%20140.183%20262.704C140.891%20262.236%20141.644%20261.836%20142.432%20261.51C143.233%20261.179%20144.065%20260.926%20144.917%20260.756C145.795%20260.581%20146.689%20260.493%20147.585%20260.493C148.481%20260.493%20149.375%20260.581%20150.253%20260.756C151.105%20260.927%20151.938%20261.179%20152.738%20261.511C153.469%20261.813%20154.17%20262.179%20154.834%20262.605V251.001H160.825V273.501H160.824C160.82%20274.358%20160.73%20275.212%20160.556%20276.052C160.381%20276.885%20160.123%20277.699%20159.784%20278.482C159.451%20279.252%20159.042%20279.989%20158.563%20280.682C158.088%20281.37%20157.547%20282.011%20156.947%20282.598C156.347%20283.185%20155.691%20283.715%20154.987%20284.18C154.279%20284.648%20153.526%20285.048%20152.738%20285.374C151.938%20285.705%20151.105%20285.957%20150.253%20286.128C149.375%20286.303%20148.481%20286.392%20147.585%20286.391C146.689%20286.392%20145.795%20286.303%20144.917%20286.128V286.128ZM144.763%20266.91C144.332%20267.088%20143.92%20267.307%20143.532%20267.563C143.147%20267.818%20142.788%20268.107%20142.459%20268.429C142.131%20268.75%20141.834%20269.102%20141.574%20269.478C141.312%20269.858%20141.088%20270.261%20140.905%20270.683C140.528%20271.556%20140.334%20272.494%20140.336%20273.442C140.334%20274.39%20140.528%20275.329%20140.905%20276.202C141.088%20276.623%20141.312%20277.027%20141.574%20277.406C141.834%20277.783%20142.131%20278.134%20142.459%20278.455C142.788%20278.777%20143.147%20279.067%20143.532%20279.322C143.92%20279.578%20144.333%20279.796%20144.763%20279.975C145.656%20280.345%20146.616%20280.534%20147.585%20280.532C148.554%20280.534%20149.514%20280.344%20150.407%20279.975C150.838%20279.796%20151.25%20279.577%20151.638%20279.321C152.023%20279.067%20152.382%20278.777%20152.71%20278.455C153.039%20278.134%20153.335%20277.782%20153.596%20277.406C153.858%20277.026%20154.082%20276.623%20154.264%20276.201C154.642%20275.328%20154.835%20274.39%20154.833%20273.442C154.835%20272.494%20154.642%20271.555%20154.264%20270.682C154.082%20270.261%20153.858%20269.857%20153.596%20269.478C153.335%20269.101%20153.039%20268.75%20152.71%20268.428C152.382%20268.107%20152.023%20267.817%20151.638%20267.563C151.25%20267.307%20150.838%20267.088%20150.407%20266.909C149.514%20266.54%20148.554%20266.35%20147.585%20266.352C146.616%20266.351%20145.656%20266.54%20144.763%20266.91V266.91Z'%20fill='white'/%3e%3cpath%20d='M268.059%20286.39C267.418%20286.39%20266.779%20286.327%20266.151%20286.202C265.543%20286.08%20264.948%20285.899%20264.375%20285.663C263.812%20285.43%20263.273%20285.144%20262.767%20284.809C262.264%20284.477%20261.795%20284.099%20261.366%20283.679C260.937%20283.259%20260.55%20282.8%20260.21%20282.309C259.868%20281.814%20259.576%20281.287%20259.337%20280.737C259.095%20280.177%20258.911%20279.594%20258.786%20278.999C258.658%20278.385%20258.594%20277.76%20258.594%20277.133V276.196H258.593V251H264.585V260.492H270.216V266.351H264.585V270.805H264.609V277.484C264.609%20277.892%20264.692%20278.295%20264.854%20278.67C265.01%20279.032%20265.237%20279.361%20265.522%20279.639C265.806%20279.917%20266.142%20280.139%20266.512%20280.292C266.896%20280.45%20267.308%20280.532%20267.725%20280.531H270.216V286.39L268.059%20286.39Z'%20fill='white'/%3e%3cpath%20d='M99.0706%20269.828L112.756%20256.443L130.101%20273.408L112.688%20290.438L99.0706%20277.12C98.0819%20276.153%2097.5265%20274.842%2097.5265%20273.474C97.5265%20272.107%2098.0819%20270.795%2099.0706%20269.828V269.828Z'%20fill='%23265FFF'/%3e%3cpath%20d='M95.2003%20261.543L100.413%20256.444L117.758%20273.409L100.345%20290.439L95.2003%20285.407C91.9645%20282.243%2090.1467%20277.951%2090.1467%20273.475C90.1467%20269%2091.9645%20264.707%2095.2003%20261.543V261.543Z'%20fill='%23FFD300'/%3e%3cpath%20d='M285.603%20286.391C284.706%20286.391%20283.813%20286.303%20282.935%20286.127C282.083%20285.957%20281.25%20285.705%20280.45%20285.374C279.662%20285.048%20278.909%20284.648%20278.2%20284.179C277.497%20283.715%20276.841%20283.185%20276.241%20282.599C275.641%20282.012%20275.099%20281.37%20274.624%20280.682C274.145%20279.989%20273.736%20279.253%20273.403%20278.482C273.064%20277.699%20272.806%20276.885%20272.632%20276.051C272.452%20275.193%20272.362%20274.319%20272.362%20273.442C272.362%20272.566%20272.452%20271.691%20272.632%20270.832C272.806%20269.999%20273.064%20269.185%20273.403%20268.402C273.736%20267.631%20274.145%20266.894%20274.624%20266.202C275.099%20265.514%20275.641%20264.872%20276.241%20264.286C276.841%20263.699%20277.497%20263.169%20278.201%20262.704C278.909%20262.236%20279.662%20261.836%20280.45%20261.511C281.25%20261.179%20282.083%20260.926%20282.935%20260.756C283.813%20260.581%20284.707%20260.492%20285.603%20260.492C286.499%20260.492%20287.393%20260.581%20288.271%20260.756C289.123%20260.926%20289.956%20261.179%20290.756%20261.511C291.544%20261.837%20292.297%20262.237%20293.005%20262.705C293.708%20263.17%20294.365%20263.699%20294.965%20264.286C295.565%20264.873%20296.106%20265.514%20296.581%20266.202C297.06%20266.895%20297.469%20267.632%20297.802%20268.402C298.14%20269.186%20298.399%20270%20298.573%20270.833C298.752%20271.692%20298.842%20272.566%20298.842%20273.443C298.842%20274.319%20298.752%20275.193%20298.573%20276.052C298.564%20276.1%20298.553%20276.147%20298.542%20276.196H290.336V276.197H278.921L278.922%20276.199L278.923%20276.202C279.106%20276.624%20279.329%20277.027%20279.591%20277.407C279.852%20277.783%20280.149%20278.134%20280.477%20278.456C280.806%20278.778%20281.165%20279.067%20281.55%20279.322C281.938%20279.578%20282.35%20279.797%20282.781%20279.976C283.674%20280.345%20284.634%20280.535%20285.603%20280.533C286.572%20280.535%20287.532%20280.345%20288.425%20279.976C288.856%20279.797%20289.268%20279.578%20289.656%20279.322C289.909%20279.155%20290.151%20278.972%20290.381%20278.775H297.671C297.364%20279.44%20296.999%20280.078%20296.581%20280.683C296.106%20281.37%20295.565%20282.012%20294.965%20282.599C294.365%20283.186%20293.708%20283.715%20293.005%20284.18C292.297%20284.648%20291.544%20285.048%20290.756%20285.374C289.956%20285.706%20289.123%20285.958%20288.271%20286.128C287.393%20286.303%20286.499%20286.391%20285.603%20286.391V286.391ZM285.603%20266.352C284.633%20266.35%20283.674%20266.54%20282.781%20266.909C282.35%20267.088%20281.938%20267.307%20281.55%20267.564C281.165%20267.817%20280.805%20268.107%20280.477%20268.428C280.149%20268.75%20279.852%20269.101%20279.591%20269.477C279.33%20269.857%20279.106%20270.261%20278.923%20270.683C278.908%20270.718%20278.89%20270.761%20278.872%20270.806H292.334C292.33%20270.796%20292.326%20270.786%20292.322%20270.776L292.316%20270.762C292.305%20270.736%20292.294%20270.709%20292.282%20270.683C292.099%20270.261%20291.876%20269.857%20291.614%20269.477C291.354%20269.101%20291.057%20268.75%20290.728%20268.428C290.4%20268.107%20290.041%20267.817%20289.656%20267.564C289.268%20267.307%20288.856%20267.088%20288.425%20266.909C287.532%20266.539%20286.572%20266.35%20285.603%20266.352V266.352Z'%20fill='white'/%3e%3cpath%20d='M244.091%20286.39C243.195%20286.391%20242.301%20286.302%20241.423%20286.127C240.571%20285.956%20239.738%20285.704%20238.937%20285.373C238.15%20285.047%20237.397%20284.647%20236.689%20284.179C235.986%20283.714%20235.329%20283.184%20234.729%20282.597C234.129%20282.01%20233.587%20281.369%20233.112%20280.681C232.633%20279.988%20232.225%20279.252%20231.892%20278.481C231.553%20277.698%20231.295%20276.884%20231.12%20276.05C230.941%20275.192%20230.851%20274.318%20230.851%20273.441C230.851%20272.565%20230.941%20271.691%20231.12%20270.832C231.295%20269.998%20231.553%20269.184%20231.892%20268.401C232.225%20267.631%20232.633%20266.894%20233.113%20266.202C233.587%20265.514%20234.129%20264.872%20234.729%20264.285C235.329%20263.698%20235.986%20263.168%20236.689%20262.703C237.397%20262.235%20238.15%20261.835%20238.937%20261.509C239.738%20261.178%20240.571%20260.926%20241.423%20260.755C242.301%20260.58%20243.195%20260.492%20244.091%20260.492C244.987%20260.492%20245.881%20260.58%20246.759%20260.756C247.611%20260.926%20248.443%20261.179%20249.245%20261.51C250.032%20261.836%20250.785%20262.236%20251.494%20262.704C252.197%20263.169%20252.853%20263.698%20253.453%20264.286C254.053%20264.872%20254.594%20265.514%20255.069%20266.202C255.388%20266.663%20255.675%20267.143%20255.931%20267.64L250.844%20270.859C250.822%20270.805%20250.797%20270.745%20250.771%20270.682C250.588%20270.261%20250.364%20269.857%20250.102%20269.478C249.842%20269.101%20249.546%20268.75%20249.217%20268.429C248.888%20268.107%20248.529%20267.817%20248.144%20267.563C247.756%20267.306%20247.344%20267.087%20246.913%20266.909C246.02%20266.54%20245.06%20266.35%20244.091%20266.352C243.122%20266.35%20242.162%20266.539%20241.27%20266.909C240.838%20267.087%20240.426%20267.306%20240.038%20267.562C239.653%20267.817%20239.294%20268.107%20238.965%20268.428C238.637%20268.75%20238.34%20269.101%20238.08%20269.477C237.818%20269.857%20237.594%20270.26%20237.411%20270.682C237.034%20271.555%20236.84%20272.493%20236.842%20273.441C236.84%20274.389%20237.034%20275.328%20237.411%20276.201C237.594%20276.622%20237.818%20277.026%20238.08%20277.405C238.34%20277.782%20238.637%20278.133%20238.965%20278.454C239.294%20278.776%20239.653%20279.066%20240.038%20279.32C240.426%20279.577%20240.838%20279.796%20241.27%20279.974C242.162%20280.343%20243.122%20280.533%20244.091%20280.531C245.06%20280.533%20246.02%20280.343%20246.913%20279.974C247.344%20279.796%20247.756%20279.577%20248.144%20279.32C248.529%20279.066%20248.888%20278.776%20249.217%20278.454C249.546%20278.133%20249.842%20277.782%20250.102%20277.406C250.364%20277.026%20250.588%20276.622%20250.771%20276.201C250.778%20276.184%20250.785%20276.167%20250.792%20276.15L255.868%20279.363C255.629%20279.817%20255.362%20280.257%20255.069%20280.681C254.594%20281.369%20254.053%20282.011%20253.453%20282.598C252.853%20283.185%20252.197%20283.714%20251.494%20284.18C250.785%20284.647%20250.032%20285.047%20249.245%20285.373C248.443%20285.704%20247.611%20285.957%20246.759%20286.128C245.881%20286.303%20244.987%20286.391%20244.091%20286.39V286.39Z'%20fill='white'/%3e%3cpath%20d='M102.46%20280.436C101.525%20279.522%20100.784%20278.437%20100.278%20277.243C99.7719%20276.048%2099.5114%20274.768%2099.5114%20273.475C99.5114%20272.183%2099.7719%20270.903%20100.278%20269.708C100.784%20268.514%20101.525%20267.429%20102.46%20266.515L106.585%20262.479L117.76%20273.408L106.517%20284.404L102.46%20280.436Z'%20fill='%23FFE980'/%3e%3c/g%3e%3cpath%20d='M139.158%20384.154C138.654%20384.154%20138.201%20384.112%20137.8%20384.028C137.399%20383.944%20136.951%20383.832%20136.456%20383.692C136.129%20383.599%20135.91%20383.547%20135.798%20383.538L135.924%20380.948H137.058L137.366%20382.754C137.487%20382.885%20137.702%20383.001%20138.01%20383.104C138.327%20383.207%20138.687%20383.258%20139.088%20383.258C139.713%20383.258%20140.18%20383.123%20140.488%20382.852C140.805%20382.572%20140.964%20382.185%20140.964%20381.69C140.964%20381.363%20140.871%20381.083%20140.684%20380.85C140.497%20380.607%20140.241%20380.393%20139.914%20380.206C139.587%20380.01%20139.139%20379.786%20138.57%20379.534C137.795%20379.179%20137.151%20378.759%20136.638%20378.274C136.134%20377.779%20135.882%20377.112%20135.882%20376.272C135.882%20375.749%20136.017%20375.278%20136.288%20374.858C136.559%20374.429%20136.96%20374.093%20137.492%20373.85C138.033%20373.598%20138.691%20373.472%20139.466%20373.472C139.923%20373.472%20140.325%20373.505%20140.67%20373.57C141.025%20373.635%20141.407%20373.724%20141.818%20373.836C142.061%20373.901%20142.243%20373.943%20142.364%20373.962L142.28%20376.412H141.16L140.866%20374.69C140.782%20374.606%20140.614%20374.527%20140.362%20374.452C140.11%20374.368%20139.83%20374.326%20139.522%20374.326C138.962%20374.326%20138.537%20374.457%20138.248%20374.718C137.968%20374.97%20137.828%20375.311%20137.828%20375.74C137.828%20376.085%20137.931%20376.384%20138.136%20376.636C138.351%20376.888%20138.607%20377.103%20138.906%20377.28C139.205%20377.448%20139.676%20377.691%20140.32%20378.008C140.843%20378.26%20141.291%20378.507%20141.664%20378.75C142.037%20378.993%20142.359%20379.31%20142.63%20379.702C142.901%20380.085%20143.036%20380.537%20143.036%20381.06C143.036%20381.573%20142.905%20382.063%20142.644%20382.53C142.392%20382.997%20141.972%20383.384%20141.384%20383.692C140.805%20384%20140.063%20384.154%20139.158%20384.154ZM146.418%20384.126C145.83%20384.126%20145.396%20383.991%20145.116%20383.72C144.836%20383.449%20144.696%20383.02%20144.696%20382.432V377.294H143.786V376.566C143.86%20376.538%20143.996%20376.491%20144.192%20376.426C144.388%20376.351%20144.537%20376.291%20144.64%20376.244C144.798%20376.123%20144.934%20375.913%20145.046%20375.614C145.13%20375.418%20145.284%20374.933%20145.508%20374.158H146.628L146.684%20376.216H148.826V377.294H146.698V381.228C146.698%20381.751%20146.712%20382.119%20146.74%20382.334C146.768%20382.549%20146.828%20382.689%20146.922%20382.754C147.015%20382.81%20147.178%20382.838%20147.412%20382.838C147.645%20382.838%20147.888%20382.815%20148.14%20382.768C148.392%20382.712%20148.602%20382.647%20148.77%20382.572L149.036%20383.356C148.774%20383.552%20148.392%20383.729%20147.888%20383.888C147.384%20384.047%20146.894%20384.126%20146.418%20384.126ZM149.626%20381.816C149.626%20380.967%20150.051%20380.327%20150.9%20379.898C151.759%20379.469%20152.865%20379.249%20154.218%20379.24V378.918C154.218%20378.535%20154.176%20378.237%20154.092%20378.022C154.018%20377.807%20153.873%20377.649%20153.658%20377.546C153.453%20377.434%20153.15%20377.378%20152.748%20377.378C152.291%20377.378%20151.88%20377.439%20151.516%20377.56C151.152%20377.672%20150.774%20377.821%20150.382%20378.008L149.948%20377.112C150.088%20376.991%20150.322%20376.846%20150.648%20376.678C150.984%20376.51%20151.381%20376.365%20151.838%20376.244C152.296%20376.113%20152.767%20376.048%20153.252%20376.048C153.971%20376.048%20154.531%20376.141%20154.932%20376.328C155.343%20376.515%20155.637%20376.813%20155.814%20377.224C155.992%20377.635%20156.08%20378.185%20156.08%20378.876V383.16H156.836V383.944C156.65%20383.991%20156.384%20384.037%20156.038%20384.084C155.693%20384.131%20155.39%20384.154%20155.128%20384.154C154.811%20384.154%20154.596%20384.107%20154.484%20384.014C154.382%20383.921%20154.33%20383.729%20154.33%20383.44V383.062C154.078%20383.342%20153.752%20383.594%20153.35%20383.818C152.949%20384.042%20152.496%20384.154%20151.992%20384.154C151.563%20384.154%20151.166%20384.065%20150.802%20383.888C150.448%20383.701%20150.163%20383.435%20149.948%20383.09C149.734%20382.735%20149.626%20382.311%20149.626%20381.816ZM152.888%20382.992C153.084%20382.992%20153.308%20382.936%20153.56%20382.824C153.812%20382.703%20154.032%20382.558%20154.218%20382.39V380.094C153.378%20380.094%20152.748%20380.239%20152.328%20380.528C151.918%20380.808%20151.712%20381.172%20151.712%20381.62C151.712%20382.068%20151.815%20382.409%20152.02%20382.642C152.235%20382.875%20152.524%20382.992%20152.888%20382.992ZM157.71%20383.174L158.634%20383.062V377.546L157.738%20377.294V376.328L159.908%20376.034H159.95L160.3%20376.314V376.622L160.258%20377.756H160.3C160.365%20377.569%20160.519%20377.341%20160.762%20377.07C161.005%20376.79%20161.308%20376.547%20161.672%20376.342C162.045%20376.127%20162.447%20376.02%20162.876%20376.02C163.081%20376.02%20163.259%20376.048%20163.408%20376.104V378.204C163.128%20378.008%20162.787%20377.91%20162.386%20377.91C161.705%20377.91%20161.112%20378.092%20160.608%20378.456V383.048L162.232%20383.174V384H157.71V383.174ZM166.652%20384.126C166.064%20384.126%20165.63%20383.991%20165.35%20383.72C165.07%20383.449%20164.93%20383.02%20164.93%20382.432V377.294H164.02V376.566C164.095%20376.538%20164.23%20376.491%20164.426%20376.426C164.622%20376.351%20164.771%20376.291%20164.874%20376.244C165.033%20376.123%20165.168%20375.913%20165.28%20375.614C165.364%20375.418%20165.518%20374.933%20165.742%20374.158H166.862L166.918%20376.216H169.06V377.294H166.932V381.228C166.932%20381.751%20166.946%20382.119%20166.974%20382.334C167.002%20382.549%20167.063%20382.689%20167.156%20382.754C167.249%20382.81%20167.413%20382.838%20167.646%20382.838C167.879%20382.838%20168.122%20382.815%20168.374%20382.768C168.626%20382.712%20168.836%20382.647%20169.004%20382.572L169.27%20383.356C169.009%20383.552%20168.626%20383.729%20168.122%20383.888C167.618%20384.047%20167.128%20384.126%20166.652%20384.126ZM176.277%20379.87L173.281%20374.648L172.483%20374.466V373.598H176.599V374.466L175.605%20374.648L177.355%20378.078L177.747%20379.044L178.153%20378.078L179.763%20374.648L178.671%20374.466V373.598H182.087V374.466L181.219%20374.634L178.433%20379.856V383.02L179.959%20383.16V384H174.793V383.16L176.277%20383.02V379.87ZM182.456%20380.122C182.456%20379.245%20182.629%20378.498%20182.974%20377.882C183.329%20377.266%20183.8%20376.804%20184.388%20376.496C184.976%20376.179%20185.616%20376.02%20186.306%20376.02C187.482%20376.02%20188.388%20376.384%20189.022%20377.112C189.666%20377.831%20189.988%20378.811%20189.988%20380.052C189.988%20380.939%20189.811%20381.695%20189.456%20382.32C189.111%20382.936%20188.644%20383.398%20188.056%20383.706C187.478%20384.005%20186.838%20384.154%20186.138%20384.154C184.972%20384.154%20184.066%20383.795%20183.422%20383.076C182.778%20382.348%20182.456%20381.363%20182.456%20380.122ZM186.25%20383.244C187.305%20383.244%20187.832%20382.227%20187.832%20380.192C187.832%20379.128%20187.706%20378.321%20187.454%20377.77C187.202%20377.21%20186.792%20376.93%20186.222%20376.93C185.14%20376.93%20184.598%20377.947%20184.598%20379.982C184.598%20381.046%20184.729%20381.858%20184.99%20382.418C185.261%20382.969%20185.681%20383.244%20186.25%20383.244ZM197.575%20384.14C197.267%20384.14%20197.043%20384.075%20196.903%20383.944C196.763%20383.813%20196.693%20383.617%20196.693%20383.356V382.978C196.441%20383.286%20196.086%20383.561%20195.629%20383.804C195.172%20384.037%20194.714%20384.154%20194.257%20384.154C193.361%20384.154%20192.722%20383.925%20192.339%20383.468C191.956%20383.001%20191.765%20382.236%20191.765%20381.172V377.224L191.065%20377.028V376.23L193.445%20376.048H193.459L193.739%20376.244V381.172C193.739%20381.853%20193.823%20382.329%20193.991%20382.6C194.159%20382.871%20194.472%20383.006%20194.929%20383.006C195.48%20383.006%20195.993%20382.791%20196.469%20382.362V377.224L195.531%20377.014V376.23L198.065%20376.048H198.093L198.429%20376.244V383.132H199.213L199.199%20383.93C199.162%20383.939%20198.989%20383.977%20198.681%20384.042C198.373%20384.107%20198.004%20384.14%20197.575%20384.14ZM200.202%20383.174L201.126%20383.062V377.546L200.23%20377.294V376.328L202.4%20376.034H202.442L202.792%20376.314V376.622L202.75%20377.756H202.792C202.858%20377.569%20203.012%20377.341%20203.254%20377.07C203.497%20376.79%20203.8%20376.547%20204.164%20376.342C204.538%20376.127%20204.939%20376.02%20205.368%20376.02C205.574%20376.02%20205.751%20376.048%20205.9%20376.104V378.204C205.62%20378.008%20205.28%20377.91%20204.878%20377.91C204.197%20377.91%20203.604%20378.092%20203.1%20378.456V383.048L204.724%20383.174V384H200.202V383.174ZM209.302%20385.904C209.676%20385.783%20210.021%20385.568%20210.338%20385.26C210.665%20384.952%20210.903%20384.565%20211.052%20384.098C211.155%20383.781%20211.23%20383.403%20211.276%20382.964C211.323%20382.516%20211.346%20381.891%20211.346%20381.088V374.662L210.086%20374.466V373.598H214.566V374.466L213.39%20374.648V380.15C213.39%20381.149%20213.376%20381.923%20213.348%20382.474C213.33%20383.015%20213.283%20383.449%20213.208%20383.776C213.012%20384.532%20212.611%20385.157%20212.004%20385.652C211.398%20386.156%20210.651%20386.483%20209.764%20386.632L209.302%20385.904ZM215.583%20380.122C215.583%20379.245%20215.756%20378.498%20216.101%20377.882C216.456%20377.266%20216.927%20376.804%20217.515%20376.496C218.103%20376.179%20218.742%20376.02%20219.433%20376.02C220.609%20376.02%20221.514%20376.384%20222.149%20377.112C222.793%20377.831%20223.115%20378.811%20223.115%20380.052C223.115%20380.939%20222.938%20381.695%20222.583%20382.32C222.238%20382.936%20221.771%20383.398%20221.183%20383.706C220.604%20384.005%20219.965%20384.154%20219.265%20384.154C218.098%20384.154%20217.193%20383.795%20216.549%20383.076C215.905%20382.348%20215.583%20381.363%20215.583%20380.122ZM219.377%20383.244C220.432%20383.244%20220.959%20382.227%20220.959%20380.192C220.959%20379.128%20220.833%20378.321%20220.581%20377.77C220.329%20377.21%20219.918%20376.93%20219.349%20376.93C218.266%20376.93%20217.725%20377.947%20217.725%20379.982C217.725%20381.046%20217.856%20381.858%20218.117%20382.418C218.388%20382.969%20218.808%20383.244%20219.377%20383.244ZM230.702%20384.14C230.394%20384.14%20230.17%20384.075%20230.03%20383.944C229.89%20383.813%20229.82%20383.617%20229.82%20383.356V382.978C229.568%20383.286%20229.213%20383.561%20228.756%20383.804C228.298%20384.037%20227.841%20384.154%20227.384%20384.154C226.488%20384.154%20225.848%20383.925%20225.466%20383.468C225.083%20383.001%20224.892%20382.236%20224.892%20381.172V377.224L224.192%20377.028V376.23L226.572%20376.048H226.586L226.866%20376.244V381.172C226.866%20381.853%20226.95%20382.329%20227.118%20382.6C227.286%20382.871%20227.598%20383.006%20228.056%20383.006C228.606%20383.006%20229.12%20382.791%20229.596%20382.362V377.224L228.658%20377.014V376.23L231.192%20376.048H231.22L231.556%20376.244V383.132H232.34L232.326%20383.93C232.288%20383.939%20232.116%20383.977%20231.808%20384.042C231.5%20384.107%20231.131%20384.14%20230.702%20384.14ZM233.329%20383.174L234.253%20383.062V377.546L233.357%20377.294V376.328L235.527%20376.034H235.569L235.919%20376.314V376.622L235.877%20377.756H235.919C235.985%20377.569%20236.139%20377.341%20236.381%20377.07C236.624%20376.79%20236.927%20376.547%20237.291%20376.342C237.665%20376.127%20238.066%20376.02%20238.495%20376.02C238.701%20376.02%20238.878%20376.048%20239.027%20376.104V378.204C238.747%20378.008%20238.407%20377.91%20238.005%20377.91C237.324%20377.91%20236.731%20378.092%20236.227%20378.456V383.048L237.851%20383.174V384H233.329V383.174ZM240.703%20377.546L239.807%20377.294V376.328L242.131%20376.034H242.173L242.523%20376.314V376.86L242.509%20377.196C242.836%20376.888%20243.26%20376.622%20243.783%20376.398C244.306%20376.174%20244.833%20376.062%20245.365%20376.062C245.934%20376.062%20246.378%20376.169%20246.695%20376.384C247.022%20376.589%20247.255%20376.916%20247.395%20377.364C247.535%20377.812%20247.605%20378.419%20247.605%20379.184V383.048L248.459%20383.16V384H244.847V383.16L245.603%20383.048V379.184C245.603%20378.699%20245.57%20378.321%20245.505%20378.05C245.44%20377.77%20245.318%20377.569%20245.141%20377.448C244.973%20377.317%20244.73%20377.252%20244.413%20377.252C243.881%20377.252%20243.312%20377.481%20242.705%20377.938V383.034L243.545%20383.16V384H239.891V383.16L240.703%20383.034V377.546ZM252.976%20384.154C251.744%20384.154%20250.825%20383.795%20250.218%20383.076C249.621%20382.348%20249.322%20381.359%20249.322%20380.108C249.322%20379.268%20249.476%20378.54%20249.784%20377.924C250.102%20377.308%20250.545%20376.837%20251.114%20376.51C251.684%20376.183%20252.342%20376.02%20253.088%20376.02C254.022%20376.02%20254.74%20376.267%20255.244%20376.762C255.748%20377.247%20256.01%20377.943%20256.028%20378.848C256.028%20379.464%20255.991%20379.921%20255.916%20380.22H251.366C251.404%20381.069%20251.604%20381.732%20251.968%20382.208C252.332%20382.675%20252.85%20382.908%20253.522%20382.908C253.886%20382.908%20254.26%20382.847%20254.642%20382.726C255.034%20382.605%20255.342%20382.46%20255.566%20382.292L255.916%20383.062C255.664%20383.333%20255.254%20383.585%20254.684%20383.818C254.124%20384.042%20253.555%20384.154%20252.976%20384.154ZM254.068%20379.38C254.087%20379.119%20254.096%20378.918%20254.096%20378.778C254.096%20377.537%20253.681%20376.916%20252.85%20376.916C252.393%20376.916%20252.038%20377.098%20251.786%20377.462C251.534%20377.826%20251.394%20378.465%20251.366%20379.38H254.068ZM258.392%20387.486C258.224%20387.486%20258.042%20387.472%20257.846%20387.444C257.659%20387.416%20257.524%20387.383%20257.44%20387.346V385.848C257.505%20385.885%20257.636%20385.923%20257.832%20385.96C258.028%20385.997%20258.205%20386.016%20258.364%20386.016C258.83%20386.016%20259.213%20385.862%20259.512%20385.554C259.82%20385.246%20260.104%20384.728%20260.366%20384H259.61L256.978%20377.21L256.348%20377.028V376.216H260.198V377.028L259.176%20377.196L260.422%20381.074L260.926%20382.726L261.36%20381.074L262.508%20377.196L261.626%20377.028V376.216H264.664V377.028L263.978%20377.196C263.464%20378.764%20262.956%20380.276%20262.452%20381.732C261.948%20383.188%20261.654%20384.005%20261.57%20384.182C261.271%20384.966%20260.986%20385.591%20260.716%20386.058C260.445%20386.525%20260.123%20386.879%20259.75%20387.122C259.376%20387.365%20258.924%20387.486%20258.392%20387.486Z'%20fill='%23F2F2F2'/%3e%3ccircle%20opacity='0.5'%20cx='199'%20cy='415'%20r='1'%20fill='white'/%3e%3ccircle%20opacity='0.5'%20cx='199'%20cy='431'%20r='1'%20fill='white'/%3e%3ccircle%20opacity='0.5'%20cx='199'%20cy='447'%20r='1'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_1'%20x1='214.5'%20y1='482.689'%20x2='211.345'%20y2='631.034'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='%23265FFF'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_1'%20x1='152.595'%20y1='708.459'%20x2='155.853'%20y2='555.249'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_0_1'%3e%3crect%20x='83'%20y='251'%20width='234'%20height='45'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",GoogleIconSrc="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18.14%209.70468C18.14%209.0665%2018.0827%208.45286%2017.9764%207.86377H9.5V11.3451H14.3436C14.135%2012.4701%2013.5009%2013.4233%2012.5477%2014.0615V16.3197H15.4564C17.1582%2014.7529%2018.14%2012.4456%2018.14%209.70468Z'%20fill='%234285F4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.49976%2018.5C11.9298%2018.5%2013.967%2017.6941%2015.4561%2016.3195L12.5475%2014.0613C11.7416%2014.6013%2010.7107%2014.9204%209.49976%2014.9204C7.15567%2014.9204%205.17158%2013.3372%204.46385%2011.21H1.45703V13.5418C2.93794%2016.4831%205.98158%2018.5%209.49976%2018.5Z'%20fill='%2334A853'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.46409%2011.2098C4.28409%2010.6698%204.18182%2010.093%204.18182%209.49983C4.18182%208.90664%204.28409%208.32983%204.46409%207.78983V5.45801H1.45727C0.847727%206.67301%200.5%208.04755%200.5%209.49983C0.5%2010.9521%200.847727%2012.3266%201.45727%2013.5416L4.46409%2011.2098Z'%20fill='%23FBBC05'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.49976%204.07955C10.8211%204.07955%2012.0075%204.53364%2012.9402%205.42545L15.5216%202.84409C13.9629%201.39182%2011.9257%200.5%209.49976%200.5C5.98158%200.5%202.93794%202.51682%201.45703%205.45818L4.46385%207.79C5.17158%205.66273%207.15567%204.07955%209.49976%204.07955Z'%20fill='%23EA4335'/%3e%3c/svg%3e",Button=dt$1(SolidButton).withConfig({displayName:"LoginButton__Button",componentId:"sc-1p1o665-0"})(["border:solid 2px #e3e3e3;background:#ffffff;color:#757575;font-weight:600;&:hover{background:#f1f1f1;color:inherit;}"]),Icon$1=dt$1.img.attrs({src:GoogleIconSrc,alt:""}).withConfig({displayName:"LoginButton__Icon",componentId:"sc-1p1o665-1"})(["margin-right:5px;"]),LoginButton=ea=>jsxRuntimeExports.jsx(Button,{icon:jsxRuntimeExports.jsx(Icon$1,{}),...ea}),LoginButton$1=dt$1(LoginButton).withConfig({displayName:"LoginButton",componentId:"sc-1p1o665-2"})([""]),OAuthGoogleLogin=ea=>{const{className:na,children:ra,onSuccess:oa,onError:aa}=ea,[sa,la]=reactExports.useState(!1),ca=useGoogleLogin({onSuccess:da=>{oa(da)},onError:da=>{la(!1),aa(da)}}),ua=reactExports.useCallback(()=>{la(!0),ca()},[ca]);return jsxRuntimeExports.jsx(LoginButton$1,{onClick:ua,loading:sa,className:na,children:ra||"Login by Google"})},OAuthGoogleLogin$1=dt$1(OAuthGoogleLogin).withConfig({displayName:"OAuthGoogleLogin",componentId:"sc-xoe6t4-0"})([""]),openGoogleLoginPopup=ea=>new Promise((na,ra)=>{const sa=window.innerWidth/2-300,la=window.innerHeight/2-600/2,ca=window.open(ea,"Google Login",`width=600,height=600,left=${sa},top=${la}`);ca||ra(new Error("Failed to open popup window"));const ua=da=>{da.source===ca&&da.data&&da.data.access_token&&(na(da.data),window.removeEventListener("message",ua))};window.addEventListener("message",ua)}),PopupGoogleLogin=ea=>{const{className:na,children:ra,onSuccess:oa,onError:aa,url:sa}=ea,[la,ca]=reactExports.useState(!1),ua=reactExports.useCallback(async()=>{try{ca(!0);const da=await openGoogleLoginPopup(sa);oa(da)}catch(da){ca(!1),da instanceof Error&&aa({error:da.message})}},[aa,oa,sa]);return jsxRuntimeExports.jsx(LoginButton$1,{onClick:ua,loading:la,className:na,children:ra||"Login by Google"})},PopupGoogleLogin$1=dt$1(PopupGoogleLogin).withConfig({displayName:"PopupGoogleLogin",componentId:"sc-137zrmi-0"})([""]),JWTGoogleLogin=ea=>{const{className:na,axios:ra=Axios,request:oa,children:aa,onLogin:sa,type:la="popup",popupUrl:ca=""}=ea,[ua,da]=reactExports.useState(""),pa=reactExports.useCallback(ga=>{const{access_token:fa}=ga;ra.request(oa(fa)).then(({data:ma})=>sa(ma,"google")).catch(ma=>da(ma.response?.data.errors?.[0]||ma.message))},[ra,sa,oa]),ha=la==="oAuth"?OAuthGoogleLogin$1:PopupGoogleLogin$1;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsx(ha,{url:ca,onError:ga=>da(ga.error),onSuccess:pa,children:aa}),!!ua&&jsxRuntimeExports.jsx(Flag$1,{type:"error",children:ua})]})},JWTGoogleLogin$1=dt$1(JWTGoogleLogin).withConfig({displayName:"JWTGoogleLogin",componentId:"sc-1ahyd61-0"})(["",",",",","{width:100%;}","{margin-top:10px;}"],OAuthGoogleLogin$1,PopupGoogleLogin$1,Flag$1,Flag$1),useAuthentication=()=>{const{setAuthenticationData:ea,...na}=reactExports.useContext(AuthenticationContext),ra=getAuthenticationAdapter(na.adapter),oa=reactExports.useContext(RequestContext),{requestConfigs:{logoutByRemote:aa}}=na,sa=(da,pa,ha)=>{ra.set(da,pa),ea(ga=>({...ga,tokenPayload:ha||o(da.idToken||da.accessToken),tokens:da,isAuthorized:!0}))},la=()=>{ra.remove(),ea(da=>({...da,tokens:void 0,tokenPayload:void 0,isAuthorized:!1}))};return{...na,setAuthenticationData:ea,setToken:sa,removeToken:la,login:(da,pa,ha)=>{const ga=o(da.idToken||da.accessToken);sa(da,pa,ga),ha?.(ga)},logout:async(da,pa)=>{if(aa)try{await oa.request(aa())}catch(ha){console.error(ha)}la(),pa?.(),da&&window.location.reload()}}},defaultColors$h={color:"#cacaca"},lightColors={color:"#cacaca"},colors$h={dark:defaultColors$h,light:lightColors},defaultSizing$h={},sizes$h={default:defaultSizing$h},scheme$d=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$h,sizes:sizes$h},Symbol.toStringTag,{value:"Module"})),ContentWrapper=dt$1.div.withConfig({displayName:"Separator__ContentWrapper",componentId:"sc-dhfwj8-0"})([""]),Separator=ea=>{const{children:na}=ea;return jsxRuntimeExports.jsx("div",{...ea,children:jsxRuntimeExports.jsx(ContentWrapper,{children:na})})},theme$m=withTheme(scheme$d),Separator$1=dt$1(Separator).withConfig({displayName:"Separator",componentId:"sc-dhfwj8-1"})(["display:flex;align-items:center;font-size:13px;line-height:16px;font-weight:600;&:before,&:after{content:'';width:100%;height:1px;}> ","{margin:0 5px;color:#cacaca;}",""],ContentWrapper,theme$m.colors(ea=>lt$1(["color:",";&:before,&:after{background:",";}"],ea.color,ea.color))),useSubmitForm=(ea,na,ra=Axios,oa)=>{const[aa,sa]=reactExports.useState(!1),[la,ca]=reactExports.useState(""),[ua,da]=reactExports.useState(!1),pa=reactExports.useCallback(ha=>{ha.preventDefault(),ha.target.checkValidity()&&(sa(!0),da(!1),ca(""),ra.request(ea(new FormData(ha.target))).then(({data:ga})=>{da(!0),na(ga,ha.target)}).catch(ga=>{ca(ga.response?.data?.errors?.[0]||ga.message)}).finally(()=>sa(!1)))},[ra,oa,ea,na]);return{loading:aa,errorMessage:la,submit:pa,succeed:ua}},Form=reactExports.forwardRef((ea,na)=>jsxRuntimeExports.jsx("form",{ref:na,...ea,noValidate:!0})),Form$1=dt$1(Form).withConfig({displayName:"Form",componentId:"sc-3w9hhm-0"})([""]),SvgLogin=ea=>reactExports.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.74946 11.3985C5.13743 11.3985 2.18213 8.83381 2.18213 5.69923C2.18213 2.56465 5.13743 0 8.74946 0C12.3615 0 15.3168 2.56465 15.3168 5.69923C15.3168 8.83381 12.3615 11.3985 8.74946 11.3985ZM8.74946 10.0575C11.5116 10.0575 13.7715 8.09626 13.7715 5.69923C13.7715 3.3022 11.5116 1.341 8.74946 1.341C5.98732 1.341 3.72738 3.3022 3.72738 5.69923C3.72738 8.09626 5.98732 10.0575 8.74946 10.0575ZM8.75 14.748C5.85265 14.748 3.14845 15.7202 1.10099 17.497L0 16.5416C2.3372 14.5301 5.44702 13.407 8.75 13.407C12.053 13.407 15.1628 14.5301 17.5 16.5416L16.399 17.497C14.3515 15.7202 11.6474 14.748 8.75 14.748Z"})),Row$1=dt$1.div.withConfig({displayName:"LoginFormInputs__Row",componentId:"sc-52ziq8-0"})([""]),LoginSubmitButton=dt$1(SolidButton).attrs({buttonType:"submit",color:"primary",corners:"round"}).withConfig({displayName:"LoginFormInputs__LoginSubmitButton",componentId:"sc-52ziq8-1"})([""]),LoginForm$2=ea=>{const{className:na,errorMessage:ra,isRemember:oa=!1,loading:aa,onRememberChange:sa,onSubmit:la,buttonSize:ca="medium",icon:ua=!0,rememberCheckbox:da=!0}=ea,{t:pa}=useTranslation();return jsxRuntimeExports.jsxs(Form$1,{className:na,onSubmit:la,children:[jsxRuntimeExports.jsxs(Row$1,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"email",children:pa("Email")}),jsxRuntimeExports.jsx(Input$2,{type:"email",validationMessage:pa("Please enter a valid email address"),required:!0,validationOn:"submit",id:"email",name:"email",autoComplete:"username"})]}),jsxRuntimeExports.jsxs(Row$1,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"password",children:pa("Password")}),jsxRuntimeExports.jsx(Input$2,{type:"password",validationMessage:pa("Please enter your password"),required:!0,validationOn:"submit",id:"password",name:"password",autoComplete:"current-password"})]}),da&&jsxRuntimeExports.jsx(Checkbox$1,{defaultValue:1,name:"remember",value:oa,round:!0,onChange:sa,children:pa("Remember password")}),jsxRuntimeExports.jsx(LoginSubmitButton,{size:ca,icon:ua?jsxRuntimeExports.jsx(SvgLogin,{}):void 0,loading:aa,children:pa("Login")}),ra&&jsxRuntimeExports.jsx(Flag$1,{type:"error",children:ra})]})},LoginFormInputs=dt$1(LoginForm$2).withConfig({displayName:"LoginFormInputs",componentId:"sc-52ziq8-2"})([""]),Row=dt$1.div.withConfig({displayName:"RegisterFormInputs__Row",componentId:"sc-a1l959-0"})([""]),RegisterButton=dt$1(SolidButton).attrs({buttonType:"submit",color:"primary",corners:"round"}).withConfig({displayName:"RegisterFormInputs__RegisterButton",componentId:"sc-a1l959-1"})([""]),RegisterForm$2=ea=>{const{className:na,errorMessage:ra,loading:oa,onSubmit:aa,icon:sa,buttonSize:la="medium"}=ea,{t:ca}=useTranslation();return jsxRuntimeExports.jsxs(Form$1,{className:na,onSubmit:aa,children:[jsxRuntimeExports.jsxs(Row,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"firstName",children:ca("First name")}),jsxRuntimeExports.jsx(Input$2,{validationMessage:ca("First name cannot be empty"),type:"text",required:!0,validationOn:"submit",size:32,name:"firstName",autoComplete:"given-name"})]}),jsxRuntimeExports.jsxs(Row,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"lastName",children:ca("Last name")}),jsxRuntimeExports.jsx(Input$2,{type:"text",required:!0,validationOn:"submit",size:32,name:"lastName",validationMessage:ca("Last name cannot be empty"),autoComplete:"family-name"})]}),jsxRuntimeExports.jsxs(Row,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"email",children:ca("Email")}),jsxRuntimeExports.jsx(Input$2,{type:"email",required:!0,validationOn:"submit",size:32,name:"email",validationMessage:ca("Email address is not valid"),autoComplete:"username"})]}),jsxRuntimeExports.jsxs(Row,{children:[jsxRuntimeExports.jsx(Label$6,{htmlFor:"password",children:ca("Password")}),jsxRuntimeExports.jsx(Input$2,{type:"password",pattern:eightCharPass,validationMessage:ca("Password should be minimum eight characters, at least one letter and one number"),required:!0,validationOn:"submit",name:"password",autoComplete:"new-password"})]}),jsxRuntimeExports.jsx(Row,{children:jsxRuntimeExports.jsx(RegisterButton,{size:la,icon:sa?jsxRuntimeExports.jsx(SvgLogin,{}):void 0,loading:oa,children:ca("Register")})}),ra&&jsxRuntimeExports.jsx(Flag$1,{type:"error",children:ra})]})},RegisterFormInputs=dt$1(RegisterForm$2).withConfig({displayName:"RegisterFormInputs",componentId:"sc-a1l959-2"})([""]),LoginForm=ea=>{const{className:na,axios:ra,onLogin:oa}=ea,{requestConfigs:{loginByRemote:aa}}=useAuthentication(),{submit:sa,errorMessage:la,loading:ca}=useSubmitForm(aa,oa,ra);return jsxRuntimeExports.jsx(LoginFormInputs,{className:na,errorMessage:la,onSubmit:sa,loading:ca,icon:!1,rememberCheckbox:!1})},theme$l=withTheme(scheme$e),LoginForm$1=dt$1(LoginForm).withConfig({displayName:"LoginForm",componentId:"sc-1l7ipw8-0"})(["display:flex;row-gap:15px;flex-direction:column;","{width:100%;border-radius:50em;}",""],SolidButton,theme$l.colors(ea=>lt$1(["label{color:",";}"],ea.content))),RegisterForm=ea=>{const{className:na,axios:ra,onLogin:oa}=ea,{requestConfigs:{registerByRemote:aa}}=useAuthentication(),{submit:sa,errorMessage:la,loading:ca}=useSubmitForm(aa,oa,ra);return jsxRuntimeExports.jsx(RegisterFormInputs,{className:na,loading:ca,onSubmit:sa,errorMessage:la,icon:!1})},theme$k=withTheme(scheme$e),RegisterForm$1=dt$1(RegisterForm).withConfig({displayName:"RegisterForm",componentId:"sc-vxxixj-0"})(["display:flex;flex-flow:row wrap;row-gap:15px;> div{&:nth-of-type(1){display:inline-block;margin-right:5px;width:calc(50% - 5px);}&:nth-of-type(2){display:inline-block;margin-left:5px;width:calc(50% - 5px);}width:100%;}","{width:100%;border-radius:40em;}",""],SolidButton,theme$k.colors(ea=>lt$1(["label{color:",";}"],ea.content))),Container$d=dt$1.div.withConfig({displayName:"Authentication__Container",componentId:"sc-1odvrgo-0"})([""]),SymbolArea=dt$1.div.withConfig({displayName:"Authentication__SymbolArea",componentId:"sc-1odvrgo-1"})([""]),ContentArea$1=dt$1.div.withConfig({displayName:"Authentication__ContentArea",componentId:"sc-1odvrgo-2"})([""]),Title$a=dt$1(Label$6).withConfig({displayName:"Authentication__Title",componentId:"sc-1odvrgo-3"})([""]),PageNavigator=dt$1.div.withConfig({displayName:"Authentication__PageNavigator",componentId:"sc-1odvrgo-4"})([""]),Content$4=dt$1.div.withConfig({displayName:"Authentication__Content",componentId:"sc-1odvrgo-5"})([""]),Authentication=ea=>{const{className:na}=ea,[ra,oa]=reactExports.useState("login"),aa=reactExports.useContext(RequestContext),{t:sa}=useTranslation(),{login:la,requestConfigs:{loginByGoogle:ca,loginByGoogleUrl:ua}}=useAuthentication(),{closeModal:da}=useModal(),pa=reactExports.useCallback(()=>{oa(ra==="register"?"login":"register")},[ra]),ha=reactExports.useCallback(fa=>{la(fa,!0,()=>da("authentication"))},[da,la]),ga=reactExports.useCallback(()=>{window.open(`${browserEnv.membersAreaLink}auth/reset-password`)},[]);return jsxRuntimeExports.jsx(Modal$1,{className:na,index:"authentication",closeButton:CloseButton,buttonsPosition:{x:"0px",y:"0px"},children:jsxRuntimeExports.jsxs(Container$d,{children:[jsxRuntimeExports.jsx(SymbolArea,{children:jsxRuntimeExports.jsx(ImageBox$1,{src:LoginSymbol,fitMode:"contain"})}),jsxRuntimeExports.jsxs(ContentArea$1,{children:[jsxRuntimeExports.jsx(Title$a,{children:sa("Login or create account for free to start using Depicter!")}),jsxRuntimeExports.jsxs(PageNavigator,{children:[jsxRuntimeExports.jsx("span",{children:sa(ra==="login"?"Don’t have account?":"Have an account?")}),jsxRuntimeExports.jsx(SimpleLink,{onClick:pa,children:sa(ra==="login"?"Create account":"Login")})]}),jsxRuntimeExports.jsx(JWTGoogleLogin$1,{axios:aa,request:ca,onLogin:ha,popupUrl:ua,children:sa("Sign in with Google")}),jsxRuntimeExports.jsx(Separator$1,{children:sa("OR")}),jsxRuntimeExports.jsxs(ContentSwitcher.Provider,{value:ra,children:[jsxRuntimeExports.jsxs(ContentWrap$1,{index:"login",children:[jsxRuntimeExports.jsx(LoginForm$1,{onLogin:ha,axios:aa}),jsxRuntimeExports.jsx(SimpleLink,{onClick:ga,inline:!0,children:sa("Reset your password")})]}),jsxRuntimeExports.jsx(ContentWrap$1,{index:"register",children:jsxRuntimeExports.jsx(RegisterForm$1,{onLogin:ha,axios:aa})})]}),jsxRuntimeExports.jsxs(Content$4,{children:[sa("By creating an account, you agree to our "),jsxRuntimeExports.jsx(SimpleLink,{inline:!0,href:"https://depicter.com/privacy-policy/",target:"_blank",children:sa("Privacy Policy")}),sa(" and receive email from us.")]})]})]})})},theme$j=withTheme(scheme$e),AuthenticationModal=dt$1(Authentication).withConfig({displayName:"Authentication",componentId:"sc-1odvrgo-6"})(["width:800px;height:615px;box-shadow:none;> div{height:100%;}","{display:flex;flex-direction:row;align-items:center;width:100%;height:100%;}","{width:50%;height:100%;","{height:100%;}}","{padding:10px 40px;flex:1;}","{margin-bottom:15px;}","{display:flex;align-items:center;margin-bottom:15px;","{padding:0;}span{display:inline-block;margin-right:5px;}}","{margin-bottom:15px;button{border:none;box-shadow:none;border-radius:9px;height:45px;}}","{margin-bottom:5px;}","{margin-top:10px;}","{margin-bottom:15px;","{padding:0;}}",";",""],Container$d,SymbolArea,ImageBox$1,ContentArea$1,Title$a,PageNavigator,SimpleLink,JWTGoogleLogin$1,Separator$1,Content$4,LoginForm$1,SimpleLink,theme$j.colors(ea=>lt$1(["background-color:",";border:1px solid ",";&::backdrop,& + .backdrop{background-color:",";}","{background:",";}","{color:",";}","{button{background-color:",";color:",";}&:hover button{background-color:",";}}","{> div{color:",";}&:before,&:after{background-color:",";}}","{color:",";}"],ea.background,ea.border,ea.backdrop,SymbolArea,ea.symbolArea,Title$a,ea.title.color,JWTGoogleLogin$1,ea.google.background,ea.google.color,ea.google.hover.background,Separator$1,ea.separator,ea.separator,Content$4,ea.content)),theme$j.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$a,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,PageNavigator,ea.navigator.fontSize,ea.navigator.fontWeight,ea.navigator.lineHeight,Content$4,ea.content.fontSize,ea.content.fontWeight,ea.content.lineHeight))),defaultColors$g={color:"#FFF"},colors$g={dark:defaultColors$g},defaultSizing$g={width:"560px",minHeight:"216px",padding:"30px",title:{fontSize:"23px",fontWeight:"700",lineHeight:"31px"},desc:{fontSize:"15px",fontWeight:"400",lineHeight:"16px"},button:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"}},sizes$g={default:defaultSizing$g},scheme$c=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$g,sizes:sizes$g},Symbol.toStringTag,{value:"Module"})),Title$9=dt$1.h3.withConfig({displayName:"NoticeModal__Title",componentId:"sc-13yfsle-0"})(["margin:0;"]),Content$3=dt$1.div.withConfig({displayName:"NoticeModal__Content",componentId:"sc-13yfsle-1"})([""]),ContentArea=dt$1.div.withConfig({displayName:"NoticeModal__ContentArea",componentId:"sc-13yfsle-2"})([""]),ButtonsContainer=dt$1.div.withConfig({displayName:"NoticeModal__ButtonsContainer",componentId:"sc-13yfsle-3"})([""]),NoticeModal=({className:ea})=>{const{activeModal:{options:na},closeModal:ra}=useModal(),{title:oa,content:aa,onAction:sa,icon:la=AlertIcon,buttons:ca=[{label:i18next.t("Close"),primary:!0,action:"close",close:!0}]}=na||{};return jsxRuntimeExports.jsx(Modal$1,{index:"notice",children:jsxRuntimeExports.jsxs("div",{className:`${ea} dp-keep-popover`,children:[la&&jsxRuntimeExports.jsx(Icon$4,{shape:la}),jsxRuntimeExports.jsxs(ContentArea,{children:[jsxRuntimeExports.jsx(Title$9,{children:oa}),jsxRuntimeExports.jsx(Content$3,{children:aa})]}),jsxRuntimeExports.jsx(ButtonsContainer,{children:ca.map(({label:ua,primary:da,action:pa,close:ha=!0})=>{const ga=da?SolidButton:OutlineButton$1;return jsxRuntimeExports.jsx(ga,{onClick:()=>{sa?.(pa),ha&&ra("notice")},size:"medium",children:ua},pa)})})]})})},theme$i=withTheme(scheme$c),NoticeModal$1=dt$1(NoticeModal).withConfig({displayName:"NoticeModal",componentId:"sc-13yfsle-4"})(["display:flex;flex-wrap:wrap;gap:20px;","{img{max-width:100%;}width:60px;}","{flex:1;display:flex;flex-direction:column;gap:10px;line-height:1.5;padding-right:20px;}","{width:100%;display:flex;column-gap:10px;flex-direction:row-reverse;}"," ",""],Icon$4,ContentArea,ButtonsContainer,theme$i.sizes(ea=>lt$1(["width:",";min-height:",";padding:",";","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";}","{font-size:",";font-weight:",";}"],ea.width,ea.minHeight,ea.padding,Title$9,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Content$3,ea.desc.fontSize,ea.desc.fontWeight,BaseButton$1,ea.button.fontSize,ea.button.fontWeight)),theme$i.colors(ea=>lt$1(["",",","{color:",";}"],Title$9,Content$3,ea.color))),DepicterProIcon="data:image/svg+xml,%3csvg%20width='108'%20height='108'%20viewBox='0%200%20108%20108'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2734_20139)'%3e%3cpath%20opacity='0.1'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M54%20108C83.8234%20108%20108%2083.8234%20108%2054C108%2024.1766%2083.8234%200%2054%200C24.1766%200%200%2024.1766%200%2054C0%2083.8234%2024.1766%20108%2054%20108Z'%20fill='black'/%3e%3cpath%20opacity='0.3'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M54%2097C77.7482%2097%2097%2077.7482%2097%2054C97%2030.2518%2077.7482%2011%2054%2011C30.2518%2011%2011%2030.2518%2011%2054C11%2077.7482%2030.2518%2097%2054%2097Z'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M54%2085C71.1208%2085%2085%2071.1208%2085%2054C85%2036.8792%2071.1208%2023%2054%2023C36.8792%2023%2023%2036.8792%2023%2054C23%2071.1208%2036.8792%2085%2054%2085Z'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M45.9917%2046.7026L56.6944%2036L74.8735%2054.1792L56.6231%2072.4297L45.9917%2061.7983C41.8231%2057.6297%2041.8231%2050.8711%2045.9917%2046.7026Z'%20fill='%23265FFF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M38.2965%2041.4636L43.7602%2036L61.9392%2054.1792L43.6889%2072.4297L38.2965%2067.0374C31.2345%2059.9754%2031.2345%2048.5256%2038.2965%2041.4636Z'%20fill='%23FFD300'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M45.9043%2061.7098C41.7848%2057.5905%2041.7844%2050.9115%2045.9038%2046.7917L45.9043%2046.7909L50.2284%2042.4668L61.9404%2054.1785L50.157%2065.962L45.9043%2061.7098Z'%20fill='%23FFE980'/%3e%3cpath%20d='M30.5%2088C30.5%2083.8579%2033.8579%2080.5%2038%2080.5H70C74.1421%2080.5%2077.5%2083.8579%2077.5%2088V92C77.5%2096.1421%2074.1421%2099.5%2070%2099.5H38C33.8579%2099.5%2030.5%2096.1421%2030.5%2092V88Z'%20fill='%23B4662C'%20fill-opacity='0.25098'%20stroke='%23E5BB4F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M51.3926%2094.0005V93.7588L52.2197%2093.7051V86.6313L51.3926%2086.5776V86.3359H54.3091C54.703%2086.3359%2055.0673%2086.378%2055.4021%2086.4622C55.7369%2086.5463%2056.0386%2086.6734%2056.3071%2086.8435C56.5757%2087.0136%2056.786%2087.241%2056.9382%2087.5256C57.0904%2087.8103%2057.1665%2088.1388%2057.1665%2088.5112C57.1665%2088.855%2057.1083%2089.1647%2056.9919%2089.4404C56.8756%2089.7162%2056.7189%2089.9471%2056.522%2090.1333C56.325%2090.3195%2056.0878%2090.4744%2055.8103%2090.5979C55.5328%2090.7214%2055.2392%2090.811%2054.9294%2090.8665C54.6197%2090.922%2054.2912%2090.9497%2053.9438%2090.9497C53.8686%2090.9497%2053.7523%2090.9461%2053.5947%2090.939V93.7051L54.4219%2093.7588V94.0005H51.3926ZM53.5957%2090.6323C53.721%2090.6431%2053.8481%2090.6484%2053.9771%2090.6484C55.1515%2090.6484%2055.7388%2089.9323%2055.7388%2088.5C55.7388%2088.1527%2055.6994%2087.8564%2055.6206%2087.6111C55.5418%2087.3658%2055.4282%2087.176%2055.2796%2087.0417C55.131%2086.9075%2054.9662%2086.8108%2054.7854%2086.7517C54.6046%2086.6926%2054.3978%2086.6631%2054.1651%2086.6631C53.9896%2086.6631%2053.7998%2086.6774%2053.5957%2086.7061L53.5957%2090.6323ZM57.8164%2094.0005V93.7588L58.6436%2093.7051V86.6313L57.8164%2086.5776V86.3359H60.6792C61.0767%2086.3359%2061.4356%2086.37%2061.7561%2086.438C62.0766%2086.506%2062.363%2086.6134%2062.6155%2086.7603C62.8679%2086.9071%2063.0631%2087.1049%2063.2009%2087.3538C63.3388%2087.6026%2063.4077%2087.8971%2063.4077%2088.2373C63.4077%2088.8496%2063.2018%2089.3267%2062.79%2089.6687C62.3783%2090.0107%2061.8214%2090.2318%2061.1196%2090.332V90.3428C61.4204%2090.3464%2061.6809%2090.3947%2061.9011%2090.4878C62.1213%2090.5809%2062.2968%2090.7%2062.4275%2090.845C62.5582%2090.99%2062.6826%2091.1771%2062.8008%2091.4063C62.8796%2091.5638%2062.9914%2091.8046%2063.1365%2092.1287C63.2815%2092.4527%2063.4256%2092.7401%2063.5688%2092.9907C63.6834%2093.1948%2063.8034%2093.3524%2063.9287%2093.4634C64.054%2093.5744%2064.1597%2093.6424%2064.2456%2093.6675C64.3315%2093.6926%2064.43%2093.7051%2064.541%2093.7051V94.0005H63.6494C63.3773%2094.0005%2063.1624%2093.9835%2063.0049%2093.9495C62.8473%2093.9154%2062.6907%2093.834%2062.5349%2093.7051C62.3791%2093.5762%2062.2404%2093.398%2062.1186%2093.1707C61.9969%2092.9433%2061.7892%2092.4679%2061.4956%2091.7446C61.4526%2091.6372%2061.3908%2091.4985%2061.3103%2091.3284C61.2297%2091.1583%2061.1599%2091.0294%2061.1008%2090.9417C61.0417%2090.8539%2060.9719%2090.7617%2060.8913%2090.665C60.8108%2090.5684%2060.7284%2090.4994%2060.6443%2090.4583C60.5601%2090.4171%2060.4715%2090.3965%2060.3784%2090.3965C60.2209%2090.3965%2060.1009%2090.3983%2060.0185%2090.4019V93.7051L60.8457%2093.7588V94.0005H57.8164ZM60.0195%2090.0947C60.0589%2090.0983%2060.1323%2090.1001%2060.2397%2090.1001C60.8771%2090.1001%2061.3256%2089.9452%2061.5852%2089.6355C61.8448%2089.3258%2061.9746%2088.863%2061.9746%2088.2471C61.9746%2087.9391%2061.9379%2087.6777%2061.8645%2087.4629C61.7911%2087.2481%2061.6864%2087.0815%2061.5503%2086.9634C61.4142%2086.8452%2061.2638%2086.7611%2061.0991%2086.7109C60.9344%2086.6608%2060.7464%2086.6357%2060.5352%2086.6357C60.3955%2086.6357%2060.2236%2086.6501%2060.0195%2086.6787V90.0947ZM64.7773%2090.1919C64.7773%2089.4543%2064.9098%2088.7811%2065.1748%2088.1724C65.4398%2087.5636%2065.8292%2087.074%2066.343%2086.7034C66.8568%2086.3328%2067.4486%2086.1475%2068.1182%2086.1475C69.1279%2086.1475%2069.9417%2086.5037%2070.5593%2087.2163C71.177%2087.9289%2071.4858%2088.8635%2071.4858%2090.02C71.4858%2090.4426%2071.4438%2090.8525%2071.3596%2091.25C71.2755%2091.6475%2071.1439%2092.0243%2070.9648%2092.3806C70.7858%2092.7369%2070.5683%2093.0484%2070.3122%2093.3152C70.0562%2093.582%2069.742%2093.7941%2069.3696%2093.9517C68.9972%2094.1092%2068.5908%2094.188%2068.1504%2094.188C67.1012%2094.188%2066.2768%2093.8228%2065.677%2093.0923C65.0772%2092.3618%2064.7773%2091.395%2064.7773%2090.1919L64.7773%2090.1919ZM66.2168%2090.0732C66.2168%2090.7786%2066.2866%2091.4151%2066.4263%2091.9827C66.5659%2092.5502%2066.7817%2093.0103%2067.0735%2093.363C67.3653%2093.7157%2067.7135%2093.8921%2068.1182%2093.8921C68.7197%2093.8921%2069.1915%2093.543%2069.5335%2092.8447C69.8754%2092.1465%2070.0464%2091.2191%2070.0464%2090.0625C70.0464%2088.8594%2069.879%2087.9552%2069.5442%2087.3501C69.2094%2086.745%2068.7448%2086.4424%2068.1504%2086.4424C67.9427%2086.4424%2067.7449%2086.4854%2067.5569%2086.5713C67.3689%2086.6572%2067.1925%2086.7951%2067.0278%2086.9849C66.8631%2087.1746%2066.7217%2087.4083%2066.6035%2087.6858C66.4854%2087.9633%2066.3914%2088.3062%2066.3215%2088.7144C66.2517%2089.1226%2066.2168%2089.5755%2066.2168%2090.0732H66.2168Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M36.0176%2088.7881H37.4576H38.9659L41.3087%2096.0168L41.2889%2096.043L36.0176%2088.7881ZM39.8262%2088.7883H42.1941L42.186%2088.7793H42.2283L42.2202%2088.7883H44.5737L42.2004%2095.9748L42.1688%2096.0171L39.8262%2088.7883ZM45.4347%2088.7881H46.9575H48.3832L43.0605%2095.9746L45.4347%2088.7881ZM46.958%2088.0051H45.4352L45.438%2087.9961H43.0898L45.7583%2085L45.8159%2085.0648L45.8165%2085.0664L48.407%2087.9736L48.3837%2088.0051L46.958%2088.0051ZM39.6445%2085.009H41.9935L41.9908%2085H43.5136H44.9392L44.9627%2085.0315L42.3715%2087.9403L42.314%2088.0051L39.6445%2085.009ZM37.4571%2088.0051H36.0171L36%2087.9825L38.5983%2085.0657L38.6567%2085L41.3253%2087.9969H38.9628L38.9655%2088.0051L37.4571%2088.0051Z'%20fill='url(%23paint0_linear_2734_20139)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2734_20139'%20x1='42.2035'%20y1='85'%20x2='42.2035'%20y2='96.043'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EEFF00'/%3e%3cstop%20offset='1'%20stop-color='%23FFD500'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_2734_20139'%3e%3crect%20width='108'%20height='108'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",UpgradeImage=""+new URL("assets/Upgrade.jpg",import.meta.url).href,defaultColors$f={title:"#FFF",content:"#FFF"},colors$f={dark:defaultColors$f},defaultSizing$f={title:{fontWeight:"700",fontSize:"25px",lineHeight:"35px"},content:{fontWeight:"400",fontSize:"15px",lineHeight:"20px"}},sizes$f={default:defaultSizing$f},scheme$b=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$f,sizes:sizes$f},Symbol.toStringTag,{value:"Module"})),Container$c=dt$1.div.withConfig({displayName:"LimitedEdit__Container",componentId:"sc-tzdf1x-0"})([""]),Title$8=dt$1.h2.withConfig({displayName:"LimitedEdit__Title",componentId:"sc-tzdf1x-1"})([""]),Content$2=dt$1.p.withConfig({displayName:"LimitedEdit__Content",componentId:"sc-tzdf1x-2"})([""]),LimitedEditModal=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsxs(Container$c,{children:[jsxRuntimeExports.jsx(ImageBox$1,{width:"108px",height:"108px",src:DepicterProIcon}),jsxRuntimeExports.jsx(Title$8,{children:na("Your Depicter Pro subscription has expired")}),jsxRuntimeExports.jsx(Content$2,{children:na("While you still have read-only access to your sliders, renew now to unlock editing and all Pro features.")}),jsxRuntimeExports.jsxs(Content$2,{children:[na("Use below code for a "),jsxRuntimeExports.jsx("b",{children:na("20% discount")})]}),jsxRuntimeExports.jsx(Input$2,{preventChange:!0,readOnly:!0,value:"RENEW20"}),jsxRuntimeExports.jsx(SolidButton,{href:"https://my.depicter.com",size:"medium",target:"_blank",children:na("Renew Now")}),jsxRuntimeExports.jsx(OutlineButton$1,{href:editorEnv.dashboardURL,target:"self",size:"medium",children:na("Return to Dashboard")})]}),jsxRuntimeExports.jsx(ImageBox$1,{width:"550px",height:"550px",fitMode:"cover",src:UpgradeImage})]})},theme$h=withTheme(scheme$b),LimitedEditModal$1=dt$1(LimitedEditModal).withConfig({displayName:"LimitedEdit",componentId:"sc-tzdf1x-3"})(["width:900px;display:flex;","{display:flex;flex:1;padding:30px;flex-direction:column;}","{margin:20px 0;}","{margin-bottom:15px;}","{font-weight:bold;margin-bottom:40px;}","{width:100%;font-weight:bold;}","{margin-top:10px;width:100%;font-weight:bold;}"," ",""],Container$c,Title$8,Content$2,Input$2,SolidButton,OutlineButton$1,theme$h.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$8,ea.title,Content$2,ea.content)),theme$h.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$8,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Content$2,ea.content.fontSize,ea.content.fontWeight,ea.content.lineHeight))),defaultColors$e={color:"#FFF"},colors$e={dark:defaultColors$e},defaultSizing$e={title:{fontSize:"23px",fontWeight:"700",lineHeight:"31px"},content:{fontSize:"15px",fontWeight:"400",lineHeight:"20px"}},sizes$e={default:defaultSizing$e},scheme$a=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$e,sizes:sizes$e},Symbol.toStringTag,{value:"Module"})),LimitedPublishImage="data:image/jpeg;base64, ",Container$b=dt$1.div.withConfig({displayName:"LimitedPublish__Container",componentId:"sc-113ic00-0"})([""]),Title$7=dt$1.h2.withConfig({displayName:"LimitedPublish__Title",componentId:"sc-113ic00-1"})([""]),Content$1=dt$1.p.withConfig({displayName:"LimitedPublish__Content",componentId:"sc-113ic00-2"})([""]),LimitedPublishModal=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"cover",src:LimitedPublishImage}),jsxRuntimeExports.jsxs(Container$b,{children:[jsxRuntimeExports.jsx(Title$7,{children:na("You’ve reached your limit (2 of 2 published)")}),jsxRuntimeExports.jsx(Content$1,{children:na("On the free plan, you can publish up to 2 projects. To publish more, you can save as draft a published project, or upgrade to PRO for unlimited publishing.")}),jsxRuntimeExports.jsx(UpgradeButton$1,{})]})]})},theme$g=withTheme(scheme$a),LimitedPublishModal$1=dt$1(LimitedPublishModal).withConfig({displayName:"LimitedPublish",componentId:"sc-113ic00-3"})(["width:385px;","{margin-top:0;margin-bottom:15px;}","{margin-top:0;margin-bottom:20px;}","{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 50px 40px 50px;}","{width:100%;}"," ",""],Title$7,Content$1,Container$b,UpgradeButton$1,theme$g.colors(ea=>lt$1(["color:",";","{color:",";}"],ea.color,Title$7,ea.color)),theme$g.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$7,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Content$1,ea.content.fontSize,ea.content.fontWeight,ea.content.lineHeight))),defaultColors$d={color:"#FFF"},colors$d={dark:defaultColors$d},defaultSizing$d={title:{fontSize:"23px",fontWeight:"700",lineHeight:"31px"},content:{fontSize:"15px",fontWeight:"400",lineHeight:"20px"}},sizes$d={default:defaultSizing$d},scheme$9=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$d,sizes:sizes$d},Symbol.toStringTag,{value:"Module"})),LimitedSections=""+new URL("assets/sections-limited.png",import.meta.url).href,Container$a=dt$1.div.withConfig({displayName:"LimitedSections__Container",componentId:"sc-5gxh52-0"})([""]),Title$6=dt$1.h2.withConfig({displayName:"LimitedSections__Title",componentId:"sc-5gxh52-1"})([""]),Content=dt$1.p.withConfig({displayName:"LimitedSections__Content",componentId:"sc-5gxh52-2"})([""]),LimitedSectionsModal=({className:ea})=>{const{t:na}=useTranslation(),{activeModal:{options:ra}}=useModal();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"cover",src:LimitedSections}),jsxRuntimeExports.jsxs(Container$a,{children:[jsxRuntimeExports.jsx(Title$6,{children:na("You’ve reached your limit ({{count}} of {{count}} {{sections}} added)",{count:ra?.count,sections:DocType.getLabel("section")})}),jsxRuntimeExports.jsx(Content,{children:na("On the free plan, you can add up to {{count}} {{sections}}. To add more, you need to upgrade to PRO for unlimited {{sections}}.",{count:ra?.count,sections:DocType.getLabel("section")})}),jsxRuntimeExports.jsx(UpgradeButton$1,{})]})]})},theme$f=withTheme(scheme$9),LimitedSectionsModal$1=dt$1(LimitedSectionsModal).withConfig({displayName:"LimitedSections",componentId:"sc-5gxh52-3"})(["width:385px;overflow:hidden;","{margin-top:0;margin-bottom:15px;}","{margin-top:0;margin-bottom:20px;}","{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 50px 40px 50px;}","{width:100%;}"," ",""],Title$6,Content,Container$a,UpgradeButton$1,theme$f.colors(ea=>lt$1(["color:",";","{color:",";}"],ea.color,Title$6,ea.color)),theme$f.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";line-height:",";}","{font-size:",";font-weight:",";line-height:",";}"],Title$6,ea.title.fontSize,ea.title.fontWeight,ea.title.lineHeight,Content,ea.content.fontSize,ea.content.fontWeight,ea.content.lineHeight))),ModalsManager=({className:ea})=>{const na=useDispatch(),ra=reactExports.useCallback(()=>{na(updateUserTier(Tiers.PRO))},[na]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Modal$1,{index:"contentCreator",children:jsxRuntimeExports.jsx(ContentCreatorModalContent$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"feedback",children:jsxRuntimeExports.jsx(FeedbackModalContent$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"subscribe",clickOverlayClose:!1,escClose:!1,closeButton:!1,children:jsxRuntimeExports.jsx(EditorSubscribeModal,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"preview",buttonsPosition:{x:"10px",y:"10px"},children:jsxRuntimeExports.jsx(PreviewModalContent,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"onboardingVideo",buttonsPosition:{x:"18px",y:"20px"},clickOverlayClose:!1,backgroundColor:"#0B0B0B",children:jsxRuntimeExports.jsx(OnboardingVideoModalContent$1,{})}),jsxRuntimeExports.jsx(CreateDocumentModal$1,{}),jsxRuntimeExports.jsx(Modal$1,{index:"sessionExpire",closeButton:!1,clickOverlayClose:!1,escClose:!1,children:jsxRuntimeExports.jsx(EditorSessionExpireModal$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"changelog",buttonsPosition:{x:"10px",y:"15px"},clickOverlayClose:!1,children:jsxRuntimeExports.jsx(ChangelogModal,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"error",clickOverlayClose:!1,buttonsPosition:{x:"10px",y:"10px"},children:jsxRuntimeExports.jsx(ErrorMessageModalContent$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"upgradePro",children:jsxRuntimeExports.jsx(UpgradeProModal$1,{onUpgradeClick:ra})}),jsxRuntimeExports.jsx(ActivationModal$1,{onActivationDone:ra}),jsxRuntimeExports.jsx(AuthenticationModal,{}),jsxRuntimeExports.jsx(NoticeModal$1,{}),jsxRuntimeExports.jsx(Modal$1,{index:"limitedEdit",escClose:!1,closeButton:!1,clickOverlayClose:!1,children:jsxRuntimeExports.jsx(LimitedEditModal$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"limitedPublish",children:jsxRuntimeExports.jsx(LimitedPublishModal$1,{})}),jsxRuntimeExports.jsx(Modal$1,{index:"limitedSections",children:jsxRuntimeExports.jsx(LimitedSectionsModal$1,{})}),jsxRuntimeExports.jsx(SettingsModal,{})]})},TrackedDataManager=()=>{const{addToModalsStack:ea}=useModal(),na=reactExports.useContext(TrackingContext),{publishCount:ra,previewCount:oa,optionsTabCount:aa,elapsedTime:sa}=na.data,la=reactExports.useCallback(()=>!editorEnv.user.joinedNewsletter&&(ra>=3&&oa>10&&aa>=2||sa>=14400),[ra,sa,oa,aa]);return reactExports.useEffect(()=>{la()&&ea([{id:"subscribe"}])},[la,ea]),null},UserTiersManager=()=>{const{setUserTier:ea}=reactExports.useContext(UserTiersContext),na=useSelector(getUserTierFromStore);return reactExports.useEffect(()=>{ea(na)},[ea,na]),null},Managers=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DataSourcesManager,{}),jsxRuntimeExports.jsx(ModalsManager,{}),jsxRuntimeExports.jsx(TrackedDataManager,{}),jsxRuntimeExports.jsx(UserTiersManager,{})]}),facebookIcon="data:image/svg+xml,%3csvg%20id='facebook'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cpath%20id='Path_1119'%20data-name='Path%201119'%20d='M20,10A10,10,0,1,0,8.438,19.884v-6.99H5.9V10H8.438V7.8a3.529,3.529,0,0,1,3.777-3.892,15.373,15.373,0,0,1,2.238.2V6.564H13.192a1.446,1.446,0,0,0-1.63,1.562V10h2.773l-.443,2.891h-2.33v6.99A10,10,0,0,0,20,10Z'%20fill='%231877f2'/%3e%3cpath%20id='Path_1120'%20data-name='Path%201120'%20d='M309.638,208.585l.424-2.762h-2.65V204.03a1.381,1.381,0,0,1,1.557-1.492h1.2v-2.351a14.694,14.694,0,0,0-2.139-.187,3.372,3.372,0,0,0-3.609,3.717v2.105H302v2.762h2.426v6.677a9.661,9.661,0,0,0,2.986,0v-6.677Z'%20transform='translate(-295.905%20-195.378)'%20fill='%23fff'/%3e%3c/svg%3e",facebookAPIHandler=()=>!1,facebookDataSource={type:"facebook",name:"Facebook",icon:facebookIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Facebook elements")},optionControls:[],defaultOptions:{},handler:facebookAPIHandler,comingSoon:!0,documentType:"slider"},instagramIcon="data:image/svg+xml,%3csvg%20id='instagram'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='0.207'%20cy='1.202'%20r='1.514'%20gradientTransform='matrix(0.644,%20-0.765,%200.506,%200.425,%20-0.534,%200.849)'%20gradientUnits='objectBoundingBox'%3e%3cstop%20offset='0.073'%20stop-color='%23eacc7b'/%3e%3cstop%20offset='0.184'%20stop-color='%23ecaa59'/%3e%3cstop%20offset='0.307'%20stop-color='%23ef802e'/%3e%3cstop%20offset='0.358'%20stop-color='%23ef6d3a'/%3e%3cstop%20offset='0.46'%20stop-color='%23f04b50'/%3e%3cstop%20offset='0.516'%20stop-color='%23f03e58'/%3e%3cstop%20offset='0.689'%20stop-color='%23db359e'/%3e%3cstop%20offset='0.724'%20stop-color='%23ce37a4'/%3e%3cstop%20offset='0.789'%20stop-color='%23ac3cb4'/%3e%3cstop%20offset='0.877'%20stop-color='%237544cf'/%3e%3cstop%20offset='0.98'%20stop-color='%232b4ff2'/%3e%3c/radialGradient%3e%3c/defs%3e%3cpath%20id='Path_1121'%20data-name='Path%201121'%20d='M24.652,31h-11.3A4.361,4.361,0,0,1,9,26.652v-11.3A4.361,4.361,0,0,1,13.348,11h11.3A4.361,4.361,0,0,1,29,15.348v11.3A4.361,4.361,0,0,1,24.652,31Z'%20transform='translate(-9%20-11)'%20fill='url(%23radial-gradient)'/%3e%3cpath%20id='Path_1122'%20data-name='Path%201122'%20d='M22.453,18.315c2.017,0,2.236,0,3.025.044a4.866,4.866,0,0,1,1.4.263,2.52,2.52,0,0,1,1.447,1.447,4.866,4.866,0,0,1,.263,1.4v2.981c0,2.017,0,2.236-.044,3.025a4.866,4.866,0,0,1-.263,1.4,2.52,2.52,0,0,1-1.447,1.447,4.866,4.866,0,0,1-1.4.263H22.453c-2.017,0-2.236,0-3.025-.044a4.866,4.866,0,0,1-1.4-.263,2.52,2.52,0,0,1-1.447-1.447,4.866,4.866,0,0,1-.263-1.4V24.453c0-2.017,0-2.236.044-3.025a4.866,4.866,0,0,1,.263-1.4,2.52,2.52,0,0,1,1.447-1.447,4.866,4.866,0,0,1,1.4-.263h2.981m0-1.315c-2.017,0-2.28,0-3.069.044a5.911,5.911,0,0,0-1.8.351,3.16,3.16,0,0,0-1.315.877,4.921,4.921,0,0,0-.877,1.315,5.911,5.911,0,0,0-.351,1.8C15,22.173,15,22.436,15,24.453s0,2.28.044,3.069a5.911,5.911,0,0,0,.351,1.8,3.16,3.16,0,0,0,.877,1.315,4.317,4.317,0,0,0,1.315.877,5.911,5.911,0,0,0,1.8.351c.789.044,1.052.044,3.069.044s2.28,0,3.069-.044a5.911,5.911,0,0,0,1.8-.351,3.16,3.16,0,0,0,1.315-.877,4.317,4.317,0,0,0,.877-1.315,5.911,5.911,0,0,0,.351-1.8c.044-.789.044-1.052.044-3.069s0-2.28-.044-3.069a5.911,5.911,0,0,0-.351-1.8,3.16,3.16,0,0,0-.877-1.315,4.921,4.921,0,0,0-1.315-.877,5.911,5.911,0,0,0-1.8-.351C24.733,17,24.47,17,22.453,17Z'%20transform='translate(-12.453%20-14.453)'%20fill='%23fff'/%3e%3cpath%20id='Path_1123'%20data-name='Path%201123'%20d='M26.821,25a3.821,3.821,0,1,0,3.821,3.821A3.8,3.8,0,0,0,26.821,25Zm0,6.368a2.547,2.547,0,1,1,2.547-2.547A2.555,2.555,0,0,1,26.821,31.368Z'%20transform='translate(-16.821%20-18.821)'%20fill='%23fff'/%3e%3cellipse%20id='Ellipse_174'%20data-name='Ellipse%20174'%20cx='0.849'%20cy='0.849'%20rx='0.849'%20ry='0.849'%20transform='translate(13.073%205.229)'%20fill='%23fff'/%3e%3c/svg%3e",instagramAPIHandler=()=>!1,instagramDataSource={type:"instagram",name:"Instagram",icon:instagramIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Instagram elements")},optionControls:[],defaultOptions:{},handler:instagramAPIHandler,comingSoon:!0,documentType:"slider"},wooProductsIcon="data:image/svg+xml,%3csvg%20id='woo'%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='12'%20viewBox='0%200%2033.609%2020.006'%3e%3cpath%20id='Path_1124'%20data-name='Path%201124'%20d='M141.118,331.2h27.357a3.131,3.131,0,0,1,3.133,3.133v10.443a3.131,3.131,0,0,1-3.133,3.133h-9.811l1.347,3.3-5.922-3.3H141.132A3.131,3.131,0,0,1,138,344.776V334.333A3.12,3.12,0,0,1,141.118,331.2Z'%20transform='translate(-137.999%20-331.2)'%20fill='%239b5c8f'%20fill-rule='evenodd'/%3e%3cpath%20id='Path_1125'%20data-name='Path%201125'%20d='M148.748,345.574a1.106,1.106,0,0,1,.866-.426,1,1,0,0,1,1.2.989q.639,4.308,1.388,7.3l3.009-5.73a1.3,1.3,0,0,1,1.031-.824c.6-.041.976.344,1.127,1.154a25.669,25.669,0,0,0,1.305,4.7,21.134,21.134,0,0,1,1.814-7.557,1.055,1.055,0,0,1,.907-.6,1.193,1.193,0,0,1,.866.275,1.076,1.076,0,0,1,.426.783,1.192,1.192,0,0,1-.137.66,16.635,16.635,0,0,0-1.333,4.96,25.584,25.584,0,0,0-.385,5.235,1.631,1.631,0,0,1-.165.907.885.885,0,0,1-.728.495,1.381,1.381,0,0,1-1.086-.508,13.6,13.6,0,0,1-3.037-5.853q-1.34,2.638-1.979,3.957c-.811,1.553-1.5,2.35-2.075,2.391-.371.028-.687-.289-.962-.948a59.529,59.529,0,0,1-2.267-10.429A1.227,1.227,0,0,1,148.748,345.574Z'%20transform='translate(-147.071%20-342.73)'%20fill='%23fff'/%3e%3cpath%20id='Path_1126'%20data-name='Path%201126'%20d='M319.741,357.076a3.164,3.164,0,0,0-2.2-1.594,3.607,3.607,0,0,0-.742-.082,3.705,3.705,0,0,0-3.229,2.061,7.281,7.281,0,0,0-1.072,3.875,5.32,5.32,0,0,0,.66,2.721,3.164,3.164,0,0,0,2.2,1.594,3.6,3.6,0,0,0,.742.082,3.674,3.674,0,0,0,3.229-2.061,7.363,7.363,0,0,0,1.072-3.889,5.2,5.2,0,0,0-.66-2.707Zm-1.731,3.806a3.635,3.635,0,0,1-1.044,2.034,1.321,1.321,0,0,1-1.113.44c-.33-.069-.6-.357-.811-.893a3.487,3.487,0,0,1-.247-1.25,4.781,4.781,0,0,1,.1-1,4.443,4.443,0,0,1,.728-1.635c.453-.673.934-.948,1.429-.852.33.069.6.357.811.893a3.488,3.488,0,0,1,.247,1.25,5.941,5.941,0,0,1-.1,1.017Z'%20transform='translate(-288.523%20-352.075)'%20fill='%23fff'/%3e%3cpath%20id='Path_1127'%20data-name='Path%201127'%20d='M257.041,357.076a3.193,3.193,0,0,0-2.2-1.594,3.607,3.607,0,0,0-.742-.082,3.705,3.705,0,0,0-3.229,2.061,7.281,7.281,0,0,0-1.072,3.875,5.32,5.32,0,0,0,.66,2.721,3.164,3.164,0,0,0,2.2,1.594,3.6,3.6,0,0,0,.742.082,3.674,3.674,0,0,0,3.229-2.061,7.362,7.362,0,0,0,1.072-3.889,5.2,5.2,0,0,0-.66-2.707Zm-1.731,3.806a3.634,3.634,0,0,1-1.044,2.034,1.321,1.321,0,0,1-1.113.44c-.33-.069-.6-.357-.811-.893a3.488,3.488,0,0,1-.247-1.25,4.777,4.777,0,0,1,.1-1,4.443,4.443,0,0,1,.728-1.635c.453-.673.934-.948,1.429-.852.33.069.6.357.811.893a3.487,3.487,0,0,1,.247,1.25,4.817,4.817,0,0,1-.1,1.017Z'%20transform='translate(-234.438%20-352.075)'%20fill='%23fff'/%3e%3c/svg%3e",wooProductsAPIHandler=(ea,na,ra=!1)=>async()=>{const{data:{hits:oa}}=await axios$5.request(ra?getCustomProducts(ea):getProducts(ea));return{hits:oa}},WPTaxonomyTerms=ea=>{const{className:na,taxonomy:ra,loading:oa,value:aa=[],onChange:sa}=ea,{t:la}=useTranslation(),ca=reactExports.useMemo(()=>[{value:"all",label:la(`All ${ra.label}`)},...ra.terms],[ra,la]),ua=reactExports.useMemo(()=>aa.length?aa:["all"],[aa]),da=reactExports.useCallback(pa=>{if(oa)return;const ga=difference(pa,ua)[0]==="all"?[]:pa.filter(fa=>fa!=="all");sa?.({[ra.id]:ga})},[ua,oa,ra,sa]);return jsxRuntimeExports.jsx(Field$1,{className:na,label:ra.label,children:jsxRuntimeExports.jsx(MultipleSelect$1,{options:ca,value:ua,loading:oa,onChange:da})})},WPTaxonomyTerms$1=dt$1(WPTaxonomyTerms).withConfig({displayName:"WPTaxonomyTerms",componentId:"sc-1ixp95q-0"})(["margin-left:0;margin-right:0;","{width:235px;}"],MultipleSelect$1),WPTaxonomyList=ea=>{const{className:na,defaultPostType:ra,excludeTaxonomies:oa=[],includeTaxonomies:aa=[],value:sa,onChange:la}=ea,[ca,ua]=reactExports.useState([]),[da,pa]=reactExports.useState(!0),ha=reactExports.useMemo(()=>sa?.postType||ra,[ra,sa?.postType]);reactExports.useEffect(()=>{let va=!1;return ha&&(pa(!0),ua([]),axios$5.request(getPostTypes({postType:ha})).then(({data:xa})=>{va||(ua(xa.hits[0].taxonomies),pa(!1))})),()=>{va=!0}},[ha]);const ga=reactExports.useMemo(()=>ca.filter(va=>oa.length?!oa.includes(va.id):!0).filter(va=>aa.length?aa.includes(va.id):!0),[ca,oa,aa]),fa=reactExports.useCallback(va=>{la?.({postType:ha,taxonomies:va})},[ha,la]),ma=reactExports.useCallback(va=>jsxRuntimeExports.jsx(WPTaxonomyTerms$1,{taxonomy:va,onChange:fa,value:sa?.taxonomies[va.id]},va.id),[sa?.taxonomies,fa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[da&&jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}),!da&&ga.map(ma)]})},WPTaxonomyList$1=dt$1(WPTaxonomyList).withConfig({displayName:"WPTaxonomyList",componentId:"sc-sgcb7d-0"})(["","{width:100%;}"],DotSpinner$1),queryOrderOptionControls=()=>[createOptionControl({id:"queryOrderBy",control:Select$1,label:i18next.t("Order by"),controlProps:{options:[{value:"none",label:i18next.t("None")},{value:"date",label:i18next.t("Date")},{value:"name",label:i18next.t("Name")},{value:"ID",label:i18next.t("ID")}]},selector:getActiveSectionDataSourceByPath("params.orderBy"),action:updateActiveSectionDataSource("params.orderBy")}),createOptionControl({id:"queryOrder",control:Select$1,label:i18next.t("Order direction"),controlProps:{options:[{value:"ASC",label:i18next.t("Ascending")},{value:"DESC",label:i18next.t("Descending")}]},selector:getActiveSectionDataSourceByPath("params.order"),action:updateActiveSectionDataSource("params.order")})],linkSectionsOptionControl=(ea="post")=>[createOptionControl({id:"queryLinkSections",control:SwitchBox$1,controlProps:{label:i18next.t("Link {{sections}} to each {{label}}",{label:ea,sections:DocType.getLabel("sections")})},selector:getActiveSectionDataSourceByPath("params.linkSlides"),action:updateActiveSectionDataSource("params.linkSlides")})],queryExcludeAndInclude=ea=>[[createOptionControl({id:"queryExcludedIds",label:i18next.t("Exclude {{label}} Ids",{label:ea}),control:Input$2,controlProps:{variant:"small",onBlurChange:!0,placeholder:i18next.t("{{label}} IDs separated by comma",{label:ea})},defaultValue:"",valueFilter:na=>na.join(","),onChangeValueFilter:(na="")=>na.split(",").filter(ra=>ra),selector:getActiveSectionDataSourceByPath("params.excludedIds"),action:updateActiveSectionDataSource("params.excludedIds")})],[createOptionControl({id:"queryIncludedIds",label:i18next.t("Include {{label}} Id",{label:ea}),control:Input$2,controlProps:{variant:"small",onBlurChange:!0,placeholder:i18next.t("{{label}} IDs separated by comma",{label:ea})},valueFilter:na=>na.join(","),onChangeValueFilter:(na="")=>na.split(",").filter(ra=>ra),selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds")})]],queryOffset=()=>[createOptionControl({id:"queryOffset",label:i18next.t("Number of first results to skip (offset)"),control:Number$2,controlProps:{valueType:"number",style:{width:"calc(50% - 5px)"}},selector:getActiveSectionDataSourceByPath("params.offset"),action:updateActiveSectionDataSource("params.offset")})],queryExcludeWithNoThumbnails=ea=>[createOptionControl({id:"queryExcludeNonThumbnail",control:SwitchBox$1,controlProps:{label:i18next.t("Exclude {{label}} without image",{label:ea})},selector:getActiveSectionDataSourceByPath("params.excludeNonThumbnail"),action:updateActiveSectionDataSource("params.excludeNonThumbnail")})],queryIncludeSticky=ea=>[createOptionControl({id:"queryIncludeSticky",control:SwitchBox$1,controlProps:{label:i18next.t("Include sticky {{label}}",{label:ea})},selector:getActiveSectionDataSourceByPath("params.sticky"),action:updateActiveSectionDataSource("params.sticky")})],numberOfResults=ea=>[createOptionControl({id:"queryNumber",label:i18next.t("Number of {{label}}",{label:ea}),control:Number$2,controlProps:{valueType:"number"},selector:getActiveSectionDataSourceByPath("params.perpage"),action:updateActiveSectionDataSource("params.perpage")})],queryExcerptLength=()=>[createOptionControl({id:"queryExcerptLength",label:i18next.t("Excerpt length"),control:Number$2,controlProps:{valueType:"number"},selector:getActiveSectionDataSourceByPath("params.excerptLength"),action:updateActiveSectionDataSource("params.excerptLength")})],NotFoundedPosts=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(SvgEmptyPost,{}),jsxRuntimeExports.jsx("h4",{children:na("No results found")}),jsxRuntimeExports.jsx("span",{children:na("Try different query params")})]})},NotFoundedPosts$1=dt$1(NotFoundedPosts).withConfig({displayName:"NotFoundedPosts",componentId:"sc-1x033f7-0"})(["display:flex;flex-flow:column wrap;align-items:center;justify-content:center;margin-top:30px;svg{margin-right:13px;fill:currentColor;}h4{font-weight:500;margin-top:10px;margin-bottom:7px;}span{font-size:12px;}"]),Container$9=dt$1.div.withConfig({displayName:"WPPostsList__Container",componentId:"sc-193z2p4-0"})([""]),WPPostsList=({className:ea,value:na={status:"loaded",data:{hits:[],postTypes:[]}},itemComponent:ra})=>{const{status:oa="loaded",data:{hits:aa=[]}={}}=na,sa=reactExports.useRef(null),la=ca=>jsxRuntimeExports.jsx(ra,{...ca},ca.id);return useWindowResize(100),reactExports.useLayoutEffect(()=>{if(sa.current){const{top:ca}=sa.current.getBoundingClientRect();sa.current.style.height=`${Math.max(190,window.innerHeight-ca)}px`}},[aa,window.innerHeight]),jsxRuntimeExports.jsx(LoadingSplash$1,{className:ea,visible:oa==="loading",children:jsxRuntimeExports.jsx(Container$9,{ref:sa,children:aa.length?jsxRuntimeExports.jsx(Scrollbars,{autoHide:!0,children:aa.map(la)}):jsxRuntimeExports.jsx(NotFoundedPosts$1,{})})})},WPPostsList$1=dt$1(WPPostsList).withConfig({displayName:"WPPostsList",componentId:"sc-193z2p4-1"})(["height:198px;margin-top:10px;","{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;}"],Container$9),defaultColors$c={product:{title:"#4980F5",content:"#FFFFFF"},handpickItem:{background:"#222222",border:"#000000",title:"#4980F5",meta:"#AAAAAA",delete:"#444444",icon:"#AAAAAA",hover:{delete:"#FF504A",icon:"#FFFFFF"}}},colors$c={dark:defaultColors$c},defaultSizing$c={product:{fontSize:"11px",fontWeight:"600"},handpickItem:{borderRadius:"5px",fontSize:"11px",fontWeight:"600"}},sizes$c={default:defaultSizing$c},scheme$8=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$c,sizes:sizes$c},Symbol.toStringTag,{value:"Module"})),Container$8=dt$1.div.withConfig({displayName:"WooProductListItem__Container",componentId:"sc-1n8fs18-0"})([""]),Title$5=dt$1.a.withConfig({displayName:"WooProductListItem__Title",componentId:"sc-1n8fs18-1"})([""]),Meta$3=dt$1.span.withConfig({displayName:"WooProductListItem__Meta",componentId:"sc-1n8fs18-2"})([""]),RegularPrice=dt$1.span.withConfig({displayName:"WooProductListItem__RegularPrice",componentId:"sc-1n8fs18-3"})([""]),SalePrice=dt$1.span.withConfig({displayName:"WooProductListItem__SalePrice",componentId:"sc-1n8fs18-4"})([""]),InjectedDiv=dt$1.span.withConfig({displayName:"WooProductListItem__InjectedDiv",componentId:"sc-1n8fs18-5"})([""]),WooProductListItem=({className:ea,id:na,featuredImage:ra,title:oa,url:aa,price:sa,salePrice:la})=>{const{t:ca}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[ra&&jsxRuntimeExports.jsx(ImageBox$1,{width:"59px",height:"59px",fitMode:"cover",src:ra.src}),jsxRuntimeExports.jsxs(Container$8,{children:[oa&&jsxRuntimeExports.jsx(Title$5,{href:aa,target:"_blank",rel:"noreferrer",children:oa}),jsxRuntimeExports.jsx(Meta$3,{children:`${ca("Product ID")}: ${na}`}),sa&&jsxRuntimeExports.jsxs(RegularPrice,{children:[ca("Regular Price"),": ",jsxRuntimeExports.jsx(InjectedDiv,{dangerouslySetInnerHTML:{__html:sa}})]}),la&&jsxRuntimeExports.jsxs(SalePrice,{children:[ca("Sale Price"),": ",jsxRuntimeExports.jsx(InjectedDiv,{dangerouslySetInnerHTML:{__html:la}})]})]})]})},theme$e=withTheme(scheme$8),WooProductListItem$1=dt$1(WooProductListItem).withConfig({displayName:"WooProductListItem",componentId:"sc-1n8fs18-6"})(["display:flex;margin-bottom:20px;","{flex-shrink:0;margin-right:10px;}","{display:flex;flex:1;flex-direction:column;min-width:0;}",",",","," ","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:15px;}","{text-decoration:none;margin-bottom:0;}","{margin-bottom:0;}"," ",""],ImageBox$1,Container$8,Meta$3,RegularPrice,SalePrice,Title$5,Title$5,Meta$3,theme$e.colors(ea=>lt$1(["","{color:",";}"],Title$5,ea.product.title)),theme$e.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],Container$8,ea.product.fontSize,ea.product.fontWeight))),wooProductsOptionControls=[{id:"wooProductsParamsFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wooProductsFrom",label:i18next.t("From"),control:Select$1,controlProps:{options:[{value:"all",label:i18next.t("All")},{value:"best-selling",label:i18next.t("Best selling")},{value:"top-rated",label:i18next.t("Top rated")},{value:"featured",label:i18next.t("Featured")},{value:"on-sale",label:i18next.t("On sale")}]},selector:getActiveSectionDataSourceByPath("params.from"),action:updateActiveSectionDataSource("params.from")})],[createOptionControl({id:"wooProductsInStockOnly",control:SwitchBox$1,controlProps:{label:i18next.t("In stock only")},selector:getActiveSectionDataSourceByPath("params.inStockOnly"),action:updateActiveSectionDataSource("params.inStockOnly")})]]},{id:"wooPostTaxonomiesFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wpPostTaxonomies",control:WPTaxonomyList$1,controlProps:{defaultPostType:"product",includeTaxonomies:["product_cat"]},selector:getActiveSectionDataSourceByPath("params"),action:updateActiveSectionDataSource("params",!0)})]]},{id:"wooProductsIncludeTypesFieldset",border:"bottom",label:i18next.t("Include Product Types"),optionControls:[[createOptionControl({id:"wooProductsRegularProducts",control:SwitchBox$1,controlProps:{label:i18next.t("Include regular products")},selector:getActiveSectionDataSourceByPath("params.regularProducts"),action:updateActiveSectionDataSource("params.regularProducts")})],[createOptionControl({id:"wooProductsDownloadableProducts",control:SwitchBox$1,controlProps:{label:i18next.t("Include downloadable products")},selector:getActiveSectionDataSourceByPath("params.downloadableProducts"),action:updateActiveSectionDataSource("params.downloadableProducts")})],[createOptionControl({id:"wooProductsVirtualProducts",control:SwitchBox$1,controlProps:{label:i18next.t("Include virtual products")},selector:getActiveSectionDataSourceByPath("params.virtualProducts"),action:updateActiveSectionDataSource("params.virtualProducts")})]]},{id:"wooProductsPriceRangeFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wooProductsPriceRangeStatus",control:SwitchBox$1,controlProps:{label:i18next.t("Price range")},selector:getActiveSectionDataSourceByPath("params.filterByPrice"),action:updateActiveSectionDataSource("params.filterByPrice")})],[createOptionControl({id:"wooProductsPriceRangeStart",label:i18next.t("Start price"),control:Number$2,controlProps:{valueType:"number"},dependency:getActiveSectionDataSourceByPath("params.filterByPrice"),selector:getActiveSectionDataSourceByPath("params.startPrice"),action:updateActiveSectionDataSource("params.startPrice")}),createOptionControl({id:"wooProductsPriceRangeEnd",label:i18next.t("End price"),control:Number$2,controlProps:{valueType:"number"},dependency:getActiveSectionDataSourceByPath("params.filterByPrice"),selector:getActiveSectionDataSourceByPath("params.endPrice"),action:updateActiveSectionDataSource("params.endPrice")})],[createOptionControl({id:"wooProductsSalePriceRangeStart",label:i18next.t("Start sale price"),control:Number$2,controlProps:{valueType:"number"},dependency:getActiveSectionDataSourceByPath("params.filterByPrice"),selector:getActiveSectionDataSourceByPath("params.startSalePrice"),action:updateActiveSectionDataSource("params.startSalePrice")}),createOptionControl({id:"wooProductsSalePriceRangeEnd",label:i18next.t("End sale price"),control:Number$2,controlProps:{valueType:"number"},dependency:getActiveSectionDataSourceByPath("params.filterByPrice"),selector:getActiveSectionDataSourceByPath("params.endSalePrice"),action:updateActiveSectionDataSource("params.endSalePrice")})]]},{id:"wooProductsExcludeIncludeFieldset",border:"bottom",optionControls:[queryExcludeWithNoThumbnails("Products"),[...numberOfResults("Posts"),...queryExcerptLength()],...queryExcludeAndInclude("Product")]},{id:"wooProductsOrderAndOffset",border:"bottom",optionControls:[queryOrderOptionControls(),queryOffset(),linkSectionsOptionControl("product")]},{id:"wooProductsQueryResults",optionControls:[[createOptionControl({id:"wpPostListPreview",label:i18next.t("Query results"),control:WPPostsList$1,selector:getActiveSectionDataSourceData,controlProps:{itemComponent:WooProductListItem$1}})]]}],passIntegrationRequirements=(ea=[])=>ea.length?ea.map(na=>browserEnv.integrations[na]).every(na=>typeof na=="boolean"?na:na.enabled):!0,defaultColors$b={color:"#AAAAAA",icon:"#AAAAAA"},colors$b={dark:defaultColors$b},defaultSizing$b={fontSize:"12px"},sizes$b={default:defaultSizing$b},scheme$7=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$b,sizes:sizes$b},Symbol.toStringTag,{value:"Module"})),DateSourceNotActivated=({className:ea,content:na,icon:ra})=>jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Icon$4,{shape:ra}),na]}),theme$d=withTheme(scheme$7),DataSourceNotActivated=dt$1(DateSourceNotActivated).withConfig({displayName:"DataSourceNotActivated",componentId:"sc-1m4gcfs-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;svg{margin-bottom:10px;margin-left:-5px;}"," ",""],theme$d.colors(ea=>lt$1(["color:",";svg{fill:",";}"],ea.color,ea.icon)),theme$d.sizes(ea=>lt$1(["font-size:",";"],ea.fontSize))),SvgNotActivated$1=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:75.569,height:46.589,viewBox:"0 0 75.569 46.589",...ea},reactExports.createElement("path",{id:"woocommerce_not_activated","data-name":"woocommerce not activated",d:"M54.841,46.589h0L44.257,40.7H21.1a5.606,5.606,0,0,1-5.6-5.6V25.156a14.95,14.95,0,0,0,3.541-1.989A78.855,78.855,0,0,0,22.155,36.2c.476,1.142,1.013,1.7,1.639,1.7a.717.717,0,0,0,.08,0c1.034-.074,2.246-1.472,3.708-4.273.764-1.576,1.954-3.955,3.536-7.069,1.319,4.607,3.144,8.126,5.428,10.459a2.543,2.543,0,0,0,1.8.914c.046,0,.093,0,.138-.005a1.574,1.574,0,0,0,1.3-.884,2.927,2.927,0,0,0,.3-1.621,45.878,45.878,0,0,1,.688-9.356c.651-4.207,1.43-7.106,2.381-8.866a2.112,2.112,0,0,0,.246-1.179,1.91,1.91,0,0,0-.761-1.4,2.173,2.173,0,0,0-1.362-.5c-.058,0-.12,0-.186.007A1.889,1.889,0,0,0,39.469,15.2c-1.516,2.767-2.607,7.312-3.241,13.507a46.163,46.163,0,0,1-2.334-8.4c-.259-1.391-.868-2.067-1.861-2.067-.044,0-.095,0-.152,0a2.343,2.343,0,0,0-1.842,1.474L24.66,29.964c-.75-3.023-1.455-6.579-2.1-10.568A14.936,14.936,0,0,0,25,11.2c0-.12,0-.242,0-.365H69.971a5.6,5.6,0,0,1,5.6,5.6V35.1a5.6,5.6,0,0,1-5.6,5.6H52.435l2.407,5.892v0ZM62.834,17.7a8.4,8.4,0,0,0-2.563,2.762,13.081,13.081,0,0,0-1.916,6.925,9.55,9.55,0,0,0,1.179,4.863A5.63,5.63,0,0,0,63.464,35.1a6.484,6.484,0,0,0,1.327.148,5.888,5.888,0,0,0,3.226-.921,8.212,8.212,0,0,0,2.545-2.764,13.234,13.234,0,0,0,1.915-6.95A9.255,9.255,0,0,0,71.3,19.771a5.638,5.638,0,0,0-3.929-2.848,6.531,6.531,0,0,0-1.327-.148A5.861,5.861,0,0,0,62.834,17.7Zm-15.4,0a8.4,8.4,0,0,0-2.563,2.762,13.085,13.085,0,0,0-1.915,6.925,9.55,9.55,0,0,0,1.179,4.863A5.629,5.629,0,0,0,48.065,35.1a6.462,6.462,0,0,0,1.326.148,5.889,5.889,0,0,0,3.227-.921,8.212,8.212,0,0,0,2.545-2.764,13.234,13.234,0,0,0,1.915-6.95A9.249,9.249,0,0,0,55.9,19.771a5.727,5.727,0,0,0-3.929-2.848,6.516,6.516,0,0,0-1.326-.148A5.869,5.869,0,0,0,47.435,17.7ZM64.347,31c-.6-.126-1.09-.663-1.448-1.6a6.182,6.182,0,0,1-.443-2.235,8.573,8.573,0,0,1,.172-1.793,8.015,8.015,0,0,1,1.3-2.922,2.859,2.859,0,0,1,2.212-1.556,1.847,1.847,0,0,1,.341.033c.6.126,1.091.663,1.449,1.6a6.184,6.184,0,0,1,.442,2.235,10.474,10.474,0,0,1-.172,1.817,6.467,6.467,0,0,1-1.866,3.634,2.657,2.657,0,0,1-1.7.815A1.466,1.466,0,0,1,64.347,31Zm-15.4,0c-.6-.126-1.091-.663-1.449-1.6a6.207,6.207,0,0,1-.442-2.235,8.573,8.573,0,0,1,.172-1.793,8,8,0,0,1,1.3-2.922,2.861,2.861,0,0,1,2.213-1.556,1.847,1.847,0,0,1,.341.033c.6.126,1.091.663,1.449,1.6a6.184,6.184,0,0,1,.442,2.235,8.5,8.5,0,0,1-.172,1.817,6.459,6.459,0,0,1-1.867,3.634,2.653,2.653,0,0,1-1.7.815A1.463,1.463,0,0,1,48.948,31ZM3.221,18.777A11,11,0,1,1,18.779,3.223,11,11,0,0,1,11.03,22h-.061A10.926,10.926,0,0,1,3.221,18.777ZM4.889,4.888A8.642,8.642,0,1,0,17.111,17.11,8.642,8.642,0,0,0,11,2.357h-.023A8.584,8.584,0,0,0,4.889,4.888ZM9.5,15.5A1.5,1.5,0,1,1,11,17,1.5,1.5,0,0,1,9.5,15.5Zm0-4v-5a1.5,1.5,0,0,1,3,0v5a1.5,1.5,0,0,1-3,0Z",transform:"translate(0)"})),wooProductsDataSource={type:"wooProducts",name:"Woo Products",icon:wooProductsIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Products")},optionControls:wooProductsOptionControls,fallbackOptions:[{id:"wooFallbackOptions",optionControls:[[createOptionControl({id:"wooProductsFrom",control:DataSourceNotActivated,controlProps:{content:i18next.t("WooCommerce plugin is not activated on your WordPress installation. Please install and activate the plugin first."),icon:SvgNotActivated$1}})]]}],defaultOptions:{from:"all",taxonomies:{},inStockOnly:!0,regularProducts:!0,downloadableProducts:!0,virtualProducts:!0,filterByPrice:!1,endPrice:0,startPrice:0,endSalePrice:0,startSalePrice:0,excludeNonThumbnail:!0,perpage:5,excerptLength:255,excludedIds:[],includedIds:[],offset:0,orderBy:"date",order:"DESC"},allowedTier:Tiers.PRO,handler:wooProductsAPIHandler,hasIntegrations:passIntegrationRequirements(["woocommerce"]),documentType:"woo-slider"},wpPostIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%3e%3cg%20id='wp_logo'%20data-name='wp%20logo'%20transform='translate(-189%20-1608)'%3e%3ccircle%20id='Ellipse_235'%20data-name='Ellipse%20235'%20cx='12'%20cy='12'%20r='12'%20transform='translate(189%201608)'%20fill='%23fff'/%3e%3cpath%20id='Path_1325'%20data-name='Path%201325'%20d='M15861,3644a12,12,0,1,1,12,12A12.012,12.012,0,0,1,15861,3644Zm.549,0a11.449,11.449,0,1,0,11.451-11.449A11.463,11.463,0,0,0,15861.551,3644Zm8.543,9.876,3.088-8.975,3.164,8.668a.993.993,0,0,0,.072.142,10.306,10.306,0,0,1-6.324.165Zm-7.389-9.876a10.273,10.273,0,0,1,.893-4.189l4.91,13.454A10.3,10.3,0,0,1,15862.705,3644Zm18.615-.193a9.732,9.732,0,0,0,.781-3.687,7.816,7.816,0,0,0-.068-1.059,10.295,10.295,0,0,1-3.857,13.837Zm-14.627-4.632c.619-.032,1.178-.1,1.178-.1a.425.425,0,0,0-.064-.848s-1.668.13-2.744.13c-.193,0-.42,0-.664-.012a10.294,10.294,0,0,1,15.555-1.937c-.047,0-.09-.009-.135-.009a1.783,1.783,0,0,0-1.729,1.828,4.822,4.822,0,0,0,1.012,2.414,5.433,5.433,0,0,1,.848,2.839,12.412,12.412,0,0,1-.783,3.327l-1.027,3.431-3.719-11.065c.619-.033,1.178-.1,1.178-.1a.425.425,0,0,0-.066-.848s-1.666.13-2.744.13c-1.012,0-2.711-.13-2.711-.13a.425.425,0,0,0-.064.848s.525.065,1.078.1l1.605,4.394-2.254,6.756Z'%20transform='translate(-15672.002%20-2024.001)'%20fill='%232e749a'/%3e%3c/g%3e%3c/svg%3e",wpPostAPIHandler=ea=>async()=>{const{data:{hits:na}}=await axios$5.request(getPosts(ea));return{hits:na}},defaultColors$a={post:{title:"#4980F5",content:"#FFFFFF"}},colors$a={dark:defaultColors$a},defaultSizing$a={post:{fontSize:"11px",fontWeight:"600"}},sizes$a={default:defaultSizing$a},scheme$6=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$a,sizes:sizes$a},Symbol.toStringTag,{value:"Module"})),Container$7=dt$1.div.withConfig({displayName:"WPPostsListItem__Container",componentId:"sc-oy3ef0-0"})([""]),Title$4=dt$1.a.withConfig({displayName:"WPPostsListItem__Title",componentId:"sc-oy3ef0-1"})([""]),Meta$2=dt$1.span.withConfig({displayName:"WPPostsListItem__Meta",componentId:"sc-oy3ef0-2"})([""]),Excerpt$1=dt$1.div.withConfig({displayName:"WPPostsListItem__Excerpt",componentId:"sc-oy3ef0-3"})([""]),WPPostsListItem=({className:ea,id:na,featuredImage:ra,title:oa,url:aa,date:sa,excerpt:la})=>{const{t:ca}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:ea,children:[ra&&jsxRuntimeExports.jsx(ImageBox$1,{width:"59px",height:"59px",fitMode:"cover",src:ra.src}),jsxRuntimeExports.jsxs(Container$7,{children:[oa&&jsxRuntimeExports.jsx(Title$4,{href:aa,target:"_blank",rel:"noreferrer",children:oa}),jsxRuntimeExports.jsx(Meta$2,{children:`${sa} ( ${ca("Post ID")}: ${na} )`}),la&&jsxRuntimeExports.jsx(Excerpt$1,{children:la})]})]})},theme$c=withTheme(scheme$6),WPPostsListItem$1=dt$1(WPPostsListItem).withConfig({displayName:"WPPostsListItem",componentId:"sc-oy3ef0-4"})(["display:flex;margin-bottom:20px;","{flex-shrink:0;margin-right:10px;}","{display:flex;flex:1;flex-direction:column;min-width:0;}",",",",","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}","{text-decoration:none;margin-bottom:5px;}","{margin-bottom:5px;}"," ",""],ImageBox$1,Container$7,Meta$2,Excerpt$1,Title$4,Title$4,Meta$2,theme$c.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$4,ea.post.title,Excerpt$1,ea.post.content)),theme$c.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],Container$7,ea.post.fontSize,ea.post.fontWeight))),wpPageOptionControls=[{id:"wpPageParamsFieldset",border:"bottom",optionControls:[...queryExcludeAndInclude("Page"),queryExcludeWithNoThumbnails("Pages"),[...numberOfResults("Pages"),...queryExcerptLength()],queryOffset(),linkSectionsOptionControl(),queryOrderOptionControls()]},{id:"wpPageList",optionControls:[[createOptionControl({id:"wpPageListPreview",control:WPPostsList$1,selector:getActiveSectionDataSourceData,controlProps:{itemComponent:WPPostsListItem$1}})]]}],wpPageDataSource={type:"wpPage",name:"WordPress Pages",icon:wpPostIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("WordPress Pages")},optionControls:wpPageOptionControls,defaultOptions:{postType:"page",excludedIds:[],includedIds:[],perpage:5,excerptLength:255,offset:0,linkSlides:!1,orderBy:"date",order:"DESC",excludeNonThumbnail:!0},allowedTier:Tiers.PRO,handler:wpPostAPIHandler,documentType:"post-slider"},lastParams$2={},wpPageHandpickedAPIHandler=(ea,na)=>{let{includedIds:ra=[],...oa}=ea,{includedIds:aa=[],...sa}=lastParams$2[na]||{};return ra=[...ra],aa=[...aa],aa.sort(),ra.sort(),ra.length&&equal(ra,aa)&&equal(oa,sa)?(lastParams$2[na]=ea,!1):(lastParams$2[na]=ea,wpPostAPIHandler(ea))},defaultColors$9={background:"#222222",border:"#000000",title:"#4980F5",meta:"#AAAAAA",delete:"#444444",icon:"#AAAAAA",hover:{delete:"#FF504A",icon:"#FFFFFF"}},colors$9={dark:defaultColors$9},defaultSizing$9={borderRadius:"5px",fontSize:"11px",fontWeight:"600"},sizes$9={default:defaultSizing$9},scheme$5=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$9,sizes:sizes$9},Symbol.toStringTag,{value:"Module"})),DragButton=dt$1(Icon$4).withConfig({displayName:"DataSourceSortableItem__DragButton",componentId:"sc-1pvx2qh-0"})([""]),DragHandle=sortableHandle(()=>jsxRuntimeExports.jsx(DragButton,{shape:SvgDrag})),Container$6=dt$1.div.withConfig({displayName:"DataSourceSortableItem__Container",componentId:"sc-1pvx2qh-1"})([""]),Title$3=dt$1.a.withConfig({displayName:"DataSourceSortableItem__Title",componentId:"sc-1pvx2qh-2"})([""]),Meta$1=dt$1.span.withConfig({displayName:"DataSourceSortableItem__Meta",componentId:"sc-1pvx2qh-3"})([""]),DeleteButton=dt$1(IconButton).attrs({size:"tiny",icon:jsxRuntimeExports.jsx(SvgDelete$2,{})}).withConfig({displayName:"DataSourceSortableItem__DeleteButton",componentId:"sc-1pvx2qh-4"})([""]),HandPickDataSourceItem=sortableElement(ea=>{const{t:na}=useTranslation(),{className:ra,title:oa,id:aa,date:sa,url:la,featuredImage:ca,onDelete:ua}=ea,da=reactExports.useCallback(()=>{ua?.(aa)},[ua,aa]);return jsxRuntimeExports.jsxs("div",{className:ra,children:[jsxRuntimeExports.jsx(DragHandle,{}),ca&&jsxRuntimeExports.jsx(ImageBox$1,{fitMode:"cover",width:"40px",height:"40px",src:ca.src}),jsxRuntimeExports.jsxs(Container$6,{children:[oa&&jsxRuntimeExports.jsx(Title$3,{href:la,target:"_blank",rel:"noreferrer",children:oa}),jsxRuntimeExports.jsx(Meta$1,{children:`${sa} (${na("ID")}: ${aa})`})]}),jsxRuntimeExports.jsx(DeleteButton,{onClick:da})]})}),theme$b=withTheme(scheme$5),DataSourceSortableItem=dt$1(HandPickDataSourceItem).withConfig({displayName:"DataSourceSortableItem",componentId:"sc-1pvx2qh-5"})(["display:flex;align-items:center;width:100%;height:58px;margin-bottom:10px;overflow:hidden;position:relative;&:hover{","{transform:translateX(0%);}}","{flex-shrink:0;margin-right:10px;img{border-radius:4px;}}","{display:flex;align-items:center;justify-content:center;height:58px;width:20px;padding:0;cursor:ns-resize;}","{display:flex;flex:1;flex-direction:column;min-width:0;margin-right:7px;}",",","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}","{text-decoration:none;}","{position:absolute;right:0;top:0;height:100%;padding:7px;transform:translateX(100%);transition:all 150ms ease-out;}","{transition:all 150ms ease-out;}"," ",""],DeleteButton,ImageBox$1,DragButton,Container$6,Meta$1,Title$3,Title$3,DeleteButton,Icon$4,theme$b.colors(ea=>lt$1(["background:",";border:1px solid ",";","{background:",";border-left:1px solid ",";&:hover{background:",";}}","{color:",";}","{color:",";}","{fill:",";&:hover{fill:",";}}"],ea.background,ea.border,DeleteButton,ea.delete,ea.border,ea.hover.delete,Title$3,ea.title,Meta$1,ea.meta,Icon$4,ea.icon,ea.hover.icon)),theme$b.sizes(ea=>lt$1(["border-radius:",";font-size:",";font-weight:",";","{border-radius:0px "," "," 0px;}"],ea.borderRadius,ea.fontSize,ea.fontWeight,DeleteButton,ea.borderRadius,ea.borderRadius))),defaultColors$8={snippet:{color:"white",backgroundColor:"#222"}},colors$8={dark:defaultColors$8},defaultSizing$8={snippet:{background:"#222",margin:"5px 0 0 -10px",padding:"5px 15px"}},sizes$8={default:defaultSizing$8},scheme$4=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$8,sizes:sizes$8},Symbol.toStringTag,{value:"Module"})),NoticeBoxLogic=ea=>{const{icon:na,className:ra,description:oa}=ea,aa=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:oa&&jsxRuntimeExports.jsx("p",{children:oa})});return na?jsxRuntimeExports.jsx(LabelWithIcon$1,{iconLocation:"before",className:ra,icon:na,children:aa}):jsxRuntimeExports.jsx("div",{className:ra,children:aa})},theme$a=withTheme(scheme$4),NoticeBox=dt$1(NoticeBoxLogic).withConfig({displayName:"NoticeBox",componentId:"sc-1xcgq80-0"})([""," ",""],theme$a.colors(ea=>lt$1(["pre{user-select:text;color:",";background-color:",";}"],ea.snippet.color,ea.snippet.backgroundColor)),theme$a.sizes(ea=>lt$1(["pre{padding:",";margin:",";}"],ea.snippet.padding,ea.snippet.margin))),ListContainer=dt$1.div.withConfig({displayName:"DataSourceSortableList__ListContainer",componentId:"sc-txxbm5-0"})([""]),SortableContainerElement=sortableContainer(({children:ea})=>jsxRuntimeExports.jsx(ListContainer,{children:ea})),DataSourcesSortableList=({className:ea,itemComponent:na,onChange:ra,value:oa=[],noticeText:aa})=>{const sa=useSelector(getActiveSectionDataSourceData),la=pa=>{ra?.(arrayMove$1(oa,pa.oldIndex,pa.newIndex))},ca=reactExports.useCallback(pa=>{ra?.(oa.filter(ha=>ha!==pa))},[oa,ra]),ua=(pa,ha)=>{const fa=(sa.data?.hits).find(ma=>`${ma.id}`==`${pa}`);return fa?jsxRuntimeExports.jsx(na,{index:ha,onDelete:ca,...fa},fa.id):null},{status:da="loaded"}=sa||{};return jsxRuntimeExports.jsxs("div",{className:ea,children:[da==="loaded"&&!oa.length&&jsxRuntimeExports.jsx(NoticeBox,{description:aa,icon:CircleInfoIcon}),da==="loaded"&&oa.length>0&&jsxRuntimeExports.jsx(SortableContainerElement,{lockAxis:"y",axis:"y",distance:5,onSortEnd:la,helperClass:"ms-section-items-sortable-helper",useDragHandle:!0,children:oa.map(ua)}),da==="loading"&&jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"})]})},DataSourceSortableList=dt$1(DataSourcesSortableList).withConfig({displayName:"DataSourceSortableList",componentId:"sc-txxbm5-1"})(["","{width:100%;}","{background:#242424;padding:10px;border-radius:5px;}"],DotSpinner$1,NoticeBox),defaultColors$7={input:{hover:{border:"#4980F5"}}},colors$7={dark:defaultColors$7},defaultSizing$7={},sizes$7={default:defaultSizing$7},schema$2=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$7,sizes:sizes$7},Symbol.toStringTag,{value:"Module"})),NoResult=dt$1(Label$6).withConfig({displayName:"InstantSearch__NoResult",componentId:"sc-yghd02-0"})(["margin-bottom:0;"]),InnerContainer=dt$1.div.withConfig({displayName:"InstantSearch__InnerContainer",componentId:"sc-yghd02-1"})(["height:140px;"]),InstantSearch=ea=>{const{t:na}=useTranslation(),{className:ra,suggestionBoxHeight:oa=140,loading:aa,suggestions:sa=[],onChange:la,onChangeOnClear:ca,...ua}=ea,da=reactExports.useRef(null),pa=reactExports.useRef(null),[ha,ga]=reactExports.useState(!1),[fa,ma]=reactExports.useState(!1),va=reactExports.useCallback(wa=>{wa.currentTarget.value.length&&ga(!0)},[]),xa=reactExports.useCallback(wa=>{wa.currentTarget.value.length&&!ha&&ga(!0),fa&&ma(!1)},[fa,ha]),ya=reactExports.useCallback(()=>{ha&&ga(!1),ca&&la?.("")},[ha,la,ca]),Aa=reactExports.useCallback(({value:wa})=>{wa&&la&&la?.(wa),ga(!1)},[la]),Ca=reactExports.useCallback(wa=>{wa.key==="ArrowDown"&&!fa&&ha&&ma(!0)},[fa,ha]),Sa=reactExports.useCallback(wa=>{const ba=wa.map(Ea=>jsxRuntimeExports.jsx(MenuItem,{size:"medium",value:Ea.value,children:Ea.suggestionContent??Ea.label},Ea.value));return wa.length<=5?ba:jsxRuntimeExports.jsx(InnerContainer,{style:{height:`${oa}px`},children:jsxRuntimeExports.jsx(Scrollbars,{children:ba})})},[oa]);return useOnClickOutside(pa,()=>ga(!1)),jsxRuntimeExports.jsxs("div",{className:`${ra} ${ha?"depicter-menu-is-open":""}`,ref:pa,children:[jsxRuntimeExports.jsx(SearchBar$1,{onClear:ya,onInput:xa,onKeyDown:Ca,onFocus:va,ref:da,...ua}),jsxRuntimeExports.jsx(ControlledMenu,{size:"medium",state:ha?"open":"closed",anchorRef:da,captureFocus:fa,onItemClick:Aa,children:aa?jsxRuntimeExports.jsx(DotSpinner$1,{size:"small"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[sa.length?null:jsxRuntimeExports.jsx(NoResult,{children:na("No results found")}),sa.length?Sa(sa):null]})})]})},theme$9=withTheme(schema$2),InstantSearch$1=dt$1(InstantSearch).withConfig({displayName:"InstantSearch",componentId:"sc-yghd02-2"})(["","{width:100%;.szh-menu{width:100%;}}&.depicter-menu-is-open{","{input{border-bottom-right-radius:0;border-bottom-left-radius:0;}}.szh-menu{border-top-right-radius:0;border-top-left-radius:0;}}","{width:100%;}","{width:100%;text-align:center;}",""],ControlledMenu,SearchBar$1,DotSpinner$1,NoResult,theme$9.colors(ea=>lt$1(["&.depicter-menu-is-open{","{input{border-color:",";}}}"],SearchBar$1,ea.input.hover.border))),WPInstantSearch=({className:ea,value:na=[],onChange:ra,postType:oa="post",searchPlaceholder:aa=i18next.t("Search...")})=>{const[sa,la]=reactExports.useState(!0),[ca,ua]=reactExports.useState([]),da=reactExports.useCallback(async ga=>{const{data:{hits:fa}}=await axios$5.request(searchInPostType(ga));return fa},[]),pa=reactExports.useCallback(ga=>{if(!ga){ua([]);return}la(!0),da({s:ga,postType:oa,excludedIds:na}).then(fa=>{ua(fa.map(ma=>({value:ma.id,label:ma.title}))),la(!1)})},[oa,na,da]),ha=reactExports.useCallback(ga=>{na.includes(ga)||ra?.([ga,...na]),ua(ca.filter(fa=>fa.value!==ga))},[na,ca,ra]);return jsxRuntimeExports.jsx(InstantSearch$1,{className:ea,size:"medium",loading:sa,onSearch:pa,throttleSearch:400,suggestions:ca,searchPlaceholder:aa,onChange:ha})},WPInstantSearch$1=dt$1(WPInstantSearch).withConfig({displayName:"WPInstantSearch",componentId:"sc-qrru9g-0"})([""]),wpPageHandPickedOptionControls=[{id:"wpPageHandPickedFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wpPageSearch",label:i18next.t("Search for pages and choose"),control:WPInstantSearch$1,controlProps:{postType:"page"},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds")})],[createOptionControl({id:"wpHandpickedPages",control:DataSourceSortableList,controlProps:{itemComponent:DataSourceSortableItem,noticeText:i18next.t("The list is empty. Use above search input to find and add new pages here.")},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds"),styles:{width:"100%"}})]]},{id:"wpPageHandpickedOptionsFieldset",optionControls:[queryExcerptLength(),linkSectionsOptionControl("page")]}],wpPageHandpickedDataSource={type:"wpPageHandpicked",name:"Handpicked Pages",icon:wpPostIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("WordPress Pages")},optionControls:wpPageHandPickedOptionControls,defaultOptions:{postType:"page",excerptLength:255,linkSlides:!1,handpicked:!0,includedIds:[]},allowedTier:Tiers.PRO,handler:wpPageHandpickedAPIHandler,documentType:"post-slider"},wpPostOptionControls=[{id:"wpPostTaxonomiesFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wpPostTaxonomies",control:WPTaxonomyList$1,controlProps:{defaultPostType:"post",excludeTaxonomies:["post_format"]},selector:getActiveSectionDataSourceByPath("params"),action:updateActiveSectionDataSource("params",!0)})]]},{id:"wpPostParamsFieldset",border:"bottom",optionControls:[...queryExcludeAndInclude("Post"),queryExcludeWithNoThumbnails("Posts"),queryIncludeSticky("Posts"),[...numberOfResults("Posts"),...queryExcerptLength()],queryOffset(),linkSectionsOptionControl(),queryOrderOptionControls()]},{id:"wpPostList",optionControls:[[createOptionControl({id:"wpPostListPreview",control:WPPostsList$1,selector:getActiveSectionDataSourceData,controlProps:{itemComponent:WPPostsListItem$1}})]]}],wpPostDataSource={type:"wpPost",name:"WordPress Posts",icon:wpPostIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("WordPress Posts")},optionControls:wpPostOptionControls,defaultOptions:{excludedIds:[],includedIds:[],excludeNonThumbnail:!0,perpage:5,excerptLength:255,offset:0,linkSlides:!1,orderBy:"date",order:"DESC",imageSource:"featured",taxonomies:{},sticky:!0},documentType:"post-slider",handler:wpPostAPIHandler},lastParams$1={},wpPostHandpickedAPIHandler=(ea,na)=>{let{includedIds:ra=[],...oa}=ea,{includedIds:aa=[],...sa}=lastParams$1[na]||{};return ra=[...ra],aa=[...aa],aa.sort(),ra.sort(),ra.length&&equal(ra,aa)&&equal(oa,sa)?(lastParams$1[na]=ea,!1):(lastParams$1[na]=ea,wpPostAPIHandler(ea))},wpPostHandPickedOptionControls=[{id:"wpPostHandPickedFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wpPostSearch",label:i18next.t("Search for posts and choose"),control:WPInstantSearch$1,controlProps:{postType:"post"},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds")})],[createOptionControl({id:"wpHandpickedPosts",control:DataSourceSortableList,controlProps:{itemComponent:DataSourceSortableItem,noticeText:i18next.t("The list is empty. Use above search input to find and add new posts here.")},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds"),styles:{width:"100%"}})]]},{id:"wpPostHandpickedOptionsFieldset",optionControls:[queryExcerptLength(),linkSectionsOptionControl("post")]}],wpPostHandpickedDataSource={type:"wpPostHandpicked",name:"Handpicked Posts",icon:wpPostIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("WordPress Posts")},optionControls:wpPostHandPickedOptionControls,defaultOptions:{handpicked:!0,includedIds:[],excerptLength:250,linkSlides:!1},allowedTier:Tiers.PRO,handler:wpPostHandpickedAPIHandler,documentType:"post-slider"},lastParams={},wooHandpickedAPIHandler=(ea,na)=>{let{includedIds:ra=[],...oa}=ea,{includedIds:aa=[],...sa}=lastParams[na]||{};return ra=[...ra],aa=[...aa],aa.sort(),ra.sort(),ra.length&&equal(ra,aa)&&equal(oa,sa)?(lastParams[na]=ea,!1):(lastParams[na]=ea,wooProductsAPIHandler(ea,na,!0))},wooProductsHandPickedOptionControls=[{id:"wooProductsHandPickedFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wooProductSearch",label:i18next.t("Search for products and choose"),control:WPInstantSearch$1,controlProps:{postType:"product"},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds")})],[createOptionControl({id:"wooHandpickedProducts",control:DataSourceSortableList,controlProps:{itemComponent:DataSourceSortableItem,noticeText:i18next.t("The list is empty. Use above search input to find and add new pages here.")},selector:getActiveSectionDataSourceByPath("params.includedIds"),action:updateActiveSectionDataSource("params.includedIds"),styles:{width:"100%"}})]]},{id:"wooProductsHandpickedOptionsFieldset",optionControls:[[createOptionControl({id:"wooProductsInStockOnly",control:SwitchBox$1,controlProps:{label:i18next.t("In stock only")},selector:getActiveSectionDataSourceByPath("params.inStockOnly"),action:updateActiveSectionDataSource("params.inStockOnly")})],queryExcerptLength(),linkSectionsOptionControl("page")]}],wooHandpickedDataSource={type:"wooHandpicked",name:"Handpicked Products",icon:wooProductsIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Woocommerce elements")},optionControls:wooProductsHandPickedOptionControls,fallbackOptions:[{id:"wooFallbackOptions",optionControls:[[createOptionControl({id:"wooProductsFrom",control:DataSourceNotActivated,controlProps:{content:i18next.t("WooCommerce plugin is not activated on your WordPress installation. Please install and activate the plugin first."),icon:SvgNotActivated$1}})]]}],defaultOptions:{inStockOnly:!0,excerptLength:255,includedIds:[],handpicked:!0},allowedTier:Tiers.PRO,handler:wooHandpickedAPIHandler,hasIntegrations:passIntegrationRequirements(["woocommerce"]),documentType:"woo-slider"},wpCustomPostTypeIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='22.57'%20height='20.001'%20viewBox='0%200%2022.57%2020.001'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3cpath%20id='Path_1697'%20data-name='Path%201697'%20d='M17108.758,4122H17105v-20h20v3.716l-16.264,16.264.02.02Z'%20transform='translate(-16925%20-1920)'%20fill='%23fff'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='custom_post_type'%20data-name='custom%20post%20type'%20transform='translate(-180%20-2182)'%3e%3cg%20id='Mask_Group_95'%20data-name='Mask%20Group%2095'%20clip-path='url(%23clip-path)'%3e%3cg%20id='wp_logo'%20data-name='wp%20logo'%20transform='translate(-9%20574)'%3e%3cpath%20id='Path_1698'%20data-name='Path%201698'%20d='M10,0A10,10,0,1,1,0,10,10,10,0,0,1,10,0Z'%20transform='translate(189%201608)'%20fill='%23fff'/%3e%3cpath%20id='Path_1325'%20data-name='Path%201325'%20d='M15861,3642a10,10,0,1,1,10,10A10.012,10.012,0,0,1,15861,3642Zm.457,0a9.541,9.541,0,1,0,9.543-9.541A9.553,9.553,0,0,0,15861.457,3642Zm7.121,8.23,2.572-7.479,2.637,7.224a.731.731,0,0,0,.061.119,8.588,8.588,0,0,1-5.27.137Zm-6.158-8.23a8.54,8.54,0,0,1,.744-3.491l4.092,11.211A8.58,8.58,0,0,1,15862.42,3642Zm15.512-.161a8.115,8.115,0,0,0,.652-3.072,6.252,6.252,0,0,0-.059-.883,8.574,8.574,0,0,1-3.215,11.531Zm-12.189-3.86c.518-.027.982-.082.982-.082a.354.354,0,0,0-.053-.707s-1.391.108-2.287.108c-.162,0-.35,0-.555-.01a8.577,8.577,0,0,1,12.961-1.614c-.039,0-.074-.007-.111-.007a1.486,1.486,0,0,0-1.439,1.523,4.01,4.01,0,0,0,.844,2.012,4.539,4.539,0,0,1,.705,2.366,10.283,10.283,0,0,1-.654,2.772l-.854,2.859-3.1-9.22c.516-.028.98-.082.98-.082a.354.354,0,0,0-.055-.707s-1.389.108-2.287.108c-.842,0-2.258-.108-2.258-.108a.355.355,0,0,0-.055.707s.438.054.9.082l1.338,3.661-1.877,5.63Z'%20transform='translate(-15672%20-2024.001)'%20fill='%232e749a'/%3e%3c/g%3e%3c/g%3e%3cpath%20id='advanced'%20d='M19814.863,8305.658a1.862,1.862,0,0,1-1.316-3.179l4.742-4.744a1.789,1.789,0,0,1,.375-.3,2.836,2.836,0,0,1-.035-.449,2.983,2.983,0,0,1,4.191-2.727l-2.211,2.215,1.578,1.58,2.188-2.188a2.98,2.98,0,0,1-1.648,3.884,2.947,2.947,0,0,1-1.115.219v0a3.04,3.04,0,0,1-.354-.021,1.824,1.824,0,0,1-.273.369.394.394,0,0,1-.061.061l-4.74,4.747a1.857,1.857,0,0,1-1.3.542Zm-.7-1.97a.744.744,0,1,0,.744-.745A.742.742,0,0,0,19814.16,8303.688Z'%20transform='translate(-19622.023%20-6104.006)'%20fill='%23fff'/%3e%3c/g%3e%3c/svg%3e",WPCustomPostTypes=ea=>{const{className:na,value:ra,onChange:oa}=ea,[aa,sa]=reactExports.useState(!0),[la,ca]=reactExports.useState([]),ua=reactExports.useCallback(async()=>{sa(!0);const{data:ha}=await axios$5.request(getPostTypes({postType:"all"}));ca(ha.hits),sa(!1),!ra&&ha.hits.length&&oa?.(ha.hits[0].id)},[oa,ra]);reactExports.useEffect(()=>{ua()},[ua]);const da=reactExports.useMemo(()=>la.map(ha=>({value:ha.id,label:ha.label})),[la]),pa=reactExports.useCallback(ha=>{oa?.(ha)},[oa]);return jsxRuntimeExports.jsx(Select$1,{className:na,options:da,value:ra,loading:aa,onChange:pa})},WPCustomPostTypes$1=dt$1(WPCustomPostTypes).withConfig({displayName:"WPCustomPostTypes",componentId:"sc-ghzh8h-0"})(["","{width:235px;}"],Select$1),wpCustomPostOptionControls=[{id:"wpCustomPostTaxonomiesFieldset",border:"bottom",optionControls:[[createOptionControl({id:"wpCustomPostTypeList",label:i18next.t("Post type"),control:WPCustomPostTypes$1,selector:getActiveSectionDataSourceByPath("params.postType"),action:updateActiveSectionDataSource("params.postType")})],[createOptionControl({id:"wpPostTaxonomies",control:WPTaxonomyList$1,controlProps:{defaultPostType:"post",excludeTaxonomies:["post_format"]},selector:getActiveSectionDataSourceByPath("params"),action:updateActiveSectionDataSource("params",!0)})]]},...wpPostOptionControls.slice(1)],wpCustomPostTypeDataSource={type:"wpCPT",name:"Custom Post Type",icon:wpCustomPostTypeIcon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Custom Post Type")},optionControls:wpCustomPostOptionControls,defaultOptions:{excludedIds:[],includedIds:[],excludeNonThumbnail:!0,perpage:5,excerptLength:255,offset:0,linkSlides:!1,orderBy:"date",order:"DESC",imageSource:"featured",taxonomies:{}},allowedTier:Tiers.PRO,handler:wpPostAPIHandler,documentType:"post-slider"},getGoogleReviews=async ea=>{const{data:{hits:na}}=await axios$5.request(getGoogleReviews$1(ea));return{hits:na}},googleReviewsAPIHandler=ea=>{const{id:na}=ea;return na?async()=>await getGoogleReviews(ea):!1},Icon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='20'%20height='20'%20viewBox='0%200%2048%2048'%3e%3cdefs%3e%3cpath%20id='a'%20d='M44.5%2020H24v8.5h11.8C34.7%2033.9%2030.1%2037%2024%2037c-7.2%200-13-5.8-13-13s5.8-13%2013-13c3.1%200%205.9%201.1%208.1%202.9l6.4-6.4C34.6%204.1%2029.6%202%2024%202%2011.8%202%202%2011.8%202%2024s9.8%2022%2022%2022c11%200%2021-8%2021-22%200-1.3-.2-2.7-.5-4z'%20/%3e%3c/defs%3e%3cclipPath%20id='b'%3e%3cuse%20xlink:href='%23a'%20overflow='visible'%20/%3e%3c/clipPath%3e%3cpath%20clip-path='url(%23b)'%20fill='%23FBBC05'%20d='M0%2037V11l17%2013z'%20/%3e%3cpath%20clip-path='url(%23b)'%20fill='%23EA4335'%20d='M0%2011l17%2013%207-6.1L48%2014V0H0z'%20/%3e%3cpath%20clip-path='url(%23b)'%20fill='%2334A853'%20d='M0%2037l30-23%207.9%201L48%200v48H0z'%20/%3e%3cpath%20clip-path='url(%23b)'%20fill='%234285F4'%20d='M48%2048L17%2024l-4-3%2035-10z'%20/%3e%3c/svg%3e",GooglePlaceSearch=({className:ea,value:na,onChange:ra,searchPlaceholder:oa=i18next.t("Search...")})=>{const[aa,sa]=reactExports.useState(!0),[la,ca]=reactExports.useState([]),ua=useDispatch(),da=useSelector(getActiveSection),pa=updateActiveSectionDataSource("params.placeName"),ha=useSelector(getActiveSectionDataSourceByPath("params.placeName")),ga=reactExports.useCallback(async va=>{const{data:{hits:xa}}=await axios$5.request(getGooglePlaces(va));return xa},[]),fa=reactExports.useCallback(va=>{if(!va){ca([]);return}sa(!0),ga({s:va}).then(xa=>{ca(xa.map(ya=>({value:ya.id,label:ya.label,suggestionContent:jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("strong",{children:ya.label}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("address",{style:{opacity:.5},children:ya.address})]})}))),sa(!1)})},[ga]),ma=reactExports.useCallback(va=>{if(!va)ua(removeSectionsDataSourcesData(da)),ua(pa({value:""})),ra?.(null);else if(va!==na){const xa=la.find(ya=>ya.value===va);ua(pa({value:xa?.label})),ra?.(va)}},[na,ua,da,pa,ra,la]);return jsxRuntimeExports.jsx(InstantSearch$1,{className:ea,size:"medium",loading:aa,onSearch:fa,throttleSearch:400,suggestionBoxHeight:400,suggestions:la,searchPlaceholder:oa,onChange:ma,value:ha,onChangeOnClear:!0})},GooglePlaceSearch$1=dt$1(GooglePlaceSearch).withConfig({displayName:"GooglePlaceSearch",componentId:"sc-hhkhh2-0"})([""]),defaultColors$6={review:{title:"#4980F5",content:"#FFFFFF"}},colors$6={dark:defaultColors$6},defaultSizing$6={review:{fontSize:"11px",fontWeight:"600"}},sizes$6={default:defaultSizing$6},scheme$3=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$6,sizes:sizes$6},Symbol.toStringTag,{value:"Module"})),Container$5=dt$1.div.withConfig({displayName:"ReviewListItem__Container",componentId:"sc-o13pdm-0"})([""]),Title$2=dt$1.a.withConfig({displayName:"ReviewListItem__Title",componentId:"sc-o13pdm-1"})([""]),Meta=dt$1.span.withConfig({displayName:"ReviewListItem__Meta",componentId:"sc-o13pdm-2"})([""]),Excerpt=dt$1.div.withConfig({displayName:"ReviewListItem__Excerpt",componentId:"sc-o13pdm-3"})([""]),ReviewListItem=ea=>{const{className:na,author:ra,relativeDate:oa,content:aa,authorPhoto:sa,rating:la}=ea,{t:ca}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:na,children:[sa&&jsxRuntimeExports.jsx(ImageBox$1,{width:"59px",height:"59px",fitMode:"cover",src:sa}),jsxRuntimeExports.jsxs(Container$5,{children:[jsxRuntimeExports.jsx(Title$2,{href:ra.url,target:"_blank",rel:"noreferrer",children:ra.name}),jsxRuntimeExports.jsx(Meta,{children:`${oa} ( ${ca("Rating")}: ${la} )`}),aa&&jsxRuntimeExports.jsx(Excerpt,{children:aa})]})]})},theme$8=withTheme(scheme$3),ReviewListItem$1=dt$1(ReviewListItem).withConfig({displayName:"ReviewListItem",componentId:"sc-o13pdm-4"})(["display:flex;margin-bottom:20px;","{flex-shrink:0;margin-right:10px;}","{display:flex;flex:1;flex-direction:column;min-width:0;}",",",",","{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}","{text-decoration:none;margin-bottom:5px;}","{margin-bottom:5px;}"," ",""],ImageBox$1,Container$5,Meta,Excerpt,Title$2,Title$2,Meta,theme$8.colors(ea=>lt$1(["","{color:",";}","{color:",";}"],Title$2,ea.review.title,Excerpt,ea.review.content)),theme$8.sizes(ea=>lt$1(["","{font-size:",";font-weight:",";}"],Container$5,ea.review.fontSize,ea.review.fontWeight))),hasPlace=ea=>!!getActiveSectionDataSourceByPath("params.id")(ea)&&!!getActiveSectionDataSourceByPath("params.placeName")(ea),googleReviewsOptionControls=[{id:"googleReviewsPlacesFieldset",optionControls:[[createOptionControl({id:"googlePlaceSearch",label:i18next.t("Search for place and choose"),control:GooglePlaceSearch$1,selector:getActiveSectionDataSourceByPath("params.id"),action:updateActiveSectionDataSource("params.id")})]]},{id:"googleReviewsPlacesQueryFieldset",optionControls:[[createOptionControl({id:"dateStart",control:DatePicker$1,controlProps:{label:i18next.t("Start date")},selector:getActiveSectionDataSourceByPath("params.dateStart"),action:updateActiveSectionDataSource("params.dateStart"),dependency:hasPlace})],[createOptionControl({id:"dateEnd",control:DatePicker$1,controlProps:{label:i18next.t("End date")},selector:getActiveSectionDataSourceByPath("params.dateEnd"),action:updateActiveSectionDataSource("params.dateEnd"),dependency:hasPlace})],[createOptionControl({id:"minRating",label:i18next.t("Minimum Rating"),control:Number$2,controlProps:{valueType:"number",style:{width:"calc(50% - 5px)"}},selector:getActiveSectionDataSourceByPath("params.minRating"),action:updateActiveSectionDataSource("params.minRating"),dependency:hasPlace})]]},{id:"googleReviewsNotice",border:"top",optionControls:[[createOptionControl({id:"googleReviewsNoticeText",control:LabelWithIcon$1,selector:getActiveSectionDataSourceData,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("If the place is not your business, you may not get more than 5 reviews. To get more reviews, you need to set a Google Places API key that is associated with the place."),variant:"boxed"},dependency:hasPlace})]]},{id:"reviewsList",border:"top",optionControls:[[createOptionControl({id:"reviewsListPreview",control:WPPostsList$1,selector:getActiveSectionDataSourceData,controlProps:{itemComponent:ReviewListItem$1},dependency:hasPlace})]]}],SvgNotActivated=ea=>reactExports.createElement("svg",{width:107,height:54,viewBox:"0 0 107 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M104.399 51.5759C104.399 52.0219 104.289 52.4061 104.07 52.7286C103.853 53.0511 103.541 53.2981 103.133 53.4697C102.728 53.6412 102.244 53.727 101.682 53.727C101.407 53.727 101.145 53.7116 100.894 53.6807C100.644 53.6498 100.407 53.6052 100.184 53.5469C99.9646 53.4851 99.7639 53.4114 99.582 53.3256V52.1625C99.8874 52.2963 100.229 52.4181 100.606 52.5279C100.984 52.6343 101.368 52.6875 101.759 52.6875C102.078 52.6875 102.342 52.6463 102.551 52.5639C102.764 52.4782 102.922 52.3581 103.025 52.2037C103.128 52.0459 103.179 51.8623 103.179 51.6531C103.179 51.4301 103.119 51.2414 102.999 51.087C102.879 50.9326 102.697 50.7919 102.454 50.665C102.213 50.5346 101.912 50.3957 101.548 50.2481C101.301 50.1486 101.064 50.0354 100.838 49.9085C100.615 49.7815 100.416 49.6323 100.241 49.4608C100.066 49.2892 99.9268 49.0868 99.8239 48.8535C99.7244 48.6168 99.6747 48.3389 99.6747 48.0198C99.6747 47.5944 99.7759 47.2307 99.9783 46.9288C100.184 46.6269 100.472 46.3953 100.843 46.2341C101.217 46.0728 101.653 45.9922 102.15 45.9922C102.545 45.9922 102.915 46.0334 103.262 46.1157C103.612 46.198 103.955 46.3147 104.291 46.4656L103.9 47.4589C103.591 47.3319 103.291 47.2307 102.999 47.1552C102.711 47.0798 102.416 47.042 102.114 47.042C101.853 47.042 101.632 47.0815 101.45 47.1604C101.268 47.2393 101.129 47.3508 101.033 47.4949C100.941 47.6356 100.894 47.8037 100.894 47.9992C100.894 48.2188 100.948 48.4041 101.054 48.555C101.164 48.7025 101.332 48.8381 101.558 48.9616C101.788 49.0851 102.083 49.2223 102.443 49.3733C102.858 49.5448 103.21 49.7249 103.498 49.9136C103.79 50.1023 104.013 50.3288 104.167 50.5929C104.322 50.8537 104.399 51.1813 104.399 51.5759Z"}),reactExports.createElement("path",{d:"M91.8751 46.0996L89.9093 53.6234H88.561L87.3053 49.1153C87.2744 49.0055 87.2401 48.8752 87.2024 48.7242C87.1646 48.5732 87.1269 48.4189 87.0891 48.261C87.0548 48.1032 87.024 47.9591 86.9965 47.8287C86.9725 47.6949 86.9553 47.592 86.945 47.52C86.9382 47.592 86.9227 47.6932 86.8987 47.8236C86.8747 47.954 86.8456 48.0981 86.8112 48.2559C86.7804 48.4103 86.7461 48.5647 86.7083 48.719C86.6706 48.87 86.6363 49.0038 86.6054 49.1205L85.3703 53.6234H84.0271L82.0664 46.0996H83.3067L84.3925 50.5099C84.4268 50.6506 84.4611 50.8033 84.4954 50.968C84.5332 51.1292 84.5675 51.2922 84.5984 51.4568C84.6327 51.6215 84.6635 51.7828 84.691 51.9406C84.7184 52.095 84.7407 52.2356 84.7579 52.3626C84.775 52.2322 84.7973 52.0881 84.8248 51.9303C84.8522 51.7691 84.8814 51.6061 84.9123 51.4414C84.9466 51.2733 84.9809 51.1121 85.0152 50.9577C85.0529 50.8033 85.0907 50.6643 85.1284 50.5408L86.3532 46.0996H87.5574L88.808 50.5563C88.8457 50.6832 88.8817 50.8256 88.9161 50.9834C88.9538 51.1412 88.9898 51.3025 89.0241 51.4671C89.0584 51.6318 89.0893 51.7914 89.1168 51.9457C89.1442 52.1001 89.1665 52.2391 89.1837 52.3626C89.2077 52.1945 89.2386 52.0024 89.2763 51.7862C89.314 51.5701 89.3569 51.3505 89.4049 51.1275C89.453 50.9045 89.501 50.6986 89.549 50.5099L90.6298 46.0996H91.8751Z"}),reactExports.createElement("path",{d:"M74.2377 53.6234H69.9766V46.0996H74.2377V47.1392H71.2117V49.1822H74.0472V50.2166H71.2117V52.5787H74.2377V53.6234Z"}),reactExports.createElement("path",{d:"M59.6406 53.6234V46.0996H60.8757V53.6234H59.6406Z"}),reactExports.createElement("path",{d:"M51.5393 46.0996L48.9095 53.6234H47.6024L44.9727 46.0996H46.2386L47.8237 50.8136C47.8717 50.9508 47.9232 51.1172 47.9781 51.3128C48.0364 51.5083 48.0896 51.7056 48.1376 51.9046C48.1891 52.1036 48.2285 52.2802 48.256 52.4346C48.2834 52.2802 48.3211 52.1036 48.3692 51.9046C48.4206 51.7056 48.4738 51.5083 48.5287 51.3128C48.5836 51.1172 48.6351 50.9491 48.6831 50.8084L50.2733 46.0996H51.5393Z"}),reactExports.createElement("path",{d:"M37.2181 53.6234H32.957V46.0996H37.2181V47.1392H34.1921V49.1822H37.0277V50.2166H34.1921V52.5787H37.2181V53.6234Z"}),reactExports.createElement("path",{d:"M21.2284 46.0996C21.8768 46.0996 22.412 46.1785 22.834 46.3363C23.2594 46.4942 23.5751 46.7343 23.7809 47.0568C23.9902 47.3793 24.0948 47.7893 24.0948 48.2868C24.0948 48.6573 24.0262 48.9729 23.889 49.2337C23.7518 49.4944 23.5716 49.7106 23.3486 49.8821C23.1256 50.0536 22.8872 50.1909 22.6333 50.2938L24.769 53.6234H23.3744L21.5577 50.6077H20.3484V53.6234H19.1133V46.0996H21.2284ZM21.146 47.1289H20.3484V49.5888H21.2027C21.7756 49.5888 22.1907 49.4824 22.448 49.2697C22.7088 49.057 22.8392 48.7431 22.8392 48.3279C22.8392 47.8922 22.7002 47.5834 22.4223 47.4016C22.1478 47.2198 21.7224 47.1289 21.146 47.1289Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6207 23.5947C21.2134 21.8455 23.9459 18.6043 25.0121 14.6772C26.2212 14.2391 27.5208 14 28.8674 14C32.2853 14 34.7142 15.3375 36.5475 17.0897L34.3879 19.2515C33.0777 18.0228 31.3014 17.0638 28.8674 17.0638C24.3567 17.0638 20.8351 20.6978 20.8351 25.2131C20.8351 29.7284 24.3567 33.3677 28.8674 33.3677C31.7882 33.3677 33.4557 32.1909 34.5226 31.123C35.3978 30.2469 35.9726 28.9871 36.1901 27.266H28.8674V24.2074H39.1679C39.2767 24.7517 39.3336 25.4101 39.3336 26.1203C39.3336 28.4221 38.707 31.2629 36.6821 33.2899C34.7142 35.3428 32.2025 36.4366 28.8674 36.4366C22.6943 36.4366 17.5 31.4029 17.5 25.2183C17.5 24.667 17.5412 24.1249 17.6207 23.5947ZM88.0391 14.7617H91.2085V35.9905H88.0391V14.7617ZM47.6709 21.9883C43.678 21.9883 40.4258 25.0261 40.4258 29.2097C40.4258 33.3673 43.678 36.4311 47.6709 36.4311C51.6637 36.4311 54.9159 33.3673 54.9159 29.2097C54.9159 25.021 51.6637 21.9883 47.6709 21.9883ZM47.6709 33.585C45.4854 33.585 43.6004 31.781 43.6004 29.2097C43.6004 26.6125 45.4854 24.8343 47.6709 24.8343C49.8563 24.8343 51.7414 26.6125 51.7414 29.2097C51.7414 31.781 49.8563 33.585 47.6709 33.585ZM99.9005 33.5844C98.2899 33.5844 97.1402 32.8482 96.3997 31.3967L106.048 27.3998L105.721 26.5807C105.121 24.9684 103.287 21.9824 99.5432 21.9824C95.8248 21.9824 92.7383 24.9114 92.7383 29.2038C92.7383 33.2526 95.7989 36.4252 99.9005 36.4252C103.21 36.4252 105.121 34.3983 105.913 33.2267L103.453 31.5833C102.635 32.7912 101.516 33.5844 99.9005 33.5844ZM99.6571 24.7766C100.916 24.7766 101.982 25.4039 102.335 26.3111L95.887 28.9913C95.8041 26.1971 98.0413 24.7766 99.6571 24.7766ZM82.7383 23.6005H82.847V22.4237H85.8559V35.3995C85.8559 40.7339 82.7124 42.9215 78.994 42.9215C75.4932 42.9215 73.3906 40.568 72.5983 38.655L75.3586 37.5042C75.8505 38.681 77.052 40.0755 78.994 40.0755C81.3711 40.0755 82.847 38.598 82.847 35.8349V34.7929H82.7383C82.0236 35.669 80.6564 36.4363 78.9371 36.4363C75.3327 36.4363 72.0234 33.2895 72.0234 29.2408C72.0234 25.1609 75.3275 21.9883 78.9371 21.9883C80.6616 21.9883 82.0288 22.7503 82.7383 23.6005ZM75.1928 29.2356C75.1928 31.7499 77.0261 33.585 79.2115 33.585C81.3711 33.585 83.0645 31.7551 83.0645 29.2356C83.0645 26.6902 81.3711 24.8291 79.2115 24.8291C77.0261 24.8291 75.1928 26.6902 75.1928 29.2356ZM63.4677 21.9883C59.4749 21.9883 56.2227 25.0261 56.2227 29.2097C56.2227 33.3673 59.4749 36.4311 63.4677 36.4311C67.4606 36.4311 70.7128 33.3673 70.7128 29.2097C70.7128 25.021 67.4606 21.9883 63.4677 21.9883ZM63.4677 33.585C61.2823 33.585 59.3972 31.781 59.3972 29.2097C59.3972 26.6125 61.2823 24.8343 63.4677 24.8343C65.6532 24.8343 67.5382 26.6125 67.5382 29.2097C67.5434 31.781 65.6584 33.585 63.4677 33.585Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.001 22C8.0625 22 5.29981 20.8555 3.22168 18.7773C1.14453 16.6997 0 13.937 0 10.999C0 8.06104 1.14453 5.29835 3.22168 3.22071C5.29981 1.14259 8.0625 -0.00195312 11.001 -0.00195312C13.9395 -0.00195312 16.7012 1.14258 18.7803 3.22071C20.8584 5.29835 22.002 8.06104 22.002 10.999C22.002 13.937 20.8584 16.6997 18.7803 18.7773C16.7012 20.8555 13.9395 22 11.001 22ZM11.001 2.35694C8.69239 2.35694 6.52149 3.25587 4.88965 4.88819C3.25684 6.52003 2.35742 8.69044 2.35742 10.999C2.35742 15.7656 6.23437 19.6431 11.001 19.6431C13.3096 19.6431 15.4795 18.7437 17.1123 17.1113C18.7441 15.478 19.6436 13.3076 19.6436 10.999C19.6436 8.69044 18.7441 6.52051 17.1123 4.88819C15.4805 3.25587 13.3096 2.35694 11.001 2.35694ZM9.5 6.5C9.5 5.67157 10.1716 5 11 5C11.8284 5 12.5 5.67157 12.5 6.5V11.5C12.5 12.3284 11.8284 13 11 13C10.1716 13 9.5 12.3284 9.5 11.5V6.5ZM11 14C10.1716 14 9.5 14.6716 9.5 15.5C9.5 16.3284 10.1716 17 11 17C11.8284 17 12.5 16.3284 12.5 15.5C12.5 14.6716 11.8284 14 11 14Z"})),GoogleReviewsNotice=()=>{const ea=useOpenSettings("integrationSettings"),{t:na}=useTranslation();return jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsxs(Trans,{t:na,children:["To use Google reviews data source, you need to set the Google Places API key in the integrations section on",jsxRuntimeExports.jsx("a",{href:"#",onClick:ea,rel:"noreferrer",children:"the settings."})]})})},googleReviewsDataSource={type:"googlePlaceReview",name:"Google Reviews",icon:Icon,assetBarData:{icon:SvgDataSources,tooltip:i18next.t("Google Reviews")},fallbackOptions:[{id:"googleReviewsFallbackOptions",optionControls:[[createOptionControl({id:"googleReviewsNotice",control:DataSourceNotActivated,controlProps:{content:jsxRuntimeExports.jsx(GoogleReviewsNotice,{}),icon:SvgNotActivated},styles:{marginTop:"10px"}})],[createOptionControl({id:"OpenSettings",control:OutlineButton$1,controlProps:{children:i18next.t("Open Settings"),size:"small",onClick:()=>{window.location.href=`${editorEnv.routes.settingPage}&tab=integrations`},style:{margin:"10px auto"}}})]]}],optionControls:googleReviewsOptionControls,defaultOptions:{id:"",minRating:0,dateEnd:"",dateStart:""},allowedTier:Tiers.PRO,documentType:"slider",handler:googleReviewsAPIHandler,hasIntegrations:editorEnv.integrations.googleReviews};registerDataSource(wpPostDataSource);registerDataSource(wpPostHandpickedDataSource);registerDataSource(wpPageDataSource);registerDataSource(wpPageHandpickedDataSource);registerDataSource(wooProductsDataSource);registerDataSource(wooHandpickedDataSource);registerDataSource(wpCustomPostTypeDataSource);registerDataSource(googleReviewsDataSource);registerDataSource(facebookDataSource);registerDataSource(instagramDataSource);const optionsSelector$g=getDocumentOptionsByPathAndPrefix("advanced"),optionsAction$f=updateDocumentValueByPathAndPrefix("advanced"),documentAdvancedOptions=[{id:"documentAdvancedFieldset",optionControls:[[createOptionControl({id:"documentClassName",label:i18next.t("{{document}} class name",{document:DocType.getLabel("document",!0)}),control:Input$2,controlProps:{variant:"small"},selector:optionsSelector$g("className"),action:optionsAction$f("className")})],[createOptionControl({id:"documentCustomStyle",label:i18next.t("Custom styles"),control:StyledSyntaxHighlighter,controlProps:{width:"280px",height:"400px"},selector:optionsSelector$g("customStyle"),action:optionsAction$f("customStyle")})],[createOptionControl({id:"customStyleNotice",control:CodeBlock$1,controlProps:{icon:CircleInfoIcon,description:i18next.t('Use "selector" to apply style to the  slider. Example:'),snippet:`selector {
   background: green !important;
}`},styles:{marginTop:"7px"}})]]}],documentAPICallbacksList={domReady:{type:"domReady",label:i18next.t("After DOM ready"),callbackSnippet:`depicter.on('domReady', function() {
   // After DOM ready
});`},init:{type:"init",label:i18next.t("After {{section}} init",{section:DocType.getLabel("section")}),callbackSnippet:`depicter.on('init', function() {
   // After ${DocType.getLabel("document")} init
});`},visibilityChange:{type:"visibilityChange",label:i18next.t("Document visibility changed"),callbackSnippet:`depicter.on('visibilityChange', function() {
   // Document visibility status changed
});`},sectionBackgroundVideoPlay:{type:"sectionBackgroundVideoPlay",label:i18next.t("{{section}} background video started",{section:DocType.getLabel("section",!0)}),callbackSnippet:`depicter.on('sectionBackgroundVideoPlay', function() {
   // On ${DocType.getLabel("section")} background video starts playing
});`},sectionBackgroundVideoPause:{type:"sectionBackgroundVideoPause",label:i18next.t("{{section}} background video paused",{section:DocType.getLabel("section",!0)}),callbackSnippet:`depicter.on('sectionBackgroundVideoPause', function() {
   // On ${DocType.getLabel("section")} background video paused
});`},sectionBackgroundVideoEnded:{type:"sectionBackgroundVideoEnded",label:i18next.t("{{section}} background video paused",{section:DocType.getLabel("section",!0)}),callbackSnippet:`depicter.on('sectionBackgroundVideoEnded', function() {
   // On ${DocType.getLabel("section")} background video paused
});`},slideshowStart:{type:"slideshowStart",label:i18next.t("Slideshow timer started"),callbackSnippet:`depicter.on('slideshowStart', function() {
   // Slide show timer started
});`},slideshowPaused:{type:"slideshowPaused",label:i18next.t("Slideshow timer paused"),callbackSnippet:`depicter.on('slideshowPaused', function() {
   // Slide show timer paused
});`},slideshowTimerUpdate:{type:"slideshowTimerUpdate",label:i18next.t("Slideshow timer value changed"),callbackSnippet:`depicter.on('slideshowTimerUpdate', function() {
   // Slide show timer value changed
});`},slideshowTimerReset:{type:"slideshowTimerReset",label:i18next.t("Slideshow timer reset"),callbackSnippet:`depicter.on('slideshowTimerReset', function() {
   // Slideshow timer reset
});`},breakpointChange:{type:"breakpointChange",label:i18next.t("Responsive breakpoint changed"),callbackSnippet:`depicter.on('breakpointChange', function() {
   // Responsive breakpoint changed
});`},changeStart:{type:"changeStart",label:i18next.t("{{section}} change started",{section:DocType.getLabel("section",!0)}),callbackSnippet:`depicter.on('changeStart', function() {
   // On sliding change transition start
});`},changeEnd:{type:"changeEnd",label:i18next.t("{{section}} change ended",{section:DocType.getLabel("section",!0)}),callbackSnippet:`depicter.on('changeEnd', function() {
   // On sliding change transition end
});`},swipeStart:{type:"swipeStart",label:i18next.t("On swipe gesture start"),callbackSnippet:`depicter.on('swipeStart', function() {
   // On swipe gesture start
});`},swipeMove:{type:"swipeMove",label:i18next.t("On swipe gesture update"),callbackSnippet:`depicter.on('swipeMove', function() {
   // On swipe gesture update
});`},swipeEnd:{type:"swipeEnd",label:i18next.t("On swipe gesture ends"),callbackSnippet:`depicter.on('swipeEnd', function() {
   // On swipe gesture ends
});`}},DocumentAPICallbackItem=({className:ea,label:na,value:ra,type:oa,onRemove:aa,onChange:sa})=>{const{t:la}=useTranslation(),ca=reactExports.useCallback(()=>{aa(oa)},[aa,oa]),ua=reactExports.useCallback(da=>{sa(oa,da)},[oa,sa]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Label$6,{children:na}),jsxRuntimeExports.jsx(PopoverEditButton,{onClick:ca,children:la("Remove")}),jsxRuntimeExports.jsx(StyledSyntaxHighlighter,{mode:"javascript",width:"270px",height:"185px",value:ra,onChange:ua})]})},DocumentAPICallbackItem$1=dt$1(DocumentAPICallbackItem).withConfig({displayName:"DocumentAPICallbackItem",componentId:"sc-tjivh6-0"})(["display:flex;flex-flow:row wrap;justify-content:space-between;align-items:flex-start;margin-bottom:15px;"]),DropdownContainer=dt$1.div.withConfig({displayName:"DocumentAPICallback__DropdownContainer",componentId:"sc-18sar86-0"})([""]),DocumentAPICallbacks=({className:ea,value:na=[],options:ra,onChange:oa})=>{const{t:aa}=useTranslation(),[sa,la]=reactExports.useState(void 0),ca=reactExports.useMemo(()=>{const ga=na.map(fa=>fa.type);return ra.filter(fa=>!ga.includes(fa.value))},[ra,na]);reactExports.useEffect(()=>{la(ca.length?ca[0].value:void 0)},[ca]);const ua=reactExports.useCallback(ga=>{const fa=na.filter(ma=>ma.type!==ga);oa&&oa(fa)},[na,oa]),da=reactExports.useCallback((ga,fa)=>{const ma=na.map(va=>va.type!==ga?va:{...va,value:fa});oa&&oa(ma)},[na,oa]),pa=reactExports.useCallback(()=>{if(!sa)return;const ga=documentAPICallbacksList[sa].label,{callbackSnippet:fa}=documentAPICallbacksList[sa];oa&&oa([...na,{type:sa,label:ga,value:fa}])},[na,sa,oa]),ha=ga=>jsxRuntimeExports.jsx(DocumentAPICallbackItem$1,{onRemove:ua,onChange:da,...ga},ga.type);return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsxs(Field$1,{children:[jsxRuntimeExports.jsxs(DropdownContainer,{children:[jsxRuntimeExports.jsx(Select$1,{size:"small",options:ca,value:sa,onChange:ga=>la(ga)}),jsxRuntimeExports.jsx(SolidButton,{size:"small",color:"primary",onClick:pa,children:aa("ADD")})]}),na.length?na.map(ha):null]})})},DocumentAPICallback=dt$1(DocumentAPICallbacks).withConfig({displayName:"DocumentAPICallback",componentId:"sc-18sar86-1"})(["margin-left:0;margin-right:0;","{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;}"],DropdownContainer),optionsSelector$f=getDocumentOptionsByPathAndPrefix(""),optionsAction$e=updateDocumentValueByPathAndPrefix(""),documentCallbacksOptions=[{id:"documentCallbacksFieldset",optionControls:[[createOptionControl({id:"documentCallbacks",control:DocumentAPICallback,controlProps:{options:Object.values(documentAPICallbacksList).map(ea=>({value:ea.type,label:ea.label}))},selector:optionsSelector$f("callbacks"),action:optionsAction$e("callbacks")})]]}],DocumentNameInput=ea=>{const na=useDispatchAndToHistory(),ra=useSelector(getDocumentInfoUpdatingStatus),{t:oa}=useTranslation(),aa=(sa="")=>{na(renameDocument(sa.trim()))};return jsxRuntimeExports.jsx(Input$2,{...ea,variant:"small",validationOn:"blur",pattern:()=>ra.status!=="failed",validationMessage:oa("An error ocurred while renaming the document"),onBlurChange:!0,onChange:aa})},DocumentSlugInput=ea=>{const na=useDispatchAndToHistory(),ra=useSelector(getDocumentInfoUpdatingStatus),oa=(aa="")=>{na(changeDocumentSlug(aa.trim()))};return jsxRuntimeExports.jsx(Input$2,{...ea,variant:"small",validationOn:"blur",pattern:()=>ra.status!=="failed",validationMessage:ra.status==="failed"?ra.message:void 0,onBlurChange:!0,onChange:oa})},SvgBoxed=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:68.002,height:50.004,viewBox:"0 0 68.002 50.004",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19501,8252a1,1,0,1,1,1,1A1,1,0,0,1,19501,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19489,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19453,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8252Zm66-6a1,1,0,1,1,1,1A1,1,0,0,1,19501,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8246Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19489,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8246Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19453,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8246Zm11-4v-28h46v28Zm1.941-2.031h42.113v-23.939h-42.113ZM19501,8240a1,1,0,1,1,1,1A1,1,0,0,1,19501,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8240Zm-54,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8240Zm48.986-3,3.016-3.015v1.419l-1.6,1.6Zm-5.658,0,8.674-8.673v1.419l-7.254,7.254Zm-5.648,0,14.322-14.321v1.414l-12.908,12.907Zm-5.658,0,18-18.007h1.414l-18,18.007Zm-5.664,0,18.008-18.007h1.414l-18,18.007Zm-5.652,0,18-18.007h1.418l-18.006,18.007Zm-4.7,0v-.949l17.053-17.058h1.414l-18,18.007Zm50-3a1,1,0,1,1,1,1A1,1,0,0,1,19501,8234Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8234Zm-54,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8234Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8234Zm16-3.607L19462.4,8219h1.414L19451,8231.813Zm50-2.394a1,1,0,1,1,1,1A1,1,0,0,1,19501,8228Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8228Zm-54,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8228Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8228Zm16-3.26,5.736-5.741h1.414l-7.15,7.155Zm50-2.741a1,1,0,1,1,1,1A1,1,0,0,1,19501,8222Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8222Zm-54,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8222Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8222Zm16-2.922.078-.078h1.414l-1.492,1.5Zm50-3.079a1,1,0,1,1,1,1A1,1,0,0,1,19501,8216Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8216Zm-54,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8216Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8216Zm66-6a1,1,0,1,1,1,1A1,1,0,0,1,19501,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8210Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19489,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8210Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19453,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8210Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8210Zm66-6a1,1,0,1,1,1,1A1,1,0,0,1,19501,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8204Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19489,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8204Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19453,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8204Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8204Z",transform:"translate(-19435 -8202.998)"})),SvgFullScreen=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:68.002,height:50.004,viewBox:"0 0 68.002 50.004",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19435,8253v-50h68v50Zm1.939-2.174h64.119v-45.651h-64.119Zm59.309-2.824,1.752-1.752v1.414l-.338.338Zm-5.654,0,7.406-7.405v1.4l-6,6Zm-5.658,0L19498,8234.94v1.409L19486.346,8248Zm-5.658,0,18.723-18.722v1.415L19480.691,8248Zm-5.658,0,24.381-24.375v1.41L19475.033,8248Zm-5.652,0,30.033-30.033v1.41L19469.375,8248Zm-5.658,0,35.691-35.691v1.415L19463.723,8248Zm-5.658,0,40-40H19498v.069L19458.064,8248Zm-5.664,0,40-40h1.42l-40,40Zm-5.652,0,40-40h1.414l-40,40Zm-5.33,0-.006,0v-.318l39.686-39.681h1.414l-40,40Zm-.006-5.977,34.027-34.027h1.414L19440,8243.438Zm0-5.663,28.365-28.364h1.418L19440,8237.779Zm0-5.657,22.707-22.707h1.414L19440,8232.121Zm0-5.648,17.059-17.059h1.414L19440,8226.473Zm0-5.663,11.395-11.4h1.42L19440,8220.81Zm0-5.658,5.742-5.737h1.414l-7.156,7.151Zm0-5.658.078-.079h1.414l-1.492,1.493Z",transform:"translate(-19435 -8202.998)"})),SvgFullWidth=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:68.002,height:50.004,viewBox:"0 0 68.002 50.004",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19501,8252a1,1,0,1,1,1,1A1,1,0,0,1,19501,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19489,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19453,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8252Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8252Zm66-6a1,1,0,1,1,1,1A1,1,0,0,1,19501,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8246Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19489,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8246Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19453,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8246Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8246Zm66-6a1,1,0,1,1,1,1A1,1,0,0,1,19501,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19495,8240Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19489,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19483,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19477,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19471,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19465,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19459,8240Zm-6,0a1,1,0,1,1,1,1A1.005,1.005,0,0,1,19453,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19447,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19441,8240Zm-6,0a1,1,0,1,1,1,1A1,1,0,0,1,19435,8240Zm0-5v-32h68v32Zm1.939-2.173h64.113v-27.654h-64.113Zm60.336-2.824.725-.725V8230Zm-5.658,0,6.383-6.383v1.415l-4.963,4.968Zm-5.654,0,12.037-12.036v1.405L19487.373,8230Zm-5.652,0,17.689-17.689v1.41L19481.725,8230Zm-5.664,0,22-22H19498v.064L19476.063,8230Zm-5.652,0,22-22h1.42l-22.006,22Zm-5.664,0,22-22h1.414l-22,22Zm-5.652,0,22-22h1.414l-22,22Zm-5.654,0,22-22h1.41l-22,22Zm-5.662,0,22-22h1.414l-22,22Zm-5.658,0,22-22h1.414l-22,22Zm-.705-4.943,17.059-17.059h1.414L19440,8226.468Zm0-5.663,11.395-11.4h1.414L19440,8220.81Zm0-5.663,5.736-5.732h1.414l-7.15,7.151Zm0-5.653.078-.079h1.41l-1.488,1.488Z",transform:"translate(-19435 -8202.998)"})),layoutModeButtons$1=[{value:"fullwidth",label:i18next.t("Fullwidth"),iconShape:SvgFullWidth},{value:"fullscreen",label:i18next.t("Fullscreen"),iconShape:SvgFullScreen},{value:"boxed",label:i18next.t("Boxed"),iconShape:SvgBoxed}],responsiveButtons=[{value:"default",label:"Desktop",iconShape:SvgDesktop},{value:"tablet",label:"Tablet",iconShape:SvgTablet},{value:"mobile",label:"Mobile",iconShape:SvgMobile}],BreakpointsToggleButtons=ea=>{const{value:na,onChange:ra,...oa}=ea,aa=typeof na=="string"?na:Object.keys(na).filter(la=>!na[la]),sa=la=>{const ca={default:!0,tablet:!0,mobile:!0};Array.isArray(la)||(la=[la]),la.forEach(ua=>{ca[ua]=!1}),ra&&ra(ca)};return jsxRuntimeExports.jsx(ToggleButtons$1,{buttons:responsiveButtons,value:aa,onChange:sa,...oa})},BreakpointsToggleButtons$1=dt$1(BreakpointsToggleButtons).withConfig({displayName:"BreakpointsToggleButtons",componentId:"sc-1pd3gd5-0"})([""]),optionsSelector$e=getDocumentOptionsByPathAndPrefix(""),optionsAction$d=updateDocumentValueByPathAndPrefix(""),generalOptionsSelector$1=getDocumentOptionsByPathAndPrefix("general"),generalOptionsAction=updateDocumentValueByPathAndPrefix("general"),documentGeneralOptions=[{id:"documentInfoFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentName",label:i18next.t("{{document}} name",{document:DocType.getLabel("document",!0)}),control:DocumentNameInput,selector:getDocumentName})],[createOptionControl({id:"documentSlug",label:i18next.t("{{document}} slug",{document:DocType.getLabel("document",!0)}),control:DocumentSlugInput,selector:getDocumentSlug})]]},{id:"documentLayoutFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentLayoutMode",label:i18next.t("{{document}} layout",{document:DocType.getLabel("document",!0)}),control:ToggleButtons$1,controlProps:{tooltip:{options:{place:"top",id:"settingsPanel"}},multiple:!1,buttons:layoutModeButtons$1,buttonWidth:"86px",buttonHeight:"68px"},selector:optionsSelector$e("sectionLayout"),action:optionsAction$d("sectionLayout")})],[createOptionControl({id:"documentStretch",control:SwitchBox$1,controlProps:{label:i18next.t("Force full width (stretch)"),tooltip:{content:i18next.t("It forces the {{document}} to take the full width of the screen.",{document:DocType.getLabel("document")}),options:{place:"top",id:"workspace"}}},selector:optionsSelector$e("stretch"),action:optionsAction$d("stretch"),dependency:ea=>optionsSelector$e("sectionLayout")(ea)==="fullwidth"})],[createOptionControl({id:"documentKeepAspect",control:SwitchBox$1,controlProps:{label:i18next.t("Adaptive height"),tooltip:{content:i18next.t("It keeps the content area aspect ratio on any screen sizes."),options:{place:"top",id:"workspace"}}},selector:optionsSelector$e("general.keepAspect"),action:optionsAction$d("general.keepAspect")})],[createOptionControl({id:"documentMinHeight",label:i18next.t("Min Height"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("general.minHeight"),action:optionsAction$d("general.minHeight"),dependency:ea=>optionsSelector$e("sectionLayout")(ea)==="fullscreen"||optionsSelector$e("general.keepAspect")(ea)===!0,styles:{flex:.5}}),createOptionControl({id:"documentMaxHeight",label:i18next.t("Max Height"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("general.maxHeight"),action:optionsAction$d("general.maxHeight"),dependency:ea=>optionsSelector$e("sectionLayout")(ea)==="fullscreen",styles:{flex:.5}})]]},{id:"documentFullscreenMargin",border:"bottom",optionControls:[[createOptionControl({id:"documentFullscreenLayoutMarginAuto",control:SwitchBox$1,valueFilter:ea=>ea==="auto",onChangeValueFilter:ea=>ea?"auto":0,dependency:ea=>optionsSelector$e("sectionLayout")(ea)==="fullscreen",controlProps:{tooltip:{content:i18next.t("You can use this option to reserve space for other contents like the site menu to appear beside the slider."),options:{place:"top",id:"settingsPanel"}},label:i18next.t("Auto set fullscreen margin")},selector:optionsSelector$e("general.fullscreenMargin"),action:optionsAction$d("general.fullscreenMargin")})],[createOptionControl({id:"documentFullscreenLayoutMargin",label:i18next.t("Fullscreen margin"),control:Number$2,controlProps:{units:"px",valueType:"number"},tooltip:{content:i18next.t("You can use this option to reserve space for other contents like the site menu to appear beside the slider."),options:{place:"top",id:"settingsPanel"}},selector:optionsSelector$e("general.fullscreenMargin"),action:optionsAction$d("general.fullscreenMargin"),dependency:ea=>optionsSelector$e("sectionLayout")(ea)==="fullscreen"&&optionsSelector$e("general.fullscreenMargin")(ea)!=="auto",styles:{flex:.5}})]]},{id:"documentWrapperSizeFieldset",border:"bottom",label:i18next.t("Content wrapper size"),optionControls:[[createOptionControl({id:"documentWrapperWidth",label:i18next.t("{{section}} content width",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.default.width"),action:optionsAction$d("wrapperSize.$resp.default.width")}),createOptionControl({id:"documentWrapperHeight",label:i18next.t("{{section}} content height",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.default.height"),action:optionsAction$d("wrapperSize.$resp.default.height")})],[createOptionControl({id:"documentSideSpace",label:i18next.t("Content side space"),control:Number$2,controlProps:{units:"px",valueType:"number"},tooltip:{content:i18next.t("Specifies the minimum space on left and right sides of content wrapper. This space appears when the screen size becomes smaller that the content wrapper width."),options:{place:"top",id:"settingsPanel"}},selector:optionsSelector$e("wrapperSideSpace"),action:optionsAction$d("wrapperSideSpace"),styles:{flex:.5}})]]},{id:"documentCustomSizeFieldset",label:i18next.t("Responsive content sizes"),border:"bottom",optionControls:[[createOptionControl({id:"documentTabletWrapperWidth",label:i18next.t("Tablet content width"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.tablet.width"),action:optionsAction$d("wrapperSize.$resp.tablet.width")}),createOptionControl({id:"documentTabletWrapperHeight",label:i18next.t("Tablet content height"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.tablet.height"),action:optionsAction$d("wrapperSize.$resp.tablet.height")})],[createOptionControl({id:"documentMobileWrapperWidth",label:i18next.t("Mobile content width"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.mobile.width"),action:optionsAction$d("wrapperSize.$resp.mobile.width")}),createOptionControl({id:"documentMobileWrapperHeight",label:i18next.t("Mobile content height"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$e("wrapperSize.$resp.mobile.height"),action:optionsAction$d("wrapperSize.$resp.mobile.height")})]]},{id:"documentAppearanceFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentBackgroundColor",label:i18next.t("Background color"),control:ColorPicker$1,controlProps:{showHex:!0},selector:optionsSelector$e("general.backgroundColor"),action:optionsAction$d("general.backgroundColor")})],[createOptionControl({id:"documentVerticalMargin",control:BoxSideSizing$1,label:i18next.t("Vertical Margin"),controlProps:{directional:"vertical"},selector:optionsSelector$e("general.margin"),action:optionsAction$d("general.margin")})],[createOptionControl({id:"documentBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("{{document}} Shadow",{document:DocType.getLabel("document",!0)})},optionControls:boxShadowStylesPopoverControls({action:generalOptionsAction,selector:generalOptionsSelector$1})},selector:generalOptionsSelector$1("boxShadow.enable"),action:generalOptionsAction("boxShadow.enable")})],[createOptionControl({id:"documentBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("{{document}} Border",{document:DocType.getLabel("document",!0)})},optionControls:borderStylesPopoverControls({action:generalOptionsAction,selector:generalOptionsSelector$1})},selector:generalOptionsSelector$1("border.enable"),action:generalOptionsAction("border.enable")})],[createOptionControl({id:"documentBorderRadius",control:BoxEdgeSizing$1,label:i18next.t("{{document}} Corner Radius",{document:DocType.getLabel("document",!0)}),selector:generalOptionsSelector$1("borderRadius"),action:generalOptionsAction("borderRadius")})]]},{id:"documentVisibilityFieldset",label:i18next.t("Hide {{document}} responsively",{document:DocType.getLabel("document")}),optionControls:[[createOptionControl({id:"documentVisibility",label:i18next.t("Hide {{document}} on",{document:DocType.getLabel("document")}),control:BreakpointsToggleButtons$1,controlProps:{multiple:!0,deselect:!0},selector:optionsSelector$e("general.visible.$resp"),action:optionsAction$d("general.visible.$resp")})]]}],defaultColors$5={background:"rgba(0,0,0,0.34)",label:"#AAAAAA",icon:"#FFFFFF",hover:{border:"#4980F5"}},colors$5={dark:defaultColors$5},defaultSizing$5={borderRadius:"4px",label:{fontSize:"12px",fontWeight:"600",space:"5px"},hover:{borderWidth:"2px",borderRadius:"4px"}},sizes$5={default:defaultSizing$5},schema$1=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$5,sizes:sizes$5},Symbol.toStringTag,{value:"Module"})),MediaBoxContentWrapper=dt$1.div.withConfig({displayName:"MediaBox__MediaBoxContentWrapper",componentId:"sc-m247ew-0"})([""]),MediaBox=ea=>{const{badge:na,className:ra,mediaType:oa,content:aa,label:sa,onClick:la,value:ca,backgroundColor:ua,contentProps:da}=ea;let pa=aa;return oa==="image"&&(pa=jsxRuntimeExports.jsx(ImageBox$1,{...da,src:aa})),oa==="video"&&(pa=jsxRuntimeExports.jsx(VideoBox$1,{...da,src:aa})),na&&(pa=jsxRuntimeExports.jsx(WithBadge,{symbolsData:na,children:pa})),jsxRuntimeExports.jsxs("div",{className:ra,onClick:ha=>la?.(ha,ca),children:[jsxRuntimeExports.jsx(MediaBoxContentWrapper,{style:{backgroundColor:ua},children:pa}),sa&&jsxRuntimeExports.jsx("p",{children:sa})]})},theme$7=withTheme(schema$1),MediaBox$1=dt$1(MediaBox).withConfig({displayName:"MediaBox",componentId:"sc-m247ew-1"})(["display:flex;flex-direction:column;align-items:center;cursor:pointer;&:hover{","::after{opacity:1;}}","{position:relative;width:100%;height:100%;> div{position:absolute;inset:0;display:flex;}&::after{content:'';pointer-events:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;border:solid;opacity:0;transition:opacity 300ms;}}p{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;}"," "," ",";"],MediaBoxContentWrapper,MediaBoxContentWrapper,({selected:ea})=>ea&&lt$1(["","::after{opacity:1 !important;}"],MediaBoxContentWrapper),theme$7.colors((ea,na)=>lt$1(["color:",";"," ","{background-color:",";&::after{border-color:",";}}"],ea.label,na.setSVGColor!==!1?lt$1(["svg{fill:",";}"],ea.icon):"",MediaBoxContentWrapper,ea.background,ea.hover.border)),theme$7.sizes(ea=>lt$1(["","{border-radius:",";&::after{border-width:",";border-radius:",";}}p{font-size:",";font-weight:",";margin-top:",";}"],MediaBoxContentWrapper,ea.borderRadius,ea.hover.borderWidth,ea.hover.borderRadius,ea.label.fontSize,ea.label.fontWeight,ea.label.space))),defaultColors$4={background:"rgba(0, 0, 0, 0.34)"},colors$4={dark:defaultColors$4},defaultSizing$4={space:"10px"},sizes$4={default:defaultSizing$4},schema=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$4,sizes:sizes$4},Symbol.toStringTag,{value:"Module"})),VisualSelect=ea=>{const{className:na,items:ra,value:oa,onChange:aa,onBadgeClick:sa}=ea;return jsxRuntimeExports.jsx(Choose,{className:na,onChange:aa,value:oa,children:ra.map(la=>jsxRuntimeExports.jsx(MediaBox$1,{...la,onClick:()=>la.badge?sa?.(la.label):!0},la.value))})},theme$6=withTheme(schema),VisualSelect$1=dt$1(VisualSelect).withConfig({displayName:"VisualSelect",componentId:"sc-5ywosh-0"})(["display:grid;",";"],theme$6.sizes((ea,na)=>lt$1(["grid-template-columns:repeat(auto-fill,minmax(",",","));gap:",";","{width:",";height:",";}"],na.itemWidth,na.itemWidth,ea.space,MediaBoxContentWrapper,na.itemWidth,na.itemHeight))),loadingOptions=[{value:"depicter-loading-none",content:jsxRuntimeExports.jsx(Icon$4,{shape:NoneIcon,style:{padding:"20px",opacity:.3,lineHeight:0}}),mediaType:"custom",setSVGColor:!1},{value:"dotFlashing-dark",content:jsxRuntimeExports.jsx(DotFlashing$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"dotReplacing-dark",content:jsxRuntimeExports.jsx(DotReplacing$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"dotStraightSwing-dark",content:jsxRuntimeExports.jsx(DotStraightSwing$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"dotSwing-dark",content:jsxRuntimeExports.jsx(DotSwing$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"audio-dark",content:jsxRuntimeExports.jsx(Audio$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"ballTriangle-dark",content:jsxRuntimeExports.jsx(BallTriangle$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"bars-dark",content:jsxRuntimeExports.jsx(Bars$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"circles-dark",content:jsxRuntimeExports.jsx(Circles$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"grid-dark",content:jsxRuntimeExports.jsx(Grid$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"hearts-dark",content:jsxRuntimeExports.jsx(Hearts$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"oval-dark",content:jsxRuntimeExports.jsx(Oval$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"puff-dark",content:jsxRuntimeExports.jsx(Puff$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"rings-dark",content:jsxRuntimeExports.jsx(Rings$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"spinningCircles-dark",content:jsxRuntimeExports.jsx(SpinningCircles$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"tailSpin-dark",content:jsxRuntimeExports.jsx(TailSpin$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"threeDots-dark",content:jsxRuntimeExports.jsx(ThreeDots$1,{themeMode:"dark"}),mediaType:"custom",setSVGColor:!1},{value:"dotFlashing-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(DotFlashing$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"dotReplacing-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(DotReplacing$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"dotStraightSwing-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(DotStraightSwing$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"dotSwing-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(DotSwing$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"audio-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Audio$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"ballTriangle-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(BallTriangle$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"bars-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Bars$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"circles-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Circles$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"grid-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Grid$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"hearts-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Hearts$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"oval-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Oval$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"puff-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Puff$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"rings-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(Rings$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"spinningCircles-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(SpinningCircles$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"tailSpin-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(TailSpin$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1},{value:"threeDots-light",backgroundColor:"#d7d7d7",content:jsxRuntimeExports.jsx(ThreeDots$1,{themeMode:"light"}),mediaType:"custom",setSVGColor:!1}],optionsSelector$d=getDocumentOptionsByPathAndPrefix("loading"),optionsAction$c=updateDocumentValueByPathAndPrefix("loading"),documentLoadingOptions=[{id:"documentLoadingOnScrollIntoViewOptions",border:"bottom",tier:Tiers.PRO,optionControls:[[createOptionControl({id:"documentLoadingOnScrollIntoView",control:SwitchBox$1,controlProps:{label:i18next.t("Load on scroll into view")},selector:optionsSelector$d("initAfterAppear"),action:optionsAction$c("initAfterAppear")})]],quickTip:{title:i18next.t("Make your page load faster!"),media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/11/lazyload.mp4"},content:i18next.t("Enable this feature to load your {{document}} only when they are about to appear on the screen. This will make your page load faster and improve the user experience.",{document:DocType.getLabel("document")}),options:{locate:"right",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"optionLazyLoad",term:"lazyLoad"}}},{id:"documentLazyLoadingFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentLazyLoadType",label:i18next.t("Lazyload type"),control:Select$1,controlProps:{size:"small",options:[{value:"sequential",label:i18next.t("Load {{sections}} one after another",{sections:DocType.getLabel("sections")})},{value:"all",label:i18next.t("Load all {{sections}} concurrently",{sections:DocType.getLabel("sections")})},{value:"nearby",label:i18next.t("Load nearby {{sections}}",{sections:DocType.getLabel("sections")})}]},selector:optionsSelector$d("lazyLoad.type"),action:optionsAction$c("lazyLoad.type")})],[createOptionControl({id:"documentLazyLoadSlidesCount",label:i18next.t("Number of nearby {{sections}} to load",{sections:DocType.getLabel("sections")}),control:Number$2,controlProps:{valueType:"number"},selector:optionsSelector$d("lazyLoad.nearbyNum"),action:optionsAction$c("lazyLoad.nearbyNum"),dependency:ea=>optionsSelector$d("lazyLoad.type")(ea)==="nearby"})]]},{id:"documentLoadingSymbolFieldset",label:i18next.t("Loading symbol"),optionControls:[[createOptionControl({id:"documentLoadingSymbol",control:VisualSelect$1,controlProps:{items:loadingOptions,itemWidth:"86px",itemHeight:"86px"},selector:optionsSelector$d("loadingSymbol"),action:optionsAction$c("loadingSymbol")})]]}],optionsSelector$c=getDocumentOptionsByPathAndPrefix("navigation"),optionsAction$b=updateDocumentValueByPathAndPrefix("navigation"),generalOptionsSelector=getDocumentOptionsByPathAndPrefix(""),documentNavigationOptions=[{id:"documentNativeScrollNavigationFieldset",border:"bottom",tier:Tiers.PRO,quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/08/scroll-feature-2x.mp4"},title:i18next.t("✨ Elevate your user experience with native scroll navigation!"),content:i18next.t("Enable this feature to navigate between {{sections}} using the browser’s native scroll behavior. This enables a smoother and more natural navigation yet exciting experience for your users.",{sections:DocType.getLabel("sections")}),options:{locate:"right",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"documentNativeScrollNavigation",term:"Native scroll"}},optionControls:[[createOptionControl({id:"documentNativeScrollNavigation",control:SwitchBox$1,controlProps:{label:i18next.t("Native scroll navigation")},tooltip:{content:i18next.t("Enable native scroll navigation. This option allows you to navigate between {{sections}} using the browser’s native scroll behavior. This options is available only when the layout is set to “Full Screen”.",{sections:DocType.getLabel("sections")}),options:{place:"top",id:"settingsPanel"}},disabledWhen:ea=>generalOptionsSelector("sectionLayout")(ea)!=="fullscreen",selector:optionsSelector$c("nativeScrollNavigation"),action:optionsAction$b("nativeScrollNavigation"),modifier:(ea,na)=>{na(optionsAction$b("slideshow.enable")({value:!1})),na(optionsAction$b("loop")({value:!1})),na(optionsAction$b("swipe.enable")({value:!1})),na(optionsAction$b("autoScroll.enable")({value:!1})),na(optionsAction$b("keyboardNavigation")({value:!1})),na(optionsAction$b("mouseWheel")({value:!1}))}})]]},{id:"documentSlideshowFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentSlideshowStatus",control:SwitchBox$1,controlProps:{label:i18next.t("Auto slideshow")},selector:optionsSelector$c("slideshow.enable"),action:optionsAction$b("slideshow.enable"),disabledWhen:ea=>optionsSelector$c("autoScroll.enable")(ea)||optionsSelector$c("nativeScrollNavigation")(ea)})],[createOptionControl({id:"documentSlideshowDuration",control:Number$2,label:i18next.t("Slideshow Duration"),controlProps:{valueType:"number",units:"s"},selector:optionsSelector$c("slideshow.duration"),action:optionsAction$b("slideshow.duration"),styles:{flex:.5},dependency:optionsSelector$c("slideshow.enable")})],[createOptionControl({id:"documentSlideshowPauseOnHover",control:SwitchBox$1,controlProps:{label:i18next.t("Pause on hover")},selector:optionsSelector$c("slideshow.pauseOnHover"),action:optionsAction$b("slideshow.pauseOnHover"),dependency:optionsSelector$c("slideshow.enable")})],[createOptionControl({id:"documentSlideshowRestartOnBlur",control:SwitchBox$1,controlProps:{label:i18next.t("Restart timer on mouse leave")},selector:optionsSelector$c("slideshow.resetTimerOnBlur"),action:optionsAction$b("slideshow.resetTimerOnBlur"),dependency:ea=>optionsSelector$c("slideshow.enable")(ea)&&optionsSelector$c("slideshow.pauseOnHover")(ea)})],[createOptionControl({id:"documentSlideshowPauseAtEnd",control:SwitchBox$1,controlProps:{label:i18next.t("Pause at last {{section}}",{section:DocType.getLabel("section")})},selector:optionsSelector$c("slideshow.pauseOnLastSlide"),action:optionsAction$b("slideshow.pauseOnLastSlide"),dependency:optionsSelector$c("slideshow.enable")})]]},{id:"documentAutoScrollFieldset",border:"bottom",tier:Tiers.PRO,quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/11/marquee.mp4"},title:i18next.t("Elevate your user experience with auto scroll navigation!"),content:i18next.t("Enable this feature to automatically scroll between {{sections}}. This feature provides a smooth and seamless navigation experience for your users.",{sections:DocType.getLabel("sections")}),options:{locate:"right",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"documentAutoScroll",term:"Auto scroll"}},optionControls:[[createOptionControl({id:"documentAutoScrollStatus",control:SwitchBox$1,controlProps:{label:i18next.t("Marquee effect (Smooth slideshow)")},selector:optionsSelector$c("autoScroll.enable"),action:optionsAction$b("autoScroll.enable"),disabledWhen:optionsSelector$c("nativeScrollNavigation"),modifier:(ea,na)=>{na(optionsAction$b("slideshow.enable")({value:!1})),na(optionsAction$b("keyboardNavigation")({value:!1})),na(optionsAction$b("mouseWheel")({value:!1}))}})],[createOptionControl({id:"documentAutoScrollPauseOnHover",control:SwitchBox$1,controlProps:{label:i18next.t("Pause on hover")},selector:optionsSelector$c("autoScroll.pauseOnHover"),action:optionsAction$b("autoScroll.pauseOnHover"),dependency:optionsSelector$c("autoScroll.enable")})],[createOptionControl({id:"documentAutoScrollDirection",control:Select$1,label:i18next.t("Direction"),controlProps:{options:[{label:"Normal",value:"normal"},{label:"Reverse",value:"reverse"}]},selector:optionsSelector$c("autoScroll.direction"),action:optionsAction$b("autoScroll.direction"),dependency:optionsSelector$c("autoScroll.enable")})],[createOptionControl({id:"documentAutoScrollSpeed",control:SliderWithNumber,label:i18next.t("Speed"),controlProps:{min:10,max:500},selector:optionsSelector$c("autoScroll.speed"),action:optionsAction$b("autoScroll.speed"),dependency:optionsSelector$c("autoScroll.enable")})]]},{id:"documentLoopNavFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentLoopNavigation",control:SwitchBox$1,controlProps:{label:i18next.t("Loop navigation")},selector:optionsSelector$c("loop"),action:optionsAction$b("loop"),disabledWhen:optionsSelector$c("nativeScrollNavigation")})]]},{id:"documentSwipeNavigationFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentSwipeGesture",control:SwitchBox$1,controlProps:{label:i18next.t("Swipe navigation")},selector:optionsSelector$c("swipe.enable"),action:optionsAction$b("swipe.enable"),disabledWhen:optionsSelector$c("nativeScrollNavigation")})],[createOptionControl({id:"documentMouseSwipe",control:SwitchBox$1,controlProps:{label:i18next.t("Mouse swipe gesture")},selector:optionsSelector$c("swipe.mouseSwipe"),action:optionsAction$b("swipe.mouseSwipe"),dependency:optionsSelector$c("swipe.enable")})],[createOptionControl({id:"documentTouchSwipe",control:SwitchBox$1,controlProps:{label:i18next.t("Touch swipe gesture")},selector:optionsSelector$c("swipe.touchSwipe"),action:optionsAction$b("swipe.touchSwipe"),dependency:optionsSelector$c("swipe.enable")})],[createOptionControl({id:"documentSwipeDirection",control:Select$1,label:i18next.t("Swiping direction"),controlProps:{size:"small",options:[{value:"auto",label:i18next.t("Same as sliding direction")},{value:"h",label:i18next.t("Horizontal")},{value:"v",label:i18next.t("Vertical")}]},selector:optionsSelector$c("swipe.direction"),action:optionsAction$b("swipe.direction"),dependency:optionsSelector$c("swipe.enable")})]]},{id:"documentDeepLinkFieldset",border:"bottom",tier:Tiers.PRO,optionControls:[[createOptionControl({id:"documentDeepLink",control:SwitchBox$1,controlProps:{label:i18next.t("Enable deep linking")},selector:optionsSelector$c("deepLink.enable"),action:optionsAction$b("deepLink.enable")})],[createOptionControl({id:"documentDeepLinkSlug",label:i18next.t("{{document}} deep link slug",{document:DocType.getLabel("document",!0)}),control:Input$2,controlProps:{variant:"small"},tooltip:{content:i18next.t("This slug will be used to identify the {{document}} in the URL. It should be unique and URL friendly.",{document:DocType.getLabel("document")}),options:{place:"top",id:"settingsPanel"}},defaultValue:`depicter-${editorEnv.documentId}`,selector:optionsSelector$c("deepLink.slug"),action:optionsAction$b("deepLink.slug"),dependency:optionsSelector$c("deepLink.enable")})],[createOptionControl({id:"documentDeepLinkIdentifier",control:Select$1,label:i18next.t("{{section}} identifier",{section:DocType.getLabel("section",!0)}),controlProps:{options:[{label:i18next.t("Use {{section}} id value in URL",{section:DocType.getLabel("section")}),value:"id"},{label:i18next.t("Use {{section}} name value in URL",{section:DocType.getLabel("section")}),value:"name"}]},defaultValue:"id",selector:optionsSelector$c("deepLink.identifier"),action:optionsAction$b("deepLink.identifier"),dependency:optionsSelector$c("deepLink.enable")})]]},{id:"documentNavigationFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentKeyboardNavigation",control:SwitchBox$1,controlProps:{label:i18next.t("Keyboard navigation")},selector:optionsSelector$c("keyboardNavigation"),action:optionsAction$b("keyboardNavigation"),disabledWhen:ea=>optionsSelector$c("autoScroll.enable")(ea)||optionsSelector$c("nativeScrollNavigation")(ea)})],[createOptionControl({id:"documentMouseWheelNavigation",control:SwitchBox$1,controlProps:{label:i18next.t("Mouse wheel navigation")},selector:optionsSelector$c("mouseWheel"),action:optionsAction$b("mouseWheel"),disabledWhen:ea=>optionsSelector$c("autoScroll.enable")(ea)||optionsSelector$c("nativeScrollNavigation")(ea)})]]},{id:"documentRTLLayoutFieldset",border:"bottom",optionControls:[[createOptionControl({id:"documentRTLLayout",control:SwitchBox$1,controlProps:{label:i18next.t("RTL direction layout")},selector:optionsSelector$c("rtl"),action:optionsAction$b("rtl")})]]}],selector$7=getDocumentOptionsByPathAndPrefix("sectionTransition.options"),action$7=updateDocumentValueByPathAndPrefix("sectionTransition.options"),sectionTransitionOptionsSelector=selector$7,sectionTransitionOptionsAction=action$7,sectionTransitionDirection=createOptionControl({id:"sectionTransitionDirection",label:i18next.t("{{section}} transition direction",{section:DocType.getLabel("section",!0)}),control:Select$1,controlProps:{options:[{label:i18next.t("Horizontal"),value:"h"},{label:i18next.t("Vertical"),value:"v"}],size:"small"},defaultValue:"h",selector:selector$7("basic.direction"),action:action$7("basic.direction")}),sectionsSpace=createOptionControl({id:"sectionsSpace",control:Number$2,label:i18next.t("Space between {{sections}}",{sections:DocType.getLabel("sections")}),controlProps:{units:"px",valueType:"number"},defaultValue:0,selector:selector$7("basic.space"),action:action$7("basic.space"),styles:{flex:.5}}),sectionTransitionCommonOptionControls={id:"sectionTransitionCommonFieldset",optionControls:[[sectionTransitionDirection],[sectionsSpace]]},nearbySectionsVisibility=createOptionControl({id:"nearbySectionsVisibility",label:i18next.t("Nearby {{sections}} visibility",{sections:DocType.getLabel("sections")}),control:Select$1,controlProps:{size:"small",options:[{label:i18next.t("Hidden"),value:"hidden"},{label:i18next.t("Partially visible"),value:"partial"},{label:i18next.t("Fully visible"),value:"full"}]},defaultValue:"hidden",selector:selector$7("basic.nearbyVisibility"),action:action$7("basic.nearbyVisibility")}),nearbySectionVisibilityAmount=createOptionControl({id:"nearbySectionsVisibilityAmount",label:i18next.t("Visibility amount"),control:Number$2,controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}],valueType:"object"},defaultValue:{value:10,unit:"%"},selector:selector$7("basic.nearbyVisibilityAmount"),action:action$7("basic.nearbyVisibilityAmount"),dependency:ea=>["partial","full"].includes(selector$7("basic.nearbyVisibility")(ea))}),nearbySectionsVisibilityFieldset={id:"nearbySectionsVisibilityFieldset",border:"top",tier:Tiers.PRO,label:i18next.t("Nearby {{sections}} visibility",{sections:DocType.getLabel("sections")}),quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/11/nearby.mp4"},title:i18next.t("Partially display nearby {{sections}}"),content:i18next.t("This feature allows you to display a portion of the nearby {{sections}}. This can be useful to give a hint to the user that there is more content to see. You can adjust the amount of the nearby {{sections}} that will be visible.",{sections:DocType.getLabel("sections")}),options:{locate:"right",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"nearbySectionsVisibilityFieldset",term:"NearbySectionsVisibility"}},optionControls:[[nearbySectionsVisibility],[nearbySectionVisibilityAmount]]},animrollSectionTransitionType=createOptionControl({id:"animrollSectionTransitionType",control:Select$1,label:i18next.t("{{section}} transition type",{section:DocType.getLabel("section",!0)}),controlProps:{options:[{label:i18next.t("Between animation"),value:"animation"},{label:i18next.t("Continues"),value:"scroll"}],size:"small"},defaultValue:"animation",selector:sectionTransitionOptionsSelector("animroll.transitionType"),action:sectionTransitionOptionsAction("animroll.transitionType"),dependency:ea=>getNavigatorOptions(ea)?.slickType==="slide"}),animrollSectionTransitionOptionControls={id:"animrollSectionAnimationOptionsFieldset",optionControls:[[animrollSectionTransitionType]]},cubeSectionTransitionShadow=createOptionControl({id:"cubeSectionTransitionShadow",label:i18next.t("Light effect"),control:SliderWithNumber,controlProps:{min:0,max:100,multiply:100,numberProps:{units:"%",valueType:"number"}},defaultValue:.8,selector:sectionTransitionOptionsSelector("cube.shadow"),action:sectionTransitionOptionsAction("cube.shadow")}),cubeSectionTransitionDolly=createOptionControl({id:"cubeSectionTransitionDolly",label:i18next.t("Dolly effect"),control:SliderWithNumber,controlProps:{min:0,max:1e3,numberProps:{units:"px",valueType:"number"}},defaultValue:500,selector:sectionTransitionOptionsSelector("cube.dolly"),action:sectionTransitionOptionsAction("cube.dolly")}),cubeSectionTransitionOptionControls={id:"cubeSectionTransitionOptionsFieldset",optionControls:[[cubeSectionTransitionShadow],[cubeSectionTransitionDolly]]},maskSectionTransitionParallax=createOptionControl({id:"maskSectionTransitionParallax",label:i18next.t("Mask parallax effect"),control:SliderWithNumber,defaultValue:0,controlProps:{min:0,max:100,multiply:100,numberProps:{valueType:"number",units:"%"}},selector:sectionTransitionOptionsSelector("mask.maskParallax"),action:sectionTransitionOptionsAction("mask.maskParallax")}),maskSectionTransitionOptionControls={id:"maskSectionTransitionOptionsFieldset",optionControls:[[maskSectionTransitionParallax]]},transformSectionTransitionType=createOptionControl({id:"transformSectionTransitionType",label:i18next.t("Transform type"),control:Select$1,controlProps:{size:"small",options:[{value:"flow",label:"3D flow"},{value:"wave",label:"3D wave"},{value:"fadeFlow",label:"Fade and 3D flow"},{value:"fadeWave",label:"Fade and 3D wave"},{value:"fadeBasic",label:"Plain fade"}]},defaultValue:"flow",selector:sectionTransitionOptionsSelector("transform.transformType"),action:sectionTransitionOptionsAction("transform.transformType")}),transformSectionTransitionOptionControls={id:"transformSectionTransitionOptionsFieldset",optionControls:[[transformSectionTransitionType]]},sectionTransitionOptionControlsMap=new Map,registerSectionTransitionOptionControls=(ea,na,ra,oa)=>sectionTransitionOptionControlsMap.set(ea,{name:na,optionControls:ra,tier:oa});registerSectionTransitionOptionControls("basic","Basic",[sectionTransitionCommonOptionControls,nearbySectionsVisibilityFieldset]);registerSectionTransitionOptionControls("fade","Fade",[]);registerSectionTransitionOptionControls("animroll","Animative",[...excludeControls([sectionTransitionCommonOptionControls],["sectionsSpace"]),animrollSectionTransitionOptionControls],Tiers.EARLY);registerSectionTransitionOptionControls("mask","Parallax Mask",[maskSectionTransitionOptionControls,sectionTransitionCommonOptionControls],Tiers.EARLY);registerSectionTransitionOptionControls("transform","3D & 2D Transforming",[transformSectionTransitionOptionControls,sectionTransitionCommonOptionControls,nearbySectionsVisibilityFieldset],Tiers.EARLY);registerSectionTransitionOptionControls("cube","Cube",[cubeSectionTransitionOptionControls,sectionTransitionCommonOptionControls],Tiers.EARLY);const SectionTransitionOptions=({excludeControlsList:ea})=>{const na=useSelector(getSectionTransitionType),ra=sectionTransitionOptionControlsMap.get(na),oa=useUserTierAuthCallback();if(!ra)return null;let{optionControls:aa}=ra;return aa=ea?.length?excludeControls(aa,ea):aa,jsxRuntimeExports.jsx(OCManager,{fieldsetComponent:Fieldset$1,tierChecker:oa,optionControls:aa,container:".dp-options-container"})},animrollVideo="data:video/mp4;base64, ",fadeVideo="data:video/mp4;base64, ",basicVide="data:video/mp4;base64, ",cubeVideo="data:video/mp4;base64, ",maskVideo="data:video/mp4;base64, ",transformVideo="data:video/mp4;base64, ",videosMap={animroll:animrollVideo,fade:fadeVideo,basic:basicVide,cube:cubeVideo,mask:maskVideo,transform:transformVideo},badgeData={position:{top:"5px",right:"5px"},symbols:jsxRuntimeExports.jsx(ProBadge$1,{})},SelectTransitionSelect=ea=>{const{exclude:na=[]}=ea,ra=useOpenUpgradeToPro(),oa=useUserTierAuthCallback(),aa=reactExports.useMemo(()=>Array.from(sectionTransitionOptionControlsMap,([sa,{name:la,tier:ca}])=>({value:sa,label:la,badge:!ca||oa(ca)?void 0:badgeData,mediaType:"video",content:videosMap[sa],contentProps:{autoPlay:!1,playOnHover:!0,fitMode:"contain"}})).filter(({value:sa})=>!na?.includes(sa)),[oa,na]);return jsxRuntimeExports.jsx(VisualSelect$1,{...ea,items:aa,itemWidth:"135px",itemHeight:"75px",onBadgeClick:sa=>(ra({source:"depicter_editor",medium:"options",content:"section_transitions",term:sa}),!1)})},optionsSelector$b=getDocumentOptionsByPathAndPrefix(""),optionsAction$a=updateDocumentValueByPathAndPrefix(""),sectionTransitionOptions=[{id:"sectionTransitionTypeFieldset",label:i18next.t("{{section}} transition options",{section:DocType.getLabel("section",!0)}),optionControls:[[createOptionControl({id:"sectionTransitionType",label:i18next.t("Transition effect"),control:SelectTransitionSelect,selector:optionsSelector$b("sectionTransition.type"),action:optionsAction$a("sectionTransition.type"),styles:{marginBottom:"15px"}})]]},createOptionControl({id:"sectionTransitionOptionsControls",control:SectionTransitionOptions}),{id:"documentSlidingFrictionFieldset",label:i18next.t("Transition by swipe"),border:"both",tier:Tiers.PRO,quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/11/swipe_speed.mp4"},title:i18next.t("Have a smoother swipe experience with contolling the speed of transitions"),content:i18next.t("This feature allows you to control the speed of transitions when swiping between {{sections}}. This way, you can match the speed of transitions to the content of your {{sections}}.",{sections:DocType.getLabel("sections")}),options:{locate:"right",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"documentSlidingFrictionFieldset",term:"Friction"}},optionControls:[[createOptionControl({id:"sectionTransitionSlickType",control:Select$1,label:i18next.t("Transition mode"),controlProps:{size:"small",options:[{label:i18next.t("Sliding"),value:"slide"},{label:i18next.t("Smooth scrolling"),value:"scroll"}]},selector:optionsSelector$b("navigator.slickType"),action:optionsAction$a("navigator.slickType")})],[createOptionControl({id:"sectionTransitionSlickerFriction",label:i18next.t("Speed of transitions by swiping"),control:SliderWithNumber,controlProps:{min:10,max:100,multiply:100},selector:optionsSelector$b("navigator.slickerSpeed"),action:optionsAction$a("navigator.slickerSpeed")})]]},{id:"documentSlidingAnimationFieldset",border:"bottom",label:i18next.t("Transition by controls"),tier:Tiers.PRO,optionControls:[[createOptionControl({id:"sectionTransitionEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},selector:optionsSelector$b("navigator.easing"),action:optionsAction$a("navigator.easing")})],[createOptionControl({id:"sectionTransitionDuration",label:i18next.t("{{section}} transition duration",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"s",valueType:"number"},selector:optionsSelector$b("navigator.duration"),action:optionsAction$a("navigator.duration"),styles:{flex:.5}})]]}],commonDocumentOptions=[{id:"general",label:i18next.t("General"),icon:SvgGeneral,optionControls:documentGeneralOptions},{id:"navigation",label:i18next.t("Navigation"),icon:SvgNavigation,optionControls:documentNavigationOptions},{id:"transition",label:i18next.t("{{section}} transition",{section:DocType.getLabel("section",!0)}),icon:SvgSectionTransition,optionControls:sectionTransitionOptions},{id:"loading",label:i18next.t("Loading options"),icon:SvgSliderLoading,optionControls:documentLoadingOptions},{id:"advanced",label:i18next.t("Advanced"),icon:SvgAdvanced,optionControls:documentAdvancedOptions},{id:"callback",label:i18next.t("Callbacks"),icon:SvgCallbacks,optionControls:documentCallbacksOptions}],optionsSelector$a=getDocumentOptionsByPathAndPrefix(""),optionsAction$9=updateDocumentValueByPathAndPrefix(""),commonNewDocumentOptions$1=[{id:"createDocumentOptionsFieldset",optionControls:[[createOptionControl({id:"documentName",label:i18next.t("{{document}} name",{document:DocType.getLabel("document",!0)}),control:DocumentNameInput,selector:getDocumentName,styles:{marginBottom:"20px"}})],[createOptionControl({id:"documentWrapperWidth",label:i18next.t("{{section}} content width",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$a("wrapperSize.$resp.default.width"),action:optionsAction$9("wrapperSize.$resp.default.width")}),createOptionControl({id:"documentWrapperHeight",label:i18next.t("{{section}} content height",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector$a("wrapperSize.$resp.default.height"),action:optionsAction$9("wrapperSize.$resp.default.height")})],[createOptionControl({id:"documentLayoutMode",label:i18next.t("{{document}} layout",{document:DocType.getLabel("document",!0)}),control:ToggleButtons$1,controlProps:{tooltip:{options:{place:"top",id:"createDocumentModal"}},multiple:!1,buttons:layoutModeButtons$1,buttonWidth:"86px",buttonHeight:"68px"},selector:optionsSelector$a("sectionLayout"),action:optionsAction$9("sectionLayout")})],[createOptionControl({id:"createDocumentNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("You can also find these settings in the options tab later.")},styles:{marginTop:"7px"}})]]}],SectionName=({className:ea,value:na,onChange:ra})=>{const oa=useSelector(getSectionNamesMap),aa=useSelector(getActiveSectionName),{t:sa}=useTranslation(),la=reactExports.useCallback(ca=>ca?aa===ca||!Array.from(oa.values()).includes(ca.trim()):!1,[aa,oa]);return jsxRuntimeExports.jsx(Input$2,{className:ea,variant:"small",value:na,pattern:la,onChange:ra,validationOn:"blur",validationMessage:sa("{{section}} name must be unique.",{section:DocType.getLabel("section",!0)}),onBlurChange:!0})},SvgCenter=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:18.001,viewBox:"0 0 28 18.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19809,8270H19781v-18h28v18Zm-26.994-1h26v-16h-26Zm17-3v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm8-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-19781.002 -8252.001)"})),SvgContain=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:18.001,viewBox:"0 0 28 18.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19809,8270H19781v-18h28v18Zm-26.994-1h26v-16h-26Zm19.994-1v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm14-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-19781.002 -8252.001)"})),SvgCover=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:24.002,viewBox:"0 0 28 24.002",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19806,8276v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm25-4H19781v-16h28v16Zm-26.994-1h26v-14h-26Zm24-1v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-6v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-19781.002 -8252.001)"})),SvgCustom=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:16,viewBox:"0 0 28 16",...ea},reactExports.createElement("path",{id:"crop",d:"M17105,4118v-16h28v16Zm1-1h26v-14h-26Zm15.836-1v-1.9h-5.049a1.9,1.9,0,0,1-1.895-1.892v-5.057h-1.9v-1.26h1.9V4104h1.264v8.212a.632.632,0,0,0,.631.628H17125v1.264h-1.9v1.9Zm-5-3.973a.313.313,0,0,1,0-.447l4.42-4.42a.264.264,0,0,0-.057,0h-3.787v-1.26h3.787a1.842,1.842,0,0,1,1.023.3l1.313-1.315a.322.322,0,0,1,.447,0,.314.314,0,0,1,0,.447l-1.291,1.29a1.889,1.889,0,0,1,.4,1.17v3.788l-1.264,0v-3.792a.591.591,0,0,0-.057-.258l-4.492,4.5a.322.322,0,0,1-.447,0Z",transform:"translate(-17105 -4102)"})),SvgStretch=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:18.001,viewBox:"0 0 28 18.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19809,8270H19781v-18h28v18Zm-26.994-1h26v-16h-26Zm24-1v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-19781.002 -8252.001)"})),SvgTile=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:28,height:18.001,viewBox:"0 0 28 18.001",...ea},reactExports.createElement("defs",null),reactExports.createElement("path",{className:"a",d:"M19809,8270H19781v-18h28v18Zm-26.994-1h26v-16h-26Zm24-1v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-4v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm22-2v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-4,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Zm-2,0v-1h-1v-1h1v1h1v1Z",transform:"translate(-19781.002 -8252.001)"})),fillModeButtons=[{value:"custom",label:i18next.t("Custom"),iconShape:SvgCustom},{value:"cover",label:i18next.t("Cover"),iconShape:SvgCover},{value:"contain",label:i18next.t("Contain"),iconShape:SvgContain},{value:"none",label:i18next.t("Center"),iconShape:SvgCenter},{value:"fill",label:i18next.t("Stretch"),iconShape:SvgStretch},{value:"tile",label:i18next.t("Tile"),iconShape:SvgTile}],SectionBackgroundImageFitMode=({value:ea="cover"})=>{const na=useSelector(getActiveSection),{hasDynamicTag:ra}=useSelector(getActiveSectionOptions),oa=useDispatch(),aa=reactExports.useCallback(la=>{oa(changeSectionImageBackgroundFitMode(na,la))},[na,oa]),sa=reactExports.useMemo(()=>ra?fillModeButtons.filter(la=>la.value!=="custom"):fillModeButtons,[ra]);return jsxRuntimeExports.jsx(ToggleButtons$1,{multiple:!1,buttons:sa,buttonWidth:"39px",buttonHeight:"47px",tooltip:{options:{place:"top",id:"workspace"}},value:ea,onChange:aa})},SectionCropBackground=({...ea})=>{const na=useSelector(getActiveSection),ra=useSelector(getSectionCropperToolData(na),equal),{isCropping:oa,openCropTool:aa,closeCropperTool:sa}=useMediaCropperTool(na),{t:la}=useTranslation(),ca=reactExports.useCallback(()=>{!oa&&ra?aa({...ra,disableCropperArea:!0,update:cropSection,preventOutsideCloseSelector:".depicter-crop-section-background"}):sa()},[oa,ra,aa,sa]);return jsxRuntimeExports.jsx("div",{className:"depicter-crop-section-background",children:jsxRuntimeExports.jsx(OutlineButton$1,{onClick:ca,size:"small",icon:jsxRuntimeExports.jsx(SvgCrop,{}),...ea,children:oa?la("Close Cropper Tool"):"Crop Background"})})},SectionCropBackground$1=dt$1(SectionCropBackground).withConfig({displayName:"SectionCropBackground",componentId:"sc-1x818uf-0"})(["width:100%;justify-content:center;"]),SectionRemoveBackground=ea=>{const na=useDispatch(),ra=useSelector(getActiveSection),{t:oa}=useTranslation(),{children:aa,className:sa}=ea,la=()=>{reactDomExports.unstable_batchedUpdates(()=>{na(removeSectionMediaSource(ra))})};return jsxRuntimeExports.jsx(OutlineButton$1,{className:sa,onClick:la,icon:jsxRuntimeExports.jsx(SvgTrash,{}),size:"small",children:aa||oa("Remove background image")})},SectionRemoveBackground$1=dt$1(SectionRemoveBackground).withConfig({displayName:"SectionRemoveBackground",componentId:"sc-3wlt9g-0"})(["width:100%;justify-content:center;"]),action$6=updateActiveSectionValueByPathAndPrefix("background"),selector$6=getActiveSectionValueByPathAndPrefix("background"),hasBackgroundImage$1=ea=>selector$6("image.src")(ea),hasBackgroundVideo=ea=>selector$6("video.src")(ea)||selector$6("video.embedType")(ea),hasSelfHostedBackgroundVideo=ea=>selector$6("video.src")(ea)&&!selector$6("video.embedType")(ea),hasEmbedBackgroundVideo=ea=>selector$6("video.embedType")(ea),hasDynamicMedia$1=ea=>getActiveSectionValueByPathAndPrefix("options")("hasDynamicTag")(ea),sectionBackgroundOptions=[{id:"sectionBackground",border:"bottom",label:i18next.t("Background"),optionControls:[[createOptionControl({id:"sectionBackgroundColor",label:i18next.t("Background Color"),control:ColorPicker$1,controlProps:{showHex:!0},action:action$6("color"),selector:selector$6("color")})],[createOptionControl({id:"sectionBackgroundImgFillMode",label:i18next.t("Background Fill Mode"),control:SectionBackgroundImageFitMode,selector:selector$6("image.fitMode"),dependency:hasBackgroundImage$1})],[createOptionControl({id:"sectionBackgroundVideoFillMode",label:i18next.t("Background Fill Mode"),control:ToggleButtons$1,controlProps:{buttons:fillModeButtons.filter(ea=>!["tile","custom"].includes(ea.value)),buttonWidth:"47px",buttonHeight:"47px",tooltip:{options:{place:"top",id:"workspace"}}},selector:selector$6("video.fitMode"),action:action$6("video.fitMode"),dependency:hasSelfHostedBackgroundVideo})],[createOptionControl({id:"sectionBackgroundImgPosition",label:i18next.t("Background Position"),control:OriginPicker$1,controlProps:{valueType:"css"},selector:selector$6("image.position"),action:action$6("image.position"),dependency:ea=>hasBackgroundImage$1(ea)&&selector$6("image.fitMode")(ea)!=="custom"})],[createOptionControl({id:"sectionBackgroundVideoPosition",label:i18next.t("Background Position"),control:OriginPicker$1,controlProps:{valueType:"css"},selector:selector$6("video.position"),action:action$6("video.position"),dependency:hasSelfHostedBackgroundVideo})],[createOptionControl({id:"sectionBackgroundImgCrop",control:SectionCropBackground$1,dependency:ea=>hasBackgroundImage$1(ea)&&selector$6("image.fitMode")(ea)==="custom"&&!hasDynamicMedia$1(ea)})]]}],sectionBackgroundImageOptions=[{id:"sectionBackgroundImageOptions",border:"bottom",optionControls:[[createOptionControl({id:"sectionBackgroundImageAlt",label:i18next.t("Background Image Alt"),control:Input$2,controlProps:{variant:"small"},selector:selector$6("image.alt"),action:action$6("image.alt"),dependency:hasBackgroundImage$1})],[createOptionControl({id:"sectionBackgroundImageRemove",control:SectionRemoveBackground$1,dependency:hasBackgroundImage$1})]]}],sectionBackgroundVideoOptions=[{id:"sectionBackgroundVideoOptions",border:"bottom",optionControls:[[createOptionControl({id:"sectionBackgroundVideoEmbedSource",control:EmbedVideoUrl,controlProps:{typeProp:"embedType",sourceProp:"src"},label:i18next.t("Embed Video URL"),selector:selector$6("video"),action:action$6("video",!0),dependency:hasEmbedBackgroundVideo})],[createOptionControl({id:"sectionBackgroundVideoLoop",control:SwitchBox$1,controlProps:{label:i18next.t("Loop video")},selector:selector$6("video.loop"),action:action$6("video.loop"),dependency:hasBackgroundVideo})],[createOptionControl({id:"sectionBackgroundVideoGoNextSlide",control:SwitchBox$1,controlProps:{label:i18next.t("Go to next {{section}} (at the end)",{section:DocType.getLabel("section")})},selector:selector$6("video.goNextSlide"),action:action$6("video.goNextSlide"),dependency:hasBackgroundVideo})],[createOptionControl({id:"sectionBackgroundVideoPause",control:SwitchBox$1,controlProps:{label:i18next.t("Pause on {{section}} change",{section:DocType.getLabel("section")})},selector:selector$6("video.pause"),action:action$6("video.pause"),dependency:hasBackgroundVideo})],[createOptionControl({id:"sectionBackgroundVideoRemove",control:SectionRemoveBackground$1,controlProps:{children:i18next.t("Remove background video")},dependency:hasBackgroundVideo})]]}],parallaxAction=updateActiveSectionValueByPathAndPrefix(""),parallaxSelector=getActiveSectionValueByPathAndPrefix(""),sectionBackgroundParallaxOptions=[{id:"sectionBackgroundParallaxOptions",border:"bottom",tier:Tiers.PRO,label:i18next.t("Background Parallax Effect"),quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2024/08/parallax-feature-2x.mp4"},title:i18next.t("Discover the premium parallax feature!"),content:i18next.t("Add depth to your design by creating a parallax effect. Add background movement when the user scrolls."),options:{locate:"left",space:10,showOnLocked:!0},upgradeUTM:{source:"depicter_editor",medium:"options_quickTip",content:"sectionBackgroundParallaxOptions",term:"Parallax"}},optionControls:[[createOptionControl({id:"sectionParallax",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Parallax effect")},optionControls:parallaxPopoverControls({selector:parallaxSelector,action:parallaxAction},["2d","3d"]),overridePopoverInViewPort:{yPlacement:"bottom"}},hideOnIntersection:!0,selector:parallaxSelector("parallax.enabled"),action:parallaxAction("parallax.enabled"),dependency:ea=>hasBackgroundImage$1(ea)||hasSelfHostedBackgroundVideo(ea)})]]}],KenBurnsPopover=({className:ea,value:na})=>{const{t:ra}=useTranslation(),oa=useSelector(getActiveSection),aa=useSelector(getKenBurnsCropperToolData(oa),equal),{openCropTool:sa,closeCropperTool:la}=useMediaCropperTool(oa),{setOpen:ca}=reactExports.useContext(PopoverOpenStateContext),ua=reactExports.useMemo(()=>({type:"kenBurns",phase:"out",params:na}),[na]),da=reactExports.useCallback(()=>{sa({...aa,disableCropperArea:!0,updateOnChange:!0,preventOutsideCloseSelector:".depicter-popover-wrapper",update:cropKenBurns,onFinish:()=>ca(!1),onCancel:()=>ca(!1)})},[aa,sa,ca]);return reactExports.useEffect(()=>{da()},[da]),jsxRuntimeExports.jsx(PreviewAnimationButton$1,{size:"small",className:ea,value:ua,onBeforeAnimationStart:la,onAfterAnimationEnd:da,disableAnimOnChange:!0,children:ra("Play Animation")})},PlayKenburnsButton=dt$1(KenBurnsPopover).withConfig({displayName:"PlayKenburnsButton",componentId:"sc-10s1vmu-0"})([""]),action$5=updateActiveSectionValueByPathAndPrefix(""),selector$5=getActiveSectionValueByPathAndPrefix(""),hasBackgroundImage=ea=>selector$5("background.image.src")(ea),hasDynamicMedia=ea=>getActiveSectionValueByPathAndPrefix("options")("hasDynamicTag")(ea),kenburnsOptions=[{id:"kenburnsPopover",optionControls:[[createOptionControl({id:"kenburnsDuration",label:i18next.t("Duration"),control:Number$2,controlProps:{units:"ms"},action:action$5("kenBurns.params.duration"),selector:selector$5("kenBurns.params.duration")}),createOptionControl({id:"kenburnsDelay",label:i18next.t("Delay"),control:Number$2,controlProps:{units:"ms"},action:action$5("kenBurns.params.delay"),selector:selector$5("kenBurns.params.delay")})],[createOptionControl({id:"kenburnsEase",control:EasingFunctionSelect$1,controlProps:{easingType:"js"},action:action$5("kenBurns.params.easing"),selector:selector$5("kenBurns.params.easing")})],[createOptionControl({id:"kenburnsPlay",control:PlayKenburnsButton,selector:selector$5("kenBurns.params")})]]}],sectionKenburnsOptions=[{id:"sectionKenburnsFieldset",border:"bottom",optionControls:[[createOptionControl({id:"sectionKenburns",control:Popover$1,controlProps:{optionControls:kenburnsOptions,preventCloseOnOutside:".depicter-media-cropper",switchBoxProps:{label:i18next.t("Ken-burns effect")}},selector:selector$5("kenBurns.enable"),action:action$5("kenBurns.enable"),dependency:ea=>hasBackgroundImage(ea)&&selector$5("background.image.fitMode")(ea)==="custom"&&!hasDynamicMedia(ea)})]]}],action$4=updateActiveSectionValueByPathAndPrefix("background"),selector$4=getActiveSectionValueByPathAndPrefix("background"),hasBackground=ea=>selector$4("image.src")(ea)||selector$4("video.src")(ea)||selector$4("video.embedType")(ea),sectionOverlayAndFilterOptions=[{id:"sectionOverlayOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionOverlayColor",label:i18next.t("Overlay Color"),control:ColorPicker$1,action:action$4("overlay"),selector:selector$4("overlay"),dependency:hasBackground})],[createOptionControl({id:"sectionBGFilter",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Background Filter")},optionControls:filterStylesPopoverControls({action:action$4,selector:selector$4})},action:action$4("filter.enable"),selector:selector$4("filter.enable"),dependency:hasBackground})]]}],action$3=updateActiveSectionValueByPathAndPrefix(""),selector$3=getActiveSectionValueByPathAndPrefix(""),sectionSlideshowOptions=[{id:"sectionSlideshowOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionSlideshow",control:SwitchBox$1,controlProps:{label:i18next.t("Stop slideshow on this {{section}}",{section:DocType.getLabel("section")})},action:action$3("options.pauseSlideshow"),selector:selector$3("options.pauseSlideshow")})],[createOptionControl({id:"sectionSlideshowDuration",label:i18next.t("Slideshow Duration"),control:Number$2,controlProps:{units:"s",valueType:"number"},action:action$3("options.slideshowDuration"),selector:ea=>selector$3("options.slideshowDuration")(ea)??ea.document.options.navigation?.slideshow?.duration??5,dependency:ea=>!selector$3("options.pauseSlideshow")(ea),styles:{flex:.5}})]]}],SvgHide=ea=>reactExports.createElement("svg",{width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M10.627 10.8135L9.5293 9.7168C8.61914 10.1748 7.58984 10.4336 6.49805 10.4336C3.4082 10.4336 0.800781 8.35742 0 5.52197C0.361328 4.23828 1.0957 3.11035 2.07422 2.26025L1.09375 1.27979C0.800781 0.986328 0.800781 0.513672 1.09375 0.220215C1.38281 -0.0727539 1.85938 -0.0727539 2.15234 0.220215L3.33008 1.39795C4.27539 0.89502 5.35352 0.609863 6.49805 0.609863C9.58984 0.609863 12.1973 2.68604 13 5.52197C12.623 6.85449 11.8477 8.01855 10.8105 8.87891L11.6855 9.75488C11.9785 10.0439 11.9785 10.5205 11.6855 10.8135C11.5391 10.96 11.3496 11.0332 11.1562 11.0332C10.9648 11.0332 10.7734 10.96 10.627 10.8135ZM1.57422 5.52197C1.91602 6.43555 2.51953 7.25391 3.30078 7.85156C4.22461 8.56055 5.32812 8.93652 6.49805 8.93652C7.1582 8.93652 7.79883 8.81592 8.39844 8.58398L7.52734 7.71338C7.2168 7.87402 6.86523 7.96484 6.49414 7.96484C5.25586 7.96484 4.24609 6.96045 4.24609 5.71826C4.24609 5.34521 4.33789 4.99414 4.5 4.68457L3.13672 3.32275C2.43555 3.90723 1.89258 4.67285 1.57422 5.52197ZM9.74609 7.81348C10.502 7.21875 11.0859 6.4165 11.4219 5.52197C11.0781 4.60742 10.4746 3.79004 9.69727 3.19141C8.77344 2.48291 7.66602 2.10645 6.49805 2.10645C5.78125 2.10645 5.0918 2.24805 4.44922 2.51953L5.5918 3.66016C5.86914 3.53857 6.17383 3.47168 6.49414 3.47168C7.73438 3.47168 8.74023 4.47559 8.74023 5.71826C8.74023 6.03906 8.67188 6.34424 8.55273 6.62012L9.74609 7.81348Z"})),SvgShow=ea=>reactExports.createElement("svg",{width:13,height:10,viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M0 4.9126C0.802734 2.07666 3.4082 0.000488281 6.5 0.000488281C9.5918 0.000488281 12.2012 2.07666 13 4.9126C12.2012 7.74854 9.5918 9.82422 6.5 9.82422C3.4082 9.82422 0.802734 7.74854 0 4.9126ZM3.30469 2.58154C2.51953 3.18066 1.91797 3.99854 1.57422 4.9126C1.91797 5.82666 2.51953 6.64404 3.30469 7.24365C4.22656 7.95117 5.33203 8.32764 6.5 8.32764C7.66797 8.32764 8.77539 7.95117 9.69922 7.24365C10.4785 6.64404 11.0801 5.82666 11.4238 4.9126C11.0801 3.99854 10.4785 3.18066 9.69922 2.58154C8.77539 1.87402 7.66797 1.49756 6.5 1.49756C5.33203 1.49756 4.22656 1.87402 3.30469 2.58154ZM4.25 5.10889C4.25 3.86621 5.25781 2.86182 6.49609 2.86182C7.73633 2.86182 8.74414 3.86621 8.74414 5.10889C8.74414 6.35107 7.73633 7.35596 6.49609 7.35596C5.25781 7.35596 4.25 6.35107 4.25 5.10889Z"})),SvgScheduled=ea=>reactExports.createElement("svg",{width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...ea},reactExports.createElement("path",{d:"M0 6.4707C0.015625 2.89648 2.91602 0 6.49805 0C10.0781 0 12.9844 2.89648 13 6.4707C12.9844 10.0483 10.0781 12.9448 6.49805 12.9448C2.91602 12.9448 0.015625 10.0483 0 6.4707ZM2.92773 2.91504C1.97656 3.86621 1.44531 5.12695 1.43945 6.4707C1.44531 7.81543 1.97656 9.07959 2.92773 10.0273C3.88477 10.9785 5.15039 11.5015 6.49805 11.5015C7.8457 11.5015 9.11328 10.9785 10.0703 10.0273C11.0215 9.07959 11.5508 7.81543 11.5566 6.4707C11.5508 5.12695 11.0215 3.86621 10.0703 2.91504C9.11328 1.96729 7.8457 1.44336 6.49805 1.44336C5.15039 1.44336 3.88477 1.96729 2.92773 2.91504ZM8.2793 8.97363L6.4043 7.89258C6.33984 7.85547 6.2832 7.81006 6.23438 7.7583C5.9707 7.65234 5.7832 7.39209 5.7832 7.0874V3.48438C5.7832 3.08545 6.10547 2.76367 6.50195 2.76367C6.90039 2.76367 7.22266 3.08545 7.22266 3.48438V6.70166L8.99805 7.72559C9.3418 7.92383 9.45898 8.36377 9.26172 8.71045C9.12695 8.94141 8.88477 9.06982 8.63672 9.06982C8.51367 9.06982 8.39062 9.03906 8.2793 8.97363Z"})),visibilityButtons=[{value:"visible",label:i18next.t("Visible"),iconShape:SvgShow},{value:"hidden",label:i18next.t("Hidden"),iconShape:SvgHide},{value:"scheduled",label:i18next.t("Scheduled"),iconShape:SvgScheduled}],action$2=updateActiveSectionValueByPathAndPrefix(""),selector$2=getActiveSectionValueByPathAndPrefix(""),sectionVisibilityAndSchedulingOptions=[{id:"sectionVisibilityAndSchedulingOptionControls",border:"bottom",tier:Tiers.PRO,optionControls:[[createOptionControl({id:"sectionVisibility",control:ToggleButtons$1,label:i18next.t("{{section}} Visibility And Scheduling",{section:DocType.getLabel("section",!0)}),controlProps:{buttons:visibilityButtons},action:action$2("visibility"),selector:selector$2("visibility")})],[createOptionControl({id:"sectionVisibilityScheduleStart",control:DatePicker$1,controlProps:{label:i18next.t("Start"),resetButton:!0,nowButton:!1,notSetLabel:i18next.t("Pick Date"),resetLabel:i18next.t("Clear"),inViewportOptions:{xPlacement:"insideRight",yPlacement:"bottom",space:{right:-15}}},action:action$2("visibilitySchedule.start"),selector:selector$2("visibilitySchedule.start"),dependency:ea=>selector$2("visibility")(ea)==="scheduled"})],[createOptionControl({id:"sectionVisibilityScheduleEnd",control:DatePicker$1,controlProps:{label:i18next.t("End"),resetButton:!0,nowButton:!1,notSetLabel:i18next.t("Pick Date"),resetLabel:i18next.t("Clear"),inViewportOptions:{xPlacement:"insideRight",yPlacement:"bottom",space:{right:-15}}},action:action$2("visibilitySchedule.end"),selector:selector$2("visibilitySchedule.end"),dependency:ea=>selector$2("visibility")(ea)==="scheduled"})]]}],action$1=updateActiveSectionValueByPathAndPrefix(""),selector$1=getActiveSectionValueByPathAndPrefix(""),sectionGeneralOptionControls=[{id:"sectionGeneralOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionName",label:i18next.t("{{section}} Name",{section:DocType.getLabel("section",!0)}),control:SectionName,action:action$1("name"),selector:selector$1("name")})]]}],sectionLinkOptions=[{id:"sectionLinkOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionLink",control:SwitchBox$1,controlProps:{label:i18next.t("Link {{section}}",{section:DocType.getLabel("section")})},action:action$1("options.url.enable"),selector:selector$1("options.url.enable")})],[createOptionControl({id:"sectionLinkURL",control:Input$2,label:i18next.t("Go to URL"),controlProps:{placeholder:"http:// or https://",variant:"small"},action:action$1("options.url.path"),selector:selector$1("options.url.path"),dependency:ea=>selector$1("options.url.enable")(ea)})],[createOptionControl({id:"sectionLinkNewTab",control:SwitchBox$1,controlProps:{label:i18next.t("Open in new tab")},action:action$1("options.url.openInNewTab"),selector:selector$1("options.url.openInNewTab"),dependency:ea=>selector$1("options.url.enable")(ea)})]]}],sectionGeneralOptions=[...sectionGeneralOptionControls,...sectionBackgroundOptions,...sectionKenburnsOptions,...sectionOverlayAndFilterOptions,...sectionBackgroundImageOptions,...sectionBackgroundVideoOptions,...sectionLinkOptions,...sectionBackgroundParallaxOptions,...sectionSlideshowOptions,...sectionVisibilityAndSchedulingOptions],ToggleCustomWrapperSize=({onChange:ea,...na})=>{const ra=useDispatchAndToHistory(),oa=useSelector(getActiveSection),aa=reactExports.useCallback(sa=>{ra(toggleSectionUseCustomWrapperSize({id:oa,enable:sa}))},[ra,oa]);return jsxRuntimeExports.jsx(SwitchBox$1,{...na,onChange:aa})},SectionToggleCustomWrapperSize=dt$1(ToggleCustomWrapperSize).withConfig({displayName:"SectionToggleCustomWrapperSize",componentId:"sc-1moj4b3-0"})([""]),action=updateActiveSectionValueByPathAndPrefix(""),selector=getActiveSectionValueByPathAndPrefix(""),sectionWrapperWidthOption=createOptionControl({id:"sectionWrapperWidth",label:i18next.t("Content width"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:ea=>getActiveSectionWrapperResponsiveSize(ea).width,action:action("wrapperSize.width"),dependency:getActionSectionHasCustomWrapperSize}),sectionWrapperHeightOption=createOptionControl({id:"sectionWrapperHeight",label:i18next.t("Content height"),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:ea=>getActiveSectionWrapperResponsiveSize(ea).height,action:action("wrapperSize.height"),dependency:getActionSectionHasCustomWrapperSize}),sectionAdvancedOptions=[{id:"sectionWrapperOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionCustomWrapperSize",control:SectionToggleCustomWrapperSize,controlProps:{label:i18next.t("Customize {{section}} content size",{section:DocType.getLabel("section")})},selector:getActionSectionHasCustomWrapperSize})],[sectionWrapperWidthOption,sectionWrapperHeightOption]]},{id:"sectionCSSOptionControls",border:"bottom",optionControls:[[createOptionControl({id:"sectionClassName",control:Input$2,label:i18next.t("Section class name"),controlProps:{variant:"small",onBlurChange:!0},selector:selector("className"),action:action("className")})],[createOptionControl({id:"sectionCustomStyle",control:StyledSyntaxHighlighter,label:i18next.t("Custom style"),controlProps:{width:"234px",height:"400px"},selector:selector("options.customStyle"),action:action("options.customStyle")})],[createOptionControl({id:"sectionCustomStyleNotice",control:CodeBlock$1,controlProps:{icon:CircleInfoIcon,description:i18next.t('Use "selector" to apply style to this slide. Example:'),snippet:`selector {
   background: green !important;
}`}})]]}],BackgroundAnimationCheckNotice=()=>{const ea=getActiveSectionValueByPathAndPrefix("background"),[{categories:{selected:na}}]=useAnimationsData(),ra=useSelector(sa=>ea("image.src")(sa)),oa=useSelector(sa=>ea("video.src")(sa)||ea("video.embedType")(sa)),aa=ra||oa||na?.id.includes("wizard");return lodashExports.isEmpty(aa)?jsxRuntimeExports.jsx(LabelWithIcon$1,{icon:CircleInfoIcon,iconLocation:"before",variant:"boxed",children:i18next.t("This {{section}} does not have a background. Background animations will not be visible.",{section:DocType.getLabel("section")})}):null},sectionAnimationOptions=[createOptionControl({id:"sectionAnimation",control:AnimationOptions,controlProps:{children:jsxRuntimeExports.jsx(BackgroundAnimationCheckNotice,{}),tier:Tiers.PRO,excludedControls:["animationWaitForAction"],excludedTabs:["loop"],hasWizard:!0,action:updateActiveAnimation,selector:getActiveAnimationByPath,wizardProps:{id:"animationWizard",quickTip:{media:{type:"video",src:"https://wp-api.depicter.com/wp-content/uploads/2025/06/animation-wizard.mp4"},title:i18next.t("Apply animations to your elements with ease!"),content:i18next.t("Create stunning animations for your elements with our intuitive wizard. You are one click away from making your content come to life!"),options:{locate:"left",space:10}}}}})],defaultColors$3={background:"rgba(0, 0, 0, 0.34)",title:"#FFFFFF",hover:{border:"#4980F5"}},colors$3={dark:defaultColors$3},defaultSizing$3={border:"5px",title:{fontSize:"11px",fontWeight:"600"}},sizes$3={default:defaultSizing$3},Scheme=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$3,sizes:sizes$3},Symbol.toStringTag,{value:"Module"})),ComingSoon=({className:ea})=>{const{t:na}=useTranslation();return jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(Label$6,{children:na("Soon")})})},theme$5=withTheme(scheme$1u),ComingSoonBadge=dt$1(ComingSoon).withConfig({displayName:"ComingSoon",componentId:"sc-1jsg7jr-0"})(["display:inline-flex;align-items:center;padding:1px 2px;","{margin-bottom:0;line-height:14px;text-transform:uppercase;}"," ",""],Label$6,theme$5.colors(ea=>lt$1(["background:",";> span{color:",";}"],ea.comingSoon.background,ea.comingSoon.color)),theme$5.sizes(ea=>lt$1(["border-radius:",";> span{font-size:",";font-weight:",";}"],ea.comingSoon.border,ea.comingSoon.fontSize,ea.comingSoon.fontWeight))),Title$1=dt$1(Label$6).withConfig({displayName:"DataSourceCategory__Title",componentId:"sc-1byuigw-0"})([""]),Container$4=dt$1.div.withConfig({displayName:"DataSourceCategory__Container",componentId:"sc-1byuigw-1"})([""]),DataSourcesCategory=({className:ea,type:na})=>{const ra=useUpdateSection("dataSource"),oa=reactExports.useMemo(()=>getDataSourceIcon(na),[na]),aa=reactExports.useMemo(()=>getDataSourceName(na),[na]),sa=reactExports.useMemo(()=>getDataSourceOptions(na),[na]),la=reactExports.useMemo(()=>getDataSourceAllowedTier(na),[na]),ca=reactExports.useMemo(()=>getDataSourceComingSoonStatus(na),[na]),ua=!useUserTierAuth(la||""),da=reactExports.useMemo(()=>ua||ca,[ca,ua]),pa=useOpenUpgradeToPro(),ha=useDispatch(),ga=reactExports.useCallback(()=>{pa({source:"depicter_editor",medium:"data_sources",content:na,term:aa})},[aa,pa,na]),fa=reactExports.useCallback(()=>{da||(ra({type:na,params:sa}),ha(setAssetPanelTab("dataSource")))},[da,ra,na,sa,ha]);let ma=jsxRuntimeExports.jsxs(Container$4,{onClick:fa,children:[jsxRuntimeExports.jsx(Icon$4,{shape:oa}),jsxRuntimeExports.jsx(Title$1,{children:aa})]});const va=reactExports.useMemo(()=>({position:{top:"18px",right:"15px"},symbols:ca?jsxRuntimeExports.jsx(ComingSoonBadge,{}):jsxRuntimeExports.jsx(ProBadge$1,{})}),[ca]);return da&&(ma=jsxRuntimeExports.jsx(WithBadge,{symbolsData:va,hover:!0,onClick:ca?void 0:ga,children:ma})),jsxRuntimeExports.jsx("div",{className:`${ea} ${ca?"depicter-is-soon":""}`,children:ma})},theme$4=withTheme(Scheme),DataSourceCategory=dt$1(DataSourcesCategory).withConfig({displayName:"DataSourceCategory",componentId:"sc-1byuigw-2"})(["","{display:flex;align-items:center;padding:0 15px;height:50px;cursor:pointer;transition:box-shadow 300ms;","{display:flex;margin-right:10px;}}&.depicter-is-soon{","{cursor:revert;}}","{margin-bottom:0;}","{","{opacity:0.34;&:hover{box-shadow:revert;}}}"," ",""],Container$4,Icon$4,Container$4,Title$1,WithBadge,Container$4,theme$4.colors(ea=>lt$1(["","{background:",";&:hover{box-shadow:0 0 0 2px ",";}}","{color:",";}"],Container$4,ea.background,ea.hover.border,Title$1,ea.title)),theme$4.sizes(ea=>lt$1(["","{border-radius:",";}","{font-size:",";font-weight:",";}"],Container$4,ea.border,Title$1,ea.title.fontSize,ea.title.fontWeight))),Container$3=dt$1.div.withConfig({displayName:"DataSourcesCategoryList__Container",componentId:"sc-kx5nca-0"})([""]),ComingSoonItem=dt$1.div.withConfig({displayName:"DataSourcesCategoryList__ComingSoonItem",componentId:"sc-kx5nca-1"})(["height:50px;background:rgb(0 0 0 / 17%);padding:0 14px;display:flex;align-items:center;border-radius:5px;color:#6d6d6d;&::before{content:'';display:block;width:25px;height:25px;border:dashed #555555;border-radius:50%;margin-right:10px;}"]),DataSourcesCategoryList=({className:ea})=>{const{t:na}=useTranslation(),ra=getDataSourcesType(),oa=reactExports.useCallback(aa=>jsxRuntimeExports.jsx(DataSourceCategory,{type:aa},aa),[]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Label$6,{display:"block",tooltip:{content:na("You can create {{sections}} dynamically from different data sources. For example, choose WordPress Posts to create {{section}} from each of the posts in your website.",{sections:DocType.getLabel("sections"),section:DocType.getLabel("section")}),options:{id:"workspace",place:"top"}},children:na("Data sources")}),jsxRuntimeExports.jsxs(Container$3,{children:[ra&&ra.map(oa),jsxRuntimeExports.jsx(ComingSoonItem,{children:na("More sources soon!")})]})]})},DataSourcesCategoryList$1=dt$1(DataSourcesCategoryList).withConfig({displayName:"DataSourcesCategoryList",componentId:"sc-kx5nca-2"})(["margin:0 15px;","{display:flex;flex-direction:column;margin-top:10px;}","{margin-bottom:5px;}"],Container$3,DataSourceCategory),DataSourceOptions$1=({className:ea,type:na})=>{const{t:ra}=useTranslation(),oa=useDispatchAndToHistory(),aa=useSelector(getActiveSection),sa=getDataSourceIcon(na),la=getDataSourceName(na),ca=getDataSourceOptionControls(na),ua=getDataSourceFallbackOptions(na),da=getDataSourceHasIntegrations(na),pa=reactExports.useCallback(()=>{oa(removeDataSource({id:aa})),oa(removeSectionsDataSourcesData(aa))},[aa,oa]);return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(OptionsSectionHeader$1,{icon:jsxRuntimeExports.jsx("img",{src:sa,alt:"",width:30}),label:la,backLabel:ra("Remove data source"),onBack:pa}),jsxRuntimeExports.jsx(OCManager,{optionControls:da?ca:ua,fieldsetComponent:Fieldset$1})]})},DataSourceOptions$2=dt$1(DataSourceOptions$1).withConfig({displayName:"DataSourceOptions",componentId:"sc-zf5mi0-0"})(["","{margin:-15px 0 15px 0;width:calc(100% + 30px);}"],OptionsSectionHeader$1),DataSourcesOptions=({className:ea})=>{const na=useSelector(getActiveSectionDataSourceType),ra=!!na;return jsxRuntimeExports.jsx("div",{className:ea,children:ra?jsxRuntimeExports.jsx(DataSourceOptions$2,{type:na}):jsxRuntimeExports.jsx(DataSourcesCategoryList$1,{})})},DataSourceOptions=dt$1(DataSourcesOptions).withConfig({displayName:"DataSourceOptions",componentId:"sc-15ltj6d-0"})([""]),sectionDataSourceOptions=[createOptionControl({id:"sectionDataSource",control:DataSourceOptions})],sectionOptionGroups=[{id:"general",label:i18next.t("General"),icon:SvgGeneral,optionControls:sectionGeneralOptions},{id:"advanced",label:i18next.t("Advanced"),icon:SvgAdvanced,optionControls:sectionAdvancedOptions},{id:"animation",label:i18next.t("Animation"),icon:SvgAnimation,optionControls:sectionAnimationOptions},{id:"dataSource",label:i18next.t("Data Source"),icon:SvgDataSources,optionControls:sectionDataSourceOptions}],optionControls$3={newDocumentOptions:commonNewDocumentOptions$1,documentOptionGroups:commonDocumentOptions,sectionOptionGroups};DocType.registerOptionControls("slider",optionControls$3);DocType.registerOptionControls("custom",optionControls$3);const generalOptions=sectionOptionGroups.find(ea=>ea.id==="general"),advancedOptions=sectionOptionGroups.find(ea=>ea.id==="advanced"),animationOptions=sectionOptionGroups.find(ea=>ea.id==="animation"),isTeaserSection=ea=>getActiveSectionType(ea)==="teaser",optionsSelector$9=getDocumentOptionsByPathAndPrefix("documentTypeOptions"),optionsAction$8=updateDocumentValueByPathAndPrefix("documentTypeOptions"),teaserOptions=[{id:"teaserOptionsFieldset",border:"bottom",label:i18next.t("Teaser options"),tier:Tiers.PRO,optionControls:[[createOptionControl({id:"enableTeaser",control:SwitchBox$1,controlProps:{label:i18next.t("Enable teaser")},selector:optionsSelector$9("teaser.enabled"),action:optionsAction$8("teaser.enabled"),dependency:ea=>isTeaserSection(ea)})],[{...sectionWrapperWidthOption,label:i18next.t("Teaser Width"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea)},{...sectionWrapperHeightOption,label:i18next.t("Teaser Height"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea)}],[createOptionControl({id:"teaserVerticalSpace",control:Number$2,label:i18next.t("Vertical space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$9("teaser.vSpace"),action:optionsAction$8("teaser.vSpace"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea),styles:{flex:.5}}),createOptionControl({id:"teaserHorizontalSpace",control:Number$2,label:i18next.t("Horizontal space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$9("teaser.hSpace"),action:optionsAction$8("teaser.hSpace"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea),styles:{flex:.5}})],[createOptionControl({id:"teaserPlacement",control:OriginPicker$1,label:i18next.t("Teaser placement"),tooltip:{content:i18next.t("The placement of the teaser section in relation to the section it is attached to. This can be used to create a teaser that appears above or below the section."),options:{place:"top",id:"workspace"}},selector:optionsSelector$9("teaser.placement"),action:optionsAction$8("teaser.placement"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea)})]]},{id:"teaserBehaviorFieldset",label:i18next.t("Teaser behavior"),tier:Tiers.PRO,border:"bottom",optionControls:[[createOptionControl({id:"teaserBehavior",control:Select$1,defaultValue:"always",label:i18next.t("Teaser behavior"),controlProps:{options:[{value:"afterClose",label:i18next.t("Show teaser after the popup closed")},{value:"always",label:i18next.t("Always show the teaser")}]},selector:optionsSelector$9("teaser.behavior"),action:optionsAction$8("teaser.behavior"),dependency:ea=>isTeaserSection(ea)&&optionsSelector$9("teaser.enabled")(ea)})]]}],sectionOptions=[{...generalOptions,optionControls:optionControlsPipe(ea=>insertBeforeFieldset(ea,"sectionBackground",teaserOptions),ea=>modifyControlsByIds(ea,["sectionName","sectionLink","sectionLinkURL","sectionLinkNewTab","sectionSlideshow","sectionSlideshowDuration","sectionVisibility","sectionVisibilityScheduleStart","sectionVisibilityScheduleEnd"],na=>({...na,dependency:ra=>na.dependency?na.dependency(ra)&&!isTeaserSection(ra):!isTeaserSection(ra)})),ea=>modifyControlsByIds(ea,["sectionBackgroundColor"],na=>({...na,dependency:ra=>isTeaserSection(ra)?optionsSelector$9("teaser.enabled")(ra):!0})))(generalOptions.optionControls)},{...advancedOptions,optionControls:optionControlsPipe(ea=>modifyControlsByIds(ea,["sectionCustomWrapperSize","sectionWrapperWidth","sectionWrapperHeight"],na=>({...na,dependency:ra=>na.dependency?na.dependency(ra)&&!isTeaserSection(ra):!isTeaserSection(ra)})))(advancedOptions.optionControls)},animationOptions],DisplayAnimationController=()=>{const ea=useSelector(getProvisionalAnimations),{refs:na}=reactExports.useContext(HTMLElementRefsContext),ra=reactExports.useRef(null),oa=na.livePreviewIframe,aa=()=>{ra.current&&(ra.current(),ra.current=null)};return reactExports.useEffect(()=>{aa();const sa=oa?.contentDocument?.querySelector(".depicter");if(!sa||!ea.length)return aa;const{data:{type:la,phase:ca,params:ua}}=ea[0],da=ca==="loop",pa=da?"out":ca,ha=animator.animate(la,sa,pa,ua,void 0,{loop:!0,direction:da?ua.timelineOptions?.direction||"alternate":"normal"});return ra.current=ha.reset,aa},[oa,ea]),null},optionsSelector$8=ea=>geAnimationByPath(ea,na=>na.document.options.documentTypeOptions.displayOptions.animation,"default"),optionsAction$7=updateDocumentValueByPathAndPrefix("documentTypeOptions.displayOptions.animation","default"),DocumentAnimationOptions=dt$1(AnimationOptions).withConfig({displayName:"animation__DocumentAnimationOptions",componentId:"sc-eydqdp-0"})(["margin:0;","{margin:0 -15px 10px -15px;width:calc(100% + 30px);> div{margin-left:0;width:71px;}}"],OptionsSectionHeader$1),documentAnimationOptionControls=[{id:"documentAnimationOptions",optionControls:[[createOptionControl({id:"documentAnimationNoticeBox",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("Choose the animation style for the {{document}} when it opens and closes.",{document:DocType.getLabel("document")}),variant:"boxed"},styles:{marginBottom:"10px"}})],[createOptionControl({id:"documentAnimationOptionControl",control:DocumentAnimationOptions,controlProps:{selector:optionsSelector$8,action:optionsAction$7,excludedTabs:["loop"],tabs:initialState$2.tabs.map(ea=>ea.value==="in"?{...ea,name:i18next.t("Open")}:ea.value==="out"?{...ea,name:i18next.t("Close")}:ea),excludedControls:["animationWaitForAction","animationInteractive","animationWait","animationPreviewButton","animationPreviewAllButton","animationClearButton","animationExportButton"]}})],[createOptionControl({id:"AnimationControllerControl",control:DisplayAnimationController})]]}],optionsSelector$7=getDocumentOptionsByPathAndPrefix("documentTypeOptions.displayOptions"),optionsAction$6=updateDocumentValueByPathAndPrefix("documentTypeOptions.displayOptions"),behaviorOptionControls$1=[{id:"documentPopupBehavior",border:"bottom",label:i18next.t("{{document}} close behavior",{document:DocType.getLabel("document",!0)}),optionControls:[[createOptionControl({id:"closeByEsc",control:SwitchBox$1,controlProps:{label:i18next.t("Close popup by ESC button")},selector:optionsSelector$7("closeByEsc"),action:optionsAction$6("closeByEsc")})],[createOptionControl({id:"closeByClickOutside",control:SwitchBox$1,controlProps:{label:i18next.t("Close popup on click outside")},selector:optionsSelector$7("clickOutsideClose"),action:optionsAction$6("clickOutsideClose")})]]},...optionControlsPipe(ea=>excludeFieldsets(ea,["documentNavigationFieldset","documentNativeScrollNavigationFieldset"]))(documentNavigationOptions)],defaultColors$2={browser:{border:"#6A6A6A",pointer:"#AAAAAA"},placement:{background:"rgba(170, 170, 170, 0.18)",pointer:"#6A6A6A",hover:{background:"#222222",border:"#707070",pointer:"#AAAAAA"}}},colors$2={dark:defaultColors$2},defaultSizing$2={},sizes$2={default:defaultSizing$2},scheme$2=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$2,sizes:sizes$2},Symbol.toStringTag,{value:"Module"})),Header=dt$1.div.withConfig({displayName:"BrowserShape__Header",componentId:"sc-1mdwfdb-0"})([""]),Container$2=dt$1.div.withConfig({displayName:"BrowserShape__Container",componentId:"sc-1mdwfdb-1"})([""]),Pointer$2=dt$1.span.withConfig({displayName:"BrowserShape__Pointer",componentId:"sc-1mdwfdb-2"})([""]),BrowserShape=ea=>{const{className:na,children:ra}=ea;return jsxRuntimeExports.jsxs("div",{className:na,children:[jsxRuntimeExports.jsxs(Header,{children:[jsxRuntimeExports.jsx(Pointer$2,{}),jsxRuntimeExports.jsx(Pointer$2,{}),jsxRuntimeExports.jsx(Pointer$2,{})]}),jsxRuntimeExports.jsx(Container$2,{children:ra})]})},theme$3=withTheme(scheme$2),BrowserShape$1=dt$1(BrowserShape).withConfig({displayName:"BrowserShape",componentId:"sc-1mdwfdb-3"})(["border-radius:5px;width:260px;","{display:flex;align-items:center;gap:2px;padding:5px;}","{padding:8px;}","{display:inline-block;width:4px;height:4px;border-radius:50%;}",""],Header,Container$2,Pointer$2,theme$3.colors(ea=>lt$1(["border:1px solid ",";","{border-bottom:1px solid ",";}","{background:",";}"],ea.browser.border,Header,ea.browser.border,Pointer$2,ea.browser.pointer))),SvgPopup=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:76,height:35,viewBox:"0 0 76 35",...ea},reactExports.createElement("g",{id:"popup",transform:"translate(-288 -428)"},reactExports.createElement("rect",{id:"Rectangle_7561","data-name":"Rectangle 7561",width:76,height:35,rx:4,transform:"translate(288 428)"}),reactExports.createElement("path",{id:"Path_1824","data-name":"Path 1824",d:"M10690,3105a3,3,0,0,1-3-3v-9a3,3,0,0,1,3-3h9a3,3,0,0,1,3,3v9a3,3,0,0,1-3,3Zm-.188-3.75h9.375l-3.279-4.687-2.8,4-1.419-2.126Zm.938-5.626a1.875,1.875,0,1,0,1.877-1.876A1.878,1.878,0,0,0,10690.749,3095.625ZM10649,3103a1,1,0,1,1,0-2h8a1,1,0,1,1,0,2Zm0-4a1,1,0,1,1,0-2h21a1,1,0,1,1,0,2Zm0-4a1,1,0,1,1,0-2h21a1,1,0,1,1,0,2Zm58-9.5a1.5,1.5,0,1,1,1.5,1.5A1.5,1.5,0,0,1,10707,3085.5Z",transform:"translate(-10350 -2652)"}))),Pointer$1=dt$1.span.withConfig({displayName:"PlacementItem__Pointer",componentId:"sc-euc8t6-0"})([""]),PlacementItem$2=ea=>{const{className:na,selected:ra,value:oa,onClick:aa}=ea,sa=reactExports.useCallback(()=>{ra||aa?.(oa)},[aa,ra,oa]);return jsxRuntimeExports.jsx("div",{className:na,onClick:sa,children:ra?jsxRuntimeExports.jsx(Icon$4,{shape:SvgPopup}):jsxRuntimeExports.jsx(Pointer$1,{})})},theme$2=withTheme(scheme$2),PlacementItem$3=dt$1(PlacementItem$2).withConfig({displayName:"PlacementItem",componentId:"sc-euc8t6-1"})(["position:relative;width:76px;height:35px;border-radius:4px;transition:all 150ms ease-out;cursor:",";","{rect{fill:#fff;}}","{position:absolute;width:11px;height:11px;border-radius:50%;transition:all 150ms ease-out;"," "," "," "," "," "," "," "," ","}",""],ea=>ea.selected?"initial":"pointer",Icon$4,Pointer$1,({value:ea})=>ea==="tl"&&lt$1(["top:7px;left:7px;"]),({value:ea})=>ea==="tc"&&lt$1(["top:7px;left:50%;transform:translateX(-50%);"]),({value:ea})=>ea==="tr"&&lt$1(["top:7px;right:7px;"]),({value:ea})=>ea==="ml"&&lt$1(["top:50%;left:7px;transform:translateY(-50%);"]),({value:ea})=>ea==="mc"&&lt$1(["top:50%;left:50%;transform:translateY(-50%) translateX(-50%);"]),({value:ea})=>ea==="mr"&&lt$1(["top:50%;right:7px;transform:translateY(-50%);"]),({value:ea})=>ea==="bl"&&lt$1(["bottom:7px;left:7px;"]),({value:ea})=>ea==="bc"&&lt$1(["bottom:7px;left:50%;transform:translateX(-50%);"]),({value:ea})=>ea==="br"&&lt$1(["bottom:7px;right:7px;"]),theme$2.colors(ea=>lt$1(["background-color:",";","{background-color:",";}&:hover{background-color:",";box-shadow:0 0 0 1px ",";","{background-color:",";}}"],ea.placement.background,Pointer$1,ea.placement.pointer,ea.placement.hover.background,ea.placement.hover.border,Pointer$1,ea.placement.hover.pointer))),Container$1=dt$1.div.withConfig({displayName:"PopupPlacement__Container",componentId:"sc-18jjz8a-0"})([""]),originKeys$1=[...originsMap$2.keys()],PopupPlacement$1=ea=>{const{className:na,value:ra,onChange:oa}=ea,aa=sa=>{const la=sa===ra;return jsxRuntimeExports.jsx(PlacementItem$3,{value:sa,selected:la,onClick:oa},sa)};return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(BrowserShape$1,{children:jsxRuntimeExports.jsx(Container$1,{children:originKeys$1.map(aa)})})})},PopupPlacement$2=dt$1(PopupPlacement$1).withConfig({displayName:"PopupPlacement",componentId:"sc-18jjz8a-1"})(["","{display:flex;flex-flow:row wrap;gap:7px;}"],Container$1),optionsSelector$6=getDocumentOptionsByPathAndPrefix("documentTypeOptions"),optionsAction$5=updateDocumentValueByPathAndPrefix("documentTypeOptions"),popupPlacement=createOptionControl({id:"popupPlacement",control:PopupPlacement$2,label:i18next.t("Popup Placement"),defaultValue:"mc",selector:optionsSelector$6("displayOptions.placement"),action:optionsAction$5("displayOptions.placement")}),popupSpaceControls=[{id:"popupSpaceControls",border:"bottom",label:i18next.t("Popup Side Spaces"),optionControls:[[createOptionControl({id:"popupSpaceAbove",control:Number$2,label:i18next.t("Above space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$6("displayOptions.vSpace"),action:optionsAction$5("displayOptions.vSpace"),dependency:ea=>optionsSelector$6("displayOptions.placement")(ea).includes("t"),styles:{flex:.5}}),createOptionControl({id:"popupSpaceBelow",control:Number$2,label:i18next.t("Below space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$6("displayOptions.vSpace"),action:optionsAction$5("displayOptions.vSpace"),dependency:ea=>optionsSelector$6("displayOptions.placement")(ea).includes("b"),styles:{flex:.5}}),createOptionControl({id:"popupSpaceRight",control:Number$2,label:i18next.t("Right side space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$6("displayOptions.hSpace"),action:optionsAction$5("displayOptions.hSpace"),dependency:ea=>optionsSelector$6("displayOptions.placement")(ea).includes("r"),styles:{flex:.5}}),createOptionControl({id:"popupSpaceLeft",control:Number$2,label:i18next.t("Left side space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$6("displayOptions.hSpace"),action:optionsAction$5("displayOptions.hSpace"),dependency:ea=>optionsSelector$6("displayOptions.placement")(ea).includes("l"),styles:{flex:.5}})]]}],optionsSelector$5=getDocumentOptionsByPathAndPrefix("documentTypeOptions.displayOptions"),optionsAction$4=updateDocumentValueByPathAndPrefix("documentTypeOptions.displayOptions"),backdropOptionControls=[{id:"documentPageBackdropFieldset",border:"bottom",label:i18next.t("{{document}} Backdrop",{document:DocType.getLabel("document",!0)}),optionControls:[[createOptionControl({id:"displayPageBackdrop",control:SwitchBox$1,controlProps:{label:i18next.t("Display backdrop")},selector:optionsSelector$5("backdrop"),action:optionsAction$4("backdrop")})],[createOptionControl({id:"displayPageBackdropColor",label:i18next.t("Backdrop color"),control:ColorPicker$1,dependency:optionsSelector$5("backdrop"),selector:optionsSelector$5("backdropColor"),action:optionsAction$4("backdropColor")})],[createOptionControl({id:"displayPageBackdropColor",label:i18next.t("Backdrop blur"),control:SliderWithNumber,controlProps:{min:0,max:20,numberProps:{valueType:"number",units:"px"}},dependency:optionsSelector$5("backdrop"),selector:optionsSelector$5("backdropBlur"),action:optionsAction$4("backdropBlur")})]]}],popupGeneralOptions=optionControlsPipe(ea=>excludeControls(ea,["documentSlug","documentSideSpace","documentBackgroundColor"]),ea=>addRowToFieldsetByTargetAndIndex(ea,[popupPlacement],"documentLayoutFieldset",0),ea=>modifyControls(ea,{documentWrapperWidth:{label:i18next.t("Popup Width")},documentWrapperHeight:{label:i18next.t("Popup Height")},documentTabletWrapperWidth:{label:i18next.t("Tablet Popup Width")},documentTabletWrapperHeight:{label:i18next.t("Tablet Popup Height")},documentMobileWrapperWidth:{label:i18next.t("Mobile Popup Width")},documentMobileWrapperHeight:{label:i18next.t("Mobile Popup Height")}}),ea=>insertAfterFieldset(ea,"documentLayoutFieldset",popupSpaceControls),ea=>insertAfterFieldset(ea,"documentCustomSizeFieldset",backdropOptionControls),ea=>modifyFieldset(ea,"documentWrapperSizeFieldset",{label:i18next.t("Popup size")}),ea=>modifyFieldset(ea,"documentCustomSizeFieldset",{label:i18next.t("Popup responsive size")}))(documentGeneralOptions),popupStepTransitionOptions=optionControlsPipe(ea=>excludeControls(ea,["sectionTransitionSlickType","sectionTransitionSlickerFriction"]),ea=>modifyFieldset(ea,"documentSlidingAnimationFieldset",{border:"both",label:i18next.t("Step transition timing")}),ea=>modifyControl(ea,"sectionTransitionOptionsControls",{controlProps:{excludeControlsList:["nearbySectionsVisibility","nearbySectionsVisibilityAmount"]}}))(sectionTransitionOptions),popupDocumentOptions=[{id:"general",label:i18next.t("General"),icon:SvgGeneral,optionControls:popupGeneralOptions},{id:"behavior",label:i18next.t("Behavior"),icon:SvgBehavior,optionControls:behaviorOptionControls$1},{id:"animation",label:i18next.t("Open and Close Animations"),icon:SvgAnimation,optionControls:documentAnimationOptionControls},{id:"transition",label:i18next.t("Steps transition"),icon:SvgSectionTransition,optionControls:popupStepTransitionOptions},{id:"loading",label:i18next.t("Loading options"),icon:SvgSliderLoading,optionControls:excludeFieldsets(documentLoadingOptions,["documentLoadingOnScrollIntoViewOptions"])},{id:"advanced",label:i18next.t("Advanced"),icon:SvgAdvanced,optionControls:documentAdvancedOptions},{id:"callback",label:i18next.t("Callbacks"),icon:SvgCallbacks,optionControls:documentCallbacksOptions}],newDocumentOptions$1=optionControlsPipe(ea=>addControlByTarget(ea,[popupPlacement],"documentLayoutMode","after"),ea=>excludeControls(ea,["documentLayoutMode"]),ea=>modifyControls(ea,{documentWrapperWidth:{label:i18next.t("Popup Width")},documentWrapperHeight:{label:i18next.t("Popup Height")}}))(commonNewDocumentOptions$1),optionControls$2={newDocumentOptions:newDocumentOptions$1,documentOptionGroups:popupDocumentOptions,sectionOptionGroups:sectionOptions};DocType.registerOptionControls("popup",optionControls$2);const optionsSelector$4=getDocumentOptionsByPathAndPrefix("documentTypeOptions.displayOptions"),optionsAction$3=updateDocumentValueByPathAndPrefix("documentTypeOptions.displayOptions"),behaviorOptionControls=[{id:"documentPopupBehavior",border:"bottom",label:i18next.t("{{document}} close behavior",{document:DocType.getLabel("document",!0)}),optionControls:[[createOptionControl({id:"closeByEsc",control:SwitchBox$1,controlProps:{label:i18next.t("Close banner by ESC button")},selector:optionsSelector$4("closeByEsc"),action:optionsAction$3("closeByEsc")})],[createOptionControl({id:"closeByClickOutside",control:SwitchBox$1,controlProps:{label:i18next.t("Close banner on click outside")},selector:optionsSelector$4("clickOutsideClose"),action:optionsAction$3("clickOutsideClose")})]]},...optionControlsPipe(ea=>excludeFieldsets(ea,["documentNavigationFieldset","documentNativeScrollNavigationFieldset"]))(documentNavigationOptions)],defaultColors$1={placement:{background:"rgba(170, 170, 170, 0.18)",pointer:"#6A6A6A",icon:"rgba(106, 106, 106, 0.3)",hover:{background:"#222222",border:"#707070",pointer:"#AAAAAA"},selected:{background:"#FFFFFF",icon:"#AAAAAA"}}},colors$1={dark:defaultColors$1},defaultSizing$1={},sizes$1={default:defaultSizing$1},scheme$1=Object.freeze(Object.defineProperty({__proto__:null,colors:colors$1,sizes:sizes$1},Symbol.toStringTag,{value:"Module"})),SvgBanner=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:134,height:18.999,viewBox:"0 0 134 18.999",...ea},reactExports.createElement("g",{id:"banner_no_bg","data-name":"banner no bg",transform:"translate(47.999 -5.001)"},reactExports.createElement("path",{id:"Path_1824","data-name":"Path 1824",d:"M10387,2918a3,3,0,0,1-3-3v-13a3,3,0,0,1,3-3h13a3,3,0,0,1,3,3v13a3,3,0,0,1-3,3Zm.563-4.749h11.877l-4.156-5.939-3.551,5.07-1.794-2.694Zm1.188-7.125a2.375,2.375,0,1,0,2.373-2.376A2.377,2.377,0,0,0,10388.751,2906.126ZM10270,2916a1,1,0,0,1,0-2h55a1,1,0,0,1,0,2Zm0-6a1,1,0,1,1,0-2h78a1,1,0,1,1,0,2Zm0-6a1,1,0,0,1,0-2h78a1,1,0,1,1,0,2Z",transform:"translate(-10317 -2894)"}))),SvgArrowUp=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:6,height:12,viewBox:"0 0 6 12",...ea},reactExports.createElement("path",{id:"arrow_up","data-name":"arrow up",d:"M10537,3125v-7h-2l3-5,3,5h-2v7Z",transform:"translate(-10535 -3113.001)"})),SvgArrowDown=ea=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:5.999,height:11.999,viewBox:"0 0 5.999 11.999",...ea},reactExports.createElement("path",{id:"arrow_down","data-name":"arrow down",d:"M10520,3144h2v-7h2v7h2l-3,5Z",transform:"translate(-10520.001 -3137.001)"})),Pointer=dt$1.span.withConfig({displayName:"PlacementItem__Pointer",componentId:"sc-1cjge3j-0"})([""]),IconHolder=dt$1.div.withConfig({displayName:"PlacementItem__IconHolder",componentId:"sc-1cjge3j-1"})([""]),PlacementItem=ea=>{const{className:na,selected:ra,value:oa,onClick:aa}=ea,sa=reactExports.useCallback(()=>{ra||aa?.(oa)},[aa,ra,oa]);return jsxRuntimeExports.jsxs("div",{className:na,children:[oa==="bottom"&&jsxRuntimeExports.jsx(Icon$4,{shape:SvgArrowDown}),jsxRuntimeExports.jsx(IconHolder,{onClick:sa,children:ra?jsxRuntimeExports.jsx(Icon$4,{shape:SvgBanner}):jsxRuntimeExports.jsx(Pointer,{})}),oa==="top"&&jsxRuntimeExports.jsx(Icon$4,{shape:SvgArrowUp})]})},theme$1=withTheme(scheme$1),PlacementItem$1=dt$1(PlacementItem).withConfig({displayName:"PlacementItem",componentId:"sc-1cjge3j-2"})(["display:flex;flex-direction:column;align-items:center;","{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:31px;border-radius:4px;transition:all 150ms ease-out;cursor:",";}> ","{","}","{position:absolute;width:11px;height:11px;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;transition:all 150ms ease-out;}",""],IconHolder,ea=>ea.selected?"initial":"pointer",Icon$4,({value:ea})=>lt$1(ea==="top"?["margin-top:5px;"]:["margin-bottom:5px;"]),Pointer,theme$1.colors((ea,{selected:na})=>lt$1(["","{background-color:",";}","{background-color:",";}> "," svg{fill:",";}",""],IconHolder,ea.placement.background,Pointer,ea.placement.pointer,Icon$4,ea.placement.icon,na?lt$1(["","{background-color:",";}> "," svg{fill:",";}"],IconHolder,ea.placement.selected.background,Icon$4,ea.placement.selected.icon):lt$1(["&:hover{","{background-color:",";box-shadow:0 0 0 1px ",";}","{background-color:",";}}"],IconHolder,ea.placement.hover.background,ea.placement.hover.border,Pointer,ea.placement.hover.pointer)))),Container=dt$1.div.withConfig({displayName:"BannerPlacement__Container",componentId:"sc-zoc3i8-0"})([""]),originKeys=["top","bottom"],PopupPlacement=ea=>{const{className:na,value:ra,onChange:oa}=ea,aa=sa=>{const la=sa===ra;return jsxRuntimeExports.jsx(PlacementItem$1,{value:sa,selected:la,onClick:oa},sa)};return jsxRuntimeExports.jsx("div",{className:na,children:jsxRuntimeExports.jsx(BrowserShape$1,{children:jsxRuntimeExports.jsx(Container,{children:originKeys.map(aa)})})})},BannerPlacement=dt$1(PopupPlacement).withConfig({displayName:"BannerPlacement",componentId:"sc-zoc3i8-1"})(["","{display:flex;flex-flow:column wrap;gap:20px;}"],Container),optionsSelector$3=getDocumentOptionsByPathAndPrefix("documentTypeOptions"),optionsAction$2=updateDocumentValueByPathAndPrefix("documentTypeOptions"),bannerBarPlacement=createOptionControl({id:"bannerBarPlacement",control:BannerPlacement,label:i18next.t("Notification Bar Placement"),defaultValue:"top",selector:optionsSelector$3("displayOptions.placement"),action:optionsAction$2("displayOptions.placement")}),bannerBarPosition=createOptionControl({id:"bannerBarPosition",control:Select$1,label:i18next.t("Notification Bar Position"),defaultValue:"fixed",controlProps:{options:[{label:"Fixed",value:"fixed"},{label:"Sticky",value:"sticky"},{label:"Static",value:"static"}]},selector:optionsSelector$3("displayOptions.position"),action:optionsAction$2("displayOptions.position"),styles:{flex:.5,marginTop:"10px"}}),bannerBarSpaceControls=[{id:"bannerBarSpaceControls",border:"bottom",label:i18next.t("Notification Bar Space"),optionControls:[[createOptionControl({id:"notificationBarSpaceAbove",control:Number$2,label:i18next.t("Above space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$3("displayOptions.space"),action:optionsAction$2("displayOptions.space"),dependency:ea=>optionsSelector$3("displayOptions.placement")(ea)==="top",styles:{flex:.5}}),createOptionControl({id:"notificationBarSpaceBelow",control:Number$2,label:i18next.t("Below space"),controlProps:{units:[{value:"px",label:"px"},{value:"%",label:"%"}]},selector:optionsSelector$3("displayOptions.space"),action:optionsAction$2("displayOptions.space"),dependency:ea=>optionsSelector$3("displayOptions.placement")(ea)==="bottom",styles:{flex:.5}})]]}],bannerBarGeneralOptions=optionControlsPipe(ea=>addControlByTarget(ea,[bannerBarPlacement,bannerBarPosition],"documentLayoutMode","after"),ea=>excludeControls(ea,["documentLayoutMode","documentSlug","documentSideSpace","documentBackgroundColor"]),ea=>modifyControls(ea,{documentWrapperWidth:{label:i18next.t("Content Width")},documentWrapperHeight:{label:i18next.t("Content Height")},documentTabletWrapperWidth:{label:i18next.t("Tablet Content Width")},documentTabletWrapperHeight:{label:i18next.t("Tablet Content Height")},documentMobileWrapperWidth:{label:i18next.t("Mobile Content Width")},documentMobileWrapperHeight:{label:i18next.t("Mobile Content Height")}}),ea=>insertAfterFieldset(ea,"documentLayoutFieldset",bannerBarSpaceControls),ea=>insertAfterFieldset(ea,"documentCustomSizeFieldset",backdropOptionControls),ea=>modifyFieldset(ea,"documentWrapperSizeFieldset",{label:i18next.t("Notification Bar size")}),ea=>modifyFieldset(ea,"documentCustomSizeFieldset",{label:i18next.t("Notification Bar responsive size")}))(documentGeneralOptions),bannerBarFrameTransitionOptions=optionControlsPipe(ea=>excludeControls(ea,["sectionTransitionSlickType","sectionTransitionSlickerFriction"]),ea=>modifyFieldset(ea,"documentSlidingAnimationFieldset",{border:"both",label:i18next.t("Frame transition timing")}),ea=>modifyControl(ea,"sectionTransitionOptionsControls",{controlProps:{excludeControlsList:["nearbySectionsVisibility","nearbySectionsVisibilityAmount"]}}))(sectionTransitionOptions),bannerBarDocumentOptions=[{id:"general",label:i18next.t("General"),icon:SvgGeneral,optionControls:bannerBarGeneralOptions},{id:"behavior",label:i18next.t("Behavior"),icon:SvgBehavior,optionControls:behaviorOptionControls},{id:"animation",label:i18next.t("Open and Close Animations"),icon:SvgAnimation,optionControls:documentAnimationOptionControls},{id:"transition",label:i18next.t("Frames transition"),icon:SvgSectionTransition,optionControls:bannerBarFrameTransitionOptions},{id:"loading",label:i18next.t("Loading options"),icon:SvgSliderLoading,optionControls:excludeFieldsets(documentLoadingOptions,["documentLoadingOnScrollIntoViewOptions"])},{id:"advanced",label:i18next.t("Advanced"),icon:SvgAdvanced,optionControls:documentAdvancedOptions},{id:"callback",label:i18next.t("Callbacks"),icon:SvgCallbacks,optionControls:documentCallbacksOptions}],newDocumentOptions=optionControlsPipe(ea=>addControlByTarget(ea,[bannerBarPlacement],"documentLayoutMode","after"),ea=>excludeControls(ea,["documentLayoutMode"]),ea=>modifyControls(ea,{documentWrapperWidth:{label:i18next.t("Banner Width")},documentWrapperHeight:{label:i18next.t("Banner Height")}}))(commonNewDocumentOptions$1);DocType.registerOptionControls("banner-bar",{newDocumentOptions,documentOptionGroups:bannerBarDocumentOptions,sectionOptionGroups});DocType.registerOptionControls("hero-section",{newDocumentOptions:commonNewDocumentOptions$1,documentOptionGroups:commonDocumentOptions,sectionOptionGroups});const ocs={newDocumentOptions:commonNewDocumentOptions$1,documentOptionGroups:commonDocumentOptions,sectionOptionGroups};DocType.registerOptionControls("woo-slider",ocs);const optionsSelector$2=getDocumentOptionsByPathAndPrefix("documentTypeOptions.carousel"),optionsAction$1=updateDocumentValueByPathAndPrefix("documentTypeOptions.carousel"),layoutModeButtons=[{value:"flex",label:i18next.t("Flex"),iconShape:SvgCarouselFlex},{value:"fill",label:i18next.t("Fill"),iconShape:SvgCarouselFill},{value:"focus",label:i18next.t("Focus"),iconShape:SvgCarouselFocus}],growModeButtons=[{value:"grow-content",label:i18next.t("Grow Content"),iconShape:SvgCarouselGrowContent},{value:"grow-space",label:i18next.t("Grow Space"),iconShape:SvgCarouselGrowSpace},{value:"keep-ratio",label:i18next.t("Keep Content Aspect Ratio"),iconShape:SvgCarouselKeepRatio}],carouselLayout=(ea="createDocumentModal")=>createOptionControl({id:"carouselLayout",defaultValue:"focus",label:i18next.t("Carousel layout"),control:ToggleButtons$1,controlProps:{tooltip:{options:{place:"top",id:ea}},multiple:!1,buttons:layoutModeButtons,buttonWidth:"86px",buttonHeight:"68px"},selector:optionsSelector$2("mode"),action:optionsAction$1("mode")}),carouselAlignItems=createOptionControl({id:"carouselAlignItems",control:Select$1,defaultValue:"center",label:i18next.t("Align Items"),controlProps:{options:[{value:"left",label:i18next.t("Left")},{value:"center",label:i18next.t("Center")},{value:"right",label:i18next.t("Right")}]},dependency:ea=>optionsSelector$2("mode")(ea)==="focus",selector:optionsSelector$2("alignItems"),action:optionsAction$1("alignItems")}),carouselItemsContentGrowth=(ea="createDocumentModal")=>createOptionControl({id:"carouselItemsContentGrowth",defaultValue:"grow-space",label:i18next.t("Items Content Growth"),control:ToggleButtons$1,controlProps:{tooltip:{options:{place:"top",id:ea}},multiple:!1,buttons:growModeButtons,buttonWidth:"86px",buttonHeight:"68px"},dependency:na=>optionsSelector$2("mode")(na)==="flex",selector:optionsSelector$2("itemsContentGrowth"),action:optionsAction$1("itemsContentGrowth")}),carouselColumns=[createOptionControl({id:"carouselDesktopColumns",defaultValue:3,control:Number$2,controlProps:{min:1,icon:SvgDesktopSmall},label:i18next.t("Columns"),dependency:ea=>optionsSelector$2("mode")(ea)==="flex",selector:optionsSelector$2("columns.$resp.default"),action:optionsAction$1("columns.$resp.default")}),createOptionControl({id:"carouselTabletColumns",defaultValue:2,control:Number$2,controlProps:{min:1,icon:SvgTablet},label:" ",dependency:ea=>optionsSelector$2("mode")(ea)==="flex",selector:optionsSelector$2("columns.$resp.tablet"),action:optionsAction$1("columns.$resp.tablet")}),createOptionControl({id:"carouselMobileColumns",defaultValue:1,control:Number$2,controlProps:{min:1,icon:SvgMobile},label:" ",dependency:ea=>optionsSelector$2("mode")(ea)==="flex",selector:optionsSelector$2("columns.$resp.mobile"),action:optionsAction$1("columns.$resp.mobile")})],optionsSectionStyleSelector=getDocumentOptionsByPathAndPrefix("documentTypeOptions.carousel.styles.section"),optionsSectionStyleAction=updateDocumentValueByPathAndPrefix("documentTypeOptions.carousel.styles.section"),carouselItemShadow=createOptionControl({id:"carouselItemBoxShadow",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Items Box Shadow")},optionControls:boxShadowStylesPopoverControls({action:optionsSectionStyleAction,selector:optionsSectionStyleSelector})},hideOnIntersection:!0,selector:optionsSectionStyleSelector("boxShadow.enable"),action:optionsSectionStyleAction("boxShadow.enable")}),carouselItemBorderRadius=createOptionControl({id:"carouselItemBorderRadius",control:BoxEdgeSizing$1,label:i18next.t("Items Corner Radius"),selector:optionsSectionStyleSelector("borderRadius"),action:optionsSectionStyleAction("borderRadius")}),carouselItemBorder=createOptionControl({id:"carouselItemBorder",control:Popover$1,controlProps:{switchBoxProps:{label:i18next.t("Items Border")},optionControls:borderStylesPopoverControls({action:optionsSectionStyleAction,selector:optionsSectionStyleSelector})},selector:optionsSectionStyleSelector("border.enabled"),action:optionsSectionStyleAction("border.enabled")}),carouselGeneralOptions=optionControlsPipe(ea=>addRowToFieldsetByTargetAndIndex(ea,[[carouselLayout("settingsPanel")],carouselColumns,[carouselAlignItems],[carouselItemsContentGrowth("settingsPanel")]],"documentLayoutFieldset",0),ea=>insertAfterFieldset(ea,"documentCustomSizeFieldset",[{id:"carouselAppearanceFieldset",border:"bottom",label:i18next.t("Carousel items appearance"),optionControls:[[sectionsSpace],[carouselItemShadow],[carouselItemBorder],[carouselItemBorderRadius]]}]),ea=>excludeControls(ea,["documentLayoutMode","documentSideSpace","documentKeepAspect","documentMinHeight","documentBoxShadow","documentBorderRadius","documentBorder"]),ea=>modifyControls(ea,{documentWrapperWidth:{label:i18next.t("Content Width")},documentWrapperHeight:{label:i18next.t("Content Height")},documentTabletWrapperWidth:{label:i18next.t("Tablet Content Width")},documentTabletWrapperHeight:{label:i18next.t("Tablet Content Height")},documentMobileWrapperWidth:{label:i18next.t("Mobile Content Width")},documentMobileWrapperHeight:{label:i18next.t("Mobile Content Height")}}))(documentGeneralOptions),[general,navigation,transition,...rest]=commonDocumentOptions,optionsSelector$1=getDocumentOptionsByPathAndPrefix("documentTypeOptions.carousel"),carouselDocumentOptions=[{...general,optionControls:carouselGeneralOptions},{...navigation,optionControls:excludeFieldsets(navigation.optionControls,["documentNativeScrollNavigationFieldset"])},{...transition,optionControls:optionControlsPipe(ea=>modifyControl(ea,"sectionTransitionType",{controlProps:{exclude:["fade","cube","animroll","mask"]}}),ea=>modifyControl(ea,"sectionTransitionOptionsControls",{dependency:na=>optionsSelector$1("mode")(na)!=="focus"}),ea=>addRowToFieldsetByTargetAndIndex(ea,[{...sectionsSpace,dependency:na=>optionsSelector$1("mode")(na)==="focus"}],"sectionTransitionTypeFieldset",1))(transition.optionControls)},...rest],optionsSelector=getDocumentOptionsByPathAndPrefix(""),optionsAction=updateDocumentValueByPathAndPrefix(""),commonNewDocumentOptions=[{id:"createDocumentOptionsFieldset",optionControls:[[createOptionControl({id:"documentName",label:i18next.t("{{document}} name",{document:DocType.getLabel("document",!0)}),control:DocumentNameInput,selector:getDocumentName,styles:{marginBottom:"20px"}})],[carouselLayout()],carouselColumns,[carouselAlignItems],[carouselItemsContentGrowth()],[createOptionControl({id:"documentWrapperWidth",label:i18next.t("{{section}} content width",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector("wrapperSize.$resp.default.width"),action:optionsAction("wrapperSize.$resp.default.width")}),createOptionControl({id:"documentWrapperHeight",label:i18next.t("{{section}} content height",{section:DocType.getLabel("section",!0)}),control:Number$2,controlProps:{units:"px",valueType:"object"},selector:optionsSelector("wrapperSize.$resp.default.height"),action:optionsAction("wrapperSize.$resp.default.height")})],[createOptionControl({id:"createDocumentNotice",control:LabelWithIcon$1,controlProps:{icon:CircleInfoIcon,iconLocation:"before",children:i18next.t("You can also find these settings in the options tab later.")},styles:{marginTop:"7px"}})]]}];DocType.registerOptionControls("carousel",{newDocumentOptions:commonNewDocumentOptions,documentOptionGroups:carouselDocumentOptions,sectionOptionGroups});const optionControls$1={newDocumentOptions:commonNewDocumentOptions$1,documentOptionGroups:commonDocumentOptions,sectionOptionGroups};DocType.registerOptionControls("post-slider",optionControls$1);const surveyDocumentOptions=[{id:"general",label:i18next.t("General"),icon:SvgGeneral,optionControls:documentGeneralOptions},{id:"loading",label:i18next.t("Loading options"),icon:SvgSliderLoading,optionControls:documentLoadingOptions},{id:"advanced",label:i18next.t("Advanced"),icon:SvgAdvanced,optionControls:documentAdvancedOptions},{id:"callback",label:i18next.t("Callbacks"),icon:SvgCallbacks,optionControls:documentCallbacksOptions}],optionControls={newDocumentOptions:commonNewDocumentOptions$1,documentOptionGroups:surveyDocumentOptions,sectionOptionGroups};DocType.registerOptionControls("survey",optionControls);const MainArea=dt$1.div.withConfig({displayName:"editor__MainArea",componentId:"sc-9j0xdm-0"})([""]),RouteContent=dt$1.div.withConfig({displayName:"editor__RouteContent",componentId:"sc-9j0xdm-1"})([""]),Editor=React.memo(({className:ea})=>{const{activePanel:na}=useActivePanel(),ra=reactExports.useRef(null),oa=useRoutes(editorRoutes);return usePosthogCapture("open_editor",{with:na,documentType:editorEnv.documentType}),jsxRuntimeExports.jsx("div",{className:ea,ref:ra,children:jsxRuntimeExports.jsxs(QuickTipManager$1,{container:ra,children:[jsxRuntimeExports.jsx(Managers,{}),jsxRuntimeExports.jsx(Header$3,{}),jsxRuntimeExports.jsx(MainArea,{children:jsxRuntimeExports.jsx(RouteContent,{children:oa})}),jsxRuntimeExports.jsx(Tooltip$1,{id:"global",effect:"solid",inverted:!0})]})})}),StyledEditor=dt$1(Editor).withConfig({displayName:"editor__StyledEditor",componentId:"sc-9j0xdm-2"})(["display:flex;flex-direction:column;height:100%;","{flex:1;display:flex;overflow:hidden;}","{display:flex;flex:1;}"],MainArea,RouteContent),Editor$1=withLoading(StyledEditor),useOpenOnboardingVideo=()=>{const{addToModalsStack:ea}=useModal(),[na,ra]=reactExports.useState(!1);return reactExports.useEffect(()=>{localStorage.getItem("dpIsNewUser")!=="0"?ra(!0):ra(!1)},[ea]),reactExports.useCallback(aa=>{(na||aa)&&ea([{id:"onboardingVideo",options:{embedVideoUrl:"//www.youtube.com/embed/yi_NjXKlvmg?rel=0"}}])},[na,ea])},parseVersion=ea=>{const[na,ra,oa]=ea.split(".").map(aa=>parseInt(aa,10));return na===5?[0,ra,oa]:[na,ra,oa]},compareVersions=(ea,na)=>{for(let ra=0;ra<Math.max(ea.length,na.length);ra+=1)if(ea[ra]!==na[ra])return ea[ra]-na[ra];return 0},migratePosition=ea=>{const{elements:na}=ea,ra=[...breakpointsOrder].reverse(),oa=Object.keys(na).reduce((aa,sa)=>{const{position:la}=na[sa];if(!la)return aa;const ca=Object.keys(la),ua=lodashExports.cloneDeep(la);return ra.forEach(da=>{ca.includes(da)&&(ua[da]=getResponsiveValue(la,da),ua[da].x??={value:0,unit:"px"},ua[da].y??={value:0,unit:"px"})}),{...aa,[sa]:{...na[sa],position:ua}}},{});return{...ea,elements:oa}},migrateSectionsList=ea=>{const{sections:na,sectionsList:ra}=ea,oa=ra.filter(aa=>aa in na);return{...ea,sectionsList:oa}},subMigrates$1=[migratePosition,migrateSectionsList],migrator$2={migrations:{"3.6.0":ea=>(console.log("Migrating document to version 3.6.0"),subMigrates$1.reduce((na,ra)=>ra(na),ea))}},migrateTeaserDocumentState=ea=>ea.meta.documentType!=="popup"||ea.options.documentTypeOptions?.teaser?ea:{...ea,options:{...ea.options,documentTypeOptions:{...ea.options.documentTypeOptions,teaser:{enabled:!1,placement:"bl",vSpace:{value:15,unit:"px"},hSpace:{value:15,unit:"px"}}}}},migrateSectionType=ea=>{if(ea.meta.documentType!=="popup"||Object.values(ea.sections).some(ra=>ra.type==="teaser"))return ea;const na=ea.sectionsList.map(ra=>{const oa=ea.sections[ra];return oa?{...oa,type:"section"}:(console.warn(`Section with ID ${ra} not found in document.sections`),null)}).filter(Boolean).reduce((ra,oa)=>(oa&&(ra[oa.id]=oa),ra),{});return{...ea,sections:na}},migrateTeaserSection=ea=>{if(ea.meta.documentType!=="popup")return ea;if(Object.values(ea.sections).some(la=>la.type==="teaser"))return console.warn("Teaser section already exists, skipping migration."),ea;const{section:ra,elements:oa,sectionId:aa,lastId:sa}=createDefaultTeaserSection(ea.lastId);return{...ea,lastId:sa,elements:{...ea.elements,...oa},sections:{...ea.sections,[aa]:ra},sectionsList:[...ea.sectionsList,aa]}},subMigrates=[migrateTeaserDocumentState,migrateSectionType,migrateTeaserSection],migrator$1={migrations:{"*":ea=>subMigrates.reduce((na,ra)=>ra(na),ea)}},removeMissingElement=ea=>{const{elements:na,foregroundElements:ra,sections:oa}=ea,aa=ra.filter(la=>na[la]),sa=Object.keys(oa).reduce((la,ca)=>{const ua=oa[ca],da=ua.elements.filter(pa=>na[pa]);return{...la,[ca]:{...ua,elements:da}}},{});return{...ea,foregroundElements:aa,sections:sa}},fixLastId=ea=>{const{elements:na,lastId:ra,sectionsList:oa}=ea,aa=Math.max(...Object.keys(na).map(ca=>parseInt(ca.split("-")[1],10)).filter(ca=>!Number.isNaN(ca))),sa=Math.max(...oa.map(ca=>parseInt(ca.split("-")[1],10)).filter(ca=>!Number.isNaN(ca))),la=Math.max(aa,sa);return la>ra?{...ea,lastId:la}:ea},removeUndefinedElement=ea=>{const{elements:na}=ea;return na.undefined&&delete na.undefined,ea},migrations$1=[removeMissingElement,fixLastId,removeUndefinedElement],migrator={migrations:{"*":ea=>migrations$1.reduce((na,ra)=>ra(na),ea)}},migrations=new Map,list=[migrator$2,migrator$1,migrator],starMigrations=[];list.forEach(ea=>{Object.keys(ea.migrations).forEach(na=>{na==="*"?starMigrations.push(ea.migrations[na]):migrations.set(na,ea.migrations[na])})});starMigrations.length>0&&migrations.set("*",ea=>starMigrations.reduce((na,ra)=>ra(na),ea));const migrate=(ea,na,ra=migrations)=>{const oa=parseVersion(ea),aa=parseVersion(na.meta.modifiedBy??na.meta.createdBy),la=Array.from(ra.keys()).filter(ua=>ua!=="*").map(ua=>parseVersion(ua)).filter(ua=>compareVersions(ua,aa)>0&&compareVersions(ua,oa)<=0).sort((ua,da)=>compareVersions(ua,da)).reduce((ua,da)=>ra.get(da.join("."))(ua),na),ca=ra.get("*");return ca?ca(la):la};var define_process_env_default$1={EDITOR_VERSION:"4.7.1"};const DocumentManager=()=>{const{status:ea}=useSelector(getDocumentLoadingStatus),{status:na}=useSelector(getDocumentSavingStatus),ra=useSelector(getDocumentId),oa=useDispatch(),aa=useSelector(getUnsavedChanges),sa=reactExports.useRef(),la=reactExports.useMemo(()=>new MeasureTime,[]),ca=useTrack(),{addToModalsStack:ua,activeModal:da}=useModal(),pa=useOpenChangelogs(),ha=useOpenOnboardingVideo(),ga=useSelector(getUserTierFromStore),fa=reactExports.useCallback(()=>{document.hidden?la.pause():la.start()},[la]);reactExports.useEffect(()=>{(async()=>{if(ea!=="inprogress"&&ea!=="succeed"){await i18nInit,oa(updateLoadingDocumentStatus({status:"inprogress"}));const ya=await documentAPI().load();ya.newDocument||(ya.state=migrate(define_process_env_default$1.EDITOR_VERSION,ya.state)),oa(openDocument(ya));const{state:Aa,newDocument:Ca}=ya,Sa=editorEnv.activation?.status||"not-active";(Sa==="error"||Sa==="active"&&editorEnv.activation?.isNew)&&ua([{id:"activation",options:{initialStatus:Sa==="active"?"success":"failed",errorMessage:editorEnv.activation?.errorMessage}}]),pa(),Ca&&ua([{id:"createDocument"}]),ha(),updateDocumentModifiedState();const{modifiedByTier:wa=Tiers.FREE}=Aa?.meta||{},{user:{tier:ba},subscription:Ea}=editorEnv;Ea?.status==="expired"&&!checkUserTierPermission(wa,ba,userTiers)&&ua([{id:"limitedEdit"}])}})()},[oa,pa,ha,ua,ea,ra,ga]);const ma=reactExports.useCallback(xa=>{if(ca(increaseElapsedTime(la.elapsedTime)),aa>=1&&da.id!=="sessionExpire"){const ya=i18next.t("You have some unsaved changes. Leaving site?");return xa.returnValue=ya,ya}},[aa,ca,la.elapsedTime,da]);reactExports.useEffect(()=>(window.addEventListener("beforeunload",ma),()=>{window.removeEventListener("beforeunload",ma)}),[ma]),reactExports.useEffect(()=>{(aa>0||na==="failed")&&(clearTimeout(sa.current),sa.current=window.setTimeout(()=>{oa(saveDocument("draft"))},2e3))},[oa,aa,na==="failed"]),reactExports.useEffect(()=>{switch(na){case"succeed":reactDomExports.unstable_batchedUpdates(()=>{oa(resetUnsavedChanges()),oa(updateSavingDocumentStatus({status:"idle"}))});break}},[oa,na]);const va=reactExports.useCallback(xa=>{(xa.ctrlKey||xa.metaKey)&&xa.preventDefault()},[]);return reactExports.useEffect(()=>(window.addEventListener("wheel",va,{passive:!1}),()=>{window.removeEventListener("wheel",va)}),[va]),reactExports.useEffect(()=>(document.addEventListener("visibilitychange",fa),fa(),()=>{document.addEventListener("visibilitychange",fa)}),[fa]),jsxRuntimeExports.jsx(Editor$1,{loading:ea!=="succeed"})};var changedArray=function ea(na,ra){return na===void 0&&(na=[]),ra===void 0&&(ra=[]),na.length!==ra.length||na.some(function(oa,aa){return!Object.is(oa,ra[aa])})},initialState={error:null},ErrorBoundary=function(ea){_inheritsLoose(na,ea);function na(){for(var oa,aa=arguments.length,sa=new Array(aa),la=0;la<aa;la++)sa[la]=arguments[la];return oa=ea.call.apply(ea,[this].concat(sa))||this,oa.state=initialState,oa.resetErrorBoundary=function(){for(var ca,ua=arguments.length,da=new Array(ua),pa=0;pa<ua;pa++)da[pa]=arguments[pa];oa.props.onReset==null||(ca=oa.props).onReset.apply(ca,da),oa.reset()},oa}na.getDerivedStateFromError=function(aa){return{error:aa}};var ra=na.prototype;return ra.reset=function(){this.setState(initialState)},ra.componentDidCatch=function(aa,sa){var la,ca;(la=(ca=this.props).onError)==null||la.call(ca,aa,sa)},ra.componentDidUpdate=function(aa,sa){var la=this.state.error,ca=this.props.resetKeys;if(la!==null&&sa.error!==null&&changedArray(aa.resetKeys,ca)){var ua,da;(ua=(da=this.props).onResetKeysChange)==null||ua.call(da,aa.resetKeys,ca),this.reset()}},ra.render=function(){var aa=this.state.error,sa=this.props,la=sa.fallbackRender,ca=sa.FallbackComponent,ua=sa.fallback;if(aa!==null){var da={error:aa,resetErrorBoundary:this.resetErrorBoundary};if(reactExports.isValidElement(ua))return ua;if(typeof la=="function")return la(da);if(ca)return reactExports.createElement(ca,da);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},na}(reactExports.Component);const RuntimeErrorBoundary=ea=>jsxRuntimeExports.jsx(ErrorBoundary,{...ea}),browserDetect=()=>{const ea=navigator.userAgent;let na,ra=ea.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(ra[1])?(na=/\brv[ :]+(\d+)/g.exec(ea)||[],{name:"IE",version:na[1]||""}):ra[1]==="Chrome"&&(na=ea.match(/\bOPR|Edge\/(\d+)/),na!=null)?{name:"Opera",version:na[1]}:(ra=ra[2]?[ra[1],ra[2]]:[navigator.appName,navigator.appVersion,"-?"],na=ea.match(/version\/(\d+)/i),na!=null&&ra.splice(1,1,na[1]),{name:ra[0],version:ra[1],resolution:`${window.screen.width*window.devicePixelRatio}x${window.screen.height*window.devicePixelRatio}`})},defaultColors={background:"#363636",border:"#000000",shadow:"rgba(0, 0, 0, 0.25)",color:"#FFF",restoreButton:{color:"#FDD469",backgroundColor:"#242424"}},colors={dark:defaultColors},defaultSizing={width:"500px",padding:"20px",border:"5px"},sizes={default:defaultSizing},scheme=Object.freeze(Object.defineProperty({__proto__:null,colors,sizes},Symbol.toStringTag,{value:"Module"})),Title=dt$1(Label$6).withConfig({displayName:"RuntimeErrorFallback__Title",componentId:"sc-1jzd95v-0"})([""]),ButtonsWrapper=dt$1.div.withConfig({displayName:"RuntimeErrorFallback__ButtonsWrapper",componentId:"sc-1jzd95v-1"})([""]),RuntimeErrorFallback=({className:ea,error:na,componentStack:ra,resetErrorBoundary:oa,onRevert:aa,showRestoreDataButton:sa=!0})=>{const{t:la}=useTranslation(),ca=useSelector(getCreatedBy),ua=useSelector(getModifiedBy),da=useSelector(getDocument$1),pa=browserDetect(),[ha,ga]=reactExports.useState(!1),[fa,ma]=reactExports.useState(!1),[va,xa]=reactExports.useState({usePrivacy:!0,allowContact:!1,userComment:"",userEmail:editorEnv.user.email,showDetails:!1}),ya=()=>{const wa={wpVersion:editorEnv.wpVersion,createdByVersion:ca,modifiedByVersion:ua,browser:{browser:pa,ua:navigator.userAgent,location:window.location.href}},ba={crashReport:`${na.message}${ra}`,envInfo:JSON.stringify(wa),userComment:va.userComment,userEmail:va.allowContact?va.userEmail:"",userDocumentData:da};return axios$5.request(sendCrashReport(ba))},Aa=async()=>{fa||(ga(!0),va.usePrivacy&&await ya(),oa(),ga(!1))},Ca=async()=>{window.location.href=editorEnv.dashboardURL},Sa=async()=>{ha||window.confirm(la("Are you sure you want to restore to last published version? This may remove some of the changes."))&&(ma(!0),va.usePrivacy&&await ya(),aa(),ma(!1))};return jsxRuntimeExports.jsxs("div",{className:ea,children:[jsxRuntimeExports.jsx(Title,{display:"block",children:la("We’re Sorry!")}),jsxRuntimeExports.jsx("div",{children:la("Depicter faced a problem and crashed. We’ll restore your project when it reopens.")}),jsxRuntimeExports.jsx(Checkbox$1,{value:va.usePrivacy,round:!0,onChange:wa=>xa({...va,usePrivacy:wa}),children:la("Tell us about this crash so we can fix it.")}),va.usePrivacy&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[va.showDetails?jsxRuntimeExports.jsx(Input$2,{inputType:"textArea",value:`${na.message}${ra}`,width:"100%"}):jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:()=>xa({...va,showDetails:!0}),children:la("Details")}),jsxRuntimeExports.jsx(Input$2,{inputType:"textArea",placeholder:la("Add a description"),value:va.userComment,width:"100%",onChange:wa=>xa({...va,userComment:wa})}),jsxRuntimeExports.jsx(Checkbox$1,{value:va.allowContact,round:!0,onChange:wa=>xa({...va,allowContact:wa}),children:la("Allow us to contact you about this report")}),jsxRuntimeExports.jsx(Input$2,{placeholder:la("Enter your email address here"),value:va.userEmail,disabled:!va.allowContact,width:"100%",pattern:emailPattern,validationOn:"blur",onChange:wa=>xa({...va,userEmail:wa})})]}),jsxRuntimeExports.jsxs(ButtonsWrapper,{children:[jsxRuntimeExports.jsx(OutlineButton$1,{size:"small",onClick:Ca,children:la("Back to Dashboard")}),jsxRuntimeExports.jsx(SolidButton,{size:"small",onClick:Sa,className:"depicter-restore-last-publish",loading:fa,children:la("Restore to Last Publish")}),sa&&jsxRuntimeExports.jsx(SolidButton,{size:"small",className:"depicter-restore",onClick:Aa,loading:ha,children:la("Restore Data")})]})]})},theme=withTheme(scheme),RuntimeErrorFallback$1=dt$1(RuntimeErrorFallback).withConfig({displayName:"RuntimeErrorFallback",componentId:"sc-1jzd95v-2"})([""," "," ","{font-weight:bold;font-size:14px;}","{margin-top:15px;}> ","{margin-top:10px;}","{margin-top:10px;textarea{height:150px;}}","{margin:10px 0;}> span:last-of-type{margin-top:10px;font-size:12px;}","{margin-top:25px;display:flex;align-items:center;justify-content:flex-end;> ","{margin-right:10px;}.depicter-restore{margin-left:10px;}}"],theme.colors(ea=>lt$1(["color:",";background-color:",";border:1px solid ",";box-shadow:2px 10px 25px ",";","{color:",";}.depicter-restore-last-publish{background-color:",";color:",";}"],ea.color,ea.background,ea.border,ea.shadow,Title,ea.color,ea.restoreButton.backgroundColor,ea.restoreButton.color)),theme.sizes(ea=>lt$1(["width:",";padding:",";border-radius:",";"],ea.width,ea.padding,ea.border)),Title,Checkbox$1,OutlineButton$1,Input$2,Input$2,ButtonsWrapper,OutlineButton$1),getAttemptsData=()=>localStorage.getItem("dpDocumentsRestoreAttempts")?JSON.parse(localStorage.getItem("dpDocumentsRestoreAttempts")):{},getAttempts=ea=>getAttemptsData()?.[ea]||0,setAttempts=(ea,na)=>{localStorage.setItem("dpDocumentsRestoreAttempts",JSON.stringify({...getAttemptsData(),[ea]:na}))},decreaseAttempts=(ea,na)=>{const ra=getAttempts(ea);localStorage.setItem("dpDocumentsRestoreAttempts",JSON.stringify({...getAttemptsData(),[ea]:ra-na}))},excludeRules=[ea=>[404].includes(ea.response?.status||0)],ErrorManager=({className:ea,children:na})=>{const ra=useDispatch(),oa=useSelector(getDocumentName),aa=useSelector(getDocumentSlug),sa=useSelector(getDocumentLastPublishTime),la=useSelector(getDocumentLastSaveDraftTime),ca=useSelector(getHasUndo),ua=useSelector(getDocumentId),[da,pa]=reactExports.useState(""),ha=reactExports.useRef(),ga=reactExports.useCallback(()=>{ra(hardUndo()),ra(saveRestoreData({name:oa,slug:aa,publishedAt:sa,modifiedAt:la},!0)),decreaseAttempts(ua,1),window.location.reload()},[ra,ua,oa,aa,la,sa]),fa=()=>{setAttempts(ua,5),ga()},ma=(xa,ya)=>{clearTimeout(ha.current),getAttempts(ua)>0?ga():pa(ya.componentStack)},va=async()=>{await documentAPI().revert(1)&&window.location.reload()};return useAxiosErrorHandler(axios$5,!0,void 0,void 0,excludeRules),reactExports.useEffect(()=>{ha.current=window.setTimeout(()=>{setAttempts(ua,0),adapter$4.remove(ua)},5e3)},[ua]),jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(RuntimeErrorBoundary,{FallbackComponent:xa=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:!!da&&jsxRuntimeExports.jsx(RuntimeErrorFallback$1,{...xa,showRestoreDataButton:ca,componentStack:da,onRevert:va})}),onError:ma,onReset:fa,children:na})})},ErrorManager$1=dt$1(ErrorManager).withConfig({displayName:"ErrorManager",componentId:"sc-y81d5t-0"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),fontsConfig={disable:editorEnv.disabledFontServices,serviceConfigs:{websiteFont:{url:editorEnv.wpHomepage,exclude:["WooCommerce","star","dashicons","revicons"]}}},FontsManager=({children:ea})=>{const na=useDispatch(),ra=reactExports.useCallback(oa=>{oa.getFontsList().then(aa=>{const{websiteFont:sa=[]}=aa,la={};sa.forEach(ca=>{la[ca.family]=ca}),na(setAdditionalFonts(la))})},[na]);return jsxRuntimeExports.jsx(FontProvider,{config:fontsConfig,onLoad:ra,children:ea})},themeConfig={colors:"dark",sizes:"default"},trackingDataInitialState={publishCount:0,previewCount:0,optionsTabCount:0,elapsedTime:0},trackingDataReducer=createReducer(trackingDataInitialState,ea=>{ea.addCase(updateDataTracking,(na,{payload:ra})=>ra).addCase(increasePublishCount,na=>{const ra=na.publishCount+1;return{...na,publishCount:ra}}).addCase(increasePreviewCount,na=>{const ra=na.previewCount+1;return{...na,previewCount:ra}}).addCase(increaseOptionsTabCount,na=>{const ra=na.optionsTabCount+1;return{...na,optionsTabCount:ra}}).addCase(increaseElapsedTime,(na,{payload:ra})=>{const oa=na.elapsedTime+ra;return{...na,elapsedTime:oa}}).addCase(resetSubscribeTriggers,na=>({...na,publishCount:0,previewCount:0,optionsTabCount:0,elapsedTime:0}))}),authenticationRequestConfigs={loginByGoogleUrl,loginByGoogle,loginByRemote,logoutByRemote,registerByRemote},App=({className:ea})=>jsxRuntimeExports.jsx("div",{className:ea,children:jsxRuntimeExports.jsx(HashRouter,{children:jsxRuntimeExports.jsx(UserTiersProvider,{children:jsxRuntimeExports.jsx(RequestProvider,{value:axios$5,children:jsxRuntimeExports.jsx(TrackingProvider,{id:editorEnv.documentId,initialState:trackingDataInitialState,reducers:trackingDataReducer,adapter:"localStorage",children:jsxRuntimeExports.jsx(DisplayRulesProvider,{documentId:editorEnv.documentId,children:jsxRuntimeExports.jsx(FontsManager,{children:jsxRuntimeExports.jsxs(ot$1,{theme:themeConfig,children:[jsxRuntimeExports.jsx(AuthenticationProvider,{requestConfigs:authenticationRequestConfigs,authenticateBy:"idToken",adapter:"default",children:jsxRuntimeExports.jsx(PosthogProvider,{enabled:commonEnv.user.dataCollectionConsent!=="not-set",apiKey:commonEnv.posthogKey,apiHost:commonEnv.posthogHost,children:jsxRuntimeExports.jsx(ModalsManager$1,{children:jsxRuntimeExports.jsx(ErrorManager$1,{children:jsxRuntimeExports.jsx(MediaCropperToolProvider,{children:jsxRuntimeExports.jsxs(DragAndDropProvider,{children:[jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:clipPaths}}),jsxRuntimeExports.jsx(DocumentManager,{})]})})})})})}),jsxRuntimeExports.jsx(FlagsContainer,{})]})})})})})})})}),StyledApp=dt$1(App).withConfig({displayName:"App__StyledApp",componentId:"sc-pdgv4w-0"})(["height:100vh;direction:ltr;"]);var define_process_env_default={EDITOR_VERSION:"4.7.1"};console.log("process.env.EDITOR_VERSION",define_process_env_default.EDITOR_VERSION);const render=ea=>{ReactDOM.render(jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(Ye$1,{children:jsxRuntimeExports.jsx(ea,{})})}),document.getElementById("root"))};render(StyledApp);export{Avatar$1 as A,BaseButton$1 as B,ControlledMenu as C,Icon$4 as I,Label$6 as L,MenuItem as M,SolidButton as S,__vitePreload as _,useModal as a,useOpenOnboardingVideo as b,useOpenChangelogs as c,dt$1 as d,encodeSvg as e,useAuthentication as f,MenuDivider as g,browserEnv as h,requireReact as i,jsxRuntimeExports as j,requireUtils$2 as k,lt$1 as l,mt$1 as m,requirePatterns as n,getDefaultExportFromCjs as o,reactExports as r,useTranslation as u,withTheme as w};
